API calls trigger error ValueError: Out of range float values are not JSON compliant

We get a small handful of these semi-regularly. I think numpy is giving us NaNs somewhere which json.dumps() is then rejecting.
Example URL (though note that as the issue is data-dependent this URL may not trigger the error at the time of reading):
https://openprescribing.net/api/1.0/measure_by_pcn/?format=json&measure=lpzomnibus&org=U91893
Stack trace:
ValueError: Out of range float values are not JSON compliant
  File "django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 145, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "django/core/handlers/base.py", line 143, in _get_response
    response = response.render()
  File "django/template/response.py", line 106, in render
    self.content = self.rendered_content
  File "rest_framework/response.py", line 70, in rendered_content
    ret = renderer.render(self.data, accepted_media_type, context)
  File "rest_framework/renderers.py", line 100, in render
    ret = json.dumps(
  File "rest_framework/utils/json.py", line 25, in dumps
    return json.dumps(*args, **kwargs)
  File "json/__init__.py", line 234, in dumps
    return cls(
  File "json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)

Sentry link here:
https://sentry.io/organizations/ebm-datalab/issues/2084377073/

This issue will occur because the Response class in Django REST Framework does not handle complex data types. Objects containing NaN, Inf and -Inf will all raise this error. These are valid PostgreSQL special values.
If it cannot be fixed at source, one solution would be to replace non-finite floating point numbers with None in any invalid JSON objects prior to constructing the Response for relevant API views. If this issue affects many views, a simple way to implement this could be to use a custom renderer. This can be done with the BaseRenderer (as per DRF documentation) but since this concerns specific JSON compliancy exceptions something like this may be sufficient for the current issue:

import math
from collections import abc
from copy import deepcopy
from functools import reduce

from rest_framework.renderers import JSONRenderer

class SerialisedJSONRenderer(JSONRenderer):

    """Custom JSON renderer to handle data type compliancy exceptions.

    Django REST framework `Response` class does not natively handle complex data types.
    To prevent API calls from triggering JSON encoding errors, this renderer attempts to
    sanitise known data type issues if a `ValueError` exception has been raised.

    """

    def render(self, data, accepted_media_type=None, renderer_context=None):
        try:
            return super().render(data, accepted_media_type, renderer_context)
        # Only attempt to sanitise the object if `JSONRenderer` raises an expected exception
        # NOTE assumes these events occur infrequently
        except ValueError:
            return super().render(sanitise(data), accepted_media_type, renderer_context)

def finite_or_none(obj):
    """Replace non-finite floating point numbers in a JSON object to `None`.

    Since the source of the data is expected to be JSON, the only collection types
    should be `dict` and `list`.

    """
    if isinstance(obj, abc.Mapping):
        return {k: finite_or_none(v) for k, v in obj.items()}
    elif isinstance(obj, abc.Sequence) and not isinstance(obj, str):
        return [finite_or_none(v) for v in obj]
    elif isinstance(obj, float) and not math.isfinite(obj):
        return None
    return obj

_SANITISERS = [finite_or_none]

def sanitise(obj):
    """Prepare JSON object for serialisation.

    Fold whilst calling a chain of functions on the same object.

    """
    try:
        return reduce(lambda o, f: f(o), _SANITISERS, deepcopy(obj))
    except Exception:
        return obj

Then, all applicable API views can use SerialisedJSONRenderer instead of the usual JSONRenderer in the renderer_classes decorator. For example:

from rest_framework.renderers import BrowsableAPIRenderer

from .renderers import SerialisedJSONRenderer

...

@api_view(["GET"])
@renderer_classes([SerialisedJSONRenderer, BrowsableAPIRenderer, MeasureValueCSVRenderer])
# @renderer_classes([JSONRenderer, BrowsableAPIRenderer, MeasureValueCSVRenderer])
def measure_by_pcn(request, format=None):
    return _measure_by_org(request, "pcn")

@sebbacon


export file save format as (.xlsx) instead of .csv

Hi Allen,
I should save my data in excel sheet  (.xlsx). Is there any option to make this
Thanks in advance

hi @hctslm, react-bootstrap-table is only support the csv format and I think it's also hard to transfer the table into a style sheet, I guess it need some library to handle it and it's not a critical feature for this component, so PR is welcome.
Let me know if you still have any concern or you can find a solution for it, I'll consider it


Different page margins w/o titlepage

When I compile a PDF without a titlepage, the page margins on all pages are huge, especially on the bottom. Is this behaviour normal or did I overlook something?
Page margins are equal and look good with:
---
titlepage: true
...

# Readme
(...)

Page margins are way off with the titlepage set to false. There's a lot more whitespace on the bottom, left and right on each page:
---
titlepage: false
...

# Readme
(...)

I execute pandoc as follows:
pandoc Readme.md -f markdown --template eisvogel --listings -o Readme.pdf

PDF files for reference:
Readme1.pdf
Readme2.pdf

Thank you for submitting this Issue. It should be fixed now on the master branch.


Diagram of architecture

Description
We need to create a diagram of our architecture and how each microservice interacts with others.
Example
I was thinking of something like this:

@maksnowak I need some explanation how frontend communicates with microservices to provide each of the functionalities


wifi:bcn_timout,ap_probe_send_start after esp_http_client use? (IDFGH-3754)

Environment

Development Kit:     ESP32 Devkit V1 -Doit (I think, it's soldered i can't look at it anymore) (here)[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/modules-and-boards.html#esp32-wroom-32]

Kit version -

Module or chip used:  ESP32-WROOM-32

IDF version (run git describe --tags to find it): framework-espidf 3.40001.200521 (4.0.1)  (PIO)

Build System:         platformio

Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc (crosstool-NG esp-2019r2) 8.2.0

Operating System:   Linux

Using an IDE?:  Vscode platformio

Power Supply:         USB

Problem Description
I get this error a lot:
 (46748) wifi:bcn_timout,ap_probe_send_start
I (55868) wifi:bcn_timout,ap_probe_send_start
I (64978) wifi:bcn_timout,ap_probe_send_start
I (79538) wifi:bcn_timout,ap_probe_send_start
I (88938) wifi:bcn_timout,ap_probe_send_start

but only every other or so reboot, and it seems to only happen if i use the esp_http_client.
The rest of the system is rather big but all in all i am just using the example, with my data put in and some output at the end.
The WiFi event_handler doesn'T seem to get informed of this printout either, and i am sure the wifi itself has no issues.
What causes this or rather what information is needed to determine the cause? I have seen some posts on the espressif forums but they all data back and seem to get a disconnect reason, which i don't.
As a result i can't use wifi at all anymore (another task runs a tcp server).
Also seems to only happen after the first restart?
I just uploaded, see the http requ go through, nothing happens, restart retry, after the http request succeeds the bcn times out.. it takes some time though.
Expected Behavior
Not failing wifi
Actual Behavior
Seems that esphttp_client does something weird with the wifi
␛[0;32mI (10168) [TCP]: Socket listening␛[0m
D (10668) mg_net_services: HTTP_EVENT_ON_CONNECTED␛[0m
D (10668) mg_net_services: HTTP_EVENT_HEADER_SENT␛[0m
D (10758) mg_net_services: HTTP_EVENT_ON_HEADER, key=Connection, value=Keep-Alive␛[0m
D (10758) mg_net_services: HTTP_EVENT_ON_HEADER, key=X-Powered-By, value=PHP/7.0.33␛[0m
D (10758) mg_net_services: HTTP_EVENT_ON_HEADER, key=Content-Type, value=application/json␛[0m
D (10768) mg_net_services: HTTP_EVENT_ON_HEADER, key=Access-Control-Allow-Methods, value=POST␛[0m
D (10778) mg_net_services: HTTP_EVENT_ON_HEADER, key=Access-Control-Max-Age, value=3600␛[0m
D (10788) mg_net_services: HTTP_EVENT_ON_HEADER, key=Access-Control-Allow-Headers, value=Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With␛[0m
D (10798) mg_net_services: HTTP_EVENT_ON_HEADER, key=Content-Length, value=48␛[0m
D (10808) mg_net_services: HTTP_EVENT_ON_HEADER, key=Date, value=Fri, 31 Jul 2020 14:09:49 GMT␛[0m
D (10818) mg_net_services: HTTP_EVENT_ON_HEADER, key=Server, value=LiteSpeed␛[0m
D (10828) mg_net_services: HTTP_EVENT_ON_DATA, len=48␛[0m
D (10828) mg_net_services: DATA,  {"type":"reboot","time":"1596204589","dst":"1"}␛[0m
␛[0;32mI (10838) time-mod: Time updated to : 403789␛[0m
D (10838) mg_net_services: update Time␛[0m
D (10848) mg_net_services: HTTP_EVENT_ON_FINISH␛[0m
␛[0;32mI (10848) mg_net_services: HTTP POST Status = 200, content_length = 48␛[0m
␛[0;32mI (10858) mg_net_services: HTTP_EVENT_DISCONNECTED␛[0m
I (118848) wifi:bcn_timout,ap_probe_send_start
I (133088) wifi:bcn_timout,ap_probe_send_start
I (142838) wifi:bcn_timout,ap_probe_send_start
I (151938) wifi:bcn_timout,ap_probe_send_start

Steps to reproduce
Not 100% sure if the example code is enough to reproduce this.
I will try this later but if someone knows something about this issue that could help me narrow this down i'd greatly appreciate it
Code to reproduce this issue
Add the {...} into the example and that's my code.
Additionally i have connect.c in, so the example connect works with my WiFi.
Debug Logs
Other items if possible

[ ] elf file in the build folder (note this may contain all the code details and symbols of your project.)
[ ] sdkconfig file (attach the sdkconfig file from your project folder)
[ ] coredump (This provides stacks of tasks.)

After playing around a bit I wanted to know if this causes the same error.
And the error was actually there as well !
␛[0;32mI (10635) mg_net_services: ... socket send success␛[0m
␛[0;32mI (10645) mg_net_services: ... set socket receiving timeout success␛[0m
D (10715) mg_net_services: DATA, HTTP/1.0 200 OK
Connection: close
X-Powered-By: PHP/7.0.33
Content-Type: application/json
Access-Control-Allow-Methods: POST
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
Content-Length: 48
Date: Fri, 31 Jul 2020 19:47:31 GMT
Server: LiteSpeed

 {"type":"reboot","time":"1596224851","dst":"1"}␛[0m
D (10745) mg_net_services: >{"type":"reboot","time":"1596224851","dst":"1"}<␛[0m
␛[0;32mI (10755) time-mod: Time updated to : 424051␛[0m
␛[0;32mI (10755) mg_net_services: ... done reading from socket. Last read return=393 errno=0.␛[0m
I (54095) wifi:bcn_timout,ap_probe_send_start
I (63805) wifi:bcn_timout,ap_probe_send_start
I (78595) wifi:bcn_timout,ap_probe_send_start
I (87805) wifi:bcn_timout,ap_probe_send_start
I (96825) wifi:bcn_timout,ap_probe_send_start
I (106045) wifi:bcn_timout,ap_probe_send_start

After a bit of playing i noticed it only seems to happen after calling 'read', I have no idea what that could be causing internally.

happens no matter if BT is enabled or not.

Upgraded to v4.1 and the error still persists.
I (7081) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (7091) wifi station: WIFI_EVENT_STA_CONNECTED
I (7091) wifi station: anything
I (17131) esp_netif_handlers: sta ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (17131) wifi station: IP_EVENT_STA_GOT_IP Wifi ready
I (17131) wifi station: got ip:<IP_ADDRESS>
I (17191) [TCP]: WiFi init tcp server
I (17191) [TCP]: WIFI BIT SET: 13
I (17191) [TCP]: creating TCP server
I (17201) wifi station: anything
I (17201) [UDP]: WiFi init udp server
I (17201) [TCP]: Socket created
I (17211) [UDP]: Socket created
I (17211) [TCP]: Socket bound, port 60583
I (17221) [UDP]: Socket bound, port 60582
I (17221) [TCP]: starting creating TCP server
I (17231) [UDP]: Waiting
I (17231) [TCP]: Socket listening
E (17201) mg_net_services: service_get_time_task started

I (17841) time-mod: Time updated to : 500734
I (17841) mg_net_services: HTTP POST Status = 200, content_length = 48
I (17841) mg_net_services: HTTP_EVENT_DISCONNECTED
I (50741) wifi:bcn_timout,ap_probe_send_start
I (60011) wifi:bcn_timout,ap_probe_send_start

I'm seeing similar, but on 3.3-r4. One thing I've noticed on my devices is that UDP stays connected (I'm seeing the logs remotely over UDP), but TCP fails and is unable to reconnect until after a reboot. I'm not sure whether my issue is linked to esp_http_client.

Same behaviour on 4.2... (once set up it was easy to switch to the version of release/v4.2
I (10149) [TCP]: Socket created
I (10149) [UDP]: Waiting
E (10129) mg_net_services: service_get_time_task started

I (10149) [TCP]: Socket bound, port 60583
I (10159) [TCP]: starting creating TCP server
I (10169) [TCP]: Socket listening
I (10649) time-mod: Time updated to : 501255
I (10649) mg_net_services: HTTP POST Status = 200, content_length = 48
I (10649) mg_net_services: HTTP_EVENT_DISCONNECTED
I (53859) wifi:bcn_timout,ap_probe_send_start
I (63019) wifi:bcn_timout,ap_probe_send_start
I (72139) wifi:bcn_timout,ap_probe_send_start
I (81819) wifi:bcn_timout,ap_probe_send_start

@gadget-man  it may be some kind of socket problem since internall esp_http_client uses the same things as tcp (read / socket / listen / bind  etc)

Can you increase wifi logging to Debug to see if it gives any clues?

I incresed it to verbose in the settings, no change sadly @gadget-man

That's very odd, I'd expect you to at least see a load of I (3496766) wifi: rsn valid: gcipher=3 ucipher=3 akm=5 before the disconnect event starts.

I can see that a bunch before though:
D (7229) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7229) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7229) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7239) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7239) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7249) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7249) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7259) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7259) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7269) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (7269) wifi:recv auth: seq=2, status=0
I (7279) wifi:state: auth -> assoc (0)
D (7279) wifi:restart connect 1s timer for assoc
D (7289) wifi:recv assoc: type=0x10
D (7289) wifi:filter: set rx policy=6
I (7289) wifi:state: assoc -> run (10)
D (7289) wifi:start 10s connect timer for 4 way handshake
D (7299) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

I (7309) wifi:connected with WiFi, aid = 1, channel 11, 40D, bssid = 80:3f:5d:f9:83:d7
I (7309) wifi:security: WPA2-PSK, phy: bgn, rssi: -67
D (7319) wifi:remove all except 80:3f:5d:f9:83:d7 from rc list
D (7319) wifi:clear blacklist
D (7319) wifi:filter: set rx policy=7
I (7329) wifi:pm start, type: 1

D (7329) wifi:Send sta connected event
D (7329) wifi:connect status 1 -> 5
D (7339) wifi:obss scan is disabled
D (7339) wifi:start obss scan: obss scan is stopped
I (7349) wifi station: WIFI_EVENT_STA_CONNECTED
I (7349) wifi station: anything
I (7399) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (10579) esp_netif_handlers: sta ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (10579) wifi station: IP_EVENT_STA_GOT_IP Wifi ready
I (10579) wifi station: got ip:<IP_ADDRESS>
I (10629) [TCP]: WiFi init tcp server
I (10629) [UDP]: WiFi init udp server
I (10629) [TCP]: WIFI BIT SET: 13
I (10629) wifi station: anything
I (10629) [UDP]: Socket created
I (10639) [TCP]: creating TCP server
I (10639) [UDP]: Socket bound, port 60582
I (10649) [TCP]: Socket created
I (10649) [UDP]: Waiting
I (10649) [TCP]: Socket bound, port 60583
E (10629) mg_net_services: service_get_time_task started

I (10659) [TCP]: starting creating TCP server
I (10669) [TCP]: Socket listening
I (11179) time-mod: Time updated to : 501998
I (11189) mg_net_services: HTTP POST Status = 200, content_length = 48
I (11189) mg_net_services: HTTP_EVENT_DISCONNECTED
I (415699) wifi:bcn_timout,ap_probe_send_start
I (424889) wifi:bcn_timout,ap_probe_send_start
I (433899) wifi:bcn_timout,ap_probe_send_start
I (443119) wifi:bcn_timout,ap_probe_send_start
I (452129) wifi:bcn_timout,ap_probe_send_start
I (461769) wifi:bcn_timout,ap_probe_send_start
I (470869) wifi:bcn_timout,ap_probe_send_start
I (486019) wifi:bcn_timout,ap_probe_send_start
I (495749) wifi:bcn_timout,ap_probe_send_start
I (504789) wifi:bcn_timout,ap_probe_send_start
I (514079) wifi:bcn_timout,ap_probe_send_start
I (528929) wifi:bcn_timout,ap_probe_send_start
I (538039) wifi:bcn_timout,ap_probe_send_start
I (547159) wifi:bcn_timout,ap_probe_send_start
I (556789) wifi:bcn_timout,ap_probe_send_start
I (565899) wifi:bcn_timout,ap_probe_send_start
I (575009) wifi:bcn_timout,ap_probe_send_start
I (584029) wifi:bcn_timout,ap_probe_send_start
I (593869) wifi:bcn_timout,ap_probe_send_start
I (603169) wifi:bcn_timout,ap_probe_send_start
I (612189) wifi:bcn_timout,ap_probe_send_start

but it's even before the IP is gotten....

That's very odd. I wonder if our issues are linked - I may try removing all http calls from my code and just leaving MQTT to see if it makes any difference.
Are you able to capture Wireshark packets for your connection to see if there's anything causing the reconnect at the AP?  That's what the Espressif devs here usually ask for.

I ... I am not sure what exactly to search for as i am not very experienced with wireshark ...

The recommended Macbook's built-in packet capture tool does not require a packet capture card. It can be used to capture 802.11a/b/g/n/ac packets:
https://osxdaily.com/2015/04/23/sniff-packet-capture-packet-trace-mac-os-x-wireless-diagnostics/
Or you can use the tutorial on the official Espressif website to capture packets using Wireshark
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wireshark-user-guide.html

I got it captured, but it doesn't seem terribly interesting...
it's a .pcapng just rename it
cap.txt

@esp-HarveyRong  are you able to have a look at this to see what's causing the disconnect?

well yeah oyu can just open the file yourself (After renaming it) but there is nothing in it that says "obvious disconnect"

I also found https://www.esp32.com/viewtopic.php?f=13&t=15978 which is very similar but for me
 auto bytesFree = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM);
        ESP_LOGI(TAG, "memReport(): there are %zu MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM bytes free.", bytesFree);

literally reports 0 bytes... which i guess is bad and i need to increase something but don't know what

Very odd that it's zero - to me that suggests that it's not reporting correctly, rather than there actually being zero bytes.

That's very odd, I'd expect you to at least see a load of I (3496766) wifi: rsn valid: gcipher=3 ucipher=3 akm=5 before the disconnect event starts.

Hopefully

Thanks for reporting, and sharing the detailed updates, we will look into.

Usually beacon timeout problems can be debugged as follows:
1. Insufficient memory leads to beacon timeout

An Error like "esf_buf: t=8, l=beacon_len, ..." will appear in the log. The memory is not enough, you can check the heap size when you receive the disconnect event
2. AP did not send beacon

You can check it through packet capture or comparison test. For hardware problems, you can find a development board with no problems to do a comparative test to troubleshoot

3. The country code set by the AP is inconsistent with the current channel.

For example, the country is set to US, that is, the channel range is 1~11, but the AP's channel is 13.
4. Other questions

Hi @ZweiEuro could you attached your sdkconfig here (better put it as attachment)?

@esp-HarveyRong It doesn't look from the logging that @ZweiEuro provided that there are memory problems, channel is 11 as per the logs. Are you able to review the packet capture details provided to see if it highlights anything to your expert eyes to see if the error is (2) from your list above, if we've already determined it's not (1) or (3).

sdk defaults

CONFIG_BT_ENABLED=y
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
CONFIG_BT_BTC_TASK_STACK_SIZE=4096
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
CONFIG_BOOTLOADER_LOG_LEVEL=5
CONFIG_ESP32_PHY_INIT_DATA_ERROR=y
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10

CONFIG_ESP32_WIFI_DEBUG_LOG_ENABLE=y
CONFIG_ESP32_WIFI_DEBUG_LOG_DEBUG=y
# CONFIG_ESP32_WIFI_DEBUG_LOG_VERBOSE is not set
CONFIG_ESP32_WIFI_DEBUG_LOG_MODULE_ALL=y
# CONFIG_ESP32_WIFI_DEBUG_LOG_MODULE_WIFI is not set
# CONFIG_ESP32_WIFI_DEBUG_LOG_MODULE_COEX is not set
# CONFIG_ESP32_WIFI_DEBUG_LOG_MODULE_MESH is not set
CONFIG_ESP32_WIFI_DEBUG_LOG_SUBMODULE=y
CONFIG_ESP32_WIFI_DEBUG_LOG_SUBMODULE_ALL=y

Hi @ZweiEuro,
Sorry, I did not see any information about the wireless package in the cap.txt you provided, such as: beacon, etc. Can you provide a new wireless package?  Including beacon etc.

I am out for a week but will do this as soon as i can

@esp-HarveyRong
I've tried capturing the beacons like this:
https://wiki.wireshark.org/Wi-Fi
but I don't seem to receive any.  (filter:  wlan.fc.type_subtype == 0x08 )
I have the network from the hub on WPA2 and am connected to it via my PC and my phone and the esp while it's breaking up.
I also get the same results if my laptop is not connected to any network

@ZweiEuro,
Can you attach a completed Log?
When the Rssi value of the AP connected to the device is low, the device will not receive the beacon frame when the environment is complicated, and bcn_timout,ap_probe_send_start

You mean a complete log from the esp32 ?

I have tried this with my pone hotspot as well, and it just sends out 'wifi:bcn_timeout, ap_probe_Send_start' and internet stops
I at least wish it would have some event for this so i can start reconnecting

Hi @ZweiEuro,
Sorry for the delayed reply, I rested for a few days.
Usually, within 6s, if the STA doesn't  receive a beacon frame, it will appear bcn_timeout, ap_probe_Send_start. When this behavior occurs, the STA will try to send a Probe Request 5 times. If the router replies with a Probe Response, the connection will continue. If the Probe response from the router is not received, the connection will be disconnected and an event will be thrown. If there is only bcn_timeout, ap_probe_Send_start log, there is no event indicating that the STA has received the Probe Response and continues to maintain the connection. This is normal behavior.
Can you call the esp_get_free_internal_heap_size API to print the internal memory when this issue occurs?

I've already tested, and there is loads of heap left.
for some reason it won't run unless every variable in the handler is either malloced or declared static, making it very hard to program.
So I am guessing i am doing something else wrong about how i need to allocate data.

Some output from this code running, it seems to run fine for a while, heap seems to be stable and cleared correctly.
The bigger functions that would build lists later aren't even called in this case.
https://gist.github.com/ZweiEuro/743602b57faf3b13c2712019a8b6a706

Generally speaking, WiFi needs to apply for internal memory to receive the beacon. When the internal memory is low, the application will not be able to receive the beacon. When the device does not receive a beacon within 6s, a beacon timeout will appear, causing the WiFi to drop. .
The ʻesp_get_free_internal_heap_size` API can get the current available internal memory size.

https://github.com/espressif/esp-idf/issues/5939#issuecomment-722009896

Hi @ZweiEuro, I tried to use the example to reproduce it, but unfortunately we did not show the bcn_timeout, ap_probe_Send_start behavior. I think this should be related to the behavior of the router. Can you tell me the AP model used when the issue occurs ? I will continue to try to reproduce.

@HarveyRong-Esp
Just so you are not stumpling in the dark, have you read:

#5939 (comment)

The issue is unrelated to wifi, but happened because i stressed te internal file system beyond capacity

We recently had a customer who was seeing disconnects every 6-7 minutes. The only thing that would allow the ESP32 to reconnect was a reboot. However, the customer advised that they moved their LG TV which was on the same network across to a different WiFi network and that solved the problem straight away. Unfortunately I don't have any packet capturing from their network to find out what the specific issue was, but it seems that this other device was creating an issue.

Hi @gadget-man, can you create a new issue ticket and describe the issue you encountered in detail? If possible, please provide wireless packet capture


a React component.

gantt-for-react is Frappe Gantt components for React wrapper.
Now is v0.0.1, just can use it in react, but need to upgrade, supports are needed.
I need to update the gantt when tasks updated, so I need an api
gantt.update_tasks(tasks);

to change the gantt dynamically. The api is similar with
gantt.change_view_mode('Week')

Can you do this to help ?

Just pushed https://github.com/frappe/gantt/commit/ac374003906994340e8583e1a6af5d48947e99ec

Thanks, let me do a test.

In addition, the 1st parameter should  be compatible with selector string and dom object:
var gantt = new Gantt("#gantt", tasks);
// or
var gantt = new Gantt(document.getElementById('#gantt'), tasks);

then in react, I can use
var gantt = new Gantt(this.refs.ganttdom, tasks);

so, there will be no need to generate a unique id for react component dom.

error here:


Combine glossary directories

Description & motivation
Testing whether we can roll both of the glossaries under the same sidebar index.
@JKarlavige One thing that's problematic about this format IMO: the first folder is automatically open (in this case, the AE glossary). This means the user has to scroll the sidebar all the way down to see that there is a second glossary directory available (the SQL glossary). Is there a way to circumvent this?
@krevitt Do you know how to check for crawl depth on the SQL Glossary sidebar index before it goes live? It seems like the crawl depth would be 3 (homepage > /glossary > /avg), but not sure whether we should count the "Aggregate Functions" nested folder click in this equation. Either way, we should be okay, but the fewer clicks from a crawl depth perspective, the better.
@KiraFuruichi Is this what you had in mind? Anything you would change about it?

@johnblust If you're looking to have all the glossaries in one place, it might be best to create a "glossary index" category, and have all the glossaries nested within. See the screenshot and code below:

Glossary: [
     {
      type: "category",
      label: "Glossaries",
      link: {
        type: "generated-index",
        title: "All Our Glossaries",
        description:
          "Whole bunch of info on how cool these glossaries are and why you should read every last word.",
        slug: "/glossary/intro",
      },
      items: [
        {
          type: "category",
          label: "Analytics Engineering Glossary",
          link: {
            type: "generated-index",
            title: "Analytics Engineering Glossary",
            description:
              "The Analytics Engineering Glossary is a living collection of terms & concepts commonly used in the data industry. You can use and contribute to this resource to educate yourself, your team, and your stakeholders.",
            slug: "/glossary",
          },
          items: [
            {
              type: "autogenerated",
              dirName: "terms",
            },
          ],
        },
        {
          type: "category",
          label: "SQL Glossary",
          link: {
            type: "generated-index",
            title: "SQL Aggregate Functions",
            description: "Test",
            slug: "/sql-glossary",
          },
          items: [
            {
              type: "autogenerated",
              dirName: "sql-glossary",
            },
          ],
        },
      ],
    },
  ],

Hmm I'm not sure we'd want to intermingle these in the same left sidebar, what do you think @KiraFuruichi?
I'm assuming w/ docusaurus that we have an all-or-nothing choice, and that having an index requires also accepting the sidebar intermingling.
If that's the case, I'd vote to keep them separate + link to each glossary separately in the learn menu (also keeps our crawl depth down on those pages).

I personally think it makes sense to keep them in the left sidebar if we continue developing multiple glossaries, so folks don't have to navigate to different areas on-site for glossary content. I do, however, understand the impact on crawl depth. @emilymermell-dbt do you have an opinion on this?

Thanks for the code @JKarlavige! After playing around with it a bit, I agree with David that having both glossaries in the same sidebar is a bit clunky (especially when there are so many pages/terms within each category).
Jason, is there a way to create a navigational index page that then links out to the individual glossaries (like the one you created but without the sidebar)? This would be ideal as I agree with Kira in that not having a centralized place where we can link to all glossaries isn't a scalable solution as we continue to create more

Thanks for the code @JKarlavige! After playing around with it a bit, I agree with David that having both glossaries in the same sidebar is a bit clunky (especially when there are so many pages/terms within each category).
Jason, is there a way to create a navigational index page that then links out to the individual glossaries (like the one you created but without the sidebar)? This would be ideal as I agree with Kira in that not having a centralized place where we can link to all glossaries isn't a scalable solution as we continue to create more

Without the sidebar, I don't believe it's possible to use the generated-index type and build out the pages using the sidebars.js file. Instead, creating a docs page similar to the Join the Community page might be what you're looking for, where they used the Card component to build the page out: https://github.com/dbt-labs/docs.getdbt.com/blob/current/website/docs/community/join.md.
And as long as this new docs page isn't added to the sidebars.js file it wouldn't have a sidebar.

Okay I think I got it!!! Not a blocker, but there is a slight styling issue @JKarlavige:
Although there is no sidebar on this page, it looks like the page wants there to be one. All the content is slightly aligned left (as if to hug the sidebar) and there is a darker section of the main nav logo. Once again, not a dealbreaker, but is there a way I can fix this? Maybe using another div style instead of community-home?

Okay I think I got it!!! Not a blocker, but there is a slight styling issue @JKarlavige:
Although there is no sidebar on this page, it looks like the page wants there to be one. All the content is slightly aligned left (as if to hug the sidebar) and there is a darker section of the main nav logo. Once again, not a dealbreaker, but is there a way I can fix this? Maybe using another div style instead of community-home?
EDIT: Also, do you know where I can find a list of icons I can use for the icon: field?

Woo! I actually have a fix for the navbar in a separate PR. I'll push those same edits to this branch. For the icons, the full list is available in this directory

@johnblust just pushed a commit with the navbar fix, so that should be corrected if you pull down the latest code from here. And fyi there's not a preview available for this PR as it's not set to merge into current, however once this is merged into #2433, the preview should be available there!

ok, i think i'm following this PR:

have different glossaries live in the same "space"
use the "card landing page" component for each glossary, instead of using the left sidebar

it's not documented in the docs style guide but we do have a habit of adding a left sidebar entry for every article (docs page). though maybe this is a use case/situation for not doing that. personally, i have no fud with it.
curious, what are your thoughts, @runleonarun ? if you also have no fud, maybe we can document this for future guidance?

Thanks for the ping @nghi-ly!
I think the cards are a nice way to organize content if you're avoiding a sidebar.  👍🏻
I have a few other thoughts:

I wonder if people would get confused with a reference section under
"Glossaries" when we also have a Reference section in /references. We're also repeating "glossary" a lot. Maybe we should simplify the URLs a little:

Glossary > SQL (docs.getdbt.com/glossary/SQL/term)
Glossary > Analytics engineering (docs.getdbt.com/glossary/analytics-engineering/term)

Should we keep "Glossary" singular? It feels easier to read, and it's still our One Glossary, but now with categories.

Heads up that we'll eventually need a more general dbt glossary for translations teams to use.

Thanks for taking a look, Leona! Some very good questions here. I'll try to address them.

I wonder if people would get confused with a reference section under
"Glossaries" when we also have a Reference section in /references. We're also repeating "glossary" a lot. Maybe we should simplify the URLs a little:

The concern about the confusion between this and /reference is a valid one! I thought about this when making the decision to rename this content to SQL reference. Ultimately, I think creating a clear separation between product content and broader educational topics is the best way to avoid that confusion. The alternative of putting SQL Reference content with the dbt Reference content would prove to be more confusing in my opinion, but let me know if you disagree.
As for the URL question, the two main reasons I didn't want to associate them underneath the same /glossary string, is because 1) they are very different in terms of content format and theme, and 2) having /sql-reference in the URL will help us rank for the term "SQL reference" in Google. Let me know if that makes sense or if you would still need these to be underneath the same URL pattern.

Should we keep "Glossary" singular? It feels easier to read, and it's still our One Glossary, but now with categories.

Yeah, that makes sense to me! Good idea.

Heads up that we'll eventually need a more general dbt glossary for translations teams to use.

That's good to know, thanks for the info! Do you know when this will be happening and where on the website this will live? As early, I think keeping a clear separation between product content and educational content is the key to avoiding confusion here. Maybe even changing the title of this Hub page to "Educational glossary and references" would be a good decision.

Closing until we can come up with a cohesive strategy as proposed in this issue.


Support with Gitter?

Hi @owen2345, excellent work building this cms btw.
This issue is related with support and sharing regarding camaleon-cms since I feel, as a recent user, the potential of the product but not really a very active community around it.
My question would be regarding your thoughts about creating a slack channel to help build and gather the community around camaleon-cms and discuss simple questions (when possible of course) that arise with using it day-to-day.

Hi @tostasqb
I created this channel: camaleoncms.slack.com
Regards,

Hey @owen2345  could you send invitations to the slack channel please ?
Thanks a lot,
Flo

Maybe slack is not a good choice after all. Though this could be public easily but I guess not. Thinking towards Gitter (?)

I prefer Gitter:
https://gitter.im/camaleoncms/Lobby

Excellent, closing.


Few tests are marked as interrupted in RP launch but actually passed

Hello.
Have an issue with few tests which are always marked as interrupted.
Two of them are always interrupted on the step that contains
await expect.soft(monitor.something.frame)
.toHaveScreenshot(element + '.png', { threshold: 0.2, maxDiffPixelRatio: 0.2 });
and another one on afterAll
test.afterAll(async ({ someApi }) => {
const bookmarks: string[] = Object.values(data).filter(
(value) => value != data.bookmarkDelete && value != data.bookmarkEdit,
);
await Promise.all(bookmarks.map((bookmarkName) => someApi.deleteBookmarkByName(bookmarkName)));
});
Does anybody face something similar?

"@playwright/test": "1.31.0",  "@reportportal/agent-js-playwright": "5.0.11". I will try to find a time and prepare a sample.

Hello, facing same issue with
const elementScreenshot = await page.getByTestId(locators).screenshot();
expect(elementScreenshot).toMatchSnapshot('image.png'); <- ininterrupted in report portal here

Hello @duartmig !
What status does Playwright runner give in your case?

Hello @AmsterGet , they are passed.
I also tried to execute the tests locally and export results to report portal and all good, my issue is when I run them from CD. On jenkins I have my tests all passed (including these visual tests) but then on report portal, all the tests that call toMatchSnapshot() method are as ininterrupted.

From reportportal agent side we mark tests as interrupted only in case the TestCase outcome is skipped and TestResult status is interrupted.
I'll try to reproduce this issue, but it would be helpful if you could prepare a small reproducible suite with tests.

Hello @AmsterGet , sorry, I think I was not clear.
The status for that step is interrupted because I need to force finish in RP (tests are failed due to this) but what happens is that this specific step expect(elementScreenshot).toMatchSnapshot('image.png'); is forever IN PROGRESS even if subsequent steps are passed or failed. This only happens when tests run on CD and on jenkins, the report is OK with all tests successfully executed.
Do you recommend any workaround?

Hi there @andriyyarish @duartmig
I hope you are all doing well!
This issue was fixed. You can try it out in the new agent version.
Thank you all for participating! Best regards!


CVE-2015-4000 ("Logjam")

https://www.openssl.org/blog/blog/2015/05/20/logjam-freak-upcoming-changes/
https://weakdh.org/
https://security-tracker.debian.org/tracker/CVE-2015-4000
Once upstream fixes drop, a rebuild will be in order. :+1:

sid is fixed too, but somehow the security tracker wasn't updated for it :confused:
http://metadata.ftp-master.debian.org/changelogs//main/o/openssl/openssl_1.0.2c-1_changelog

https://github.com/tianon/docker-brew-debian/commit/e9bafb113f432c48c7e86c616424cb4b2f2c7a51 includes an update for everything except squeeze, which may or may not get an update at some point in the future :+1:


GUID Hashed from string

We should have GUID's that are hashed from strings so that we can use it to load in each resource uniquely. This will also work with our object/entity system

EnTT has an implementation of this

Fixed with #33


Allows for empty if blocks

On version 0.68, if you an empty if block, rubocop throws an error. This PR aims to fix this error, allowing for empty blocks with comments. Would like to get your opinion on this, do you think there's a need for a new cop that does not allow for empty if blocks, or if this fix is enough.
 NoMethodError:
       undefined method `type' for nil:NilClass

Error occured with:
0.68.0 (using Parser <IP_ADDRESS>, running on ruby 2.3.7 x86_64-linux)
Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!


last_operation returns 500 due to invalid URL

What happened:
While trying to test the last_operation binding endpoint, I messed up the URL and ended up making this request, as seen in the broker log:
GET /ansible-service-broker/v2/service_instances/5a08a0d0-2036-4a58-aa20-9bf9413b4fb0/service_bindings/70d7f74d-99cb-482c-94ea-796aefbaf25b/last_operation?operation=\"5f99ca72-8ce8-43f7-bd12-ed7491211cb6\"

This resulted in a 500 error from the broker. Here is more log output:
[2018-01-29T19:34:39.343Z] [ERROR] - problem reading job state: [5a08a0d0-2036-4a58-aa20-9bf9413b4fb0]. error: [100: Key not found (/state/5a08a0d0-2036-4a58-aa20-9bf9413b4fb0/job/"5f99ca72-8ce8-43f7-bd12-ed7491211cb6") [26]]
[2018-01-29T19:34:39.343Z] [DEBUG] - state: failed
<IP_ADDRESS> - - [29/Jan/2018:19:34:39 +0000] "GET /ansible-service-broker/v2/service_instances/5a08a0d0-2036-4a58-aa20-9bf9413b4fb0/service_bindings/70d7f74d-99cb-482c-94ea-796aefbaf25b/last_operation?operation=\"5f99ca72-8ce8-43f7-bd12-ed7491211cb6\" HTTP/1.1" 500 138

And an example of a response:
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Date: Mon, 29 Jan 2018 19:50:58 GMT
Content-Length: 105
Set-Cookie: d05351dd24520dce41f310fcfc112523=cf44571ff518c281d2b9338b30a5e779; path=/; HttpOnly; Secure

{
  "description": "100: Key not found (/state/5a08a0d0-2036-4a58-aa20-9bf9413b4fb0/job/\"foo\") [66]"
}

What you expected to happen
A 404 Not Found response would be appropriate.
How to reproduce it:
It only reproduces while there is a valid job running for the given service and binding. The broker must be configured to launch APBs on bind and auto-escalate. I saw this with the release-1.1 branch.


fix: dont include latest valid hash on block hash error

fixes 4 more hive tests:
/Bad Hash on NewPayload *

fix:
ensure we comply with:
Client software MUST respond to this method call in the following way:

{status: INVALID_BLOCK_HASH, latestValidHash: null, validationError: errorMessage | null} if the blockHash validation has failed

by not setting latestValidHash

Codecov Report

Merging #2523 (2991ff3) into main (949b363) will decrease coverage by 27.91%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             main    #2523       +/-   ##
===========================================
- Coverage   71.78%   43.88%   -27.91%
===========================================
  Files         489      489
  Lines       61187    61196        +9
===========================================
- Hits        43925    26853    -17072
- Misses      17262    34343    +17081

Flag
Coverage Δ

integration-tests
13.90% <0.00%> (-4.06%)
:arrow_down:

unit-tests
39.79% <0.00%> (-27.03%)
:arrow_down:

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

Impacted Files
Coverage Δ

crates/consensus/beacon/src/engine/mod.rs
57.14% <0.00%> (-31.68%)
:arrow_down:

crates/rpc/rpc-types/src/eth/engine/payload.rs
41.77% <0.00%> (-49.32%)
:arrow_down:

... and 256 files with indirect coverage changes


Implement saider

Saider is Matter subclass for self-addressing identifier prefix using derivation as determined by code from key event dictionary (ked, a python implementation detail).
Requires #8.
impl - https://github.com/WebOfTrust/keripy/blob/5a19417a3c6e79e868ae96f55e82385de0c348d3/src/keri/core/coring.py#L3162
test - https://github.com/WebOfTrust/keripy/blob/5a19417a3c6e79e868ae96f55e82385de0c348d3/tests/core/test_coring.py#L4600

Looks like saider depends on the sad data structure, and Sadder depends on Saider. It appears it is easiest to start with Saider, even though that is counter-intuitive to me.

not actively working on this, someone else can take it

working on this again. no dependency on Sadder, but we do need a dict-y data type


Support utf-8 csv?

Hi,
When I use the demo website, it cannot show the utf-8 csv correctly.
Dose it only supports ansi csv?
Thanks.

Works in the jupyter.


FOXy manage button not loading on fox opportunities page

Overview
The FOXy manage button on the fox opportunities page isn't loading.
References and additional details

go to app.shapeshift.com
log in with native, mm, or kk
click on the fox opportunities tab
on the fox page click on the foxy tab
notice the foxy manage button isn't loading under the liquidity pools section

Acceptance Criteria
the foxy manage button should load and you should be able to access the vault
Need By Date
No response
Screenshots/Mockups
See button not loading here:

Estimated effort
No response

@wesleygravess added a sneaky fix for this in https://github.com/shapeshift/web/pull/3802


GitHub Actions test code to detect tags

For pushing commits to this PR.
ref: refs/heads/abitrolly-patch-1
event: Object
event_name: push
event,action:

push --tags
 ref: refs/tags/2103-actionstag
event: Object
event_name: push
event.action:

Pushing tagged commit generates two push events.

No name of current branch though.

Output from git branch --contains ${{ github.sha }} --format "%(refname)".
refs/heads/abitrolly-patch-1

Now need to test this with PR from master on different repo.

Force pushing tag fails to find anything related to it.
>>> git branch --contains ...
(HEAD detached at 2103-actionstag)
 >>> git reflog ...
Error: Process completed with exit code 1.

For non-tag push events.
>>> git branch --contains 526e80730a7484b612e2b83acc19dc453ab22f51 --format "%(refname)"
refs/heads/abitrolly-patch-1
>>> git reflog show --all | grep 526e807
526e807 refs/heads/abitrolly-patch-1@{0}: branch: Created from refs/remotes/origin/abitrolly-patch-1
526e807 refs/remotes/origin/abitrolly-patch-1@{0}: fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*: storing head
526e807 HEAD@{0}: checkout: moving from master to abitrolly-patch-1

For tag push event.
>>> git branch --contains 526e80730a7484b612e2b83acc19dc453ab22f51 --format "%(refname)"
(HEAD detached at 2103-actionstag)
>>> git reflog show --all | grep 526e807
526e807 refs/remotes/origin/abitrolly-patch-1@{0}: fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*: storing head
526e807 HEAD@{0}: checkout: moving from master to refs/tags/2103-actionstag

Opened a support ticket https://support.github.com/ticket/personal/0/1095257

Following support advise, dumping all github context (which can be insecure as it can expose token), the tag branch is present in event.base_ref only when the tag is pushed.
--- github.context_edit_online.json	2021-04-10 07:32:03.314827475 +0300
+++ github.context_push_tags.json	2021-04-10 07:37:48.152907387 +0300
@@ -1,13 +1,13 @@
 {
   "token": "***",
   "job": "name_or-jobid-no_spaces",
-  "ref": "refs/heads/abitrolly-patch-1",
+  "ref": "refs/tags/2104-actionstag",
   "sha": "1919fcf7f71e66259604ce017e3628a4b73e99ec",
   "repository": "yakshaveinc/linux",
   "repository_owner": "yakshaveinc",
   "repositoryUrl": "git://github.com/yakshaveinc/linux.git",
-  "run_id": "733487201",
-  "run_number": "44",
+  "run_id": "735159567",
+  "run_number": "45",
   "retention_days": "90",
   "actor": "abitrolly",
   "workflow": ".github/workflows/01hello.yaml",
@@ -16,30 +16,11 @@
   "event_name": "push",
   "event": {
     "after": "1919fcf7f71e66259604ce017e3628a4b73e99ec",
-    "base_ref": null,
-    "before": "b91b0b98daadfac199a14edbb1d17c993ccd07ab",
-    "commits": [
-      {
-        "author": {
-          "email"<EMAIL_ADDRESS>-          "name": "Anatoli Babenia",
-          "username": "abitrolly"
-        },
-        "committer": {
-          "email"<EMAIL_ADDRESS>-          "name": "GitHub",
-          "username": "web-flow"
-        },
-        "distinct": true,
-        "id": "1919fcf7f71e66259604ce017e3628a4b73e99ec",
-        "message": "Dump github.context",
-        "timestamp": "2021-04-09T18:18:31+03:00",
-        "tree_id": "b5b7c0a52571f8e1727567a01d25d31eb94c18e4",
-        "url": "https://github.com/yakshaveinc/linux/commit/1919fcf7f71e66259604ce017e3628a4b73e99ec"
-      }
-    ],
-    "compare": "https://github.com/yakshaveinc/linux/compare/b91b0b98daad...1919fcf7f71e",
-    "created": false,
+    "base_ref": "refs/heads/abitrolly-patch-1",
+    "before": "0000000000000000000000000000000000000000",
+    "commits": [],
+    "compare": "https://github.com/yakshaveinc/linux/compare/2104-actionstag",
+    "created": true,
     "deleted": false,
     "forced": false,
     "head_commit": {
@@ -78,7 +59,7 @@
       "email"<EMAIL_ADDRESS>       "name": "abitrolly"
     },
-    "ref": "refs/heads/abitrolly-patch-1",
+    "ref": "refs/tags/2104-actionstag",
     "repository": {
       "archive_url": "https://api.github.com/repos/yakshaveinc/linux/{archive_format}{/ref}",
       "archived": false,
@@ -165,9 +146,9 @@
       },
       "private": false,
       "pulls_url": "https://api.github.com/repos/yakshaveinc/linux/pulls{/number}",
-      "pushed_at":<PHONE_NUMBER>,
+      "pushed_at":<PHONE_NUMBER>,
       "releases_url": "https://api.github.com/repos/yakshaveinc/linux/releases{/id}",
-      "size": 170,
+      "size": 171,
       "ssh_url": "git@github.com:yakshaveinc/linux.git",
       "stargazers": 0,
       "stargazers_count": 0,
@@ -213,6 +194,7 @@
   "event_path": "/home/runner/work/_temp/_github_workflow/event.json",
   "action_repository": "",
   "action_ref": "",
-  "path": "/home/runner/work/_temp/_runner_file_commands/add_path_a3141d73-ffb8-4b21-9d06-2f83f2a2f5ff",
-  "env": "/home/runner/work/_temp/_runner_file_commands/set_env_a3141d73-ffb8-4b21-9d06-2f83f2a2f5ff"
+  "path": "/home/runner/work/_temp/_runner_file_commands/add_path_54180bdd-f171-4ae9-9b6d-fb44e0d02046",
+  "env": "/home/runner/work/_temp/_runner_file_commands/set_env_54180bdd-f171-4ae9-9b6d-fb44e0d02046"
 }
+

To detect if tag is processed - ${{ startsWith(github.ref, 'refs/tags/') }}.

The condition to run something only when a tag is pushed to master.
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'ref/heads/master' }}

github.event.base_ref is non-empty only when releases are enabled.


[BUG]: Gathering of dependencies on a german Windows does not work

Description of the bug
Executing liz on a german (or any other language than english) machine leads into an Exception being thrown when liz gatheres the dependencies of a project
Steps to reproduce

have a non-english operating system
execute liz
observe Exception when dependencies are determined

Additional Information
This is due to the output of dotnet list package ... being in the OS language - here it's german:

This leads to issues, because the parser depends on finding strings like Resolved and Transitive Dependencies

Genius idea:
read the version string starting from the right until we see the first space
thanks Sven 🤯


Android:Evo-gen [Trj] Detected from VirusTotal

Library Version:
3.3.0
Affected Device(s):
Any Oppo and RealMe Devices
Describe the Bug:
I know this trojan is false positive but our customer didnt know that so when i installing this library our user is dropped so much. can you fix it? why this library detected trojan anyways.
To Reproduce:

installing the library
publish application to play store
every Oppo and Realme Device detected theres trojan in our application

Expected Behavior:
No Trojan Detected

Probably not much that I can do here.

But i tried VirusTotal without it and it didnt detected anything, it detected only when i installing material-dialogs. Or i did something wrong here?
Thank you.

There is no malicious code here so there isn't much that I can do.


stale links in html report after re-running a spec

E.G., if I

execute a set of tests, among-which is TestFoo, which fails.
fix and re-run TestFoo. Spec passes.
inspect TestFoo.html.
Report contains links to "failure" screenshots, apparently from the preceding failed run.

If I delete geb-report-info.json before rerunning the fixed spec, the html report is fine.

Hey @rosemead,
this is a known issue for which I don't know any solution. I would recommend to run ./gradlew clean before executing the tests again if you want to have a clean report.
Unfortunately, as far as I know there is no way for the GebReportingListener to notice that a spec was re-run, so that old artifacts could be discarded. Do you have any idea?

I will close the issue as it is currently not possible to solve this. There is now a note in the readme to make aware of it.
Feel free to re-open if new ideas on possible fixes come up.


False positive with struct member name that shadows imported name

Source:
module TestPackage

using LinearAlgebra

struct Foo
    qr::Int
end

end

Gives:
Module TestPackage is relying on implicit imports for 2 names. These could be explicitly imported as follows:

```julia
using LinearAlgebra: LinearAlgebra # used at /home/fredrik/dev/TestPackage/src/TestPackage.jl:3:7
using LinearAlgebra: qr # used at /home/fredrik/dev/TestPackage/src/TestPackage.jl:6:5
```

Thanks for the quick fixes!


cargo update downgrading crates, it is not clear why

Problem
So I have a strange interaction between two tools. I am using cargo upgrade --incompatible from cargo-edit to update all packages even if the updates are semver incompatible. After that everything still works fine. Cargo builds without complaining, everything seems fine. But if I run cargo update after that cargo will downgrade some of the packages.
There might be a good reason for this, I mean cargo-edit is not an official tool and might do things in a wrong way. But it also is absolutely unclear why cargo downgrades some dependencies, especially since it is building without an issue before the downgrade.
Steps

clone https://github.com/kamulos/cargoissue
run cargo upgrade --incompatible (version 0.13.0) => a few packages will be updated and the Cargo.toml will be changed
run cargo update the following output will appear

    Updating crates.io index
     Locking 4 packages to latest compatible versions
 Downgrading litemap v0.7.4 -> v0.7.3 (available: v0.7.4)
    Updating ureq v2.10.1 -> v2.11.0
 Downgrading yoke v0.7.5 -> v0.7.4 (available: v0.7.5)
 Downgrading zerofrom v0.1.5 -> v0.1.4 (available: v0.1.5)

Possible Solution(s)
No response
Notes
No response
Version
cargo 1.85.0-nightly (4c39aaff6 2024-11-25)
release: 1.85.0-nightly
commit-hash: 4c39aaff66862cc0da52fe529aa1990bb8bb9a22
commit-date: 2024-11-25
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Arch Linux [64-bit]

cargo upgrade is not needed to reproduce this.
With where versions are right now, cargo upgrade is just updating version requirements to match the lockfile.
Just apply
diff --git c/Cargo.toml w/Cargo.toml
index 0ac6a10..f6aec1f 100644
--- c/Cargo.toml
+++ w/Cargo.toml
@@ -4,5 +4,5 @@ edition = "2021"
 publish = false

 [dependencies]
-libsodium-sys-stable = "1.21.1"
-url = "2.5.2"
+libsodium-sys-stable = "1.22.1"
+url = "2.5.4"

Before that patch:
$ cargo update
warning: ignoring `resolver` config table without `-Zmsrv-policy`
    Updating crates.io index
     Locking 6 packages to latest compatible versions
    Updating allocator-api2 v0.2.20 -> v0.2.21
    Updating cc v1.2.1 -> v1.2.2
    Updating errno v0.3.9 -> v0.3.10
    Updating indexmap v2.6.0 -> v2.7.0
    Updating libc v0.2.166 -> v0.2.167
    Updating syn v2.0.89 -> v2.0.90
note: pass `--verbose` to see 1 unchanged dependencies behind latest

With that patch
$ cargo update
warning: ignoring `resolver` config table without `-Zmsrv-policy`
    Updating crates.io index
     Locking 10 packages to latest compatible versions
    Updating allocator-api2 v0.2.20 -> v0.2.21
    Updating cc v1.2.1 -> v1.2.2
    Updating errno v0.3.9 -> v0.3.10
    Updating indexmap v2.6.0 -> v2.7.0
    Updating libc v0.2.166 -> v0.2.167
 Downgrading litemap v0.7.4 -> v0.7.3 (available: v0.7.4)
    Updating syn v2.0.89 -> v2.0.90
    Updating ureq v2.10.1 -> v2.11.0
 Downgrading yoke v0.7.5 -> v0.7.4 (available: v0.7.5)
 Downgrading zerofrom v0.1.5 -> v0.1.4 (available: v0.1.5)

Its interesting that ureq is deciding to upgrade as well as the downgrades
Looking at how those get pulled in
$ cargo tree -i litemap
warning: ignoring `resolver` config table without `-Zmsrv-policy`
litemap v0.7.3
├── icu_locid v1.5.0
│   ├── icu_locid_transform v1.5.0
│   │   └── icu_properties v1.5.1
│   │       ├── icu_normalizer v1.5.0
│   │       │   └── idna_adapter v1.2.0
│   │       │       └── idna v1.0.3
│   │       │           └── url v2.5.4
│   │       │               ├── cargobug v0.0.0 (/home/epage/src/personal/dump/cargoissue)
│   │       │               └── ureq v2.11.0
│   │       │                   [build-dependencies]
│   │       │                   └── libsodium-sys-stable v1.22.1
│   │       │                       └── cargobug v0.0.0 (/home/epage/src/personal/dump/cargoissue)
│   │       └── idna_adapter v1.2.0 (*)
│   └── icu_provider v1.5.0
│       ├── icu_locid_transform v1.5.0 (*)
│       ├── icu_normalizer v1.5.0 (*)
│       └── icu_properties v1.5.1 (*)
└── ureq v2.11.0 (*)

$ cargo tree -i yoke
warning: ignoring `resolver` config table without `-Zmsrv-policy`
  Downloaded errno v0.3.10
  Downloaded allocator-api2 v0.2.21
  Downloaded indexmap v2.7.0
  Downloaded cc v1.2.2
  Downloaded ureq v2.11.0
  Downloaded syn v2.0.90
  Downloaded libc v0.2.167
  Downloaded 7 crates (1.4 MB) in 0.72s
yoke v0.7.4
├── icu_collections v1.5.0
│   ├── icu_normalizer v1.5.0
│   │   └── idna_adapter v1.2.0
│   │       └── idna v1.0.3
│   │           └── url v2.5.4
│   │               ├── cargobug v0.0.0 (/home/epage/src/personal/dump/cargoissue)
│   │               └── ureq v2.11.0
│   │                   [build-dependencies]
│   │                   └── libsodium-sys-stable v1.22.1
│   │                       └── cargobug v0.0.0 (/home/epage/src/personal/dump/cargoissue)
│   └── icu_properties v1.5.1
│       ├── icu_normalizer v1.5.0 (*)
│       └── idna_adapter v1.2.0 (*)
├── icu_provider v1.5.0
│   ├── icu_locid_transform v1.5.0
│   │   └── icu_properties v1.5.1 (*)
│   ├── icu_normalizer v1.5.0 (*)
│   └── icu_properties v1.5.1 (*)
├── ureq v2.11.0 (*)
└── zerovec v0.10.4
    ├── icu_collections v1.5.0 (*)
    ├── icu_locid v1.5.0
    │   ├── icu_locid_transform v1.5.0 (*)
    │   └── icu_provider v1.5.0 (*)
    ├── icu_locid_transform v1.5.0 (*)
    ├── icu_normalizer v1.5.0 (*)
    ├── icu_properties v1.5.1 (*)
    ├── icu_provider v1.5.0 (*)
    └── tinystr v0.7.6
        ├── icu_locid v1.5.0 (*)
        ├── icu_locid_transform v1.5.0 (*)
        ├── icu_properties v1.5.1 (*)
        └── icu_provider v1.5.0 (*)

$ cargo tree -i zerofrom
warning: ignoring `resolver` config table without `-Zmsrv-policy`
zerofrom v0.1.4
├── icu_collections v1.5.0
│   ├── icu_normalizer v1.5.0
│   │   └── idna_adapter v1.2.0
│   │       └── idna v1.0.3
│   │           └── url v2.5.4
│   │               ├── cargobug v0.0.0 (/home/epage/src/personal/dump/cargoissue)
│   │               └── ureq v2.11.0
│   │                   [build-dependencies]
│   │                   └── libsodium-sys-stable v1.22.1
│   │                       └── cargobug v0.0.0 (/home/epage/src/personal/dump/cargoissue)
│   └── icu_properties v1.5.1
│       ├── icu_normalizer v1.5.0 (*)
│       └── idna_adapter v1.2.0 (*)
├── icu_provider v1.5.0
│   ├── icu_locid_transform v1.5.0
│   │   └── icu_properties v1.5.1 (*)
│   ├── icu_normalizer v1.5.0 (*)
│   └── icu_properties v1.5.1 (*)
├── ureq v2.11.0 (*)
├── yoke v0.7.4
│   ├── icu_collections v1.5.0 (*)
│   ├── icu_provider v1.5.0 (*)
│   ├── ureq v2.11.0 (*)
│   └── zerovec v0.10.4
│       ├── icu_collections v1.5.0 (*)
│       ├── icu_locid v1.5.0
│       │   ├── icu_locid_transform v1.5.0 (*)
│       │   └── icu_provider v1.5.0 (*)
│       ├── icu_locid_transform v1.5.0 (*)
│       ├── icu_normalizer v1.5.0 (*)
│       ├── icu_properties v1.5.1 (*)
│       ├── icu_provider v1.5.0 (*)
│       └── tinystr v0.7.6
│           ├── icu_locid v1.5.0 (*)
│           ├── icu_locid_transform v1.5.0 (*)
│           ├── icu_properties v1.5.1 (*)
│           └── icu_provider v1.5.0 (*)
└── zerovec v0.10.4 (*)

Looking at ureq
# These are locked down for MSRV 1.67
rustls = { version = "=0.23.19", optional = true, default-features = false, features = ["ring", "logging", "std", "tls12"] }
yoke = "=0.7.4"
litemap = "=0.7.3"
zerofrom = "=0.1.4"

These weren't locked down in 2.10.1, see https://github.com/algesten/ureq/blob/2.10.1/Cargo.toml

My best guess as to what is happening is this is dependent on the order things get resolved

If yoke, litemap, or zerofrom are picked first, then the older ureq is picked
If ureq is picked first, then the older yoke, litemap, and zerofrom are picked

However, I'm not see why changing to compatible version requirements would change the walk order of the dependency tree.  @Eh2406 any thoughts?
Besides the lack of consistency in our walk order, I would consider this a bug within ureq.  They are trying to enforce MSRV through version reqs which we discourage as it can cause ecosystem-wide pain as has been shown repeatedly.  This also prevents their dependents with higher MSRVs from using newer versions.  MSRVs should instead be handled through lockfiles.  This will be improved in 1.84 as we'll have an MSRV-aware resolver.

Ah the dependency specification of rustls = "=0.23.19" sounds really bad 😕 Just recently I wanted to update rustls because it had a CVE, but cargo update -p rustls was doing nothing and telling me nothing why this would not work.
So maybe a feature request on the side would be to make issues like that discoverable. Maybe cargo could explain this while updating or maybe cargo tree could show which version requirements each crate sets.

Made a note about this at algesten/ureq#878

#7929 is our issue for explaining why upgrades do not happen.


MPOS mode

I have z-nomp installed and running but I am having issues with consistency. One time I connect and the miner will run, other times I get an authentication error with the same config. I am using z-mpos with this setup and I have verified I have a stable mysql connection and can reach everything from the pool server. I cant get MRR or NH to validate the pool either. They both return with authentication errors as well. I have disabled username verification in the z-nomp config as well. Verified the worker name and pass are correct as well.  If I restart the pool with the miner running (with the authentication error) most of the time it will connect and run fine until stopped and restarted at which time the pool has to be restarted to connect again.
Anyone have any insight why the issue with the pool validating workers when its turned off? I am running several pools with our standard uNOMP software and dont see any validation changes between ours and this port in from it other than the TLS which is turned off in z-nomp.

Just as you made this issue, I made a commit that fixes this lol
remove node_modules and then do npm install
https://github.com/z-classic/node-stratum-pool/commit/5e4e57d52435aa188b094b2de45de6de7a6b7927

Seems I have good timing with that. 2 for 2 so far. lol Thanks for the quick reply. Applying the fix now.

Excellent work. That looks more like it. Its connecting now. Validated on MRR and NH as well. Its also showing the worker update correctly now instead of the worker=unknown.


Update dependencies and enable pip check

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Close #15, https://github.com/conda-forge/staged-recipes/pull/18423 for reference and I also have an issue in https://github.com/conda-forge/staged-recipes/pull/21165

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


add end-to-end example gallery for transforms v2

cc @vfdev-5 @bjuncek

Rendered

Rendered

For some reason the xref from the gallery to the documentation of our transforms is not working. They all link to https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module. However, the documentation of the transforms itself correctly recognizes that it is used in the gallery: https://output.circle-artifacts.com/output/job/0cdbff79-79ad-4cfb-ad68-03bf3d844bbb/artifacts/0/docs/generated/torchvision.transforms.v2.RandomHorizontalFlip.html#torchvision.transforms.v2.RandomHorizontalFlip Unfortunately, the v1 transform also claims to be used in the same gallery: https://output.circle-artifacts.com/output/job/0cdbff79-79ad-4cfb-ad68-03bf3d844bbb/artifacts/0/docs/generated/torchvision.transforms.RandomHorizontalFlip.html#torchvision.transforms.RandomHorizontalFlip

That seems to be an existing problem, I observe the same for e.g. https://pytorch.org/vision/main/auto_examples/plot_transforms.html#sphx-glr-auto-examples-plot-transforms-py. Do you want to open an issue so we can keep track of this?

See #7307.

Rendered


nest the chart folder into a helm directory to fix chart releaser

The chart releaser github action appears to expect the charts to live in separate folders inside a higher level charts folder.
There might be a way around this, but I haven't found one. I'd suggest going with the idiomatic structure.
I named the top level folder helm to better reflect that this repo is meant to hold different manifests e.g. kustomize, jsonnet.

Looks like it didn't release. Maybe it needs a bump to the chart version in Charts.yml

Looks like it didn't release. Maybe it needs a bump to the chart version in Charts.yml

The path it used was the one set in the workflow, so we need to re-update the workflow path to point to the helm folder I think

The path it used was the one set in the workflow, so we need to re-update the workflow path to point to the helm folder I think


add android cpu wakelock

Description
simply adds a new variant with CPU suffix to the api, toggling the android cpu wakelock
i.e. in addition to WakelockPlus.toggle(..) we can now also use WakelockPlus.toggleCPU(..) etc.

@HannesGitH since this solution only applies to Android, this is something that we probably won't accept as a PR.
However, you're more than welcome to release a separate library targeting this Android specific feature.


Feature request: Expose PGPPublicKeyRing API

It would be nice to have some public API for getting a number of keys in PGPPublicKeyRing. Right now it is possible to get it via public keys iterator, but it would require O(n) time.
Note that  Collections.unmodifiableList is used in the implementation, so this list or its method can be exposed.

Good point... funny this one hasn't come up already. I've added a size() method to PGPSecretKeyRing and PGPPublicKeyRing. Thanks for the report.


Basic Grid - ColumnSelection/DisplayMore  not working

Im using the basic bootgrid $("#grid-basic").bootgrid();
And everything works out the box except the show dropdown to display more or less rows at a time and the column selection drop down next to it. The grid loads properly and i have a default of 10 rows with pagination working, but when i click o the dropdown with the default 10 to show more nothing happens as if the event isnt being triggered. I dont have any console or debugger errors so im not sure?
Are these options that have to be added or perhaps its a bug on my end?

I was able to get it working by reading Issue #134. You need to have bootstrap.js linked which i did not.


Provide previous version conveniently

Currently the previous version is provided using the following property: project.ext.'shipkit-auto-version.previous-version' (code link). This allows clients to configure [https://github.com/shipkit/shipkit-changelog plugin](changelog plugin) this way:
tasks.named("generateChangelog") {
    previousRevision = "v" + project.ext.'shipkit-auto-version.previous-version'
    //...

This approach has following problems:
a) String concatenation code in the build file (complexity)
b) Complexity in handling scenarios where 'previous-version' is null (there are legit cases for that, for example, releasing a first version/tag).
Solution:

expose another property: project.ext.'shipkit-auto-version.previous-tag'
this way, generateChangelog task from [https://github.com/shipkit/shipkit-changelog plugin](changelog plugin) can handle b) case seamlessly, for example by generating a changelog file with just a header.

@shestee, do you want to take a stab at it?

@shestee, do you want to take a stab at it?

Yes, sure. I'll take a look at this.


[BUG] Vertical Pager inside ScrollView doesn't receive touches.

Hello!
At first let me thank you for this package (it's really awesome!). However is there a way to make vertical Pager work inside ScrollView? I'm trying to achieve similar effect to iOS 14 Stack Widgets Control. I've tried to change gesture priority, but sadly it didn't help. Maybe I'm doing something wrong. Thank you in advance!

Hi @lincolnAB , thanks for your feedback, I appreciate it.
The issue here is you have two verticals scrolls: Pager and ScrollView so which one should receive the touches? One of them needs to block each other. By default, Pager delaysTouchesso that it can be embedded in aScrollView (see [EmbeddedExampleView.swift](https://github.com/fermoya/SwiftUIPager/blob/master/Example/SwiftUIPagerExample/Examples/EmbeddedExampleView.swift)). So by default, PagerletsScrollViewreceive the touch and determine if it should receive it or not. I guess this last bit is done in a lower level, because as far as I'm concerned gestures can't fail the way you can do inUIKit`.
So your only option is to use delaysTouches(false) along with swipeableArea(.allAvailable). This will make Pager retain the drag and not propagate it. Understand that you won't be able to scroll along the screen if the touch starts on Pager

Thank you a lot for your time and explanation. Now I see the case


Break out an EnvManager class for adhoc path generation cases.

Creates a lower-level abstraction (EnvManager) for non-hermetic, managed sys.path generation cases. In our internal Bazel + pex rule implementation, for perf the default build product is an unzipped pex environment with constituent sys.path parts that comprise a bazel-managed compound python environment for a given target. This allows us to do PEX_PATH-like optimization mechanics (e.g. split 3rdparty vs source build isolation) at the cost of non-hermetic interfaces.

N.B. will rebase this atop https://github.com/pantsbuild/pants-jupyter-plugin/pull/45 to resolve lint failures in CI.


App Icon badge show 1 but no new notifications

Hi!
My app icon show “1” but no new notification when app open.
I have opened GitHub on web, and see there is a new release notification. I think that’s the reason why :)

Bug Report Dump (Auto-generated)

Version 1.18.0<PHONE_NUMBER>)
Device: iPhone 8 (iOS 11.2.6)
TestFlight: false

Looks similar to #1534. @kimdv out of curiosity, do you have "Read On Open" turned on?

Nope!
I actually had one notification, fastlane made a new release and I think it was that notification that was "unread".
Because when I did a refresh, saw the "Zero indox", pressed the home button without closing it, after a while there was 1 new notification.
Open the app, there was nothing, and the badge was gone.
I waited a little again and the badge was 1, and then it started over.

Should be fixed: https://github.com/rnystrom/GitHawk/pull/1546 :)

🚀💯


[Arrow] Update to 1.0.1

Update Arrow from 1.0.0 to the recently released 1.0.1.
Passes vcpkg CI and ParquetSharp CI (https://github.com/G-Research/ParquetSharp/pull/146).

Thanks for your contribution :)


Set default dates from the 'value' html attr

Solves the bug that dates are not picked up from the 'value' and prepopulated at page reload.
Example: https://www.lonelyplanet.com/thorntree/travel_companions

Could you check those failing specs, please?

Shouldn't the pre-populated input value be used as a default from/to date?
Please don't use dynamic date in specs - it's always caused troubles,

 Airbrake fusspot: ArgumentError: invalid date


ConfigurationUrl in manifest spfx

Category

[x] Question
[ ] Typo
[ ] Additional article idea
[x] Checked items have no spaces between the [] (delete this line)

Question
How can I redirect to webpart by teamshotedapp.aspx
I have flie manifest.json and file html be hosted in local like below:
`{
"$schema": "https://developer.microsoft.com/json-
schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"packageName": "HelloWorldWebPart",
"id": "59ac54d1-4e14-4617-8de8-2a5b7bec576a",
"version": "<IP_ADDRESS>",
"developer": {
"name": "Corporation",
"websiteUrl": "https://www.google.com",
"privacyUrl": "https://www.google.com",
"termsOfUseUrl": "https://www.microsoft.com/servicesagreement"
},
"name": {
"short": "HelloWorldWebPart"
},
"description": {
"short": "Test config tab",
"full": "Test config tab full desc."
},
"icons": {
"outline": "59ac54d1-4e14-4617-8de8-2a5b7bec576a_outline.png",
"color": "59ac54d1-4e14-4617-8de8-2a5b7bec576a_color.png"
},
"accentColor": "#FFFFFF",
"configurableTabs": [
{
"configurationUrl": "https://localhost/?componentId=59ac54d1-4e14-4617-8de8-2a5b7bec576a",
"canUpdateConfiguration": true,
"scopes": [ "team" ]
}
],
"validDomains": [
".login.microsoftonline.com",
".sharepoint.com",
"*.sharepoint-df.com",
"spoppe-a.akamaihd.net",
"spoprod-a.akamaihd.net",
"resourceseng.blob.core.windows.net",
"msft.spoppe.com"
],
"webApplicationInfo": {
"resource": "https://{teamSiteDomain}",
"id": "00000003-0000-0ff1-ce00-000000000000"
}
}
`
Here code in html. (configurationUrl)

`
                   var url = '';
		var websiteUrl = '';
		var context;
                  // Initialize the Microsoft Teams Library
		microsoftTeams.initialize();

		// Set the 'Save' Button state based on name field content
		$('#name').on('input', function () {
			if ($('#name').val().length != 0) {
				microsoftTeams.settings.setValidityState(true);
			}
			else {
				microsoftTeams.settings.setValidityState(false);
			}
		});

		// Save handler when user clicked on Save button
		microsoftTeams.settings.registerOnSaveHandler(function(saveEvent){
			microsoftTeams.getContext(function(context) {
				color = $('#color').val();
				name = $('#name').val();
				numdays = $('#numdays').val();
				console.log('context',context);
				var teamSiteDomain = context.teamSiteDomain;
				var teamSitePath = context.teamSitePath;
				var locale = context.locale;
				var urlParams = new URLSearchParams(document.location.search);
				var componentId = urlParams.get('componentId');
			var url = 'https://'+teamSiteDomain+teamSitePath+ '/_layouts/15/TeamsLogon.aspx?SPFX=true&dest='+teamSitePath+'/_layouts/15/teamshostedapp.aspx%3F3FopenPropertyPane=true%26teams%26personal%26componentId='+componentId +'%26forceLocale='+locale;

				microsoftTeams.settings.setSettings({
					entityId: "redIconTab",
					contentUrl: url,
					suggestedDisplayName: name,
					websiteUrl: websiteUrl
				});
				saveEvent.notifySuccess();
			});
		});

	</script>`

If i config contentUrl in html like above, it will redirect to PersionalApp. It works But webpart properties pane ,its showing error saying No settings to change for this web part.
I think the root cause from manifest file.
I want to redirect TeamsWebpart instead of PersionalApp like contentUrl below:
https://xxxx.sharepoint.com/sites/test123/_layouts/15/teamshostedapp.aspx?list=9fcf4c89-f109-4427-af7f-5e883d29f361&id=11&webPartInstanceId=8fc53faa-a18f-466b-ab07-c0df7f2b3494
How can i get list, id and webPartInstanceId to pass to query of contentUrl, I dont know exactly these param mean and how to get it.

Thanks for your contribution! Sharing is caring.

Those values are set dynamically by SPFx & Teams when you install the tab within a channel. More information on how the URLs are generated can be found here, but it's not intended to generate those values dynamically: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/creating-team-manifest-manually-for-webpart
In the future, please use the new issue template when submitting issues.


Allow excluding type annotation checks

There is a bug in the annotation processor not providing type annotations for classes loaded from the classpath.
https://bugs.openjdk.java.net/browse/JDK-8225377

I did rename the property. Not sure why the build is failing.
It would be nice to have it released so we can integrate it into the test suite.

The build fails most likely because of this commit: https://github.com/eclipse-ee4j/cdi-tck/commit/b557cc96f4c9c68a3f923a588231ff8bba29542c That was introduced in preparation of the final CDI 4.0 release I think. Let me check locally.

I rebased this PR locally on the 4.0.0.RC6 tag and mvn clean verify passes just fine. So the build failures are just an artifact of preparation for staging the final build. That is, this PR may go in, in my opinion.
I don't know what's the process right now, but I believe we're retracting the 4.0.0 release due to a TCK deficiency anyway (see #353), so we should be able to get this in for the 4.0.0 release too. CC @starksm64


Docker-compose for pro for version 7.x , where i can download ?

Please suggest us a URL for docker-compose 7z file

You can get compose at https://jfrog.com/download-jfrog-platform/
Also https://www.jfrog.com/confluence/display/JFROG/Installing+Artifactory#InstallingArtifactory-DockerComposeInstallation

there is no 7z file, but it took me a little bit to figure out that you can download the tar.gz from the download link, its the first picture with the octopus holding the containers.


About the link of download

hello! the link of pretrained model and the results does not work, please help me, thanks.

+1

After clicking on the provided link, it shows that it cannot be accessed. I don't think it's an issue with the internet. I hope to receive a response,

+1

+1


Configuration with INMP441 microphone and DAC

Hello,
I'm trying to make this walkie-talkie code work with another configuration:
On one side I have an ESP32 emitter with a INMP441 microphone.
On other side I have another ESP32 receiver with ESP32 buildin DAC + amplifier.
The ESP_NOW link seems to work well.
My issue is the sound is very noisy. The sound changes when I make some noise near the microphone but with some sort of saturation effect and with time I have something like an acoustic feedback effect.
Do you have an idea how I could fix this ?
Thanks

Hello,
I tried other code from https://github.com/atomic14/esp32_audio and I was able to validate that output and input circuits are working fine.
Finaly, I changed the transport to standard WIFI and it works much better.
It seems something goes wrong with ESP Now.

Hello,
if I try to NOT use INMP441 microphone, I commented line like this:
// #define USE_I2S_SPEAKER_OUTPUT
but if I do so I get error
Compiling .pio\build\lolin32\lib809\audio_input\I2SSampler.cpp.o src\Application.cpp: In constructor 'Application::Application()': src\Application.cpp:39:18: error: expected type-specifier before 'DACOutput'    m_output = new DACOutput(I2S_NUM_0);                   ^ Compiling .pio\build\lolin32\lib310\audio_output\DACOutput.cpp.o
What I should to do with the code to have analog audio on GPIO25?

Add
#include "DACOutput.h"
to Application.cpp?

Thanks for reply,
I was trying and:
Compiling .pio\build\lolin32\lib152\WiFi\WiFiAP.cpp.o src\Application.cpp: In constructor 'Application::Application()': src\Application.cpp:39:12: error: cannot convert 'DACOutput*' to 'I2SOutput*' in assignment    m_output = new DACOutput(I2S_NUM_0);             ^ *** [.pio\build\lolin32\src\Application.cpp.o] Error 1

Replace I2SOutput by Output in Application.h?

Cannot say if it worked, but it compiling now without errors.
this is what Application.h now consist:
`#pragma once
//class I2SOutput;
class I2SSampler;
class Transport;
class OutputBuffer;
class IndicatorLed;
class Output;
class Application
{
private:
//I2SOutput *m_output;
I2SSampler *m_input;
Transport *m_transport;
IndicatorLed *m_indicator_led;
OutputBuffer *m_output_buffer;
Output *m_output;
public:
Application();
void begin();
void loop();
};`
Thank you Federico. :)

I have fixed the compiling issues in the library and tested that it works using the DAC output.
Remark that the sound is weak, it is better to increase the gain by changing 5 into 8 in OutputBuffer:
change
        samples[i] = (sample - 128) << 5;
into
        samples[i] = (sample - 128) << 8;

Looks like this was solved by @FedericoBusero


TenentOnboarding: Unable to handle failure from onboarding script while handling onboardingRequest event

Describe the bug
Tested from https://github.com/aws-samples/saas-reference-architecture-ecs repository, but it looks like the same bug are present in recent 0.3.5 version also.
When we make a CoreApplicationPlane object with a BashScriptJob that can raise any error (it's reasonable to expect and handle errors while provisioning resource), it is not available to handle errors from the provisioning script.
When I modify and test the scripts/provision-tenant.sh  from the saas-reference-architecture-ecs samples repository to raise an error by inserting exit 1 script in the middle, the state machine exeuction of the Step Functions failed with TaskFailed error from the startProvisioningCodeBuild step and it causes a ExecutionFailed event for the state machine execution. It event don't make any events for the EventBridge that communicate between control plane and the application plane.
There are many failure events that is predefined but I wonder how many events are actively used. It would be better to give a way to make a failure event (ex CodeBuild step failure may send provisioningFailure events).
Expected Behavior
It would be better to give a way to make a failure event (ex CodeBuild step failure may send provisioningFailure events).
Current Behavior
the state machine exeuction of the Step Functions failed with TaskFailed error from the startProvisioningCodeBuild step and it causes a ExecutionFailed event for the state machine execution. It event don't make any events for the EventBridge that communicate between control plane and the application plane.
Reproduction Steps
When I modify and test the scripts/provision-tenant.sh  from the saas-reference-architecture-ecs samples repository to raise an error by inserting exit 1 script in the middle.
Possible Solution
It would be better to give a way to make a failure event (ex CodeBuild step failure may send provisioningFailure events).
Additional Information/Context
No response
CDK CLI Version
2.147.1
Framework Version
0.1.12
Node.js Version
v20.15.0
OS
Amazon Linux 2023 (Cloud9)
Language
TypeScript
Language Version
3.7.5
Other information
No response

Hi @junsjang , thanks for raising the issue!
I think this is bit of code you are referring to in the ECS reference architecture:
https://github.com/aws-samples/saas-reference-architecture-ecs/blob/c13ee3dc5e80fed8e080620877af52c59605dceb/server/lib/bootstrap-template/core-appplane-stack.ts#L56-L57
There are different ways we could implement the functionality required.
Option 1:
We could make outgoingEvent accept an object such as:
{
  success: DetailType,
  failure: DetailType,
}

That would allow users to specify something like this in the BashJobRunner:
      outgoingEvent: {
        success: DetailType.PROVISION_SUCCESS,
        failure: DetailType.PROVISION_FAILURE,
      },

Option 2:
Create a separate argument for the event that should be emitted in the case of a failure:
      outgoingEventSuccess: DetailType.PROVISION_SUCCESS,
      outgoingEventFailure: DetailType.PROVISION_FAILURE,

I think we need to balance flexibility with ease-of-use here. Having too many arguments would make the BashJobRunner flexible, but difficult to use, while having too few would sacrifice flexibility but would make the construct easy to use.
As I write this out, something I'm realizing is that much of this is boilerplate that we can handle within the framework. It might make sense for us to extend the BashJobRunner class to create a ProvisioningBashJobRunner that has these event fields already preset. Same for de-provisioning.
@junsjang , if you have thoughts here that you'd like to share, let us know.
@tobuck-aws , @ujwalbukka , any thoughts on this?

Thank you for your interest in my issue. From what I understand, you don't currently see any use cases that require more events than success and failure, so using plain outgoingEventSuccess and outgoingEventFailure seems sufficient. However, packing into a single outgoingEvent field would be more open for modification and could have a separate implementation object that covers the result handling mechanism. Both approaches are okay from the user's perspective.
The approach of ProvisioningBashJobRunner seems like a good opinionated pattern that aws-sbt is driving, but it should be some kind of helper class that reduces the boilerplate of the system, in my opinion.
Please let me know if I have understood your feedback correctly or if you need any clarification.

@junsjang , I just pushed a PR to address these changes. If you have any thoughts on the changes, let me know.


[sophora-server]: add container ports to values.yaml (#108)

@tom-schoener can you take another look, we urgently need the change

That is not what I had in mind. Sorry for the confusion. I meant the port of the probes in httpGet:
livenessProbe:
  httpGet:
    path: /status/liveness
    port: http # <-----

The variable name ports was fine.

@tom-schoener can you, again, take another look, we urgently need the change


failed to acquire cache lock and failed to unlock

Summary
I use kong:cassandra this docker image,and use its default configuration.Then I add a POST method api and make 200 concurrent time post requests continuously.There are some error happend;
This api have 3000 tps when do not use kong, but only 200 now.
It seems that lua-resty-lock this module's problem, i turn up lua_shared_dict cache_locks 100k to 2m.
But still not work.
So,i dont know where the problem is.
Help please...
Steps To Reproduce

run images kong:cassandra3&cassandra:2.2
add a api
use jmeter to post requests

error log:
database_cache.lua:146: get_or_set(): failed to acquire cache lock: timeout, client: x.x.x.x server: kong, request: "POST /producer/stockmsg HTTP/1.1", host: "x.x.x.x:port"
2017/03/07 03:49:01 [error] 112#0: *10925 [lua] database_cache.lua:165: get_or_set(): failed to unlock: unlocked, client: x.x.x.x, server: kong, request: "POST /producer/stockmsg HTTP/1.1", host: "x.x.x.x:port"
...
Constantly appear above the wrong

BTW:i use jmeter to post request.
Additional Details & Logs

Kong version (<IP_ADDRESS>)
Operating System centos7&docker 1.10.3
kong docker images kong:cassandra3
database cassandra 2.2

It seems that lua-resty-lock this module's problem, i turn up lua_shared_dict cache_locks 100k to 2m.
But still  not work.
So,i dont know where the problem is.
Help please...

kong docker images kong:cassandra3
database cassandra 2.2

Which is it? Cassandra 3 or Cassandra 2.2?  Note that for Kong 0.9.x only Cassandra 2.x is supported. Kong 0.10 supports Cassandra 3.
Also Kong 0.9.x has seen quite some fixes, so latest for that version is 0.9.9. Have you tried that, or even better the (brand) new 0.10

see #2186 and #2197
closing this one


Star Wars Jedi Fallen Order doesn't start

I put the DXVK files in the .exe library, but when i run the game, it stay like this

Software information
Star Wars Jedi Fallen order, All in epic, v-sync On, 60Hz
System information

GPU: Rtx 3060 TI
Driver: 526.47
Wine version: 7.20
DXVK version: 1.10.3

Log files

d3d9.log:
starwarsjedifallenorder_d3d9.log

d3d11.log: starwarsjedifallenorder_d3d11.log

dxgi.log: starwarsjedifallenorder_dxgi.log

Windows

Nothing we can do then. DXVK is hit or miss on Windows and we cannot fix that.

Could be a driver or overlay issue as i am not reproducing this on windows with my R9 380
Try to turn off all overlays such as Geforce Experience and EA overlay. If you have MSI afterburner and Riva statistics server then try to uninstall them as they can interfere with dxvk. Even if you dont have them open

Could be a driver or overlay issue as i am not reproducing this on windows with my R9 380 Try to turn off all overlays such as Geforce Experience and EA overlay. If you have MSI afterburner and Riva statistics server then try to uninstall them as they can interfere with dxvk. Even if you dont have them open

BRO THX SO MUCH, THATS WORK, I JUST TURN OFF THE NVIDIA OVERLAY AOISHDOASHD THXXXX


demo_make_series2

I can't see demo_make_series2 on https://dataexplorer.azure.com/clusters/help/databases/Samples

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

ID: 4e89587d-4bbf-7b96-422c-fb99a5aaf3d5
Version Independent ID: 5e7425d9-c530-5dd4-9bbf-3087e1d890ba
Content: Time series anomaly detection and forecasting in Azure Data Explorer
Content Source: articles/data-explorer/anomaly-detection.md
Service: data-explorer
GitHub Login: @orspod
Microsoft Alias: orspodek

@al3xisb and @YutongTie-MSFT, unfortunately the demo_make_series tables are not currently available on on https://dataexplorer.azure.com/clusters/help/databases/Samples.

@al3xisb
We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.


Fixed HMR of components issue

Fixed the issue https://github.com/gaearon/redux-devtools/issues/301

Thanks a lot!


Document automation (auto-filing pdfs and saving them)

What: there are court motions that simply need to be filed with certain demographic information (i.e. the client's name, email, address and reason that they want the court to seal their record).
Potential tools: hotdogs

I can work on getting sample documents from lawyers who have gone through this process before.


A lot of Improvements in Classification type

This module provides functions for annotating data and organizing images based on their annotations.
Improvements over annotate.py:

Improved user interface with buttons and interactive widgets.
Added ability to save annotations as a JSON file.
Added ability to display the progress of annotation.
Added ability to display the number of examples annotated and remaining.
Added ability to display the current example being annotated.
Added ability to display the current label being annotated.
Added ability to Add new Class while annotating.
Added ability to update the annotations in real-time.
Added ability to display the previous and next examples.
Added ability to organize images based on their annotations.
Added option to copy or move images to the output directory.


Please merge 508dbbe1c9056b76f3317fcea79cc63815df167c to dev channel

This rolls dev_compiler to 9cc982b90f57c6132f648b0041c0b03bd23fcbfc in DEPS
This is needed by internal users.

I had to cherry-pick all the auto-updates to DEPS, to make them apply cleanly:
8230749e116805bba2aee62321815b0b3a5526cb
eb2b2bcda9c86052eac06f3561ce2e79cc338e0e
3d58d8a7d801fafd71bea8e8556049ba61a4e092
91d079b7cf8782993d44e7475b51dd46d7c49e2a
508dbbe1c9056b76f3317fcea79cc63815df167c
Merged in 1.19.0-dev.2.3


Possible memory issue when drawing SKPicture directly on the canvas

Describe the bug
There's a possible memory issue when drawing SKPicture directly on the canvas. After disposing of the SKPicture, it seems some (unmanaged) memory is not released.
Subsequent Loading/Unloading of the picture lead to growing unmanaged memory. This memory is never released it seems.
I'm using the control from https://github.com/wieslawsoltes/Svg.Skia to draw the SKPicture
To Reproduce
Please find a minimal app to reproduce the issue here https://github.com/BobLd/IssueCanvas
Steps to reproduce the behavior:

Open the minimal app
Click the Load button
Click the Unload button
Click the Load button
etc.

Expected behavior
I would expect unmanaged memory to not grow over subsequent Load/Unload, and to be restored to baseline level.
Screenshots
The screenshot below shows memory usage in dotMemory and the subsequent Load/Unload. As an FYI, the baseline (app started, but Load button never clicked) Unmanaged memory usage is around 70MB on my computer. We can see here that we end up at 250MB and stay there:

Desktop (please complete the following information):

OS: Windows 10 Home, Version 10.0.19045 Build 19045
Version: 11.0.4

Additional context
I'm drawing the picture that can be found here and you can use https://chrome-m93-debugger.skia.org/ to look into it

Does it grow indefinitely or stops at some point?

@kekekeks It grows to roughly 250MB and stays there. Loading/Unloading does not increases unmanaged memory beyond this point. From what I see, it then stays at this level and never decreases.
After some time unloaded, I would expect unmanaged memory to go back to baseline level which does not seem to happen

You are saturating Skia's cache. You can try reducing said cache size.

@kekekeks okay I did not know about that, thx a lot.
I understand now it's more a skiasharp question than an Avalonia one, but could I ask how you would reduce the skia cache in an Avalonia context?

I've added the possibility to manually purge Skia's (non-gpu related) cache by doing SKGraphics.PurgeAllCaches(); (see doc here) and also added lease.GrContext.PurgeResources(); in the ICustomDrawOperation.
Doing so I managed to only reach ~210MB instead of the 250MB plateau, but the memory still increase as seen on the screenshot.
If anyone has an idea how to purge more of the skia cache, let me know

Are you running with integrated GPU? That might be memory pre-allocated by the driver.

@BobLd I honestly don't see a real memory leak here where memory increases infinite. For me it is more a question how to reduce memory in general. Correct me if I'm wrong.

I did 2 other tests:

Deactivating the GPU rendering by setting (let me know if this is not the way to do that)

.With(new Win32PlatformOptions
{
	RenderingMode = new[]
	{
		Win32RenderingMode.Software // No GPU acceleration
	}
})

and the memory profile is closer to what I would expect: unmanaged memory goes down to baseline level when unloading (on top of using way less of it):

Then to @kekekeks point about integrated GPU, these examples were indeed running on integrated GPU (AMD Radeon(TM) Graphics). Forcing the app to run on my NVIDIA GeForce RTX 2060, the memory profile seems to indeed behave better by looking at the Task Manager: Memory is at 175MB when skpicture loaded, and goes down to 50MB when unloaded and so even after several load/unload (I'm unable to run the app through dotMemory with this GPU though).

@timunie I don't think this is necessary a memory leak, I'm just puzzled as to why memory in not released when unloading the skPicture, and grows up to a certain level and stays there... Even more now that running this app on the GeForce card does not displays the same behaviour...
Not sure what to conclude, the behaviour seems to be limited to integrated GPU, and I don't know why it happens (by the way, is there a way to force Avalonia to use one GPU in particular from the app itself, i.e. for it to use GPU 0 instead of GPU 1?)
Feel free to close this issue if you think this is in fact not an issue

I somehow feel like this is either an issue with the graphic card or with skia sharp, as we don't manage SKPicture. So probably you can ask SkiaSharp for help.
worth to notice that we have a PR open to test newer Skia-version here: #12729 You may want to try it out if it helps in your situation.
For now, I'll move this issue into a general discussion as I think the input is valueable for others, but not an Avalonia issue.


Implement WAMP long-poll transport

Should the http://autobahn.ws front page still say "upcoming: long-poll fallback (old browsers)"? Is there documentation available/necessary for this feature?

@deceze ah, thanks! WAMP-over-Long-poll is of course shipped!
The only docs and example code right now is here:

http://crossbar.io/docs/WAMP-Long-Poll-Service/
https://github.com/crossbario/crossbarexamples/blob/master/longpoll/web/index.html#L16

@goeddea: could you fix the Autobahn main landing page?
"upcoming: long-poll fallback (old browsers)"
=>
"works in older browsers (via HTTP-Long-poll transport)

@oberstet - fixed the autobahn landing page