Compilation error for all example sketches!

I am getting following error(sic).I downloaded the latest branch.
Need help.
In file included from C:\Users\Robo1\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\src/BLEDevice.h:19:0,
                 from C:\Users\Robo1\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\examples\BLE_uart\BLE_uart.ino:22:
C:\Users\Robo1\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\src/BLEUtils.h:49:49: error: 'esp_gattc_service_elem_t' has not been declared
  static std::string gattcServiceElementToString(esp_gattc_service_elem_t *pGATTCServiceElement);
                                                 ^

It is likely that what we have is a mis-match between the version of Arduino-ESP32 you have installed and the version expected by the BLE libraries.  Recently, the author of the Arduino-ESP32 package included the BLE classes as part of the distribution.  As such, my suggestion is to re-install the very latest Arduino-ESP32 package and remove the ESP32_BLE_Arduino-master library.  You should then find that things will work again and you will have BLE available without having to perform any additional steps.

I have installed a fresh copy of Atom and added PlatformIO and after adding your lib 0.4.6 I try to compile and get the same error as mentioned above. I'm not quite sure what you mean by re-install latest Arduino-ESP32 package. Please advise. Thank you for your work with documentation and your contribution to esp32 community.

The high level story is that on the ESP32 there is an underlying library called ESP-IDF (think of this loosely as the operating system that runs on the ESP32).  Espressif makes available releases and a "best so far".  Releases happen only a couple of times a year but the best so far changes very often.  Last month, a VERY major change was made to the ESP-IDF that dramatically changed how it worked and how to program against it.  Not only did the ESP-IDF change but so too did the "toolchain" (the tools) needed to build ESP32 applications.  Normally this wouldn't be too big a deal as these changes are made in "best so far" and not in a release (the current of which is 2.1).  However, the designers/planners/owners of the Arduino ESP32 library (i.e. Arduino running on ESP32) decided to rebase the Arduino ESP32 distribution on this very latest and greatest ESP-IDF release.  Since the changes made to ESP-IDF were dramatic, I decided I could either support the last ESP-IDF release (v2.1) or the latest and greatest (pre v3.0 and the one now used by Arduino).  I chose the latter.
This means that the BLE libraries will ONLY run under the very latest distribution of the Arduino ESP32 libraries found here:
https://github.com/espressif/arduino-esp32
Now ... this applies to you ... because you are using ESP32 and the Arduino libraries through a distribution that is NOT this:
https://github.com/espressif/arduino-esp32
Instead, we need to ask Platform IO "What release of the Arduino ESP32 libraries are you using?"
In addition, the owners of Arduino ESP32 now include the BLE libraries as part of that distribution ... so you should not need to download anything special to use BLE.
Please let me know if this makes sense and PLEASE question any words or phrases I used here to help me make it a better explanation for others.

Many thanks for your rapid answer! I'm familiar with esp-idf and xtensa toolchain as this is the way I've been developing for esp32 so far. I'm also aware of the newly released esp-idf as I have it installed in my developing environment and notice a lot of changes. The actual problem I have is to be able to implement a custom profile with 128bit UUID services ( 4 parallell services ). The low level ESP-IDF functions are as you mention in the documentation difficult to use so I was hoping to short cut by using Arduino environment and therefor I picked PlatformIO. I will try to setup an environment with known working versions of each part. Again, thank you!

Works like a charm with Arduino IDE 1.8.5 and https://github.com/espressif/arduino-esp32 (60b8b47).

The actual problem I have is to be able to implement a custom profile with 128bit UUID services ( 4 parallell services ).

@databeredning If you wish i can try to help you to resolve this problem with esp-idf, just start new issue and we can try to work with it.

@chegewara I might do that. Thanks in advance.

I am having the same exact problem.
On Nov 9, 2017 4:30 PM, "Jonatan Knudsen"<EMAIL_ADDRESS>wrote:

I still have troubles compiling the example sketches. Same error as OP.
I'v reinstalled the Arduino core for ESP32 as described on
https://github.com/espressif/arduino-esp32
I'v removed the old ESP32_BLE_Arduino-master library and relaunched
Arduino IDE, but still not able to compile. Any suggestions?
Should the old core for ESP32 have been removed before reinstalling and
if, how?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-343297797,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEaKXH09Rh9CEXT1jNtv8mlPY2vveRZAks5s027vgaJpZM4QJ130
.

Here is my BLE library in zip file which is working. If you would like to try it just delete old and install new from arduino. Inside this zip file is also sdkconfig, its in case if replacing library just wont help.
https://ns1.diskstation.eu/fbsharing/2mNDdOwC

@chegewara Thanks for the link. I may have waited too long to d/l, so it's no longer available at that URL.

https://ns1.diskstation.eu/fbsharing/xnBfKn5S
Try this one

@HudsonWerks Sorry, i did not check links. I can send you in mail if you wish

Hmm. Still the same problem: "The page is not found."
Sorry for the trouble.
On Tue, Nov 14, 2017 at 10:44 PM, chegewara<EMAIL_ADDRESS>wrote:

https://ns1.diskstation.eu/fbsharing/xnBfKn5S
Try this one
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-344477246,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEaKXKWYSRDsiURv7LuUWo_1fQDozVKuks5s2l4sgaJpZM4QJ130
.

Again my bad, sorry. But this will works: (checked)
https://dsm.chege.eu.org/fbsharing/sGPYbpjq

@chegewara Fabulous! Your build works!  Thanks a million.

 I will work hard to fix it and make PR asap

@chegewara Thank you! The library you've provided in the archive works like a charm!
I've tried everything with the official one posted by @nkolban (the one that's over here: https://github.com/nkolban/ESP32_BLE_Arduino):

reinstalling arduino IDE
reinstalling last build of official ESP32 Arduino Core
It didn't work! I was getting a huge list of errors everytime I was trying to compile any example.
What did you change regarding your library?

Like i said, its nothing more than this repository prepared to install under arduino ide exactly like in this instruction https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/ArduinoBLE.md

@nkolban sorry for the newbie question ... but how does one safely remove the ESP32_BLE_Arduino-master library? Thanks.

Find it in Arduino/libraries folder and just delete it.

oh ok. so it's redundant if one uses nkolban's library?

Yes. Those are the same libraries but this one is more often updated and the other one is available from arduino library manager. My suggestion is to use this one, more effort to update it but worth it.

ok thanks, will do!

Sorry, but how can we change the platform code being used by PlatformIO?

Its a good question ... the story is as follows.  Originally, we wanted a BLE C++ library for the ESP32 and this repository was created and augmented for it.  Then a chap found that the library ran great under Arduino so we packaged a distribution of the library that would have been the user's responsibility to build and install.  Then we found that we could place it in its own Github repository and it would be available in the Arduino management libraries.  Finally, the author of the Arduino library for ESP32 decided to bundle the code in the core distribution.  In the mean time, code development on the ESP-IDF BLE continues.
Platform IO was not even considered and I have no idea how they package libraries.
If it were me ... and knowing what I know ... if I wanted to use the latest code, I would remove all the BLE code and grab the code from this repository and build a BLE library manually.  I'd review the following:
https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/ArduinoBLE.md

@nkolban thank you for the explanation. I will use the library as advised by you. For now, it might be best to lay off PlatformIO because they seem to package the ESP platform in their own way that does not include the latest updates to ESP-IDF.

I'm getting the same error "error: 'esp_gattc_service_elem_t' has not been declared"
I am using Arduino 1.8.5 and I used git to update to the version of ESP32-Arduino from 9 hours ago.
In sdkconfig I have the following
#
# Debug Log Configuration
#
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_NONE is not set
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR=y
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_WARN is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_INFO is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_DEBUG is not set
# CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_VERBOSE is not set
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=1
# CONFIG_ARDUHAL_LOG_COLORS is not set
# CONFIG_AUTOCONNECT_WIFI is not set
# CONFIG_AWS_IOT_SDK is not set
CONFIG_BT_ENABLED=y
CONFIG_BLUEDROID_ENABLED=y
CONFIG_BTC_TASK_STACK_SIZE=8192
# CONFIG_BLUEDROID_MEM_DEBUG is not set
CONFIG_CLASSIC_BT_ENABLED=y
CONFIG_GATTS_ENABLE=y
CONFIG_GATTC_ENABLE=y
CONFIG_BLE_SMP_ENABLE=y
# CONFIG_BT_STACK_NO_LOG is not set
CONFIG_BT_ACL_CONNECTIONS=4
CONFIG_BTDM_CONTROLLER_RUN_CPU=0
CONFIG_SMP_ENABLE=y
CONFIG_BT_RESERVE_DRAM=0x10000

Anyone know what I should do?

@RudyFiero Try this, it will help you to solve issue
https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/ArduinoBLE.md#replacing-the-version-that-comes-with-arduino-esp32

Go to /hardware/espressif/esp32/libraries
Delete the directory called BLE

There was no directory called BLE. There is one called SimpleBLE. I deleted it and it made no difference.

Go to your /libraries folder
Extract the ESP32_BLE.zip file there

Did that. Started ArduinoIDE by opening BLE_uart, compiled and got this error.
C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\src/BLEUtils.h:49:49: error: 'esp_gattc_service_elem_t' has not been declared

static std::string gattcServiceElementToString(esp_gattc_service_elem_t *pGATTCServiceElement);

Do I have the proper Arduino-ESP32 code? How would I know? I had followed the instructions on updating through git, didn't seem to have a problem, but I'm not very familiar with git yet.

Please check this folder: Arduino/libraries and delete ESP32_BLE

Also what is the output when you run this command:
xtensa-esp32-elf-gcc -v

After I deleted - Arduino/libraries and delete ESP32_BLE - I get
fatal error: BLEDevice.h: No such file or directory

Also what is the output when you run this command:
xtensa-esp32-elf-gcc -v

Windows cannot find 'xtensa-esp32-elf-gcc -v'. Make sure you typed the name correctly, and then try again.
I ran that from Run  window

Thats ok. Now when you deleted proper folder, you can install library from zip.
Do you have ESP32_BLE.zip file created from the latest esp32-snippets repository or would you like me to attach one here?

I would download it but I don't see anything under esp-snippets that looks like ESP32_BLE.zip What folder should it be under?

Or do I put the entire unzipped esp32-snippets into mt library?

This is how you can create zip file to use in arduino
https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/ArduinoBLE.md

That seemed to work. At least I was able to compile BLE_client without error. BLE_uart compiled and loaded, but is looping/rebooting.
@chegewara - I appreciate the help you have given me here.

This is ready to install in arduino ide zip file
ESP32_BLE.zip

Can you switch debug log to verbose and then post here log output?
Tools->Core debug level-> verbose

Have you "installed" the library using the library manager? Sketch ->
Include Library -> Add .zip library menu.
On Nov 21, 2017 8:21 PM, "Rudy"<EMAIL_ADDRESS>wrote:

That seemed to work. At least I was able to compile BLE_client without
error. BLE_uart compiled and loaded, but is looping/rebooting.
@chegewara https://github.com/chegewara - I appreciate the help you
have given me here.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-346213794,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADWlFqAGkypgo0qOHh3Omtv3LCaEPPkLks5s43cegaJpZM4QJ130
.

I deleted the ESP32_BLE that I had in my Arduino/libraries directory, then unzipped the ESP32_BLE.zip above. Now I am again getting
error: 'esp_gattc_service_elem_t' has not been declared
I did delete ESP_BLE_Arduino when I replaced the ESP_BLE that was there with the above ESP_BLE.zip. I got the compile error, then replace (un-deleted) ESP_BLE_Arduino but it didn't change things.
I am assuming that I should only have the one BLE library, ESP_BLE. But I get the same error.
error: 'esp_gattc_service_elem_t' has not been declared
I'm going to delete it again, download it again, put in library, then try again.

@abhayghatpande  - Yes I did, at some point. but mostly I have unzipped it in the libraries directory and then started up ArduinoIDE

You have to install this library, not unzip
In arduino ide go to ```
Sketch ->
Include Library -> Add .zip library menu

I deleted all BLE libraries in my Arduino/library folder. I deleted the esp32-snippets as well. I then downloaded the ESP32_BLE.zip and copied it to the libraries folder. I then started the ArduinoIDE and did the include zip library of ESP32_BLE.zip.  I then loaded the example BLE_uart.ino through the examples tab.
I then get this error.
In file included from C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\src/BLEDevice.h:20:0,

                 from C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\examples\Arduino\BLE_uart\BLE_uart.ino:22:

C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\src/BLEUtils.h:50:49: error: 'esp_gattc_service_elem_t' has not been declared

  static std::string gattcServiceElementToString(esp_gattc_service_elem_t *pGATTCServiceElement);

This means you have old version of esp-idf. Old mean is 2.0 or 2.1.
http://esp-idf.readthedocs.io/en/latest/get-started/windows-setup.html

ESP-IDF needs to be updated most probably.
On Nov 21, 2017, at 20:59, Rudy<EMAIL_ADDRESS>wrote:
I deleted all BLE libraries in my Arduino/library folder. I deleted the esp32-snippets as well. I then downloaded the ESP32_BLE.zip and copied it to the libraries folder. I then started the ArduinoIDE and did the include zip library of ESP32_BLE.zip. I then loaded the example BLE_uart.ino through the examples tab.
I then get this error.
In file included from C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\src/BLEDevice.h:20:0,
             from C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\examples\Arduino\BLE_uart\BLE_uart.ino:22:

C:\Users\wrpa\Documents\Arduino\libraries\ESP32_BLE\src/BLEUtils.h:50:49: error: 'esp_gattc_service_elem_t' has not been declared
static std::string gattcServiceElementToString(esp_gattc_service_elem_t *pGATTCServiceElement);
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-346220113, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWlFsdqduSsEg6EWwPpK5bcuTFA2MyGks5s44AcgaJpZM4QJ130.
--
Abhay Ghatpande, Ph.D., MBA
Product Innovation | Market Strategy
CAN: +1-514-442-7661
USA: +1-650-265-7710

Yesterday I followed the instructions from
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/windows.md#how-to-update-to-the-latest-code
This doesn't work?

It is good instruction. Ive send you to esp-idf instalation, sorry.
Can you tell us what is version when you do this step:
Open C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/espressif/esp32/tools and double-click get.exe
There should be some output similar to this, but with version 1.22.0-73
https://raw.githubusercontent.com/espressif/arduino-esp32/master/docs/arduino-ide/win-screenshots/win-gui-4.png

System: Windows, Info: Windows-10-10.0.15063
Platform: i686-mingw32
Tool xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip already downloaded
Extracting xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip

Wait for git to pull any changes and close Git GUI

On the Fetching new changes from origin

Success

Does "Success" mean it is done, or just found something and is currently downloading?

I'm going through the instructions again and I am now at
Next Steps
To carry on with development environment setup, proceed to section Get ESP-IDF.

http://esp-idf.readthedocs.io/en/latest/get-started/index.html#get-started-get-esp-idf

Could this be my problem? It doesn't look familiar so I probably missed it. Or maybe I blocked it out of my memory as it makes me nervous. I really need to understand how git works. :(

I can attest that if your version of xtensa-esp32-elf-gcc -v is not <IP_ADDRESS> then you are back level.
The error messages you are getting are solidly consistent with you running an old version of the Arduino-ESP32 libraries and toolchain.

I kind of figured that. But how do I get the current version? I thought that git should have taken care of that. But as I have said before, I know little about git and how to use it. I just followed the update instructions provided.

I suspect that if you follow exactly all the instructions documented here it will work:
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/windows.md
Maybe start from a clean slate (i.e. un-install the Arduino IDE and begin again).  For example, did you run "get.exe" as documented in the last step 4?
Maybe if we create a document describing all the steps that you followed and screen shots from each we could spot a potential error?

Yes I did run get.exe. About six times. That was how I got this.
System: Windows, Info: Windows-10-10.0.15063
 Platform: i686-mingw32
 Tool xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip already downloaded
 Extracting xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip

The instructions are simple and easy to follow. The screen shots in the updated process are exactly what I got. I went through the steps on Monday and again yesterday. With the same result.
When I get home tonight I probably do a reinstall.

Clearly, the package pulled into the dist directory is incorrect. I don't
have a Windows machine to test unfortunately. Please verify the
package/package.json file if it has the _73 version of the toolchain. You
could also use the get.py script instead of the exe.
On Nov 22, 2017 8:18 AM, "Rudy"<EMAIL_ADDRESS>wrote:

Yes I did run get.exe. About six times. That was how I got this.
System: Windows, Info: Windows-10-10.0.15063
Platform: i686-mingw32
Tool xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip already downloaded
Extracting xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip
The instructions are simple and easy to follow. The screen shots in the
updated process are exactly what I got. I went through the steps on Monday
and again yesterday. With the same result.
When I get home tonight I probably do a reinstall.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-346347580,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADWlFgcObUqW3gO9QpJI4YiTmQkHbPuPks5s5B8ugaJpZM4QJ130
.

I will give that a try. Thanks.

Please verify the
package/package.json file if it has the _73 version of the toolchain.

In /Documents/Arduino/hardware/espressif/esp32/packages there is only one file called
package_esp32_index.template.json
"tools": [
        {
          "name": "xtensa-esp32-elf-gcc",
          "version": "1.22.0-61-gab8375a-5.2.0",
          "systems": [
            {
              "host": "i686-mingw32",
              "url": "https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip",
              "archiveFileName": "xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip",
              "checksum": "SHA-256:c00dbdab8e8acc273d4aa319a74f7bb1d9496c843159823201d685359174168f",
              "size": "76346909"
            },

It does not have _73 version.

That's the older version. Try a fresh install in a different directory. That version should be https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-73-ge28a011-5.2.0.zip https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-73-ge28a011-5.2.0.zip`.
All the best. Definitely a weird error ...
On Nov 22, 2017, at 20:47, Rudy<EMAIL_ADDRESS>wrote:
Please verify the
package/package.json file if it has the _73 version of the toolchain.
In /Documents/Arduino/hardware/espressif/esp32/packages there is only one file called
package_esp32_index.template.json
"tools": [
{
"name": "xtensa-esp32-elf-gcc",
"version": "1.22.0-61-gab8375a-5.2.0",
"systems": [
{
"host": "i686-mingw32",
"url": "https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip",
"archiveFileName": "xtensa-esp32-elf-win32-1.22.0-61-gab8375a-5.2.0-2.zip",
"checksum": "SHA-256:c00dbdab8e8acc273d4aa319a74f7bb1d9496c843159823201d685359174168f",
"size": "76346909"
},
It does not have _73 version.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-346516137, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWlFnzJU02mYO5c5sfCUdU-kWzLEqp2ks5s5M63gaJpZM4QJ130.
--
Abhay Ghatpande, Ph.D., MBA
Product Innovation | Market Strategy
CAN: +1-514-442-7661
USA: +1-650-265-7710

This is possible explanation. You did have installed arduino ide before and older version of esp-idf stack for arduino. When you did delete or reinstall arduino you did not delete old Arduino folder from [USER]/Document and tere still is old version of esp-idf.
When i first tried to work with arduino i thought i know how to install old version of toolchain, but i forgot i have had installed arduino ide before.

I ended up uninstalling everything and started from scratch. I will go through the instructions here again and hopefully I will not have any problems.

Happy ending! All works now. I have the BLE_uart code running and am connected with a tablet. No idea what to do with it yet but that is a small problem.
Thanks for the help guys.

Congratulations!
On Nov 22, 2017, at 21:53, Rudy<EMAIL_ADDRESS>wrote:
Happy ending! All works now. I have the BLE_uart code running and am connected with a tablet. No idea what to do with it yet but that is a small problem.
Thanks for the help guys.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/nkolban/esp32-snippets/issues/146#issuecomment-346522160, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWlFodY9HF7FnGE6xae2gwHgEKAUvgNks5s5N5EgaJpZM4QJ130.

Closing for just now.  Re-open as needed.

Hey folks!
I had the same issue while compiling with Platformio today. It seems all that is required is to use the staging version of espressif32 platform, as platformio is a little way back in picking up the updated repo.
I also had an error about pthread_mutex_t not being defined or something, but that was also taken care of by changing to the staging platform.
How to change to the staging platform?
Open your platformio.ini file, and change
platform = espressif32
to
platform = espressif32_stage
If you haven't used the staging version before, you may have to wait for platformio to download the required files first.
Thanks @nkolban for your commitment towards ESP32! Where would we be without your contributions.....


[SPARK-48893][SQL][PYTHON][DOCS] Add some examples for linearRegression built-in functions

What changes were proposed in this pull request?

This PR aims to add some extra examples for linearRegression built-in functions.
Why are the changes needed?

Align the use examples for this series of functions.
Allow users to better understand the usage of linearRegression related methods from sql built-in functions docs(https://spark.apache.org/docs/latest/api/sql/index.html).

Does this PR introduce any user-facing change?

No.
How was this patch tested?

Pass GA and Manual testing for new examples.
Was this patch authored or co-authored using generative AI tooling?

No.

cc @HyukjinKwon

fine to me, but if you can help refine the Python doc for the corresponding function in builtin.py, that would be even better.

Updated it. Also cc @zhengruifeng @allisonwang-db  for the python side.

also cc @HyukjinKwon

cc @zhengruifeng  Updated as suggested, please take a look when you have time. Thanks~

Merged into master. Thanks @wayneguow @zhengruifeng and @allisonwang-db


can't get pixmap for hidden nested layer

I have a document with structure like "Folder 1" > "Folder 2" > "Folder 3" > "Layer" where Folder 2 is hidden. I'm trying to get pixmap of the "Layer" but got error instead. If I made "Folder 2" visible or move layer one level up it works.
You can check sample here.

@pineapplespatula would you mind taking a look at this when you get a sec?  Sample includes main.js and package.json along with a .psd

Hi, is there any updates on that?


panic when gen grpc.pb.go from proto which has entproto.Service()

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

panic when generate grpc.pb.go, here is panic info
--entgrpc_out: template execution failed: template: to_proto.tmpl:60:17: executing "field_to_proto" at <newConverter .Field>: error calling newConverter: runtime error: invalid memory address or nil pointer dereference
generate.go:3: running "protoc": exit status 1

command:
/usr/local/Cellar/go/1.18.2/libexec/bin/go generate ent/proto/entpb/generate.go

Expected Behavior 🤔

no panic.
Steps to Reproduce 🕹

Steps:

gen proto files.
run command above to gen pb.go
panic

More infos:
this is NOT OK
func (Note) Annotations() []schema.Annotation {
	return []schema.Annotation{
		entproto.Message(),
		entproto.Service(),
	}
}

this is OK when I had commented entproto.Service()
func (Note) Annotations() []schema.Annotation {
	return []schema.Annotation{
		entproto.Message(),
		// entproto.Service(),
	}
}

Your Environment 🌎

Tech
Version

Go
1.18.2

Ent
v0.10.2-0.20220521203114-1e05ccc28448

Database
MySQL

Driver
https://github.com/go-sql-driver/mysql

Hi @jony4
Thanks for reaching out.
I'm having trouble reproducing the issue based on the information you shared.
Can you please use ent/bug to reproduce the issue?
Thanks

Thanks for the thorough bug report @jony4.
I've managed to reproduce the issue locally and am working on a fix.
Will update

hey @jony4 ,
just merged a fix to this with https://github.com/ent/contrib/pull/322, if you can try again against ent/contrib@master

hey @jony4 ,
just merged a fix to this with ent/contrib#322, if you can try again against ent/contrib@master

Thanks for your job, I will try again later.


Request Failed with 500, for checking collection data

Hi,
Let me know if this is not right place to raise issues like this, I am posting here didn't find discord link anywhere. I ran "yarn cli get-container-items "capybaras" limit offset" The command got 500 back from the server, pasted below. What would be the right command to get collections and corresponding json file for minting NFT.
AxiosError: Request failed with status code 500
    at settle (/home/dfuse/deep/atomicals-js/node_modules/axios/dist/node/axios.cjs:1913:12)
    at IncomingMessage.handleStreamEnd (/home/dfuse/deep/atomicals-js/node_modules/axios/dist/node/axios.cjs:2995:11)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ERR_BAD_RESPONSE',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: null },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      'User-Agent': 'axios/1.5.1',
      'Content-Length': '34',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'https://ep.atomicals.xyz/proxy/blockchain.atomicals.get_container_items',
    data: '{"params":["capybaras",null,null]}'
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      socket: [Function (anonymous)],
      timeout: [Function (anonymous)],
      finish: [Function: requestOnFinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: false,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '34',
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    _closed: false,
    socket: TLSSocket {
      _tlsOptions: [Object],
      _secureEstablished: true,
      _securePending: false,
      _newSessionPending: false,
      _controlReleased: true,
      secureConnecting: false,
      _SNICallback: null,
      servername: 'ep.atomicals.xyz',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 10,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'ep.atomicals.xyz',
      _closeAfterHandlingError: false,
      _readableState: [ReadableState],
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: undefined,
      _server: null,
      ssl: [TLSWrap],
      _requestCert: true,
      _rejectUnauthorized: true,
      parser: null,
      _httpMessage: [Circular *1],
      [Symbol(res)]: [TLSWrap],
      [Symbol(verified)]: true,
      [Symbol(pendingSession)]: null,
      [Symbol(async_id_symbol)]: 15,
      [Symbol(kHandle)]: [TLSWrap],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(kSetKeepAlive)]: true,
      [Symbol(kSetKeepAliveInitialDelay)]: 60,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(connect-options)]: [Object],
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'POST /proxy/blockchain.atomicals.get_container_items HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Content-Type: application/json\r\n' +
      'User-Agent: axios/1.5.1\r\n' +
      'Content-Length: 34\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: ep.atomicals.xyz\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: nop],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype],
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype],
      freeSockets: [Object: null prototype] {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: [Object],
      [Symbol(kCapture)]: false
    },

This is an issue related to the proxy server, make more retries and you'll get the result when the proxy becomes alive.

Thanks @deependersingla will do that. @AlexV525 any good doc to read on minting ERC20 using cli?


NO JIRA: start validateRefGuideFiles gradle task

Also 9.1-->9.3 for lucene-javadocs in solr-ref-guide/antora.yml to match branch_9x and branch_9_1 commits.

⚠ 314 God Classes were detected by Lift in this project. Visit the Lift web console for more details.

subjective of course but this comment seems to appear on every PR and personally I find it rather unhelpful.
outside the scope of this PR: wondering if there's a way to suppress or customise the logic so that the comment only appears if one of the classes in the PR is a god class? there are no classes on this PR.

totally agree @cpoerschke thanks for being first to bring it up!

We should be able to disable it: https://help.sonatype.com/lift/prioritizing-technical-debt
using .lift.toml - will open a PR in a few min.

PR to disable god classes analysis https://github.com/apache/solr/pull/1076

Hey Christine, I appreciate the thought here, but I'm not sure its actually the logic that we want.
The antora.yaml file is used to generate the official ref guide for that branch, so for main and stable branches (branch_9x, branch_10x, etc), this is probably a good check. It's fine to update these at any time because there are no actual releases for these branches, just nightly builds of the ref-guide.
However for the release branches (branch_9_0, branch_9_1), we only want to update the antora.yaml on release, because they represent the official ref guide for the latest release of that minor version. So let's say that Solr 9.2.0 uses Lucene 9.5.0, there is a bug discovered in Lucene 9.5.0 so 9.5.1 is released. If we then go update branch_9_2 to use Lucene 9.5.1, we do not want the official ref guide to say that Solr 9.2.0 is using Lucene 9.5.1.
So while for the vast majority of the time this check is good, it's not 100% of the time. So we probably shouldn't bake it into the precommit command.
On a side note, there is a task gradle setOfficialAntoraYaml that will re-generate this file with all correct changes. (This is used as a part of the releaseWizard process).  I will add some text to the top of the antora.yaml that spells this out better.

No problem, I'll go revert the commits with this change. Thanks for the input!


Rename .columns class to .row, etc.

Rename classes like .columns to better reflect what they do

I am dumb and did not realize they are named correctly.


Update note for ArgoCD users

          > Probably not relevant anymore but I stumbled across the same issue and was able to fix it.

The issue started to occur when we used “Server Side Apply” instead of “Replace” when applying Kyverno resources. Adding the following annotation to my argo app fixed the issue for us:
kind: Application
metadata:
  annotations:
    argocd.argoproj.io/compare-options: ServerSideDiff=true

@FrittenToni - thanks for sharing, it would be good to add a note for ArgoCD users:

ArgoCD uses Helm only for templating but applies the results with kubectl. Unfortunately kubectl adds metadata that exceeds the limit allowed by Kubernetes. Using Replace overcomes this limitation. Another option is to use server-side apply, supported in ArgoCD v2.5+.

Originally posted by @realshuting in https://github.com/kyverno/kyverno/issues/9451#issuecomment-2478409636

We have this mentioned here:
https://kyverno.io/docs/writing-policies/mutate/#argocd-v210
We can move them to:
https://kyverno.io/docs/installation/platform-notes/#notes-for-argocd-users
And reference in the mutation section.

Another note to add -

I removed the Replace=true sync option to keep only the ServerSideApply=true

i never tried writing the documentation maybe i should give it a GO!

/assign

Please could you assign it to me

Please could you assign it to me

Assigned!

Looks like the above PR has fixed the issue. If there are no more requirements, please close the issue @realshuting. Thanks!


Fix persistence for multiple independent alignment subspaces.

And added tests for independent alignment persistence.

/azp run


decode input type

Hi, I would like to use this module as a polyfill for windows-1250 decoding in browser. I have a response from a server encoded in windows-1250 as ArrayBuffer, what should I pass into the decode method?
Thank you for your reply.

Solved the issue, I will publish an updated version of this package shortly.

Will not publish, use iconv-lite instead

🤔

Would you like me to publish it or..? I think it's better to just use iconv-lite since it works in the browser and is pretty small, which were the reasons I originally chose this package.


tsdb/index: extend index.Postings interface with MaxLen()

Calculating postings intersection faster entails intersecting a smaller list with a bigger list and choosing a different algorithm depending on the difference in sizes. Modern fast intersection algorithms are focused on either reducing the number of comparisons and/or making the comparisons faster with SIMD instructions. See
https://arxiv.org/pdf/1401.6399.pdf this paper.
I propose adding MaxLen() method to the Postings interface so that it would be possible to select a different algorithm depending on the size of the lists.

Also wanted to note: extending the interface puts a burden on all downstream implementers of the interface.
You could alternatively add MaxLen and have callers check if it is supported on their Postings.

Interesting idea. Do you have evidence of SIMD algorithms working well with Prometheus postings? I could imagine they work much better for ListPosting than for bigEndianPostings.

I've been working on this a bit during my free time, I might have something to show soon.

I'll close this for now. The main problem I ran into is that we continuously call Next() to get the intersection and ASM code is not inlined by the Go compiler so all gains are negated by the need to continuously set up the function args, call it, and return from it.

Would be interesting to see if PGO can achieve anything.
(As of 1.21 it didn’t devirtualize across packages)


[FE] list of articles on small screens do not resize Title

[FE] list of articles on small screens do not resize Title

Issue moved from Project Board to Project Issues [Already resolved].


Add sessionid to isession

The sessionid is already used  in some parts like logging and creating sessions. With that in mind, it's strange that we can't  read the sessionid when we use isession - it seems that sessionid is a important part of the whole session (otherwise why log it) .
Also in the previous versions of asp.Net,  the sessionid was readable.
So please think of including sessionid in isession.
(limited Internet device now - mobile - so ignore the full lowercase names)

https://github.com/aspnet/Session/issues/49

really, why is it logged then?

open source seems a joke here as issues are closed without even a proper response.

It's logged only for diagnostic purposes.

It's logged only for diagnostic purposes.

Precisely. So if an user would log more related info for diagnostic purposes, like the current request. Why should we not use the sessionId then? How do we relate diagnostic info without the sessionid? Why should we use our own id (change in software), while the sessionId is far more appropriate?  Why do we need to change our software, while we would like to capture our current program and not a changed one?

The cookie value is only loosely associated with the actual session. The actual session is the cache entry stored in the distributed cache. This can vanish for a number of reasons that would not affect the cookie, and then you would get a new session on the next request that still has the same cookie value. That's why we recommend storing your own identifier value in the session.

Maybe there's a better way to go about this. We've covered why the cookie value would not make a good ISession.Id, but that doesn't mean there can't be some Id. There's no reason we can't include some guid as part of the content stored with the session itself, independent of the cookie.

Thanks! That sounds like a good idea :)

The cookie value is only loosely associated with the actual session. The actual session is the cache entry stored in the distributed cache. This can vanish for a number of reasons that would not affect the cookie, and then you would get a new session on the next request that still has the same cookie value. That's why we recommend storing your own identifier value in the session.

Independent of the sessionGuid, can something like this added to DistributedSession? I'm also not sure if this behavior is different compared to ASP.NET 4.


user migration is overwritten

When issuing the install command the users table migration is overwritten
now, while I do understand that new fields is needed on the user there is a few issues with the 'silent' approach :)
Installing the package in an exiting Laravel app will not work
If the migration has been executed before then publishing and overwriting the migration file does not have any effect
It's not mentioned in the doc, so one does not know that migration is needed.
It would be better to have a add_fields_to_users_table migration or document which new fields are needed

Thanks for the feedback, indeed the user model was overwritten, corrected this mistake in the https://github.com/Jurager/teams/commit/2445719605f3b51801cb031e8f045639fbabed5c, will be available in new release soon.


Transform top collections nuxt3 way

Hi Guys
I'm actually new to Vue so i hope what i did here is sensible
and hope not to waste too much of your time correcting me
The biggest difference is the fetching of collection entities and then their collection sales
1.onmounted calls fetchCollectionsSeries
2. in fetchCollectionsSeries use "useGraphql" to fetch 'topCollectionList' and set result to a ref
3. watcher watching that ref triggers and calls 'fetchCollectionsSales'
4. in fetchCollectionsSeries use "useGraphql" to fetch 'collectionsSales' and set result to a ref
5. another watcher watches that ref and triggers 'proccessData'
6. finally 'proccessData' sets the combined results to 'data' ref and we're done
add typings too
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[ ] Feature
[x] Refactoring

Context

[x] Closes #4381
[ ] Requires deployment <>

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[ ] I've merged recent default branch -- main and I've no conflicts - had conflict TopCollections.vue, merged them
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[ ] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </bsx/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[ ] Are you at KodaDot Discord?

Screenshot 📸

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

@roiLeo
alrighty, how is it now?

Hey! I'm adding @preschian who can help for the review.
Small stuff that I wonder:

do you need to declare isLoading? can't you just use loading from useGraphql?
I would separete the watch in two different const (maybe create useCollectionsSeries & useCollectionsSales)

@roiLeo

do you need to declare isLoading? can't you just use loading from useGraphql?

well, I don't really care for the indivdual loading of topCollections and their sales
I only care if they return with error so i can terminate early
I only want to let the UI know loading is done when proccessData is done and the result is ready to be used

I would separete the watch in two different const (maybe create useCollectionsSeries & useCollectionsSales)

Ok, did that, but still is useTopCollections i need to watch twice,
once for the result of useTopCollectionList and the other for the result of useCollectionsSales

is this good to go?

is this good to go?

#4394 was merged, probably merge here?

No. Not yet
I will rewrite the query to fetch all info in one go
Eliminating the need for nested watch

@roiLeo
My initial though of uniting the queries is invalid (series type doesn't have nfts field)
What i did instead is to allow useGraphql to accept refs for data, error, loading
this enables to do something like this:
const data2 = ref();
{data: data1} = useGraphql({
    ...
})

watch (data1, () => {
    // do some calcualtion that depnds on data1
    // const info_from_data1 = ...something with data1

   const {data: data2} useGraphql({
        variables: {
            info_from_data1
        },
        data: data2
        ...
    })

})

watch(data2, () => {
    //complete proccessing
})

in contrast with the nested watch situation:
{data: data1} = useGraphql({
    ...
})

watch (data1, () => {
    // do some calcualtion that depnds on data1
    // const info_from_data1 = ...something with data1

   const {data: data2} useGraphql({
        variables: {
            info_from_data1
        },
        ...
    })

    watch(data2, () => {
        //complete proccessing
    })

})

is this acceptable?

@yangwao
Ready to merge

pay 120 usd
seems this was a great one heavy lifting!

😍 Perfect, I’ve sent the payout
💵 $120 @ 30.07 USD/KSM ~ 3.991 $KSM
🧗 EfmnRhHaQqfT3phm4cUCHCU3gFVDoSPR1U9WXzMRQBMqZ4L
🔗 0x57a0a7b1d883693139718eed6506b18b1d25463b7dce43c0a26a27fbd7a73eb6
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


no "Query Inverters"  flow

Going through the Readme it says to set the serial port in the "Query Inverters" flow but there is none.
I grep'ed the 6 flows and found ttyUSB0 in wvc-inverter-com flow.
I also got an error when entering my 4 digit inverter ID but it still accepted it and shows the output.
In the Raspberry Pi Interface flow I have not found what node red nodes to install to satisfy the String and Clear node types.

The String and Clear issue is cleared up with either installing node-red-contrib-string
I also ran sudo npm install -g npm@latest since contrib-objectid complained.

I also figured out the "invalid Input" warning on the inverter ID field after entering a valid number is because the init puts text in the field and the validation is complaining.


Run kind in CI with kuberpult & git server & environments as test data

Run kind in CI with kuberpult & git server & environments as test data.
This also adds https://github.com/6arms1leg/git-ssh-docker/ in order for us to have the docker image ready without relying on outside connections on each build.
This PR makes use of https://github.com/freiheit-com/kuberpult/commit/b3a6818680c3344a595fff0a0cb523acfa2f3a09 with minor adaptations.
Next step: Add ArgoCd.

I would really like to add the initial environments using the rest api like we do that in some projects already. Maybe that's easier? But we can merge this now as-is and do that later.


[feature] Unified error code between harbor and model-registry

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug
/kind feature

What happened:
the harbor error format:
{"errors":[{"code":"UNAUTHORIZED","message":"UnAuthorize"}]}

In model registry, it include Harbor api 、ModelJob  and Model Service api，so we must unify error format， so that it looks same for frontend.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:

Can you explain more about the feature? I am not sure if we are on the same page according to the issue titile.

Can you explain more about the feature? I am not sure if we are on the same page according to the issue titile.

In short， we must have same error format with harbor api， so that it looks same in frontend

SGTM

Is there any update?


About the loss in example reddit.py

❓ Questions & Help
Hi! When I was running (https://github.com/rusty1s/pytorch_geometric/blob/master/examples/reddit.py), I found that although the accuracy was high, the training loss was increasing in general.
I tried to lower the learning rate and lower the probability of dropout, but the training loss was still increasing in general during training. What's the reason for that? Thanks for your help.
Here is the training output of reddit.py without any change of the code:
(https://user-images.githubusercontent.com/71131727/126336257-f4ef0cc9-58c1-4610-b66f-acf2f633421c.jpg)

I think this mostly denotes that training has converged, and updates are jumping around a local minimum. There is also a high variance in training due to sampling of edges and mini-batch processing, which might explain these jumps in loss values.

I see. Thank you for your answer!


Document composite keys in the find/update/delete sections of the docs

As requested here: https://github.com/prisma/prisma-client-js/issues/488#issuecomment-736690372

I'm having the same issue in mysql, but can't figure out how to reference the composite key to delete. My workaround is I'm going to add an artificial key to my link table which really should not need one.
Below is the mysql create and my model
CREATE TABLE `NoteOnTag` (
  `noteId` int NOT NULL,
  `tagId` int NOT NULL,
  `createdAt` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  PRIMARY KEY (`noteId`,`tagId`),
  KEY `tagId` (`tagId`),
  CONSTRAINT `noteontag_ibfk_1` FOREIGN KEY (`noteId`) REFERENCES `Note` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  CONSTRAINT `noteontag_ibfk_2` FOREIGN KEY (`tagId`) REFERENCES `Tag` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci

model Note {
  id             Int             @id @default(autoincrement())
  title          String          @db.VarChar(128)
  description    String?         @db.VarChar(1024)
  createDate     DateTime        @db.DateTime(0)
  active         Int             @db.TinyInt
  noteChangeLogs NoteChangeLog[]
  noteAttributes NoteAttributes?
  noteOnTags     NoteOnTag[]
}

model Tag {
  id         Int          @id @default(autoincrement())
  tagName    String       @db.VarChar(32)
  noteOnTags NoteOnTag[]
}

model NoteOnTag {
  note      Note     @relation(fields: [noteId], references: [id])
  noteId    Int
  tag       Tag      @relation(fields: [tagId], references: [id])
  tagId     Int
  createdAt DateTime @default(now())

  @@id([noteId, tagId])
}

We're currently working on this. You can find the PR here: https://github.com/prisma/docs/pull/4591


Define standardized information for "They Know info" cards

Write API to return "They know information" for each connected service.
Acceptance criteria:

Current card carousel should work

use JSON model as structure for Dart model


GUI Language (Even when EN, some still Ru) & missing 5 axis slice option.

Locale fixed.
5 axis slicing - it is hidden in vip (or you can set planes manually and use vip button)


feat(webapp): allow non kyc

Update user application flow
What does this PR do?

Allow non-kyc user to apply

Steps to test

make run

Final mail

After comments


tabBarUnderlineColor not working

Hi,
I coudn´t changed the color of the underline tab following the instructions of the documentation, after investigate the code I used tabBarUnderlineStyle instead of tabBarUnderlineColor:
tabBarUnderlineStyle={{backgroundColor:'white'}} instead of tabBarUnderlineColor="white"
It fixes problem.

Try this
<ScrollableTabView                 renderTabBar={() => <DefaultTabBar backgroundColor="#a9a9a9" ackgroundColor activeTextColor="white" inactiveTextColor="rgba(255,255,255,0.8)" underlineColor="white" />}             ></ScrollableTabView>

@mihaben you are write. It tabBarUnderlineColor was removed in 0.6.0.

For anyone looking, here are a list of properties you can target: https://github.com/skv-headless/react-native-scrollable-tab-view/blob/master/index.js#L239-L260


Validation issue with<PHONE_NUMBER> (FR)

Please read the "guidelines for contributing" (linked above) and fill in the template below.
Country/region affected (e.g., "US"): FR
Example number(s) affected ("+1<PHONE_NUMBER>"):<PHONE_NUMBER> (+33 860004000)
The phone number range(s) to which the issue applies ("+1 555 555-XXXX"):
0806XXXXXX to 0809XXXXXX
The type of the number(s) ("fixed-line", "mobile", "short code", etc.): fixed-line
The cost, if applicable ("toll-free", "premium rate", "shared cost"): same as fixed-line
Supporting evidence (for example, national numbering plan, announcement from mobile carrier, news article): IMPORTANT - anything posted here is made public. Read the guidelines first!
http://www.neopost-services.fr/sites/neopost-services.fr/files/files/cnx-ols-ij-25-ha-sa.pdf
This number is the auto number for the autopost machine
http://www.telecom-infoconso.fr/les-numeros-08-et-les-numeros-courts/
Search: "Numéros spéciaux vocaux à tarification banalisée"
link to demo

@Zehir,
Thank you for taking the time to improve libphonenumber!
The example number you provided<PHONE_NUMBER>) does not fall under the range (0806XXXXXX to 0809XXXXXX) that you have mentioned.
We already support 0806XXXXXX to 0809XXXXXX phone numbers as valid UAN numbers.
As for<PHONE_NUMBER>, according to the official evidence at http://www.arcep.fr/index.php?id=8789, 0860 and 0868 phone numbers are used for internet access. libphonenumber does not support internet access numbers - we will only add numbers with a human at the other endpoint.
I'll close this issue as it's working as intended.
https://libphonenumber.appspot.com/phonenumberparser?number=0899123456&country=FR
https://libphonenumber.appspot.com/phonenumberparser?number=0809123456&country=FR


Fix manual auto-approve runs

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

Plan Result (demo-dt-availability-dashboards)
No changes. Your infrastructure matches the configuration.

Plan Result (ptlsbox-dt-availability-dashboards)
No changes. Your infrastructure matches the configuration.

Plan Result (sbox-dt-availability-dashboards)
No changes. Your infrastructure matches the configuration.

Plan Result (test-dt-availability-dashboards)
No changes. Your infrastructure matches the configuration.

Plan Result (stg-dt-availability-dashboards)
No changes. Your infrastructure matches the configuration.

Plan Result (ithc-dt-availability-dashboards)
No changes. Your infrastructure matches the configuration.


[driver] handle exit codes for C compilation & Java packaging

Handles failures for:

C compilation for Windows, Mac, and Android NDK
Jar/Aar file creation

This fixes the case where if you use --generator=Java --compile and C compilation fails, it does not continue on with the Java generator/compiler.
Embeddinator will print this instead:
Compiling binding code...
Failed to compile generated code.

Build failed


Update sample-job command

Signed-off-by: Carlos Eduardo Arango Gutierrez<EMAIL_ADDRESS>After https://github.com/kubernetes-sigs/kueue/pull/50 , I am getting
  Warning  Failed     8s                 kubelet            Error: container create failed: time="2022-02-23T21:08:56Z" level=error msg="container_linux.go:380: starting container process ca
used: exec: \"sleep\": executable file not found in $PATH"

this patch addresses that error
sleep bin is not in path , is in /sleep so we have to explicitly call if, see:
[eduardo@fedora kueue]$ skopeo inspect docker://gcr.io/k8s-staging-perf-tests/sleep:latest
{
    "Name": "gcr.io/k8s-staging-perf-tests/sleep",
    "Digest": "sha256:366414c196307bd0336d71cba38843beec699a6264231b8ee025b9a288a0977f",
    "RepoTags": [
        "latest",
        "v0.0.1",
        "v0.0.2"
    ],
    "Created": "2022-02-07T10:01:43.771147464Z",
    "DockerVersion": "20.10.2",
    "Labels": null,
    "Architecture": "amd64",
    "Os": "linux",
    "Layers": [
        "sha256:2df365faf0e3007f983fadd7a65ba51d41b488eb2ed8fc70f4bf97043cfea560",
        "sha256:632347799c32473577407dd95fb84696d9efd9305f5dcd008d9dde618172fc2f"
    ],
    "Env": [
        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
    ]
}

/retest-required

Also, if it's too confusing that the binary is not in the path, we can fix the Dockerfile https://github.com/kubernetes/perf-tests/blob/master/util-images/sleep/Dockerfile

/lgtm

/approve

Also, if it's too confusing that the binary is not in the path, we can fix the Dockerfile https://github.com/kubernetes/perf-tests/blob/master/util-images/sleep/Dockerfile

https://github.com/kubernetes/perf-tests/pull/1994


Support weave to enable multicast between pods and into pods from outside the cluster

Is your feature request related to a problem? Please describe.
I am unable to broadcast multicast packets between pods in my k3s cluster.
Describe the solution you'd like
I am using k3s in a development environment to simplify developing with kubernetes. I am porting a number of existing monolithic Java services to micro services.
One of these services subscribes to a multicast group and decodes packets. Another service (simulator) broadcasts multicast packets, which the former service can optionally subscribe to.
Basically, I need the ability to broadcast multicast between pods. I looked through the k3s repository and tried reading about Weave, but I quickly realised it's way over my head.
Describe alternatives you've considered
I haven't considered any alternatives, as I don't think there are any.
Thanks!

This should be possible without changes in k3s itself by using multus and a dedicated interface on each pod for the multicast traffic.


fix: replace deprecated fs.rmdir with recursive removal logic

Summary
This pull request addresses a deprecation warning in Node.js regarding the use of fs.rmdir(path, { recursive: true }). In future versions, this method will be removed.
To resolve this, I replaced fs.rmdir with fs.rm(path, { recursive: true }) as recommended by the warning. This change maintains the functionality while adhering to future Node.js standards.

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

this is a breaking change and it is not aligned with Webpack
It will cause fs which does not implenment fs.rm(, {recursive: true}) error

https://github.com/webpack/webpack/blob/e237b580e2bda705c5ab39973f786f7c5a7026bc/types.d.ts#L10391-L10406
so my opinion is temporarily closing this change, and reopen when webpack has corresponding breaking changes of OutputFileSystem API first


Scroll the diff view with the code

From Roman in the zeldaret discord:

I don't know if it's planned or feasible but I think it would be really nice to have a mode where the source and diff scrolling is synced (eg. based on the line numbers currently displayed in the diff)

Absorbing into #115

Absorbing into #115


Add cartesius2.txt

Website: https://cartesius2.nl
Link to proof that course exists: https://c2.espritscholen.nl/home/over-c2/profiel-cartesius-2/, there´s a part where they talk about programming. Also: this document, https://c2.espritscholen.nl/fileadmin/cartesius2/Modulegids/Overzicht_verplicht_curriculum.pdf, which shows the curriculum, contains 'Programmeren (which of course means Programming)' in the first few rows under Technology & Nature
Acceptance of email: https://c2.espritscholen.nl/home/contact/ shows domain @cartesius2.nl at the bottom.

@ImranDoet Pull request merged. Thank you!


10/24/2018 05:35 : Create Pull Request for branch master -> prTesting1_2018102405

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

split/updateTestCon1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Intel compiler warnings

Version info:
./vic_image.exe -v
warning:regcache incompatible with malloc
VIC Driver  : Image
VIC Version : 5.0.0 Release Candidate 1: June 28, 2016
VIC Git Tag : VIC.5.0.0.rc1-18-gacbca-dirty
Compiled    : by jhamman1 on n0026 (LINUX) Jul 20 2016 22:27:01
Compiler    : icc
 version    : Intel(R) C++ gcc 4.4.7 mode

Intel version is actually 16.0.2 on Hyak.
Warnings:
../../vic_run/src/surface_fluxes.c(512): warning #3656: variable "iter_soil_energy" may be used before its value is set
                              (last_snow_flux + iter_soil_energy.snow_flux) / 2.;
                                                ^

../shared_image/src/vic_mpi_support.c(1598): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + i * size, from + i * size, size);
                        ^

../shared_image/src/vic_mpi_support.c(1598): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + i * size, from + i * size, size);
                                         ^

../shared_image/src/vic_mpi_support.c(1604): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + i * size, from + from_map[i] * size, size);
                        ^

../shared_image/src/vic_mpi_support.c(1604): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + i * size, from + from_map[i] * size, size);
                                         ^

../shared_image/src/vic_mpi_support.c(1610): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + to_map[i] * size, from + i * size, size);
                        ^

../shared_image/src/vic_mpi_support.c(1610): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + to_map[i] * size, from + i * size, size);
                                                 ^

../shared_image/src/vic_mpi_support.c(1616): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + to_map[i] * size, from + from_map[i] * size, size);
                        ^

../shared_image/src/vic_mpi_support.c(1616): warning #1338: arithmetic on pointer to void or function type
              memcpy(to + to_map[i] * size, from + from_map[i] * size, size);```

Additional warnings when using OpenMPI version 1.8.8:
../shared_image/src/vic_mpi_support.c(69): warning #1478: function "MPI_Errhandler_set" (declared at line 1335 of "/sw/openmpi-1.8.8_icc-16.0.2/include/mpi.h") was declared deprecated
      MPI_Errhandler_set(MPI_COMM_VIC, MPI_ERRORS_RETURN);
      ^

../shared_image/src/vic_mpi_support.c(72): warning #1478: function "MPI_Errhandler_set" (declared at line 1335 of "/sw/openmpi-1.8.8_icc-16.0.2/include/mpi.h") was declared deprecated
      MPI_Errhandler_set(MPI_COMM_VIC, MPI_ERRORS_RETURN);
      ^

For the regcache warning : this appears at runtime.
Try setting the following environment variable: MX_RCACHE=2  in your shell before you run it and see if the message disappears. Not sure whether you need to do it before you build it or before you run it. I would try the latter first and see if it makes the message go away
If that does not work you can also try MX-RCACHE=0. This thread has some info on this: https://www.open-mpi.org/community/lists/users/2007/07/3621.php and this post was the most informative: https://www.open-mpi.org/community/lists/users/2007/07/3623.php .
I think you may just be able to use a -D flag in the Makefile: -D MX_RCACHE=2 and that may fix it, but you may need to play around with it a bit.

MX_RCACHE=2 set after the build silences the recache warning.

@jhamman - maybe add a line for this in the documentation (or Makefile) and then close the issue

closed via #568


Application using the LinuxFramebufferPlatform constantly keeps a whole processor core on 100% load

Describe the bug
On several different systems we can observe that a very basic sample application utilizes a whole procesor core with 100% load, even if it idles and no animations etc. are displayed. This happens with an application started using StartLinuxFbDev and StartLinuxDrm. The systems are configured to use a windowmanager as well without any problems.
To Reproduce
This the most easily to reproduce setup we found:
Hardware: Raspberry Pi 4 Model B with 4gb RAM
OS: Raspberry Pi OS Lite Kernel version 6.1.21 released on May, 3rd 2023
Avalonia Version: 11.0.0 RC 1.1

Setup OS
Start system and login on the shell
Checkout the sample project: https://github.com/TobiasSchulte/Avalonia_Sample_Repro_HighCPU
install dotnet sdk and build the project using dotnet build -c Release
run the executable using dotnet run
Observe one CPU core being fully utilized all the time

Starting the same application in a desktop environment (Pixel in case of Raspberry Pi OS) doesn't lead to the same problem.
We can observe the same problem in several other Hardware/OS combinations:

Fedora 38 with Kernel 6.3.4-201.fc38.x86_64 on AMD Ryzen 4750U
custom designed hardware using an I.MX6 Duallite and a linux image built with yocto (Kernel 5.15.63)

As I'm not able to access the systems at work over the weekend I setup a vm running fedora and in this configuration your suggestion doesn't seem to solve this problem. 11.0.0 rc 1.1 and 11.0.999-cibuild0036036-beta behave exactly the same in the vm, both consuming one of two cpus completely.
I'll test it again on monday at work on the systems mentioned above.

Sorry, wrong PR link, should be: #11596

No worries, in the vm it's fixed with that commit.
Thanks for your quick responses and your work in general!

It's resolved on the other systems as well 👍


Using the evalgen branch for local deployment will encounter errors.

I use the evalgen branch for local deployment, and I encounter the following problems：
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

The evalgen branch is currently under development. It is a WIP branch that is not yet functional. We are aiming to push out that feature to main by end of summer. Hope this helps!

Get it, thanks.


Simplify 'config create' step

Since for a default Leap user we require only API token, and all other prompts may confuse some (i.e. config path, profile name, endpoint, solver, client), we might consider splitting the "config create" flow in two branches: (1) default/basic; and (2) advanced.
In the advanced branch we can then also add a few more non-essential parameter prompts (e.g. timeout values).
Seems like one config issue users reported so far is related to config file path (if user changes the path while not understanding the consequences). Implicitly using a default there (in basic branch) will help. Use of the default (undefined) solver is also strongly encouraged (because undefined solver is translated to {"online": True}. That addressed the problem of hard-coding solver names too (as older versions of client did).

ooh this would mean re-doing all 3 videos!! 🙀

Oh, in that case we won't change our user interface ever. :smile:

thats the spirit! :P

But now seriously, I opened this issue to actually get some feedback on the idea.
We got feedback from our training folks that some users are struggling with this config step. /cc @JoelGottlieb @vgoliber


Night Life Builder

Merge remote-tracking branch 'origin/develop' into develop
ed366b42 chanocb<EMAIL_ADDRESS>on 12/10/2024 at 18:50


SSL Handshake Failed

I have configured my own leshan Server.
I am just replacing my credentials into mbed_cloud_dev_credentials.c
Compile & Run App then I receive
[ERR ][PAL]: SSL handshake return code -0x6b00.

OS: [Windows 10]
Compiler: Use Mbed Studio   Mbed Studio: 1.4.3
Compiler version:
Mbed CLI version (if used):

Device information:

Device: NUCLEO-F429ZI

OS: Mbed OS
Log.txt

Client version:

Other SW: NA

If I use same mbed_cloud_dev_credentials in pelion-client-lite repo, atleast TLS Connection is done successfully & bootstarp also done at one level..
What should I done wrong ??
Is there any better way ??

@krunalchauhan637 I cleaned up your report a bit. You should not put even test-certificates in public report. Please invalidate the certificate on your side if it is used for anything.
Leshan is not supported with this application, I would recommend to use Pelion LwM2M services instead. You would need to debug it a bit on your side. Enabling MbedTLS logs would give better understanding what fails on the handshake.

Thank you for correction & divert to right direction.. @teetak01
Want to know Is this Library  "Pelion LwM2M services"
Can I have any git link for it ??

https://pelion.com/try/device-management-trial/


I am unable to run command line tools that I install using Linuxbrew.

I am trying to run Bosh Bootloader (https://github.com/cloudfoundry/bosh-bootloader)
Here is the gist output for additional information:
https://gist.github.com/anonymous/fda4134ea097a9618d2ef11ba415102f
Error I get is: -bash: /home/ubuntu/.linuxbrew/bin/bbl: Permission denied

Consider installing Linuxbrew in /home/linuxbrew/.linuxbrew/ if possible so that you can use precompiled binary packages (known as bottles) for non-relocatable formula like util-linux.
Another possible workaround for you is brew install --force-bottle util-linux, but no promises.

bash: /home/ubuntu/.linuxbrew/bin/bbl: Permission denied

Please report the output of
ls -l /home/ubuntu/.linuxbrew/bin/bbl
file /home/ubuntu/.linuxbrew/bin/bbl
/home/ubuntu/.linuxbrew/bin/bbl --version


EDR command syntax

EDR enabling Command should be :
mdatp --edr --earlyPreview [true/false]

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

ID: 07f72a75-ca85-0651-1512-8ffb62d0ab7b
Version Independent ID: 6e15dd30-1db2-4a18-a18c-c343e1d508cd
Content: Resources for Microsoft Defender ATP for Mac
Content Source: windows/security/threat-protection/microsoft-defender-atp/mac-resources.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@aminah-amino  - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

fixed in mentioned and related article

Please note the discussions and feedback from the document author in the following pages:

#5368 Command shown is incorrect (closed issue)
#5369 Update endpoint-detection-response-mac-preview.md (PR)
#5378 Corrected the command line flag (PR)

Ref. #5507

I'm updating documentation to address this confusion. Will be live tomorrow.


Logging Format Question - HAProxy

Hi allinurl,
Thanks for the fantastic tool, I have a few logging queries and issues relating to HAProxy. I've configured my setup to use clf log formatting, which I presumed would work out of the box with Goaccess as it supports. I see this error when using the below setup:
Token '2024-05-07T00:00:16.574522+00:00' doesn't match specifier '%

Example log output:
2024-05-07T08:39:37.326492+00:00 ip-172-21-111-50 haproxy[22009]: <IP_ADDRESS> - - [07/May/2024:08:39:37 +0000] "POST /some/uri HTTP/1.1" 401 271 "" "" 25792 302 "ft~" "bk01" "srv01" 0 0 4 3 7 ---- 19 19 0 0 0 0 0 "" ""
2

log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r"

I followed the official HAProxy CLF Docs to setup the log formatting.
What's the best log-format to take advantage of as many Goaccess features as possible with HAProxy? Should I be using Common Log Format (CLF) or Common Log Format (CLF) with Virtual Host?
Thanks again

Apologies for the delay in seeing this post. The following should help, although I'm unsure about some of those additional fields. Please feel free to share them here, and I'll take a look.
# goaccess access.log --log-format='%^]: %h %^[%x] "%r" %s %b "%R" "%u" %^' --datetime-format='%d/%b/%Y:%H:%M:%S %z' --tz=America/New_York --date-spec=min

Closing this. Feel free to reopen it if needed.


NFR(Security): restriction for nullifying regular values

Estimate : 8
Priority: Could have
Story: As a feature owner, I want to prevent null assignment to any regular data
Condition of Satisfactions:
Exact determination of the row column number for the missing value

Completed 12/7


Container for downloading and visualizing GTFS -static -RT

Features:

compatible with Docker running on SBB Windows machines
avoid command line - maybe only for building the image
the GUI should download / update local environment with latest GTFS (from CKAN) - last published
the GTFS-RT is fetched on demand (when pressing Compare)

Deployed an API-based version for gtfs-rt-status/ app.
Changes:

implemented a script to download latest GTFS dataset and import in the SQLite - see tools/scripts/fetch-import-latest-gtfs-static.sh tool.
the script uses tools/gtfs-static-db-importer to import the latest GTFS into SQLite DB.
an API was also created to filter active trips and perform agency/routes lookups - see apps/gtfs-query app.


Allow multicourt in search query

Relies on https://github.com/nationalarchives/ds-caselaw-custom-api-client/pull/87

(I meant to mark this as draft, since there's changes I might wind up making)

Please don't merge on approval -- staging will break if the custom-api isn't deployed in tandem.

 👩⚖Browse by multiple courts


add missing rules in airbnb preset, fix #2085

Rules taken from https://github.com/airbnb/javascript

Would you mind showing exact reference to airbnb code style (i.e. on https://github.com/airbnb/javascript) for every change you have made?
Also, tests are falling, we would need to fix that

Friendly ping

Ping us up, if you would like to finish it


chore: update [trpc].ts

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

What is the new behavior?
Other information
arbitary -> arbitrary

thanks


PDF: Change table head background to neutral gray

This replaces the last vestige of "antiquewhite" with the 6% gray shade "#f0f0f0" that is used for codeblock & screen backgrounds.
See #2382.

I'm not sure if this is the right solution either. Both anitquewhite and #F0F0F0 are a matter of taste. I'd rather see the background colour removed completely, instead of changed into something that is not better or more right, just different.

:+1: for removing it, I think the XHTML does not have it anyway so we would have consistency.

Also fine with me to remove it entirely.
That would have the added benefit of aligning CALS table presentation with <simpletable> output, which currently has no shading in the table heads.


Frontier 2 (v1.325)

Enemies not showing up.
Text at the botton of the screen very blurred.
http://scratch.mit.edu/projects/58976080/
http://phosphorus.github.io/#58976080
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36

Sometimes chrome thinks that 'ontouchstart' in document  = true when using a pc for debugging.
(so chrome issue). This causes the mouse events not to be setup.
I've seen this with two tabs opened with the same code from different URLs  both in chrome debugger
However this project link is working


remove spikeextractors_backend options

Motivation
Checklist

[ ] Have you thoroughly read our Developer Guide?
[ ] Have you ensured the PR description clearly describes the problem and solutions?
[ ] Have you checked to ensure that there aren't other open or previously closed Pull Requests for the same change?
[ ] If this PR fixes an issue, is the first line of the PR description fix #XXX where XXX is the issue number?
[ ] Did you update the CHANGLOG.md file on your branch to describe your changes?

@alejoe91 can you please help port https://github.com/catalystneuro/neuroconv/blob/main/tests/test_ecephys/test_tools_spikeextractors.py to use the new spikeinterface functions instead of spikeextractors?

Is the plan to combine/merge this with #309 or do removals modularly?

https://github.com/catalystneuro/neuroconv/blob/main/tests/test_ecephys/test_tools_spikeextractors.py

Those changes in particular would be needed on #309, which removes the tools level support

@alejoe91 can you please help port https://github.com/catalystneuro/neuroconv/blob/main/tests/test_ecephys/test_tools_spikeextractors.py to use the new spikeinterface functions instead of spikeextractors?

Shouldn't we just just remove the test_tools_spikeextractors.py? We already have the test_tools_spikeinterface.py which tests the same write functions with the new API

duplicate of 309


[ROS Noetic/NLopt] This should never happen: All complete paths are guaranteed to be feasible

I encountered this issue when trying to run mader in ROS Noetic and NLopt (I have not tested any other version). This issue can be reproduced in docker, as follows:
Create an empty directory containing the dockerfile Dockerfile with this content:
FROM ros:noetic

RUN apt update
RUN apt install git -y

WORKDIR /home/src

RUN git clone https://github.com/mit-acl/mader.git --recursive
WORKDIR /home

RUN export DEBIAN_FRONTEND=noninteractive && rosdep install --from-paths src/mader --ignore-src -r -y --rosdistro noetic

RUN apt install python3-catkin-tools libgmp3-dev libmpfr-dev wget -y

#CGAL
RUN wget https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.14.2/CGAL-4.14.2.tar.xz
RUN tar -xf CGAL-4.14.2.tar.xz
WORKDIR /home/CGAL-4.14.2
RUN cmake . -DCMAKE_BUILD_TYPE=Release
RUN make install
WORKDIR /home
RUN rm -rf CGAL-4.14.2 CGAL-4.14.2.tar.xz

#NLOPT
RUN wget https://github.com/stevengj/nlopt/archive/v2.6.2.tar.gz
RUN tar -xvzf v2.6.2.tar.gz
WORKDIR /home/nlopt-2.6.2
RUN cmake . && make install
WORKDIR /home
RUN rm -rf nlopt-2.6.2 v2.6.2.tar.gz

RUN . /opt/ros/noetic/setup.sh && catkin config -DCMAKE_BUILD_TYPE=Release && catkin build -DUSE_GUROBI=OFF

RUN apt install python-is-python3 ros-noetic-gazebo-msgs -y

In this directory, run docker build -t ros_mader . and afterwards run docker run -it ros_mader bash -c '. devel/setup.bash && roslaunch mader single_agent_simulation.launch'. This is the full logging output:
... logging to /root/.ros/log/f3df482a-6291-11ec-8558-0242ac110002/roslaunch-90861c4a2d98-1.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://90861c4a2d98:34169/

SUMMARY
========

PARAMETERS
 * /SQ01s/mader/Ra: 4.0
 * /SQ01s/mader/a_max: [20.0, 20.0, 9.6]
 * /SQ01s/mader/a_star_bias: 1.0
 * /SQ01s/mader/a_star_fraction_voxel_size: 0.5
 * /SQ01s/mader/a_star_samp_x: 5
 * /SQ01s/mader/a_star_samp_y: 5
 * /SQ01s/mader/a_star_samp_z: 5
 * /SQ01s/mader/allow_infeasible_guess: True
 * /SQ01s/mader/alpha: 0.0
 * /SQ01s/mader/alpha_filter_dyaw: 0
 * /SQ01s/mader/alpha_shrink: 0.95
 * /SQ01s/mader/basis: MINVO
 * /SQ01s/mader/beta: 0.0
 * /SQ01s/mader/color_type: vel
 * /SQ01s/mader/dc: 0.01
 * /SQ01s/mader/deg_pol: 3
 * /SQ01s/mader/dist_factor_alloc_close: 2.0
 * /SQ01s/mader/drone_radius: 0.05
 * /SQ01s/mader/epsilon_tol_constraints: 1e-06
 * /SQ01s/mader/factor_alloc: 1.0
 * /SQ01s/mader/factor_alloc_close: 1.5
 * /SQ01s/mader/factor_alpha: 1.5
 * /SQ01s/mader/fov_depth: 4.5
 * /SQ01s/mader/fov_horiz_deg: 100
 * /SQ01s/mader/fov_vert_deg: 100
 * /SQ01s/mader/ftol_rel: 1e-10
 * /SQ01s/mader/gamma: 0.1
 * /SQ01s/mader/goal_radius: 0.15
 * /SQ01s/mader/j_max: [30.0, 30.0, 30.0]
 * /SQ01s/mader/kappa: 0.4
 * /SQ01s/mader/lower_bound_runtime_snlopt: 0.05
 * /SQ01s/mader/mu: 0.4
 * /SQ01s/mader/n_agents: 16
 * /SQ01s/mader/num_pol: 4
 * /SQ01s/mader/res_plot_traj: 15.0
 * /SQ01s/mader/solver: LD_MMA
 * /SQ01s/mader/upper_bound_runtime_snlopt: 0.35
 * /SQ01s/mader/use_ff: True
 * /SQ01s/mader/v_max: [3.5, 3.5, 3.5]
 * /SQ01s/mader/visual: True
 * /SQ01s/mader/w_max: 2.5
 * /SQ01s/mader/weight: 1000.0
 * /SQ01s/mader/x_max:<PHONE_NUMBER>0.0
 * /SQ01s/mader/x_min: -1000000000.0
 * /SQ01s/mader/xtol_rel: 1e-13
 * /SQ01s/mader/y_max:<PHONE_NUMBER>.0
 * /SQ01s/mader/y_min: -1000000000.0
 * /SQ01s/mader/z_max:<PHONE_NUMBER>.0
 * /SQ01s/mader/z_min: -1000000000.0
 * /SQ01s/perfect_tracker/x: 0
 * /SQ01s/perfect_tracker/y: 0
 * /SQ01s/perfect_tracker/yaw: 0.0
 * /SQ01s/perfect_tracker/z: 1.0
 * /SQ01s/rosconsole_overlay_text/nodes: /SQ01s/mader
 * /SQ01s/rosconsole_overlay_text/reverse_lines: False
 * /rosdistro: noetic
 * /rosversion: 1.15.13

NODES
  /
    behavior_selector (behavior_selector/behavior_selector_node.py)
    dynamic_corridor (mader/dynamic_corridor.py)
    rviz (rviz/rviz)
  /SQ01s/
    mader (mader/mader_node)
    mader_commands (mader/mader_commands.py)
    perfect_tracker (mader/perfect_controller.py)
    rosconsole_overlay_text (jsk_rviz_plugins/rosconsole_overlay_text.py)
    vicon2world (tf/static_transform_publisher)

auto-starting new master
process[master]: started with pid [50]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to f3df482a-6291-11ec-8558-0242ac110002
process[rosout-1]: started with pid [60]
started core service [/rosout]
process[SQ01s/mader_commands-2]: started with pid [67]
process[SQ01s/vicon2world-3]: started with pid [68]
process[SQ01s/perfect_tracker-4]: started with pid [69]
process[behavior_selector-5]: started with pid [70]
process[rviz-6]: started with pid [76]
process[dynamic_corridor-7]: started with pid [77]
process[SQ01s/mader-8]: started with pid [78]
process[SQ01s/rosconsole_overlay_text-9]: started with pid [79]
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Parameters obtained
Parameters obtained, checking them...
Parameters checked
In the SolverNlopt Constructor
initial_state=
Pos, Vel, Accel, Jerk= -4  1 -2 -1.3  0.6  1.5 0 0 0 0 0 0
final_state=
Pos, Vel, Accel, Jerk= 4 2 3 0 0 0 0 0 0 0 0 0
[NL] Running A* from-4  1 -2 to 4 2 3, allowing time = 0 ms
[A*] Running...
[A*] Max Runtime was reached
[A*] choosing closest complete path as solution
complete_closest_dist_so_far_= 1.27
velocity constraint for vi is not satisfied, i=0
N_=10
qa= -4  1 -2
qb= -4.17  1.08  -1.8
qc= -4.51  1.24 -1.41
qd= 4.35 1.47 2.31
Vbs=
-1.3 -1.3 22.4
 0.6  0.6  0.6
 1.5  1.5 9.41
V_newbasis=
-1.3 -1.3 22.4
 0.6  0.6  0.6
 1.5  1.5 9.41
v_max_=
10
10
10
Using matrix
1 0 0
0 1 0
0 0 1
velocity constraint for vi is not satisfied, i=1
N_=10
qa= -4.17  1.08  -1.8
qb= -4.51  1.24 -1.41
qc= 4.35 1.47 2.31
qd= 3.83 1.71  2.9
Vbs=
-1.3 22.4 -1.3
 0.6  0.6  0.6
 1.5 9.41  1.5
V_newbasis=
-1.3 22.4 -1.3
 0.6  0.6  0.6
 1.5 9.41  1.5
v_max_=
10
10
10
Using matrix
1 0 0
0 1 0
0 0 1
velocity constraint for vi is not satisfied, i=2
N_=10
qa= -4.51  1.24 -1.41
qb= 4.35 1.47 2.31
qc= 3.83 1.71  2.9
qd= 3.32 1.95  3.5
Vbs=
22.4 -1.3 -1.3
 0.6  0.6  0.6
9.41  1.5  1.5
V_newbasis=
22.4 -1.3 -1.3
 0.6  0.6  0.6
9.41  1.5  1.5
v_max_=
10
10
10
Using matrix
1 0 0
0 1 0
0 0 1
This should never happen: All complete paths are guaranteed to be feasible
=====================================================
[rviz-6] process has died [pid 76, exit code -6, cmd /opt/ros/noetic/lib/rviz/rviz -d /home/src/mader/mader/rviz_cfgs/mader.rviz __name:=rviz __log:=/root/.ros/log/f3df482a-6291-11ec-8558-0242ac110002/rviz-6.log].
log file: /root/.ros/log/f3df482a-6291-11ec-8558-0242ac110002/rviz-6*.log
********************************
['/home/src/mader/mader/scripts/dynamic_corridor.py', '80', '__name:=dynamic_corridor', '__log:=/root/.ros/log/f3df482a-6291-11ec-8558-0242ac110002/dynamic_corridor-7.log']
Starting perfect tracker node for: /SQ01s/
Starting behavior selector
80
[SQ01s/mader-8] process has died [pid 78, exit code -6, cmd /home/devel/lib/mader/mader_node ~state:=state ~who_plans:=who_plans ~term_goal:=term_goal ~traj:=traj ~goal:=goal ~setpoint:=setpoint __name:=mader __log:=/root/.ros/log/f3df482a-6291-11ec-8558-0242ac110002/SQ01s-mader-8.log].
log file: /root/.ros/log/f3df482a-6291-11ec-8558-0242ac110002/SQ01s-mader-8*.log

Tried running it with Gurobi and get no error messages, but the mader node still crashes with the same exit code:
[SQ01s/mader-8] process has died [pid 83, exit code -6, cmd /home/devel/lib/mader/mader_node ~state:=state ~who_plans:=who_plans ~term_goal:=term_goal ~traj:=traj ~goal:=goal ~setpoint:=setpoint __name:=mader __log:=/home/jan/.ros/log/453c5c7e-6316-11ec-bae3-0242ac110002/SQ01s-mader-8.log].

The updated Dockerfile and a script to run the container that allows X11 forwarding through docker can be found here:
runfiles.zip
This requires the Gurobi license file to be placed in the same folder as the docker container.

The error "This should never happen: All complete paths are guaranteed to be feasible" should be fixed in the master branch, let me know if you still find this issue

I encountered the same problem. How did you solve this problem?


Now After Google/FB Sign-in user navigate to additional details page and then bottom navigation page instead of log-in page

Description
Now After Google/FB Sign-in user navigate to additional details page and then bottom navigation page instead of log-in page
Fixes #128
Replace #128 with the issue number which is fixed in this PR
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change
Please delete options that are not relevant.

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

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

Not Possible to add screenshots because this is involved in navigation process...
Hope you review it and merge it soon @HimeshNayak @avinashkranjan

Great @SamarpanCoder2002!
LGTM! @avinashkranjan you may merge this PR

Thanks for review @HimeshNayak ...hope you merge it soon @avinashkranjan

Great @SamarpanCoder2002!
LGTM! @avinashkranjan you may merge this PR

Thanks for review @HimeshNayak ...hope you merge it soon @avinashkranjan

@avinashkranjan kindly merge this pull reuest...Actually I can't proceed with another issue...Thank u @avinashkranjan

Great work @SamarpanCoder2002 ! 😄
@avinashkranjan please merge the PR 👍

Thanks for review @hareshnayak ..... @avinashkranjan ...Hope you merge it soon

LGTM..💯

Thanks for merge


Clarify the example in # Navigation actions are handled by current navigator and bubble up if couldn't be handled

https://reactnavigation.org/docs/nesting-navigators/#navigation-actions-are-handled-by-current-navigator-and-bubble-up-if-couldnt-be-handled

In the above example, when calling navigate('Settings'), inside Profile screen, the nested stack navigator will handle it, but if you call navigate('Home'), the parent tab navigator will handle it.

This example doesn't sound right to me but not sure how to correct it.

I was reading through the docs and noticed the same.
The example that is in the docs right now actually calls navigate("Settings") while it is in the same Navigator if I am correct. Therefore, nothing will bubble up, if I read this correctly.
I think the example should be something like this:

In the above example, when calling navigate('Messages'), inside Feed screen, the nested tab navigator will handle it, but if you call navigate('Settings'), the parent stack navigator will handle it.

This will call navigate('Messages') from the Feed screen, which is in the same Navigator. This will be handled locally, by the Home component's Tab Navigator.
Calling navigate('Settings') from the Feed screen will actually bubble up to the Stack Navigator, since the Home component's Tab Navigator does not have a 'Settings' screen.
I made a PR for this:  #740
P.S. This is my first open source PR so if any information you need is missing or the docs also need to be updated for previous versions I'll update my PR! :ok_hand:


RSSI-distance estimation visualisation

[Who]  As a developer and app user
[What] I need to assess accuracy of distance estimation based on RSSI measurements
[Value] In order to determine whether the default models and parameters are adequate for the target application, or further calibration is required
Describe the potential solution you'd like
Near real-time visualisation of estimated distance between devices on the user interface.

Closed by latest develop


Need a way to list items in a storage bucket

Please fill in the following fields:
Pre-built SDK from the website or open-source from this repo: website, retrieved 10/Mar/2010
Firebase C++ SDK version: 6.12.0
Firebase plugins in use (Auth, Database, etc.): auth, storage
Additional SDKs you are using (Facebook, AdMob, etc.): n/a
Platform you are using the C++ SDK on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): iOS and desktop
Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
We use date-time stamps to create unique filenames, so it's very difficult to retrieve files afterwards without being able to list and iterate over the bucket contents.
All other APIs have storageRef.list() and storageRef.listAll() to list items in a storage bucket, except for C++.  Getting a list of all items (rather than per "directory") would be fine, but there's currently no way to do this either.
It is possible to get some results by calling rootStorageRef.GetBytes(...)/GetFile(...), which returns a JSON listing. This isn't a full list though, because it has nextPageToken to get the next pagination but there is no way (as far as I can see) to use this token to get the next set of results in C++.
Another option would be to have the functionality to craft custom curl requests, so that missing C++ API methods could be worked around by adding things like nextPageToken into the endpoint call. If this functionality already exists I can't find it.
Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
Not applicable, because quickstarts doesn't exercise the requested functionality.
What's the issue repro rate? (eg 100%, 1/5 etc)
100% (missing/requested feature).

For the time being a workaround is to store download URLs in Realtime Database.

Is there any technical reason why this is still not exposed in the C++ SDK, given that it's been available in the other SDKs for 2 years?  Makes a huge impact on complexity and dev effort across all projects using the C++ Storage API, so it seems like a worthwhile thing to prioritize if there's nothing blocking it.


AnthropicChatGenerator StreamingChunk "meta" is empty

I am looking for some meta information, similar to the OpenAIChatGenerator, to capture the stop event. Unfortunately, the meta field for the AnthropicChatGenerator is empty.
I added some print statements for debugging to AnthropicChatGenerator (line 221 and 227):
  # if streaming is enabled, the response is a Stream[MessageStreamEvent]
        if isinstance(response, Stream):
            chunks: List[StreamingChunk] = []
            stream_event, delta, start_event = None, None, None
            for stream_event in response:
                print(stream_event)
                if isinstance(stream_event, MessageStartEvent):
                    # capture start message to count input tokens
                    start_event = stream_event
                if isinstance(stream_event, ContentBlockDeltaEvent):
                    chunk_delta: StreamingChunk = self._build_chunk(stream_event.delta)
                    print(chunk_delta)
                    chunks.append(chunk_delta)

And here is the output where you can see that the meta field is empty:
RawContentBlockDeltaEvent(delta=TextDelta(text='d of test', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content='d of test', meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text=" you're", type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content=" you're", meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text=' referring to? Once', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content=' referring to? Once', meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text=' you give', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content=' you give', meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text=' me more context or', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content=' me more context or', meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text=' a specific question, I', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content=' a specific question, I', meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text="'ll do my best to", type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content="'ll do my best to", meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text=' assist you', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content=' assist you', meta={})
RawContentBlockDeltaEvent(delta=TextDelta(text='.', type='text_delta'), index=0, type='content_block_delta')
StreamingChunk(content='.', meta={})
RawContentBlockStopEvent(index=0, type='content_block_stop')
RawMessageDeltaEvent(delta=Delta(stop_reason='end_turn', stop_sequence=None), type='message_delta', usage=MessageDeltaUsage(output_tokens=93))
RawMessageStopEvent(type='message_stop')

Version: anthropic-haystack       1.1.0

Hi @wursterje,
I reviewed the mentioned issue and it appears that you're trying to capture meta for RawContentBlockDeltaEvent, which isn't provided in the streaming responses from the Anthropic API.
In Anthropic's streaming API, responses include a series of structured events, such as RawMessageStartEvent at the start and RawMessageDeltaEvent throughout, which provide updates like stop_reason and stop_sequence. These events should contain the meta you are looking for, such as stop_sequence.
Reference: https://docs.anthropic.com/en/api/messages-streaming

@Amnah199
I'm using OpenAIChatGenerator, MistralChatGenerator, and AnthropicChatGenerator, passing a streaming_callback. I expect the behavior to be the same for all three, but it is not for AnthropicChatGenerator.
This is my code for the streaming_callback, and I need to get the stop reason there for Anthropic as well. It would be very easy if I received the reason in the meta field, as I do with the other generators.
def add(self, document):
    self.response += document.content
    self.on_new_chunk(self.response)

    if ("done" in document.meta and document.meta["done"]) or (
        "finish_reason" in document.meta and document.meta["finish_reason"] == "stop"
    ):
        self.finish_event.set()