Version packages (rc1)

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish 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.
⚠⚠⚠⚠⚠⚠
main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.
⚠⚠⚠⚠⚠⚠
Releases
<EMAIL_ADDRESS>Patch Changes

57b2a27: wait for element resolving in filter methods

@jnicklas @jbolda Shouldn't the patch in @interactors/core cause a patch in @interactors/html and as a result basically everything else?

I think there is no need to patch, because @interactors/core is used with ^ sign in @interactors/html deps

Don't we want html pinned to core?

Also, it should still create a patch in both even if not pinned.

Don't we want html pinned to core?

I think it's better to use semver and for break changes up major or at least use ~ instead of ^

@jnicklas @jbolda Shouldn't the patch in @interactors/core cause a patch in @interactors/html and as a result basically everything else?

If I recall correctly, it might only traverse one "level" of deps.

We don't want to commit to a 1.0 semver of core though. It's a "private" package, and shouldn't really be used outside of this repository.


stack overflow error

PDU is generally very fast. I ran pdu on a rather large filesystem and I get the following error
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
[1]    37874 abort (core dumped)  pdu

I haven't seen a filesystem so deep that it exceeds the stack. I suspect your filesystem in question has some circular mounts, which pdu does not know how to handle (see Limitations).


Change relative import paths to non-relative path aliases

Related to #748

Changes relative import to non-relative imports using path aliases.

Have you considered changing the relative imports to the actual folder?
For example having:
import { ConfigurationModule } from<EMAIL_ADDRESS>
instead of
import { ConfigurationModule } from './configuration.module';

I thought about it, but I opted for allowing relative imports for files that live in the same folder for brevity. I have no opinion on that, we could use non-relative imports everywhere for consistency, what do you think? Any preference?

I thought about it, but I opted for allowing relative imports for files that live in the same folder for brevity. I have no opinion on that, we could use non-relative imports everywhere for consistency, what do you think? Any preference?

For consistency I would do it also for the non-relative imports everywhere. Seems to be a clearer rule to follow.

I thought about it, but I opted for allowing relative imports for files that live in the same folder for brevity. I have no opinion on that, we could use non-relative imports everywhere for consistency, what do you think? Any preference?

For consistency I would do it also for the non-relative imports everywhere. Seems to be a clearer rule to follow.

Done in f3dfbe0


Solved Linked about.html to about.css and added image #1271

Solved Linked about.html to about.css and added image #1271
This PR addresses the following updates for the about.html page:

Linked about.html to about.css:
The about.html page was missing the link to its CSS file, causing styling inconsistencies. This has now been resolved by properly linking the about.css file.
Updated Hero Section:
A new image has been added to the "About Us" hero section to improve visual appeal and create a more engaging user experience.
UI Enhancements:
The color of the "About Us" heading and paragraphs has been updated to improve readability and overall design aesthetics.

These changes are intended to enhance the visual appeal and user experience of the "About Us" page.
Before:

After:

@ Awesome contribution to Hacktoberfest'24! 🎉 Your work is super valuable. Keep up the great work!


Temporary Files are not Removed

Currently the iiif manifest that is passed to the universal viewer is stored using a named temporary file. The plan was to allow the file to be deleted after the app is done using it, but with how the current code is structured it was necessary to set the delete parameter to false. This means that the files stick around in the data directory after the app is closed. Im currently just manually deleting them, but the code should be refactored so that the files will be deleted automatically after the app is closed.

Yeah, good one. The same needs to happen for the mmif-visualizer and its WebVTT files, so maybe we should table this till our two visualizers are unified.


chore: super crates

📚 $\text{Stack Overview}$
Pulls submitted in this stack:

#105 👈
main

This comment was automatically generated by st.


Tools 2854

This PR add the ability to add yaml files from the default locations. Before, the yaml file had to be provided explicitly as a flag. Now, we will try to load the file, if it fails, try to load it again as a toml file with .conf extension.
Technically, the conf file could be any format excepted by viper

Codecov Report
Attention: Patch coverage is 2.64026% with 295 lines in your changes are missing coverage. Please review.

Project coverage is 61.23%. Comparing base (d938633) to head (99490f4).
Report is 2 commits behind head on main.

Files
Patch %
Lines

testutils/containers.go
0.00%
282 Missing :warning:

config/conf.go
38.09%
13 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #13       +/-   ##
===========================================
- Coverage   86.92%   61.23%   -25.70%
===========================================
  Files          15       16        +1
  Lines         696      988      +292
===========================================
  Hits          605      605
- Misses         70      363      +293
+ Partials       21       20        -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Xamarin Mac <IP_ADDRESS> added as new cask

If there’s a checkbox you can’t complete for any reason, that's okay, just explain in detail why you weren’t able to do so.
After making all changes to the cask:

[X] brew cask audit --download {{cask_file}} is error-free.
[X] brew cask style --fix {{cask_file}} reports no offenses.
[X] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[X] Named the cask according to the token reference.
[X] brew cask install {{cask_file}} worked successfully.
[X] brew cask uninstall {{cask_file}} worked successfully.
[X] Checked there are no open pull requests for the same cask.
[X] Checked the cask was not already refused in closed issues.
[X] Checked the cask is submitted to the correct repo.

This requires mono-mdk
installer: Error - Xamarin.Mac requires the Mono framework to be installed (3.2 or later).

Isn’t this a new version of https://github.com/caskroom/homebrew-cask/blob/master/Casks/xamarin.rb?

No, it's a different product from xamarin. (https://developer.xamarin.com/guides/mac/)
I use it to develop OSX apps using C#

I also forget the mono-mdk dep. Thanks again for the catch @commitay

Where are you getting <IP_ADDRESS> from? The latest in the appcast is <IP_ADDRESS>.

Where are you getting <IP_ADDRESS> from?

https://releases.xamarin.com/stable-release-15-2/
The appcast is not showing any of the current versions for mono-mdk, visual-studio, etc.

I got this version from the previous appcast. Maybe, there was a downgrade in the stable version. Sounds weird but who knows ¯_(ツ)_/¯


Grid error: htmlspecialchars(): Argument #1 ($string) must be of type string, array given

Laravel Version: 8.45.1
PHP Version: PHP/8.0.6
Laravel-admin: 1.8.12

I can't add one of the fields to the grid, the moment I add it, it gives me the following error:
ViewException In helpers.php line 118 :
  htmlspecialchars(): Argument #1 ($string) must be of type string, array given (View: /home/test/vendor/encore/laravel-admin/resources/views/grid/inline-edit/comm.blade.php)

I have 2 tables, one is the event table and I have several fields and one of them is 'season_id' and the relationship with the other table is like this:
public function season()
    {
        return $this->belongsTo(Season::class);
    }

And then in the seasons table I have the following relationship:
public function events()
    {
        return $this->hasMany(Event::class);
    }

I do not understand the reason why it is returning an array to me, the grid I have like this:
$grid->season()->year(__('Season'))->sortable();
Thank for all!

Laravel Version: 8.45.1
PHP Version: PHP/8.0.6
Laravel-admin: 1.8.12

I can't add one of the fields to the grid, the moment I add it, it gives me the following error:
ViewException In helpers.php line 118 :
  htmlspecialchars(): Argument #1 ($string) must be of type string, array given (View: /home/test/vendor/encore/laravel-admin/resources/views/grid/inline-edit/comm.blade.php)

I have 2 tables, one is the event table and I have several fields and one of them is 'season_id' and the relationship with the other table is like this:
public function season()
    {
        return $this->belongsTo(Season::class);
    }

And then in the seasons table I have the following relationship:
public function events()
    {
        return $this->hasMany(Event::class);
    }

I do not understand the reason why it is returning an array to me, the grid I have like this: $grid->season()->year(__('Season'))->sortable();
Thank for all!

I have same issue


@change is triggered on load when given a value

I've already seen #1 and #2, but this does seem to still be happening.
I tried the is mounted fix, and that didnt stop it.
Do we know why this is happening or a workaround?

This issue is still present in 2.0.2, the @change event is triggered when the v-model is passed down to the toggle component.

This should only happen if the model value does not equal to trueValue or falseValue. If you experience otherwise feel free to reopen.


add remainder of needed dropdowns

cleanup Data.js code and get all the dropdowns/lists that will be needed populating and rendering

scooped up by Ben in related story


big_core - craeate golder tracker

Use python script to compare the register WRITE tracker.
Compare only the write reg & data without the timestamp!!

The i think this should be done is by running in the same TB, the same program on the big_core and the sc_core.
The sc_core is used as a "reference model".
Both the big_core & sc_core will create a tracker on the RF writes.
Then a Post-Prosses python script will compare the SC results vs the BIG_CORE results.
We are not expecting any diffs in the RF writes so this is a good sanity check.


remove default argument to set_trainable (was False)

Previously, calling set_trainable(model) actually set it to nontrainable, which is rather confusing.

:heavy_check_mark:  Verified that all calls of set_trainable are explicit (using git grep set_trainable)
LGTM subject to tests passing.

Is that code coverage test report correct though?


Implement a "certainty sampler" to return most anomalous objects

Created both the bare function implementation that contains the logic as well as the class version that allows the user to refer to the query strategy by the class name string: "CertaintySampling".
This should be considered placeholder code for now. The first item in the todo list is to verify the logic of the certainty_sampling function.
Still todo:

[ ] Verify logic
[ ] Confirm what anomaly value should be (0, 1)
[ ] Write tests

This looks good except for the few documentation comments I left!


server template

Am i able to get a server template you used in the setup video?
Thanks,
ooDVG

Hello,
Yes, you absolutely can! I do want to mention that using any version of older version of Hycord is unsupported, meaning that if you run into a lot of issues, I will not be able to offer as much support.
I highly recommend using the lastest release OR dev version (w latest commits) for newer features, and patched bugs. The version you are requesting is very outdated, although it should work fine.
Note that if there are certain aspects of the older versions that you like, that I changed in the newer versions, you can always make another issue ticket requesting the code for the old features, and I can do it for you. Or a faster way is you're familiar with github, is searing through that features past commits and seeing the chances.
Below I have attached a .zip file of the bot at relative to when that video was made. If you have any questions feel free to reach out!
Hycord-Bot-0.1.0.zip

Oh sorry for the confusion! I was talking about a discord server template.

No worries!
Here is a link to the template: https://discord.new/pdxrqAApR9Ee

Thank you!


Fixes issue with trigger function on organization creation

Fixes https://github.com/Netflix/dispatch/issues/1566
sqlalchemy.exc.InternalError: (psycopg2.errors.DependentObjectsStillExist) cannot drop function project_search_vector_update() because other objects depend on it
DETAIL:  trigger project_search_vector_trigger on table dispatch_organization_default.project depends on function project_search_vector_update()
HINT:  Use DROP ... CASCADE to drop the dependent objects too.

[SQL: DROP FUNCTION IF EXISTS project_search_vector_update()]

Function project_search_vector_update() is defined in the public schema and triggers under org schemas are pointing to it, hence the error when we're creating a new org and trying to drop the function.
I don't think the suggestion of adding CASCADE at the end of the SQL statement here is a good idea, because it mess with the other triggers pointing to it.
I think we have two options 1) we copy the trigger functions that live in the public schema that triggers point to to every org schema, update the triggers and delete the trigger functions from the public schema or 2) we disable dropping and recreating trigger functions on schema initialization and keep making triggers point to the trigger functions in the public schema.

Trigger function project_search_vector_update() is defined in the public schema and triggers under org schemas are pointing to it, hence the error when we're creating a new org and trying to drop the function.

I don't think this is true for all cases (maybe just in your local instance?). By public did you mean default?
I don't think this is the best way to solve this particular issue. Ideally, we don't want functions to cross the schema boundary.
Instead, I think we should make the function on a per-schema basis it looks like the create function allows us to prefix the function name with a prefix:
https://www.postgresql.org/docs/9.5/sql-createfunction.html
So we should probably modify the function here to accept a schema:
https://github.com/Netflix/dispatch/blob/master/src/dispatch/search/fulltext/__init__.py#L149

I don't think this is true for all cases (maybe just in your local instance?). By public did you mean default?

No, I meant public. It doesn't seem to happen on our prod env, but it's on the test one.


use relative bundle path for vanilla

close #110
close #111

https://codesandbox.io/s/react-typescript-forked-z3uy9?file=/src/App.tsx
The counter example.

I'm not sure if this really fixes the esm issue. Let's release it and see.


Update Ruby Buildpack

The ruby buildpack (don't know if it is an issue in other buildpacks as I only use the ruby one) needs to be updated as https://github.com/heroku/heroku-buildpack-ruby/issues/335 resolved time outs with the nodejs.org servers during deploy.
Without this update deployment for me is impossible.

Can you just update the https://github.com/progrium/buildstep/blob/master/builder/config/buildpacks.txt file with the right revision/tag as a PR?

Sure thing.
v130 fixed it but v133 is the latest which I am using and everything is working great.


Multilevel master details grids with different templates for each details grid.

I feel that in near future in will need grid with functionality master/detail grids with multilevel.
Is it achievable with this grid with some modifications?

Don't think this will work with ngReactGrid, maybe with https://github.com/josebalius/react-grid if you can come up with some more precise specs.


Temperature results do not display with VTK file

I would like to use itk-jupyter-widgets to view battery simulation results in a JupyterLab notebook. Previously I used K3D to view the VTK file (see example below).
import k3d
import vtk

filename = 'case1.vtk'

reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName(filename)
reader.Update()

geometryFilter = vtk.vtkGeometryFilter()
geometryFilter.SetInputData(reader.GetOutput())
geometryFilter.Update()

plot = k3d.plot()
thermal = k3d.vtk_poly_data(geometryFilter.GetOutput(), color_attribute=('Battery_Temperature', 296, 316))
plot += thermal
plot.display()

My attempt with the itk-jupyter-widget is shown below.
import vtk
from itkwidgets import view

file_name = 'case1.vtk'

reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName(file_name)
reader.Update()

geometryFilter = vtk.vtkGeometryFilter()
geometryFilter.SetInputData(reader.GetOutput())
geometryFilter.Update()
case1 = geometryFilter.GetOutput()

view(geometries=case1)

The itk widget will display the VTK file in the notebook but the temperature gradient from the simulation results is not visible. In K3D, the temperature results were defined with color_attribute=('Battery_Temperature', 296, 316) but I do not see how to accomplish this with the itk widget.

@wigging is it possible to share the case1.vtk to reproduce the behavior?

@thewtex Here is the case1.vtk file that I am working with.
case1.vtk.zip

@wigging thanks!

@thewtex Thank you for merging this feature. Do you know when it will be available as part of the pip package? Current version on pip is 0.17.1

@wigging it is now available in 0.18.0 :tada:


Update plugin to work with sanity v3

As sanity stops the support of v2 at the end of 2023, I'm hoping for an update on this plugin so that I can use it after migrating to v3.

+1 For this request.

As sanity stops the support of v2 at the end of 2023, I'm hoping for an update on this plugin so that I can use it after migrating to v3.

I create a plugin for v3. It is not perfect, but later I will improve this.
https://www.npmjs.com/package/sanity-plugin-document-reference-by?activeTab=readme
https://www.sanity.io/plugins/document-reference-by


Primary tool docs tasks for Firefox 68 (Irene)

See https://trello.com/c/iix8aZmH/195-primary-tool-updates-eg-console-css-pane-fx-68 for the original trello card.
Acceptance criteria

[ ] Add a 'chrome'/'content' filtering for the Browser Console — documented appropriately.

[ ] Allow to filter console by regular expression — documented appropriately.

[x] Add a way to emulate print media type from DevTools — documented appropriately.

[x] Display an indicator on properties with inactive CSS — documented appropriately.

Added the following to the release notes:
A button has been added to the rules panel of the Page Inspector that allows you to toggle display of any print media queries ({{bug(1534984)}}).
Added the following to the Page Inspector documentation:
Added information in two places within the inspector documentation. First, I updated the images at the top of the page to show the new UI, and then added a video in a section labeled: View @media rules for Print further down the page that shows the toggle in practice.

Added the following text to the section of the Inspector documentatation Examine CSS Rules as follows:
A warning icon appears next to unsupported CSS properties or rules that have invalid values. This can help you understand why certain styles are not being applied. In the following example, a spelling error, "background-colour" instead of "background-color" has made the rule invalid.
I also added an image to go with the text.
I also added a comment to the release notes.


Branch 161949540

@alextp these deletions to ops.pbtxt are auto-generated.
Looks like @jhseu should know about the underlying change.

@allenlavoie FYI, tensorflow/contrib/timeseries/python/timeseries:state_management_test is segfaulting in the PIP build:
https://ci.tensorflow.org/job/tensorflow-pull-requests-cpu-python3/5400/consoleFull
@tensorflow-jenkins test this please
testing again to see whether it is reproducible.

@allenlavoie Looks the failure in state_management_test is random. There may be other tests in contrib/timeseries that have the same problem. We will keep an eye on them. I'm merging this PR now.

Yeah, I can reproduce the same kind of flakiness for that test locally (passes, but segfaults after) without this PR. Odd since we're not using any timeseries-specific custom ops and it's not at all flaky internally. I'll try to track it down.


[Feature?]: Provide a way to disable code splitting

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
An option in app.config.ts to disable code splitting. Only a single JS file would be emitted in this case instead of splitting on route.
Examples 🌈
No response
Motivation 🔦
I am mangling property names with terser but because every page has its own bundle, the property names are not consistent between chunks causing breakage

possible duplicate of #1575


Errored while running command 'yarn' with arguments '' in 'dnd-core'

hi:

clone git clone https://github.com/react-dnd/react-dnd.git
cd react-dnd
when npm install ,there is error:
Errored while running command 'yarn' with arguments '' in 'dnd-core'
Errored while running ExecCommand.execute
Command exited with status 1: yarn
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
......
......

The reason for this error is version?

We're using yarn now. yarn install

thk you!

The REAME.md in folder example is out of date.  @darthtrevino

To run them locally, clone the repo, and run npm install && npm start.


Modifications to az network public-ip prefix CLI cmdlet to introduce new optional parameter --version

Resource Provider
What is the Azure resource provider your feature is part of?
Network Resource Provider
Description of Feature or Work Requested
We are extending support for IPv6 Public IP prefixes for Standard SKUs in addition to existing IPv4 public ip prefixes and we need newer version optional parameter to distinguish between IPv4/IPv6 Public IP address prefix to be created.
Sample use case - if user specifies -version in CLI command and pass accepted values Ipv4 or ipv6 in optional version parameter, then Ipv4 or Ipv6 public ip prefixes need to be created. If user doesn't pass version field parameter in CLI create command, then Ipv4 is the default value that needs to be tagged to PublicIpAddressVersion field in swagger.
Modified  az network public-ip prefix CLI cmdlet after introducing new field version
az network public-ip prefix create --length
--name
--resource-group
[--location]
[--subscription]
[--tags]
[--zone {1, 2, 3}]
[--version {IPv4, IPv6}]
where --version field is an optional parameter of IP address type.
accepted values: IPv4, IPv6
default value: IPv4
Minimum API Version Required
What is the minimum API version of your service required to implement your feature?
2019-08-01
Swagger Link
Provide a link to the location of your feature(s) in the REST API specs repo. If your feature(s) has corresponding commit or pull request in the REST API specs repo, provide them. This should be on the master branch of the REST API specs repo.
publicipprefix.json file in swagger master branch (link below) already has PublicIpAddressVersion field which will distinguish IPv4/IPv6
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/publicIpPrefix.json
Target Date
If you have a target date for release of this feature/work, please provide it. While we can't guarantee these dates,
it will help us prioritize your request against other requests.
10/15/2019 since IPv6 feature is planned for GA soon.

@sm947 Thanks. We will make a plan for it.


Using delegate ReflectionContainer not actually working

I have it structured this way so that certain functionality is expected to happen within the application out-of-the-box, and using static accessors to relate to certain objects instead of allowing random string aliases means an IDE that uses PHPDocs can piece together what functionality exists and how to use it.
<?php

namespace App;

use League\Container\Container;
use League\Container\ReflectionContainer;

/**
 * @property-read \App\Arguments $arguments
 * @property-read \App\Router $router
 */
class Application extends Container
{
    protected static $accessors = [
        'arguments' => Arguments::class,
        'router' => Router::class,
    ];

    public function __construct(array $argv)
    {
        parent::__construct();

        $this->delegate(new ReflectionContainer());

        $this->share(static::class, $this);
        $this->share(static::$accessors['arguments'], Arguments::parse($argv));
        $this->share(static::$accessors['router']);
    }

    public function __get($property)
    {
        if (key_exists($property, static::$accessors)) {
            $accessor = static::$accessors[$property];
            return $this->get($accessor);
        }
        return null;
    }
}

Unfortunately it doesn't seem to want to resolve anything beyond the initial retrieval phase. It will attempt to get an instance of my Router class but it won't try to resolve any of its constructor dependencies, even if I merely use stdClass which has no expectations whatsoever. It just doesn't pass in anything.

I'll need more info than this, classes you're trying to resolve, their dependencies, whether they're defined with the main container (as the delegate will do nothing if they are). Is key_exists a custom function? What is happening there? Does the resolution work if you access the container directly?
I can see from the code above that the two elements of the $accessors array are being defined in the container, if you attempt to resolve those, ReflectionContainer will do nothing as an explicit definition will be found.
Based on that, it looks as though only those two properties can ever be accessed, there for will never be passed to the delegate.

Is key_exists a custom function?

key_exists is an official alias of array_key_exists

I can see from the code above that the two elements of the $accessors array are being defined in the container, if you attempt to resolve those, ReflectionContainer will do nothing as an explicit definition will be found.

The documentation makes no mention of the fact that it will make no attempt whatsoever to try to resolve any dependencies of a sparsely-defined shared instance. If I were trying to pass in an actually defined instance in the second parameter, this would be understandable, but it seemed intuitive that it would try to resolve it if you didn't go through actually creating an instance, then add it to the list of shared entities vs. models that must have new instances created each time get is run.
I was hoping that doing so would merely say "don't create a new one whenever this is requested, just get it once, but still use DI to resolve it."

Delegates are a way to allow you to register one or multiple backup containers that will be used to attempt the resolution of services when they cannot be resolved via this container.

I'll make this a little more explicit when I get chance.
By attempting to mix resolutions, I am making an assumption about what the user wants to do, I have also seen this cause a lack of understanding in what is actually happening during the resolution process so the decision was made to make this explicit, if not found, fallback to the delegates, but only if it's not found.

You've said a lot that I'm sure makes sense for the particular use cases you have defined, but I am no closer to a resolution.

Feel free to email me for what you're trying to achieve and I can attempt to help.
Sent from my iPhone

On 9 Aug 2017, at 17:30, alanondra<EMAIL_ADDRESS>wrote:
You've said a lot that I'm sure makes sense for the particular use cases you have defined, but I am no closer to a resolution.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.


Model's --write duplicates array properties that have summary and array key-value types added

Versions:

ide-helper Version: dev-master 6336db0
Laravel Version: 10.22.0
PHP Version: 8.2.4

Description:
After specifying the key and value type for an Eloquent Model's array @property and adding a comment after that - it duplicates the property.
Steps To Reproduce:

have the Models that has an array or json column (eg Client model has address_values property that is json typed in DB);
run php artisan ide-helper:models App\\Models\\Client --write;
check that your Client model's phpDoc now has @property array|null $address_values;
specify array key-value types and add a summary for the property - @property array<string, string>|null $address_values some description;
run php artisan ide-helper:models App\\Models\\Client --write;
check that it now added / duplicated the $address_values property.

It works as expected for these variants:

@property array|null $address_values some description -- no array key-value types;
@property array<string, string>|null $address_values -- no description / summary / text after the property name.

Expected behavior is to be able to add both array's key-value types and description (I write some examples there).

@mfn This turns out to be a problem with the barryvdh/reflection-docblock dependency. There's a preg_split with a limit of 3 that combines $param_name with the description if generic type with TKey-TValue (and space between) provided, losing the description in such cases.
Created a PR to showcase this bug here and one in that dependency lib to fix this issue, but can't hope that'll be a priority for maintainers. Do you know any other way to fix this locally for the time being?


Update requirements.dev.txt

Added the versions of dependencies and resolve some conflicts occurs when installing. By adding these version number it will tell you the exact.
Thanks
Abhishek

Thank you for your kind contribution. @itsabhishekhere


W2D3 T3 E1 solution bug

The solution in T3 contains the following
"""
params (dict): a dictionary of model paramters: (F, Q, H, R, mu_0, sigma_0)
"""
...
# simulate the system
  for t in range(n_timesteps):
    # write the expressions for computing state values given the time step
    if t == 0:
      state[t] = params['mu_0']
    else:
      state[t] = params['F'] @ state[t-1] + zi[t]

which uses a fixed initial state for sampling (the mean) although the parameters imply that you should treat it as a distribution.
We should either provide a static initial state value and correct the solution, or correct the solution to sample from the initial state distribution, such as
if t == 0:
  state[t] = stats.multivariate_normal(mean=params['mu_0'], cov=np.eye(params['sigma_0']).rvs()

Duplicated in #435


elapsed transformation as continuous query

Feature Request
Hello guys,
I've been working with influx for a while now and I 'm getting and increasing number of request from the final users for the kind "time between events". In several use cases this information is actually need in near "realtime" (updates of 5m are the actual requirement).
Since elapsed can't be used with the group by clause as documented in the "Common Issues with ELAPSED() section. Issue2"

The ELAPSED() function supports the GROUP BY time() clause but the query results aren’t particularly useful. Currently, an ELAPSED() query with a nested function and a GROUP BY time() clause simply returns the interval specified in the GROUP BY time() clause

Proposal: extend elapsed function to be accepted by the continuous querier
Current behavior:
The query:
CREATE CONTINUOUS QUERY "elapsed_5m" ON "db" RESAMPLE FOR 5m BEGIN SELECT elapsed(value, 1s) INTO db.rp.elapsedTime FROM db_original.autogen.Measurement GROUP BY tag1, tag2, tag3... END
Raise the following error:

Server returned error: error parsing query: found tag1, expected GROUP BY time(...) at line 1, char ...

Desired behavior: To be able to run automatically and periodically (on realtime) the elapsed query
CREATE CONTINUOUS QUERY "elapsed_5m" ON "db" RESAMPLE FOR 5m BEGIN SELECT elapsed(value, 1s) INTO db.rp.elapsedTime FROM db_original.autogen.Measurement GROUP BY tag1, tag2, tag3... END
Use case: storing and quering the time elapsed between events on realtime automatically

@stale: unstale


WIP: PoC building a profile page using ionic-components

I did an experimental profile page using ionic components and lit-html
This is how it looks:

I think making use of ionic would be good to be able to have a clean, responsive design without putting too much efford into an own design system first.
lit-html is another good opportunity to have html templating without going too far away from vanilla js. Existing solid-ui components can be integrated as you can see with the friend list in this example, which is still the same.

As discussed in today's meeting, this looks great!
We've been talking about making Solid OS more beautiful for years, but most attempts so far keep grinding to a halt.
So let's use something like this for the public view (not logged in) of someone's webid profile. There, we don't have the restriction that we want the pane to be nestable, and we don't need data fields to be editable, so it's much simpler.
Sounds from what you said in the meeting like the main hurdle is working around the problem that Ionic wants to be full-page. Maybe put it inside an iframe?

As discussed in today's meeting, this looks great!
We've been talking about making Solid OS more beautiful for years, but most attempts so far keep grinding to a halt.
So let's use something like this for the public view (not logged in) of someone's webid profile. There, we don't have the restriction that we want the pane to be nestable, and we don't need data fields to be editable, so it's much simpler.
Sounds from what you said in the meeting like the main hurdle is working around the problem that Ionic wants to be full-page. Maybe put it inside an iframe?

I don't think we should introduce something like ionic, if we are not willing to use it as a base component library for SolidOS in general. We need a clean, consistent, responsive UI everywhere, not only on the profile. If not with ionic, then with something else (self-written if it has to be).

There, we don't have the restriction that we want the pane to be nestable, and we don't need data fields to be editable, so it's much simpler.

Why would nesting or having editable data fields be problematic with ionic?
I am doing another experiment using tailwind now, but I think it is leading in a similar direction: We need to decide what to use as a base for SolidOS design.

I don't think we should introduce something like ionic, if we are not willing to use it as a base component library for SolidOS in general. We need a clean, consistent, responsive UI everywhere, not only on the profile. If not with ionic, then with something else (self-written if it has to be).

There, we don't have the restriction that we want the pane to be nestable, and we don't need data fields to be editable, so it's much simpler.

Why would nesting or having editable data fields be problematic with ionic?
I am doing another experiment using tailwind now, but I think it is leading in a similar direction: We need to decide what to use as a base for SolidOS design.

If you're the person improving the look and feel, and TailWind is what you prefer to use, then unless it undoes or blocks some work from someone else, then I would say "Wer baut hat Recht"! :)

If you're the person improving the look and feel, and TailWind is what you prefer to use, then unless it undoes or blocks some work from someone else, then I would say "Wer baut hat Recht"! :)

But this is the main issue: I cannot make such a fundamental decision just for the profile page. This is something that effects SolidOS at whole and how we proceed with UX/UI.

But this is the main issue: I cannot make such a fundamental decision just for the profile page. This is something that effects SolidOS at whole and how we proceed with UX/UI.


Koa render

Currently in the KoaDriver in the handleSuccess method this.koa.render is called but is undefinded.
I can't find anywhere where koa does rendering, it seems this has been copied from the ExpressDriver because Express handles its rendering, koa uses rendering middlewares that then create the render method on the context.
I am using koa-views as my renderer but getting the following error:
{"name":"TypeError","message":"this.koa.render is not a function","stack":"TypeError: this.koa.render is not a function\n    at KoaDriver.handleSuccess

I have had a quick play around, and found that changing the call from this.koa.render to options.context.render does cause something to try and load, but timesout without any errors. I haven't looked completely through the routing-controller source to completely understand whats going on.
If anyone could give me some guidance before I dig in I would be more than happy to get this working!

So I found out that the options.context is not the actual Koa context, so investigating into how I can access that within the handleSuccess method in the KoaDriver. But I have got koa-views to semi render, the test still does not pass as the render is not replacing the variable in the template as of yet. But it is outputting the correct template.


Display README.md if default module has no moduleDoc

Now that we are displaying a doc view by default, a lot of modules don't have good JSDoc. While this has been the standard for Rust and Go, that a lack of inline docs generates "bad" display of information we need to evolve towards that.
For example https://deno.land/x/dejs, the 10th most popular module, is just confusing to a user.
Currently if a module doesn't have a default module we display the README after the directory listing.
I propose if the default module doesn't have moduleDoc that we display the README after the symbol list.
@crowlKats we just need to figure out if you want apiland to figure that out for you or not. While it wouldn't deliver the content, it could provide a flag/prop with a reference to the README.md, might want that for the index too.

Can we just do this by default? A lot of packages include some instruction and usages in the readme which are sort of valuable.

It would be nice to have it in the sidebar file list as well. When navigating to the docland site, I typically want to see the moduleDoc more than the README. But when I'm on deno.land, it's frustrating to have to manually navigate to it. Inhibiting users from seeing README (where most modules place important info for usage/installation), kind of goes against the whole idea and name of the file...
The thought actually crossed my mind to delete one of my module's mod.ts files, just so the README would be displayed by default again (as it is on deno_dom). 🙄


#629Redundant Parenthesis

Redundant Parenthesis

Redundant Parenthesis #629
Given a string of balanced expression, find if it contains a redundant parenthesis or not. A set of parenthesis are redundant if the same sub-expression is surrounded by unnecessary or multiple brackets. Print True if redundant, else False.
Note: Expression may contain ‘+‘, ‘*‘, ‘–‘ and ‘/‘ operators. Given expression is valid and there are no white spaces present.
For example:
((a+b)) can reduced to (a+b), this is Redundant
(a+b*(c-d)) doesn't have any redundant or multiple
brackets

Proposed Changes

Redundant_Parenthesis code file added
README.md added

Additional Info
Terms Explained:
Stack : Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). Click
here
Redundant : The expression should not have extra brackets.
Approach
We will use stack as a data structure to solve this problem.

We iterate through the given expression and for each character in the expression, if the character is an open parenthesis ‘(‘ or any operators, we push it to the stack.
If the character is close parenthesis ‘)’, then pop characters from the stack till matching open parenthesis ‘(‘ is found.

Checklist

[x] ✅ My code follows the code style of this project.
[ ] 📝 My change requires a change to the README.
[x] 🎀 I have updated the README accordingly.
[x] 👀 I have read the CONTRIBUTING document.
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[ ] 🌟 ed the repo
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Algorithm
for(int i=0;i<s.size();i++){
if(s[i]=='+' or s[i]=='-' or s[i]=='' or s[i]=='/'){
st.push(s[i]);
}else if(s[i]=='('){
st.push(s[i]);
}else if(s[i]==')'){
if(st.top() == '('){
ans = true;
}
while(st.top() == '+' or st.top() == '-' or st.top() == '' or st.top() == '/'){
st.pop();
}
st.pop();
}
}

Output Screenshots
Input 1:
((a+b))

Input2
(a+(a+b))

Let me show you how to check the check list , there should be no space inside brackets like [x]
[x]

[x] Checklist
[ ] Or you can just check them from outside without doing any of these
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[ ] 🌟 ed the repo

Starr the repo if you haven't !
Have you watched this video ?

@siddhi-244 please review my pr

You haven't removed the spaces !

You haven't removed the spaces !

I have done please review it again

You haven't removed the space from folder name as suggested by lakhan!

I think now I have removed all the spaces as suggested please merge my pr @Lakhankumawat

Explain the algorithm and don't add code there !

I have explained the algorithm in approach

Explain the algorithm and don't add code there !
Ok

Explain the algorithm and don't add code there !

In README.md also I have to do

Explain the algorithm and don't add code there !

In README.md also I have to do

In readme. You have added code under algorithm.  Try to add algorithm there !

LGTM

Ok!

@all-contributors please add @dev24il  code ,


sanity checks for solutions are too late

Here, after asking for solution name, resources needed, the pool it got surprised i don't have a netowork
Checks for pools and networks should be done very early before even asking for solution name

verified before set name of soultion give below of


swupdate-enc: Convert CONVERSION_CMD to new override syntax

swupdate-enc is broken in kirkstone due to lack of inclusion of the change to the new override syntax for CONVERSION_CMD.
Cherry-pick the relevant fix from the langdale branch.

Closing since the project doesn't seem receptive to this cherry-pick.
This PR at least documents the problem and informs others that they may need to manually fixup swupdate in kirkstone.  This is how we are fixing it up in our image recipe:
# Adding ext4.enc to our FSTYPES triggers a conversion of the ext4 image to an
# ext4.enc encrypted image for swupdate.  The build infrastructure knows how to
# perform this conversion through inheritance of swupdate-enc, which defines
# CONVERSION_CMD:enc, an openssl call to encrypt the ext4 image with above AES
# key.
#
# Note well: CONVERSION_CMD:enc is broken in swupdate kirkstone because it
# retains  the old override syntax with an underscore (CONVERSION_CMD_enc).
# Thus, for this to work, we need to override that directive with the corrected
# syntax from this commit:
#
# https://github.com/sbabic/meta-swupdate/commit/35b559a3481ba17f58cbb5354453add03315e593
CONVERSION_CMD:enc="swu_encrypt_file ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.enc"
IMAGE_FSTYPES += "ext4.enc"


Integrate and modernize emscripten build

This was slightly more annoying and soul-crushing than I'd expected, but at last it works.  This PR integrates the emscripten build in the main lean repository, and works with modern 64-bit linux and the latest emscripten, latest gmp, latest mpfr, etc.  The best part is that we have incremental compilation now:
emmake make lean_js    # takes 45 seconds on my laptop if you change some C++ code

The build process is a bit more involved, but hopefully less of a black box now:
# Install emscripten using the official instructions first.
mkdir build/emscripten; cd build/emscripten
emconfigure cmake ../../src/ -DCMAKE_BUILD_TYPE=EMSCRIPTEN
emmake make mpfr
emmake make -j4 lean
emmake make build_lean_js_library  # requires *.d files from a previous run
emmake make lean_js
xdg-open shell/lean_js.html    # Bundled html file for quick testing.
# The generated .js file for the tutorial, etc. is located in
#   build/emscripten/shell/lean_js.js

We also build the lean command-line tool in the emscripten build, this is nice for testing.  (Somewhat hacky, though.)  Just use the generated lean or lean_with_path scripts in build/emscripten/shell.
Issues/to-do:

This line works around the infamous emscripten hashing bug.
Setting keep_proofs to false fails at the moment with "invalid equation lemma, unexpected form", also in the native build.
The library build process is a big hack.  There seem to be serialization differences between 32-bit and 64-bit builds of lean, so you can't reuse the .olean files generated by 64-bit lean for lean.js (which is 32-bit).  For this reason, we use a heavily hacked version of linja to build the olean files for lean.js using the emscripten build itself.  (Dependency generation is disabled because linja wants to start all 80+ lean processes in parallel at the same time, which unsurprisingly leads to out-of-memory errors.)

Ha, I didn't even think of that - but it actually works. As I said, I'm not
actually importing them anywhere right now.
On Sun, Oct 16, 2016 at 9:33 AM Gabriel Ebner<EMAIL_ADDRESS>wrote:

@gebner commented on this pull request.
In bin/linja.in https://github.com/leanprover/lean/pull/1159:

@@ -463,7 +463,7 @@ def make_build_ninja(args):

     print("""rule LEAN""", file=f)
     print("""  depfile = ${DLEAN_FILE}""", file=f)

   print("""  command = "%s" %s $in -o "${OLEAN_FILE}" """ \

   print("""  command = "%s" %s -o ${OLEAN_FILE} $in""" \

Ah, I see, c:\users\jane mathematician\lean... could likely happen as
well. And come to think of it, with your french quotes notation you can
also have spaces in module names.
How do you actually link your files? I don't see any fancy import
«<IP_ADDRESS> Divering functions» anywhere.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/leanprover/lean/pull/1159, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGqRqMUwSE-D52QpQmg_-5Cp8iGS3Soks5q0ieFgaJpZM4KX9xI
.

Oops, I did not run the tests in the native configuration.  Why did travis pass even though one C++ test didn't even compile, and one lean test failed?

Now all* tests pass in emscripten as well.

I only tested a hundred out of the lean run-tests.  There are 647 and each one takes between 5-10s with emscripten (mostly startup overhead).  All other tests pass however.

@gebner This is great.

Setting keep_proofs to false fails at the moment with "invalid equation lemma, unexpected form", also in the native build.

This option was introduced in Lean 0.1. It is problematic for the current version because some proofs may need to be unfolded (e.g., well founded recursion) when type checking other definitions. Some proofs are unfolded for sanity checking (e.g., for checking a rfl lemma is indeed proved by reflexivity). The sanity checking is easy to fix.
In Lean 0.1, we didn't have support for inductive datatypes in the kernel, and consequently we didn't have inductive predicates (i.e., inductive datatypes in Prop) such as eq and acc that can eliminate into Type. So, in Lean 0.1, all proofs could be safely discarded after they have been type checked.
This was a nice property because it allowed us to save memory.
In Lean 0.3, we don't have a solution for conserving memory. This will not become an issue in the the next few years, but we will eventually have problems with that if the project is successful. I discussed alternative designs, one attractive option is to load the proofs on demand. However, this is a big change. A simpler solution is to distinguish transparent/opaque theorems. The proofs of opaque theorems can be discarded, but we keep the proofs of transparent ones. We make sure all theorems in the init folder are transparent since they are basic building blocks used in many different settings. On the other hand, most user theorems would be opaque.

Now all* tests pass in emscripten as well.

We can create a minimal test suite for sanity checking.


fix: fix missing options in kcl run

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[x] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

49 of 49 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 40.53%

Totals

Change from base Build<PHONE_NUMBER>1:
0.3%

Covered Lines:
3152

Relevant Lines:
7777

💛  - Coveralls


[SCALE.md] Fix USDC futures hex codes

The decimal and not hex versions of the IDs are canonical, right?

Great spot. Thanks


MINIFICPP-290 Add ExtractText to FlowConfiguration.h so that it can b…

…e recognized in flow configurations
Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

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

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

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

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

For code changes:

[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] If applicable, have you updated the LICENSE file?
[x] If applicable, have you updated the NOTICE file?

For documentation related changes:

[x] 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.

I don't know why those headers made their way back into FlowConfiguration ( could have been a mistaken merge on my part ), but the current approach is to use LoadProcessors. Soon we'll move to linking them forcefully  -- the next step in breaking out core-minifi from minifi:
Here is a branch that contains that single fix isolated. Feel free to cherry pick that commit
https://github.com/apache/nifi-minifi-cpp/compare/master...phrocker:PROCFIX?expand=1

@phrocker glad to see a better fix already exists. I suggest we prioritize getting that specific fix into master because right now this is a blocker for anyone trying to use that processor.


update: esm source design

This outlines an initial design sketch for the ESM source phase design, covering:

module.exports() and module.imports() APIs
Internal slot for resolution
Dynamic import() integration rules
Integration with other specifications such as CSP and structured clone

In an initial version I explicitly defined the CSP property for a [[HostSrc]] internal slot that might be directly checked in the CSP policy rules for example in the Wasm ESM integration.
But on further consideration, CSP as a compilation check, means that by having a source phase import that the compilation guard has already passed - thus if you have a handle to a concrete AbstractModuleSource, then it's already passed through CSP. Similarly for JS, dynamic import of a module guards the module at fetch time, not execution time.
Therefore, it is only the new Worker(module) invocation that needs to be supported here from a CSP perspective as a new construct for permitting CSP sources that have already been vetted statically.
Then I think for that case that we can rather define that the src can be reconstructed from [[HostDefined]] in order to perform the verification here. If there are difficulties figuring that out, then I think that is a CSP integration problem we should handle when we get there, but that we don't necessarily need right now to introduce new machinery to handle it without trying the simpler approach first.

@nicolo-ribaudo I have added the changes we discussed in todays meting, including the new identity handling.

@lucacasonato dynamic import is described in https://github.com/tc39/proposal-esm-phase-imports/pull/3/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R152.


Want to re-open issue #211, Dotted lines blurred when making eps or pdf from 3-D plot in Matlab.

I made a new comment on this issue, but don't see how I can re-open it.  Could you look at it/re-open it?

#211 is reopened


Update ui.css

fix the long time div blocking large parts of the games, home, apps, and settings a tags by making the z-index of the links a layer above the time div.

What does this change?

ah Understood Merging


Default rep for an account, the first wallet account generated.

Default rep for an account, the first wallet account generated.

We don't want every node to function as a rep.


Advertise new Slack channel

Feature description
Add in the descriptions of Pelorus (git repo, operator, etc) a link to our new public Slack channel (External Red Hat: dora-metrics-pelorus).
How this will help you
It will help users contact us.
Feature priority
⌛ It will greatly improve my experience using Pelorus
Code of Conduct

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

On hold, waiting our Slack channel be made public
For now, have changed .github/ISSUE_TEMPLATE/config.yml
  - name: Like Slack? We have a Slack channel!
    url: TODO
    about: Get in touch with us here.

README.md
## Community

[GitHub discussion](https://github.com/dora-metrics/pelorus/discussions) is one of the places for discussing the Pelorus project (and applications that use it) and also asking (and answering!) related question.

We also have a [Slack channel](TODO) to get in touch with us.

and scripts/pelorus-operator-patches/04_pelorus_cluster_service_versions.diff with the same content.

What server is this in?


Issue with Make a Person

Make A Person
https://www.freecodecamp.com/challenges/make-a-person
Issue Description:

bob.getFullName() should return "Haskell Curry" after bob.setLastName("Curry").

This requirement to complete the challenge is wrong. Since the object in the challenge is created using 'Bob Ross', the firstName is initially set to 'Bob', and the lastName is initially set to 'Ross'. Therefore calling bob.setLastName("Curry"), with no previous callings on setFirstName or setFullName which included 'Haskell', would only change the lastName property and not the  firstName property.
The only way to address this problem and pass the challenge is to attach 'Haskell' to the lastName 'Curry'. My code snippet below does so and passes the challenge, but tailoring the code to fit that particular userstory doesn't seem in the spirit of the challenge.
Browser Information:

Browser: Google Chrome v58.0.3
Operating System: Windows 10 Home (64-bit)

Code:
  this.getFullName = function () {
    if (!this.fullName) {
      this.setFullName(firstAndLast);
    }
    if (this.lastName == "Curry") {
      this.setFirstName("Haskell");
    }
    return this.fullName;
  };

  this.setFullName = function(firstAndLast) {
    var split = firstAndLast.split(" ");
    this.setFirstName(split[0]);
    this.setLastName(split[1]);
    this.fullName = this.firstName + " " + this.lastName;
  };
  this.setFirstName = function(first) {
    this.firstName = first;
    this.fullName = this.firstName + " " + this.lastName;
  };
  this.setLastName = function(last) {
    this.lastName = last;
    this.fullName = this.firstName + " " + this.lastName;
  };
  this.getFirstName = function () {
    if (!this.firstName) {
      this.setFullName(firstAndLast);
    }
    return this.firstName;
  };
  this.getLastName = function () {
    if (!this.lastName) {
      this.setFullName(firstAndLast);
    }
    return this.lastName;
  };

Screenshot:

Hopefully I'm not crazy and missing something!

Could you please give all the code in your editor.  I don't know how you got Object.keys(bob).length to be 6. It should be 9 since you assign variables using the this keyword. As for the test cases, they are all achievable with the correct code. No special cases needed. You can see someone else's answer here if you want.

Hi @znicholasbrown
Thanks for reporting this issue.
Here are some next steps that you should follow before we can help you with your query:

Check these troubleshooting steps first.
Please use the Chat Rooms or try looking through our forum for help with a specific challenge and any coding assistance.

IMPORTANT:
Please NOTE that this tracker is for reporting bugs and enhancements to freeCodeCamp's code base only.
Happy Coding!

@znicholasbrown please revert if you are still stuck with this.


Link color && target

Keep link color when visited (regarding the conversation: https://twitter.com/gunnarmorling/status/1383377958681800709)
Change target to _blank for opening in new tab not to lose the main page

Many THX @mabulgu for your contribution. I made small adaptions based on your changes and created and merged #12 as a replacement for this. See my comments there. THX again!

Excellent, thanks all!


How to disable iOS bounce effect on scene load?

My scene is bouncing whenever it is loaded. I want to disable the effect. I did many search but not able to find any solution. I am attaching gif for the animation here:

I tried searching for solution but didnt find anything. Following are my dependencies:
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-gesture-handler": "~1.6.0",
"react-native-reanimated": "~1.9.0",
"react-native-router-flux": "^4.2.0",

I have the same problem, could you solve it @bhaskardabhi ?

+1 I have the same issue

I found a solution in my case @dennisbouwpas
I used scrollviews on each scene and scorllview by default on iOS has the "bounces" attributes true by default (https://reactnative.dev/docs/scrollview#bounces)
I set it on false (bounces={false}) and que issue dissapeared.


adding batch cancel API endpoint

[ ] I have added the tests to cover my changes.
[x] I have updated the documentation and CHANGELOG accordingly.
[ ] I have read the CONTRIBUTING document.

@AlejandroEsquivel can you let me know if I'm on the right track here

fixes #284

@AlejandroEsquivel @mshkanth I'm not sure why the Node class in the schema was deleted but it was not included when I regenerated the spec.  Let me know if this needs to stay.


ui-grid-move-columns along with ui-grid-selection making issue in column animation

Hi when i used both the directives it making issue in moving column animation,  ui-grid-move-columns along with ui-grid-selection making issue in column animation.

Duplicate of #3395


[Question] Short issue title

What is your question?
I'm not sure if it is a bug or question.
Insomnia in the Timeline tab shows me multiple
Received 15.1 KB chunk
messages. The sizes are slightly different, but most of them about ~15 KB.
When I use curl --raw I see in chunks size headers that a chunk size is ~512 KB.
I wonder the what is the real chunk size a 15 kb or 512 kb
What is the context?
I'm trying to debug large file download in my service. I'm using transfer-Encoding: chunked
https://en.wikipedia.org/wiki/Chunked_transfer_encoding
The real chunk size is important for the download speed. FYI I don't set the content length (my service simply doesn't know it).
Thank you!

It is indeed 15kb within Insomnia. I'm not sure why curl would be different but it looks like the option might be configurable which defaults to 16kB: https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html


Update README.md

Added Amigoscode in 'Tutorial'.
Added Brent Aureli's - Code School, Cave of Programming, Mike Dane in 'Retired'.

Looks good


Cannot have 2 checks of the same name on a page

Description of bug
If you have 2 check boxes with the same name (but different scope) on the same page, ticking the top one affects the other
To Reproduce
<Scope path='reference1'>
<Check id='unexpiredWarnings-one' name='unexpiredWarnings' label='Unexpired Warnings?' />
</Scope>

<Scope path='reference2'>
<Check id='unexpiredWarnings-two' name='unexpiredWarnings' label='Unexpired Warnings?' />
</Scope>

Steps to reproduce the behavior:
Using the above code, when you press check in the second scope, it ticks the box on the first one.
Expected behavior
Checks should be independently managed.
Exception or Error
Screenshots
Environment:
Additional context

Hello @diegojsanches, you good?
Unform released version 2.0 🎉
Now unform does not include Choice component or any other form element inside the library. This means you'll need to create your custom fields using the useField API.
Instead of using the Choice component, maybe you can use the react-select integration so the user can choose between the options: https://unform.dev/third-party/react-select
I'm planning on including a guide to add checkbox/radio integration.
Check the docs: https://unform.dev/
Feel free to reopen the issue if you need any further help 💜


Amplify New UI: Unable to configure a domain without adding atleast one subdomain

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have removed any sensitive information from my code snippets and submission.

Amplify Hosting feature
Not Applicable
Is your feature request related to a problem? Please describe:
Hello team,
In the Old UI, while adding a custom domain, we can choose not to add any subdomains (i.e., we can exclude the root and also remove any subdomains and "Save" the changes):-

But in the new UI, we are unable to add the domain without adding atleast one subdomain. The "Add domain" button is greyed out:-

However, we are able to do this using the UpdateDomainAssociation. We can just pass the subdomains as empty. It still works:-
$ aws amplify update-domain-association --app-id <app_id> --domain-name <domain_name> --sub-domain-settings []
Describe how you'd like this feature to work
Allow user to configure domain without having to add a subdomain

@koundinya-kandadai 👋 , we have deployed a fix for this issue and you can now configure a custom domain without adding any subdomains. Closing this thread.


Fixed #34873 -- Added QuerySet.explain() support for GENERIC_PLAN option on PostgreSQL 16+.

ticket-34873

Thanks for checking :+1:


Update user_defines.v

fixes issue #165

IMO That is wrong direction to take vs standard header-file usage. See the comment (Authoritive source ...). If user wants to use such macros in their .v, they should include that single-source header file from caravel. Else you proliferate & must maintain more redundant places that have to accurately define the same macros.

The change made breaks tapeout on the platform and needed an immediate
fix.  I created another issue to refactor and move the definitions to a
common caravel repo.  That said, we also need to allow users to override
the presets and specify any value they want if they know what they're
doing.
-- Jeff
On Fri, Sep 30, 2022 at 12:17 PM sto6 @.***> wrote:

IMO That is wrong direction to take vs standard header-file usage. See the
comment (Authoritive source ...). If user wants to use such macros in their
.v, they should include that single-source header file from caravel. Else
you proliferate & must maintain more redundant places that have to
accurately define the same macros.
—
Reply to this email directly, view it on GitHub
https://github.com/efabless/caravel_user_project/pull/166#issuecomment-1263929897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKAZZ5P6KPNUJP6HPLARJFTWA44FFANCNFSM6AAAAAAQZ2WJL4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Add licence and code of conduct information

It's good for any open source project to have a licence and a code of conduct file.
Here's a good example of a Code of Conduct file https://github.com/okfn-brasil/querido-diario/blob/main/CODE_OF_CONDUCT.md
..and here's a good explanation why it's important to have one: https://docs.github.com/pt/free-pro-team@latest/github/building-a-strong-community/adding-a-code-of-conduct-to-your-project

Feel free to assign it to me if you want I can take care of those :)
For Licence I suggest MIT https://www.diegobrocanelli.com.br/open-source/a-licenca-mit/

Hi Rodbv, great idea , thanks for the super help.


Add control flow for membership change

The current Dragonboat membership change is limited to one node change at a time. If we are going to do a complete move of the Raft group, such as from node 1,2,3 to 4,5,6, we need six commands to make it happen. If the whole process could be automated, that would be a great efficiency saving.
In the Raft paper, there was a suggested path for maintaining two quorums during the membership change which seems to be doable, but the cost was a complexity bump for the production logic, totally not worth it just for the sake of doing flexible membership changes.
Thus we could propose a trade-off solution here, which is the control flow approach. Consider an example which summarizes the basic mechanics.
Suppose that we start with a quorum consisting of the replicas (1, 2, 3) and we want to change the quorum to (4, 5, 6). When the leader receives the request to alter the quorum, it will write a message to the current quorum indicating the desired change:
currentVoters: [1, 2, 3]
targetVoters: [4, 5, 6]

Once this message has been committed to the quorum, the leader will add 4 to the current quorum by writing a new log entry:
currentVoters: [1, 2, 3, 4]
targetVoters: [4, 5, 6]

A common optimization for this step is to wait until 4 has caught up near the end of the log before adding it. Similarly, we may choose to add another replica first if it has already caught up. Once the check passes, the leader will finally send out the control record to modify the existing voter list. Once that entry has been committed to the log, the new membership takes effect. Then we could remove one of the existing replicas (say 3) by writing a new message:
currentVoters: [1, 2, 4]
targetVoters: [4, 5, 6]

Continuing in this way, eventually arrive at the following state:
currentVoters: [1, 4, 5, 6]
targetVoters: [4, 5, 6]

Suppose that replica 1 is the current leader. Before finalizing the reassignment, it will resign its leadership by sending TimeOut to other voters. Once the new leader takes over, it will complete the reassignment by removing replica 1 from the current voters. At this point, the quorum change has completed and we can clear the targetVoters field:
currentVoters: [4, 5, 6]
targetVoters: null

The previous leader will resume as a voter until it knows that it is no longer one of them. The leader will always choose to remove itself last as long as progress can still be made.
This idea was originated from another proposal I have been working on in a separate community for making membership reassignment easier.

Thanks for sharing the idea!
If arbitrary configuration changes is to be supported in a future release, the protocol described in the section 4.3 of the Raft thesis will be the one to be implemented. There is no excessive complexity here - just need to implement & test that well documented simple protocol plus some labor work to update all related test cases.

Ok, sounds good to me :)


BUG: Scipy linear sum assignment is not working correctly

Describe your issue.
I find something wrong with the linear_sum_assignment usage in https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/matching.py#L61
Scipy linear sum assignment is NOT working correctly, DO NOT USE
def linear_assignment(cost_matrix, thresh, use_lap=True):
    """Linear assignment implementations with scipy and lap.lapjv."""
    if cost_matrix.size == 0:
        return np.empty((0, 2), dtype=int), tuple(range(cost_matrix.shape[0])), tuple(range(cost_matrix.shape[1]))

    if use_lap:
        _, x, y = lap.lapjv(cost_matrix, extend_cost=True, cost_limit=thresh)
        matches = [[ix, mx] for ix, mx in enumerate(x) if mx >= 0]
        unmatched_a = np.where(x < 0)[0]
        unmatched_b = np.where(y < 0)[0]
    else:
        # Scipy linear sum assignment is NOT working correctly, DO NOT USE
        y, x = scipy.optimize.linear_sum_assignment(cost_matrix)  # row y, col x
        matches = np.asarray([[i, x] for i, x in enumerate(x) if cost_matrix[i, x] <= thresh])
        unmatched = np.ones(cost_matrix.shape)
        for i, xi in matches:
            unmatched[i, xi] = 0.0
        unmatched_a = np.where(unmatched.all(1))[0]
        unmatched_b = np.where(unmatched.all(0))[0]

    return matches, unmatched_a, unmatched_b

https://github.com/ultralytics/ultralytics/blob/main/ultralytics/trackers/utils/matching.py#L61
Reproducing Code Example
No

Error message
No

SciPy/NumPy/Python version and system information
No

Please provide details on what is working incorrectly.  If possible can you  provide a minimal working example of how to reproduce it?

@ZouJiu1 : Without the cost matrix, it is impossible to reproduce the error.
Also: Warning everyone who reads this issue not to use this function in capital letters comes off a little alarmistic and is not constructive. Without the minimal working example I am tempted to close the issue in a few days.

what I find is the lap.lapjv don't work properly, but the scipy.optimize.linear_sum_assignment works properly.
the matrix example
firstly clone the repo https://github.com/ultralytics/ultralytics, and then using ultralytics to tracking.
import sys
sys.path.append(r'C:\Users\10696\Desktop\access\KalmanFilter\ultralytics')
from ultralytics import YOLO
model = YOLO('yolov8n.pt')
results = model.track(source=r"F:\MOT\MOT16-06-raw.webm", conf=0.3, iou=0.5, show=True)

F:\MOT\MOT16-06-raw.webm
I will debug into ultralytics/trackers/utils/matching.py
this is the debug codes used.

def linear_assignment(cost_matrix, thresh, use_lap=True):
"""Linear assignment implementations with scipy and lap.lapjv."""
if cost_matrix.size == 0:
return np.empty((0, 2), dtype=int), tuple(range(cost_matrix.shape[0])), tuple(range(cost_matrix.shape[1]))
use_lap = True
if use_lap:
_, x, y = lap.lapjv(cost_matrix, extend_cost=True, cost_limit=thresh)
zz = cost_matrix[[i for i in x if i >= 0], y]
matches = [[ix, mx] for ix, mx in enumerate(x) if mx >= 0]
unmatched_a = np.where(x < 0)[0]
unmatched_b = np.where(y < 0)[0]
else:
# Scipy linear sum assignment is NOT working correctly, DO NOT USE
y, x = scipy.optimize.linear_sum_assignment(cost_matrix)  # row y, col x
zz = cost_matrix[[i for i in y if i >= 0], x]
matches = np.asarray([[i, x] for i, x in enumerate(x) if cost_matrix[i, x] <= thresh])
unmatched = np.ones(cost_matrix.shape)
for i, xi in matches:
unmatched[i, xi] = 0.0
unmatched_a = np.where(unmatched.all(1))[0]
unmatched_b = np.where(unmatched.all(0))[0]
return matches, unmatched_a, unmatched_b

the first cost_matrix is showed below, it has six rows and five columns.
it is very simple to find that the minimum iou cost is [0.30292, 0.27259, 0.29889, 0.5569, 0.34354] in different row and column.
So let's find the difference between lap.lapjv and scipy.optimize.linear_sum_assignment.

cost_matrix = array([[          1,     0.30292,           1,           1,           1],
[          1,           1,     0.27259,           1,           1],
[    0.29889,           1,           1,           1,           1],
[          1,           1,           1,           1,      0.5569],
[          1,           1,           1,     0.34354,           1],
[          1,           1,           1,           1,           1]], dtype=float32)

firstly, setting use_lap = True, the **zz**, x, y result of lap.lapjv below, so the result is not correct.

x = array([ 1,  2,  0,  4,  3, -1])
y = array([2, 0, 1, 4, 3])
zz = array([    0.27259,     0.29889,     0.30292,           1,           1], dtype=float32)

secondly, setting use_lap = False, the **zz**, x, y result of scipy.optimize.linear_sum_assignment below, so the result is correct.

x=array([1, 2, 0, 4, 3], dtype=int64)
y=array([0, 1, 2, 3, 4], dtype=int64)
zz = array([    0.30292,     0.27259,     0.29889,      0.5569,     0.34354], dtype=float32)
it this way, the scipy is the correct calculation, I will close this comment. and I will open a issue in [https://github.com/ultralytics/ultralytics](https://github.com/ultralytics/ultralytics) to make sure what happen to using the **lap.lapjv**.

@ZouJiu1 @dschmitz89 thanks guys! It looks like our usage after the function was simply incorrect and has been fixe din https://github.com/ultralytics/ultralytics/pull/4390 by @ZouJiu1


Owned by domain squatters

I think the commit and GitHub PR topic should have said what link exactly was owned by domain squatters without needing to open commit details for seeing it.


Column attributes can't be used

For bugs, please provide the following:
What's going wrong?
Column attributes can't be used
What was expected?
Column attributes can be written and read
Steps to reproduce the behavior
curl http://<IP_ADDRESS>:10101/index/i/query -d"SetColumnAttrs(1, foo='bar')"
{"results":[null]}
This is the expected response when writing, but the write success/failure isn't obvious.
curl http://<IP_ADDRESS>:10101/index/i/query -d"Options(TopN(f), columnAttrs=true)"
or
curl http://<IP_ADDRESS>:10101/index/i/query?columnAttrs=true -d"TopN(f)"
{"results":[[{"id":0,"key":"","count":11}]]}
This result should include "columnAttrs" at the top level.

column attributes are no longer a thing


netlify.toml file with frozen lockfile flag

Issue
In the current package.json file, we have the Vuepress package as the main dependency set to "vuepress": "^1.5.3". This means that since Vuepress has had a minor version bump to 1.5.4, that fresh yarn installations and fresh yarn builds that recreated the yarn.lock file will pull 1.5.4. There is a small problem in the 1.5.4 vuepress release which relies on a specific use case of the @extends method in stylus but the version of stylus that is a deep dependency of vuepress is not a high-enough version, so that one case of the @extends method that was added in 1.5.4: https://github.com/vuejs/vuepress/commit/ceb0fa9cd3294d68cfc34f95e5f4bc759b4098b0#r41730374
we see a build failure locally and in Netlify like this:

There are several possible workarounds for this build error:

We change the vuepress package version in the package.json file to pin to `"vuepress": "1.5.3" until the next minor tag release with the fix in it. ( Forthcoming, I assume, since this PR has already been merged: https://github.com/vuejs/vuepress/pull/2587 )

We leave the package.json as-is, but implement a netlify.toml file that sets the yarn install command to have a --frozen-lockfile flag so that Netlify doesn't build fresh a fresh lockfile each time and only installs package versions we have purposely committed to the lockfile in development and testing. ( This could be standard even if it's not the method we use to fix this build issue )

We add a resolution in the package.json file to resolve stylus to the latest version that supports the vuepress 1.5.4 use of the @extends method: "vuepress/**/stylus": "^0.54.8". ( Temporary fix that will work in the interim while waiting for the next release tag of vuepress based on the merged PR mentioned in option 1. We would want to remove the resolution once that vuepress tag is released. )

Changes Proposed
Describe the work you did in this Pull Request.

...
...
...

Testing Instructions
If this work needs manual testing, please provide clear steps for us to test.

...
...
...

Extra Information
Is there anything else we need to know? Tell us here.
Share with Us!
(Optional) Tell us something you learned while working on this issue, and/or a fun GIF!

Upgrading VuePress seems to have stopped errors and failing builds, so closing


convert to obj

Hello guys,
thanks very much for the cjio tool!
I have pip3-installed it and would like to convert some cityjson.
However the cjio cli tool seems to not be callable from shell. But I can import cjio as a module in my python script. Is there some docs how to use it for the conversion?
[I'm using ubuntu 18.04 ]
Thanks very much in advance!

please provide the error you get went just typing cjio in the console

command not found: cjio

It looks like that the installation didn't succeed. I'm under ubuntu 18.04 as and just did this:
pipenv --python 3.6
pipenv shell
pip install cjio
cjio

You can substitute pipenv with any virtual environment, but if you don't use one, then probably you'll need pip install --user.


cannot install

i've tried installing on 4 different machines over 2 distros, all with IR sensors and a working camera, all got the same error listed in the image (sorry if its a bit small):

problem persisted over a month, please help !!

I've searched for similar issues already, and my issue has not been reported yet.
Linux distribution (if applicable): Zorin OS 15 (based off Ubuntu 18.04 LTS), Kubuntu 18.04 LTS
Howdy version: none

btw everything goes smoothly until when i actually try to install howdy itself

Have you tried googling the error? This is a common issue with dpkg that can appear after power loss or similar interruptions

alright, i solved the problem by running sudo dpkg --configure -a and then reinstalling. thanks for your help !!

Did you try rebooting?


quantized weight conversion is problematic

weight conversion results in poor accuracy after quantization and CQ training.
need to identify and resolve this blocking issue.

Fine tuning is effective. Proper distribution of parameters needs to be ensured.
Effect of quantization is minimal after tuning with corrected loss function.


Can you publish djwt to npmjs ?

Hi, I have to convert one of my deno project to nodeJS, and your project is not available for it.
I use jsonwebtoken instead, but its interface is different, so I have to change my code.
I used Deno dnt in multiple projects in the past if that can help.

Hi,
I personally won't do that. But I am considering adding a bundled JS file here. Would it help you?

I can add some dnt build script, but a custom bundler script takes longer.

Interesting, could I implement it as an Github action somehow so that I won't have to do anything?

this is an example of my recent dnt integration:
a build script: _build_npm.ts
a publish action: deno-publish.yml
or an other one:

_build_npm.ts
action

Once djwt has been published to JSR (#85) it can be installed using the JSR NPM compat layer

Does this PR work for our use case here?

Something went wrong. Can anybody help?
@emrahcom something went wrong with CI. Would you mind taking a look into it?
https://github.com/Zaubrik/djwt/actions/runs/10150942921/job/28069171066

error: Import<EMAIL_ADDRESS>failed: error sending request for url (https://registry-staging.deno.com/@std/encoding/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
at file:///Users/runner/work/djwt/djwt/deps.ts:4:8

I did it with deno publish manually now.
https://jsr.io/<EMAIL_ADDRESS>

Hi @timonson, looks like there is a problem with DNS record of registry-staging.deno.com. So, test.yml failed while running deno test -A.
But if I run the same command (deno test -A) in my local, it works. I'm not sure if this is a temporary problem or not.

Looks like test.yml fails with old deno.

Looks like test.yml fails with old deno.

You are right. It works now. Can I close this issue now or is something still missing for npm?

Thanks @emrahcom , I just changed main to master.


fix: failed token transfer 500 error

Summary
https://app.clickup.com/t/86dvcj0yr

Checklist

[ ] I checked my UI changes against the design and there are no notable differences
[ ] I checked my UI changes for any responsiveness issues
[ ] I checked my UI changes in light AND dark mode
[ ] I checked my (code) changes for obvious issues, debug statements and commented code
[ ] I opened a corresponding card on Clickup for any remaining TODOs in my code
[ ] I added a short description on how to test this PR (if necessary)
[ ] Documentation (if necessary)
[ ] Tests (if necessary)
[ ] Ready to be merged

@alexbarnsley conflicts


Fix lint CI

This PR fixes the lint CI removing the following line:
python -m pip install --no-index --find-links=dist/ prelude-parser

The test failed because the insta snapshot needs updating. Do you know how to do that? If not I can push an update for you once the last instance is removed.

I gave it a try. Let's see if it works


local.conf.sample: Update host tools to replace docker with balena-engine

For overlay based device types, remove docker and add a set of host tools
dependencies to use rootless balena-engine instead. For aufs based devices,
we leave docker as rootless is not supported over aufs
Change-type: patch
Changelog-entry: Update host tools to replace docker with balena-engine in build process
Signed-off-by: Alex Gonzalez<EMAIL_ADDRESS>

Can one of the admins verify this patch?


Certain jobs don't run

I'm not sure what I did, but the last 24 hours, certain jobs simply don't run. I'm mostly using delayed job to send emails in the background and 1 email is consistently never executed. I can't find it in the job queue either, which is very worrying. It is, as if it gets created and deleted straight away.
Any idea of what could be causing this?

Check the logs

@albus522 If I look in the logs, I can't see the job being run anywhere... that's what confuses me. So it's not like the job is made, runs, fails and then gets deleted. It gets made and then gets deleted.

@albus522  It might have been a bug on my worker on Heroku that was running out of memory. It still confuses me that the job simply disappeared instead of failing or succeeding though. I'll keep an eye on it throughout the day.

Jobs are most definitely failing randomly and silently! What in the world is going on here?
If I run the following 3 jobs in the Heroku console, then only 1 or 2 will be executed and the rest will fail silently:
Pushover.delay(run_at: 20.seconds.from_now).notification(title: 'TEST', message: "Test 1")
Pushover.delay(run_at: 20.seconds.from_now).notification(title: 'TEST', message: "Test 2")
Pushover.delay(run_at: 20.seconds.from_now).notification(title: 'TEST', message: "Test 3")

I hope someone can help debug this situation. My application is very dependent on jobs being run properly.
I'm using delayed_job_mongoid '2.1.0', Rails '4.1.6' and Ruby '2.2.1'.

@albus522 If I follow the logs, I can see that 1 or 2 jobs are getting run successfully, but I see NO logs for the 3 one. No failed logs, no successful logs. The jobs simply disappear into thin air, which is disastrous. What could be that cause of this?
I've tried to upgrade to the newest version of mongoid_delayed_job, but with no luck. I'm not sure what I did since this only started happening 2 days ago. Any guesses?

@albus522  I figured it out. I have another rails application (where I run delayed_job_web) which has delayed_job installed, shares the same database and has a worker running. So the jobs would simply run and apparently not fail.
Is there any way to set which jobs should run on which worker?

https://github.com/collectiveidea/delayed_job#named-queues

Thanks. I don't understand how naming a task would make it run a specific worker?!

https://github.com/collectiveidea/delayed_job#running-jobs specifically limiting a worker to run jobs from specific queues

Oh, cool. Where do I set that? In my Procfile?
worker: rake jobs:work --queues=mailers,tasks

Seems like this is the right way to do it:
worker: QUEUE=api rake jobs:work

Thanks for the help.


GPS estimate doesn't work via MAVSDK-Python, but it works well from QGC

Hello -
It's a Question, i don't know how to label this one.
I'm trying to run takeoff_and_land.py from examples. Managed to connect pixhawk4 via USB/serial from python. However, it waits forever to obtain global position estimate. However, when I open up QGC - it was able to locate 7 satellites and has a decent position estimate established (see screenshot below).
Waiting for mavsdk_server to be ready...
Connected to mavsdk_server!
Waiting for drone to connect...
Drone discovered with UUID: 354667xxxxxxxxx.
Waiting for drone to have a global position estimate...

Appreciate your thoughts!
cheers,
ram

Ah, now it works (after say 2-3 mins of waiting for GPS -- it says GPS OK :) -- I wasn't patient enough I guess. Sorry for that!
However, the issue is with Arming itself. It throws:
await drone.action.arm()  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mavsdk/generated/action.py", line 230, in arm
raise ActionError(result, "arm()")
mavsdk.generated.action.ActionError: COMMAND_DENIED: 'Command denied'; origin: arm(); params: ()
Appreciate your thoughts!
cheers,
ram

The GPS information displayed in QGC is not necessarily what is required for PX4 to decide that the position estimate is good enough to fly. What counts is if PX4 has a global position estimate that is good enough and that's what MAVSDK tries to grab.
@maetugr is working on improving these preflight checks and how they are visualized.
Things that influence GPS signal:

open sky: how much of the horizon is covered by buildings, etc.
GPS receiver: some have not just GPS but also GLONASS, etc.
GPS antenna: usually a big ground plane is better, and there are other factors.
RTC battery: some receivers have a small batter for warm start which is faster than cold start.
interference from other sources such as companion computers with wifi, usb3, flow sensors, cameras, etc.

Thanks @julianoes for describing what's behind why is_global_position_ok: False!
Would like to have more feedback/metadata on preflight checks as they are going on inside. Despite the time it takes before returning is_global_position_ok: True, in my case, I still get COMMAND_DENIED when trying to arm(). And, I looked for all possibilities that I can including disabling safety switch on GPS, disconnecting/reconnecting RC, reconnect with QGC and close QGC etc.
Interesting thing is, MAVSDK was able to upload mission but just could not arm().
Do you see any checklist that I'm missing here before arm() ?
Thanks again!

I suggest you open QGC next to it when you try to arm and maybe you'll see status text messages indicating what is wrong? There are other preflight checks which might be triggering.

Good tip, @julianoes - Thanks!
It seems that I cannot test MavSDK APIs when my laptop is tethered to pixhawk4 (with GPS mounted). QGC shows up two errors as the main reasons for not arming.

USB check failed (as it is tethered)
Very low voltage check

I would like to check if I'm in the right direction to build/test my MavSDK programs on real hardware without disabling USB checks and tinkering voltage numbers.
My goal is to test my programs as close to the real target hardware (pixhawk4 with px4).
Please advise.
cheers,
ram

Never mind @julianoes .. i'm going with using headless-Gazebo to test my programs.
Courtesy: blog post here.

Courtesy: blog post here.

I don't see what you meant to link there.
For the USB and voltage checks there are circuit breakers:
https://dev.px4.io/master/en/advanced/parameter_reference.html#circuit-breaker


Client side caching

Currently, a file needs to be transferred every time the user opens it with sshedit. The client side should cache files, allowing reuse without having to re-transfer the file.
One example for how it could work:

Host: Check size of file.
Host: If the file is less than a threshold size, use protocol version 1 (send the file name, size, and contents).
Host: If the file is >= [threshold size], Initiate session, send protocol version, filename, checksum, and size.
Client: If the file is cached (based on the checksum and size), start the editor on a copy of the cached file and send a confirmation to the host
Client: If the file is not cached, request the entire file from the host.
1. Host. Send file contents.
Client: Cache the file for future use.
Client: While the editor is running, compare the cache size to the limit (set in configuration) and delete the oldest (by last access time) files from the cache if necessary.
Client: Once the editor exits, delete the edited file if unmodified.

Another possibility: Host sends the checksum and size in headers and immediately starts sending the file. As soon as the client receives the checksum, it checks the cache for an appropriate file. If it finds one, it sends a stop signal back to the host and uses the found file.
This potentially wastes data (the host will be sending packets that the client doesn't need), but it reduces round trips if the file isn't in the client's cache.


polygonToCells fails for some simple large polygons

when the polygon is very large,and the res is more than 0,then has error  as follow:

for example:
const regionBox = {
  xmin: -180,
  ymin: -90,
  xmax: 0,
  ymax: 0
};
const polygon = [
  [regionBox.ymin, regionBox.xmin],
  [regionBox.ymax, regionBox.xmin],
  [regionBox.ymax, regionBox.xmax],
  [regionBox.ymin, regionBox.xmax]
];
const hexagons = h3.polygonToCells(polygon, 2);

This is currently the expected behavior, and should be better documented - the polygonToCells function will reject polygons with arcs > 180 degrees on longitude, because we do not currently enforce winding order so the area enclosed by the polygon is ambiguous (it could stretch across the antimeridian).
The workaround is to break very large polygons into smaller polygons with < 180 degrees of longitude.


ModuleNotFoundError: No module named 'tensorflow.compat.v1'

I had this error with tensorflow 1.12.0 when trying to use the test_frcnn.py. I manged to fix it by changing to tensorflow 1.14.

I used tensorflow==2.11.0 and keras==2.2.4 and I didn't face the above problem


analytics: Disable GA on localhost

Problem
Built-in templates for Google Analytics are enabled on localhost, aka development server.
Solution
Disable GA templates as done in Disqus if localhost is detected.
What version of Hugo are you using (hugo version)?

$ hugo version
v0.71.1

Does this issue reproduce with the latest release?
Yes

I'm more than happy to send a patch fixing this, as long as someone says it's ok to do so.

I think you accomplish this with configuration settings. See https://gohugo.io/getting-started/configuration/#configuration-directory.
├── config
│   ├── _default
│   │   └── config.toml
│   ├── development
│   │   └── config.toml
│   └── production
│       └── config.toml

config/_default/config.toml:
googleAnalytics = ""

config/production/config.toml
[production]
googleAnalytics = ""
[production]
googleAnalytics = "your-code-here"

I'm sure someone is running hugo locally behind a proxy in a production environment.  While we don't recommend that setup, this feature request would break that setup.  I'd prefer to see you use the existing configuration options mentioned above by @jmooring.

That needs some documentation I think at the place of the analytics documentation. At least a little notice :)

Actually, it's easier than I originally proposed. Two methods:

Conditionally include the template in baseof.html or wherever:
{{ if not .Site.IsServer }}
  {{ template "_internal/google_analytics.html" . }}
{{ end }}

The template will not be rendered if googleAnalytics is not present in config.toml. So...
├── config
│   ├── _default
│   │   └── config.toml
│   └── production
│       └── config.toml

config/_default/config.toml:
# googleAnalytics = "your-live-code-here" (or eliminate the entry)

config/production/config.toml:
googleAnalytics = "your-live-code-here"

Thanks for getting in touch, but it feels like this is a question  that would be better suited to the Hugo Discussion Forum.  We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug. You may also find the answers you search for in Hugo Documentation.