float division by zero issue

When I want to asses blocking result using metrics rr $ pc , I got the message error "ZeroDivisionError: float division by zero". How could I fix it?

I had a look at the https://github.com/data61/blocklib/blob/b569b3fc4b84c5d743227c6d35e1d8add3ff3bff/blocklib/evaluation.py#L5 function.
There are two reasons why you might get a ZeroDivisionError.

there are no records in the provided data.
there are no true matches in the provided data.

Have a look at your data and make sure you provide it in the right format.
Or provide an example that shows this error and I can try to help.

I have used two datasets which are in text format in csv file that include 5 attributes (id, title, authors, venue. year).
subdata1 = [x[0] for x in data_alice]
subdata2 = [x[0] for x in data_bob]

rr, pc = assess_blocks_2party([filtered_blocks_alice, filtered_blocks_bob],
                              [subdata1, subdata2])

print('RR={}'.format(rr))
print('PC={}'.format(pc))

I'm using the same above code but I have changed x[0] to x[1] in both lines and it works fine and I got results.
In this case, changing x[0] to x[1] Does it produce wrong results?

Note that the subdata1 and subdata2 here represent the entity id of two parties i.e. the ground truth. We use x[0] since the entity id is in the first column of every record. Here 0 represent the column index of entity id. If your entity id is in the second column, then use x[1] in the list comprehension. assess_blocks_2party needs them to compute the pair completeness. Have a look at the documentation for it here.
Hope it helps :)

Here an example of my dataset:
id, title, authors, venue, year

304, world wide, lyman ram, international conference, 1999
290, safe query, richard lomet, acm sigmod, 2001
279, database, pillip keim, international conference, 1998

The entity id should be x[0] as the id attribute is the unique attribute but using x[0] it doesn't work and gives the error ZeroDivisionError: float division by zero . Is there any way to fix this error instead of using x[1]?

Given entity id is in column 0, I don't think you should put x[1] in the list comprehension. There are few ways potentially might locate the problem:

Check if there is intersection between the id column in your two datasets
Check if your filtered_blocks_alice and filtered_blocks_bob are empty
Clone the latest the blocklib and install it manually with pip install. Wilko has pushed a PR to capture all float division by zero cases and throw the reason of that

Thanks Wang for your suggestions.

I have checked the data types of id in both datasets and have the same type.
2- filtered_blocks_alice and filtered_blocks_bob are not empty.
3- I have installed the latest version.

I still have the same issue. and here is the screenshot:

---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-34-127594d93068> in <module>
      5
      6 rr, pc = assess_blocks_2party([filtered_blocks_acm, filtered_blocks_dblp],
----> 7                               [subdata1, subdata2])

~\AppData\Roaming\Python\Python37\site-packages\blocklib\evaluation.py in assess_blocks_2party(filtered_reverse_indices, data)
     45     # pair completeness is the "recall" before matching stage
     46     rr = 1.0 - float(num_cand_rec_pairs) / total_rec
---> 47     pc = float(num_block_true_matches) / num_all_true_matches
     48     return rr, pc

ZeroDivisionError: float division by zero

Hello Wang I am also getting the same error "ZeroDivisionError: float division by zero". Can you suggest something to remove this error?

Here is the error sample :-

`

After running the evaluation methods I figure out that the ground truth value provided is different.
For Ex:- Id for data -1 is "conf/sigmod/AbadiC02" and Id for Data - 2 is in this form "f2Lea-RN8dsJ". So, when it calculating the intersection for num_all_true_matches = len(entity1.intersection(entity2))  it become zero and it raises "ZeroDivisionError: float division by zero" when we calculating pc value.
My question is, it's necessary that  ID or ground truth columns of both dataset should must be in same format?
In this case if my ID is different what is the other approach by which we can calculate rr and pc values.
Can we use year columns for this purpose?
id, title, authors, venue, year
conf/sigmod/AbadiC02, world wide, lyman ram, international conference, 1999


typo in chapter 8

page 189 of the pdf:
"set_fact allows us to define variables at runtime, so we can are guaranteed to have
all server IP addresses available,"

Thanks for posting this! I've fixed the typo and it will be corrected in the next book update (should be in a week or less).


Implement AsRef for Row(s)

I couldn't use Statement::expanded_sql while debugging:
statenent.query_map([test_date], |row| {
     // Impossible to see expanded sql here
 });

Breaking changes: Rows::column* and Row::column* removed now that you have access to underlying statement.

This seems fine if you want to merge it, but I vaguely remember something was only sound because we didn't expose this, so will want to do a quick pass over this code. I have a lot of free time next week to do this though.

This seems fine if you want to merge it, but I vaguely remember something was only sound because we didn't expose this, so will want to do a quick pass over this code. I have a lot of free time next week to do this though.

This seems fine if you want to merge it, but I vaguely remember something was only sound because we didn't expose this, so will want to do a quick pass over this code between then and releasing. I have a lot of free time next week to do this though.

#636 ?

This seems fine if you want to merge it, but I vaguely remember something was only sound because we didn't expose this, so will want to do a quick pass over this code between then and releasing. I have a lot of free time next week to do this though.

#636 ?

I think the issue was more along the lines of: what happens if you call step/reset or something else that causes that (like triggering another query) inside the closure?

I think the issue was more along the lines of: what happens if you call step/reset or something else that causes that (like triggering another query) inside the closure?

I think the issue was more along the lines of: what happens if you call step/reset or something else that causes that (like triggering another query) inside the closure?

You need a mutable reference to call step/reset, no ?

I think the issue was more along the lines of: what happens if you call step/reset or something else that causes that (like triggering another query) inside the closure?

You need a mutable reference to call step/reset, no ?

Not internally, but it's possible that in the public APIs we do https://github.com/rusqlite/rusqlite/blob/master/src/statement.rs#L897

Not internally, but it's possible that in the public APIs we do https://github.com/rusqlite/rusqlite/blob/master/src/statement.rs#L897


[Feature]: Put database in readonly mode

Is there an existing issue already for this feature request/idea?

[X] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?
Sometimes we'd like to put a DB in ready-only mode for data integrity purposes e.g. when disk space is getting low.
Describe the solution you'd like
If I googled and tested correctly, the following commands would have to be run to switch a DB in readonly mode:
ALTER SYSTEM SET default_transaction_read_only TO on;
SELECT pg_reload_conf();
SHOW default_transaction_read_only;

Describe alternatives you've considered
We looked into facing, but this stops the DB and doesn't allow further investigation of the DB.
Additional context
This would be an additional option to fencing and hibernating an instance.
Backport?
No
Are you willing to actively contribute to this feature?
Yes
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Not sure what would be the best way to implement. I see two options:

Add a kubectl plugin subcommand reayonly
Add a CRD parameter readonly

Do you prefer one other the other?

@baurmatt CRD parameter would be a good way. This shall help to directly define readonly in yml file itself


Fix Docker build, missing dependency

To have a working docker build, build-essential package is required,
as psutils python modules is getting compiled and requires a gcc.

There's a merge conflict.


Safari iOS event not firing

Appreciate this is an old repo but I can't find anything newer/better or any indicator this should/shouldn't work still.
On Safari on iOS, if I `alert('ondevicemotion' in window);`` it alerts "true" indicating the feature should be supported. However, even with the threshold set as low as 1, I still get no event on safari on iOS.
Any help much appreciated 🙏

For Safari on iOS you need to request permissions to enable access to device motion. See https://developer.apple.com/documentation/safari_release_notes/safari_13_release_notes#3314664

Also https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2

@alexgibson thankyou that's exactly what I was looking for 🙏


Support iOS 14.4

Please if you can support ios 14.4 for tweak MGSPOOF it’s will be grea helpful

Pleaaaase


[qtwebengine] Build failure on x64-windows

Package<EMAIL_ADDRESS>Host Environment

Host: x64-windows
Compiler: MSVC 19.39.33523.0
vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772
vcpkg-scripts version: f7423ee18 2024-06-14 (3 weeks ago)

To Reproduce
vcpkg install qtwebengine[proprietary-codecs]:x64-windows
Failure logs
-- Setting up python virtual environment...
-- Installing python packages: html5lib
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/repos/vcpkg/buildtrees/qtwebengine/x64-windows-venv/Scripts/python.exe -I -m pip install html5lib
    Working Directory: C:/repos/vcpkg/buildtrees/qtwebengine
    Error code: Exit code 0xc0000135

    See logs for more information:

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-get-python-packages/x_vcpkg_get_python_packages.cmake:110 (vcpkg_execute_required_process)
  ports/qtwebengine/portfile.cmake:69 (x_vcpkg_get_python_packages)
  scripts/ports.cmake:191 (include)

Could you please provide us with the C:\repos\vcpkg\installed\vcpkg\issue_body.md file? Thank you!

issue_body.md
Sure


Unable to Connect to Windows VM over WinRM using Azure Driver

Issue Description
I'm trying to use the Azure driver with Molecule, to test Ansible windows role on a virtual machine created in Azure Cloud.
The Windows virtual machine is successfully created on Azure Cloud with molecule setup.
But molecule is unable to connect to the VM over WinRM unless I manually provide the IP address.
Molecule and Ansible details are here below
molecule 5.1.0 using python 3.9
ansible:2.15.2
azure:0.5.0 from molecule_azure
delegated:5.1.0 from molecule
error message
fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "basic: HTTPSConnectionPool(host='instance', port=5986): Max retries exceeded with url: /wsman (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7ff698466ee0>: Failed to resolve 'instance' ([Errno -2] Name or service not known)"))", "unreachable": true}
molecule.yml
---
dependency:
  name: galaxy
driver:
  name: azure

platforms:
  - name: "instance"
    hostname: "win-test-molecule"
    image:
      offer: WindowsServer
      publisher: MicrosoftWindowsServer
      sku: 2019-Datacenter
      version: latest
    managed_disk_type: "Premium_LRS"
    managed_disk_size_gb: "128"

provisioner:
  name: ansible
   connection_options:
     ansible_user: <username>
     ansible_password: <password>
     ansible_connection: winrm
     ansible_port: 5986
     ansible_winrm_scheme: https
     ansible_winrm_transport: basic
     ansible_winrm_server_cert_validation: ignore

verifier:
  name: ansible

Please let me know any further details need from my end.

@milind173
Would you please provide the full log?


set GraphModel properties to be enumerable

this fixes the ability to use stuff like Object.assign({}, graph-model-object) properly, as Object.assign only works on properties which are enumerable. They are not set as enumerable by default when using Object.defineProperty.

Just re-rested usage with js-buy and buy-button-js. works as expected now! 👍


Feature-gate publicsuffix

publicsuffix is sometimes not needed. We can make it optional with a feature.

Thanks for the PR! This as merged and published as part of 0.17.0.


[BUG] defining custom model folder removes prior model's dir path

"sd_local_model_path":
"model_dir":
conflict with eachother

I don't understand what the problem is, can you be more specific? sd_local_model_path is the absolute path of the local model, and model_dir is the directory where the model is downloaded.

"sd_local_model_path": is where anything and all of the other sd models are contained, when i defined a custom model for stable diffusion anything is no longer in the list and instead points to my custom model

which #260 also doesn't work

This is the way sd_load_model_path currently works, and if sd_load_model_path is specified, it will be used first. To continue use your download anything model, you can remove --sd-load-model-path args

unfortunately i use the installer

This is the way sd_load_model_path currently works, and if sd_load_model_path is specified, it will be used first. To continue use your download anything model, you can remove --sd-load-model-path args

and if i do that i wouldn't be able to use custom models correct?

also file not found #260

This is the way sd_load_model_path currently works, and if sd_load_model_path is specified, it will be used first. To continue use your download anything model, you can remove --sd-load-model-path args

removing load model path also gave me this error


GNSS to XYZ

I found a simple way to transform the latitude and longitude GNSS data into the XYZ coordinatesystem.I don't understand why it works, but I would like to. The basic idea is, that it is just a transformation from a spheric to a cartesian coordinate system. My solution is as followed:
def get_gnss_data(self, raw_data):
timestamp = raw_data.timestamp
lat_rad = (np.deg2rad(raw_data.latitude) + np.pi) % (2 * np.pi) - np.pi
lon_rad = (np.deg2rad(raw_data.longitude) + np.pi) % (2 * np.pi) - np.pi
R = 6378135 # Aequatorradii
x = R * np.sin(lon_rad) * np.cos(lat_rad)       # iO
y = R * np.sin(-lat_rad)                               # iO
z = raw_data.altitude
self._gnss_data = [timestamp, x, y, z]
This functin is part from an object function and is called by a lambda function everytime, when the gnss sensor receives new data.
The Question is: Why does it work?
Usually it should something like this:
 x = R * np.sin(lon_rad) * np.cos(lat_rad)
 y = R * np.sin(lon_rad) * np.sin(lat_rad)
 z = R * np.cos(lon_rad)

@DSantosO could you have a look at this please?

I would be interested to know this as well if the issue can be reopened.


Adding download/deploy links to help the user

Hi @AlekseiPolkovnikov, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (alpolko). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@AlekseiPolkovnikov : Thanks for your contribution to the Azure documentation! The author, @sdwheeler, has been notified to review your proposed change.

#please-close

@sdwheeler np, however please make sure it is clear how to obtain it, thanks.


Range-based requirements in composer.json

At this time all requirements in composer.json are range-based (i.e. 3.1.*). Are you know why this scheme is used instead of the Next Significant Release operators (i.e. ^3.1)?
Probably the most of our dependencies is following SemVer, so there shouldn't be BC for not-significant updates.
I've just launched the composer outdated command and it says that we have a lot of outdated libraries:
Library                                    Current  New
---
block8/php-docblock-checker                1.0.3    1.3.4   A simple tool for checking that your PHP classes and methods use docblocks.
bower-asset/admin-lte                      <IP_ADDRESS> v2.3.11
bower-asset/eve-raphael                    <IP_ADDRESS>  v0.5.0
bower-asset/font-awesome                   <IP_ADDRESS>  v4.7.0
bower-asset/ionicons                       <IP_ADDRESS>  v2.0.1
bower-asset/raphael                        <IP_ADDRESS>  v2.2.7
codeception/codeception                    2.2.12   2.3.3   BDD-style testing framework
npm-asset/codemirror                       <IP_ADDRESS> 5.25.2
npm-asset/sprintf-js                       <IP_ADDRESS>  1.0.3
phpdocumentor/type-resolver                0.2.1    0.3.0
phploc/phploc                              3.0.1    4.0.0   A tool for quickly measuring the size of a PHP project.
phpmd/phpmd                                2.5.0    2.6.0   PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
robmorgan/phinx                            v0.6.6   v0.8.1  Phinx makes it ridiculously easy to manage the database migrations for your PHP app.
sebastian/git                              2.1.4    2.1.4   Simple wrapper for Git
Package sebastian/git is abandoned, you should avoid using it. No replacement was suggested.
sebastian/phpcpd                           2.0.4    3.0.0   Copy/Paste Detector (CPD) for PHP code.
squizlabs/php_codesniffer                  2.8.1    3.0.0   PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
symfony/config                             v3.2.9   v3.3.2  Symfony Config Component
symfony/console                            v2.8.22  v3.3.2  Symfony Console Component
symfony/debug                              v3.0.9   v3.3.2  Symfony Debug Component
symfony/dependency-injection               v3.1.10  v3.3.2  Symfony DependencyInjection Component
symfony/event-dispatcher                   v3.2.9   v3.3.2  Symfony EventDispatcher Component
symfony/yaml                               v2.8.22  v3.3.2  Symfony Yaml Component

I use range-based to not break PHP Censor (Because not all libraries follow SemVer strict). I agree that dependencies should be update. I will update it to new minor versions manually in the issue.

Fixed. Thanks @StudioMaX!


Partially revert "Generate Manual" target name

The name of "GenerateManualPlugin" was changed to "Generate Manual" to improve the plugin's display name in Xcode. This however results in the .pluginWorkDirectory provided by SPM to include a space (' ') in the path. The space in the output path by itself is not a deal breaker, but unfortunately man (at least on macOS) does not properly handle path arguments with spaces. Example:
➜  swift package generate-manual
...
Generating manual for roll...
Generated manual in '.build/plugins/Generate Manual/outputs/roll'
...
➜  man '.build/plugins/Generate Manual/outputs/roll/roll.1'
/usr/bin/man: line 413: cd: .build/plugins/Generate: No such file or \
  directory

IMO, easily previewing the generating manual takes precedence over the UI in Xcode; as a result, this commit partially reverts the plugin's name to "GenerateManual" to hopefully provide a good middle ground of an output path without a space and a display name in Xcode that is a little easier on the eyes than "GenerateManualPlugin" was.

@swift-ci please test

cc @clayellis @neonichu

@swift-ci please test

Sounds good, even more reason to pitch an explicit user-facing name for plugins.


Run by line stop icon change

Bug: Notebook Editor, Interactive Window, Editor cells

Actual behavior

Currently the STOP icon is to the left of the run icon and white.

Currently STOP button finishes running the cell

F10 not shortcut for run by line

Expected behavior

Run by line STOP icon needs to be moved to the right of the run by line icon and turned red, same formatting and placement as the main toolbar.

STOP button should actually stop (interrupt)

Add F10 as run by line shortcut

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

Validated. The interrupt does seem a bit funky to me. It looks like an error, when all I really want to do is say that I'm done debugging. But it matches the spec listed here.

The intent is to remove the interrupt when debugging. Not sure if there's an issue for it though. I'll add one.


Why requests are routed to different upstream servers even with same consistent hashing LB and hash key?

Title: Why requests are routed to different upstream servers even with same consistent hashing LB and hash key?
Description:
Hi, I'm currently using envoy's consistent hashing (ring hash, maglev) for load balance workloads to upstream servers, and I'm using header x-shard-key as hash parameter for consistent hashing.
I have two different request type: SDK API request which uses server port 11101, and admin API request which uses server port 11103. I want to route both requests to same upstream server (server affinity) when they have same x-shard-key value.
But even they have same x-shard-key, they routed differently (eg: SDK API request get routed to server A, and admin API request get routed to server B, even if they have same x-shard-key: chegor8n2c3c73dms560/codepair-1234).
I thought it was due to upstream servers have different host address(because two requests are routed to different ports), hashed output of upstream servers are different (eg: for SDK API request, host address will be <IP_ADDRESS>:11101 and <IP_ADDRESS>:11103 for admin API request).
So I configured hash_key to set same host address between two request type, but it did not work.
Below is example(test) of my envoy.yaml:
admin:
  access_log_path: /tmp/admin_access.log
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
    - name: yorkie_listener
      address:
        socket_address: { address: <IP_ADDRESS>, port_value: 8080 }
      filter_chains:
        - filters:
            - name: envoy.filters.network.http_connection_manager
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
                stat_prefix: ingress_http
                route_config:
                  name: yorkie_ring_hash_routes
                  virtual_hosts:
                    - name: yorkie_service
                      domains: ["*"]
                      routes:
                        - match: { prefix: "/" }
                          route:
                            cluster: yorkie_service
                            hash_policy:
                              header:
                                header_name: x-shard-key
                            # https://github.com/grpc/grpc-web/issues/361
                            max_stream_duration:
                              grpc_timeout_header_max: 0s
                      cors:
                        allow_origin_string_match:
                          - prefix: "*"
                        allow_methods: GET, PUT, DELETE, POST, OPTIONS
                        allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-api-key,x-shard-key,x-user-agent,x-grpc-web,grpc-timeout,authorization,x-yorkie-user-agent
                        max_age: "1728000"
                        expose_headers: custom-header-1,grpc-status,grpc-message, grpc-status-details-bin
                http_filters:
                  - name: envoy.filters.http.grpc_web
                  - name: envoy.filters.http.cors
                  - name: envoy.filters.http.router
    - name: admin_listener
      address:
        socket_address: { address: <IP_ADDRESS>, port_value: 9090 }
      filter_chains:
        - filters:
            - name: envoy.filters.network.http_connection_manager
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
                stat_prefix: ingress_http
                route_config:
                  name: yorkie_ring_hash_routes
                  virtual_hosts:
                    - name: yorkie_service
                      domains: ["*"]
                      routes:
                        - match: { prefix: "/" }
                          route:
                            cluster: admin_service
                            hash_policy:
                              header:
                                header_name: x-shard-key
                            # https://github.com/grpc/grpc-web/issues/361
                            max_stream_duration:
                              grpc_timeout_header_max: 0s
                      cors:
                        allow_origin_string_match:
                          - prefix: "*"
                        allow_methods: GET, PUT, DELETE, POST, OPTIONS
                        allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-api-key,x-shard-key,x-user-agent,x-grpc-web,grpc-timeout,authorization,x-yorkie-user-agent
                        max_age: "1728000"
                        expose_headers: custom-header-1,grpc-status,grpc-message, grpc-status-details-bin
                http_filters:
                  - name: envoy.filters.http.grpc_web
                  - name: envoy.filters.http.cors
                  - name: envoy.filters.http.router
  clusters:
    - name: yorkie_service
      connect_timeout: 0.25s
      type: strict_dns
      http2_protocol_options: {}
      lb_policy: ring_hash
      ring_hash_lb_config:
        minimum_ring_size: 125
      load_assignment:
        cluster_name: yorkie_cluster
        endpoints:
          - lb_endpoints:
              - endpoint:
                  address:
                    socket_address:
                      address: host.docker.internal
                      port_value: 11101
                metadata:
                  filter_metadata:
                    envoy.lb:
                      hash_key: "yorkie1"
              - endpoint:
                  address:
                    socket_address:
                      address: host.docker.internal
                      port_value: 11201
                metadata:
                  filter_metadata:
                    envoy.lb:
                      hash_key: "yorkie2"
              - endpoint:
                  address:
                    socket_address:
                      address: host.docker.internal
                      port_value: 11301
                metadata:
                  filter_metadata:
                    envoy.lb:
                      hash_key: "yorkie3"
    - name: admin_service
      connect_timeout: 0.25s
      type: strict_dns
      http2_protocol_options: {}
      lb_policy: ring_hash
      ring_hash_lb_config:
        minimum_ring_size: 125
      load_assignment:
        cluster_name: admin_cluster
        endpoints:
          - lb_endpoints:
              - endpoint:
                  address:
                    socket_address:
                      address: host.docker.internal
                      port_value: 11103
                metadata:
                  filter_metadata:
                    envoy.lb:
                      hash_key: "yorkie1"
              - endpoint:
                  address:
                    socket_address:
                      address: host.docker.internal
                      port_value: 11203
                metadata:
                  filter_metadata:
                    envoy.lb:
                      hash_key: "yorkie2"
              - endpoint:
                  address:
                    socket_address:
                      address: host.docker.internal
                      port_value: 11303
                metadata:
                  filter_metadata:
                    envoy.lb:
                      hash_key: "yorkie3"

As you can see, there are two listeners and clusters for two different request type, but they have same hash parameter x-shard-key and also same host address hash_key: "yorkie[n]" for consistent hashing lb. But requests were routed differently even they have same hash x-shard-key.
I could not find any other reasons for this behavior. Any ideas will be helpful.

I have misunderstood the usage of hash_key, which works on logical_dns.
I should have used use_hostname_for_hashing for strict_dns clusters.
Issue closed.


Getting a set your LANG environment variable error when LANG environment is set

Problem Description
mitmproxy is asking me to set the LANG environment variable to a UTF-8 language when it already is.
Steps to reproduce the behavior:

Start mitmproxy with LANG set
Look at the console output

What should happen
There should not be a warning/error.
What actually happens
mitmproxy expects a UTF-8 console environment, not ''. Set your LANG environment variable to something like en_US.UTF-8.

Screenshot

System Information
Mitmproxy: 8.1.0 binary
Python:    3.10.4
OpenSSL:   OpenSSL 3.0.3 3 May 2022
Platform:  Linux-5.17.12-300.fc36.x86_64-x86_64-with-glibc2.35

(Ubuntu 22.04 running under Distrobox on Fedora Silverblue 36.)

Does it start nonetheless?
Could you share the output of printer (please make sure to censor any tokens/secrets)?
FWIW here's the relevant code path:
https://github.com/mitmproxy/mitmproxy/blob/3eab9f0856403c53871d258bba289dfcbeb6e0df/mitmproxy/tools/console/master.py#L198-L206


ERROR: Package 'luma.core' requires a different Python: 2.7.9 not in '>=3.5, <4'`

Hi there!
It seems that the end of Python2 support affects Volumio-OledUI.
If want to install it (Volumio 2.729) I got the following Error:
volumio@volumio:~$ sudo pip install --upgrade socketIO-client-2 luma.oled DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please                                                                                upgrade your Python as Python 2.7 is no longer maintained. A future version of                                                                                pip will drop support for Python 2.7. More details about Python 2 support in pip                                                                                , can be found at https://pip.pypa.io/en/latest/development/release-process/#pyt                                                                                hon-2-support Collecting socketIO-client-2   Downloading socketIO-client-2-0.7.5.tar.gz (600 kB)      |################################| 600 kB 3.3 MB/s Collecting luma.oled   Downloading luma.oled-3.4.0-py2.py3-none-any.whl (18 kB) Requirement already satisfied, skipping upgrade: requests in /usr/lib/python2.7/                                                                                dist-packages (from socketIO-client-2) (2.4.3) Requirement already satisfied, skipping upgrade: six in /usr/lib/python2.7/dist-                                                                                packages (from socketIO-client-2) (1.8.0) Collecting websocket-client   Downloading websocket_client-0.57.0-py2.py3-none-any.whl (200 kB)      |################################| 200 kB 9.9 MB/s Collecting luma.core>=1.12.0   Downloading luma.core-1.14.0-py2.py3-none-any.whl (51 kB)      |################################| 51 kB 216 kB/s ERROR: Package 'luma.core' requires a different Python: 2.7.9 not in '>=3.5, <4'
I tried some things:

Install Python 3.5.2
tried it with pip3

If I install it with pip3, then the oledui.py stops, stating "socketIO.client" not found.
After that i installed SocketIO with pip and pip3.. the problem persists.
Actually I have no Idea how to fix that. Maybe you have an Idea?
Best wishes,
Christoph

Hi there,
I think it is necessary that we migrate to Python >= 3.5
I've tried lots of things but did not make any progress...
I will investigate it with some friends, but it would be great if you could have a look at it to.
Regards,
Christoph

I think I#ve found a workaround.
With the following changes in the installation it worked for me:
sudo apt-get update
sudo apt-get install -y python-dev python-pip libfreetype6-dev libjpeg-dev build-essential python-rpi.gpio
sudo pip install setuptools==42.0.0
sudo pip install --upgrade pip wheel
sudo pip install --upgrade socketIO-client-2
sudo pip install luma.oled==3.0.1

Hello Christoph,
thanks for sharing. We are mixing some old and new stuff to work together. Maybe we can move to different socketIO-client library. This one claims to support python 3.x:
https://pypi.org/project/socketIO-client/
pip3 install socketIO-client
I checked that it works w/o any change to OledUI script, until now just in my 2.7 python enviroment.
BTW, I like oxanium fonts you're using and I'd like to give appreciation to your coding as well. Keep it up!

Hi,
I think this would be the new installtion routine?
sudo apt-get update
sudo apt-get install -y python3-dev python3-pip libfreetype6-dev libjpeg-dev build-essential python3-rpi.gpio
sudo pip3 install --upgrade setuptools pip wheel
sudo pip3 install --upgrade socketIO-client luma.oled
sudo apt-get install python3-pycurl
I'm testing it in a minute....

Hi!
I figured some things out...
I think everything is running fine, except the SocketIO.
You can find what i installed under:
https://github.com/Maschine2501/Volumio-OledUI/wiki/Installation-Steps-(Nightly---Python3)
If i List all Pip 3 Modules:
volumio@volumio:~$ pip3 list
Package          Version

aenum            2.2.3
certifi          2<IP_ADDRESS>
chardet          3.0.4
idna             2.9
luma.core        1.14.0
luma.oled        3.4.0
Pillow           7.1.1
pip              20.0.2
pyftdi           0.50.0
pyserial         3.4
pyusb            1.0.2
requests         2.23.0
RPi.GPIO         0.7.0
setuptools       46.1.3
six              1.14.0
smbus2           0.3.0
socketIO-client  0.7.2
spidev           3.4
urllib3          1.25.8
websocket-client 0.57.0
wheel            0.34.2
You will notice that socketIO ist listet with a "-" and not with a "_" (as described in the documentation )
If i do "from socketIO-client import SocketIO" i get an Syntax error.
If i do "from socketIO_client import SocketIO" it states that no module named socketIO_client found...
Perhaps you can repeat my installation steps and have a look at it?
For me it seems to be the "only Problem" right now.

I'm trying to use python3.7.7 / 3.8.2, but I didn't get far. pip3 states there's no ssl module. Can you check for me: volumio@volumio:~$ openssl version
mine is OpenSSL 1.0.1t  3 May 2016

I'm trying to use python3.7.7 / 3.8.2, but I didn't get far. pip3 states there's no ssl module. Can you check for me: volumio@volumio:~$ openssl version
mine is OpenSSL 1.0.1t 3 May 2016

Hi,
i didn't mentioned it, sorry.
I've had same ssl issue wit python 3.8.2...
Somewhere was stated that 3.8, 3.7 are not for the use on a raspberry..
I was not able to resolve the ssl problem.
Therfore I've changed to 3.5.2.
Which actually is working "fine"... excluding the "socketIO" problem...

volumio@volumio:~$ openssl version
OpenSSL 1.0.1t  3 May 2016
volumio@volumio:~$ python --version
Python 2.7.9
volumio@volumio:~$ python3 --version
Python 3.5.2

PS: If you want, we can make a discord channel, maybe this would help us to solve this problem faster?

Good Evening!
I've good news!
I just got my version of Volumio-OledUI running in Python3(.5.2).
.
.
.
But!
The Script only works, if i start it with:
"sudo python3 Volumio-OledUI/oledui-nightlyPY3.py"
Otherwise (.service) it keeps saying "no module socketIO_client found"
I tried some things with the .service file, but did not solve this problem...
So maybe give it a shot ;)

Hello, that sounds good. Maybe there's only problem with path where socketIO_client is installed. Check "pip3 show SocketIO-client". And you can probably tell pip where to install.
I didn't succeed with python3.5.2 neither, maybe I messed up something with openssl before.

I advise to get a clean start ;)
What did you mean by "tell pip where to install"?
volumio@volumio:~$ pip3 show SocketIO-client
Name: socketIO-client
Version: 0.7.2
Summary: A socket.io client library
Home-page: https://github.com/invisibleroads/socketIO-client
Author: xxxxxxxxxxxxxxxxxxx
Author-email: rhh@xxxxxxxxxx
License: MIT
Location: /usr/local/lib/python3.5/site-packages
Requires: websocket-client, six, requests
Required-by:

Yes, it realy needs new clean sd image. Someday :-)
Your path looks normal. If you take a look at instructions, they are using isolated environment, so you may try to install this virtualenv. I have never used that before.

I read the instructions. But with sudo it worked anyway, so i guess it's not needed... But i'll try it

Edit:
After i uninstalled socket IO and reinstalled it with:
"sudo pip install --target=/usr/local/lib/python3.5/site-packages socketIO-client"
it is functional by starting it manually with"python3 oledui-nightlyPY3.py"
But now somehow the .service is not working anymore...

in .service file in your respository I see
"ExecStart=/usr/bin/python -u /home/volumio/Volumio-OledUI/oledui-nightlyPY3.py"
--> forgot to change to python3 ?

in .service file in your respository I see
"ExecStart=/usr/bin/python -u /home/volumio/Volumio-OledUI/oledui-nightlyPY3.py"
--> forgot to change to python3 ?

Yeah, i changed it on the Pi to python3 allready, with no success.
I just removed OledUI completely, changed the srvice file to Python3 (in github) and made a clean install.
After reboot this is the journal:
volumio@volumio:~$ sudo journalctl -fu oledui-nightlyPY3.service
-- Logs begin at Tue 2020-04-14 06:42:51 CEST. --
Apr 14 06:42:55 volumio systemd[1]: Starting Volumio oled UI nightly...
Apr 14 06:42:55 volumio systemd[1]: Started Volumio oled UI nightly.
Apr 14 06:42:57 volumio oledui-nightlyPY3[631]: Traceback (most recent call last):
Apr 14 06:42:57 volumio oledui-nightlyPY3[631]: File "/home/volumio/Volumio-OledUI/oledui-nightlyPY3.py", line 18, in
Apr 14 06:42:57 volumio oledui-nightlyPY3[631]: from socketIO_client import SocketIO
Apr 14 06:42:57 volumio oledui-nightlyPY3[631]: ImportError: No module named 'socketIO_client'
Apr 14 06:42:57 volumio systemd[1]: oledui-nightlyPY3.service: main process exited, code=exited, status=1/FAILURE
Apr 14 06:42:57 volumio systemd[1]: Unit oledui-nightlyPY3.service entered failed state.
But if i start it normaly everything is ok, display and code working like charm:
volumio@volumio:~$ python3 Volumio-OledUI/oledui-nightlyPY3.py
b'Absolut Radio'
Queue length is 1
b''
b''
b''
b'Aerosmith - Amazing | Absolut Radio '
b'Aerosmith - Amazing | Absolut Radio '
b'Ray Charles - You Were There | Absolut Radio '
b'Ray Charles - You Were There | Absolut Radio '

You are so close :-) But where's the problem..
check /usr/bin/python3 -V
probably correct path is now /usr/local/bin/python3
You can also check other modules like luma being accessible. execute /usr/local/bin/python3
and "import luma.core", "import socketIO_client"

You are so close :-) But where's the problem..
check /usr/bin/python3 -V
probably correct path is now /usr/local/bin/python3
You can also check other modules like luma being accessible. execute /usr/local/bin/python3
and "import luma.core", "import socketIO_client"

Holy Fu**** Sh**...
It was the path:  /usr/local/bin/python3
Thank you for your assistance!!!
I've changed it in my repository, maybe you can test if my installation routine is working for you?
Or if there are steps which are not needed?!

Happy to hear that!
I'm not moving to python3 these days. It would be best if volumio itself is built on later raspbian.
 Just to sit along with other modules if possible.
Thank you too! Nice cooperation.


Getting turned to a rev makes the rev antag sound

About the PR

Pretty simple, just plays the sound efter being converted
Why / Balance

Technical details

Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

https://github.com/space-wizards/space-station-14/assets/34938708/0797c6cb-eb13-4ac6-a05a-906984466779
Breaking changes

Changelog

:cl: Vasilis

add: Getting turned into a rev will now play the rev antag sound effect.

epic


fix(XXX): fix exclusive page response json data structure

Pull Request Checklist

[ ] 📖 I created my PR using provided  : CODE_STANDARDS
[ ] 📖 I have read the short Code of Conduct: CODE_OF_CONDUCT
[ ] 🏠 I tested my changes locally.
[ ] ✅ I have provided tests for my changes.
[ ] 📝 I have used conventional commits.
[ ] 📗 I have updated any related documentation.
[ ] 💾 PR was issued based on the Github or Jira issue.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 46.13%. Comparing base (77011ac) to head (4b0bb80).

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #748   +/-   ##
=======================================
  Coverage   46.13%   46.13%
=======================================
  Files         328      328
  Lines       16700    16700
=======================================
  Hits         7705     7705
  Misses       8421     8421
  Partials      574      574

Flag
Coverage Δ

unittests
46.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report in Codecov by Sentry.

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


nvim-treesitter

i have freshly installed lua.vim w/o changes on ubuntu 22.04 lts. when i open a cpp file i can see the error below:
                    Error detected while processing FileType Autocommands for "*":
Error executing lua callback: .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:26: attempt to call field 'start' (a nil value)
stack traceback:
        .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:26: in function 'attach'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:505: in function 'attach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:528: in function 'reattach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:131: in function <...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:130>

Had the same issue on ubuntu looks like the ubuntu ppa has version 0.7 so I installed the latest version from source instead and the error is gone, hope it helps

Had the same issue on ubuntu looks like the ubuntu ppa has version 0.7 so I installed the latest version from source instead and the error is gone, hope it helps

Thanks for your hint - did you install nvim from source or treesitter then? Which installation instructions did you follow?

FWIW, I run into this, when using nvim 0.7.2 as provided by debian. The solution is indeed to update to a later version; see the releases page, pick a package/app image/source from there and proceed to install a newer version of nvim on your system.

Yeah -- this is outdated neovim problem. Shouldn't happen on the supported versions of neovim.


Elasticsearch support for asynchronous operations

We are currently supporting only synchronous calls.
A good place to capture probably all async operations would be org.elasticsearch.client.RestClient#performRequestAsync(Request, ResponseListener), where we have the request available and we can hook on the ResponseListener to capture both responses and errors.
However, the ES client is relying on Apache HttpAsyncClient, so in order to make the async correlation we will probably first want to have a basic support for that.

Maybe a good chance to implement #479 as well


fix multi_distinct_sum should inherit NullableAggregateFunction (#28349)

pick from master
PR #28349
commit a540b7eb43938a70155f2cd768b36584666f459b
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Update test and production URLs to use chasepaymentech.com for TLS 1.2 and SHA-2

New Chase Paymentech Test/Production URLs for upcoming TLS v1.2 and SHA-2 roll-out after 2017-09-30.

To ensure uninterrupted processing of payments after September 30, 2017, please update your systems with enhanced internet security standards TLS v1.2 and SHA-2. Please refer to previous communications sent to you or consult your Chase Merchant Services relationship manager to ensure compliance with these new standards.

Build failing since targeting precise dist for php 5.3, but no longer supported in Travis.
See https://docs.travis-ci.com/user/reference/trusty#PHP-images

Bumped PHP versions on master if you want to merge those in and try the build again. Thanks for the fix!

Hi @mmacaulay -- As part of our planning around the 9/30 date, I wanted to touch base on this PR to see if it would be merged in time for additional testing before then?
Also, I'm not clear on who maintains updating Packagist? TWG or @jeremib ?

Unfortunately I only have a forked version of this, not the maintainer of the original one on packagist.

Hi @pixelchutes and @jeremib, I apologize for not getting back to you on this sooner. It's been a busy last few days around here. I'll merge this in now.
It's also worth mentioning that TWG originally built this library for a client project a while back and we're no longer actively using it, so it might make more sense to standardize on @jeremib's fork going forward.


new component snackbar

Hi, I created a snackbar component, and add to the example.
see it on my github page, at last navigation item
Also change FormValidator to use the snackbar when invalid

HI @yestaro , thanks for the contribution. Please let us know what you plan to work, since we were very close to overlap, since I was yesterday planning on making this component! ;). So my recommendation is that you post on the list that you plan to do some task, so others could be aware and avoid working on the same.
@piotrzarzycki21, if you are ok, I can review the component and make the adaptations that could need.
Maybe is too late to get it on the release, I'll notify if I get it integrated, and if release process is not started, I can add it, if not it will be for the next! :)
thanks

@carlosrovira Actually I prefer that @yestaro do those changes with your help step by step if anything needed. Describe what is needed etc.
I will start RC1 hopefully tomorrow morning. You have more info on Dev list. Anything new should go on the branch.

Hi @yestaro,
I integrated your changes to "feature/jewel-snackbar" so we can check together the actual problems.

First commit is your code with conflicts solved.
Second commit fix CSS rules for SASS, since I think you are not compiling SASS.  Check the comments please. There's more to know about CSS in Jewel, but I have to write a GitHub page since I still didn't share that info. I'll do as I have some time. For now CSS is ok for what we want now.

From here, you see Jewel library is failing to compile. For example, the first thing I see is that class Event is not imported in SnackBarView.as. Then it complains about "Element" Type is not found (Maybe Element is HTMLElement).
I'll stop in this point so you can check out the branch and try to compile and then we can go from there.
Thanks!

Hi @yestaro,
I fix the compilation problems, and I found that you didn't have the class Event imported in a file and some COMPILE::JS declaration blocks in other class. That was causing the compilation fail. With that all compiles ok and work.
Can you confirm that the the code was compiling for you without the Event import and COMPILE::JS declaration blocks? if so, maybe is cause you're using a js-only setup? (I didn't try that kind of setup)

Hi @carlosrovira
I use vs code and live sass complier to develop snackbar, the asconfig.json compilerOptions.targets only for JSRoyale.
obviously it is not enough, I will setup the full environment with maven later to confirm that for learning.
Next, I plan to study the reflection for Validation Metadata you mentioned, what is the first step I need to know?

Hi @yestaro perfect. I think it's better to have all the setup.
For Validation Metadata, I must to admit that I still didn't see how to do it. Alex said that we should have all pieces to do this work already. To keep Metadata info, you should see how it's donde in other parts of the framework (Bindable, RemoteClass,...) and take a look for inspiration to GDS (Granite Data Services). If you make progress on that front I'll check that work since we need as well other libs like something similar to Swiz :).
Thanks for working on this!! :)

@yestaro I integrated all your code in develop now. Please take a look to each commit to see the changes I had to do, so you can continue approximating to merge with no changes. I'll make some doc about styles in Jewel in 2-3 days as I get free of some tasks I need to do, so you can be more free doing Jewel development in the future.
Congratulation once again and Thanks! :)


Pausing a video causes it to resume without audio

Bug
This is a strange one, started happening a few weeks ago I think. If I am watching a video, and then I pause it, even for a few seconds, then when I click play it plays without audio.
I can stop and replay it, and even seek, and it will not have audio. I can leave the page, or close the browser entirely, and it still won't have audio when resuming from that point. But I can get the audio back by playing from the beginning, or by seeking to a different location and then letting it play without audio for a while - eventually the audio will return after playing in silence for a while.
To Reproduce
Steps to reproduce the behavior:

Go to a video and play it for a few minutes.
Pause the video for 10 seconds.
Click play again.
Video plays without audio.

Expected behavior
The video should have audio immediately upon resuming playback.
System Configuration
On odysee.com, Windows 10 and on Mac.
Firefox 113.0.1 (64-bit)

Is this also happening on other browsers for you? Might be a Firefox specific bug or change they did.

Hmm I can't reproduce it in Chrome. However, Odysee is the only affected website in Firefox, all other video sites work fine.

It's most likely something inside videos itself, or a browser bug. Will try Firefox here.
We'll look at videos updates, but the next major one still had some issues to work out.

I doubt it will help, but just curious -- does hitting Ctrl m help to clear things?


⚠ ClamAV has degraded performance

In 05292ca, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 446 ms

Resolved: ClamAV performance has improved in 485a568.


Misaligned sidebar label

The label on the sidebar does not line up with other elements.

@SimonBarrettACT This is fixed in the latest release.


Improve Image Optimization + Re-Add Base64 & Placeholder Color Support

Jira
http://vjira2:8080/browse/BDS-1555
Summary
Globally restores the missing base64 + average image color data when generating image cuts from the @bolt/build-tools (note: all of this logic is now handled via Node.js vs PHP logic)
Details
WIP
How to test
WIP

@colbytcook closing this draft. The image optimizations are just for Bolt demos. The Twig changes are nice-to-haves that we can reimplement when/if we rework the image component. There's no demand for these features at the moment.


Increased version if the gem shipify_api

Clubhouse: ch1234
Description
A brief overview of the work done. Be sure to provide some context to the issue/feature, so that the reviewer can jump right on in and review your sweet, sweet code.
Highlight any interesting design decisions that you may have taken.
Notes

A bulleted list of any secondary information that you feel would be useful to the reviewer.
Gotchas, new dependencies, unusual data migrations, etc., would all live here.

Checklist

[ ] Updated README and any other relevant documentation.
[x] Tested changes locally.
[ ] Updated test suite and made sure that it all passes.
[ ] Ensured that Rubocop and friends are happy.
[ ] Checked that this PR is referencing the correct base.
[ ] Logged all time in Clockify.

Tested

Approved


Add tracking to portal

Need to link with @dvnahuel to discuss what metrics we should be collecting from the portal app

As part of this PR, we need to

Add to Github vars the Tracking URL (NEXT_PUBLIC_ANALYTICS_URL)
Add the Website Id to GitHub secrets  (NEXT_PUBLIC_ANALYTICS_WEBSITE_ID)

I can ping either to provide the values
cc @dhidalgX @daniel-bloq


[Bug] Unable to Open "Choose File" Dialog

Describe the bug
Unable to open "Choose File" window when choosing file type data for multipart form.
To Reproduce
Steps to reproduce the behavior:

Go to any "POST" request
Change the body type to "Multipart" and
Add a field and change the type to "File"
Click on "Choose File"
Insomnia freezes for couple seconds, then nothing happens.

Expected behavior
User is then allowed to choose a file on their system.
Desktop (please complete the following information):

OS: macOS 10.15.3
Installation Method: Downloaded from website
App Version 7.1.1

Additional context
The following information was found in system logs.

Restarting the computer seems to resolve the issue.

I'm guessing it's some sort of permissions issue, not related to Insomnia. Does it work with regular files on your Desktop, for example?

Hey @gschier ,
Thanks for responding. The issue isn't with selecting a specific file, it's about just opening the "Choose File" dialog window. Clicking on "Choose File" button simply freezes Insomnia for a few seconds, and nothing happens.

Thanks for clarifying. I'm not able to reproduce the issue on my machine, unfortunately.

Closing as stale.


Capture the name of the record or enum inside the schema

The same as Field[A] have a label, record and enums could have a name, so in the following example getName method would be able to return "Person" String with the help of Schema
case class Person(name: String, age:Int)
def getName[A](implicit i: Schema[A]) : String = ???

assertTrue(getName[Person] == "Person")

Done in #246


fixup/smoketest

[issue#306] Add missing ClusterRoles
Fix up the RBAC setup for prometheus-stf (#467)
Fix smoketest to use prometheus-stf for token retrieval
Refactor smoketest script

DO NOT MERGE THIS ONE!
This is to allow some independent testing via CI prior to merging. Please review #468 which will be easier to parse.

Seems like Jenkins likes me and found PR-468 so I'm closing this one out.


[5.6] Add getDoctrineDriver method to \Illuminate\Database\Connection

Add getDoctrineDriver method to \Illuminate\Database\Connection

since in

    /**
     * Get the Doctrine DBAL schema manager for the connection.
     *
     * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
     */
    public function getDoctrineSchemaManager()
    {
        return $this->getDoctrineDriver()->getSchemaManager($this->getDoctrineConnection());
    }

Method getDefaultSchemaGrammar has the same realization now in Connection.
    /**
     * Get the default schema grammar instance.
     *
     * @return \Illuminate\Database\Schema\Grammars\Grammar
     */
    protected function getDefaultSchemaGrammar()
    {
        //
    }

in \Illuminate\Database\Connection used a getDoctrineDriver method.
Also... Could we add abstract to Connection class for 5.7?

Why?

@taylorotwell ,
We have the
    public function getDoctrineSchemaManager()
    {
        return $this->getDoctrineDriver()->getSchemaManager($this->getDoctrineConnection());
    }

within the Connection class, where we used the
getDoctrineDriver

method.


ImportError: No module named imageai.Detection

I've been using ImageAI in another folder, and it worked totally fine.
now I am trying to use them again in another folder, starting with testing object detection.
But I got the message 'ImportError: No module named imageai.Detection'.
I uninstalled ImageAI and installed again using pip3 and they said it installed successfully, but got the same error when I run the code.

Do you make use of Virtual Environment for your Project? Ensure you installed ImageAI and its dependencies in the same runtime as your project's.

i want to run from imageai.Detection import ObjectDetection program as a window service. please help me @OlafenwaMoses

@youjinChung Did you found a solution ?

I'm facing the same issue :/

I've just solved this issue for myself, first ensure you're using the right version of python.
Next try deleting your virtual environment and creating a new one using 'venv', and insure it's in a directory with no other virtual environments.
Follow the venv docs here, if you have multiple versions of python installed, make you're running these commands from the directory which contains the correct version of python. Version 3.7.* worked for me.
https://docs.python.org/3/library/venv.html
Follow the package installation guide in the imageai docs. (Page 5)
https://buildmedia.readthedocs.org/media/pdf/imageai/latest/imageai.pdf
After remaking the environments, using the correct version of python, and installing everything carefully, it worked for me.


Adding support for proxy w/ rkt kubelet

This also includes some minor refactor work to reduce the number of when deployment type == x. If necessary I can split that off into a separate PR.

ci check this

not sure how/where this was introduced, but its failing because /etc/cni and /opt/cni doesnt exist/get created for flannel. doing some more testing locally and i'll get that fixed up.

ci passed but looks like it's reporting wonky.


Switch torrent stream

Can you give this a test if you get a chance please Emily - I'm out for the next few hours

Will test it in an hour or two


compare Instructions params

Partially fixes #1989 (the test.python.transpiler.test_optimize_1q_gates.TestOptimize1qGates.test_optimize_h_gates_pass_manager case)
The sympy.py value needs to match the float version of pi:
> sympy.pi == 3.141592653589793
False

> float(sympy.pi) == float(3.141592653589793)
True

The second element of this patch is that the instruction snapshot creates params with symbols (i.e. [1.00000000000000, statevector], so literal comparison (as before) is needed too.

I added the rest to fully fix #1989


React package folder cleanup

Before:

The packages/react/src directory was very flat, and almost all .tsx and .test.tsx files were in the root directory
Storybook stories were in a separate directory

After

Adopting Mantine folder conventions
One folder per component
All files for that component are in the directory: main .tsx, test .test.tsx, storybook .stories.tsx, and related helpers

This should be a functional no-op

Coverage decreased (-2.004%) to 92.198% when pulling f73d2edc8b37db237d7a6e8614ce15a9ec264e20 on cody-react-folder-cleanup into 15acb1a52373337c61a45628cb27281072c6d943 on main.


Add CUDA unit tests for tsvd

Will help testing/debugging

Better to test vs python for now as we want to compare to sklearn.


If wrangler preview starts the first browser process, it hangs waiting for it to exit

🐛 Bug Report
Environment

operating system: Linux
browser: Google Chrome
output of rustc -V: N/A
output of node -v: N/A
output of wrangler -V: 1.2.0

Steps to reproduce

Completely close your browser.
Run wrangler preview --watch.

What did you expect to see?
Wrangler starts the browser, then proceeds to watch for changes to the source code.
What did you see instead?
Wrangler starts the browser, then hangs waiting for the browser to exit before it begins watching for changes, defeating the purpose of --watch.
The problem is that running the browser (e.g. running google-chrome <url> on the command line) behaves differently if another browser process is already open or not.

If a process is already running, the new process tells the existing process to open a new tab, and then the new process exits immediately.
If no browser process is already running, the new process becomes the main process, and does not exit until the user closes all browser windows.

When Wrangler opens a preview window by executing the browser, it waits for the process to exit before proceeding. That works fine in the first case but not the second case.
Instead, Wrangler should start the browser process and then not wait for it. Ideally, it would also start the browser in a new process group (using setpgid()), so that ctrl+C'ing wrangler doesn't kill the browser process, and a new session ID (using setsid()), so that closing the terminal doesn't kill the browser process. It should probably also redirect the browser's stdin/stdout/stderr to /dev/null.

@kentonv is  this still a problem in v1.9.0? it appears that if  it is, it is not reproducible on mac (or at  least mine).

Yeah, I can still reproduce this.
It's possible that Chrome on Mac behaves differently when run from the command line -- maybe it doesn't block the command line like it does on Linux. Certainly on Windows I'd expect Chrome does not block the command line... but naively I'd expect Mac to behave closer to Linux than to Windows. But anything is possible.
It's also possible that you already have a chrome process running in the background. Even if you close all chrome windows, sometimes it'll leave a process running for the purpose of implementing apps or notifications or some other nutty feature. To see the behavior I'm seeing, you really have to have completely killed Chrome from the background such that wrangler is causing it to start fresh.


⚠ Bofrost.at has degraded performance

In 41b3023, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1425 ms

Resolved: Bofrost.at performance has improved in 0818cce after 7 minutes.


WIP: Use Travis-CI to check library

Fails if invalid or non-canonical files were committed.
WIP because LibrePCB CLI 0.1.1 is not released yet.

Version 0.1.1 is released, and the tests pass!
Is this PR ready for review?

@ubruhin This would be awesome to have! A lot of time reviewers need to check recurring stuff that could be automated like this :slightly_smiling_face:

@ubruhin This would be awesome to have! A lot of time reviewers need to check recurring stuff that could be automated like this slightly_smiling_face

It does not really check for library conventions since we can't suppress specific messages yet (which would be needed for checking library elements on CI). It's mostly useful for generated files to check whether they are canonical, i.e. LibrePCB would write them exactly identical.

Should we maybe use CircleCI with a Docker image that already contains the librepcb-cli stuff? Or is this nod possible because of the xvfb requirement?

Actually I'd like either Azure Pipelines (because we already use that for LibrePCB itself) or the upcoming GitHub integrated CI (which is based on Azure AFAIK). I don't like to use too many different CI systems if not absolutely needed.
And yes, I'd like to use a Docker image but unfortunately our official librepcb-cli image doesn't work on Azure because it has an entrypoint set (and maybe also because it's based on Alpine). Now I'm not sure what would be the best solution... Probably we would have to create an extra Docker image specifically for CI of libraries.

Replaced by #50.


Feature Request: File Format Recognition

Currently the library is checking for the file extension to identify the format.
But in some case an audio file may have a different file extension but the actual data might me of different format.
In this case the library will fail to load the audio file.
So it is better to scan the file headers (signatures) for the File Format details.
Here I have attached an example of implementing it.

Get Codec - copy.zip
This implementation is done in LabVIEW, if it is already available in the dll, it would improve the efficiency (by avoiding opening & closing of file).
File signature details can be found at https://en.wikipedia.org/wiki/List_of_file_signatures

Thanks for raising this issue, and for the example code and references. It was on my todo list :)
It will probably need to be implemented in the C++ code, so we can open files with unicode paths. In the event those file signatures don't exist (perhaps due to APEv2 tags), the function will fall back to the file extension method.

File signature detection has been added, and is applied when opening an audio file. A file's codec can also be queried by calling Get Audio File Info.vi. Thanks for raising the issue.

Nice to have it. Thanks for the update.


Some files in the database are not in the index

These files are on disk, but no in library.yml:

database/main/Ti/Rakic.yml
database/glass/schott/P-SF69.yml
database/organic/C2H6O2 - ethylene glycol/Sani2.yml
database/organic/C2H6O2 - ethylene glycol/Sani1.yml
database/main/Ag/Sthrenberg.yml

Checks were performed with the Python script below.
Typical output:
File number mismatch: 1508 files in the index, 1441 files on disk
1436 unique files in the index, 1441 unique files on disk

database/glass/schott/N-BK7.yml appears 3 times in the index
[...]

Files in one set but not the other:
database/main/Ti/Rakic.yml
database/glass/schott/P-SF69.yml
database/organic/C2H6O2 - ethylene glycol/Sani2.yml
database/organic/C2H6O2 - ethylene glycol/Sani1.yml
database/main/Ag/Sthrenberg.yml

All files of the index have their counterpart on disk.
Some files on disk are not in the index :
database/main/Ag/Sthrenberg.yml
database/glass/schott/P-SF69.yml
database/organic/C2H6O2 - ethylene glycol/Sani2.yml
database/main/Ti/Rakic.yml
database/organic/C2H6O2 - ethylene glycol/Sani1.yml

import yaml

import os
import fnmatch
from collections import Counter

if __name__ == "__main__":
    path = "database"
    db = "library.yml"

    ## List all YML files to process, recursively.
    yaml_files = [os.path.join(dirpath, f)
                    for dirpath, dirnames, files in os.walk(path)
                    for f in fnmatch.filter(files, '*.yml')
                 ]
    # Skip index
    yaml_files.remove("database/library.yml")

    ## Load index
    data = yaml.load(open(os.path.join(path, db), 'r').read())
    ct = []
    indexed_files = []

    # 5 main categories, ordered: main, organic, glasses, other, 3D
   for cat in data:
        cat_shelf = cat["SHELF"]
        cat_name = cat["name"]
        cat_content = cat["content"]
        ct.append({"name":cat_shelf, "desc":cat_name, "content":{}})
        # Each category has several books
        divider = "root"
        ct[-1]["content"][divider] = []
            for cat in data:
        cat_shelf = cat["SHELF"]
        cat_name = cat["name"]
        cat_content = cat["content"]
        ct.append({"name":cat_shelf, "desc":cat_name, "content":{}})
        # Each category has several books
        divider = "root"
        ct[-1]["content"][divider] = []
        for book in cat_content:
            if "DIVIDER" in book:
                divider = book["DIVIDER"]
                ct[-1]["content"][divider] = []
            elif "BOOK" in book:
                book_cat = book["BOOK"]
                book_name = book["name"]
                ct[-1]["content"][divider].append({"book_cat":book_cat,
                                    "book_name":book_name,
                                    "book_page":{}})
                subpage = "root"
                ct[-1]["content"][divider][-1]["book_page"][subpage] = []
                for page in book["content"]:
                    if "DIVIDER" in page:
                        subpage = page["DIVIDER"]
                        ct[-1]["content"][divider][-1]["book_page"][subpage] = []
                    else:
                        page_auth = page["PAGE"]
                        page_name = page["name"]
                        page_path = os.path.join(path, page["path"])
                        ct[-1]["content"][divider][-1]["book_page"][subpage].append({
                                "page_auth":page_auth,
                                "page_name":page_name,
                                "page_path":page_path
                                })
                        indexed_files.append(page_path)

    yml_files_num = len(yaml_files)
    yml_files_indexed_num = len(indexed_files)
    if yml_files_indexed_num != yml_files_num:
        print("File number mismatch: {} files in the index, {} files on disk".format(yml_files_indexed_num, yml_files_num))
    unique_files = set(yaml_files)
    unique_files_index = set(indexed_files)

    print("{} unique files in the index, {} unique files on disk".format(len(unique_files_index), len(unique_files)))
    print("")
    counts = Counter(indexed_files)
    most_referenced = counts.most_common(yml_files_indexed_num - yml_files_num)
    for name, value in most_referenced:
        if value <= 1: continue
        print("{} appears {} times in the index".format(name, value))

    print("")
    files_intersection = unique_files.symmetric_difference(unique_files_index)
    print("Files in one set but not the other: ")
    for ff in files_intersection:
        print(ff)

    print("")
    if (unique_files_index <= unique_files):
        # Files on disk are a subset of the files in the index
        print("All files of the index have their counterpart on disk.")

        diff = unique_files.difference(unique_files_index)
        if len(diff) > 0:
            print("Some files on disk are not in the index :")
            for ff in diff:
                print(ff)
    else:
        print("Some files of the index are not on disk :")
        for ff in unique_files_index.difference(unique_files):
            print(ff)

fixed!


cargo make not running tasks in makefile.toml

Describe The Bug

running cargo make test runs the pre and post tasks, but doesn't run the actual test itself. i tried with our existing makefile and by deleting the makefile in the repo to use the default task that cargo-make has. i tried with latest, v0.35, and v0.34. my coworkers experience the same problem, so there is something weird with our project. it was working as recently as a week or two ago. the same behavior exists for all the other tasks in our makefile. navigating into the src directory and running cargo make test works as expected using the default task
it works as expected in a different repo. ~so i'm not sure what the issue is or where would be a good place to start looking for potential causes~
To Reproduce

add
[workspace.metadata.release]
pre-release-commit-message	=	"[RELEASE] {{version}}"

to cargo.toml
commenting those two lines out in our cargo.toml makes cargo make work as expected

any chance you can create some simple test case for me to look at?

ok, i think this is a bug I have that i assume its a workspace since you have a workspace entry in the cargo.toml although its not really a workspace.

ok, it is considered a workspace per the docs, but need to add the root package as well if defined. i guess that is your setup, right?

@TomPridham I think i fixed it.
can you please reinstall from the 0.35.10 dev branch and tell me if it resolves the issue?

yep. that seems to fix it. thanks for the quick response!

thanks for checking it

released as part of 0.35.10


Fix Host field in HTTP request when using pdns provider

The Host field of the HTTP request is set incorrectly when passing
the configured server.  The underlying HTTP library experts a hostname
to be passed.  When passing it a string of the form 'http://pdns.example.com'
this gets converted into 'http:' (stripping everything from the first
slash onward).  However setting the Host field in the pdnsClientConfig
object is not needed because the underlying library will then parse the
hostname from the URL.
Fixes #661
Signed-off-by: Bartel Sielski<EMAIL_ADDRESS>

@bartelsielski thanks for the PR!


[BUG] SKShaper/DrawShapedText ignores SKPaint.TextAlign property

Description
When drawing text with DrawShapedText, the specified TextAlign in SKPaint is ignored.
Code
using var paint= new SKPaint { ... TextAlign = SKTextAlign.Center ...};
canvas.DrawShapedText(shaper, "test", width / 2f, (height / 2f) + (paint.FontMetrics.XHeight / 2), paint);

Would result in:

When I would expect the same behaviour as DrawText as for the alignment.

I am opening a PR to fix it,

This should be closed yeah?


OpenBSD port no longer available: marked "broken" in tree

Running pkg_add -v micro on a fresh install of OpenBSD 7.6 says Can't find micro. It turns out this is because it was marked broken due to something about syscall usage earlier this year. I'm not sure where to look for more information on that.

I do not know much about BSD systems and syscalls so I may be wrong somewhere, but I tried checking what can be done to not have the OpenBSD port marked as broken. There are few parts in micro module dependencies where syscall.Syscall* are called, but it is written in this part in OpenBSD 7.5 release page that syscall(2) is removed:

Security improvements:

...
Removed support for syscall(2), the 	"indirection system call," a dangerous alternative entry point for all system calls.
Together with pinsyscalls(2) this change makes it impossible to perform system call through any other way than the libc system call wrapper functions.
Users of syscall(2), such as Perl and the Go programming	language were converted to use the libc functions.

The removal of syscall(2) is reported in golang/go#63900 and comments in #2442 but the latter issue states a different error. There only seems to be syscall.Syscall* indirect function calls with syscall.SYS_IOCTL passed in the main parts of micro, but syscall.Syscall seems to have been changed to call the libc stub of ioctl(2) in Go 1.23 at https://github.com/golang/go/commit/8841f50d98b224ecf5ee27d9b7e6f18ad2c98e46.
There are no main parts where syscall.Syscall is called in modules, but syscall.Syscall6 is called in tscreen_bsd.go in the tcell fork used in micro. The libc stub is not called when using syscall.Syscall6 so I tried to test replacing calls of the function with syscall.Syscall and removing the last 3 arguments that are 0.
Micro was able to start up when I tested using an OpenBSD 7.6 VM, but I do not know why the terminal screen is blank and nothing happens even though it can be seen when running ktrace and kdump that read and write seems to be done on the terminal.

Sorry, I did not think there would be an email thread but this thread can be easily understood more. The situation was already figured out and there has been more attempted than I did: https://marc.info/?l=openbsd-ports&m=171418988805644&w=2

I haven't thought much about using my email address on public mailing lists so I do not know if I want to post email messages, but I was not able to find documentation in Go source code about the last argument being a pointer like said in the email thread. I think the cause of the bug is different but I explained it in the description of zyedidia/tcell#29.
There is a new version of micro but micro v2.0.13 seems to run properly on OpenBSD 7.6 when somehow changing go.mod and go.sum like in #3561 to update go-isatty and use a version of tcell with zyedidia/tcell#29 applied.


Manage Team modal is showing subdomain-style teams also for GRIST_ORGS_IN_PATH: true

When opening the "Manage Team" modal, its headline will display the teamname as a subdomain of getgrist.com:

This display should probably respect the configuration variable GRIST_ORGS_IN_PATH: true, too.
Related:

#733

Slightly related to #733, in which the discussion had progressed towards a point, that subdomain-style team sites on self-hosted became within reach.
Here, the display should respect the GRIST_ORGS_IN_PATH and APP_HOME_URL settings to render out the actual route. In this example, it would show as data.allmende.io/o/testteam/

After an upgrade, now it's correct:


[cloud] multiple Kibana nodes test

Compare the following configurations on Cloud:

Kibana 1 GB RAM | Up to 8 vCPU (2 zones)
Kibana 2 GB RAM | Up to 8 vCPU (1 zone)

with the default configuration Kibana 1 GB RAM | Up to 8 vCPU (1 zone)

// @LeeDr


TestPlatformException when aborting ongoing discovery

Description
Recently we started to see TestPlatformException when tried to abort ongoing discovery. It is hard to reproduce and now only happens for .net core projects, potentially can happen for .net framework projects as well.
Steps to reproduce

Kick off discovery by running "Rebuild all"
Wait for the discovery to actually kick in
Run all tests in one project. You should see the discovery has been aborted and discovery/run for the current project is kicked off
After it finishes vstest.console will try to resume the previously aborted discovery. That's when you can try running all tests in one project just to abort discovery once more. Then you should see longer waiting times for the abortion, possibly VS being stuck

Expected behavior
Discovery stops and starts to run selected test project
Actual behavior
Got this exception:
Aborting test discovery because a test run was requested. Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to negotiate protocol, waiting for response timed out after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout. at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TestRequestSender.CheckVersionWithTestHost() at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable1 sources, String runSettings) at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler2 eventHandler)
AB#1342836

Tagging @AbhitejJohn and @cvpoienaru who also ran into cases where the test console was essentially hung with the above steps. The hang was not easy to reproduce. Please post any additional details / diagnostics you may have around this.
Iirc when Abhitej looked under the debugger, it seemed like the test console was waiting indefinitely for the test host process to start and the test host process was not active (i.e. it had either already exited or it was not being started).

Closed by #3349


When you use a Teams with a private channel as template, the private channel is not in the new Teams

Is that a function there will come?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ce34b12b-aa50-608b-bbfa-a1fb4bb79f8d
Version Independent ID: 9ddeb6f4-f30a-1e72-fc94-ae66def91f40
Content: Private channels in Microsoft Teams
Content Source: Teams/private-channels.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@Fru-LCF Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

Hi @Fru-LCF, thank you for your feedback.
As you noticed is not yet available and I cannot provide more information:
https://docs.microsoft.com/en-us/microsoftteams/get-started-with-teams-templates

@Fru-LCF Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


[BUG] AnimationController callback is not executing in background mode

Describe the bug
Callback form an AnimationController is not executing in background mode.
To Reproduce
AnimationController? _controller;
_controller = AnimationController(
vsync: this,
duration: Duration(seconds: 10),
);
_controller!.addStatusListener((status) {
switch (status) {
case AnimationStatus.forward:
_onStart();
break;
    case AnimationStatus.reverse:
      _onStart();
      break;

    case AnimationStatus.dismissed:
      _onComplete();
      break;
    case AnimationStatus.completed:

    default:
    // Do nothing
  }

void _onComplete() {
debugPrint("this does not get called while the screen is off");
}
Expected behavior
The animation should be continiued in the background and the callback should be called, after AnimationStatus is updated.
Screenshots
Not applicable.
Smartphone:

Device: Android Emulator API 32 & Samsung Node 9 Android 11

Logs

I don't feel comfortable to share this information , but I looked at it and there was nothing which would explain this.
```
```

flutter doctor -v
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.19044.2130], locale de-DE)
• Flutter version 3.0.5 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f1875d570e (3 months ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
• Android SDK at C:\Users\Johannes\AppData\Local\Android\Sdk
• Platform android-Tiramisu, build-tools 32.0.0-rc1
• ANDROID_HOME = C:\Users\Johannes\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.2.32526.322
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] VS Code, 64-bit edition (version 1.71.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.48.0
[√] Connected device (4 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 32) (emulator)
• Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19044.2130]
• Chrome (web)                 • chrome        • web-javascript • Google Chrome 106.0.5249.119
• Edge (web)                   • edge          • web-javascript • Microsoft Edge 105.0.1343.42
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!

To clarify: The animation continues while the screen is off , but the callback is not executed.

Did you manage to get this to work @JLoRenderer ?

@atreeon Sadly not, but I also didn't try very hard, was just for a personal project. Also was a long time ago, don't know if it is fixed yet.


[FLINK-29939]Add metrics for Kubernetes Client Response 5xx count and…

What is the purpose of the change
This PR adds metrics of count and rate for Kubernetes Client HTTP response code 1xx / 2xx / 3xx / 4xx / 5xx.
It also introduces rate per response code, in addition to count
Brief change log

Add Kubernetes Client metrics for count and rate of Http Response Codes

Verifying this change

This change is already covered by existing unit test org.apache.flink.kubernetes.operator.metrics.KubernetesClientMetricsTest .
The unit test has been updated to cover additional metrics.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changes to the CustomResourceDescriptors: (no)
Core observer or reconciler logic that is regularly executed: (no)

Documentation

Does this pull request introduce a new feature? (yes)
If yes, how is the feature documented? ( docs updated )

+1 for merging. Nice job @jiangzho!
cc @gyfora

This introduces quite a lot of new metrics by default. Do you think it would make sense to make the response code based metrics configurable?
We usually have similar enabled/disable flags for other metric categories.

This introduces quite a lot of new metrics by default. Do you think it would make sense to make the response code based metrics configurable? Just one flag to disable or enable all of them.
We usually have similar enabled/disable flags for other metric categories.

@jiangzho Gyula has a fair point here. We can put the 1xx / 2xx / 3xx / 4xx / 5xx. aggregates behind a config option(default=true). We can probably keep the rates for the time being, I guess, although those indeed will introduce quite a few extra (and redundant) metrics unfortunately.

ack - lemme add a flag for the additional metrics

ack - lemme add a flag for the additional metrics. These new metrics, along with kubernetes client metrics, are currently covered by kubernetes.client.metrics.enabled . For 1xx / 2xx ... - is it straightforward enough if we introduce a property kubernetes.client.http.reponse.code.group.metrics.enabled ?
This sounds better to my ears: kubernetes.client.metrics.http.reponse.code.groups.enabled

Thanks @jiangzho this PR appears to be complete know, is there anything else you want to add to it?

@morhidi  - IMO this includes all the entitled needs . Thx foe checking in.


Add command substitutions launchTargetName and getLaunchTargetName

This change addresses item #3972
This changes command substitutions and documentation.
The following changes are proposed:

Add command substitutions launchTargetName and getLaunchTargetName

The purpose of this change

Add command substitutions launchTargetName and getLaunchTargetName

Other Notes/Information
None.

@chaosink Do the currently available launchTargetPath, launchTargetDirectory, launchTargetFilename not work for you?


eBay (Independent Publisher)

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.

[x] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[x] I attest that the connector works and I verified by deploying and testing all the operations.
[x] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[x] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[x] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[x] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[x] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

Hello @Amjed-Ayoub, we made the recommended changes to the apiProperties.json file and submitted it for review. When you have a moment, please examine and take the appropriate action. Thank you.
@artesianst

Hello @Ajinder31,
I hope you are doing well.
Congratulations, your pull request is approved. We will move forward with the certification process. We are preparing your connector for production deployment and will queue up for the next deployment schedule. Once your connector onboards the next deployment schedule, it starts to deploy your connector in our production environments that typically takes 3-4 weeks.
Please let us know if you have any questions.
Thank you very much for working with us.

I appreciate the update @Amjed-Ayoub. enthusiastic about using it.

Hello @Ajinder31,
I am still getting an error when trying to create a connection. please see below.

Can you please advise?

@Ajinder31 Please ignore the error above. I was able to create a connection and test the connector. we will move forward with the deployment.

Thank you so much.

Hello @Ajinder31,
I hope you are doing well.
Your connector is in production deployment and queued up for the next deployment schedule. This process typically takes 3-4 weeks. Please note that the documentation for your connector will not be generated until the deployment process is in the final steps.
Please let us know if you have any questions.
Thank you very much for working with us.

Hello @Ajinder31,
I hope you are doing well.
Congratulations, the deployment of your connector and documentation page was already completed, We have a short survey on the connector certification process that we would like for you to complete. Your feedback is appreciated and will help us improve the program.
Thank you very much for working with us.


added new PR process information

AC: the process for testing that we discussed during retro is made clear in the README
Areas of risk: oh geez none I hope

I don't see a US# :p

Ummm you'll note that the documentation says IF APPLICABLE.

I like the level of sass in this PR.

Should we indicate that when testing a PR there should be detailed test steps and that those should be reviewed before being merged? Or is that a separate PR?

I was unsure what level of detail to put in the README for the repo; I was thinking not to put the entire process in (as that is team specific rather than codeline specific). But I think that adding the bit about test steps and reviewing them is probably a good idea.

Docs LLTM. Tested with the following steps:

used eyeballs to read words
used mindballs to comprehend words
used memoryballs to crossreference with earlier discussion
used wordballs to discuss gaps with developer
used thumbballs to type results here

Wow, that's way more balls than I would typically expect to be involved in a PR.
I have evaluated your test plan for gaps and have found that they were all filled with balls. So should be good. Just need someone to approve so it can be merged...


pex binary hangs on startup at atomic_directory

My pex binary is hanging on startup. Using python3.7, pex 2.1.21, ubuntu 18.04. Here's the stack:
Traceback (most recent call first):
  <built-in method lockf of module object at remote 0x7fdf05a08f50>
  File "/var/zt/zt_consumers/current/.bootstrap/pex/common.py", line 385, in atomic_directory
  <built-in method next of module object at remote 0x7fdf06709d10>
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/var/zt/zt_consumers/current/.bootstrap/pex/util.py", line 182, in cache_distribution
  File "/var/zt/zt_consumers/current/.bootstrap/pex/environment.py", line 173, in _write_zipped_internal_cache
  File "/var/zt/zt_consumers/current/.bootstrap/pex/environment.py", line 197, in _load_internal_cache
  File "/var/zt/zt_consumers/current/.bootstrap/pex/environment.py", line 227, in _update_candidate_distributions
  File "/var/zt/zt_consumers/current/.bootstrap/pex/environment.py", line 416, in _activate
  File "/var/zt/zt_consumers/current/.bootstrap/pex/environment.py", line 260, in activate
  File "/var/zt/zt_consumers/current/.bootstrap/pex/pex.py", line 103, in _activate
  File "/var/zt/zt_consumers/current/.bootstrap/pex/pex.py", line 444, in execute
  File "/var/zt/zt_consumers/current/.bootstrap/pex/pex_bootstrapper.py", line 360, in bootstrap_pex
  File "/var/zt/zt_consumers/current/__main__.py", line 68, in <module>
  <built-in method exec of module object at remote 0x7fdf06709d10>
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)

It's a bit tricky to reproduce because it's timing sensitive. The basic steps should be: build a pex binary containing some wheels, launch multiple copies of the binary in parallel. All processes must use the same pex_root.
The hang happens in pex/common.py atomic_directory. What I think happens is that the first process takes a file lock for the atomic dir, finalizes it and releases the lock. If the timing is right, then another process reaches https://github.com/pantsbuild/pex/blob/v2.1.21/pex/common.py#L390 so it also grabs the lock but never releases it.
The issue was introduced in https://github.com/pantsbuild/pex/pull/1062

Thanks @mbakhoff. That's a facepalm bug. Thanks for identifying, I'll get out a fix for this tomorrow.

@jsirois Thank you for the quick fix! :+1:


Temporarily disable pipenv check call

Unbreak the build until wheel >=0.38.0 is published to PyPI.
Context: https://github.com/microsoft/onefuzz/pull/2593#issuecomment-1299331019

Codecov Report

Merging #2594 (7fa03d4) into main (33e2d5c) will decrease coverage by 5.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2594      +/-   ##
==========================================
- Coverage   29.89%   24.80%   -5.10%
==========================================
  Files         289      120     -169
  Lines       35764    12483   -23281
==========================================
- Hits        10692     3096    -7596
+ Misses      25072     9387   -15685

Impacted Files
Coverage Δ

src/agent/onefuzz/src/blob/url.rs

...c/agent/dynamic-library/src/bin/dynamic-library.rs

src/agent/coverage/src/report.rs

src/agent/coverage/src/pe.rs

src/agent/onefuzz-task/src/local/cmd.rs

src/agent/storage-queue/src/local_queue.rs

...nt/onefuzz-task/src/tasks/merge/libfuzzer_merge.rs

src/agent/onefuzz-agent/src/done.rs

src/agent/onefuzz/src/az_copy.rs

...t/onefuzz-task/src/tasks/fuzz/libfuzzer/generic.rs

... and 159 more

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


Get contact based on recordID.

Is it possible to get single contact based on  recordID?

I don't believe that's in the API yet.  But I think it would be easy to add. A nice PR if you want to give it a go?


Commit 9f43db6 content-length

PHP Recoverable fatal error:  Object of class Amp\Coroutine could not be converted to string in [...]/vendor/amphp/http-server-static-content/src/DocumentRoot.php on line 393

missed a yield there @ src/DocumentRoot.php:393
$headers["Content-Length"] = (string) $this->filesystem->size($fileInfo->path);

to
$headers["Content-Length"] = (string) yield $this->filesystem->size($fileInfo->path);

#9 #9

Yes, thanks!


Duplicate breakpoint if blank lines clicked.

VSCode Version: 1.27.1
OS Version: Linux x64 Fedora 28

Steps to Reproduce:

Add breakpoint on line 14
Add breakpoint on line 13 (blank line)
Duplicate breakpoint (makes Debugger really lag)

Does this issue occur when all extensions are disabled?: Yes

The node.js debugger automatically moves breakpoints to a valid location. In your case from the empty line 13 to line 14. This is the expected behaviour.
I do not see any lag when this happens.

The node.js debugger automatically moves breakpoints to a valid location. In your case from the empty line 13 to line 14. This is the expected behaviour.
I do not see any lag when this happens.
Do you see this lag in every case where you get two breakpoints on the same line?

Don't you see the breakpoint is duplicated on the same line? (14, 14)
See second image.

And the lag disappears if you remove one of the breakpoints?

Yes.

In theory you are right. In practice it is a bit more complex.
The facts:

The UI doesn't allow to create duplicate breakpoints.
You only see duplicate breakpoints if a debug session is active and a debugger has decided to move a breakpoint to a different location (where already a breakpoint exists). See this screen recording:

breakpoints are shared across all debuggers.

If we would eliminate duplicate breakpoints, how would that work from a UX perspective?

If no debug session is active, VS Code does not know whether breakpoints will map to the same location, so they cannot be de-duped.
If a debug session is started, some breakpoints might move and become duplicates. Should we now de-dupe them? If the user ends a debug session some would be missing which would come as a surprise to the user.
since breakpoints are shared across all debuggers breakpoints could map to the same location and become duplicates for one debugger, and in another debugger that might not be the case. De-duping them for one debugger might be wrong for the other debugger.

As you can see, de-duping breakpoints is more involved and we have know plans to address this.


Support for x axis labels

Currently the element only supports numbers as the only x axis value. It would be sweet if this element supports labels in the x axis as this stackoverflow answer points out.

I'll work on this issue next week.

@javiercbk I've fixed this issue for line and area charts. You need to use v0.18.0.
Now, you could set xAxisLabels for the following charts:

<nvd3-line>
<nvd3-line-with-focus>
<nvd3-stacked-area>
<nvd3-cumulative-line>

See the component page for new demo and options.


Springboot integration

I need solution for 6 springboot nodes with HaPorxy LB nad Redis as HTTP session store . I would like to reduce connections to Redis from client side with for example TwemProxy but when I try to connect from test app to TwemProxy I've got an error from " nc_redis.c:1092 parsed unsupported command 'CONFIG'" .

@notfication twemproxy doesn't support config command


Set to private true in config.php (found un users folder) and its still public

Set to private in config.php (found un users folder) and its still public.
Ist on subdomain but all is working properly besides this issue

I don't understand. Please explain more or illustrate with an actual example.