Database [tenant] not configured.

Description
I installed Tenancy in a new clean laravel project ( Demo )
and created a new tenant and it created well also migrated the database
now I trying to insert data in the tenant database but I get this error ( Database [tenant] not configured. ) I already searched for this error but I didn't get anything or how to fix it.
I created a tenant called ( abc ) and the domain I'm using is: ( abc.demo.dev )
also, I tried to use ( Mamp Pro ) & ( laravel valet ) but I get the same error every time.
when I create a new tent it's created well and a new database created

I think it's related to the subdomain because if I using ( anything.demo.dev ) it's opening the laravel page normally and get the same error when inserting data
so how I can fix it, please ?
..

Actual behavior
laravel error ( Database [tenant] not configured. )
..
Expected behavior
Insert data in Tenant Database
..

Information

hyn/multi-tenant version: 5.3
laravel version: 5.7
database driver and version: MySQL 5.7
webserver software and version: Apache2 / Ngnix
php version: 7.2

tenancy.php config
<?php

/*
 * This file is part of the hyn/multi-tenant package.
 *
 * (c) Daniël Klabbers<EMAIL_ADDRESS> *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @see https://laravel-tenancy.com
 * @see https://github.com/hyn/multi-tenant
 */

use Hyn\Tenancy\Database\Connection;

return [
    'models' => [
        /**
         * Specify different models to be used for the global, system database
         * connection. These are also used in their relationships. Models
         * used have to implement their respective contracts and
         * either extend the SystemModel or use the trait
         * UsesSystemConnection.
         */

        // Must implement \Hyn\Tenancy\Contracts\Hostname
        'hostname' => \Hyn\Tenancy\Models\Hostname::class,

        // Must implement \Hyn\Tenancy\Contracts\Website
        'website' => \Hyn\Tenancy\Models\Website::class
    ],
    /**
     * The package middleware. Removing a middleware here will disable it.
     * You can of course extend/replace them or add your own.
     */
    'middleware' => [
        // The eager identification middleware.
        \Hyn\Tenancy\Middleware\EagerIdentification::class,

        // The hostname actions middleware (redirects, https, maintenance).
        \Hyn\Tenancy\Middleware\HostnameActions::class,
    ],
    'website' => [
        /**
         * Each website has a short random hash that identifies this entity
         * to the application. By default this id is randomized and fully
         * auto-generated. In case you want to force your own logic for
         * when you need to have a better overview of the complete
         * tenant folder structure, disable this and implement
         * your own id generation logic.
         */
        'disable-random-id' => false,

        /**
         * The random Id generator is responsible for creating the hash as mentioned
         * above. You can override what generator to use by modifying this value
         * in the configuration.
         *
         * @warn This won't work if disable-random-id is true.
         */
        'random-id-generator' => Hyn\Tenancy\Generators\Uuid\ShaGenerator::class,

        /**
         * Enable this flag in case you're using a driver that does not support
         * database username or database name with a length of more than 32 characters.
         *
         * This should be enabled for MySQL, but not for MariaDB and PostgreSQL.
         */
        'uuid-limit-length-to-32' => env('LIMIT_UUID_LENGTH_32', false),

        /**
         * Specify the disk you configured in the filesystems.php file where to store
         * the tenant specific files, including media, packages, routes and other
         * files for this particular website.
         *
         * @info If not set, will revert to the default filesystem.
         * @info If set to false will disable all tenant specific filesystem auto magic
         *       like the config, vendor overrides.
         */
        'disk' => null,

        /**
         * Automatically generate a tenant directory based on the random id of the
         * website. Uses the above disk to store files to override system-wide
         * files.
         *
         * @info set to false to disable.
         */
        'auto-create-tenant-directory' => true,

        /**
         * Automatically rename the tenant directory when the random id of the
         * website changes. This should not be too common, but in case it happens
         * we automatically want to move files accordingly.
         *
         * @info set to false to disable.
         */
        'auto-rename-tenant-directory' => true,

        /**
         * Automatically deletes the tenant specific directory and all files
         * contained within.
         *
         * @see
         * @info set to true to enable.
         */
        'auto-delete-tenant-directory' => false,

        /**
         * Time to cache websites in minutes. Set to false to disable.
         */
        'cache' => 10,
    ],
    'hostname' => [
        /**
         * If you want the multi tenant application to fall back to a default
         * hostname/website in case the requested hostname was not found
         * in the database, complete in detail the default hostname.
         *
         * @warn this must be a FQDN, these have no protocol or path!
         */
        'default' => env('TENANCY_DEFAULT_HOSTNAME'),
        /**
         * The package is able to identify the requested hostname by itself,
         * disable to get full control (and responsibility) over hostname
         * identification. The hostname identification is needed to
         * set a specific website as currently active.
         *
         * @see src/Jobs/HostnameIdentification.php
         */
        'auto-identification' => env('TENANCY_AUTO_HOSTNAME_IDENTIFICATION', true),

        /**
         * In case you want to have the tenancy environment set up early,
         * enable this flag. This will run the tenant identification
         * inside a middleware. This will eager load tenancy.
         *
         * A good use case is when you have set "tenant" as the default
         * database connection.
         */
        'early-identification' => env('TENANCY_EARLY_IDENTIFICATION', true),

        /**
         * Abort application execution in case no hostname was identified. This will throw a
         * 404 not found in case the tenant hostname was not resolved.
         */
        'abort-without-identified-hostname' => env('TENANCY_ABORT_WITHOUT_HOSTNAME', false),

        /**
         * Time to cache hostnames in minutes. Set to false to disable.
         */
        'cache' => 10,

        /**
         * Automatically update the app.url configured inside Laravel to match
         * the tenant FQDN whenever a hostname/tenant was identified.
         *
         * This will resolve issues with password reset mails etc using the
         * correct domain.
         */
        'update-app-url' => false,
    ],
    'db' => [
        /**
         * The default connection to use; this overrules the Laravel database.default
         * configuration setting. In Laravel this is normally configured to 'mysql'.
         * You can set a environment variable to override the default database
         * connection to - for instance - the tenant connection 'tenant'.
         */
        'default' => env('TENANCY_DEFAULT_CONNECTION'),
        /**
         * Used to give names to the system and tenant database connections. By
         * default we configure 'system' and 'tenant'. The tenant connection
         * is set up automatically by this package.
         *
         * @see src/Database/Connection.php
         * @var system-connection-name The database connection name to use for the global/system database.
         * @var tenant-connection-name The database connection name to use for the tenant database.
         */
        'system-connection-name' => env('TENANCY_SYSTEM_CONNECTION_NAME', Connection::DEFAULT_SYSTEM_NAME),
        'tenant-connection-name' => env('TENANCY_TENANT_CONNECTION_NAME', Connection::DEFAULT_TENANT_NAME),

        /**
         * The tenant division mode specifies to what database websites will be
         * connecting. The default setup is to use a new database per tenant.
         * If using PostgreSQL, a new schema per tenant in the same database can
         * be setup, by optionally setting division mode to 'schema'.
         * In case you prefer to use the same database with a table prefix,
         * set the mode to 'prefix'.
         * To implement a custom division mode, set this to 'bypass'.
         *
         * @see src/Database/Connection.php
         */
        'tenant-division-mode' => env('TENANCY_DATABASE_DIVISION_MODE', 'database'),

        /**
         * The database password generator takes care of creating a valid hashed
         * string used for tenants to connect to the specific database. Do
         * note that this will only work in 'division modes' that set up
         * a connection to a separate database.
         */
        'password-generator' => Hyn\Tenancy\Generators\Database\DefaultPasswordGenerator::class,

        /**
         * The tenant migrations to be run during creation of a tenant. Specify a directory
         * to run the migrations from. If specified these migrations will be executed
         * whenever a new tenant is created.
         *
         * @info set to false to disable auto migrating.
         *
         * @warn this has to be an absolute path, feel free to use helper methods like
         * base_path() or database_path() to set this up.
         */
        'tenant-migrations-path' => database_path('migrations/tenant'),

        /**
         * The default Seeder class used on newly created databases and while
         * running artisan commands that fire seeding.
         *
         * @info requires tenant-migrations-path in order to seed newly created websites.
         * @info seeds stored in `database/seeds/tenants` need to be configured in your composer.json classmap.
         *
         * @warn specify a valid fully qualified class name.
         */
        'tenant-seed-class' => false,
//      eg an admin seeder under `app/Seeders/AdminSeeder.php`:
//        'tenant-seed-class' => App\Seeders\AdminSeeder::class,

        /**
         * Automatically generate a tenant database based on the random id of the
         * website.
         *
         * @info set to false to disable.
         */
        'auto-create-tenant-database' => true,

        /**
         * Automatically generate the user needed to access the database.
         *
         * @info Useful in case you use root or another predefined user to access the
         *       tenant database.
         * @info Only creates in case tenant databases are set to be created.
         *
         * @info set to false to disable.
         */
        'auto-create-tenant-database-user' => true,

        /**
         * Automatically rename the tenant database when the random id of the
         * website changes. This should not be too common, but in case it happens
         * we automatically want to move databases accordingly.
         *
         * @info set to false to disable.
         */
        'auto-rename-tenant-database' => true,

        /**
         * Automatically deletes the tenant specific database and all data
         * contained within.
         *
         * @info set to true to enable.
         */
        'auto-delete-tenant-database' => env('TENANCY_DATABASE_AUTO_DELETE', false),

        /**
         * Automatically delete the user needed to access the tenant database.
         *
         * @info Set to false to disable.
         * @info Only deletes in case tenant database is set to be deleted.
         */
        'auto-delete-tenant-database-user' => env('TENANCY_DATABASE_AUTO_DELETE_USER', false),

        /**
         * Define a list of classes that you wish to force onto the tenant or system connection.
         * The connection will be forced when the Model has booted.
         *
         * @info Useful for overriding the connection of third party packages.
         */
        'force-tenant-connection-of-models' => [
//            App\User::class
        ],
        'force-system-connection-of-models' => [
//            App\User::class
        ],
    ],

    /**
     * Global tenant specific routes.
     * Making it easier to distinguish between landing and tenant routing.
     *
     * @info only works with `tenancy.hostname.auto-identification` or identification happening
     *       before the application is booted (eg inside middleware or the register method of
     *       service providers).
     */
    'routes' => [
        /**
         * Routes file to load whenever a tenant was identified.
         *
         * @info Set to false or null to disable.
         */
        'path' => base_path('routes/tenants.php'),

        /**
         * Set to true to flush all global routes before setting the routes from the
         * tenants.php routes file.
         */
        'replace-global' => false,
    ],

    /**
     * Folders configuration specific per tenant.
     * The following section relates to configuration to files inside the tenancy/<uuid>
     * tenant directory.
     */
    'folders' => [
        'config' => [
            /**
             * Merge configuration files from the config directory
             * inside the tenant directory with the global configuration files.
             */
            'enabled' => true,

            /**
             * List of configuration files to ignore, preventing override of crucial
             * application configurations.
             */
            'blacklist' => ['database', 'tenancy', 'webserver'],
        ],
        'routes' => [
            /**
             * Allows adding and overriding URL routes inside the tenant directory.
             */
            'enabled' => true,

            /**
             * Prefix all tenant routes.
             */
            'prefix' => null,
        ],
        'trans' => [
            /**
             * Allows reading translation files from a trans directory inside
             * the tenant directory.
             */
            'enabled' => true,

            /**
             * Will override the global translations with the tenant translations.
             * This is done by overriding the laravel default translator with the new path.
             */
            'override-global' => true,

            /**
             * In case you disabled global override, specify a namespace here to load the
             * tenant translation files with.
             */
            'namespace' => 'tenant',
        ],
        'vendor' => [
            /**
             * Allows using a custom vendor (composer driven) folder inside
             * the tenant directory.
             */
            'enabled' => true,
        ],
        'media' => [
            /**
             * Mounts the assets directory with (static) files for public use.
             */
            'enabled' => true,
        ],
        'views' => [
            /**
             * Adds the vendor directory of the tenant inside the application.
             */
            'enabled' => true,

            /**
             * Specify a namespace to use with which to load the views.
             *
             * @eg setting `tenant` will allow you to use `tenant::some.blade.php`
             * @info set to null to add to the global namespace.
             */
            'namespace' => null,

            /**
             * If `namespace` is set to null (thus using the global namespace)
             * make it override the global views. Disable by setting to false.
             */
            'override-global' => true,
        ]
    ]
];

webserver.php config
<?php

/*
 * This file is part of the hyn/multi-tenant package.
 *
 * (c) Daniël Klabbers<EMAIL_ADDRESS> *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @see https://laravel-tenancy.com
 * @see https://github.com/hyn/multi-tenant
 */

return [

    /**
     * Apache2 is one of the most widely adopted webserver packages available.
     *
     * @see http://httpd.apache.org/docs/
     * @see https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
     */
    'apache2' => [
        /**
         * Whether the integration with Apache2 is currently active.
         */
        'enabled' => false,

        /**
         * Define the ports of your Apache service.
         */
        'ports' => [
            /**
             * HTTP, non-SSL port.
             *
             * @default 80
             */
            'http' => 80,
            /**
             * HTTPS, SSL port.
             *
             * @default 443
             */
            'https' => 443
        ],

        /**
         * The generator taking care of hooking into the Apache services and files.
         */
        'generator' => \Hyn\Tenancy\Generators\Webserver\Vhost\ApacheGenerator::class,

        /**
         * The view that holds the vhost configuration template.
         */
        'view' => 'tenancy.generators::webserver.apache.vhost',

        /**
         * Specify the disk you configured in the filesystems.php file where to store
         * the tenant vhost configuration files.
         *
         * @info If not set, will revert to the default filesystem.
         */
        'disk' => null,

        'paths' => [

            /**
             * Location where vhost configuration files can be found.
             */
            'vhost-files' => [
                '/etc/apache2/sites-enabled/'
            ],

            /**
             * Actions to run to work with the Apache2 service.
             */
            'actions' => [
                /**
                 * Action that asserts Apache2 is installed.
                 */
                'exists' => '/etc/init.d/apache2',
                /**
                 * Action to run to test the apache configuration.
                 *
                 * @set to a boolean to force the response of the test command.
                 * @info true succeeds, false fails
                 */
                'test-config' => 'apache2ctl -t',
                /**
                 * Action to run to reload the apache service.
                 *
                 * @info set to null to disable reloading.
                 */
                'reload' => 'apache2ctl graceful'
            ]
        ]
    ],

    /**
     * Nginx webserver support.
     *
     * @see http://nginx.org
     */
    'nginx' => [
        /**
         * Whether the integration with nginx is currently active.
         */
        'enabled' => false,

        /**
         * The php sock to be used.
         */
        'php-sock' => 'unix:/var/run/php/php7.1-fpm.sock',

        /**
         * Define the ports of your nginx service.
         */
        'ports' => [
            /**
             * HTTP, non-SSL port.
             *
             * @default 80
             */
            'http' => 80,
            /**
             * HTTPS, SSL port.
             *
             * @default 443
             */
            'https' => 443
        ],

        /**
         * The generator taking care of hooking into the nginx services and files.
         */
        'generator' => \Hyn\Tenancy\Generators\Webserver\Vhost\NginxGenerator::class,

        /**
         * The view that holds the vhost configuration template.
         */
        'view' => 'tenancy.generators::webserver.nginx.vhost',

        /**
         * Specify the disk you configured in the filesystems.php file where to store
         * the tenant vhost configuration files.
         *
         * @info If not set, will revert to the default filesystem.
         */
        'disk' => null,

        'paths' => [

            /**
             * Location where vhost configuration files can be found.
             */
            'vhost-files' => [
                '/etc/nginx/sites-enabled/'
            ],

            /**
             * Actions to run to work with the Nginx service.
             */
            'actions' => [
                /**
                 * Action that asserts nginx is installed.
                 */
                'exists' => '/etc/init.d/nginx',
                /**
                 * Action to run to test the nginx configuration.
                 *
                 * @info set to a boolean to force the response of the test command.
                 *  true succeeds, false fails
                 */
                'test-config' => '/etc/init.d/nginx configtest',
                /**
                 * Action to run to reload the nginx service.
                 *
                 * @info set to null to disable reloading.
                 */
                'reload' => '/etc/init.d/nginx reload'
            ]
        ]
    ]
];

.Env
DB_CONNECTION=system
DB_HOST=<IP_ADDRESS>
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

TENANCY_HOST=<IP_ADDRESS>
TENANCY_PORT=3306
TENANCY_DATABASE=CanaryDB
TENANCY_USERNAME=root
TENANCY_PASSWORD=
DB_SOCKET=

LIMIT_UUID_LENGTH_32=true
AUTO_DELETE_TENANT_DIRECTORY=true
AUTO_DELETE_TENANT_DATABASE=true

.CreateTenant Command
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Hyn\Tenancy\Environment;
use Hyn\Tenancy\Models\Hostname;
use Hyn\Tenancy\Models\Website;
use Hyn\Tenancy\Repositories\WebsiteRepository;
use Hyn\Tenancy\Repositories\HostnameRepository;
use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Hash;

class CreateTenant extends Command
{
    protected $signature = 'tenant:create {name} {email}';
    protected $description = 'Creates a tenant with the provided name and email address e.g. php artisan tenant:create boise<EMAIL_ADDRESS>
    public function handle()
    {
        $name = $this->argument('name');
        $email = $this->argument('email');
        $website = new Website;

        if ($this->tenantExists($name, $email)) {
            $this->error("A tenant with name '{$name}' and/or '{$email}' already exists.");
            return;
        }

        $hostname = $this->registerTenant($name, $email);
        app(Environment::class)->tenant($website);

        // we'll create a random secure password for our to-be admin
        $password = str_random();
        $this->addAdmin($name, $email, $password);

        $this->info("Tenant '{$name}' is created and is now accessible at {$hostname->fqdn}");
        $this->info("Admin {$email} can log in using password {$password}");
    }

    private function tenantExists($name, $email)
    {
        return Hostname::where('fqdn', $name.env('TENANCY_DEFAULT_HOSTNAME'))->exists();
    }

    private function registerTenant($name, $email)
    {
        $website = new Website;
        app(WebsiteRepository::class)->create($website);

        // associate the website with a hostname
        $hostname = new Hostname;
        $baseUrl = config('app.url_base');
        $hostname->fqdn = "{$name}.{$baseUrl}";
        // $hostname->customer()->associate($customer);
        app(HostnameRepository::class)->attach($hostname, $website);
        return $hostname;
    }

    private function addAdmin($name, $email, $password)
    {
        $admin = User::create(['name' => $name, 'email' => $email, 'password' => Hash::make($password)]);
        return $admin;
    }

}

abc. is not a valid fqdn:
https://en.wikipedia.org/wiki/Fully_qualified_domain_name
see the docs for a few examples: https://laravel-tenancy.com/docs/hyn/5.3/creating-tenants#create-and-connect-hostname

yea the problem was in fqdn .. it should be ( abc.demo.dev ) bot only ( abc. ) 👌
thank you so much @luceos


discover -f does not work correctly since version 1.18

Second run of tmt run --id X discover -f does not discover any test.
Try this in some test directory, e.g. in [1].
$ rpm -q tmt
tmt-1.17.0-1.fc35.noarch
$ rm -rf /var/tmp/tmt/*
$ tmt run --id X plans --default tests --name . discover -fv
/var/tmp/tmt/X

/plans/default
    discover
        how: fmf
        directory: /home/dapospis/test/git/SP_components/tests
        hash: dba9cae
        summary: 1 test selected
            /usbguard/Sanity/selinux
[0 dapospis@sopos tests(master).+ selinux]$ tmt run --id X plans --default tests --name . discover -fv
/var/tmp/tmt/X

/plans/default
    discover
        how: fmf
        directory: /home/dapospis/test/git/SP_components/tests
        hash: dba9cae
        summary: 1 test selected
            /usbguard/Sanity/selinux

$ rpm -q tmt
tmt-1.18.0-1.20221019090005434264.main.17.g5208e63.fc35.noarch
$ rm -rf /var/tmp/tmt/*
$ tmt run --id X plans --default tests --name . discover -fv
/var/tmp/tmt/X

/plans/default
    discover
        how: fmf
        directory: /home/dapospis/test/git/SP_components/tests
        hash: dba9cae
        summary: 1 test selected
            /usbguard/Sanity/selinux
$ tmt run --id X plans --default tests --name . discover -fv
/var/tmp/tmt/X

/plans/default
    discover
        how: shell
        summary: 0 tests selected
        warning: No tests found, finishing plan.

https://github.com/RedHat-SP-Security/tests/tree/master/usbguard/Sanity/selinux

The regression has been introduced in f5857aed329807cfe9a6723fed7b9e1cc085962a which includes changes needed for importing remote plans. @adiosnb, would you have some time to investigate this more?

The regression has been introduced in f5857ae which includes changes needed for importing remote plans. @adiosnb, would you have some time to investigate this more?

I will have a look into it.

Great, thanks much!


IoAllocateMdl

how to use IoAllocateMdl in injdllx64.dll?thank you again.

You can't, IoAllocateMdl is available only for kernel drivers.


The TOC links don't work

Description
When you click on a section in the TOC it leads to a 404 error.
(Optional:) Please add any files, screenshots, or other information here.

(Required) What is this issue most closely related to? Select one.
Other
Internal issue ID
64a5d183-54c7-4913-8300-d743ff7c9c51
Paper URL
https://arxiv.org/html/2401.10506v1
Browser
Firefox/123.0
Device Type
Desktop

Thanks for your report. We have fixed this issue in new conversions and will recreate the HTML for existing papers when the next version of LaTeXML is released. I rebuilt the HTML for this paper with the updated converter, and it now appears to work. Thank you for bringing this to our attention - we rely on feedback reports to help prioritize improvements to the html conversions. I will close this issue report -- if the issue persists, please let me know.


No training data found

Where is the training data?

You can find the training data for my version of rasa nlu here
https://github.com/adar2378/bankingchatbotabc/tree/master/AI-engine/data
On Sat, Mar 2, 2019 at 6:16 PM Bhushan Borole<EMAIL_ADDRESS>wrote:

Where is the training data?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/adar2378/bankingchatbotabc/issues/3, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AHr5ehlWWGt1-i8ZKAD46FTrGWEwAUfgks5vSmuhgaJpZM4baWfa
.


copy paste OTP not working

Hello
I am using your code in one of the project. And in my project one of the requirement is to copy paste OTP. So If User copy OTP from anywhere and paste the code, it will fill all the OTP filed views with pasted OTP. Right now what happen is that, if I copied 123456 and paste, the whole OTP is pasted in first textfield only. But I want to paste only single character in each of textfield.
So please can anyone give me the solution for that.
Waiting for the response.
Thanks in advance.

@JenishMistry91 Did you find a solution for this?

@JGVB
Yes, I found the solution for this.
You can find OTPFiledView.swift file from below attachment and replace with your installed pods OTPFieldView.swift file.
OTPFieldView.swift.zip

Hi, is there another solution? I cannot change my POD, as I publish the project for the QA team to test.

@arjdev69 you can fork this repo and make the changes in your own forked code.
@JenishMistry91 Would you consider making a pr for the changes?

@JGVB Yes, I found the solution for this. You can find OTPFiledView.swift file from below attachment and replace with your installed pods OTPFieldView.swift file. OTPFieldView.swift.zip

@JGVB Yes it working fabulous, great job.


[DOCFIX] Update Chinese document of Running-Alluxio-Locally.md

Can one of the admins verify this patch?

jenkins, test this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/13470/
Test PASSed.


Switch back to a .ron file for level

IMO using a standardized 'ron' file format offers much more flexibility such as using custom scene editors / custom map editors as opposed to being stuck with using blender. Ideally this is the direction that I hope bevy takes, and it is the direction I am taking with my game workflow.  Besides: using a blender level file wont work for my game anyways as it is more open-world.   I need to use a 'ron' file that can define assets which are extremely far away from the player and which are only spawned in / loaded in  as the player goes to that region .

There is a slight misunderstanding in terminology here, since there is nothing Blender-specific in the code right now.
What we need in any case is a file that describes the 3D objects in a scene. I use GLTF files for that.
Then, we need a file that says where these objects should be spawned. I decided to use GLTF for that as well.
Since I'm using GLTF for both the 3D models and the level layout, I decided to use a single GLTF file for this purpose.
The reason I wanted to switch from a RON based approach is that there was a lot of opinionated code about how that RON should look like. For example, I would prefer to define the components in Rust code because of type safety and to keep the RON small, but this means that I cannot easily change components's constants at runtime. Another example is whether the player character should be in the RON, since that would make sense for a game with changing levels such as Doom, but not for an open world game where the player just spawns wherever they last saved the game.
This led me to believe that the best course of action would be to simply the level loading as much as possible such that users can define their own level formats, since that part is too game-specific for a template to handle. However, you are right: currently you cannot spawn e.g. another house.
The best solution here would in my opinion be to split the GLTF into one that defines only the positions of the objects in relation to the level and then another GLTF per game object. That way, you can easily code whatever RON schema you want that will in turn spawn in objects defined by the individual GLTFs.
Does my explanation make sense to you? Would that be alright?

Yes i already hacked your template to make it work more like the old way —
not load from a gltf but instead from individual models and just fyi i
struggled quite a bit linking animations but i did figure it out eventually
by looking at your old code and adding an old animation linker system.
So i suspect that may be one area of hardship for others .  But it wasnt
too tough to modify otherwise
Thanks
On Thu, Feb 8, 2024 at 12:03 AM Jan Hohenheim @.***>
wrote:

There is a slight misunderstanding in terminology here, since there is
nothing Blender-specific in the code right now.
What we need in any case is a file that describes the 3D objects in a
scene. I use GLTF files for that.
Then, we need a file that says where these objects should be spawned. I
decided to use GLTF for that as well.
Since I'm using GLTF for both the 3D models and the level layout, I
decided to use a single GLTF file for this purpose.
The reason I wanted to switch from a RON based approach is that there was
a lot of opinionated code about how that RON should look like. For
example, I would prefer to define the components in Rust code because of
type safety and to keep the RON small, but this means that I cannot easily
change components's constants at runtime. Another example is whether the
player character should be in the RON, since that would make sense for a
game with changing levels such as Doom, but not for an open world game
where the player just spawns wherever they last saved the game.
This led me to believe that the best course of action would be to simply
the level loading as much as possible such that users can define their own
level formats, since that part is too game-specific for a template to
handle. However, you are right: currently you cannot spawn e.g. another
house.
The best solution here would in my opinion be to split the GLTF into one
that defines only the positions of the objects in relation to the level and
then another GLTF per game object. That way, you can easily code whatever
RON schema you want that will in turn spawn in objects defined by the
individual GLTFs.
Does my explanation make sense to you? Would that be alright?
—
Reply to this email directly, view it on GitHub
https://github.com/janhohenheim/foxtrot/issues/292#issuecomment-1933368331,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPVWL7Y3T4CBLL6W2GYL5TYSRMBLAVCNFSM6AAAAABC64NKFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZTGM3DQMZTGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

I hope to see bevy come up with a good standard soln but until then a gltf
is ok for templating
On Thu, Feb 8, 2024 at 12:06 AM Ad Mazzola @.***> wrote:

Yes i already hacked your template to make it work more like the old way —
not load from a gltf but instead from individual models and just fyi i
struggled quite a bit linking animations but i did figure it out eventually
by looking at your old code and adding an old animation linker system.
So i suspect that may be one area of hardship for others .  But it wasnt
too tough to modify otherwise
Thanks
On Thu, Feb 8, 2024 at 12:03 AM Jan Hohenheim @.***>
wrote:

There is a slight misunderstanding in terminology here, since there is
nothing Blender-specific in the code right now.
What we need in any case is a file that describes the 3D objects in a
scene. I use GLTF files for that.
Then, we need a file that says where these objects should be spawned.
I decided to use GLTF for that as well.
Since I'm using GLTF for both the 3D models and the level layout, I
decided to use a single GLTF file for this purpose.
The reason I wanted to switch from a RON based approach is that there was
a lot of opinionated code about how that RON should look like. For
example, I would prefer to define the components in Rust code because of
type safety and to keep the RON small, but this means that I cannot easily
change components's constants at runtime. Another example is whether the
player character should be in the RON, since that would make sense for a
game with changing levels such as Doom, but not for an open world game
where the player just spawns wherever they last saved the game.
This led me to believe that the best course of action would be to simply
the level loading as much as possible such that users can define their own
level formats, since that part is too game-specific for a template to
handle. However, you are right: currently you cannot spawn e.g. another
house.
The best solution here would in my opinion be to split the GLTF into one
that defines only the positions of the objects in relation to the level and
then another GLTF per game object. That way, you can easily code whatever
RON schema you want that will in turn spawn in objects defined by the
individual GLTFs.
Does my explanation make sense to you? Would that be alright?
—
Reply to this email directly, view it on GitHub
https://github.com/janhohenheim/foxtrot/issues/292#issuecomment-1933368331,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPVWL7Y3T4CBLL6W2GYL5TYSRMBLAVCNFSM6AAAAABC64NKFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZTGM3DQMZTGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yeah, the animation linking is very unintuitive in my opinion!

There you go, now the individual GLTFs are available again and can be spawned as blueprints. See bevy_gltf_blueprints for more info. I recommend combining it with spew for spawning stuff dynamically at runtime :)


Uncaught 520 error when deploying file

From @Fil
◓  48 / 48 _npm/<EMAIL_ADDRESS>■  Error: Unexpected response status 520
│
●  To see the full stack trace, run with the --debug flag.
│
│  If you think this is a bug, please file an issue at
└  https://github.com/observablehq/framework/issues

■  Canceled

Could not reproduce after the “manifest” changes.


[feat]

Feature Request
Describe the Feature Request

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

Looks like spam


Automated evaluation pipeline for internal use

Description of Problem:
We want to setup an automated pipeline for the research team to make progress on evaluating assistants.
You can find more details on the scope in this notion doc.
The GH issue is to track progress on the proposal.
Overview of the Solution:
There's one suggested inside the notion document but input from infra team will be highly appreciated.
Note: This is a big enabler for a couple of projects that the research team is planning to work on, namely validating E2E, so it would be helpful to take this up as soon as possible (of course without sacrificing anything else that the infrastructure team is already doing 😄 )

The proposal has a green light. 🟢
https://github.com/RasaHQ/rasa-x/issues/5907


Vue upgrade v3

Issue #, if available:
Description of changes:
Description of testing performed to validate your changes (required if pull request includes CloudFormation or source code changes):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Shopping cart > Checkout > Pickup at Store The descriptive text in the phone number textbox is cut off.

Shopping cart > Checkout > Enter Promo code > Apply You are redirected to the login options part of the checkout process. (Tested as a guest user)

Text bubbles get cut off when over a certain length on /help page

Unable to create an account as the email is not recognized.


Remove SQL dependencies from common test project.

Ciao @mo-esmp
I'll check it as soon as possible 😁
Can you give a quick look to the pr #138?
I moved tests for mongo and I think we can merge that one before yours, since I deleted a file from there 😊


Forgot Password - URL Configuration Settings

Jira Description
Klein will need to provide the proper URL for the Forgot Password link when a user clicks on Forgot Password.  The API will generate a link the user will click on, but that link has a configuration setting Klein will need to determine.  Currently the link is set to "http://localhost:80" which is the users computer.  Klein will need to make the IIS website available on their intranet and create a binding hostname for the website, then apply that url to the configuration file.

The configuration file to be updated is: appsettings.json

Clarification: The http://localhost:80 is in the appsettings.json.  A DNS entry has been added so that "lp-staging" is the user-friendly url for the staging server.  Hence, the appsettings entry should be set to "https://lp-staging:5100" instead of localhost.

Changes should be made in the Klein forked codebase or in Octopus deploy instead of the deployed file because those files will be no longer be in use when they deploy a newer version of the app from Octopus. Octopus always points to the latest file unless there is a rollback scenario.

Jira Metadata
Key: LP-73
Epic: n/a
Created: 2021-04-05T15:59:45.000-0500
Reporter: Ashley Toscano

Jira Comment
Worked with Klein to create a url "https://lp-staging" for the staging server.  Config file will need to be set to "https://lp-staging:5100" in the appsettings.json
Jira Metadata
Created: 2021-04-14T21:51:01.637-0500
Commenter: Ashley Toscano


Build on Linux -gl issue?

Hi there,
Extremely keen to give this library a go in my AWS project but seems to be failing under build in Linux, any thoughts?
`In file included from ../recastnavigation/RecastDemo/Source/Sample.cpp:20:0:
../usr/include/math.h:359:0: note: this is the location of the previous definition
define M_PI  3.14159265358979323846 /* pi /
^
In file included from ../recastnavigation/RecastDemo/Source/Sample.cpp:32:0:
../SDL/SDL_opengl.h:54:73: fatal error: GL/gl.h: No such file or directory
include <GL/gl.h>              / Header File For The OpenGL Library */
^
compilation terminated.
make: *** [Release/obj.target/addon/recastnavigation/RecastDemo/Source/Sample.o] Error 1
make: Leaving directory /home/ec2-user/nodemongo-intodim/node_modules/node_recast/build'
Seems to me that theres an issue with the RecastDemo requiring the GL system (which it doesn't have in Node). Any way to decouple this?

I got the same error.


App sometimes breaks after removing a safe.

The problem was patched here: https://github.com/gnosis/safe-react/pull/1201/files#r474843486.
This ticket is to address a better solution.

@nicosampler is this still relevant or should we close this?

closing it, as I didn't document it properly, I'm not sure what should be improved.


Delete Team does not cascade delete to the number of Users associated to the Team. Keycloak or Database backends.

Describe the bug
When deleting a Team the count of UserData objects remains the same after the delete is complete.
To Reproduce
Steps to reproduce the behaviour.
tbc.....
This testcase will fail with an error
[ERROR] Failures:
[ERROR]   DatabaseUserServiceTest>UserServiceAbstractTest.userCountAfterDeleteTeamTest:445 expected: <10> but was: <11>
[ERROR]   KeycloakUserServiceTest>UserServiceAbstractTest.userCountAfterDeleteTeamTest:445 expected: <13> but was: <14>

Version
master 41cd4e526fc0b763ec4f6c37aca64e7e7b4a672c

This is expected. We never delete users.
When removing a team what we remove is the association between a user and the team. The user can become associated with other teams afterwards.


Bugfixes/sumatra

The tab for Occupations in the 2-digit industry profiles should say 2014, instead of 2013.
-> check the colombia profile
-> industry profiles
-> download page
4 digit industry: dot plots don't work?
Industry pages: Add code to the title
Product pages: Add code to the title

Sneak Feature:
On the profile of a product, industry, place, I want to click on the graph icons and go to that question and that type of graph

love the sneak feature.
For the Occupation year, there's a spot or two still showing 2013

the actual occu tab for 2d industry graphbuilder (although profile is good)

It's not a bug that we identified earlier (can make a new bug item):
In the table of child industries at the bottom of the 2d industry profile, it shows 2014... not sure where that's coming from.

the actual occu tab for 2d industry graphbuilder (although profile is good)
does 2014 exist?

For the Occupation year, there's a spot or two still showing 2013

the actual occu tab for 2d industry graphbuilder (although profile is good)
It's not a bug that we identified earlier (can make a new bug item):
In the table of child industries at the bottom of the 2d industry profile, it shows 2014... not sure where that's coming from.

Made ticket for this, will be fixed with 2014 update


Website Login using HTML,CSS

Pls assign me Website login and sign up pg for new & Existing users created by using HTML, CSS

sir please assign me this issue

hey could you please assign it to me

Hey, can you assign this task to me, please?

hello sir,
@1dharode would you kindly assign me this issue

hello!!
This will be my very first contribution to hacktoberfest. I know an this and would love to code this. Kindly assign me this and help me in beginning my journey.

Hello there !please assign me this work.I will do my best.#hactoberfest2022

kindly assign me this issue.

Hello sir, please assign this issue to me as i already worked on this kind of project in past and has a great experience.

i would like to give it a try,plz assign me

Hey !can you please assign me this issue.

sir,may i work with this issue,can you assign to me


Missing tabs

New tabs need to be added for every type of data

Added match tab, should be enough for now


remove duplicate classes documentation

I simply merged the two descriptions...

Please check, if -compact is correct for the example.


Add Service Connector

Related to https://github.com/microsoft/vscode-azuretools/issues/1419
Also includes a utils update (needed for Service Connector) and some changes to fix errors that came with the update.

Also includes a utils update (needed for Service Connector) and some changes to fix errors that came with the update.

If it's not too much work, it would be great to just split those out into a new PR. We will be able to merge that sooner than the service connector changes.

If it's not too much work, it would be great to just split those out into a new PR. We will be able to merge that sooner than the service connector changes.

Will do!

Looks good to go, just need to release the package

The previous commit includes hooking up the UI and some changes made in the tools package to make the UI work correctly. I am not totally sure if this is the best approach so any feedback would be great.


README is outdated

I recently stumbled upon packit's README and realized how outdated it is. I suggest dropping as much content as possible and pointing people to https://packit.dev/

@csomh suggested to look at how k8s organizes their README, so please get inspired how they do it (or even other popular projects) and slim down our README in a similar way
make sure that viewers of the document know where to go next, especially: contributors, present users, new users, people interested in CentOS Stream, people interested in source-git

Hey, I would like to help on this issue.
@TomasTomecek I looked at this project readme, but I'm not sure if you talked to this kind of readme setup.

@ChainYo That would be really nice if you can take a look!
I would maybe pick https://github.com/kubernetes/kubernetes as a better example, @TomasTomecek @csomh what do you think? Do we have some specific requirements?
My personal points:

Use our logo at the top of the README.
Short intro.
Link our documentation as much as possible.
Link our contribution guide.


Database: Merge all migrations into one schema

Having a stack of migrations is good during early development because if anything breaks it can be backed out or tested individually, but as the structure stabilizes we should dump out one schema to be based on going forward.

This was done when we re-imported from .net.


Code completion doesn't work when using function overloading

TypeScript Version:
1.8.0
Code
interface A {
    name: string;
    age: number;
}

interface AExtension {
    name?: string;
    age?: number;
}

interface B {
    key: string;
    value: boolean;
}

interface BExtension {
    key?: string;
    value?: boolean;
}

function extend(base: A, extension: AExtension);
function extend(base: B, extension: BExtension);
function extend<T>(base: T, extension: any) {

}

const b : B = { key: '...', value: true };

extend(b, { key: '' });

Expected behavior:
Code completion for second parameter of extend shows properties of BExtension.
Actual behavior:
Code completion for second parameter of extend shows properties of AExtension.

#6405 is extremely related, though I think it is easier to tackle than this.

the issue here is that we do not do partial overload resolution. ideally you would know that non of the signatures match, and that you are in the middle of typing the second argument, so you would remove this from the list of arguments and try to do a partial resolution on the first argument only. the second overload should be picked up at this point as it would be considered "better" than the first one if we only consider the first argument.
unfortunately this is not a small change, it will require some rewriting for some of the overload resolution logic, in the core of the type system.

I think that this is a related issue:
interface Converter {
	foo<T>(dataFunction: () => T|T[]): ArrayWrapper<T>;
	foo<T>(dataFunction: () => T): Wrapper<T>;
}

interface Wrapper<T> {
	bar(): Wrapper<T>;
	value(): T;
}

interface ArrayWrapper<T> extends Wrapper<T[]> {
	bar(): Wrapper<T[]>;
	bar(first: true): Wrapper<T>;
}

let converter: Converter;

converter.foo(() => 2).value().toPrecision();  // Property 'toPrecision' does not exist on type 'number[]'.
converter.foo(() => [2]).bar(true).value().toPrecision();
converter.foo(() => Math.random() > 0.5 ? [2]: 2).bar(true).value().toPrecision();

I've been trying without success to find some kind of declaration that satisfies all three cases.

Seems to work now

I have just used the React template from Vite. It uses Typescript 4.6.3.
I still can not get intellisense to work on props when using React.createEment.
It works properly if I use tsx, but I wanted to only use ts files.
Anyone still having this problem?


Develop

Merge in INF Fixes and Tests

Codecov Report

Merging #72 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   88.88%   88.92%   +0.03%
==========================================
  Files           7        7
  Lines         675      677       +2
  Branches      132      133       +1
==========================================
+ Hits          600      602       +2
  Misses         47       47
  Partials       28       28

Impacted Files
Coverage Δ

omniture/reports.py
91.12% <0%> (+0.14%)
: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 4f45ca6...91f62f9. Read the comment docs.


[doc] Loader include property needs a description

Hello all. Thanks for this great piece of software, first of all.
While browsing through webpack documentation, we found the following in module loaders config section:
test: A condition that must be met
...
include: A condition that must be met

Shouldn't include have a different (and more meaningful) description? As a matter of fact, we were trying to figure out the spec for that property and could not find any.
HTH

Right under the list there is a line describing what "condition" can be

A condition may be a RegExp (tested against absolute path), a string containing the absolute path, a function(absPath): bool, or an array of one of these combined with “and”.

Did you have anything other than that in mind?

Totally skipped that sentence, sorry about that. Without it, it seemed a kind of typo from copy & paste. Thanks for clarifying!

I agree, without the description it wouldn't be enough info :)


Allow installation on Nextcloud 14 (master branch)

The Nextcloud master branch is on version 14, and upon updating to it yesterday I noticed that it refused to enable the OnlyOffice app because the max-version was too low. I haven't noticed any issues with using the app on the nightly after force-installing it by making this change locally, so I'd like to propose this change in order to add compatibility with Nextcloud 14.

cc @LinneyS @alexandervnuchkov

Done
See https://github.com/ONLYOFFICE/onlyoffice-nextcloud


JavaScript variable not working - issue is due to using old syntax, see new syntax here

Hi Ken,
I am new to TagUI.
I try to test on JS script from the https://www.rpa-sg.org/TagUI-Tips-Techniques/how-to-get-current-date.php and the code as below:
js begin
function formatDate(date) {
var d = new Date(date),
mm = '' + (d.getMonth() + 1),
dd = '' + d.getDate(),
yy = d.getFullYear();
return [yy.toString().substr(2,2), (mm>9?'':'0')+mm, (dd>9?'':'0')+dd].join('-');
}
today = formatDate(new Date());
js finish
echo "today = "+today
After I run the tagUI, the result does not show the date variable [today], but instead it show "today = "+today
I also try the other reported solution/sample on variables declaration, but turn still the same. One Example below:
js test_number = 456
echo 'test_number - ' test_number
Result: 'test_number - ' test_number
Is my setup wrong? or any parameters need to configure?
Thank you.

Hi @TomAsl50 oh it's because TagUI syntax has changed since then (see below in GitHub home page)
https://github.com/kelaberetiv/TagUI#change-in-syntax-for-echo-dump-write-steps
For better consistency in TagUI steps, you don't need quotation marks now for echo step, and variables are denoted with backticks `` - see example below -
test_number = 456
echo test_number - `test_number`

It works now.
Thanks.


[ci] Update Chrome install script and version.

This brings the version of Chrome that we use for integration web tests in line with the one used by flutter/flutter and flutter/engine.
No Issue (that I could find); at first I thought this would help with a test that I'm writing for an unrelated issue, but then I thought that the improvements to the script might be interesting (we might want to rollback the chromium build_id to what was there before?)
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[ ] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[x] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

video player seems to be legitimately failing:
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following PlatformException was thrown running a test:
PlatformException(VideoError, Failed to load video: The requested
URL was not found on this server., null, null)

Transient server failure maybe? I really need to finish getting https://github.com/flutter/plugins/pull/4987 working to eliminate that URL.

Transient server failure maybe?

Looks like either a transient failure, or that we're getting throttled/rate limited. After a rerun, a different package failed (both tests use the same m3u8 URL, though!):
First:
The following packages had errors:
  video_player_avfoundation:

Then:
The following packages had errors:
  video_player/video_player:

I extracted the video_player part of that PR into https://github.com/flutter/plugins/pull/5103 since they are particular problematic (as demonstrated here).

Thanks for prioritizing that fix, I'll take a look!

That's landed, so hopefully merging main in will fix this test.

Looking much better in the current run (All ios test seem to have passed now). (Knock on wood.)

(No tests for this .sh file yet, I guess it could get migrated as a dart tool?)

(No tests for this .sh file yet, I guess it could get migrated as a dart tool?)

Potentially, but it's so simple that I tend to categorize it as "it is a test"; there's no way for it to fail without the tests that need it failing. (Unlike most of the repo tooling, where silently not failing when it should is a very real danger that's happened a bunch of times in the past.) We could potentially even teach the bot to ignore that specific file.

I tend to categorize it as "it is a test"; there's no way for it to fail without the tests that need it failing.

Yeah, that is a very good point!


Add the ability to get a case's history

Also adds support to get history from the links that are returned when listing, searching, or
showing cases.
http://dev.desk.com/API/cases/#history

Coverage remained the same at 100.0% when pulling 4f3ecc3871280f534163bca388290b18c33c6894 on scotwells:add-case-history into 828f4ee49acfe9bcc2d75c207b613a1015534f1a on bradfeehan:master.

Coverage remained the same at 100.0% when pulling a128350269014fec2000cffa3c58ac2b116f1475 on scotwells:add-case-history into 828f4ee49acfe9bcc2d75c207b613a1015534f1a on bradfeehan:master.


How to use in Web MVC

Hi..
How do I use this library for MVC web?
If I run it in the source code it can work, but if I run it from the client browser it won't work.
please help with the explanation.
Thanks

It won't work that way, you need to run it on the client


属性 -> property & 特性 -> attribute

https://github.com/vuejs/cn.vuejs.org/issues/895#issuecomment-483956784

Due to a long time and I already self-reviewed all of them. Here would like to merge first. Any further improvement could be fired by another PR or issue.
Thanks.


testing CI by making no-op change in BUILD.bazel

No-op change to test CI

change needs to be made on a branch with the jenkinsfile


Fix tutorial notebook

There was a casting error when using the numba_histogramdd function of the binning module that failed due to Numba's more stricted types.
This PR should close #44

Thanks. This seems to have fixed the issue.
It seems this PR has commits also given in #46. Is that purposeful?

Thanks. This seems to have fixed the issue.
It seems this PR has commits also given in #46. Is that purposeful?

Yep, I created this branch from #46 and not from main. My bad :(

Please merge this after #46. Thanks for the finding the fix!

Let's wait a couple of days more, just in case @steinnymir has anything to add ;)

Nothing to add! seems like the bug was fixed, so I'll merge this PR, after merging #46 as suggested.


feat(ci): add vuln checks and linter actions

this PR introduces two GitHub Actions:

govulncheck that verifies that no vulnerability has been introduced into the project
golangci-lint that enforces Go best practices regarding code development.

They will be run on each PR and on each push on the main branch.

Most of the vulnerabilities reported by Govulncheck will be patched if we upgrade cfcr to the latest Go version (1.21.0) which can be easily done in a second PR, I tried locally and everything compiles.

Go version upgrade to 1.21: https://github.com/govirtuo/cfcr/pull/12


interceptor

I need custom token function, do you have the concept of interceptor?
Similar to Java ：（Interceptor）（Filter）

Please ask questions like this in Slack (http://slackaqueductsignup.herokuapp.com/). See this documentation guide for a discussion on 'middleware' and controllers: http://aqueduct.io/docs/http/controller/


Generate constant for types without arguments

In my project I have a sealed class with an empty subtype that I use as default argument in a constructor. For that to work I need a static constant of that type, which I currently have to create myself as a top level field. This PR allows the writer to generate those constants as static const field inside the sealed class.
Edit: I've noticed that my first commit didn't produce correct Dart code, so I've fixed that in the second one. Unfortunately for that I needed to remove the factory method that was previously generated for such subtypes, which is a breaking change. If this isn't acceptable, this could be solved with an optional parameter on the @Sealed() annotation controlling the code generation. But before I go there, I'll wait for feedback if this is a welcome addition at all here first.
Excerpt of generated code:
abstract class Weather {
  static const Weather sunny = WeatherSunny();

  const factory Weather.rainy({required int rain}) = WeatherRainy;
}

Hi,
in the standard generated code,
we have:
abstract class Weather {
   const factory Weather.sunny() = WeatherSunny();

  const factory Weather.rainy({required int rain}) = WeatherRainy;
}

since we have constant factories,
so you can use:
void doSomething({Weather arg = const Weather.sunny()}) {}


Add relation names to group reference

This adds relation names to group reference as a field:
The reason for that is that getRelationNames will perform in some operator implementations calls down the subtree. e.g.:
https://github.com/crate/crate/blob/ce9db41296b91a1302da08feb7af3ae6902c3a65/server/src/main/java/io/crate/planner/operators/NestedLoopJoin.java#L119-L121
or
https://github.com/crate/crate/blob/ce9db41296b91a1302da08feb7af3ae6902c3a65/server/src/main/java/io/crate/planner/operators/Union.java#L195-L197
To make that work correctly could store the relation names in the group reference.
Summary of the changes / Why this improves CrateDB
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

I put this back to draft. This needs some more exploration and testing.


java

Please add the file to folder named Java, and add proper comments.
do not raise a PR from root folder


[bug] test failure on 32-bit arches

heed was packaged for Debian; its testsuite fails on 32-bit arches:
470s running 20 tests
470s test env::tests::open_already_existing_database ... ok
470s test env::tests::open_database_with_writemap_flag ... ok
470s test env::tests::create_database_without_commit ... ok
470s test mdb::lmdb_error::test::test_description ... ok
470s test iterator::tests::rev_range_iter_last ... ok
470s test tests::error_is_send_sync ... ok
470s test env::tests::open_env_with_named_path ... ok
470s test iterator::tests::range_iter_last_with_byte_255 ... ok
470s test iterator::tests::iter_last ... ok
470s test env::tests::open_database_with_nosubdir ... ok
470s test env::tests::resize_database ... ok
470s test iterator::tests::rev_prefix_iter_last ... ok
470s test iterator::tests::prefix_iter_last_with_byte_255 ... ok
470s test iterator::tests::range_iter_last ... ok
470s test iterator::tests::rev_prefix_iter_last_with_byte_255 ... ok
470s test iterator::tests::prefix_iter_last ... ok
470s test env::tests::reopen_env_with_different_options_is_err ... ok
470s test iterator::tests::rev_range_iter_last_with_byte_255 ... ok
470s test env::tests::open_read_only_without_no_env_opened_before ... FAILED
471s test env::tests::close_env ... ok
471s
471s failures:
471s
471s ---- env::tests::open_read_only_without_no_env_opened_before stdout ----
471s thread 'env::tests::open_read_only_without_no_env_opened_before' panicked at src/env.rs:1030:27:
471s attempt to multiply with overflow
471s stack backtrace:
471s    0: rust_begin_unwind
471s              at /usr/src/rustc-1.80.1/library/std/src/panicking.rs:652:5
471s    1: core::panicking::panic_fmt
471s              at /usr/src/rustc-1.80.1/library/core/src/panicking.rs:72:14
471s    2: core::panicking::panic_const::panic_const_mul_overflow
471s              at /usr/src/rustc-1.80.1/library/core/src/panicking.rs:179:21
471s    3: heed::env::tests::open_read_only_without_no_env_opened_before
471s              at ./src/env.rs:1030:27
471s    4: heed::env::tests::open_read_only_without_no_env_opened_before::{{closure}}
471s              at ./src/env.rs:1023:53
471s    5: core::ops::function::FnOnce::call_once
471s              at /usr/src/rustc-1.80.1/library/core/src/ops/function.rs:250:5
471s    6: core::ops::function::FnOnce::call_once
471s              at /usr/src/rustc-1.80.1/library/core/src/ops/function.rs:250:5
471s note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
471s
471s
471s failures:
471s     env::tests::open_read_only_without_no_env_opened_before
471s
471s test result: FAILED. 19 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.01s

Looks like this test exceeds the limit on those arches causing it to overflow.

I just noticed a mismatch between the comment and actual code on the crashing line: the comment says "10MB", but the actual value is "10GB"; if the comment is right, reflecting it in the code would solve this issue as 10M doesn't overflow on 32-bit systems.

Hey @a-wai 👋
Thank you for the report. I wonder if it is possible on the GitHub CI to run stuff on a 32-bit platform or at least run them like they are running on a 32-bit platform. Would you mind doing a PR to either fix the value to put less than 4GiB (instead of 16GiB) and/or adding a CI pass to run the tests as 32-bit, please?
Have a nice one 🌻

Hi @Kerollmops !
I'm not familiar with GitHub CI, so I doubt I can do anything here; the idea being basically to execute the job(s) in a 32-bit container (such as i386/debian), which will therefore behave like a 32-bit machine, even when running on a 64-bit host.
I'll come up with a patch for the code part of it asap anyway.


Add static analysis to CI

Add the static analysis tools cppcheck and coverity to be run by Travis-ci. The ecdaa project is an example of how to do this
Adding valgrind as well may be useful

This is a repeat of #46. Sorry.
closing


[Previous session] Redirect bug

DID
Start at /home. Navigate to "previous session" by pressing that button.
Then press back arrow.
HAPPENS
User is transported to /source.
EXPECTED
Go back to the previous page, i.e. /home

Hmm oklart om det är en bug och mer att det kanske bör finnas knapp för att återvända hem. När man går genom stegen bör < ta en till steget innan tänker jag

It depends, if it is desireable to go to previous page only then we have to change returnACB in filterView to navigate(-1) which I think had a bug when we tested it last time.

yeah, navigate(-1) always leads you back to the previous page, regardless if it was on the site or not 😅 I could add a home button to layoutView!

Home redirect is an excellent addition. However, the back button from /genre should not lead to /source if we have continued from a precious session in my opinion as it caused great confusion during testing. Is there a problem with using navigate(-1) in that particular case?

Fixed with an alternative solution. Additional button navigating from source --> home


feat(cell): add token bucket cell

After I modify the initial token count of the token bucket to be full, I'm not sure how to judge whether the integration test is successful or not. Since the first several packets will always be sent immediately, when I ping with fixed interval, the remaining packets will experience gradually increasing delay (or the delay will always be zero if the interval is large enough). Should I check their delays one by one or calculate an average delay or an average rate to judge the result of interation test? Or in some other ways? @BobAnkh

@BobAnkh I have finished modifying my code. Please review :)

There is one last problem: the crate humansize does not provide deserialization. I searched for many crates, and it seems that bytesize, parse_size or size can work. But I can't use any of them to parse my TOML file in the same way as in Bandwidth.

@BobAnkh It seems that human-bandwidth::serde can not deal with the case where bandwidth is None. This causes an error when the peakrate is not set in my configuration file.
I deleted the bandwidth key in the example Bandwidth cell in config.example.toml, and when I run rattan, there is an error:
rattan: Config error: missing field `bandwidth` for key "default.cells.up_1" in config.example.toml TOML file

@EwecaBcD This is intended. For a field of Option<Bandwidth>, you should use human-bandwidth::option. See docs.rs or src

@BobAnkh I pushed my newest code :)

@BobAnkh

@EwecaBcD, I have reviewed your code. Most of the changes are fine, so I made minor revisions to simplify it. Please check again to ensure it is correct.

@EwecaBcD, I have reviewed your code. Most of the changes are fine, so I made minor revisions to simplify it by myself. Please check again to ensure it is correct.

I think there is no problem. @BobAnkh


多表头表格，宽度列设置偏差

Version
1.6.0
Environment
Windows
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-g6qb8x
Steps to reproduce
双重表格，设置最后一个th宽度
What is expected?
设置成功
What is actually happening?
宽度设置有误
Other?

https://stackblitz.com/edit/ng-zorro-antd-start-h1oz9q?file=src/app/app.component.html

@vthinkxie The last column width is not my except.

You are not calc the colspan for build colgroup with width.


Add RHEL/CentOS 7 and 8 compatibility

When running on a RHEL 7 or 8 server, we get this error message:
message":"Incorrect JSON type for the field 'disks', please refer to the documentation. Details: Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries

It probably has to do with the way we populate the $json variable:
json="{
\"recoverMode\": \"New\",
\"computeResourceMoref\": \"$clusterComputeResourceMoref\",
    \"datacenterMoref\": \"$datacenterMoref\" ,
\"datastoreMoref\": \"$recoverdatastore\",
\"vCenterHostname\": \"$vcenterserver\",
\"hostMoref\": \"$hostMoref\",
\"vmFolderMoref\": \"$vmFolderMoref\",
\"vmName\": \"$vmName\",
\"jobName\": \"$jobName\",
\"powerOn\": \"$powerOn\",
\"disks\": $disks,
    \"reconnectNic\": \"$reconnectNic\"
}"

In the REST API log:
Incorrect JSON type for the field 'disks', please refer to the documentation. Details: Unexpected character ('"' (code 34)): was expecting comma to separate Object entries

I the code snippet it states the $disks variable as the only one that does appear to have been put between escaped double quotes, like the other variables?
"disks": $disks,

@bartoque it's not the problem but thanks for motivating me to put some efforts on this. I decided to use a json validator on the resulting json on RHEL7. Well, it showed me an error:
Error: Parse error on line 14:
... 		"key": "2000" 		"name": "Hard disk 1
----------------------^
Expecting 'EOF', '}', ':', ',', ']', got 'STRING'

Found that I was missing a comma after the "2000".
After adding the missing comma, I got this error:
Error: Parse error on line 15:
... "Hard disk 1", 	}], 	"reconnectNic"
--------------------^
Expecting 'STRING', got '}'

Then I fixed the second error to find out that the order of the values in the disk array in the json is not the same and only the last element of the array doesn't need a comma at the end.

The problem is mostly in this part of the code:
curl -ks --location --request GET 'https://'$server':9090/nwrestapi/v3/global/vmware/vcenters/'$vcenterserver'/protectedvms/'$uuid'/backups/'$backupid'' \
 --header 'Authorization: Basic '$auth'' | jq -r '[.vmInformation.disks[]]' | egrep -v '(thinProvisioned|sizeInKb|datastoreName)' | sed -r 's/datastore-.*/'$recoverdatastore'"/g')

I guess that jq doesn't have the same behaviour in this version. RHEL 7's jq version is 1.5, while it is 1.3 on RHEL 6. It's also 1.5 on RHEL 8.
Raw output of the disk array on RHEL 6:
[
  {
    "thinProvisioned": false,
    "sizeInKb": 104857600,
    "name": "Hard disk 1",
    "key": "2000",
    "datastoreName": "drlocalssds",
    "datastoreMoref": "datastore-132962"
  }
]

On RHEL7:
[
  {
    "datastoreMoref": "datastore-132962",
    "datastoreName": "drlocalssds",
    "key": "2000",
    "name": "Hard disk 1",
    "sizeInKb": 104857600,
    "thinProvisioned": false
  }
]

Well , it looks that jq makes alphabetical sort, but the order changed from version 1.3 to 1.5. It was a reverse order in 1.5, and it's now regular a-z in 1.5.

Fixed by commit acb8fa9


Improve User Interface

Describe the bug
As per me the current website does not have a better UI theming like random color is used anywhere and also it's look a very weird combination
To Reproduce
Expected behavior
I think we should improve the UI and add particular theme s
Screenshots
If applicable, add screenshots to help explain your problem.

As you can see here the border of input box  then filter category and more like this looks so weird
Additional context
Add any other context about the problem here.
Note:

Do mention if your are working under GSSoC'21.
If you want to work on an issue, you should check if it has already been assigned to anyone. If the issue is free you can comment /assign to get the issue assigned to you.
If you are raising a new issue and want to work on it then also you should comment /assign under the issue to get it auto assigned.
Please refrain from adding labels to your issue/pull-request on your own. It is the job of the Project Admin and the Mentors to review your issue/pull-request and add labels accordingly.
According to the level of the issue, respective time will be allotted under which the task needs to be completed/resolved by the assigned person. If the issue is not resolved within the given time, it will be assigned to the next person. In case of any discrepancies, the decision of the maintainer will be final.

level - 0: 2 days
level - 1: 3 days
level - 2: 4 days
level - 3: 5 days

/assign


method links broken

If I go to this page:
https://docs.rs/tinyjson/latest/tinyjson/struct.JsonParser.html
I see a method on the left called parse, but if I click it, it doesn't do anything:
https://docs.rs/tinyjson/latest/tinyjson/struct.JsonParser.html#method.parse

For some reason the implementation block was unexpanded by default. I've rebuilt the docs and it seems to be fixed, so probably some old rustdoc bug.


IDatabaseValueConverter.cs → IPropertyTypeConverter, implement in DatabaseTarget, TargetWithContext & MethodCallTargetBase

Replaced DatabaseTarget.ParameterValueConverter with ConfigurationItemFactory.ParameterTypeConverter
Instead of doing conversion based on DbType then conversion is done by ParameterType and Format. This adds control for type conversion when using SqlDbType (or others) when also using ParameterType.
This PR pretty much converts DbType into System.Type and does conversion based on that instead (Allowing one to override the automatic conversion by using ParameterType).

What conversions are you thinking about?

ConvertToBinary? That one is removed, isn't?

Could you please tell me what code/logic is functional removed/changes? That's a bit difficult to find in the diff. Thanks!

Yes but that also said incomplete, and how many examples do you have with binary data?
Sent from my Sony Xperia
---- Julian Verdurmen wrote ----
What conversions are you thinking about?
ConvertToBinary? That one is removed, isn't?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/pull/3091#issuecomment-459787927, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnIXJW2FylSauzIuAdOfHij2jQtinks5vJG_pgaJpZM4aToug.

(PS this is the last one for NLog 4.6 (rc) I guess :) )

Instead of doing conversion based on DbType then conversion is done by ParameterType and Format. This adds control for type conversion when using SqlDbType (or others) when also using ParameterType.
It pretty much converts DbType into System.Typehttp://System.Type and does conversion based on that instead
Sent from my Sony Xperia
---- Julian Verdurmen wrote ----
Could you please tell me what code/logic is functional removed/changes? That's a bit difficult to find in the diff. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/pull/3091#issuecomment-459788733, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnN9Mw8Q3GyqnQYdTeeYjlL6P3Z5-ks5vJHBxgaJpZM4aToug.

Yes planning to this the last PR. Might want to add parameter batchsize to db target (reuse the same db-cmd-object by just updating the values) instead of creating new db-cmd for every logevent
Sent from my Sony Xperia
---- Julian Verdurmen wrote ----
(PS this is the last one for NLog 4.6 (rc) I guess :) )
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/pull/3091#issuecomment-459789487, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnBWdoPFjl9Xoagxn0M23t4jDf2MEks5vJHEHgaJpZM4aToug.

@304NotModified Btw. going on winter-holiday for 2 weeks, so there will be a pause in committing changes from my side.

Have a great holiday @snakefoot !

Thank you. Hope we can get this last PR in, so we can get NLog 4.6 out soon. But now you have good time to review :)
Sent from my Sony Xperia
---- Julian Verdurmen wrote ----
Have a great holiday @snakefoothttps://github.com/snakefoot !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/pull/3091#issuecomment-460548332, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnEkiLNA1-fz4yex2vGkQ7vkx9hFPks5vKT0zgaJpZM4aToug.

merged :)

Amazing. The milestone is very close now :)


Metadata icon dosen't work and causes errors

Discussed in https://github.com/importantimport/urara/discussions/26

Originally posted by gaelgoth July 31, 2022
Hello,
I used your stunning template since yesterday. I'm a bit new with Svelte and I can not do this simple task which adding icons with the link under the bio.
Here is what I did from a fresh template:

 pnpm add @iconify-json/simple-icons
Edit src/lib/config/site.ts and add the following metadata:

...
metadata: [
      {
        text: 'gaelgoth',
        icon: 'i-simple-icons-github;',
        link: 'https://github.com/gaelgoth'
      },
    ]
  },

Then I got this error:
Transform failed with 1 error:
/home/gael/workspace/urara-blog/src/lib/config/site.ts:34:22: ERROR: Expected ";" but found "{"

It works when I edit the CCS class in index_profile.svelte
Do you have hint to fix this error ?
Thanks, Gaël

It looks like this error is only present in svelte-scoped mode, remove this paragraph and it will work fine.
UnoCSS({
-  mode: 'svelte-scoped',
  include: [/\.svelte$/, /\.md?$/, /\.ts$/],
  ...
})


Advanced Security - Update codeql reference config

This pull request primarily focuses on updating the documentation file configure-github-advanced-security-features.md to provide more detailed instructions and information regarding the use of CodeQL for security analysis. The changes include the removal of certain variables, clarification on the autobuild step, and an update on the status of CodeQL analysis for Kotlin and Swift.
Changes to the variables: section:

docs/repos/security/configure-github-advanced-security-features.md: Removed variables related to advanced security and CodeQL extractor as they are no longer needed by the tasks or CodeQL cli tooling.

Changes to the autobuilder steps: section:

docs/repos/security/configure-github-advanced-security-features.md: Clarified the situations where the autobuild step might not execute successfully and provided more detailed instructions on how to resolve these issues. This includes providing credentials to package managers, configuring the build environment/dependencies, ensuring all code to be scanned is compiled, disabling the use of build caching mechanisms, and disabling the use of distributed/multithreaded/incremental builds.

Updates on CodeQL analysis status:

docs/repos/security/configure-github-advanced-security-features.md: Updated the information about CodeQL analysis for Kotlin and Swift, stating that they are currently in beta and their analysis will be less comprehensive than other languages.

#sign-off


No media folder found

The media folder is missing so there is no mesh or texture to run with.

Hi Kai, Unfortunately I have left Intel over 6 months ago, so have no access to the content. But you can try getting the contents from Andrew's work and try it with that. That should work. Refer to his own licencing
requirements for the content.
https://software.intel.com/en-us/articles/deferred-rendering-for-current-and-future-rendering-pipelines

If you copy the media folder up to the parent folder it will work.   Hope this helps!

the media directory needs to be in the working directory when you run the executable. When running from visual studio, the working directory is the project directory, and the media directory is in the project directory. to run outside of visual studio, either call the executable from the project directory, or, as Stephanie said, move the files so that the media directory is in your working directory.


Errors in time series

The software seems to be unable to run wavelet transformations on time series.   All the examples in the manual reference short arrays of just a few numbers.   The time series I am working with run to about 9,500 to 11,500 observations.   The major problem is that Python always responds with an error message that is flagrantly incorrect.   I uploaded the data, and converted from string to integer format.   Testing the data repeatedly shows that it is in integer or float format, not in string format.   However, every time I run a wavelet command, Python responds:
ValueError: could not convert string to float: 'V1'
For example, the input line is:
pywt.cwt('V1', 1, 'db2')    where V1 is a time series in integer format.   Python always responds:
ValueError: could not convert string to float: 'V1'
So I tried including the dataframe:
pywt.cwt(VBase['V1'], 1, 'db2')
Python responds with an equally incomprehensible error message:
AttributeError: 'pywt._extensions._pywt.Wavelet' object has no attribute 'complex_cwt'
Does anyone have some sample code which can be used to calculate wavelet decompositions for time series?

Glenn

Hi @GlennCloser
The first case where you are passing a string 'V1' as the input will not work. You need to specify an array (or array-like object such as a list). There will should not be a problem processing much larger timeseries with thousands to millions of samples.
It looks like you did pass an array for the first input in your second call. The error there is that the wavelet name you specified is only available for discrete transforms (this is why it is missing the complex_cwt attribute that the error message mentions). For the function cwt, you have to use one of the continuous wavelets defined at:
https://pywavelets.readthedocs.io/en/latest/ref/cwt.html#continuous-wavelet-families
If you want to do discrete wavelet decomposition with 'db2' you should look at the functions wavedec or swt, which perform discrete wavelet transforms. In the case of swt this is done without downsampling so that the transform is shift-invariant.
Aside from the minimal examples in the docstrings, there are some examples of usage available in the scripts located at:
https://github.com/PyWavelets/pywt/tree/master/demo

Actually, on second thought, perhaps the cwt function is intended to allow also calling it with any of the discrete wavelets as well. At least the following line seems to indicate this is the case:
https://github.com/PyWavelets/pywt/blob/fa2eee11c856d5a9eb5497012e481b4882c2c150/pywt/_cwt.py#L73
In that case we just need to make a one line change at:
https://github.com/PyWavelets/pywt/blob/fa2eee11c856d5a9eb5497012e481b4882c2c150/pywt/_cwt.py#L78
to be
if isinstance(wavelet, ContinuousWavelet) and wavelet.complex_cwt:

I am not sure if there are cases where these discrete wavelets are preferable to the various continuous ones when running a CWT, though?

First, thank you for the advice.   I was able to convert the data to an array format, and run the
decomposition.   The following code ran perfectly.
w = pywt.Wavelet('db2')
(a, d) = pywt.dwt(VBase['VTSI2'], wavelet=w, mode='smooth')
print (a)
print (d)
print(pywt.idwt(a, d, 'db2', 'smooth'))
Two questions.  First, how would I export the coefficient arrays a and d to Excel, or CSV?  Similarly, how would I export the reconstructed series to CSV?
More importantly, I tried something a multilevel decomposition, which is right out of page 68 in the manual:
(a, b, c, d) = pywt.dwt(VBase['VDEV2'], 'db4', 'smooth')
The system returned the following error:
ValueError: not enough values to unpack (expected 4, got 2)
What is the problem here?  I set up four coefficient arrays, just as in the manual.  Why is the system responding that it got 2?

Actually, the question above is too specific.   The number of components in the time series I am analyzing is on the order of 6-7, including low, intermediate and high frequency.   Fourier waves don't work because the impulses are discontinuous.   In effect, what I need to do is decompose this data set into about 6 components.   The code in the manual seems based on the idea of two components, high and low frequency.   Can anyone provide some simple code to create six rather than two coefficient arrays?

Two questions. First, how would I export the coefficient arrays a and d to Excel, or CSV? Similarly, how would I export the reconstructed series to CSV?

To write to Excel or CSV, I would recommend using Pandas. Store your arrays in a Pandas DataFrame and then use the to_excel or to_csv method: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_excel.html
There is also a csv module in Python's standard library, but I think the Pandas approach should be easier.
If you just want to write a single array to CSV you could also use NumPy's savetxt, setting `delimiter=','.:

More importantly, I tried something a multilevel decomposition, which is right out of page 68 in the manual:
(a, b, c, d) = pywt.dwt(VBase['VDEV2'], 'db4', 'smooth')

Do you have a link to where you are seeing this notation? If that exact form is in the documentation, it should be fixed.
There should always only be two arrays returned by dwt. You would get four arrays if you ran a three level transform via wavedec:
(cA3, cD3, cD2, cD1) = pywt.wavedec(VBase['VDEV2'], 'db4', mode='smooth', level=3)

In effect, what I need to do is decompose this data set into about 6 components. The code in the manual seems based on the idea of two components, high and low frequency. Can anyone provide some simple code to create six rather than two coefficient arrays?

You can do this with pywt.swt or pywt.wavedec with level=5 to get 1 approximation and 5 detail coefficient arrays. Each subsequent level divides the lowpass band from the previous level in two.
You might also consider looking at pywt.WaveletPacket class which can be used to filter both the low and highpass bands at each level, creating a finer frequency division. It is a little more complicated to work with than the swt or wavedec functions, though.
Another transform that might possibly be of interest is the short time Fourier transform (stft) which is available in SciPy:

The questions were answered, and the manual in question is not our docs - I'll close this issue.


Customizable trailing slash behaviour

Describe the bug
Currently the router always adds a trailing slash to the basepath.
So if you are at mysite.com/page/one with basepath: '/page/one' and you try to use navigate to update the search params then you end up at mysite.com/page/one/?param=value
Same thing applies if you have no basepath set, so mysite.com would become mysite.com/?param=value
Your Example Website or App
https://stackblitz.com/edit/github-kf59by?file=src/main.tsx
Steps to Reproduce the Bug or Issue
In the example above, just load the page (in a new tab so you can see the query string) and take a look at the address bar.
Expected behavior
I'd expect to be able to specify not add the slash, so that you would end up at mysite.com/page/one?param=value
Screenshots or Videos
No response
Platform
All platforms
Additional context
Opening this issue at @tannerlinsley's request. Related discord thread here: https://discord.com/channels/719702312431386674/1052911561032880148

can you update your project and retry if the issue has been solved please?

At the very least, trailing slashes are not the default any more, so there's that. However, there still isn't an option to force trailing slashes. I'm content with that for now since they are mostly (in my opinion) useless. I'm sure someone will eventually ask for that option enough that I'll add it, but not until then.

Hey @tannerlinsley!
We'd love to see this as an option, we have a huge site (100's Millions of pages) which all the a trailing slash on them, as this was previously enforced. We'd like to move to tanstack router, however we dont want to go through the whole SEO process of needing to redirect all the old pages moping up all the issues that causes along the way. Woudl it be possible to make this a controllable option?

We've moved this comments into a new discussion https://github.com/TanStack/router/discussions/1469


Binarycaching + VCPKG_APPLOCAL_DEPS does not replace libraries properly

Describe the bug
I have 2 Versions (A, B) of vcpkg dependencies cached in Nuget using binarycaching. When checking out a branch which swaps from Version A to B, the DLLs copied by VCPKG_APPLOCAL_DEPS are replaced properly. When swapping from B to A they are not.
Environment

OS: Windows

Expected behavior
The current DLLs in the vcpkg_installed folder are always correctly deployed even when changing binary-cached versions.
Analysis
The script resposible for copying the DLLs on Windows is applocal.ps1. The Bug lies within the used timestamp:
# applocal.ps1
$sourceModTime = (Get-Item $sourceBinaryFilePath).LastWriteTime
            $destModTime = (Get-Item $targetBinaryFilePath).LastWriteTime
            if ($destModTime -lt $sourceModTime) {
                Write-Verbose "  ${targetBinaryName}: Updating from $sourceBinaryFilePath"
                Copy-Item $sourceBinaryFilePath $targetBinaryDir
            } else {
                Write-Verbose "  ${targetBinaryName}: already present"
            }

As we can see it uses LastWriteTime of the file to determine if the file is already present. Since the files are built and then stored in Nuget the LastWriteTime field does not change once stored in Nuget. In other words it describes the build time of the dependency and does not change when downloaded and unpacked from Nuget. This leads to the older build versions to never be copied if a newer version was present.
To fix this one could take CreationTime into account since it will be set to the date where the files was copied from Nuget to the vcpkg_installed folder, which would resolve this use-case. There are probably other use-cases that need to be considered.
Additional Information
Posted now as a bug since I figured out why it happens. https://github.com/microsoft/vcpkg/discussions/22886
Thanks for an awesome C++ dependency tool :)

@ras0219-msft Can you please take a look?

Ping @JavierMatosD


/switch improvements

improvements for the switch construction site view
create construction site:

[x] allow a new construction site to be created

enhance construction site view:

[ ] replace masonry with something more stable
[ ] properly handle add / remove of self in construction site managers list

moved to trello except the bug #277


RFC: Set filetype of the result buffer

Hi I have this setting with Packer to use https://hurl.dev
{
    'arjunmahishi/flow.nvim',
    config = function()

      require('flow').setup({
        output = {
          buffer = true,
          split_cmd = '20split',
        },
        filetype_cmd_map = {
          hurl = "echo %s | hurl | jq",
        }
      })

    end,
}

It works great

However as you can see my result (which is a valid JSON) has no highlight
I have to manually run set ft=json

I could create an auto_cmd to detect something in the result buffer, but it is a [No Name] and I don't know how to detect it.
What is the feature I am missing?
Option 1
output = {
    ...,
    post_loading_cmd="set ft=json",
    post_loading_callback = function() vim.api.do_something() end
}

Option 2
autocmd( {"BufEnter"},
    pattern="flow_result_buffer"  -- Does it exist?
)

Option 3 - Per command (the best scenario)
 filetype_cmd_map = {
          hurl = {
               "echo %s | hurl | jq",
               buffer=true,
               split_cmd="20split",
               buffer_name="result",
               buffer_ft="json",
               post_cmd="do something in the new buffer"
        }

Hey @rochacbruno, Thanks for reaching out!
I like the idea of supporting syntax highlighting in the output buffer. This would make a great feature
But I am not sure if coupling the current file type with the output buffer's file type is a good Idea (hurl = json). Because commands can potentially result in any output format.
I was just checking out the unix command file. Looks like this can be used to infer the file type based on the output content. This could be useful.
Example

If inferring the file type is not the preferred way, then there could also be an option to override the inferred file type (like in your option 3)


[SPARK-44786][SQL][CONNECT] Convert common Spark exceptions

What changes were proposed in this pull request?

Convert common Spark exceptions
Extend common Spark exceptions to support single message parameter constructor

Why are the changes needed?

Achieve similar exception conversion coverage as Python Client

Does this PR introduce any user-facing change?

No
How was this patch tested?

Existing tests

Merged to master and branch-3.5.


non-legacy namespace package

The current legacy approach to namespace packaging does not work with development/editable installation. See OCR-D/ocrd_all#433
This PR fixes it for this package – analogous PRs to the other qurator repos will follow.

@bertsky
This pr fails with the following error for stand-alone eynollah:
   from qurator.eynollah.cli import main
  ModuleNotFoundError: No module named 'qurator'

Indeed. I thought I had tested thoroughly. For the moment I'm puzzled.

The strangest thing of all is that these imports actually do work, but not in the entrypoint:
>>> from qurator.eynollah.cli import main
>>> main
<Command main>

python -c "from qurator.eynollah.cli import main; main()" --help

Usage: -c [OPTIONS]

Options:
  -i, --image FILE                image filename
  -o, --out DIRECTORY             directory to write output xml data
                                  [required]
  -di, --dir_in DIRECTORY         directory of images
...

ah, found it – will need to update the other PRs as well ...

I just tried afresh (new clone, new venv) from main.
With pip install -e . && python -c "import qurator.eynollah" it works.
With pip uninstall eynollah && pip install . && python -c "import qurator.eynollah" it also works.

eynollah still fails to find the qurator module

Perhaps you have some of the other packages in qurator namespace installed without merging my PR so you end up with a mix of old and new style namespace packages again?

Yes you are right. With pip install -e . works. Thank you.


Fix str to byte concatenation in Python 3

Fixes error TypeError: can't concat bytes to str when .mvts are generated with TileStache run with Python3.x

Closing so that I can keep updating my master without updating this PR. Will recreate with a branch


Add Redux DevTools enhancer to the store

https://github.com/brainlessdeveloper/hackernews-ui/pull/4


TableView is not updated when window == nil

The commit 2100c83e9b4fe6675a7ca3c50a5e6bf5f1923b7b introduced a bug in our app.
We have a view controller with a table view and, on top of it, we present a search controller that inserts elements that are captured by the view controller beneath it.
The issue happens because when the table view's window is nil reloadData is called without updating the models storage.
I was able to make it work properly using this code inside the do-catch block, however it's not tested:
let differences = try differencesForSectionedView(initialSections: oldSections, finalSections: newSections)

for difference in differences {
    dataSource.setSections(difference.finalSections)

    // if view is not in view hierarchy, performing batch updates will crash the app
    if tableView.window != nil {
        tableView.performBatchUpdates(difference, animationConfiguration: self.animationConfiguration)
    }
}

if tableView.window == nil {
    tableView.reloadData()
}

If this could be confirmed as an issue, I can work on a pull request to fix this. I believe the issue can be easily reproduced, and consequently tested, by using a table view that's not added to any views, but don't take my word on this.

Hi @fjcaetano
Seems like you issue should've been solved with #84 too. As I mentioned in the comment we don't get the change even with cocoapods installing 1.0.2.
I added the changes manually to the file and it works for us. It's unclear for me why cocoapods installs 1.0.2 without containing the changes.

Yes, my bad, this is a duplicate of that issue and it seems to have been fixed on the latest commits. What you said won't work, because Cocoapods will fetch the tag 1.0.2 and the commit was done later so, you can either tell in your Podfile, for Cocoapods to look at the fix commit specifically or wait for an update to be released.
pod 'RxDataSources', :git => 'https://github.com/RxSwiftCommunity/RxDataSources.git', :commit => '17fdc86fded785891f1d47be0261ec099e4e73ab' # Remove this when a version higher than 1.0.2 is released

This actually is in our Podfile

Ah, makes sense. Didn't notice that the commit was after the version and it didn't came to my mind as the 1.0.2 release notes points to have fixed exactly this issue. Thanks for the clarification.
On 5 Feb 2017, 7:32 PM +0100, Flávio Caetano<EMAIL_ADDRESS>wrote:

Yes, my bad, this is a duplicate of that issue and it seems to have been fixed on the latest commits. What you said won't work, because Cocoapods will fetch the tag 1.0.2 and the commit was done later so, you can either tell in your Podfile, for Cocoapods to look at the fix commit specifically or wait for an update to be released.
pod 'RxDataSources', :git => 'https://github.com/RxSwiftCommunity/RxDataSources.git', :commit => '17fdc86fded785891f1d47be0261ec099e4e73ab' # Remove this when a version higher than 1.0.2 is released
This actually is in our Podfile
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (https://github.com/RxSwiftCommunity/RxDataSources/issues/94#issuecomment-277538711), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAzrGVhYdfJRXYosoO15dsIf-KrAZ8hwks5rZhWkgaJpZM4L2u7k).