Amazon FreeRTOS Cross Compile for ESP32 [Build-Errors]

ESP32-WROOM-32 Platform
Ubuntu 20.04
Last version of FreeRTOS  (I download it from aws iot core service)

I create build system via "cmake -DVENDOR=espressif -DBOARD=esp32_devkitc -DCOMPILER=xtensa-esp32 -DCMAKE_BUILD_TYPE=Debug -GNinja -S . -B [build-folder-path]" and when I compile it by using "ninja" or "cmake --build [build-path]". Appear the next errors:
Errors
cc1: some warnings being treated as errors
[9/963] Building C object CMakeFiles/afr_kernel.dir/freertos_kernel/tasks.c.obj
ninja: build stopped: subcommand failed.
Moreover, I try to quit -Werror=all flags, but it shows another errors.
Some help? Thanks!

@victorK8
From the provided error log, I'm unable to get exact error. Can you share entire build log?
As a part of basic setup, IDF_PATH environment variable must be unset and toolchain version 5.2.0 must be used (To check toolchain version, run xtensa-esp32-elf-gcc --version).

Thank @shubhamkulkarni97 for helping me.
I check my esp32 compiler version via  xtensa-esp32-elf-gcc --version. It shows these logs:
            xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
            Copyright (C) 2018 Free Software Foundation, Inc.
            This is free software; see the source for copying conditions.  There is NO
            warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Logs show that compiler's version is 8.4.0. Moreover, I share my last build log.
[  1%] Built target afr_kernel
[  2%] Built target afr_wifi
[ 11%] Built target afr_3rdparty_mbedtls
[ 12%] Built target afr_crypto
[ 13%] Built target afr_pkcs11_utils
[ 13%] Built target afr_pkcs11_implementation
[ 13%] Built target afr_logging
[ 14%] Built target afr_secure_sockets
[ 14%] Built target afr_common
[ 14%] Built target afr_platform
[ 15%] Built target afr_pkcs11
[ 16%] Built target afr_tls
[ 16%] Built target afr_freertos_plus_cli
[ 16%] Built target afr_transport_interface_secure_sockets
[ 16%] Built target afr_retry_utils
[ 16%] Built target afr_core_http
[ 16%] Built target afr_http_demo_helpers
[ 16%] Built target afr_core_http_demo_dependencies
[ 16%] Built target afr_https
[ 17%] Built target partition_table
[ 17%] Built target idf_component_ulp
[ 17%] Built target afr_core_mqtt
[ 18%] Built target afr_mqtt_demo_helpers
[ 18%] Built target afr_3rdparty_tinycbor
[ 19%] Built target afr_serializer
[ 20%] Built target afr_ble_hal
[ 22%] Built target afr_ble
[ 23%] Built target afr_core_mqtt_demo_dependencies
[ 25%] Built target idf_component_ulp_sections_info
[ 26%] Built target idf_component_soc
[ 26%] Built target idf_component_soc_sections_info
[ 26%] Built target idf_component_log
[ 26%] Built target idf_component_log_sections_info
[ 27%] Built target idf_component_heap
[ 27%] Built target idf_component_heap_sections_info
[ 29%] Built target idf_component_freertos
[ 29%] Built target idf_component_freertos_sections_info
[ 29%] Built target idf_component_vfs
[ 29%] Built target idf_component_vfs_sections_info
[ 30%] Built target idf_component_newlib
[ 30%] Built target idf_component_newlib_sections_info
[ 30%] Built target idf_component_esp_ringbuf
[ 30%] Built target idf_component_esp_ringbuf_sections_info
[ 32%] Built target idf_component_driver
[ 33%] Built target idf_component_driver_sections_info
[ 33%] Built target idf_component_esp_event
[ 33%] Built target idf_component_esp_event_sections_info
[ 34%] Built target idf_component_ethernet
[ 34%] Built target idf_component_ethernet_sections_info
[ 35%] Built target idf_component_micro-ecc
[ 35%] Built target idf_component_micro-ecc_sections_info
[ 35%] Built target idf_component_efuse
[ 35%] Built target idf_component_efuse_sections_info
[ 36%] Built target idf_component_bootloader_support
[ 36%] Built target idf_component_bootloader_support_sections_info
[ 36%] Built target idf_component_app_update
[ 37%] Built target idf_component_app_update_sections_info
[ 38%] Built target idf_component_spi_flash
[ 38%] Built target idf_component_spi_flash_sections_info
[ 38%] Building CXX object esp-idf/nvs_flash/CMakeFiles/idf_component_nvs_flash.dir/src/nvs_api.cpp.obj
In file included from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/cstdlib:75,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/ext/string_conversions.h:41,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/bits/basic_string.h:6400,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/string:52,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/stdexcept:39,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/array:39,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/tuple:39,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/bits/unique_ptr.h:37,
from /home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.4.0/memory:80,
from /home/maluma/esp32-avs/amazon-freertos/vendors/espressif/esp-idf/components/nvs_flash/src/nvs.hpp:18,
from /home/maluma/esp32-avs/amazon-freertos/vendors/espressif/esp-idf/components/nvs_flash/src/nvs_api.cpp:14:
/home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:155:44: error: expected initializer before '__result_use_check'
void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
^~~~~~~~~~~~~~~~~~
/home/maluma/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:340:52: error: expected initializer before '__alloc_align'
void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
^~~~~~~~~~~~~
make[2]: *** [esp-idf/nvs_flash/CMakeFiles/idf_component_nvs_flash.dir/build.make:82: esp-idf/nvs_flash/CMakeFiles/idf_component_nvs_flash.dir/src/nvs_api.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:5262: esp-idf/nvs_flash/CMakeFiles/idf_component_nvs_flash.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

@victorK8
Logs show that incorrect toolchain version is used.
Please run following commands to install correct toolchain:

./vendors/espressif/esp-idf/install.sh (Installs required tools)
. ./vendors/espressif/esp-idf/export.sh (Adds required tools to PATH)
unset IDF_PATH

After executing these commands, you should be able to build application with cmake command mentioned in the description.
Thanks,
Shubham

@shubhamkulkarni97
Thank so much!! It works well now.
Victor


Authentication frontend

Hitas Pull Request
Description
Authentication and authorization added to the frontend
- Sign in and log out -buttons are added to the header
- Clicking sign in directs the user to the sign in dialog, and after successful sign in, redirects back to where the user left
- User name or email is shown for authenticated users
- Protected content is shown only for the authorized users
- Unauthorized, loading or logout  -views are shown for the unauthorized users
Pull request checklist
Check the boxes for each DoD item that has been completed:

Testing

[x] Changes have been tested
[x] Automatic tests have been added

Database

[ ] Database migrations will work in the DEV & TEST environments
[ ] initial.json has been updated to work with migrations
[ ] Oracle migration has been updated

Documentation

[x] Tooltips have been added in the frontend for all new fields
[ ] OpenAPI definitions have been updated
[x] Test instructions have been written for the customer in the appropriate ticket in Jira
[ ] Terminology page in Confluence has been updated

Test plan

[ ] Sign in from the header icon in the frontend, and verify that a sign-in dialog opens and after successful sign in, you are directed back to the page you left
[ ] Verify that the content you see in the frontend reflects the user rights of your account and the authentication status
[ ] Verify that your user name or email is visible next to the user icon in the header when signed in
[ ] Log out from the user dropdown in the header, and verify that you see the successful log out -message, and that you cannot access the protected content anymore. You should see the instructions to sign in instead of the protected content when logged out.
[ ] Sign in using the hyperlink in the content area of the frontend and verify that it works similar to the sign in icon button in the header

Tickets
This pull request resolves all or part of the following ticket(s): HT-530, HT-486, HT-487

Login and logout work as expected. Also tested with remote Tunnistamo and it also works great 👍

@vincit-matu or @ranta should review the frontend code

If the .env variable REACT_APP_AUTH_TOKEN=... is set, clicking on 'Kirjaudu sisään' sends multiple requests, but the app is forever requesting the user to authenticate.

I think this is likely to be related to backend settings as the token way of authentication has not been changed in the frontend.  The backend now directs to tunnistamo login also with token and sets the cookie, which is then not used in the queries as the token is sent instead. Thus the request from userinfo endpoint returns 404 not found. Frontend considers the user logged in only if userinfo data is returned from the backend.


[BUG] The given value "" does not represent a valid number

[ ] Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.
[x ] Checked that your issue isn't already filed.
[ x] Checked if no PR was submitted that fixes this problem.

Versions

PHP version: php7.4
Laravel version: laravel 7.2
Nova version: 2.0
Package version: 1.2.1

Description
Cannot download as get an error.
Steps to Reproduce
Select items, choose Download Excel then click Run Action
Expected behavior:
Download file.
Actual behavior: '

ERROR MESSAGE: 500 CODE :
message: The given value "" does not represent a valid number.
exception: Brick\Math\Exception\NumberFormatException
file: /Users/ejntaylor/Documents/Laravel/sqft/vendor/brick/math/src/BigNumber.php
line: 75
Additional Information
This only has a problem on a resource using currency.
see my fields here:
      Date::make('created_at')->sortable(),
         ID::make()->sortable(),
         Status::make('status')
             ->loadingWhen(['waiting', 'running'])
             ->failedWhen(['failed']),
         Currency::make('a')->sortable(),
         Currency::make('b')->currency('GBP')->sortable(),
         Currency::make('c')->sortable()->hideFromIndex(),
         Currency::make('d')->sortable()->hideFromIndex(),
         Currency::make('e')->sortable()->hideFromIndex(),
         Text::make('f')->sortable()->hideFromIndex(),
         Text::make('g')->sortable()->hideFromIndex(),
         Text::make('h')->sortable()->hideFromIndex(),
         Text::make('i')->sortable()->hideFromIndex(),
         Text::make('j')->sortable()->hideFromIndex(),
         BelongsTo::make('User')->nullable()

Same issue - works if I remove withHeadings() from export

This was driving me crazy, but thankfully I know how to use Google :)
@calvinmuller I can confirm that removing withHeadings() makes the export work.

Same issue but the current solution is not suitable if you want the export to include headings...

I have a solution, just make a custom mapping import and in the Nova Model, add an if.
if ($request->action == 'download-excel') {
            /**
             * Solution for bug: https://github.com/Maatwebsite/Laravel-Nova-Excel/issues/84.
             */
            return [];
        }

ex.
    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function fields(Request $request)
    {
        if ($request->action == 'download-excel') {
            /**
             * Solution for bug: https://github.com/Maatwebsite/Laravel-Nova-Excel/issues/84.
             */
            return [];
        }
        return [
            Text::make(__('Name'), 'name')
                ->rules('required', 'max:255')
                ->sortable(),

This should make the exporter not have to enumerate the fields and get into random and unnecessary exceptions.

I found this is a Laravel Nova Issue with the currency field
https://github.com/laravel/nova-issues/issues/2372
It will be fixed in the next release

If you replace all your Currencies with Number, it works, I think the package does not support the nova Currency.

Will close this ticket, as the bug is fixed in Nova


Add support for unpadded base64 strings

Add support for optionally padded Base64 strings, one example mentioned in #84 .
TODOS 👍

Add logic to automatically pad strings if there are missing = characters at the end of decoding inputs.
Modify tests to include cases where unpadded strings occurs.

Closed with #90


Provide a simple mechanism for running the docker container without npm

Currently the docker build still requires some version of npm/node to be working on the host machine.
It would be useful to reduce the requirements to just a working version of docker.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34877430-provide-a-simple-mechanism-for-running-the-docker-container-without-npm?utm_campaign=plugin&utm_content=tracker%2F32095848&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F32095848&utm_medium=issues&utm_source=github).

Docker Compose makes this exceedingly simple:
docker-compose --p ng2-webpack-demo up

On Windows 10 it was necessary to turn polling on in webpack.config for hot-loading to work correctly:
  watchOptions: {
    aggregateTimeout: 300,
    poll: 1000
  },


Abstract out the UI component for Search & Add bar

[ ] Move the current AddAndSearchBar component to ADS
[ ] Get the searchTerm, onSearch for Search component via props
[ ] Make sure the add button gets the onClick functionality via a prop for allowing it to be customized based on segments & IDEs.
[ ] Make sure the permission to show the add button is also being used via props.

Note: No need for conditionally showing the search bar (like the UI segment has only a button), because that can directly be implemented using the ADS button component.

Hey team! Please add your planning poker estimate with Zenhub @hetunandu @alex-golovanov @ankitakinger


WIP to test autoscaling/v2

This will use our custom metrics service to get metrics directly from Flux via a service delivered from the broker pod. https://github.com/converged-computing/flux-metrics-api
Current issue: it looks like we cannot make a metrics service (a kubernetes APIService) that is outside the kube-system namespace. The issue I am running into is that I need to be able to access /apis in the same namespace, but it is hitting my pod intead. When I try to mock it, the entire cluster breaks. More detail - following the tutorial in the new README.md here
I can confirm that the endpoints are working OK:
$ kubectl get --raw /apis/custom.metrics.k8s.io/v1beta2/namespaces/flux-operator/services/custom-metrics-service/node_up_count | jq
{
  "items": [
    {
      "metric": {
        "name": "node_up_count"
      },
      "value": 2,
      "timestamp": "2023-05-30T23:51:57+00:00",
      "windowSeconds": 0,
      "describedObject": {
        "kind": "Service",
        "namespace": "flux-operator",
        "name": "custom-metrics-apiserver",
        "apiVersion": "v1beta2"
      }
    }
  ],
  "apiVersion": "custom.metrics.k8s.io/v1beta2",
  "kind": "MetricValueList",
  "metadata": {
    "selfLink": "/apis/custom.metrics.k8s.io/v1beta2"
  }
}

And I have a cluster API service that I can see pinging my endpoint frequently, and is reported to be healthy.
$ kubectl get apiservice -n flux-operator v1beta2.custom.metrics.k8s.io
NAME                            SERVICE                                  AVAILABLE   AGE
v1beta2.custom.metrics.k8s.io   flux-operator/custom-metrics-apiserver   True        16m

r$ kubectl describe apiservice -n flux-opera
tor v1beta2.custom.metrics.k8s.io
Name:         v1beta2.custom.metrics.k8s.io
Namespace:
Labels:       <none>
Annotations:  <none>
API Version:  apiregistration.k8s.io/v1
Kind:         APIService
Metadata:
  Creation Timestamp:  2023-05-30T23:37:06Z
  Managed Fields:
    API Version:  apiregistration.k8s.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        f:group:
        f:groupPriorityMinimum:
        f:insecureSkipTLSVerify:
        f:service:
          .:
          f:name:
          f:namespace:
          f:port:
        f:version:
        f:versionPriority:
    Manager:      kubectl-client-side-apply
    Operation:    Update
    Time:         2023-05-30T23:37:06Z
    API Version:  apiregistration.k8s.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        f:conditions:
          .:
          k:{"type":"Available"}:
            .:
            f:lastTransitionTime:
            f:message:
            f:reason:
            f:status:
            f:type:
    Manager:         kube-apiserver
    Operation:       Update
    Subresource:     status
    Time:            2023-05-30T23:48:22Z
  Resource Version:  2815
  UID:               ca580b15-170b-4fcd-90cd-54d97c30fac0
Spec:
  Group:                     custom.metrics.k8s.io
  Group Priority Minimum:    1000
  Insecure Skip TLS Verify:  true
  Service:
    Name:            custom-metrics-apiserver
    Namespace:       flux-operator
    Port:            443
  Version:           v1beta2
  Version Priority:  5
Status:
  Conditions:
    Last Transition Time:  2023-05-30T23:48:22Z
    Message:               all checks passed
    Reason:                Passed
    Status:                True
    Type:                  Available
Events:                    <none>

And my metrics server is getting pinged:
INFO:     <IP_ADDRESS>:18016 - "GET /apis/custom.metrics.k8s.io/v1beta2 HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:22333 - "GET /openapi/v2 HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:22333 - "GET /openapi/v2 HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:34014 - "GET /apis/custom.metrics.k8s.io/v1beta2 HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:62027 - "GET /apis/custom.metrics.k8s.io/v1beta2 HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:10378 - "GET /apis/custom.metrics.k8s.io/v1beta2 HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:21629 - "GET /apis/custom.metrics.k8s.io/v1beta2 HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:32142 - "GET /apis/custom.metrics.k8s.io/v1beta2 HTTP/1.1" 200 OK

Note that we never see any attempt to get a metric endpoint, and I believe this is because it's trying to hit the /apis endpoint to get the preferred version info and failing. The autoscaler reports this:
 Warning  FailedGetObjectMetric         45s (x13 over 3m45s)  horizontal-pod-autoscaler  unable to get metric node_up_count: Service on flux-operator custom-metrics-apiserver/unable to fetch metrics from custom metrics API: no known available metric versions found

This is an error triggered here https://github.com/kubernetes/kubernetes/blob/18e3f01deda3bc1ea62751553df0b689598de7a7/staging/src/k8s.io/metrics/pkg/client/custom_metrics/discovery.go#L101 so I can conclude it's failing to choose a version. When I call kubectl to get /apis from outside my cluster I can see it there:
      "name": "custom.metrics.k8s.io",
      "versions": [
        {
          "groupVersion": "custom.metrics.k8s.io/v1beta2",
          "version": "v1beta2"
        }
      ],
      "preferredVersion": {
        "groupVersion": "custom.metrics.k8s.io/v1beta2",
        "version": "v1beta2"
      }
    }
  ]
}

so based on seeing this call to my custom metrics api, I tried making a faux one, and as soon as it hit the entire cluster crashed (an accomplishment, yes!)
So I'm wondering if making this custom metrics API in a non standard namespace is the issue - e.g., maybe if it's in kube-system it would use the default endpoint for /apis and be able to get the version without crashing? In which case, we need this to truly be an external service that can interact with a flux cluster broker from there (which is harder).

Oh wow! So when I fully mock /apis from within my pod service I can see the HPA hitting the endpoint!

So we are close! But ideally we don't want to do this. We either need to forward that endpoint, or something else so it hits the right place. Going running will ponder this more!


V2 labware: API should validate labware defs against schema

overview
Labware.load_from_definition (or maybe ProtocolContext.load_labware_from_definition? or the Labware constructor?) should check that a given definition validates for its schema.
Similar to how the JSON executor validates JSON protocols...

It should raise the validation error from jsonschema if validation fails.
It should throw a "not yet supported" error if the schemaVersion is higher than 2.
It should throw a "not supported" error if the schemaVersion key is missing (NOTE: labware v1 did not have this key, but users never manages v1 labware files)

It does!


Configuration Credentials in External File

The config.php file holds the credentials for accessing the database. This works fine but it might be better to put the access crendetials in an external file in a json format and then to access the file from config.php. The format of the json file might be something like this:
	"FCP_PROFILE_DB": {
	    "USER": "some_user",
	    "PWD": "some_pwd",
	    "HOST": "<IP_ADDRESS>",
	    "NAME": "some_name"
	}

The advantage is that, when I update the FCP Edtitor installation or when I transfer it to others, I do not have to remember to remove or update the content of config.php.

This can be done, but has some drawbacks.
Since the tool is open source, any user will know what file is used to store the database settings including password.
If it is stored for example in a file config.json, any stranger will be able to type in browser the URL address like http://domain.com/fcp-editor/config.json ... and the file will be downloaded, leaking the password. Users would be forced to make changes to webserver configuration in order to block the download of the file, which may be complicated for some users.
I would suggest different approach.
The file config.php will act as a template only, and the actual file which will be included will have different name, for example config_user.php ... And this file will never be part of the git tree, because it is untracked, thus user will never overwrite it with new upgrade.
So, when user installs the tool for the first time, he will need to rename (or copy) config.php to config_user.php and then edit the settings in config_user.php.
When the user updates the tool later, he will always have his existing config_user.php in place already.
Here is the diff for this change (cannot upload it directly here, and I am not sure if you agree with this proposed change)
If you like, I can push it to github right away.
diff --git a/DOCUMENTATION.install b/DOCUMENTATION.install
index bbbcda9..53e1c73 100644
--- a/DOCUMENTATION.install
+++ b/DOCUMENTATION.install
@@ -8,7 +8,8 @@ How to install:
 - Make sure that the 'tmp' directory is writable by all:
   chmod 0777 ./fcp-editor/tmp

-- Edit config.php file on server, for example ./fcp-editor/config.php
+- Rename config.php file on server to config_user.php,
+  for example ./fcp-editor/config_user.php
   and make sure to put there correct credentials for MySQL connection.

 - Make sure your database is already created. It doesn't need
diff --git a/Makefile b/Makefile
index 34f306b..527dcd1 100644
--- a/Makefile
+++ b/Makefile
@@ -8,4 +8,5 @@ sync:
 		--exclude='.git*' \
 		--exclude='*.patch' \
 		--exclude='config.php' \
+		--exclude='config_user.php' \
 		. p8258320@home34821896.1and1-data.host:pnp-software.com/fwprofile/editor-5.01/
diff --git a/inc_db.php b/inc_db.php
index bf49d2c..ec75600 100644
--- a/inc_db.php
+++ b/inc_db.php
@@ -22,7 +22,8 @@
   {
      GLOBAL $dbcon_link_db;

-     require('config.php'); // sql settings
+     // sql settings
+     require('config_user.php');

      // if mysql connection is not set, setup it now
      if (!$dbcon_link_db)
diff --git a/install.php b/install.php
index 46c59e7..642ccb8 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
 <?php

    require('inc_db.php');
-   require('config.php');
+   require('config_user.php');

    echo "Creating mysql tables (if not exist)... ";

diff --git a/users.php b/users.php
index fa4a18f..dde247b 100644
--- a/users.php
+++ b/users.php
@@ -3,7 +3,7 @@
    require_once('inc_db.php');
    require_once('inc_lib.php');
    require_once('inc_session.php');
-   require('config.php');
+   require('config_user.php');

    if (userID()!=$exampleUserID) die("You are not authorized to see this. Please login first.");

diff --git a/vars.php b/vars.php
index eb904ff..8bcaf4d 100644
--- a/vars.php
+++ b/vars.php
@@ -1,8 +1,8 @@
 <?php
-   require('config.php');
    require('version.php');
    require_once('inc_db.php');
    require_once('inc_lib.php');
+   require('config_user.php');

    header("Content-Type: text/javascript");

Your proposed solution would be fine for me (and it would indeed remove the problem I had highlighted -- hence, feel free to upload it). But I still have one question about the first approach:

Since the tool is open source, any user will know what file is used to store the database settings including password.
If it is stored for example in a file config.json, any stranger will be able to type in browser the URL address like http://domain.com/fcp-editor/config.json ... and the file will be downloaded, leaking the password. Users would be forced to make changes to webserver configuration in order to block the download of the file, which may be complicated for some users.

What I had in mind was to put the database access credentials in a file in a location like /etc/fcp_editor or some other place which is outside the web root and therefore not accessible externally (or so I would expect). Is perhaps the problem that PHP has no access to files outside the web root?

OK, changes pushed by ad1b0ae4c5998228ec83353f1b3c4932731ff09e
If  you put the credentials to an external file outside of web root, PHP can usually read it, but sometimes it cannot (depends on server settings). Main issue I see is that the user in many cases cannot write files outside of the web root, since many web hosts give you FTP access to the web root only, not outside of it. As usual it depends.
So putting the config to a PHP file which is not part of the git tree seems like a reasonable compromise.

New feature has been tested and it works as intended.


⚠ Bofrost.es has degraded performance

In 885c335, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1513 ms

Resolved: Bofrost.es performance has improved in 039acf6 after 6 minutes.


Minor breaking change after the 0.3.1 release

Protostar version

Name
Version

Protostar
0.3.1^

Cairo-lang
0.9.1

Git
2.34.1

Current Behavior
After a successful deployment, the ouput of the tx hash is now a felt.
It is not a major issue but since starknet API https://alpha4.starknet.io/feeder_gateway/get_transaction_status?transactionHash= expects a hex, it is less conveniant.
Deploy transaction was sent.
Contract address: 0x02c4672468cd6116ae2d8dc07b8d12e2561593e392fa2e693ac4b8576ecaab20
Transaction hash:<PHONE_NUMBER>764605818090729322813257897802304273379266993039341877985495062261

Expected Behavior
In previous versions it was a hex (note I didn't test to install a previous version, but some of our scripts does not work anyone due to this)
Deploy transaction was sent.
Contract address: 0x02c4672468cd6116ae2d8dc07b8d12e2561593e392fa2e693ac4b8576ecaab20
Transaction hash: 0x778BF24408D10F7262177110CADB96F3CE6E5556D9BB4A8BBBC807D76D196F5

Steps to Reproduce
Deploy a contract.
Possible Solution
I just had to add a felt_to_hex parser to fix it locally.

Resolved by #651


Message type field alway compile as optional

Steps to reproduce
Compile this proto code:
syntax = "proto3";

message Person {
    Son sonA = 1;
    optional Son sonB = 2;
}
message Son { }

What is expected?
Person result:
export interface Person {
    sonA: Son;
    sonB?: Son;
}

What is actually happening?
Person result:
export interface Person {
    sonA?: Son;
    sonB?: Son;
}

Message fields are always optional.
Consider the following proto:
syntax = "proto3";

message Rec {
    Rec child = 1;
}

When you create an instance of Rec, it would have to allocate recursively. That doesn't work.
I do wonder why optional Son sonB = 2; is valid syntax. It's ambiguous at best.

When you create an instance of Rec, it would have to allocate recursively. That doesn't work.

This is invalid in runtime, but this is legal.

You propose that a message field without the "optional" label should be required:
export interface Rec {
    child: Rec;
}

What should happen when you create an instance of Rec?
let rec = Rec.create();
let recChild: Rec = rec.child;

The assignment above must be valid, because rec.child is of type Rec.
But this is impossible. Rec.create() would have to populate the child property with a Rec instance. And this would have to happen recursively, immediately overflowing your stack.

I think the compiler should have loop checks and thrown in invalid situations. But not leak the invalidation handle behavior to compile result.
Anyway I understand your consideration and respect your decide, thank you. :)

Hi @timostamm, sorry for bother again.
I wanted to change this behavior in a special branch for myself, because this is a important request for our project.
Where should start to modify? Any hints would be very helpful, thank you!

I think the compiler should have loop checks and thrown in invalid situations.

Do you mean the protobuf compiler protoc?  Or protobuf-ts, the plugin?
This .proto is perfectly valid:
syntax = "proto3";

message Rec {
    Rec child = 1;
}

Changing protoc to disallow the recursion would break a lot of existing code.
Changing protobuf-ts means that it can't handle these .proto files.
A plugin should be able to work with any valid .proto file (maybe with the exception of proto 1 or 2 syntax).
I won't be able to give you any support with this, but feel free to fork!

I would definitely support an alternative approach: protoc-gen-validate provides options for validation rules. Having support for these validation rules would be very beneficial.
For example, the following option makes a message field required:
  Location home = 4 [(validate.rules).message.required = true];

This is runtime validation. You can still create "invalid" messages, but a (to be created) validate() function can be used to check the message.
This can be implemented with reflection, much easier than changing the code generator.

Do you mean the protobuf compiler protoc? Or protobuf-ts, the plugin?

I just realized that we might be talking different things.

Changing protoc to disallow the recursion would break a lot of existing code.

In my mind it just change the output TS interface, I can also use the post-processing script to remove the ? in output TS interfaces, it should not have any effect to the compiler. But post-processing script will remove all ? even the field is optional.

I won't be able to give you any support with this, but feel free to fork!

Of course, I don't want to make unexpected changes to original repo. :)
Thanks for the suggestion for protoc-gen-validate, but it may not a feasible to me, because I will to compile some continually updating proto files, and we can't change these proto files source code, it mean I need to add [(validate.rules).message.required = true] every time updated.


⚠ PrivateHD has degraded performance

In 6c7941a, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 5424 ms

Resolved: PrivateHD performance has improved in 2450212.


Text changes in breadcrumbs

Describe the task
Some text changes in the SME figma comments affect breadcrumbs.
Nan: If we change wording in the tiles, we should change them in the breadcrumbs.
Acceptance Criteria

[ ] Label dynamic routes in User Operator form. Once a user submits the form they get sent to a different route using operator_id so it changes and could be confusing.
[ ] second
[ ] third

Additional context

Add any other context about the task here.
Or here

https://github.com/orgs/bcgov/projects/122/views/2?filterQuery=1000&pane=issue&itemId=54970425 will probably replace this

Breadcrumbs will be updated according to the latest designs for Reg Pt. II later. Closing.


feat(struct): Add MessageReaction structure

What it says on the tin

Closed as resolved in cae8570.


InvalidArgumentException: A 'contents' key is required

When attempting to send multiple values using Multipart Form Body, I encounter an error. While this functionality worked seamlessly in version 2, it appears to be malfunctioning in version 3.
Issue: https://flareapp.io/share/qm1e8Dwm

Thanks for making a separate issue. I'll take a look for you 👍

Hey @ManukMinasyan I believe I have found and fixed the issue in the latest release. Please could you run composer update saloonphp/saloon and try again?

Hi @Sammyjo20 Yeah, this issue is successfully resolved. Thank you very much.


Make the crate more no_std friendly by using alloc and core instead of std

Hello !
When I tried to use this crate in my project, I noticed that it use std imports which some could be replaced by core or alloc imports.
I have made a quick PR to fix this by adding a feature flag (alloc) that will make more functions available for projects using #[no_std] but still using alloc crate (for example, kernel projects).

Hi, thanks, I'm currently on vacation with no access to my laptop. I'll
take a look at this PR in a few days/weeks. Thanks for submitting this!
On Wed, Jan 17, 2024, 17:33 Haoud @.***> wrote:

Hello !
When I tried to use this crate in my project, I noticed that it use std
imports which some could be replaced by core or alloc imports.
I make a quick PR to fix this by adding a feature flag (alloc) that will
make more functions available for projects using #[no_std] but still
using alloc crate (for example, kernel projects).
You can view, comment on, or merge this pull request online at:
https://github.com/andreacorbellini/rust-circular-buffer/pull/11
Commit Summary

e59f2ed
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/commits/e59f2ede7e6e9478e8474b498d10d4d242f7c9da
Make the crate more no_std friendly

File Changes
(5 files
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/files)

M Cargo.toml
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
(3)
M src/debug.rs
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/files#diff-c0d315d4840c34cb6ebff31d479b3a6ed8a99a9733cc3a549fe1faaabd865304
(2)
M src/drain.rs
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/files#diff-0b6c56760d434e0b6b31ad40041f0e8471675bc6b5f2dbfa44b971929febc359
(2)
M src/iter.rs
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/files#diff-4bc73dd48e6ccc80311431323609ad12765c3635b53eebe2deaa4be10ecd9be6
(6)
M src/lib.rs
https://github.com/andreacorbellini/rust-circular-buffer/pull/11/files#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759
(32)

Patch Links:

https://github.com/andreacorbellini/rust-circular-buffer/pull/11.patch

https://github.com/andreacorbellini/rust-circular-buffer/pull/11.diff

—
Reply to this email directly, view it on GitHub
https://github.com/andreacorbellini/rust-circular-buffer/pull/11, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACOKLR75JLGK7WWAJBACOTYO6SIHAVCNFSM6AAAAABB6JNES2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DKOBZGEYTSOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Jenkins Update Breaks CSS For some Elements

I updated to 2.228 and UI doesn't look right even with latest material css.
I suspect it was their experimental header changes being activated..  see changlog for
https://jenkins.io/changelog/#v2.222

Revamp the layout and icons of the header bar and breadcrumbs. Instances with plugins that depend on details of the Jenkins layout (e.g. Simple Theme Plugin) may experience UI/layout problems. A new experimental header color scheme can be enabled by setting the jenkins.ui.refresh system property to true. (issue 60920)

I've just added some Extra CSS to make it look ok for now:
#header #search-box {
    background: #fff;
    padding-left: 30px;
}

I med the changes for adapt font-size, uppercase, and breadcrumbs-bar on material-green and material-blue css
https://mirror.alefnode.com/artifactory/jenkins/material-blue.css
https://mirror.alefnode.com/artifactory/jenkins/material-green.css
If i feel the force maybe can do rest of colours, it will appear here
https://mirror.alefnode.com/artifactory/jenkins/

Finally I decide to upgrade this project.
Here you have the themes updated for new Jenkins version
https://jenkins-themes.alefnode.com/

Finally I decide to upgrade this project.
Here you have the themes updated for new Jenkins version
https://jenkins-themes.alefnode.com/

I think the CDN is down down sir

@dimasmamot, this seems to work:
<EMAIL_ADDRESS>maybe rawgit is gone? or not working at least. see #165


Games card

It is time to add the card with my games. This shall be like any other card (#2).
Placement
The card will be directly below the header card.
Content
The card will contain the list of my games. These games need their own directive. They will consist primarily of an image and a title.
Router
For all this to work, I need to employ the ui router.
Tasks

[x] Add games card
[x] Add a placeholder game
[x] Create some sort of a list
[x] Add router
[x] Configure router/states
[x] Add tests

Closing this in favor of #28


[Suggestion] Support Biomes O' Plenty Woods

I don't know how much trouble it would be to implement, but I would enjoy it if both vanilla and BoP logs could all get the hardcore lumberjack treatment instead of just the vanilla logs.  I realize that it would require a compat and bark items for each log, but it would be nice to have.

I think ideally it could dynamically support any wood, I know that Agricraft has done that with it's wooden blocks so you could look at their source code.

info saved here


How to use Giskard for spam detection ML models?

Things seem a little old in here, can't tell if this program is still on. If it is, I'd like to write on this topic.
I recently published an article on using LLMs in database. Here: https://dev.to/emmanuelthecoder/using-large-language-models-inside-your-database-with-mindsdb-1607

@EmmanuelTheCoder please submit your interest through this form: https://www.giskard.ai/write-for-the-community

@luca-martial I think I have already done that.


fix(vue-app): fix asyncData hydration when features.transition: false

Types of changes

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

Description

Setting features.transitions: false caused asyncData hydration from NUXT to be removed from the client template
Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] All new and existing tests are passing.

Codecov Report

Merging #6433 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #6433   +/-   ##
=======================================
  Coverage   95.61%   95.61%
=======================================
  Files          79       79
  Lines        2689     2689
  Branches      694      694
=======================================
  Hits         2571     2571
  Misses        101      101
  Partials       17       17

Flag
Coverage Δ

#e2e
100% <ø> (ø)
:arrow_up:

#fixtures
50.79% <ø> (ø)
:arrow_up:

#unit
92.26% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Maximized panel brings artifacts from editor along with it

Looks bad, moving to October. Not sure if this is a regression?

@JacksonKearl proved to be actively self hosting the native notebook, good catches.

Easy to selfhost when it's so helpful!


Regular OpenThread upmerge to bring the OpenThread 1.2 certification fixes.

Regular OpenThread upmerge to bring the OpenThread 1.2 certification fixes.
Signed-off-by: Przemyslaw Bida<EMAIL_ADDRESS>

bump of manifest for this PR https://github.com/zephyrproject-rtos/openthread/pull/44 .


Added ChatInterface + Ollama support

This PR is a first proposal to extend the support of other LLMs introducing a ChatInterface (see #65).
I draft a first support for Ollama project. Using Ollama you can run a local LLM, such as Llama 2. A full list of supported LLM is available here.
This PR includes the following changes:

Removed the HttpFoundation in favor of PSR-7;
Added custom Exceptions using a common LLPhantException interface;
Added a ChatInterface for proposing alternative LLMs;
Added a basic support of Ollama implementing the OllamaChat class;
Updated the README.md including some notes for Ollama usage;

Appart from that it looks good to me. 👌
Thanks a lot @ezimuel


ToC over multiple sections

Is it possible to have it sticky over multple sections?

Hi,
I’m not really sure what you mean. Could you please elaborate or provide some screenshots etc. of what you mean.
Thanks

I have three sections on this page, created from the left side of the page.
The ToC will only stick to the first section.

On this picture, the sticky part should be on the right side also

Sorry,  meant to update this over the weekend. I did take a look and it doesn’t seem that it would be possible due to the way the DOM has been created and the way the Sticky CSS position works.
I was going to suggest using the vertical section as that’s what I do, but it looks like you already found that workaround.

Yes, didn´t know about vertical selection. Maybe something to mention in the docs :)

Good idea. I’ve added some more information.


Add script to build release tars and move licenses to belonging subproject

Just moved the licenses into the belonging subproject and will release the subproject individually

Just a reminder, as a monorepo, you will face the case, all modules have to be ready for a release at the same time. Otherwise, you will break the consistency of version for different models. This lead me to think another issue, do we really need monorepo. The only reason would be we will release multiple binary(s) at once.


Sidecar and Casper Node Connectivity Error due to version

Sidecar and Casper Node Connectivity Error
casper-node: feat-2.0 (8a56be6eec9ecd3f1a06c59c7b32dd9b5c631b7c)
casper-sidecar: feat-2.0 (a3533ba0d127afcf373979e4c284f2f20a903916)
:red_circle: Issue: Sidecar and Casper Node Connectivity Error
new casper-node build name and version error
cladmin@casper-node-ajith-condor-small-pv-0:~$ /var/lib/casper/bin/2_0_1/casper-node --version
casper-node 2.0.0@8A56BE6EE
cladmin@casper-node-ajith-condor-small-pv-0:~$ sudo /opt/casper-sidecar/casper-sidecar -p /opt/casper-sidecar/config-sidecar.toml
2024-05-02T23:05:27.307658Z  INFO casper_rpc_sidecar::rpcs: started JSON RPC server; address=<IP_ADDRESS>:7777
2024-05-02T23:05:27.307713Z  INFO casper_rpc_sidecar::rpcs: started speculative execution server; address=<IP_ADDRESS>:7778
2024-05-02T23:05:27.320915Z ERROR casper_event_listener: Error fetching metadata (for <IP_ADDRESS>): failed parsing build version from '2.0.0@8A56BE6EE': invalid digit found in string
2024-05-02T23:05:29.333044Z ERROR casper_event_listener: Error fetching metadata (for <IP_ADDRESS>): failed parsing build version from '2.0.0@8A56BE6EE': invalid digit found in string
2024-05-02T23:05:31.345134Z ERROR casper_event_listener: Error fetching metadata (for <IP_ADDRESS>): failed parsing build version from '2.0.0@8A56BE6EE': invalid digit found in string
2024-05-02T23:05:33.357943Z ERROR casper_event_listener: Error fetching metadata (for <IP_ADDRESS>): failed parsing build version from '2.0.0@8A56BE6EE': invalid digit found in string
2024-05-02T23:05:35.373724Z ERROR casper_event_listener: Error fetching metadata (for <IP_ADDRESS>): failed parsing build version from '2.0.0@8A56BE6EE': invalid digit found in string
2024-05-02T23:05:35.373784Z ERROR casper_event_sidecar: Disconnected from <IP_ADDRESS>. Reason: Max connection attempts reached
2024-05-02T23:05:35.373871Z ERROR casper_event_sidecar::event_stream_server::http_server: Trying to buffer data without an api version observed beforehand
Error: Error running component 'sse_event_server': Connected node(s) are unavailable
6 replies
Jacek Malec
3 days ago
I think what's happened here is that the version format has changed from
casper-node 2.0.0-8A56BE6EE // release
casper-node 2.0.0-8A56BE6EE@debug // debug
to
casper-node 2.0.0@8A56BE6EE // release
casper-node 2.0.0@8A56BE6EE // debug
Jacek Malec
3 days ago
because the way the node formats versions is this
{CARGO_PKG_VERSION}-{VERGEN_GIT_SHA}@{NODE_BUILD_PROFILE}
Jacek Malec
3 days ago
@Zach
I think this is related to the vergen change, the formatting in here will need to be adjusted to maintain the old format
https://github.com/casper-network/casper-node/blob/feat-2.0/node/src/lib.rs#L78-L100
it might also make sense to expose two separate variables, one for GIT_SHA and one for BUILD_PROFIE to keep things as they were
lib.rs
fn version_string(color: bool) -> String {
let mut version = env!("CARGO_PKG_VERSION").to_string();
if let Ok(git_sha) = env::var("VERGEN_GIT_SHA") {
version = format!("{}-{}", version, git_sha);
} else {
warn!(
"vergen env var unavailable, casper-node build version will not include git short hash"
);
}
// Add a `@DEBUG` (or similar) tag to release string on non-release builds.
if env!("NODE_BUILD_PROFILE") != "release" {
    version += "@";
    let profile = env!("NODE_BUILD_PROFILE").to_uppercase();
    version.push_str(&if color {
        Red.paint(&profile).to_string()
    } else {
        profile
    });
}

version

It looks like bors failed on #4693  (Jacek's fix for the version issue I introduced) because of a git error. I attempted to restart it just now, but it failed with the same error.

the fixes are now merged and I tested it manually to confirm, this is now resolved

Related PR #4693


getSchema call produces undefined validate function

I am loading in two schema files and attempting to validate data against these schemas. The schemas seem to load fine and a valid ajv object is created containing these schemas, with no error. But when I attempt to getSchema, no error is produced but the validate function returned is undefined. The code I am using to do this is here:
var ajv = Ajv({
                  allErrors: true,
                  verbose: true,
                  schemas: [
                      require('../matchRule.json'),
                      require('../matchGroup.json')
                  ]
             });

var validate;
try {
    validate = ajv.getSchema('matchRule#');
    console.log("validate: " + JSON.stringify(validate));
}
catch (e) {
    console.log("Error parsing schema: " + e);
    return;
}

The first few lines of the first file are:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "matchRule#",
    "type": "object",

I thought I was supposed to be able to use the id key as input to getSchema, but do I need to use something else? Any help would be appreciated.
Don

It's difficult to understand the problem without a failing code... Can you please re-submit the issue answering all the questions in the template?

Looking at your code, how do you know that validate is undefined if you are logging JSON.stringify of it? JSON.stringify(function(){}) is always undefined

Ok, I feel kind of dumb. Operator error. Thanks.


Documentation using deprecated API

According to the nuget page, https://www.nuget.org/packages/Microsoft.Azure.Storage.File/, the recommended API is now https://www.nuget.org/packages/Azure.Storage.Files.Shares/ but this documentation still demonstrate usage of the old API

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

ID: 0eff27d7-f909-fc99-14f6-ad572629907f
Version Independent ID: 57504146-9f89-e4d6-3f5b-5cd9af305d45
Content: Develop for Azure Files with .NET
Content Source: articles/storage/files/storage-dotnet-how-to-use-files.md
Service: storage
Sub-service: files
GitHub Login: @roygara
Microsoft Alias: rogarana

Thanks for the feedback! We are currently investigating and will update you shortly.

@Pluc15 Firstly, apologies for the delay in responding here.Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

#reassign: @mhopkins-msft


chore: pin read-pkg-up and remove pkg-up

read-pkg-up has migrated to the ESM module, and we don't support such modules yet.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@next-major dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


VSCode is not detecting and activating the virtual environment automatically

Environment data

VS Code version: 1.52.1
Extension version (available under the Extensions sidebar): 2021.1.502429796
OS and version: Windows 10 Pro 20H2 19042.746
Python version (& distribution if applicable, e.g. Anaconda): 3.9.1
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: N/A
Relevant/affected Python-related VS Code extensions and their versions: N/A
Value of the python.languageServer setting: Pylance

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Expecting VSCode to detect and activate the virtual environment at startup.
Actual behaviour
A python file should be already open in the editor, and be the active tab, and then start a new terminal then the virtual environment is detected and activated.
If no file is open, or the active open file is not a python file (html for example), starting a new terminal does not activate the venv.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Open a Django application directory from Explorer shell or File -> Open Folder. Virtual environment will not be activated automatically.

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

Hey @OmidShojaee, thanks for bringing this up!
About this:

If no file is open, or the active open file is not a python file (html for example),starting a new terminal does not activate the venv.

The Python extension is the one that makes environment activation work in the terminal, but it the extension itself only starts working if you open a Python file or run a command from the Python extension from the command palette. So I'm closing this issue in favour of https://github.com/microsoft/vscode-python/issues/4765, that requests for the Python extension to automatically activate if you're working on a Python project 😊 That would handle the issue you're bringing up.
Thanks!


hass_apps v0.20180221.0 doesn't work with voluptuous 0.11 as needed by Home Assistant 0.64

Running HA 0.64.0 in virtual env on Raspian Stretch
Running Appdaemon 2.1.12 (installed by "sudo pip3 install appdaemon"). Demo apps works, no errors.
Installed hass_apps  (installed by "sudo pip3 install --upgrade hass_apps")
When I trying to start appdaemon and Heaty I get several warnings.
I have no clues to what is wrong.
Please advise.
pi@hassbian:~ $ /usr/local/bin/appdaemon -c /home/homeassistant/.homeassistant
2018-02-28 11:43:26.383643 INFO AppDaemon Version 2.1.12 starting
2018-02-28 11:43:26.384256 INFO Configuration read from: /home/homeassistant/.homeassistant/appdaemon.yaml
2018-02-28 11:43:26.522201 INFO Starting Apps
2018-02-28 11:43:26.774596 INFO Got initial state
2018-02-28 11:43:26.775945 INFO Loading Module: /home/homeassistant/.homeassistant/apps/hass_apps_loader.py
2018-02-28 11:43:26.823339 INFO Loading Object heaty_minimal using class HeatyApp from module hass_apps_loader
2018-02-28 11:43:27.264029 INFO heaty_minimal: --- heaty v0.11.0 initialization started
2018-02-28 11:43:27.287043 WARNING ------------------------------------------------------------
2018-02-28 11:43:27.287531 WARNING Unexpected error during loading of heaty_minimal:
2018-02-28 11:43:27.287877 WARNING ------------------------------------------------------------
2018-02-28 11:43:27.291935 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 912, in read_app
init_object(name, class_name, module_name, conf.app_config[name])
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 583, in init_object
conf.objects[name]["object"].initialize()
File "/usr/local/lib/python3.5/dist-packages/hass_apps/common.py", line 86, in initialize
self.cfg = self.Meta.config_schema(cfg)  # pylint: disable=not-callable
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 267, in call
return self._compiled([], data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/validators.py", line 204, in _run
return self._exec(self._compiled, value, path)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/validators.py", line 284, in _exec
raise e if self.msg is None else AllInvalid(self.msg)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/validators.py", line 282, in _exec
v = func(path, v)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 769, in validate_callable
return schema(data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 267, in call
return self._compiled([], data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 587, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 425, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected a list for dictionary value @ data['schedule_append']
2018-02-28 11:43:27.292486 WARNING ------------------------------------------------------------
2018-02-28 11:43:27.292847 INFO App initialization complete
2018-02-28 11:43:27.293615 INFO Dashboards are disabled
2018-02-28 11:43:27.293979 INFO API is disabled
2018-02-28 11:43:27.309815 INFO Connected to Home Assistant 0.64.0
appdaemon.yaml.txt
apps.yaml.txt

Well, this is due to a change in the voluptuous library which is used by Heaty for configuration parsing. It has been adapted in the master branch and will work again with next release.
Until then, you could separate HA and AppDaemon+hass_apps into separate virtualenvs (as I always suggest by the way) and force the previous version of voluptuous to be installed:
python3 -m venv ad
source ad/bin/activate
pip install --upgrade appdaemon hass_apps
pip install --upgrade voluptuous==0.10.5

And please uninstall the system-wide stuff first.

I updated the docs to explain how to install into a virtualenv properly:
http://hass-apps.readthedocs.io/en/latest/getting-started.html

Thanks for fast responding:-)
And it works now.


Cloud-based load testing service end of life

Fixes #18809
Internal review URL

@mkArtakMSFT  please review or assign a reviewer.


The SSL connection could not be established, see inner exception

I added a playliist to download and I got this error for every song
Here is a list of the videos that could not be downloaded, and the reason why:
The SSL connection could not be established, see inner exception.
Is there something I'm missing?
Thanks!

Looks like its not a problem on your side, could you link the playlist?


StackOverflowException

My models looks like this
public class User
{

        [BsonId]
        public string Id { get; set; }
        public UserType Type { get; set; }
        public string Name{ get; set; }
        public DateTime CreatedAt { get; }

        [BsonRef]
        public Device Device { get; set; }
}

public class Device
{
        [BsonId]
        public string Id { get; set; }
        public string Name { get; set; }
        public bool IsEnabled { get; set; }
        public DateTime CreatedAt { get; set; }
        public DateTime UpdatedAt { get; set; }

        [BsonRef]
        public List<User> Users { get; set; }
}

I know this is wrong because I getting the below exception but what is the right way to do that?
 LiteDB.dll!LiteDB.Reflection.CreateGenericGetter(System.Type type, System.Reflection.MemberInfo memberInfo) Line 38	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.BuildEntityMapper(System.Type type) Line 277	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.GetEntityMapper(System.Type type) Line 221	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRefList(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 431	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRef(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 379	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.BuildEntityMapper(System.Type type) Line 309	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.GetEntityMapper(System.Type type) Line 221	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRefItem(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 393	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRef(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 383	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.BuildEntityMapper(System.Type type) Line 309	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.GetEntityMapper(System.Type type) Line 221	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRefList(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 431	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRef(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 379	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.BuildEntityMapper(System.Type type) Line 309	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.GetEntityMapper(System.Type type) Line 221	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRefItem(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 393	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.RegisterDbRef(LiteDB.BsonMapper mapper, LiteDB.MemberMapper member, string collection) Line 383	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.BuildEntityMapper(System.Type type) Line 309	C#	Symbols loaded.
 	LiteDB.dll!LiteDB.BsonMapper.GetEntityMapper(System.Type type) Line 221	C#	Symbols loaded.
 	The maximum number of stack frames supported by Visual Studio has been exceeded.		Annotated Frame

This is a fairly old issue, but I ran into it and looked into it a bit.
This is caused by recursive/mutually recursive references. BsonMapper.RegisterDbRefItem and RegisterDbRefList rely on getting the entity mapper for the referenced type. This is done when the field is registered so that we can avoid looking up the entity mapper each time the field is de/serialized. Unfortunately, LiteDb attempts to build a new mapper whenever it encounters a type that isn't mapped yet.

The easiest workaround is to just store the ID manually and resolve the reference yourself on an as-needed basis.

If you're willing to modify LiteDB (or make your own BsonMapper) and don't mind the performance hit, I very briefly tested moving the entity mapper lookup into the de/serialization methods for reference fields. (Diff here)
This works, but it is not particularly efficient. If you really want this, I think a better strategy would be to cache the mapper on the first de/serialization.

I'm having the same problem, and the answer above is right, it does happen when referencing with BsonRef mutually two classes and one is not mapped yet, @mbdavid

I'm having the same problem, and the answer above is right, it does happen when referencing with BsonRef mutually two classes and one is not mapped yet, @mbdavid @lbnascimento


add missing 'class' keyword for consistency with other types

The problem
X::Method::NotFound, X::Parameter::MultipleTypeConstraints, X::Parameter::WrongOrder and X::Placeholder::Mainline have no class keyword in their =TITLE. All other classes do.
Solution provided
Add class keyword in their =TITLE

FWIW: You should have a commit bit and can commit directly.

@zoffixznet I do. Just waiting for Travis to finish before I merge.

@zoffixznet on a side note, you're right I should commit directly without submitting a PR


Enhancement: i wanna give you the mac version

how dare you not have the mac version

I too would like a mac version please. I'd even pay you for your time.

We don't have anyone who can compile the mod for Mac, as it requires you to be on an actual Mac

Thank you for the fast reply. If I learn how to compile Mods, I will reach back to you.

let me compile it for macos

I compiled the macOS (x64) version, I bundled it in a .DMG so, can I upload it here?


Merging with my promisify-child-process library?

Awhile ago I hurriedly rewrote this library to add some features and released it as promisify-child-process.  Aside from impatience with making PRs and waiting for them to get merged, I wanted to:

Also promisify execFile and fork
Export the sync methods so that it can be a drop-in replacement for child_process
Include flow type defs
Have a full CI setup with semantic-release

I realize now that I created unfortunate fragmentation in the ecosystem and I should try to merge my code into this project (assuming you wouldn't prefer to deprecate this package in favor of mine).
What do you guys want me to do?  The easiest thing would be making a PR that essentially replaces all code in this repo with mine (it would not cause any breaking changes to the API) but that might seem a bit heavy-handed.

Just to warn you @jedwards1211, I am not sure this repo is actively maintained at the moment.
I might be wrong but I haven't seen any activity here in a while. :disappointed:

Oh okay.  Maybe I should just start promoting mine as a replacement then?
https://github.com/jcoreio/promisify-child-process


Store message content when permissions and configuration are enabled

Add BDD tests, include tests for tenant configuration and permissions.
Signed-off-by: Jason Sherman<EMAIL_ADDRESS>

Yeha, that kind of bothers me too, so since you noticed it too let's deal with it. Probably the best course of action is to return an error (409?) with details that store_* require innkeeper set permissions first.


[Idea] (HighClass) Exact variations of list functions

Example
list
[apple]
[APPLE]
(item # of (APPLE) in list (list)) returns 1, not 2
this could be used for encoding cloud variables
Alternative solution
Use a custom block that loops through every possible character and every index (super inefficient)
oooorrrrrr remove all of the non-exact functions entirely, replacing them with non-exact counterparts

Wait so what exactly is the issue? You'd like to search list for a variables? Could you add code examples to show exactly what you're trying to achieve?

Ah. I see the issue. I feel like theres a workaround for this but we're I'll add it to the patch list.

Thanks!


[Bug Report] How to init daterange that can be destoryed by function resetFields

Element UI version
2.4.8
OS/Browsers version
windows chrome 64.0
Vue version
2.5.17
Reproduction Link
https://jsfiddle.net/jf29dg4k/
Steps to reproduce
click the last button to init ,and then click the second button to reset, but you can find that the reset function not work
What is Expected?
Is the way i init the daterange value is wrong?  How to set it that can be reset by resetFields. Wait for you reply. Thanks
What is actually happening?
It cannot be reset

I have solved it . It's my fault , Sorry


Do not suggest use of deprecated brew cask reinstall

[X] Have you followed the guidelines in our Contributing document?
[X] Have you checked to ensure there aren't other open Pull Requests for the same change?
[X] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

I got a warning Warning: Calling brew cask reinstall is deprecated! Use brew reinstall instead. after copy-pasting a suggestion from brew cask install, so I corrected the suggestion. Let me know if I should write tests for this!

Thanks so much for your first contribution!  You rock, @Luthaf!


build: Update Vulkan-Headers and VUL to 1.3.296

CI CrashDiagnosticLayer build queued with queue ID 265157.

CI CrashDiagnosticLayer build # 252 aborted.

CI CrashDiagnosticLayer build queued with queue ID 265696.

CI CrashDiagnosticLayer build # 258 running.

CI CrashDiagnosticLayer build # 258 passed.


[MENFORCER-234]  Fix redirected link on plugin's website

Fix link according to MENFORCER-234
After adding slash at the end, the link for maven enforcer plugin is:
http://maven.apache.org/enforcer/maven-enforcer-plugin/
and the link is reported as direct.

Pls close this PR. It was merged in SVN.


Bread is not affected by database column name changes

Hello,
I am using the version 1.3.
I have created a database and columns. Upon adding the column names, I generated a BREAD. The problem is that some of my columns have a few spelling issues. I changed the column names again, updated the database but the BREAD still shows the old names.
How can I update the BREAD names as well please? If there is no automation in your script for this, where is the BREAD file saved per model please?
Thank you.

Ok got it, you have to change the data in the database column "data_rows", am I correct?
Thank you.

The issue template is required when opening new issues.
This can be reopened once all informations are provided.


Use fetch() instead of adding

The Bing layer loads JSON from dev.virtualearth.net. This is done by adding a

But we should also consider compatibility: https://caniuse.com/fetch
Is it time to say goodbye to IE and old Android?


Pixel Balloon in Examples

Is your feature request related to a problem? Please describe.
Hi Nathan,
Was wondering if you could take the pixel balloon example from the example_dialogue_balloons repo for Godot 3 and bring it into this version?
I never used Godot 3...
Describe alternatives you've considered
If you don't have the time the main one I'm not sure about from Godot 3 to 4 is this line here:
export(NodePath) onready var response_template = get_node(response_template)
Then I'll play around and create a pull request

The pixel balloon is now just part of the example balloon (the "small example balloon"). It gets used if the game window is less than 400px wide. The only real difference between it and the regular sized example balloon is the font and margin sizes.
That exported response template thing is no longer used. It has been replaced with a direct reference in the code to that response template (so now it does @onready var response_template: RichTextLabel = %ResponseTemplate).


[Req]: Sorting Tool

Contact Details
<EMAIL_ADDRESS>Explain the proposed feature
We can have an online sorting tool which can sort given words (or sentences) in ascending. descending, and reverse order on the basis of lexicographical or length basis.
Explain the possible use cases for the feature
Useful when you need a quick sorted list of something.
Any other details you would like to provide?
No response

@TechSpiritSS cool, I'm on board, here's a good example of some options / controls to be implemented https://www.gillmeister-software.com/online-tools/text/sort-list.aspx

@TechSpiritSS would this tool support comma separated and new line separated lists? Maybe that could be a control option, maybe add semicolon too?

Working on this

:/ I am having some trouble in sorting with separator as new line, rest all are working great.

No worries, you can PR as is and I'll create an issue for the newline separator

hey @TechSpiritSS, are you still working on this?

Hi @dlford, I'd like to give Hacktoberfest a shot this year and this project looks like it has some great feature ideas that I could implement without too much trouble. I forked the repo already and when I ran npm install, there were some vulnerabilities. Are you ok with a PR bumping some package versions? Do you want to include it in this PR or make a separate one?

Hi @wesleyhitson, Please create a new issue for the package updates, and if you'd like to work on any issue please comment on it to get it assigned to you. Thanks!


[Event Request] - Codeunit 7000 - function CalcBestUnitPrice

We are using BC 14.0.35570.
The client we are upgrading various specific rules with pricing. One of these is that the customer does not always get the best price. If a campaign price exists, the customer will automatically get this.
To enable this, I think the CalcBestUnitPrice function needs to have an event added to it. Something like this:
[External] CalcBestUnitPrice(VAR SalesPrice : Record "Sales Price")
OnBeforeCalcBestUnitPrice(SalesPrice, BestSalesPriceFound, IsHandled); //NEW
IF IsHandled then // NEW
	exit; // NEW
WITH SalesPrice DO BEGIN
  FoundSalesPrice := FINDSET;
  IF FoundSalesPrice THEN

With an event definition:
LOCAL [IntegrationEvent] OnBeforeCalcBestUnitPrice(VAR SalesPrice : Record "Sales Price", VAR BestSalesPriceFound: Boolean, VAR IsHandled: Boolean)

I ended up up replicating the entirity of codeunit 7000 in an al codeunit, and using the OnBeforeFindSalesLinePrice event to call my custom codeunit, so most of codeunit 7000 is never touched.
Not sure if I should close this issue. It would be nice to be able to do what I'm after without replicating the whole codeunit. But I'm able to get around my problem like this.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


DoS prevention?

Can't someone just make requests continually to reach the rate limit? This person would be a troll, but it is still something I think should be implemented.

There is a (pretty bad) rate-limiting mechanism, look in the util folder.


Clean up some folds

Unrelated to my other PR and is just stylistic, but I thought it was a little more Rust-y to use things like max and sum.
Pick and choose which changes you like I suppose (if any) :)

Thanks. It looks nicer indeed.


Document maximum rows allowed per batch in JSON Write API

https://docs.datasette.io/en/latest/json_api.html#the-json-write-api
There's a default limit: https://github.com/simonw/datasette/blob/da686627677b6819264bd787ba7d520edb069d12/datasette/views/table.py#L386-L390
https://github.com/simonw/datasette/blob/da686627677b6819264bd787ba7d520edb069d12/datasette/app.py#L125-L129
The documentation should mention this.

Smart clients could even hit https://latest.datasette.io/-/settings.json to fetch that setting and then submit rows in that sized batches.


Adding Custom values in Identity Server 4 Connect/token endpoint

i have implemented the Identity server 4 .. one thing on which i am stuck is currently connect/token endpoint provides the following fields
{ "id_token": "id toekn value", "access_token": "access token value", "token_type": "Bearer", "refresh_token": "a refresh token", "scope": "some scopes" }
however i want to add some more fields in this like
{ "id_token": "id toekn value", "access_token": "access token value", "token_type": "Bearer", "refresh_token": "a refresh token", "scope": "some scopes", "id":"any id", "url":"any url" }
any way to intercept this call and add custom fileds???

@leastprivilege  any help on this???

Important update
This organization is not maintained anymore besides critical security bugfixes (if feasible). This organization will be archived when .NET Core 3.1 end of support is reached (3rd Dec 2022). All new development is happening in the new Duende Software organization.
The new Duende IdentityServer comes with a commercial license but is free for dev/testing/personal projects and companies or individuals making less than 1M USD gross annnual revenue. Please get in touch with us if you have any question.


Create mapping for embeddings

We want to store embeddings with id's of the corresponding articles.

Why?

We want to be able to insert embeddings, only when they become relevant (i.e. it is a new article, or it is an article that has been interacted with).
We want to ensure that we always know which embeddings correspond to which articles.
We will be able to give recommendations faster (won't have to iterate over all articles)

How?
Some possible solutions are:

Does numpy have some way of storing mappings from ids to arrays? If so, we could manually set ids before saving, and then setup the tensor/numpy array with filler embeddings when loading. This would not enhance running time of training, but would make it faster to recommend articles. However, it would add some more complexity to the embeddings and the way we work with them.
Does tf have some way of creating tensors with mappings from ids to tensors? If not, we should load the embeddings, and fill the tensor for embeddings with invalid tensors. Tf does not seem to have this functionality. Embeddings are almost always seen as indices in an array of embeddings.

We also need to figure out how our exising code will handle this. How does sparse_mean_squared_error generate its predictions?

For now, we will pause this task.
The running time for saving and loading as many embeddings as we have is quite low.
It would be a nice future improvement to be able to cut down on the number of embeddings saved.


flutter/plugins CI should test flutter create on stable

This would have caught #27106 and seems feasible to automate. The app produced by flutter create on stable should be able to include any of the flutter/plugins as a dependency in its pubspec.yaml and still compile. Right now the flutter/plugins CI is only ever testing that the example apps within each repo build, but they're custom written for each plugin so can be working when flutter create is not.
/cc @cbracken @collinjackson, this is tangentially related to the other flutter/plugins testing work.

Finished by https://github.com/flutter/plugins/pull/2004


Makefile help and switch versioning library

1. Add usage instructions to the Makefile:

2.
Switch to using the modern setuptools_scm instead of the ancient and problematic versioneer.

Coverage increased (+0.06%) to 89.583% when pulling 981a4a56bd46af8fb0b898af7f0ebdf0375e1298 on misc-fixes into 774af92d21b6a52499adb15843d54894b237e8ff on develop.

Sorry! We should work on ownership a bit more :)


Re-add python3-observabilityclient

We do have now a build in downstream, so we can enable it again

/dnm not merge yet, we need a promotion first

recheck

recheck

recheck

tcib-podified-multinode-edpm-deployment-crc  is failing on https://issues.redhat.com/browse/OSPCIX-176

/override rdoproject.org/github-check

/override rdoproject.org/github-check


Config option for debounce (maybe even debounce on based on expected search time)

Hi,
after finding issue #40, I am wondering if it is a good idea to offer debouncing via an option in the configuration file or maybe even on a more fine grained basis based on dependency searches. It might make sense to distinguish between different actions in terms of expected finish time of searches.
Scenario
Consider the normal spotlight command search that filters the available commands. This is usually pretty fast and can easily be done after each keystroke. However, filtering through dependencies that might take a while to fetch from the backend takes a while and could the resulting behaviour of loading the results might not always be as smooth and could lead to unexpected behaviour while typing. This can be improved with x-model.debounce.
Possible improvement
However, the x-model.debounce might not be wanted on all searches. Maybe we could introdue an attribute on dependecies to indicate if debouncing should be done or not and then conditionally use x-model or x-model.debounce. I haven't had a close look yetif that is easily doable.
Alternatively just providing a global configuration flag to enable or disable debouncing would also be an option.
If that sounds like something you are interested in, I can work on a PR.

Sounds like a good addition. Feel free to submit a PR 😄


Don't delete original mime icons

When adding a product image and the deleting it, the image is (as expected) also deleted.
However when adding a non-image file, a mime icon is displayed. Deleting that media item also deletes the original Aimeos mime icon.
How to reproduce:

Open a product
add a media file (in my case a .zip file)
save -> Aimeos now displays the icon public/packages/aimeos/shop/mimeicons/application/zip.png
remove the media file
save

After step 5, the file public/packages/aimeos/shop/mimeicons/application/zip.png is gone.

We will release the new 2019.10 version based on Laravel 6 that shouldn't have that problem any more next Thusday or Wednesday

Cool, thanks.
I currently also have the problem that I can't reset a password. A remember_token is generated and sent by email, but not stored in the DB. Is this also related with Laravel 6 or another issue?

The column remember_token is for something different ("remember me" without login feature) then a password reset (new password is set in password column) in Laravel AFAIK

Yeah, you are right. I checked the wrong table. The reset token is stored in password_resets table.
I had an issue with my routes. Nothing to do with Aimeos, sorry.


Parsing Error

The connection is being done with a CAN with the latest version of the code. We are using foxy and Ubuntu 20.04, we only have one sensor so our yaml file looks something like this:
/smart_radar:   ros__parameters:     adapters:       adapter_0:         hw_dev_id: 3         hw_iface_name: can0         hw_type: can         port: 55555     master_data_serial_type: can_based     master_inst_serial_type: can_based     sensors:       # As many as 10 sensors all named as "sensor_<number>" in increasing order of numbers,       # e.g., sensor_0, sensor_1, etc. The list must start with sensor_0.       # For sensor modelif using :       # can: 'umrra4_can_v1_0_1', 'umrr96_can', 'umrr11_can', 'umrr9d_can_v1_0_3', 'umrr9d_can_v1_2_2', 'umrr9f_can_v2_1_1', 'umrr9f_can_v2_2_1'       # port: 'umrra4_v1_0_1', 'umrr96', 'umrr11', 'umrr9d_v1_0_3', 'umrr9d_v1_2_2', 'umrr9f_v1_1_1', 'umrr9f_v2_1_1', 'umrr9f_v2_2_1'       sensor_0:         link_type: "can"         # The model of the connected sensor.         model: "umrr96"         # Adapter id to which sensor is connected         dev_id: 3         # The client_id of the sensor/source, must be a unique integer.         id: 200         # The ip address of the sensor or of the source acting as a sensor.         ip: ""         # The port to be used.         port: 55555         # The frame_id to be set to the published messages.         frame_id: "umrr"         # Specify the history size.         history_size: 10         inst_type: "can_based"         data_type: "can_based"         # The interface name of the sensor         uifname: "umrr96_t153_automotive"         # The major version of the interface         uifmajorv: 1         # The minor version of the interface         uifminorv: 2         # The pathc version of the interface         uifpatchv: 2
    but we are running your standard github code, when connected to a can interface we set up using:
    slcand -o -s6 -t hw -S 3000000 /dev/ttyUSBx

    and called it can0 and we set this up using this:
    ip link set up my_interface_name

    and when we checked the interface `ip link show can0` we saw that it returns this:

17: can0: <NOARP,UP,LOWER_UP> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
    link/can

we assume from this that we created a can interface properly, when we run the yaml file though it gives this error:
 ros2 launch umrr_ros2_driver radar.launch.py [INFO] [launch]: All log files can be found below /home/salaheldinm/.ros/log/2024-05-22-10-43-04-363174-salaheldinm-IdeaPad-5-15ALC05-16602 [INFO] [launch]: Default logging verbosity is set to INFO [INFO] [smartmicro_radar_node_exe-1]: process started with pid [16604] [smartmicro_radar_node_exe-1] [INFO] [1716367384.455732336] [smart_radar]: Updating ADAPTER params. [smartmicro_radar_node_exe-1] [INFO] [1716367384.455845470] [smart_radar]: Updating ADAPTER params. [smartmicro_radar_node_exe-1] [INFO] [1716367384.455857513] [smart_radar]: Updating SENSOR params. [smartmicro_radar_node_exe-1] [INFO] [1716367384.456008479] [smart_radar]: Updating SENSOR params. [smartmicro_radar_node_exe-1] [INFO] [1716367384.456130369] [smart_radar]: Updating SENSOR params. [smartmicro_radar_node_exe-1] [INFO] [1716367384.456259714] [smart_radar]: Updating SENSOR params. [smartmicro_radar_node_exe-1] [INFO] [1716367384.456389479] [smart_radar]: Updating SENSOR params. [smartmicro_radar_node_exe-1] terminate called after throwing an instance of 'nlohmann::detail::parse_error' [smartmicro_radar_node_exe-1]   what():  [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal [ERROR] [smartmicro_radar_node_exe-1]: process has died [pid 16604, exit code -6, cmd '/home/salaheldinm/smartmicro_ros2_radars-6.0.0/install/umrr_ros2_driver/lib/umrr_ros2_driver/smartmicro_radar_node_exe --ros-args -r __node:=smart_radar --params-file /home/salaheldinm/smartmicro_ros2_radars-6.0.0/install/umrr_ros2_driver/share/umrr_ros2_driver/param/radar.params.template.yaml'].
we are not sure what we are doing wrong, we are also building how we are supposed to by sourcing terminal first, then doing the docker colcon build, and then sourcing install and then finally running the code. The standard github yaml file doesnt run neither does ours

Hey,
I see that the CAN setup is good. I would however verify if the sensor is transmitting data with a candump.
In your approach I see a possible error. I think you have mixed up the docker colcon build and normal colcon build which is causing issue in correctly parsing the yaml file.
I would suggest to follow the following steps:

delete your previous build and install directories.
from the root of your workspace run the command colcon build
source your workspace
launch the node

Hi!
We tried the steps you mentioned based on a previous ticket regarding a similar issue, but they didn't seem to solve the problem. I can see that after running the docker build, the build, install and log folders are locked to only be visible to the root user. Could that be the source of the issue? Since the share config folder is located within install, I was thinking the executable may not be able to access it.
If the config folder that the software works of is not located within install, but the project root's closest config folder, then I suspect the issue might be related to the CMake not generating the smart_access_config.json file.
we also suspect that the can0 interface that we made was a CAN-COM instead of a hardware interface type, could that potentially be an issue?

Hey,
This is something that has been reported before and the reason for this is clear which is the mixing up of docker and native commands. As you use docker build it installs the build files in a different place as to when you use colcon build. Also for consistency and to ensure all dependencies are correctly handled, it is usually better to continue using Docker for running ROS 2 commands if you used Docker for building. This avoids potential issues with environment differences between your host and the Docker container.
Please clarify are you building on a native machine or are you using docker?
If native, I have already explained in my previous example how to set it up. In case you are working with docker I would than suggest the following steps:

docker build as you already have
run the docker container interactively
navigate to the mounted directory i.e code
source ros2 setup files
launch the node using ros2 launch

when we just clone the repo and do normal colcon build we get errors like for the includes, but we are not sure why they are happening

when we just clone the repo and do normal colcon build we get errors like for the includes, but we are not sure why they are happening

The reason for that is because you most probably have not extracted the includes. There is a script you need to run as stated in Readme:

Once you run the script you extract all the includes needed. You shall not get this error.

Hey,
Your assumptions are right, to be sure the sensor is fine I would ask you to monitor the traffic and see if data is being sent out from the sensor. If data is being sent it means the radar is operational and the possible reason for it not publishing targets could be as you stated that the firmware on the sensor is not compatible.
The sensor firmware normally is given out together with the sensor and this is independent of the GitHub repository. If you do not have it I would suggest to get in contact with our support team so they may provide you with it.

Hello, we feel like the bit and baud rates may be messed up and that is the reason we get this error when running ip -details -statistics link show :
16: can0: <NOARP,UP,LOWER_UP> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can  promiscuity 0 minmtu 0 maxmtu 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
RX: bytes  packets  errors  dropped overrun mcast
0          0        1       0       0       0
TX: bytes  packets  errors  dropped carrier collsns
0          0        0       0       0       0
could you help us with finding the baud rate and bit rate of the radar umrr96 type 153 sensor, we presume that in the command sudo slcand -o -s6 -c -S 500000 /dev/ttyUSB0 can0, the bitrate is s6 but we are also unsure of that. The CAN to USB is not LAWICEL and does not support the -t hw command, it is also not PEAK CAN but we are sure that the firmware should be compatible with your code since the model and the company are in your list of compliant radars. Do you also think that the adapter we are using is causing this issue

Hello,
Indeed the issue was due to the adapter, which we replaced with a peak can adapter making us now able to receive the radar signals, thank you for all your efforts. We can close this issue now but we might need help with other matters in the upcoming days. We appreciate your aid.


A bug in table parsing in v0.24

A found an issue when I upgraded to v0.24 - v0.23 works fine. I parse MarkDown files and look for tables. In some cases, the parser missed the last table in a document. I narrowed it down to the following,
        [Test]
        public void TestTableBug()
        {
            const string testData = @"
| S |
|---|
| G |

| D | D |
|---|---|
| V | V |";
            MarkdownDocument document = Markdown.Parse(testData, new MarkdownPipelineBuilder().UseAdvancedExtensions().Build());

            Table[] tables = document.Descendants().OfType<Table>().ToArray();

            Assert.AreEqual(2, tables.Length, "Did you upgrade to MarkDig > 0.23?");
        }

Might be related to  #481 (cc: @generateui)

I'll take a look.


Can't go from a child to a parent's sibling which redirects to a sibling of the child

I encountered what seems to be a bug where if I navigate to a child, and then navigate to a sibling of the parent which redirects back to a sibling of the child, nothing is rendered (#3). At which point, I must navigate to a different sibling of the parent before being able to render any of the children again (#9).
$stateProvider.state( 'a', {
  template: '<ui-view/>'
});

$stateProvider.state( 'a.b', {
  template: '
hello world
'
});

$stateProvider.state( 'a.c', {
  template: '
bla bla bla
'
});

$stateProvider.state( 'd', {
  onEnter: [ '$state', function( $state ) {
    $state.go( 'a.c' );
  }]
});

$stateProvider.state( 'e', {
  template: '
:)
'
});

$stateProvider.state( 'a.f', {
  onEnter: [ '$state', function( $state ) {
    $state.go( 'a.c' );
  }]
});

// 1. a.c -> works
// 2. a.b -> works
// 3. a.b -> d -> doesn't work
// 4. e -> d -> works
// 5. a.b -> a.f -> works
// 6. a.b -> d -> a -> TypeError: Cannot read property '@' of null
// 7. a.b -> d -> a.f -> still doesn't work
// 8. a.b -> d -> d, {reload: true} -> a.f -> nope
// 9. a.b -> d -> e -> a.c -> yay, it renders again!

Same bug , how to solve this !

@oliviercpl
Using Controller seems to work :)
.state("redirect",{
  template: "whatever",
  params: { 'targetState':true, 'targetParams': true},
  controller: ['$state', '$stateParams', function($state, $stateParams){
    $state.go($stateParams.targetState, $stateParams.targetParams);
  }],
})

Using Controller works, but is going through the redirect step, so the template is loaded, controllers inside are initialized etc. The cost is huge. Any update, I still have this problem :(

If you don't need resolves to know whether to redirect, you can redirect using a $stateChangeStart event listener.

I checked this solution, but the problem is that if:

I will call preventDefault  the url is not changing (eg by click on ui-sref).
If I will not use preventDefault, my call on $state.go in handler have no any effect.
If I will not use preventDefault and call $state.go in handler in the $timeout(0) the url is not changing.

I have the scenario where on attempt to go to some state (url is chaging) I checking authorization, if user is not authorized, I want to go to some intermediate state (state without url) eg. for showing login screen, but without url changing, after authorize I simply calling $urlRouter.sync() and everything works. Similar scenario I have with session expired. Etc... I do not want to care about url's by self, and store them somehow as search parameter :)
Maybe I'm using bad approach for solving my scenario.
Btw. @christopherthielen ui-router is very usefull ang good solution, thx :)

I found the solution, maybe ugly, but works:
Solution:

appmodule.config(function ($urlRouterProvider) {
    $urlRouterProvider.deferIntercept();
});

appmodule.run(
    function ($rootScope, $state, $injector, $urlRouter, $location) {

        var blockNextUrlUpdate;
        $rootScope.$on('$locationChangeSuccess', function (e) {
            if (blockNextUrlUpdate) {
                e.preventDefault();
                blockNextUrlUpdate = false;
            }
        });
        $urlRouter.listen();

        $rootScope.$on("$stateChangeStart", function (
            event, toState, toParams, fromState, fromParams)  {

            var wasPrevented = event.defaultPrevented;

            function doOnBefore(state) {
                var parent = state.parent,
                    name = state.name;

                parent =
                    (angular.isString(parent)) ? $state.get(parent)
                        : (angular.isObject(parent)) ? parent
                        : (name.indexOf('.') !== -1) ? $state.get(
                              name.substring(0, name.lastIndexOf('.')))
                        : null;

                if (parent) {
                    doOnBefore(parent);
                }

                if (!event.defaultPrevented) {
                    if (state["onBefore"]) {
                        $injector.invoke(state["onBefore"], null, {
                            event: event,
                            toState: toState,
                            toParams: toParams,
                            fromState: fromState,
                            fromParams: fromParams
                        });
                    }
                }
            }

            doOnBefore(toState);

            if (!wasPrevented && event.defaultPrevented) {
                url = $state.href(toState, toParams);
                    $location.url(url.substr(1));
                    blockNextUrlUpdate = true;
            }
        });
    });

Updated plunker from @stephenbunch : http://plnkr.co/edit/x9VyBGsxVz4lbU5WDKdW?p=preview

Previous my solution is not working well with browser back, forward :(

UI-Router 1.0 preview is available: https://github.com/angular-ui/ui-router/tree/feature-1.0

This should be resolved in 1.0. Unfortunately the underlying flaw in 0.2 is too problematic to address with our limited resources. Please feel free to post the workaround to the FAQ for 0.2 users. Sorry for your trouble.


Home partners component

What does this change?
New and the last component added to the homepage! 🚀
Resolves issue #52

livesite
How Has This Been Tested?

[ ] User test
[ ] Accessibility test
[ ] Performance test
[x] Responsive Design test
[ ] Device test
[x] Browser test

Images

How to review

Yess bedankt voor het checken, nu is hij zo goed als af!

Kan je nog even de juiste livesite hierin zetten?


Openshift Online and Strimzi 0.2.0 - my-cluster-kafka OOM killed

Hello,
i tried to deploy Strimzi 0.2.0 in Openshift Online.
First, i'm not running cluster controller under ServiceAccount because in Online you cant change cluster part of roles, so i deployed cluster and topic controller manually.
After that (and importing templates) cluster-controller deployed my-cluster-kafka and my-cluster-zookeeper stateful sets correctly.
Then i relaized that once in hour every pod in my-cluster-kafka stateful sets restarts. This is because OOM kills it.
I tried to change default resource limits in namespace, but i got message:

error: limitranges "resource-limits" could not be patched: User "xxxxxxxxxxxxx" cannot patch limitranges in the namespace "kafka"

Then i tried to edit stateful state yaml, but without success:

Reason: StatefulSet.apps "my-cluster-kafka" is invalid: spec.template.containers: Forbidden: pod updates may not add or remove containers

I also tried to edit resource limits in pod, bud also without success.
Is there a way to run this in Openshift Online?
tnx,
Franjo

To be honest, I think nobody from us tried to run it on the OpenShift Online yet. Is there some specific reason why you want to use it on OpenShift Online? I think that given its limited resources of the Starter plan it might be challenging to do there anything useful, because you would need to run there Zookeeper cluster, Kafka cluster and clients (since right now we haven't implemented exposing Kafka to the outside yet).
Anyway, I will give it a try to see if I can come up with some ideas. Implementing proper resource limits into the pods and configuring JVM memory accordingly might help a bit.
Does the OOM kill it just like that? Or where you sending some messages?

OOM kills it just like that. In that moment kafka-cluster is just deployed and have zero topics, zero consumers, zero producers.
The reason why we use Online is because we are in procedure to buy new hardware and Openshift Enterprise, so in meantime we thought to use Online just for PoC and develoment purposes.
When i'm trying to run /opt/kafka/kafka_healthcheck.sh script in the pod, after a few tries i get:

command terminated with non-zero exit code: Error executing in Docker container: 137

To be honest ... unless you have only a Chromebook or thin client or something similar ... using it for development purposes locally with something like Minishift or "oc cluster up" might give you a better experience.
But it would be cool if it could somehow work in OpenShift Online at least in some limited form, so I will anyway have a look at it. But no promises.

After a brief look, the first step would be to make the resource requests and limits configurable. Without that it would be hard to move forward without editing all YAMLs etc.

I agree with you, it would be great to have this parameters in cluster configmap, so cluster controller would set it when creating stateful sets.
There would be problem with this if any customer is a tenant and have default quota and limits, not just in Openshift Online but also at any OpenShift Cloud provider.

The resource limits and requests are now implemented and released. We even published a blog post about running Strimzi on OpenShift Online. I think this issue can be closed.
If you think we still missed something, please let me know.


ignore install scripts

Initial checklist

[x] I read the support docs
[x] I read the contributing guide
[x] I agree to follow the code of conduct
[x] I searched issues and couldn’t find anything (or linked relevant results below)
[x] If applicable, I’ve added docs and tests

Description of changes
install scripts are not needed or used, this disables the feature for this repo

please sync so tests can pass