Got an error when browser is opened to long

Hi at all,
When I am logged in in my camunda web app and I am not closing the browser for a longer time, then I get a 503 error.
I looked in the logs and it seems that the token is expired. To get rid of the error I need to restart the browser or open an incognito window. It seems that the token is stored in the browser cache.
Is there a way to get rid of this error?
Do you know some more details on this error?
Thanks a lot for your help :)

This is a duplicate to #45. Which can be fixed by an appropriate configuration.


Kubeless support

Support for serverless Apps running on Kubeless
Kubeless support

added upstream/upkubeless which implements upstream and provisioning for Kubeless
added upstream/serverless.go to transform between http and serverless requests
added /apps install kubeless command
BREAKING appsctl provision app is now appsctl [aws|kubeless] provision
added appsctl kubeless provision|test commands
added examples/js/hello-kubeless. Note: go apps are not presently supported on Kubeless since it only provides go1.14 runtime out of the box, and ...-plugin-apps requires 1.16

Other

Moved PluginID from App to Manifest
Upstreams are now cached and are App-independent
Slightly refactored service initialization and configuration for store, proxy mostly to support the changes in upstream.Upstream

Codecov Report

Merging #222 (fad8b59) into master (cd10c76) will decrease coverage by 0.50%.
The diff coverage is 17.48%.

@@            Coverage Diff             @@
##           master     #222      +/-   ##
==========================================
- Coverage   22.62%   22.11%   -0.51%
==========================================
  Files          51       51
  Lines        2953     3075     +122
==========================================
+ Hits          668      680      +12
- Misses       2228     2331     +103
- Partials       57       64       +7

Impacted Files
Coverage Δ

apps/manifest.go
56.00% <0.00%> (-26.36%)
:arrow_down:

server/httpin/restapi/app.go
0.00% <0.00%> (ø)

server/proxy/enable.go
4.47% <0.00%> (-0.21%)
:arrow_down:

server/proxy/install.go
0.00% <0.00%> (ø)

server/proxy/service.go
0.00% <0.00%> (ø)

server/proxy/synchronize.go
0.00% <0.00%> (ø)

server/proxy/uninstall.go
0.00% <0.00%> (ø)

upstream/upaws/clean.go
0.00% <0.00%> (ø)

upstream/upaws/client.go
0.00% <0.00%> (ø)

upstream/upaws/client_lambda.go
22.95% <0.00%> (ø)

... and 16 more

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 cd10c76...fad8b59. Read the comment docs.

Gentle ping to review this PR: @mickmister , @larkox , @hanzei .

@DHaussermann the initialization should be working now


find_spec() should use sys.path

Currently, if no path is given, find_spec() uses the cwd.
It should use sys.path.

@astronouth7303 fixed and released.


chore: upgrade node + pnpm versions

What does this do?
remove warning on the ci + pnpm support
Who/what does this impact?
NA
How did you test this?
CI

fix #332 #333


remove a shrink

allow the user to remove a shrink with an option -remove

Hey @marcos-venicius, the project is looking interesting to me. Can I contribute?

Hey @marcos-venicius, the project is looking interesting to me. Can I contribute?

yes, you can!!
feel free to make contributions.
pull requests, create new issues.


Recorded volume is far too low

Recordings are extremely low volume.
Is there any way to adjust the gain?

I am also experiencing this issue. I am not seeing a way to control this, any help with this would be appreciated. Thanks!

Weird thing is on iPad it's ok, but on desktop windows/android I can barely hear it. Mic settings seem the same.
Not sure what is going on.

Any clues on this?

I'd check your mic settings. I've done extensive debugging and even changed the recorder algo to confirm.
It's likely a hardware issue with something else grabbing the mic.

Same problem, are there any build in solutions?

Same problem, are there any build in solutions?


[Docs] How to configure webpack?

I'm finding the docs sort of vague. I did this to my static.config.js
import webpackConfig from 'config/conf'
{
  plugins: ['react-static-plugin-emotion'],
  webpack: () => webpackConfig,
  Document; ({ Html, Head, Body, children }) => (<SomeHtml />);
}

However, this webpack method never seems to get called after I run $ react-static start.
According to the docs webpack has to be a function that returns config. Am I doing it right?

i believe (but am not sure) that that part of the docs is now out of date. been meaning to ask @tannerlinsley about that to confirm
to actually modify webpack, use node.api.js: https://github.com/nozzle/react-static/blob/master/docs/plugins/node-api.md#webpack-functionfunction

@sw-yx thanks, that helped a lot. From this line it appears that node.api.js needs to export a default function that returns your config object. I tried this and that appeared to fix my original question but I'm getting some new errors now
./node.api.js
export default () => ({
  webpack: (config) => ({
    ...config
    ...otherStuff
  })
})


[todo-mvp] Pager Sample

How would you go about creating a View-Presenter pair using FragmentPagerAdapter? In the case of a TODO App, what if I wanted to create a screen with 3 Tabs - Active, Completed, and... errr... Something.
I tried creating a View-Presenter pair for the page Fragments, but presenter.start() crashes on rotate because presenter is null. The page Fragment's onResume() is called before the presenter was initialized in the PagerAdapter constructor.
I'm guessing that instead of creating the View-Presenter pairs for the page Fragments (which are sub-views), it should only be done for the Activity content Fragment (the "main" view). I might be wrong though, so I need guidance.

I had that same problem. The only resource I've found on this was this issue.


Add generic class for Google oauth

Adds generic class to handle Google oauth.
Class will manage...

Creating/authorizing tokens
Refreshing tokens
Returning API access client

I did this with #487


Fix -Wsign-compare warnings.

Note that the warning is not enabled in -Wall, but in -Wextra.
I decided to modify code in a defensive way. Ideally functions
like size() or length() should return an unsigned type.

Note that the warning is not enabled in -Wall, but in -Wextra.

Correction: it's enable by default in -Wall for C++.

I had started working on those a few months ago but we then decided to ignore those warnings, as their relevance is questionable and casting from signed to unsigned types can create actual bugs.
I'm fine with merging this if someone familiar with the code base can make sure that there are no situations where we're going to do something like:
int i = something_that_can_be_negative();
size_t size = result_of_some_system_call();
if ((size_t)i < size) { ... }

I'm fine with merging this if someone familiar with the code base can make sure that there are no situations where we're going to do something like:
int i = something_that_can_be_negative();
size_t size = result_of_some_system_call();
if ((size_t)i < size) { ... }

Note that it's exactly what a compiler does right now:
cat sign.c && gcc sign.c && ./a.out
#include <stdio.h>

int main()
{
  int a = -1;
  unsigned int b = 1;
  int r = a < b;

  fprintf (stderr, "a: %d, b: %u, r:%d\n", a, b, r);
}
a: -1, b: 1, r:0

as explained here:
https://stackoverflow.com/questions/5416414/signed-unsigned-comparisons
That said, we should care about the warning.

Fair enough :)
I've had a quick look and it seems good to merge once @neikeq's feedback is taken into account.

Needs a rebase to resolve conflicts (and address above feedback).

@akien-mga Should be mergeable now.

There's a couple more warnings to fix now: https://travis-ci.org/godotengine/godot/jobs/498865862

Thanks!


STDLIBC "<stdio.h>" integration

Created initial C binding functions for printf. Needs to be tested first. When complete will resolve #40

Closed by #80


Improve logging in data processing pipeline

Need
As a developer I want to be able to determine where the pipeline failed based on the logs, however we dont currently get logs from the validation script until it successfully completes
Approach

call the cellxgene-schema validate function directly in the processing pipeline (instead of through a call to the cli via subprocess)
add logging to the validation repo

DOD

can easily follow whats happening in the dataset processing pipeline via the logs

Since the validation is now invoked directly instead of via a subprocess, no longer required.


Fix user settings

I noticed that the administrative page for user settings does not save the settings - I think I have solved the problem

This looks to have some conflicts. Can you resolve those, please?

Sorry, it should be fine now :)

Did you run composer style on this? It's changing everything from spaces to tabs and I'm pretty sure the settings in the style fixer should be spaces.
Either way, please use spaces for this project.

Did you run composer style on this? It's changing everything from spaces to tabs and I'm pretty sure the settings in the style fixer should be spaces.
Either way, please use spaces for this project.

I am running composer style multiple times before each commit.
I run compose style until the command line returns this message.
~/Documenti/Projects/atsanna_bonfire2$ composer style
> php-cs-fixer fix --verbose --ansi --using-cache=no
PHP CS Fixer 3.3.2 Trinacria by Fabien Potencier and Dariusz Ruminski
Runtime: PHP 8.0.8
Loaded config CodeIgniter4 Coding Standards from "/home/antonio/Documenti/Projects/atsanna_bonfire2/.php-cs-fixer.dist.php".
...............................................................................................................................................
Legend: ?-unknown, I-invalid file syntax (file ignored), S-skipped (cached or empty file), .-no changes, F-fixed, E-error

Fixed all files in 1.832 seconds, 16.000 MB memory used
antonio@HP-ZBook-15-G6:~/Documenti/Projects/atsanna_bonfire2$

I started using PhpStorm 2021.3 running on Ubuntu 20.10 a few months ago: I will try to check if by chance there is some setting that ruins everything ...

I think I found a setting in the editor where the tab character was set.
I hope I have solved the problem.
I tried to manually fix all files that used tab.
Sorry for that.

No worries. thanks for this! Merging


NIFI-5394: Ensure that we wait for service to be fully enabled when e…

…nabling a group, before moving on to the next in the list
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically master)?

[ ] Is your initial contribution a single, squashed commit?

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

+1 LGTM, ran integration test before and after, verified the fix causes the test to pass. Thanks for the fix! Merging to master


Authorizer views - make fields uneditable

Following fields should not be editable for Authorizer -> Roles:
Role Name and Display Name
Following field should not be editable for Authorizer -> Users:
Name

Fixed in commit: https://github.com/hortonworks/streamline/commit/9843c01c2e9a9023ce344dbf56cbe22679afeaba


Needs maintainers list

CC @michelleN

Not an official spin project https://github.com/fermyon/spin/blob/main/GOVERNANCE.md#overview


Add application-level startup settings

I'd like to propose having something like the following class available:
import 'package:meta/meta.dart';

@sealed
class AppOverrides {
  final bool enableTestability;

  const AppOverrides({
    this.enableTestability = true,
  });
}

... as a start. The runApp and runAppAsync functions would support it:
ComponentRef<T> runApp<T>(
  ComponentFactory<T> componentFactory, {
  InjectorFactory createInjector,
  AppOverrides overrides,
}) {
  // ...
}

So, for example, you could do the following:
void main() {
  runApp(
    app.AppComponentNgFactory,
    createInjector: hackerNewsApp,
    overrides: AppOverrides(
      enableTestability = false,
    ),
  );
}

... in order to disable Testability, and functionality in NgZone present only for it. This would drop the minimum amount of code-size, as well as remove a very small performance overhead currently for any registered timers within NgZone.
The class and field would also exist so we could add more "advanced" options/overrides in the future, including potentially using it to set a custom Sanitizer, completely disable NgZone, and more.

One idea: Start with everything optimized instead of opting-out of deopts.

I like this idea overall, but I'm not sure its compatible with the original purpose of #887 . The signature for runApp/runAppAsync is not suitable for an application that does not have a root component.


vue-tsc tries to analyze non-ts blocks

I use vleam to write Gleam code in SFCs instead of TS.
When running vue-tsc for type check, vue-tsc tries analyzing

This also affects ESLINT. Should I open a new issue or edit this one?


Install script for Arch Linux

Pull Request Label:

[ ] Bug
[x] New feature
[ ] Enhancement
[x] New component
[ ] Typo

Pull Request Checklist:

[x] Have you followed the guidelines for contributing?
[x] Have you checked that there aren't other open pull requests for the same fix or component?

I'll be happy to test this on a current Arch Linux install.

Not stale, @TheLinuxNinja could you test this and let me know the results?

Not stale just want to hear that this works before merging


⚠ Turnos 24x7 has degraded performance

In e5f06ea, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 2933 ms

Resolved: Turnos 24x7 performance has improved in 427e7c5.


chore: add new question about the tests to the GitHub template

Please explain the main changes of your pull request
Whenever a new returned code is added, new unit tests should be written/updated to cover the new case.
I added a checklist item to remind who is opening the PR to add/update the tests.
Checklist

[ ] Have you added any new returned codes to the README file?

Hey @AhmedIbrahim336, thanks for the PR !
Just for your information 100% test coverage is enforced via the CI, so we will not miss any tests for sure. But I'm happy to add it to the list 👍🏻

Codecov Report

Merging #45 (0a83a0f) into main (d4e452b) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##              main       #45   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            7         7
  Lines          666       666
  Branches        79        79
=========================================
  Hits           666       666

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


⚠ Secret Website 3 has degraded performance

In d0c1eec, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 3080 ms

Resolved: Secret Website 3 performance has improved in 6169b35.


Laravel 5.4 Changing Columns Not Working

Laravel Version: 5.4.x
PHP Version: 7.1
Database Driver & Version:  Postgres

Description:
I have multiple Laravel Schemas on which i want to migrate some migrations. One of my migrations is as following:
    <?php

    use Illuminate\Support\Facades\Schema;
    use Illuminate\Database\Schema\Blueprint;
    use Illuminate\Database\Migrations\Migration;

    class EditColumnPaymentMethodLengthOnRecurringPaymentsTable extends Migration
    {
        /**
         * Run the migrations.
         *
         * @return void
         */
        public function up()
        {
            Schema::table('recurring_payments', function (Blueprint $table) {
                $table->string('payment_method', 150)->nullable()->change();
                $table->text('test')->nullable();
            });
        }

        /**
         * Reverse the migrations.
         *
         * @return void
         */
        public function down()
        {
            Schema::table('recurring_payments', function (Blueprint $table) {
                $table->string('payment_method', 18)->nullable()->change();
                $table->dropColumn('test');
            });
        }
    }

What happens is that the new column is added to the database (and dropped if rolledBack) but the column 'payment_method' always has the length of 18 characters. Except for the first Schema this one works fine.
This is the command i migrate with:
    <?php

    namespace App\Console\Commands;

    use App\Account;
    use App\Support\Schema;
    use Illuminate\Console\Command;

    class MigrateTenantsCommand extends Command
    {
        /**
         * The name and signature of the console command.
         *
         * @var string
         */
        protected $signature = 'tenant:migrate {--force : Force the operation to run when in production.}
                    {--pretend : Dump the SQL queries that would be run.}
                    {--seed : Indicates if the seed task should be re-run.}
                    {--step : Force the migrations to be run so they can be rolled back individually.}';

        /**
         * The console command description.
         *
         * @var string
         */
        protected $description = 'Migrate all tenants';

        /**
         * Create a new command instance.
         *
         * @return void
         */
        public function __construct()
        {
            parent::__construct();
        }

        /**
         * Execute the console command.
         *
         * @return mixed
         */
        public function handle()
        {
            $tenants = Account::all();
            foreach($tenants as $tenant)
            {
                $schema = new Schema;

                // Migrate into the new schema
                $schema->migrate(
                    $tenant->schema,
                    $this->getOptionsFromArgs()
                );
            }
        }

        private function getOptionsFromArgs()
        {
            $options = [
                '--path' => 'database/migrations/tenants/schema'
            ];

            if($this->option('force'))
            {
                $options['--force'] = true;
            }
            if($this->option('pretend'))
            {
                $options['--pretend'] = true;
            }
            if($this->option('seed'))
            {
                $options['--seed'] = true;
            }
            if($this->option('step'))
            {
                $options['--step'] = true;
            }
            return $options;
        }
    }

someone pointed out to run the command with --pretend. When i did this i got an exception:  [Doctrine\DBAL\Schema\SchemaException]   There is no column with name 'payment_method' on table 'recurring_payments'.
It is not a problem with the table being there or not. It is probably a problem with Doctrine not finding the right Schema Config and therefor using the public Schema config. In the public schema the table is not present but i don't want to use the public schema. What i'm doing wrong here, how can I tell Doctrine to use the right Schema config? How is it that Doctrine is finding the right config the first time at least that is wat it looks like.
The Schema/Schema Class of Doctrine:
    public function __construct(
            array $tables = array(),
            array $sequences = array(),
            SchemaConfig $schemaConfig = null,
            array $namespaces = array()
        ) {
            if ($schemaConfig == null) {
                $schemaConfig = new SchemaConfig();
            }
            $this->_schemaConfig = $schemaConfig;

            $this->_setName($schemaConfig->getName() ?: 'public');

            foreach ($namespaces as $namespace) {
                $this->createNamespace($namespace);
            }

            foreach ($tables as $table) {
                $this->_addTable($table);
            }

            foreach ($sequences as $sequence) {
                $this->_addSequence($sequence);
            }
        }

Steps To Reproduce:

add change() to one of your migrations
switch between multiple schema's

5.4 is not supported.

I could test this issue on 5.5 (I think it is still in there).

So you should check it on 5.5

Just to be sure (since we get issue reports of varying levels of debugging); do you use a tool like DataGrip that shows the database schema, and does it perhaps have a cache you need to refresh to show the changes the migration did?

I do use DataGrip (love JetBrains), but no it isn't an issue with the cache of Datagrip. I can literally see the column test appear in the table but the column payment_method is not changed at all.
My migrate up method:
$table->string('payment_method', 150)->nullable()->change();
$table->text('test')->nullable();

The issue is still present in Laravel 5.5

Anyone thoughts on how to solve this problem?

I'm using 5.6.24. This problem still exists in this version.

I came to this issue with the same problem, using Laravel 5.6, where a column I'd changed to nullable was showing as not null in DataGrip.
However after some playing around I realised even though it shows as not null in DataGrip and I can't change to column to  in DataGrip, if I added a new row it would in fact show as nullable.
If you right-click on the column in the sidebar and hit Synchronize it may solve the problem for you.

I'm not sure if the issue is still there. It was definitely not an issue with cache of Data Grip for me but thanks for  your input.

Out of curiosity, did you ever attempt to verify if the column was changed by any means other than DataGrip?

I only used DataGrip but I created a new tenant schema with my migrations to ensure there was no caching in place for this specific schema.table.column.

Still an issue.

Can you try to put the statements in different schema calls to see if that solves your problem? For both the up and down methods I mean.
        /**
         * Run the migrations.
         *
         * @return void
         */
        public function up()
        {
            Schema::table('recurring_payments', function (Blueprint $table) {
                $table->string('payment_method', 150)->nullable()->change();
            });
            Schema::table('recurring_payments', function (Blueprint $table) {
                $table->text('test')->nullable();
            });
        }

I am having also problems with doctrine and changing column definition. I am trying to change the type from string to text. It says migration runs successfully, but nothing changes. I have ran it several times up and down. The column is unchanged.
Thanks to the tip here to use pretend I did find an anomaly. I have a DB listener on and it registers 0 alter table statements. The listener otherwise works and has worked. When I use pretend, it actually registers alter statements. I took the command, ran it manually. It worked. So it seems like running change against an actual DB is well.. not actually executing the command. I enabled all query log on DB side as well and this confirmed it - there are no ALTER statements executed.
I am on Laravel 5.7.16 using MariaDB 10.3.
So my suggestion - enable all query logging and actually see what statements it tries to execute, if it even attempts to alter the column. Since you say one works, perhaps the issue is similar to mine.

What does the recurring_payments table look like before you alter it with this migration?

The after() function also does not seem to be functioning as expected on Postgres. I think this is related to this issue, although I'm not entirely sure about that. I have created a demo repo that demonstrates what goes wrong.
As can be seen in the demo repo, I first create a posts table. Next, I added another migration that adds the uuid column. I expect the column to appear after the id column, but it does not:

When switching to a mysql connection, it does work, with the exact same migrations:

@BasMulders Your issue is not related to this one.
PostgreSQL doesn't allow inserting columns at a specific position. You can only insert the new column(s) at the end or recreate the whole table.

What does the recurring_payments table look like before you alter it with this migration?

@staudenmeir i'm not sure if I understand your question. I'm trying to add one column and update another column. If I do this in one migrations the column i'm trying to updated is failing (I'm trying to make the column nullable). As a workaround I just write raw statements for now.
The problem seems to be on the update of a column because I'm not able to update any column in the traditional way. Even not when i moved the update statement to a separated migrations.
I'm guessing the change method doesn't respect my current search path (current database schema). But I have no idea how to set the current schema other than:
$result = DB::statement('SET search_path TO '. $schema);

What does the migration that creates the table look like?

i have the same issue on newer pgsql version  (older works fine)

public function up()
    {
        Schema::create('recurring_payments', function (Blueprint $table) {
            $table->uuid('id', 18);
            $table->string('sfdc_id', 18);
            $table->boolean('active')->nullable();
            $table->decimal('amount', 18, 0)->nullable();
            $table->string('payment_method', 18)->nullable();
            $table->timestamps();

            $table->primary('id');
            $table->unique('sfdc_id');
        });
    }

What does the App\Support\Schema class look like?

<?php

namespace App\Support;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Artisan;

/**
 * Class Schema
 *
 */
class Schema
{
    /**
     * List all the tables for a schema
     *
     * @param string $schemaName
     *
     * @return mixed
     */
    protected function listTables($schema)
    {
        $tables = DB::table('information_schema.tables')
            ->select('table_name')
            ->where('table_schema', '=', $schema)
            ->get();

        return $tables;
    }

    public static function listColumns($schema, $table)
    {
        $columns = DB::table('information_schema.columns')
            ->select('column_name')
            ->where('table_schema', '=', $schema)
            ->where('table_name', '=', $table)
            ->get();
        $columns = $columns->keyBy('column_name')->keys();
        return $columns;
    }

    /**
     * Check to see if a table exists within a schema
     *
     * @param string $schemaName
     * @param string $tableName
     *
     * @return bool
     */
    protected function tableExists($schema, $tableName)
    {
        $tables = $this->listTables($schema);
        foreach ($tables as $table) {
            if ($table->table_name === $tableName) {
                return true;
            }
        }

        return false;
    }

    /**
     * Check to see if a schema exists
     *
     * @param string $schemaName
     *
     * @return bool
     */
    public function schemaExists($schema)
    {
        $schema = DB::table('information_schema.schemata')
            ->select('schema_name')
            ->where('schema_name', '=', $schema)
            ->count();

        return ($schema > 0);
    }

    /**
     * Create a new schema
     *
     * @param string $schemaName
     */
    public function create($schema)
    {
        $query = DB::statement('CREATE SCHEMA ' . $schema);
    }

    /**
     * Set the search_path to the schema name
     *
     * @param string|array $schemaName
     */
    public function switch($schema = 'public')
    {
        config(['database.connections.shared.schema' => $schema]);

        DB::reconnect();
        if (!is_array($schema)) {
            $schema = [$schema];
        }

        $query = 'SET search_path TO ' . implode(',', $schema);

        $result = DB::statement($query);
    }

    /**
     * Drop an existing schema
     *
     * @param string $schemaName
     */
    public function drop($schema)
    {
        $query = DB::statement('DROP SCHEMA '.$schema . ' CASCADE');
    }

    /**
     * Run migrations on a schema
     *
     * @param string $schemaName
     * @param array  $args
     */
    public function migrate($schema, $args = [])
    {
        $this->switch($schema);
        if (!$this->tableExists($schema, 'migrations')) {
            Artisan::call('migrate:install');
        }

        Artisan::call('migrate', $args);
    }

    /**
     * Re-run all the migrations on a schema
     *
     * @param string $schemaName
     * @param array  $args
     */
    public function migrateRefresh($schema, $args = [])
    {
        $this->switch($schema);

        Artisan::call('migrate:refresh', $args);
    }

    /**
     * Reverse all migrations on a schema
     *
     * @param string $schemaName
     * @param array  $args
     */
    public function migrateReset($schema, $args = [])
    {
        $this->switch($schema);

        Artisan::call('migrate:reset', $args);
    }

    /**
     * Rollback the latest migration on a schema
     *
     * @param string $schemaName
     * @param array  $args
     */
    public function migrateRollback($schema, $args = [])
    {
        $this->switch($schema);

        Artisan::call('migrate:rollback', $args);
    }
}

Sorry, but that's too much custom code. Please create a fresh Laravel installation, add the code necessary to reproduce the issue and upload it to GitHub.

Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue and we'll re-open this issue.

Still had this issue in latest laravel version.


feat: Multi-selection and installation

Pull Request
Implement Multi-Selection and Installation feature

Type of Change

[x] New feature
[x] UI/UX improvement

Description
This pull request introduces a multi-selection feature that allows users to select multiple commands and execute them in one button press. The commands will be executed one after another in sequential order. Selected commands are marked with an asterisk (*) next to the command name. When executed, the selected commands are concatenated allowing them to run sequentially.

[!NOTE]
If you want to disable multi-selection for a specific tab it can be specified in the tab_data.toml as multi_selectable = false

Press V to toggle multi-selection option.
Press Space to select/unselect an command.
Press Enter to install all the selected commands.

Testing
Works as described.
Impact

Add keybind to enable multi-selection.
Adds multi-selection functionality to the command list.
Displays an asterisk (*) next to selected commands.
Runs the selected commands sequentially by merging them.
Should add multi_selectable = false to disable multi selection in specific tab. By default it is enabled.
If one script fails the whole execution off all selected commands will not execute.

Additional Information

[!WARNING]
The only issue I faced was the commands are executed in the order you select them, so If system update is selected at last it would run the system update at the last only. I was planning on implementing a priority based execution but it needs more work to be done. I planned it for another PR. For now this PR is solely focused on multi selection and execution of commands.

I have disabled multi selection for utilities tab by adding multi_selectable = false as we don't want to execute them with any other commands.
Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generate no errors/warnings/merge conflicts.

@jeevithakannan2 squash those commits to 1 as its just 1 feature your working on.

When merging it will be squashed automatically right?

When merging it will be squashed automatically right?

better to keep the git log clean :)

Ok


Add Guess who game

Hey @Sulagna-Dutta-Roy . I'm a GSSoc'24 contributor
i would like to add guess who game .
kindly assign this to me

/assign-me


[ci] release

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
<EMAIL_ADDRESS>Patch Changes

#360 8415df6 Thanks @HiDeoo! - Fix build warnings when using the TypeScript verbatimModuleSyntax compiler option

size-limit report 📦

Path
Size

/index.html
13.15 KB (0%)

/_astro/*.js
16.21 KB (0%)

/_astro/*.css
8.54 KB (0%)


Create major versioning assistant

When it's time to publish a new major release of Zowe, we have to perform a lot of manual steps across each of the repos that uses Octorelease. Investigate if a tool could be created to automate some of these steps. See these PRs for an example:

https://github.com/zowe/zowe-cli-db2-plugin/pull/162
https://github.com/zowe/zowe-cli-db2-plugin/pull/163
https://github.com/zowe/zowe-cli-db2-plugin/pull/165
https://github.com/zowe/zowe-cli-db2-plugin/pull/166

A series of workflows could be implemented for this. Similar to how the zowe/docs-site PRs are handled with a walkthrough-like sequence of comments. 😋


Investigate SonarCloud settings for duplicate lines

DevEx/OpEx
There is an issue around the lines analyzed being over the diff of a change instead of scanning the entire repo.  NOTE: There may not be a way to do the above, if so close this ticket and make another to see if we can install a GitHub Actions step in the pipeline to check for duplicates.
Tasks

[ ] Investigate Sonar Cloud settings to see if we can address the above concern.

https://agilesix.slack.com/archives/C055XTF22B0/p1688752759825549

I believe this item can be closed based on the stack overflow link here
As well as the Documentation on SonarCloud Here
@halprin and @basiliskus would you agree?

@jcrichlake Not sure I understand the reasoning they have behind the need to have at least 10 successive statements in order to count as duplicate. We can discuss this in eng. meeting if there's time

Can we close this issue? https://flexion.slack.com/archives/C06CP7E3NAF/p1718052095325569

We've decided to close this issue as it's not possible to change it at the moment: https://flexion.slack.com/archives/C06CP7E3NAF/p1718052095325569


output example in page menu

ee44239
Proposed change
The output example is now reference at the end of the brief tutorial. It should be also accessible from the top menu

Solved with #80


What is the possibly of the client connects to the peer client (not super node) to download the file.

Question
How much time the file will be stored (or in memory) in the client to serve the peer client.
Or what is the expiration of the file at the client side to serve to peer node?
My observation is that, once the first client download the file, it keep file in-memory for certain time (10 min), with this duration when other client requests the same file, then this file will be served.
What if the first client goes down?

FYI. https://github.com/dragonflyoss/website/blob/8a048f98c6315ff60ae14854579e5fb8147f6905/docs/en-us/faq.md#why-does-dfget-still-keep-running-after-fileimage-distribution-finished

Would you please close this issue if you have no more related questions? THX>

Long-time no reply. Close it now.


Add test-coverage

Problem Statement
There must be a way to know the current coverage
Describe the Proposal
Currently, tern does not have a feature to know the current test coverage.
Have test coverage is important to make sure that untested code does not get
merged.
Steps to Implement Proposal
Install and configure coverage

I would love to work on this , if  needed.

@rajibmitra Do you still want to incorporate coverage?


Error: ETXTBSY: text file is busy

Bug description
While making modifications to datemodel, I noticed that autocompletions stopped working and vsCode's output window popped up wtith 10s of messages.
How to reproduce
I honestly can't link this issue to any specific change, it happened multiple times while changing datamodel. But I remember one of the times it occurred when I wrote a Prisma 1 syntax like
fieldA:

The colon might be related.

OS: Ubuntu 18
Editor: vsCode
Editor version: 1.53.2
Extension version: 2.17.0

Logs:
Error: ETXTBSY: text file is busy, open<EMAIL_ADDRESS>Emitted 'error' event on WriteStream instance at:
    at internal/fs/streams.js:361:12
    at FSReqCallback.oncomplete (fs.js:160:23) {
  errno: -26,
  code: 'ETXTBSY',
  syscall: 'open',
  path<EMAIL_ADDRESS>}
[Error - 9:32:55 PM] Connection to server got closed. Server will not be restarted.

[Error - 2:52:46 PM] Request textDocument/completion failed.
Error: Connection got disposed.
Binary test failed. Re-attempting a download.
[Info  - 2:52:47 PM] Downloading prisma-fmt from https://binaries.prisma.sh/all_commits/3c463ebd78b1d21d8fdacdd27899e280cf686223/debian-openssl-1.1.x/prisma-fmt.gz
events.js:292
      throw er; // Unhandled 'error' event
      ^
Error: ETXTBSY: text file is busy, open<EMAIL_ADDRESS>Emitted 'error' event on WriteStream instance at:
    at internal/fs/streams.js:361:12
    at FSReqCallback.oncomplete (fs.js:160:23) {
  errno: -26,
  code: 'ETXTBSY',
  syscall: 'open',
  path<EMAIL_ADDRESS>}

Hi @omar-dulaimi!
Are you still getting the error when reinstalling the extension? The error does not seem to have anything to do with the used schema I think.

@omar-dulaimi since this issue has been inactive for a while, we're going to close it. If you can still reproduce the problem, please open a new one.


How to add user sections (IDFGH-6784)

Didn't find proper place for my question.
I'm porting my project form another device to esp32. I have a linker script for my sections (ARM cortex-m4, gcc)
SECTIONS {
    .text : {
        _shell_list_start = .;
        KEEP(*(SORT(._shell.static.*)));
        _shell_list_end = .;
        __shell_root_cmds_start = .;
        KEEP(*(SORT(.shell_root_cmd_*)));
        __shell_root_cmds_end = .;

        __init_start = .;
        __init_PRE_KERNEL_1_start = .;
        KEEP(*(SORT(.init_PRE_KERNEL_1[0-9])));
        KEEP(*(SORT(.init_PRE_KERNEL_1[1-9][0-9])));
        __init_PRE_KERNEL_2_start = .;
        KEEP(*(SORT(.init_PRE_KERNEL_2[0-9])));
        KEEP(*(SORT(.init_PRE_KERNEL_2[1-9][0-9])));
        __init_POST_KERNEL_start = .;
        KEEP(*(SORT(.init_POST_KERNEL[0-9])));
        KEEP(*(SORT(.init_POST_KERNEL[1-9][0-9])));
        __init_APPLICATION_start = .;
        KEEP(*(SORT(.init_APPLICATION[0-9])));
        KEEP(*(SORT(.init_APPLICATION[1-9][0-9])));
        __init_SMP_start = .;
        KEEP(*(SORT(.init_SMP[0-9])));
        KEEP(*(SORT(.init_SMP[1-9][0-9])));
        __init_end = .;

        __log_backends_start = .;
        KEEP(*("._log_backend.*"));
        __log_backends_end = .;
    } > drom0_0_seg

    .data : {
       __logModules_start__ = .;
        *(logModules)
        __logModules_end__ = .;
        __devices_start__ = .;
        KEEP(*(_devices))
        _devices_end__ = .;
    } > iram0_2_seg
}

I'm being frustrated to understand how to achieve the same with LDFRAGMENTS.
Could anyone be so kind to help me find out, how to write .lf file for my case?
Here is part that I'm experimenting with (not working obviously):
[mapping:main]
archive: libmain.a
entries:
    * (default)
    _log_backends (default);
        text -> flash_text KEEP() ALIGN(4) SURROUND(__log_backends)
    _init_PRE_KERNEL_1 (default);
        text -> flash_text KEEP() ALIGN(4) SURROUND(_init_PRE_KERNEL_1)
    _init_PRE_KERNEL_2 (default);
        text -> flash_text KEEP() ALIGN(4) SURROUND(_init_PRE_KERNEL_2)
    init_POST_KERNEL (default);
        text -> flash_text KEEP() ALIGN(4) SURROUND(_init_POST_KERNEL)
    _init_APPLICATION (default);
        text -> flash_text KEEP() ALIGN(4) SURROUND(_init_APPLICATION)

Hi @pavlohamov ,
Why ESP-IDF version are you using?
First of all, I would like to propose to try the quick-and-dirty way: modify your device's linker script file in order to perform this.
Modify the linker script template component/esp_system/ld/esp32/sections.ld.in. Add your symbols in the .iram0.data (or .dram0.data depending on your requirements) section:
  /* Should be line 371 if you are on current master (3da0b2249b31) */
  .iram0.data :
  {
    . = ALIGN(4);
    _iram_data_start = ABSOLUTE(.);

    mapping[iram0_data]

    /* Populate your symbols here */
    __logModules_start__ = .;
    *(logModules)
    __logModules_end__ = .;
    __devices_start__ = .;
    KEEP(*(_devices))
    _devices_end__ = .;

    _iram_data_end = ABSOLUTE(.);
  } > iram0_0_seg

Same goes for you other symbols, you can put them in .flash.text section (line 334):
  .flash.text :
  {
    _stext = .;
    _text_start = ABSOLUTE(.);

    /* Your symbols here */
    _shell_list_start = .;
    KEEP(*(SORT(._shell.static.*)));
    _shell_list_end = .;
    __shell_root_cmds_start = .;
    KEEP(*(SORT(.shell_root_cmd_*)));
    __shell_root_cmds_end = .;

    __init_start = .;
    __init_PRE_KERNEL_1_start = .;
    KEEP(*(SORT(.init_PRE_KERNEL_1[0-9])));
    KEEP(*(SORT(.init_PRE_KERNEL_1[1-9][0-9])));
    __init_PRE_KERNEL_2_start = .;
    KEEP(*(SORT(.init_PRE_KERNEL_2[0-9])));
    KEEP(*(SORT(.init_PRE_KERNEL_2[1-9][0-9])));
    __init_POST_KERNEL_start = .;
    KEEP(*(SORT(.init_POST_KERNEL[0-9])));
    KEEP(*(SORT(.init_POST_KERNEL[1-9][0-9])));
    __init_APPLICATION_start = .;
    KEEP(*(SORT(.init_APPLICATION[0-9])));
    KEEP(*(SORT(.init_APPLICATION[1-9][0-9])));
    __init_SMP_start = .;
    KEEP(*(SORT(.init_SMP[0-9])));
    KEEP(*(SORT(.init_SMP[1-9][0-9])));
    __init_end = .;

    __log_backends_start = .;
    KEEP(*("._log_backend.*"));
    __log_backends_end = .;

    mapping[flash_text]

    /* Keep the rest of course */
    [...]
} >default_code_seg

With this, you should at least be able to compile and debug your application before refactoring it to use linker fragments.
Let's check how to create a section with a linker fragment file. I will use examples/get-started/hello-world example for this.
In the main/hello_world_example.c, I am going to create a function which will be in a custom section:
int __attribute__((section(".custom.code"))) myAwesomeFunction(const char* str) {
    return str && str[0];
}

In the corresponding main/CMakeLists.txt file, I declare a new linker fragment file:
idf_component_register(SRCS "hello_world_main.c"
                       INCLUDE_DIRS ""
                       LDFRAGMENTS "linker.lf")

Here is the content of the main/linker.lf:
# Declare a new fragment section, which will expand to all .custom.code* sections defined in my component's C files
[sections:my_custom_section]
entries:
    .custom.code+

# Define a scheme, named main_default (you can name it how you want)) to specify that I want my_custom_section to be in flash_text
[scheme:main_default]
entries:
    my_custom_section -> flash_text

# Finally, I specify which part of my component should be applied to my newly created scheme
[mapping:main_default]
archive: libmain.a
entries:
    # The whole main component will use main_default scheme.
    * (main_default);
        my_custom_section -> flash_text SURROUND (custom_wrapper) # Surround my section with custom_wrapper symbol

After compiling and linking, let's check what readelf says:
$ readelf -a build/hello_world.elf
[...]
  [17] .flash.text       PROGBITS        400d0020<PHONE_NUMBER>af 00  AX  0   0  4
[...]
2052: 400e48b2     0 NOTYPE  GLOBAL DEFAULT  ABS _custom_wrapper_start
1480: 400e48b4     8 FUNC    GLOBAL DEFAULT   17 myAwesomeFunction
2289: 400e48bc     0 NOTYPE  GLOBAL DEFAULT  ABS _custom_wrapper_end
[...]

Our function, with its wrapper, have been put in the .flash.text section as expected.
For more information about linker fragment files, please check this page: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/linker-script-generation.html

Thanks for reporting, will close due to short of feedback, feel free to reopen.


[Doc] Minor Fix Android Doc

A minor path fix in the Android Doc, as the file prepare_libs.sh is under the library folder.
cc @Kartik14 @junrushao

LGTM, Thanks for the correction!


Proposal for definitive format

Dear MOCAP4ROS2 main devs
This is a new proposal to standardize the rigid bodies and markers, for the fact that:

Markers can be labeled with int, string, or even both in some system
Rigid Bodies (subjects in Vicon) are labeled with string, and contain markers.
We use Rigid Body for what in Vicon is called subject, as an agreement.

Please, lets agree in this
Best
Francisco
Signed-off-by: Francisco Martín Rico<EMAIL_ADDRESS>

Good approximation. I think that when we will use the system we will see if this is useful or not.

Looks good. I'll adjust vicon_drivers to these changes.

@jmguerreroh has merged, but I would also like to have the opinion of @aarsht7 before confirming

Oops sorry, depending @aarsht7's opinion I can revert it.

Hello @fmrico if we put the markers as field in the msg, than I think we can do something like this mocap_msgs/Marker[] markers.
One more thing I can suggest is, We can first list out all the data coming from SDK of all mocap system with the types in a wiki page. That will be easier to form new common msg types.

Hi @aarsht7

Hello @fmrico if we put the markers as field in the msg, than I think we can do something like this mocap_msgs/Marker[] markers.

Yes!! That's in this PR

One more thing I can suggest is, We can first list out all the data coming from SDK of all mocap system with the types in a wiki page. That will be easier to form new common msg types.

It's a good idea. Go ahead, please
With your response, I consider consolidated the messages. Let's adapt to it in each driver and repos

Hello @fmrico  I think I do not have permission to edit the wiki pages.

Try now


Doesn't throw exception on error

Faced with silent issue when gem doesn't show why my reply doesn't pass to messenger. Turned out fb messenger returns msg:
{"error":{"message":"(#100) Length of param message[text] must be less than or equal to 320","type":"OAuthException","code":100,"fbtrace_id":"EqLDMqwyUll"}}

The length of the message can't exceed 320.
check the maximum length of message.

 Just overwrite the reply method and if the return value indicates an error you throw any exception you want.


Startup perf improvements

[x] change lodash imports
[x] lazy load common-adapter imports

When running jsc on ios (debug mind you) i get master => pr timings
ScriptDownload:  267 -> 208ms
ScriptExecution: 628 -> 538ms
BridgeStartup:   919 -> 766ms
RootViewTTI:    1013 -> 870ms

[ ] after release

@keybase/react-hackers bump


Update DeepSpeedOptimizer import for deepspeed >= 0.14.1

What does this PR do?

Fix DeepSpeedOptimizer import error
DeepSpeed team remove DeepSpeedOptimizer from the __init__.py
https://github.com/microsoft/DeepSpeed/commit/c56a4b9e0db340dcb0f7e14495699ca5c90dd976
[rank1]: Traceback (most recent call last):
[rank1]:   File "/data/projects/livdet2025/train.py", line 140, in <module>
[rank1]:     main()
[rank1]:   File "/data/projects/livdet2025/train.py", line 134, in main
[rank1]:     train_helper.load_state(checkpoint, model, optimizer, lr_scheduler)
[rank1]:   File "/data/projects/livdet2025/utils.py", line 253, in load_state
[rank1]:     }
[rank1]:   File "/data/.pyenv/versions/livdet/lib/python3.10/site-packages/lightning/fabric/fabric.py", line 775, in load
[rank1]:     remainder = self._strategy.load_checkpoint(path=path, state=unwrapped_state, strict=strict)
[rank1]:   File "/data/.pyenv/versions/livdet/lib/python3.10/site-packages/lightning/fabric/strategies/deepspeed.py", line 501, in load_checkpoint
[rank1]:     from deepspeed.runtime import DeepSpeedOptimizer
[rank1]: ImportError: cannot import name 'DeepSpeedOptimizer' from 'deepspeed.runtime' (/data/.pyenv/versions/livdet/lib/python3.10/site-packages/deepspeed/runtime/__init__.py)

📚 Documentation preview 📚: https://pytorch-lightning--20040.org.readthedocs.build/en/20040/

Thank you for doing this @linbo0518 🚀


My session function doesn't seem to work, what's the wrong?

General Question
Read the Notes and fill out the form.
Switch to Preview for reading.
Notes
Your issue will be closed if you violate any rule below.

You need to include a meaningful descriptions and e.g. a screenshot.
You do not include screenshots of your code.
Read the Docs.
Capturing endpoints and similar can be found here
(read it if you are going to ask about it).
You can delete this section after reading it.

Form
Put an [x] if you meet the condition, else leave [ ].

[x] I've searched the Issues
[x] I've read the basic concepts
[x] I'm using the latest version

Question
A specific question, so it's understandable to anyone.
You may add pictures.
YOUR QUESTION HERE
I was working on this function, it's bassed on the given example in docs:
require("dotenv").config();
const fs = require('fs');
const { IgApiClient } = require("instagram-private-api");
const ig = new IgApiClient();
const username = process.env.IG_USERNAME;
const password = process.env.IG_PASSWORD;
ig.state.generateDevice(username);

const dataCheck = function (callback) {
  fs.readFile('login_data.json', function (err, data) {
    console.log(data);
    if (data.length > 0) {
      callback(true);
    } else {
      callback(false);
    }
  });
}

const dataLoad = function (callback) {
  fs.readFile('login_data.json', function (err, data) {
      console.log("Read JSON file: " + data);
      data = JSON.parse(JSON.stringify(data));
      console.log("Object: " + data);
      callback(data);
  });
}

function dataSave(data){
  console.log("saving...");
  fs.writeFile("login_data.json", JSON.stringify(data),    function(err) {
    if(err) {
      console.log(err);
    }
    console.log("The file was saved!");
  });
}

igLogin();

async function igLogin(){

  await ig.simulate.preLoginFlow();

  ig.request.end$.subscribe(async () => {
    const serialized = await ig.state.serialize();
    delete serialized.constants;
    dataSave(serialized);
  });

  dataCheck(async dataExists => {
    console.log(dataExists);
    if (dataExists){
      dataLoad(async data => {
        ig.state.deserialize(data);
      });
    }
  });

  const auth = await ig.account.login(username, password);
  console.log(auth);

  process.nextTick(async () => await ig.simulate.postLoginFlow());

}

It can save the login data as a json file, It can login, but on the Instagram login activity it appears as a new login activity and not an old session.
So, where is the mistake?

You don't have to log in after loading the state. But you have to be careful in your code because you're mixing up callbacks and async/await. Try to use one concept throughout your project.

I edited the code a bit:
require("dotenv").config();
const fs = require('fs');
const { IgApiClient } = require("instagram-private-api");
const ig = new IgApiClient();
const username = process.env.IG_USERNAME;
const password = process.env.IG_PASSWORD;
ig.state.generateDevice(username);

const dataCheck = function (callback) {
  fs.readFile('login_data.json', function (err, data) {
    console.log(data);
    if (data.length > 0) {
      callback(true);
    } else {
      callback(false);
    }
  });
}

const dataLoad = function (callback) {
  fs.readFile('login_data.json', function (err, data) {
      console.log("Read JSON file: " + data);
      data = JSON.parse(JSON.stringify(data));
      console.log("Object: " + data);
      callback(data);
  });
}

function dataSave(data){
  console.log("saving...");
  fs.writeFile("login_data.json", JSON.stringify(data),    function(err) {
    if(err) {
      console.log(err);
    }
    console.log("The file was saved!");
  });
}

igLogin();

async function igLogin(){

  await ig.simulate.preLoginFlow();

  dataCheck(async dataExists => {
    console.log(dataExists);
    if (dataExists){
      dataLoad(async data => {
        ig.state.deserialize(data);
        console.log(ig.account);
      });
    } else {
        ig.request.end$.subscribe(async () => {
          const serialized = await ig.state.serialize();
          delete serialized.constants;
          dataSave(serialized);
        });
        const auth = await ig.account.login(username, password);
        console.log(auth);
    }
  });

  process.nextTick(async () => await ig.simulate.postLoginFlow());

}

After loading the login data, I got this error:

You still need to subscribe and save the state.
Also if you get login_required, you need to delete your session and log in again.

Oh, ok i will try again

This is my code now:
require("dotenv").config();
const fs = require('fs');
const { IgApiClient } = require("instagram-private-api");
const ig = new IgApiClient();
const username = process.env.IG_USERNAME;
const password = process.env.IG_PASSWORD;
ig.state.generateDevice(username);

const dataCheck = function (callback) {
  fs.readFile('login_data.json', function (err, data) {
    console.log(data);
    if (data.length > 0) {
      callback(true);
    } else {
      callback(false);
    }
  });
}

const dataLoad = function (callback) {
  fs.readFile('login_data.json', function (err, data) {
      console.log("Read JSON file: " + data);
      data = JSON.parse(JSON.stringify(data));
      console.log("Object: " + data);
      callback(data);
  });
}

function dataSave(data){
  console.log("saving...");
  fs.writeFile("login_data.json", JSON.stringify(data),    function(err) {
    if(err) {
      console.log(err);
    }
    console.log("The file was saved!");
  });
}

igLogin();

async function igLogin(){

  dataCheck(async dataExists => {
    console.log(dataExists);
    if (dataExists){
      await loadSession();
    } else {
      await newLogin();
    }
  });

}

async function newLogin() {
  await ig.simulate.preLoginFlow();

  ig.request.end$.subscribe(async () => {
    const serialized = await ig.state.serialize();
    delete serialized.constants;
    dataSave(serialized);
  });
  const auth = await ig.account.login(username, password);
  console.log(auth);

  process.nextTick(async () => await ig.simulate.postLoginFlow());
}

async function loadSession() {
  await ig.simulate.preLoginFlow();

  dataLoad(async data => {
    const auth = await ig.state.deserialize(data);
    console.log(auth);
  });
  ig.request.end$.subscribe(async () => {
    const serialized = await ig.state.serialize();
    delete serialized.constants;
    dataSave(serialized);
  });

  process.nextTick(async () => await ig.simulate.postLoginFlow());
}

I still get this error:

What should I do?

I gave it another try, and I got this:
(node:24257) UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/launcher/sync/ - 400 Bad Request; No valid ID given
    at Request.handleResponseError (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/core/request.js:121:16)
    at Request.send (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/core/request.js:50:28)
    at async LauncherRepository.sync (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/repositories/launcher.repository.js:22:26)
(node:24257) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:24257) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I moved ig.state.generateDevice(username); inside the newLogin(); function, that's the only change I did.

That's not necessary but I suggest you to use async/await and thus Promises instead of callbacks. I think the code will get much cleaner and more understandable but that's up to you.

Ok, i will.
But it still not working, I can't really understand the reason..

Actually I changed my mind, using callbacks is the only native and the simple method to use fs with promises, await/async can't deal with that.

using callbacks is the only native and the simple method to use fs

There should be fs.promises and util.promisify.

This not simple by the way..

This not simple by the way..

Change
 const fs = require('fs');

to
const { promises: fs } = require('fs');

and you're done.

The same No ID given error again and again..

This isn't perfect but it will work
// create ig, generate device
ig.request.end$.subscribe(async () => {
    const serialized = await ig.state.serialize();
    delete serialized.constants;
    save(serialized);
});

let shouldLogin = true;

try {
    await ig.simulate.preLoginFlow();
    if (exists()) {
        await ig.state.deserialize(...);
        await ig.user.info(ig.state.cookieUserId);
        shouldLogin = false;
    }
} catch (_) { }

if (shouldLogin) {
    await ig.account.login(...);
}

I will give it a try, thx.

await ig.user.info(ig.state.cookieUserId); didn't fix my error:
(node:15897) UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/launcher/sync/ - 400 Bad Request; No valid ID given
    at Request.handleResponseError (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/core/request.js:121:16)
    at Request.send (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/core/request.js:50:28)
    at async LauncherRepository.sync (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/repositories/launcher.repository.js:22:26)
(node:15897) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15897) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

:/

await ig.user.info(ig.state.cookieUserId); didn't fix my error:
(node:15897) UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/launcher/sync/ - 400 Bad Request; No valid ID given
    at Request.handleResponseError (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/core/request.js:121:16)
    at Request.send (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/core/request.js:50:28)
    at async LauncherRepository.sync (/storage/emulated/0/Insta-Bot/node_modules/instagram-private-api/dist/repositories/launcher.repository.js:22:26)
(node:15897) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15897) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

:/

await ig.user.info(ig.state.cookieUserId); is not there to fix your error.
You did not generate the device.
After creating the ig instance, call ig.state.generateDevice(seed).

So I should generate a device before loading a session too.

Oh no! :/
(node:23652) UnhandledPromiseRejectionWarning: IgCookieNotFoundError: Cookie "ds_user_id" not found

A new error again

Oh no! :/
(node:23652) UnhandledPromiseRejectionWarning: IgCookieNotFoundError: Cookie "ds_user_id" not found

A new error again

If this happens in the try-catch block: make sure you're in an async context.
If this is anywhere else: your state is invalid. Delete it.

If this happens in the try-catch block: make sure you're in an async context.
If this is anywhere else: your state is invalid. Delete it.

I have seen that this error occurs after a period of inactivity of the session, but discarding that session and obtaining a new one by logging in repeatedly can cause a temporary account lock.

I have seen that this error occurs after a period of inactivity of the session, but discarding that session and obtaining a new one by logging in repeatedly can cause a temporary account lock.

This should not occur if the cookies are saved and sent correctly. And if this only happens after a longer longer period this shouldn't be an issue.

This should not occur if the cookies are saved and sent correctly. And if this only happens after a longer longer period this shouldn't be an issue.

Yes, I think it is because this session value ds_user_id is sometimes not stored, however the other values are.
I use exactly this function to store the session:
ig.request.end$.subscribe(async () => {
    const serialized = await ig.state.serialize();
    delete serialized.constants;
    save(serialized);
});

I am not sure why it happens, but I was able to fix it instead of replacing my session in the json file, I update the session with the new values, preventing missing some session keys like ds_user_id

So sometimes it doesn't store some sessions values like `` inside the .json

I just saw how you have to change the try catch block:
    if (exists()) {
        await ig.state.deserialize(...);
        await ig.user.info(ig.state.cookieUserId);
        shouldLogin = false;
    } else {
      await ig.simulate.preLoginFlow();
    }

This way you only do this before logging in.
But I just tested the code and it works fine. Your cookie not found error should not show up because it's ignored by the empty catch block.

Hi there, im into the same @SaliZumberi issue:
IgCookieNotFoundError: Cookie "ds_user_id" not found
Im running this code in server mode, vercel environment here my instagram login function:
const instagramLogin = async (file, caption) => {
  const IG_SESSION_KEY = 'instagram-session';
  const IG_USERNAME = process.env.IG_USERNAME;
  const IG_PASSWORD = process.env.IG_PASSWORD;
  const start_time = Date.now();
  const ig = new IgApiClient();
  ig.state.generateDevice(IG_USERNAME);
  const serialized_session = await Shared.getJsonObject(IG_SESSION_KEY).catch(
    (error) => {
      console.warn('No serialized session found', error);
      // ignore when error
    }
  );
  let shouldLogin = true;
  try {
    if (serialized_session) {
      await ig.state.deserialize(serialized_session);
      await ig.user.info(ig.state.cookieUserId);
      const user_info = await ig.user.info(ig.state.cookieUserId);
      console.debug(user_info);
      shouldLogin = false;
    }
  } catch (error) {
    console.warn('Error while trying to restore the session', error);
  }
  if (shouldLogin) {
    ig.request.end$.subscribe(async () => {
      const serialized = await ig.state.serialize();
      delete serialized.constants;
      console.log(
        '>>> serialized session',
        serialized,
      );
      await Shared.storeJsonObject(IG_SESSION_KEY, serialized);
    });
    const auth = await ig.account.login(IG_USERNAME, IG_PASSWORD);
    console.debug(auth);
  }
  const duration = (Date.now() - start_time) / 1000;
  return {
    duration,
  };
};

i use the session example from repo with some code enhancements from this issue, the ig.account.login should be executed when no session or when session expired (i think) the best way to achieve that is deserialize the session and calling user info to see if the cookie is still valid and perform re-login, but im stuck on Cookie "ds_user_id" not found issue.
Any advice with that? thanks !!!

Hi, I had the same issues that load session returns Cookie "ds_user_id" not found.
I found it because I changed the API version in core/constants.js; it won't return the cookies in session.
Replace APP_VERSION with "<IP_ADDRESS>.119"
and APP_VERSION_CODE with "185203708"
I hoped this help you guys


KinematicCharcaterController: the up vector cannot point downward

Hello, I'm working on a game where I can reverse gravity. By doing that, I need to be able to switch the direction of the up vector of the KinematicCharcaterController so that it points downward.
But as soon as I set the up vector to Vec2::new(0.0, -1.0) the game crashes, stating that "The loosening margin must be positive" (parry2d is throwing this error message).
For your information, the same problem occurs if I set the up vector to Vec2::new(-1.0, 0.0).
I don't know if it's intended but because of that, I cannot manage to have the grounded property of the KinematicCharcaterControllerOutput to be true when the player touches the "ground" once the gravity is reversed.
Here is a small example illustrating the issue, just change the up attribute of the KinematicCharacterController component to Vec2::NEG_Y and the game will crash (bevy_rapier2d version used : v0.22.0):
use bevy::prelude::*;
use bevy_rapier2d::prelude::*;

fn main() {
    App::new()
        .insert_resource(ClearColor(Color::rgb(
            0xF9 as f32 / 255.0,
            0xF9 as f32 / 255.0,
            0xFF as f32 / 255.0,
        )))
        .add_plugins((
            DefaultPlugins,
            RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(100.0),
            RapierDebugRenderPlugin::default(),
        ))
        .add_systems(Startup, (setup_graphics, setup_physics))
        .add_systems(Update, gravity)
        .run();
}

fn setup_graphics(mut commands: Commands) {
    commands.spawn(Camera2dBundle {
        transform: Transform::from_xyz(0.0, 20.0, 0.0),
        ..default()
    });
}

pub fn setup_physics(mut commands: Commands) {
    /*
     * Ground
     */
    let ground_size = 500.0;
    let ground_height = 10.0;

    commands.spawn((
        TransformBundle::from(Transform::from_xyz(0.0, 10.0 * ground_height, 0.0)),
        Collider::cuboid(ground_size, ground_height),
    ));

    /*
     * Player
     */
    commands
        .spawn(KinematicCharacterController {
            up: Vec2::Y, // if up = Vec2::NEG_Y, the game crashes
            ..default()
        })
        .insert(
            (TransformBundle::from(Transform::from_xyz(16., 0., 0.0)),
            Collider::cuboid(10.0, 10.0)
        ));
}

fn gravity(
    mut player_query: Query<&mut KinematicCharacterController>,
    player_output_query: Query<&KinematicCharacterControllerOutput>
) {
    for mut controller in &mut player_query {
        controller.translation = Some(Vec2::new(0.0, 1.0)); // Since the gravity is reversed, the player goes upward
    }

    for player_output in &player_output_query {
        println!("Player is on the ground: {}", player_output.grounded);
    }
}

I think this is fine, just missed and .abs() for the loosening

Okay this seems to work, thank you. The game no longer crashes when I set the up vector to Vec2::NEG_Y.
Where am I supposed to put the .abs() please?
Because for now I've placed it directly inside the lossened function as a temporary workaround, like this:
#[inline]
fn loosened(&self, amount: Real) -> Aabb
    assert!(amount.abs() >= 0.0, "The loosening margin must be positive.");
    Aabb {
        mins: self.mins + Vector::repeat(-amount),
        maxs: self.maxs + Vector::repeat(amount),
    }
}

And this causes a new issue: the player is not blocked by the floor when the up vector is reversed. When it touches the ground, player_output.grounded switches to true, so this part of the problem is fixed, but the player slowly go through the floor before falling again at normal speed once it is on the other side.

Try adding the abs before the assert like let amount = amount.abs();

I still have the same problem.
But doing that is the same as placing .abs() directly inside the assert isn't it?
Here is what I did:
#[inline]
fn loosened(&self, amount: Real) -> Aabb {
    let amount = amount.abs();
    assert!(amount >= 0.0, "The loosening margin must be positive.");
    Aabb {
        mins: self.mins + Vector::repeat(-amount),
        maxs: self.maxs + Vector::repeat(amount),
    }
}

It wouldn't be the same thing the mins would be constrained not loosened if it was negative.

Of course, my bad. I was focused on the assert!(...) and did not pay attention to what was happening with the amount variable after it.
But since there is still this issue with the player going through the floor, which should be solid, I think that there is something else to fix.
If you have any ideas I'm interested, as I have very little knowledge on how rapier works under the hood, and in any case I'll try to investigate when I've got some time.


Add method leaves state of entity as Unchanged if dependent of a one-to-one relationship with an FK in shadow state

From https://stackoverflow.com/questions/50183066/adding-entity-to-dbsett-does-not-mark-entity-as-added-and-thus-is-not-commited.
I was able to repro this myself and I find the behavior surprising so I suspect it is a bug.
In general, I expect the entity passed to the Add method to be left in the Added state. For this particular model, the entity is added to the DbContext but in the Unchanged state.
Note that if I replace the shadow property with a real property the entity becomes added as expected when you call Add()
Repro:
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;

namespace ConsoleApp16
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var dbContext = new Context())
            {
                dbContext.Database.EnsureDeleted();
                dbContext.Database.EnsureCreated();
                // reading works well
                var readEntity = dbContext
                    .Set<Attributes>()
                    .First(a => a.Person.Id == 1);

                Console.WriteLine($"Read entity has attributes value: {readEntity.Attribs}");
            }

            using (var dbContext = new Context())
            {
                var person = dbContext
                    .Set<Person>()
                    .First(p => p.Id == 2);

                var attributes = new Attributes
                {
                    Person = person,
                    Attribs = "some"
                };

                var state = dbContext
                    .Set<Attributes>()
                    .Add(attributes);
                Console.WriteLine($"State: {state.State}");

                var count = dbContext
                    .SaveChanges();
                Console.WriteLine($"Changes written: {count}");

                if (count == 0)
                {
                    Console.WriteLine("Trying again with explicitly setting entity state to Added.");

                    state.State = EntityState.Added;
                    count = dbContext.SaveChanges();

                    Console.WriteLine($"Changes written in second try: {count}");
                }
            }

            Console.WriteLine("done");
            Console.ReadLine();

        }
    }
    public class Person
    {
        public int Id { get; set; }

        public string Name { get; set; }
    }

    public class Attributes
    {
        // public int PersonId { get; set; } // uncomment this and it works as expected
        public Person Person { get; set; }
        public string Attribs { get; set; }
    }

    public class Context : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder
                .UseSqlServer(
                    @"server=(localdb)\mssqllocaldb;database=onetoone;integrated security=true;connectretrycount=0");
        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder
                .Entity<Attributes>()
                .Property<int>("PersonId");

            modelBuilder
                .Entity<Attributes>()
                .HasKey("PersonId");

            modelBuilder
                .Entity<Attributes>()
                .HasOne(a => a.Person)
                .WithOne()
                .IsRequired();

            modelBuilder
                .Entity<Attributes>()
                .Property(a => a.Attribs)
                .HasColumnName("Attributes");

            modelBuilder
                .Entity<Attributes>()
                .HasData(
                    new { PersonId = 1, Attribs = "Transparency" });

            modelBuilder
                .Entity<Person>()
                .HasData(
                   new Person { Id = 1, Name = "James" },
                   new Person { Id = 2, Name = "Naomi" });
        }
    }
}

@ajcvickers thoughts on this?

@divega This works for me on RC1. Which version did you test with?

I found this issue using version 2.0.2
see https://github.com/MarcusKohnert/EntityNotWrittenToDB/blob/f2abcb0f5bacd555205bfb353fe2bdb667ef31aa/EntityIsNotInStateAdded/EntityIsNotInStateAdded.csproj#L35
With RC1 you mean 2.1-RC1?

@MarcusKohnert Yes, 2.1-RC1. @divega's repro uses 2.1 features, so I am assuming that he was able to reproduce this on some version of 2.1.

@ajcvickers Yes, I originally tried with EF Core 2.1-preview2 and it did repro. I have just confirmed that this works correctly with EF Core 2.1 RC1 :tada:
Perhaps it is a duplicate of #10388?

Thanks for clarification.
We'll update as soon as you RTM 2.1.

@MarcusKohnert in case it helps: RC1 was released today and it comes with “go live” support. See https://blogs.msdn.microsoft.com/dotnet/2018/05/07/announcing-entity-framework-core-2-1-rc-1/#go-live-support for more details.

@divega Thanks for suggesting but we aren't that quick in our release cycles. 😆


audit-avt1-accordion: down-shift label

Environment:

Operating system: Mac
Browser: Chrome
AVT :one:
Page: Components - Accordion: Style

Detailed Description:
The 'id' "downshift-5-label" specified for the WAI-ARIA property 'aria-labelledby' value is not valid

What to do:
Update the WAI-ARIA property value with the unique id value of a valid visible element.
Why is this important?
Any element that uses a WAI-ARIA property must reference a valid id attribute. This enables assistive technologies to precisely identify the referenced element.

add a label right before the "theme variant" and then "visually hide" (class variant) - apply get label props. https://github.com/downshift-js/downshift#getlabelprops


Add job config for MacOS bazel C/C++ tests on PRs

Prerequisite for creating the kokoro jobs (I will create them once tests pass reliably on master).

Kokoro config for new jobs only, merging.


Missing relevant file/line number on error message

When I run flow on this tree, I get the following error:
/Users/danvk/github/pileup.js/types/types.js:1:1,5:1: GenomeRange
This type is incompatible with
  /Users/danvk/github/pileup.js/src/ContigInterval.js:41:18,31: ContigInterval

Found 1 error

This is just saying that two types aren't compatible. It doesn't say anything about where I attempted to convert the one to the other (which is where the error really is).
(FWIW the error is really on src/BigBedDataSource.js:96:53)
I'm on flow 0.6.0.

This is completely maddening. Without line numbers, fixing type errors is a complete guessing game. @gabelevi any guesses on how to deal with this?

You can use --traces to get some more line numbers.

When I use --traces on that tree, I get the exact same output as before:
$ flow check --traces

/Users/danvk/github/pileup.js/types/types.js:1:1,5:1: GenomeRange
This type is incompatible with
  /Users/danvk/github/pileup.js/src/ContigInterval.js:41:18,31: ContigInterval

Found 1 error

Came here to post this. Unification error messages should ideally be something like:

location where thing1 is expected to have type1
location where thing2 is expected to have type2
location where thing1 and thing2 are used in an incompatible fashion

Right now we just get the location of definitions of type1 and type2, which is almost irrelevant information to the problem. :(

Here's a fairly minimal repro:
/** @flow */

class Foo {}
class Bar {}

function foo(x: Foo): boolean {
  return x ? true : false;
}

function foobar() {
  var b = new Bar();
  return foo(b);
}

The error is:
/Users/danvk/code/toy-flow/baderror.js:4:7,9: Bar
This type is incompatible with
  /Users/danvk/code/toy-flow/baderror.js:6:17,19: Foo

Line 4 (class Bar {}) is useless in the error. Line 6 (function foo(x: Foo)) is somewhat helpful.
The error message isn't useful until it mentions line 12 (foo(b)), which is where the error is.

Note this is also a problem when using [libs]:
# .flowconfig
[libs]
lib/

# lib/example.js
declare class TextEditor {}

declare function getActiveTextEditor(): ?TextEditor;

# src/code.js
/* @flow */

function log(editor: TextEditor) {
  console.log(editor);
}

var activeEditor = getActiveTextEditor(); // Where Flow tells you to look.

log(activeEditor); // Where the problem is.

Output from running flow check --traces (note --traces does not help):

/private/tmp/flow-bug/src/code.js:7:20,40: null
This type is incompatible with
  /private/tmp/flow-bug/lib/example.js:1:1,27: TextEditor

/private/tmp/flow-bug/src/code.js:7:20,40: undefined
This type is incompatible with
  /private/tmp/flow-bug/lib/example.js:1:1,27: TextEditor

Found 2 errors

As of flow 0.11.0, the error for the above example has become:
/Users/danvk/code/toy-flow/baderror.js:12:10,15: function call
Error:
/Users/danvk/code/toy-flow/baderror.js:4:7,9: Bar
This type is incompatible with
/Users/danvk/code/toy-flow/baderror.js:6:17,19: Foo

Found 1 error

which is infinitely better. I'm going to close this out—I'll reopen if I run into it again.

Unfortunately, #409 means that while this is an improvement, it's not an improvement that matters for anything more complicated than a toy example. Once you get beyond a single module, the error is lost.


Fix: adapt logs handler to jobs

Handle logs using only job's methods (and not experiment's)

Handle progress bar in real time (logging progression at the same line)

Create a LogMonitor class to monitor the log of one job

Create a LogTailer class to handle each line of a log file

Add a utils file to get the Picsellia client and job

I would personally slightly change the folder hierarchy for the base/ folder, something like :
base/
|-- logs/
|   |-- __init__.py
|   |-- handler.py (previously logs_handler.py)
|   |-- monitor.py (previously log_monitor.py)
|   |-- tailer.py (previously log_tailer.py)
|
|-- utils/
|   |-- __init__.py
|   |-- picsellia.py (i guess this should conflict with the picsellia package by calling utils.picsellia)

I would personally slightly change the folder hierarchy for the base/ folder, something like :
base/
|-- logs/
|   |-- __init__.py
|   |-- handler.py (previously logs_handler.py)
|   |-- monitor.py (previously log_monitor.py)
|   |-- tailer.py (previously log_tailer.py)
|
|-- utils/
|   |-- __init__.py
|   |-- picsellia.py (i guess this should conflict with the picsellia package by calling utils.picsellia)

The folder "utils" was also conflicting with the utils folder/file of training images, should I replace it with

|-- base_utils/
|   |-- init.py
|   |-- picsellia_utils.py

Or do you have a better suggestion  ?


Not all properties detected are correctly translated in ResolveMethodCallTestFile.java

The test for ResolveMethodCallTestFile.java should report all detected curves. Currently only the last curve is reported but three times.

Fixed by refactoring translation #106


Could not find class 'de.hdodenhof.circleimageview.CircleImageView$OutlineProvider'

Hi,
I am have an error Could not find class 'de.hdodenhof.circleimageview in my android studio project,
here's my build.gradle settings,
thankyou
apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        vectorDrawables.useSupportLibrary = true
        applicationId "com.fuad.youtube"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support:recyclerview-v7:26.1.0'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.android.support:design:26.+'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation ("com.github.bumptech.glide:glide:4.6.1") {
        exclude group: "com.android.support"
    }
    implementation "com.android.support:support-fragment:26.1.0"
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

Where exactly do you get that error? What's the full stack trace?

Returning to 2.1 "resolves" this as that version does not have an OutlineProvider.
Unfortunately I haven't been able to reproduce the issue. Any more details about your setup / the crashes / the devices you could share?

@mrifqifuady I have the same problem.At first I thought CircleImageView's problem.But I found another error log message.
04-14 17:20:04.784 4805 4805 E dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering

I found the culprit was resource files.If you have this error message too.You check to see if you use the  in the drawable-v21.But there is no file of the same name in the drawable.
I hope I can help you.

Hi,
Same problem here, I meet this problem with a emulator on Android API 19 :
"05-28 19:39:27.991 5048-5048/com.tadaweb.tadamobileapp.v4.debug W/dalvikvm: Unable to resolve superclass of Lde/hdodenhof/circleimageview/CircleImageView$OutlineProvider; (2763)
Link of class 'Lde/hdodenhof/circleimageview/CircleImageView$OutlineProvider;' failed
05-28 19:39:27.991 5048-5048/com.tadaweb.tadamobileapp.v4.debug E/dalvikvm: Could not find class 'de.hdodenhof.circleimageview.CircleImageView$OutlineProvider', referenced from method de.hdodenhof.circleimageview.CircleImageView.init
05-28 19:39:27.991 5048-5048/com.tadaweb.tadamobileapp.v4.debug W/dalvikvm: VFY: unable to resolve new-instance 6086 (Lde/hdodenhof/circleimageview/CircleImageView$OutlineProvider;) in Lde/hdodenhof/circleimageview/CircleImageView;
05-28 19:39:27.991 5048-5048/com.tadaweb.tadamobileapp.v4.debug D/dalvikvm: VFY: replacing opcode 0x22 at 0x000e
05-28 19:39:27.991 5048-5048/com.tadaweb.tadamobileapp.v4.debug W/dalvikvm: Unable to resolve superclass of Lde/hdodenhof/circleimageview/CircleImageView$OutlineProvider; (2763)
Link of class 'Lde/hdodenhof/circleimageview/CircleImageView$OutlineProvider;' failed
"
The XML :
"<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/display_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@android:color/white"
android:padding="2dp"
app:srcCompat="@drawable/usernameicon" />"
I didnt understand your comment @pengfeigao what do you means? Whichs resources?

@AntoGeekz does this actually cause any problems or is it just about the log output?

No crash, but images are not displayed :/

That's strange. The logcat messages are actually expected on API levels < 21 and images should still be displayed. Does it work if you replace CircleImageView with a regular ImageView and what kind of Drawable are you trying to display? Some snippets (Java / XML) of your setup would also help to look into the issue.

Not sorry, I deleted my previous comm', it was a mistake from myself. Actually yes, it works, the image is showed. It's weird because I thought I had another problem but it seems not... all is working even I I have this log.

Great, I'll close this issue then.

thankyou

Its simply because you are using android 4.2 or similar, then change to 2.1v


tweak the order of index priority

Previously, uv would always prioritize the index given by
--index-url. It would then try any indexes after that given by zero
or more --extra-index-url flags. This differed from pip in that any
priority was given at all, where pip doesn't guarantee any priority
ordering of indexes.
We could go in the direction of mimicing pip's behavior here, but it
at present has issues with dependency confusion attacks where packages
may get installed from indexes you don't control. More specifically,
there is an issue of different trust levels. See discussion in #171 and
PEP-0708 for more on the security impact.
In contrast, uv will only select versions for a package from a single
index. That is, even if foo is in indexes a and b, it will
only consider the versions from the index that it checks first. This
probably helps with respect to dependency confusion attacks, but also
means that uv doesn't quite cover all of the same use cases as pip.
In this PR, we retain the notion of prioritizing indexes, but
tweak it so that PyPI is preferred last as opposed to first. Or
more precisely, the --index-url flag specifies a fallback index,
not the primary index, and is deprioritized beneath every index
specified by --extra-index-url. The ordering among indexes given by
--extra-index-url remains the same: earlier indexes are prioritized
over later indexes.
While this tweak likely won't hit all use cases, I believe it will
resolve some of the most common pain points without exacerbating
dependency confusion problems.
Ref #171, Fixes #1377, Fixes #1451, Fixes #1600

I believe this helps with dependency confusion attacks. If I'm providing an extra index URL that's usually the index that I control. The attack would be that someone uploads a package with the same name to the primary index (i.e. PyPI) and suddenly we use that package instead of the one I intend to.

If I'm providing an extra index URL that's usually the index that I control

As a counter-point (not suggesting this is the most common) - we use extra-index-url to install a vendor library (we pay them for access), and the index is horribly slow.

I just ran into an issue which is caused by this change.
My company uses a private index, and thus I have some script which is run with UV_EXTRA_INDEX_URL=<private-index-url>.
The following issue happened when uv venv --seed is run inside the aforementioned script:
#15 0.746 Creating virtualenv at: /app/.venv
#15 0.775 uv::venv::seed
#15 0.775
#15 0.775   × Failed to install seed packages
#15 0.775   ├─▶ No solution found when resolving: pip, setuptools, wheel
#15 0.775   ├─▶ Failed to download and build: pip==20.2.4
#15 0.775   ╰─▶ Building source distributions is disabled

After digging a bit, and trying to understand why this oldpip==20.2.4 was getting installed, I found that someone uploaded an old version of pip into the private index.
I don't know if the error results from an invalid pip wheel on the private index, or some version incompatibilities, but it made me realize that as soon as someone publishes a version of a public package in our private index, then it will potentially break all libs or apps which depend on a different version of the package.
Is there any plan to mitigate this issue ?
Thanks !

For clarity, you can always revert to the previous behavior by inverting the order:
--index-url=<private-index-url> --extra-index-url=https://pypi.org/simple

This would tell uv to look in PyPI first, and then only fall back to your index if a package doesn't exist on PyPI.

How does this interact with --find-links?


Traduzir writing-extensions.adoc.po

Fixes #121

@ynojima any clue on why the build failed?

The same commit (2ad15c1) is now merged into main by https://github.com/quarkusio/pt.quarkus.io/pull/127 .
It seems this happens when the pull-request is not up-to-date. Merging upstream's origin/main into the pull-request branch resolves this issue.

@ynojima thanks for looking into it! I'll keep that in mind for next commits.


Remove simulator hypervisor plugin

Combined build running here: https://beta-jenkins.mcc.schubergphilis.com/job/cosmic/job/0002-tracking-repo-branch-build/130/

ping @bheuvel
Build is green, see: https://beta-jenkins.mcc.schubergphilis.com/job/cosmic/job/0002-tracking-repo-branch-build/130/


Always enable race detection while running tests

Always enable race detection while running tests. This is useful for detecting simpler data races in code.
Always enable race detection while running tests

/retest

/retest

/retest

/lgtm

/approve


Logger docstrings cleanup

[x] For https://mosaicml-composer--499.com.readthedocs.build/en/499/api_reference/composer.loggers.html#module-composer.loggers, could you elaborate more on the logger system architecture? I think a flow chart here could be helpful -- e.g. algorithms and callbacks can make calls to the logger, which then routes the calls to the logging backends. For the example logger, would it make sense to also show how flushing may want to be done on batch_end (after some interval) or epoch_end?
[x] Could you move the example to https://mosaicml-composer--499.com.readthedocs.build/en/499/api_reference/composer.core.logging.base_backend.html#composer.core.logging.base_backend.LoggerCallback, and then reference this example from the module-level docstrings?
[x] For the file logger filename, can you comment that this is relative to the run directory (and link to composer.utils.run_directory?)
[x] For the hparam classes, can you enumerate the parameters (similar to what you did for the algorithm hparams)? From the docs page, it isn't clear what the values are for each hparams class. (For the individual parameters, I think it's cool to say something like see FileLogger rather than repeating the docstring)
[x] For the in memory logger, what does "Be sure to confirm logger.backends index." mean?
[x] For the wandb logger, can you have the run_directory auto-link to composer.utils.run_directory

Originally posted by @ravi-mosaicml in https://github.com/mosaicml/composer/issues/499#issuecomment-1043735660

For the example, I'm tempted to keep it simple in the docstring and also link to the logging tutorial (and possibly the source for a LoggingCallback).

Fixed in #544


feat: Make MenuButton menu dismissible by esc/click outside the menu

🙋 Feature Request
The usability of MenuButton could be enhanced by making the menu dismissible by keyboard or clicking outside the menu.
I don't know of an instance where the current would be desirable.
See:
https://brave-cliff-0c0c93310.azurestaticapps.net/Lab/MenuButton
The enhancement would make building applications with components such as account menu much easier.

🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

🔦 Context

💻 Examples

Both dismissible by keyboard (escape) and clicking outside the menu now work. See the example in the demo site.
Had to add a bit of JavaScript interop so there is now also a MenuButton.js file that needs to be copied to get this working in your own project. Remember to update the path to this collocated file in your own source!


nr storage response public variables

Fix problem with access level to NRStorageResponse variables

@alexkater I have to look into why CI is failing. I've stopped using Firebase in my project. What is the latest version of FirebaseDatabase and FirebaseStorage frameworks?

I'm using
Using Firebase (5.0.0)
Using FirebaseAnalytics (5.0.0)
Using FirebaseAuth (5.0.0)
Using FirebaseCore (5.0.0)
Using FirebaseDatabase (5.0.0)
Using FirebaseInstanceID (3.0.0)
Using FirebaseStorage (3.0.0)


[Bug][Bitbucket] Error in collectGitCommits mysql, Incorrect string value unicode

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
gitextractor task failed.

subtask collectGitCommits ended unexpectedly Wraps: (2) Error 1366 (HY000): Incorrect string value: '\xFChn\x0A' for column 'message' at row 38 (500) Wraps: (3) Error 1366 (HY000): Incorrect string value: '\xFChn\x0A' for column 'message' at row 38 Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *mysql.MySQLError

What do you expect to happen
Being able to import git history, with no crash in Task.
How to reproduce
Caused by importing commit https://github.com/apache/nuttx-apps/commit/535566435364604265cdac368c16c79ecc48926c

NET: Another missing header file. Noted by Manuel Stühn

Note the unicode character escaped from the title.
time="2024-03-20 19:41:59" level=info msg="\x1b[31;1m/app/impls/dalgorm/dalgorm.go:251 \x1b[35;1mError 1366 (HY000): Incorrect string value: '\\xFChn\\x0A' for column 'message' at row 38\n\x1b[0m\x1b[33m[17.757ms] \x1b[34;1m[rows:0]\x1b[0m
INSERT INTO `commits` (`created_at`,`updated_at`,`_raw_data_params`,`_raw_data_table`,`_raw_data_id`,`_raw_data_remark`,`sha`,`additions`,`deletions`,`dev_eq`,`message`,`author_name`,`author_email`,`authored_date`,`author_id`,`committer_name`,`committer_email`,`committed_date`,`committer_id`) VALUES
('2024-03-20 19:41:59.109','2024-03-20 19:41:59.109','','',0,'','de5c7fa462debb0b33a7490ac62a44a3296c9058',61,61,0,'NxWM: Slightly improvied minimize icon\n','Gregory Nutt','gnutt@nuttx.org','2014-07-14 01:36:30','gnutt@nuttx.org','Gregory Nutt','gnutt@nuttx.org','2014-07-14 01:36:30','gnutt@nuttx.org'),
('2024-03-20 19:41:59.109','2024-03-20 19:41:59.109','','',0,'','535566435364604265cdac368c16c79ecc48926c',2,0,0,'NET: Another missing header file.  Noted by Manuel St\xfchn\n','Gregory Nutt','gnutt@nuttx.org','2014-07-05 13:06:51','gnutt@nuttx.org','Gregory Nutt','gnutt@nuttx.org','2014-07-05 13:06:51','gnutt@nuttx.org'),

Anything else
No response
Version
558dabc
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

Seems to be fixable with:
ALTER TABLE commits MODIFY COLUMN message LONGTEXT CHARACTER SET binary;

Hi, @duhow , Thanks for reporting the issue, seems like adding a migration script could fix the problem, would you like to work on it?

Here is a PR for your reference https://github.com/apache/incubator-devlake/pull/4685/files


FAILURE: Build failed with an exception. Execution failed for task ':app:flutterBuildDebug'.

Launching lib/main.dart on SM N9100 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:flutterBuildDebug'.

A problem occurred starting process 'command '/Users/louis/flutter/bin/flutter''

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Get more help at https://help.gradle.org

BUILD FAILED in 11s
Finished with error: Gradle build failed: 1

Please add the output of flutter doctor -v.

@zoechi Thanks for your prompt reply. I found that my project location contains non-ASCii (e.g. chinese, korean, japanese) characters.

Glad to hear. Thanks for the update!


fixes #1891 by making executeAnonFuncs default to true

can.compute.read will executeAnonymousFunctions to true, so even if it's not passed, that behavior is still present.

This should probably go into master. It also is a regression in 2.2.6


Add option to hide pagination for single page result

I need to hide pagination when total pages are one/zero. There is also related issue here, https://github.com/mgwidmann/scrivener_html/issues/75.
This PR adds a global option with key hide_single or you can set it as an option in pagination_links function i.e. pagination_links(conn, page, hide_single: true). (also open to change the option to a different name, can't think of a better name at the moment).
All tests are passing. Let me know if this is something you like or don't like. I'm okay with either decision. I can definitely hide the pagination in the template, but it's probably convenient to have it as an option.

Tests are failing. I'll fix them.

I'd like to merge after the documentation is additionally updated.

I'll try to resolve this within a day or two.

@mgwidmann I think I fixed them based on the feedback.


Update 05/11

[ ] The commits are squashed in a cohesive manner and have meaningful messages.

/lgtm


Add preprocessRecord function

See https://github.com/senzing-garage/garage-roadmap/issues/22

Implemented


Change default stencil read and write mask values

stencil_write_mask

Done in a separate commit. I also adjusted stencil_ref type.


check if using irods user zone

Only sets user zone session variables if REMOTE_USE_IRODS is set to True

fixes breaking builds in non-federated environments (local dev)

@hyi, @pkdash - Failed check is the test_sax_parsing
Checks if iRODS user zone is being used:

if True it will set_fed_zone_session
if False it will ignore

Allows builds to succeed in local env where federation is not set

+1


Fix bug on mixin init

Quick fix for the bug reported by @rsbondi
https://github.com/muut/riotjs/pull/728#issuecomment-102737821

Coverage decreased (-0.13%) to 91.06% when pulling 92a07b081dfb1cbf1ee913ff010f6e19d08c46bf on cognitom:fix-init-mixin-issue into d229296af7edfd7d5e48868df584d0f0c7eac82f on muut:dev.