[2.0] These credentials do not match our records.

Hello for days I'm trying to connect an application with ldap but I have been many problems, I followed the tutorials https://github.com/SaschaDens/ldap-connector and https://github.com/Adldap2/Adldap2-Laravel laravel 5.2 and I get the following error in the login These credentials do not match our records. I hope you can help me @stevebauman

Hi @leonmilx, I need a lot more information to help you out.
 Run a query in your app/Http/routes.php file to make sure:
// routes.php

$users = Adldap::getProvider('default')->search()->users()->get();

dd($users);

this is what I have in routes.php
 ['web']], function () {
//     //
// });

Route::group(['middleware' => 'web'], function () {
    Route::auth();
    Route::get('/home', 'HomeController@index');
});
that part would add that line exactly ???

I appreciate your guidance I am very new to laravel

I appreciate your guidance I am very new to laravel

No problem. We all start somewhere :)
Did you follow the quick start from scratch tutorial?
https://github.com/Adldap2/Adldap2-Laravel/blob/master/quick-start.md

No esos no, solo hasta el paso 4 lo hice...vuelvo hacer ese procedimiento??? pero no comprendo debo modificar el .env tambien

No such not only to step 4 did ... I'll do that process ??? but I do not understand also change the .env

I'm sorry I don't understand. You're having trouble changing the .env file?

excuse me, I do not understand because I have to change the file .env ???
I'm looking for ways to make the connection to ldap, I have no information from the database only I have the ip, the dn ldap regarding that I want to make the connection

this is my file .env, before connection with ldap, my application worked correctly
APP_ENV=local
APP_DEBUG=true
APP_KEY=pYg7IjjxfinPQqHr3Ji3ItbMSUbT0Nbt
DB_HOST=localhost
DB_DATABASE=nameBD
DB_USERNAME=****
DB_PASSWORD=****
DB_PORT=5433
DB_SCHEMA=public
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=localhost
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=252
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

and this in my file adldap.php
 true,

    /*
    |--------------------------------------------------------------------------
    | Connection
    |--------------------------------------------------------------------------
    |
    | The connection class to use to run operations on.
    |
    | Custom connection classes must implement \Adldap\Connections\ConnectionInterface
    |
    */

    'connection' => 'Adldap\Connections\Ldap',

    /*
    |--------------------------------------------------------------------------
    | Connection Settings
    |--------------------------------------------------------------------------
    |
    | This connection settings array is directly passed into the Adldap constructor.
    |
    | Feel free to add or remove settings you don't need.
    |
    */

    'connection_settings' => [

        /*
        |--------------------------------------------------------------------------
        | Account Suffix
        |--------------------------------------------------------------------------
        |
        | The account suffix option is the suffix of your user accounts in AD.
        |
        | For example, if your domain DN is DC=corp,DC=acme,DC=org, then your
        | account suffix would be @corp.acme.org. This is then appended to
        | then end of your user accounts on authentication.
        |
        */

        'account_suffix' =><EMAIL_ADDRESS>
        /*
        |--------------------------------------------------------------------------
        | Domain Controllers
        |--------------------------------------------------------------------------
        |
        | The domain controllers option is an array of servers located on your
        | network that serve Active Directory. You can insert as many servers or
        | as little as you'd like depending on your forest (with the
        | minimum of one of course).
        |
        */

        'domain_controllers' => ['123.45.67','abc.def.ghi'],

        /*
        |--------------------------------------------------------------------------
        | Port
        |--------------------------------------------------------------------------
        |
        | The port option is used for authenticating and binding to your AD server.
        |
        */

        'port' => 389,

        /*
        |--------------------------------------------------------------------------
        | Base Distinguished Name
        |--------------------------------------------------------------------------
        |
        | The base distinguished name is the base distinguished name you'd like
        | to perform operations on. An example base DN would be DC=corp,DC=acme,DC=org.
        |
        | If one is not defined, then Adldap will try to find it automatically
        | by querying your server. It's recommended to include it to
        | limit queries executed per request.
        |
        */

        'base_dn' => 'DC=corp,DC=org',

        /*
        |--------------------------------------------------------------------------
        | Administrator Username & Password
        |--------------------------------------------------------------------------
        |
        | When connecting to your AD server, an administrator username and
        | password is required to be able to query and run operations on
        | your server(s). You can use any user account that has
        | these permissions.
        |
        */

        'cn' => '****',
        //'admin_username' => '****',
        'admin_password' => '',

        /*
        |--------------------------------------------------------------------------
        | Follow Referrals
        |--------------------------------------------------------------------------
        |
        | The follow referrals option is a boolean to tell active directory
        | to follow a referral to another server on your network if the
        | server queried knows the information your asking for exists,
        | but does not yet contain a copy of it locally.
        |
        | This option is defaulted to false.
        |
        */

        'follow_referrals' => false,

        /*
        |--------------------------------------------------------------------------
        | SSL & TLS
        |--------------------------------------------------------------------------
        |
        | If you need to be able to change user passwords on your server, then an
        | SSL or TLS connection is required. All other operations are allowed
        | on unsecured protocols. One of these options are definitely recommended
        | if you have the ability to connect to your server securely.
        |
        */

        'use_ssl' => false,
        'use_tls' => false,
        //'recursive_groups' => true,

        /*
        |--------------------------------------------------------------------------
        | SSO (Single Sign On)
        |--------------------------------------------------------------------------
        |
        | If you enable single sign on, be sure you've properly set it up
        | on your server before hand.
        |
        */

        'use_sso' => false,

    ],

];

Good Morning @stevebauman  I really hope your help and thank you very much, I'm desperate!!! :(

Hi @leonmilx,
I'm sorry but I'm having trouble understanding your issue. I see that your native language is Spanish (please correct me if I'm wrong). Are you able to communicate with a native English speaker who can further explain your issue?
I'm more than happy to help you out, but I'm having trouble deciphering what you're having issues with.

Hi Steve certainly my native language is Spanish, I am developing a project with laravel 5.2 vers related to ldap connections, and I'm confused because there are two different tutorials both are using different command, which of these two do you recommend me to follow??? https://packagist.org/packages/dsdevbe/ldap-connector or the one you shared me in this forum ??? https://github.com/Adldap2/Adldap2-Laravel/blob/master/quick-start.md, I'm starting from scratch again to avoid problems ...

I've been getting the same error with my project. In my case it was due to the login domain name not matching the email domain name for users.

@leonmilx, follow the Adldap2 guide, do not follow the ldap-connector guide.
Unfortunately since all you're receiving is a generic incorrect login for laravel's auth, it's hard to help you debug this.

Hello @stevebauman  I followed the Adldap2 tutorial steps, once I enter the username and password Im getting the following msg
Whoops, looks like something went wrong.
1/1 ReflectionException in Route.php line 280: Method App\Http\Controllers\Auth\AuthController::login() does not exist
in Route.php line 280
at ReflectionMethod->__construct('App\Http\Controllers\Auth\AuthController', 'login') in Route.php line 280
at Route->signatureParameters('Illuminate\Database\Eloquent\Model') in Router.php line 859
at Router->substituteImplicitBindings(object(Route)) in Router.php line 844
at Router->substituteBindings(object(Route)) in Router.php line 827
at Router->findRoute(object(Request)) in Router.php line 691
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 54

Hi @stevebauman  I have a problem
Whoops, looks like something went wrong.
1/1 BindException in Guard.php line 99: Bind to Active Directory failed. Check the login credentials and/or server details. AD said: Invalid DN syntax

Hi @leonmilx, what is your base_dn set to in your config/adldap.php file?

'base_dn' => 'dc=gob,dc=init',

Are you sure that's the base DN of your AD server? Usually a DN ends in dc=org or dc=com

This is my file config/adldap.php
 [

        'default' => [

            /*
            |--------------------------------------------------------------------------
            | Auto Connect
            |--------------------------------------------------------------------------
            |
            | If auto connect is true, anytime Adldap is instantiated it will automatically
            | connect to your AD server. If this is set to false, you must connect manually
            | using: Adldap::connect().
            |
            */

            'auto_connect' => true,

            /*
            |--------------------------------------------------------------------------
            | Connection
            |--------------------------------------------------------------------------
            |
            | The connection class to use to run operations on.
            |
            | You can also set this option to `null` to use the default connection class.
            |
            | Custom connection classes must implement \Adldap\Contracts\Connections\ConnectionInterface
            |
            */

            'connection' => Adldap\Connections\Ldap::class,

            /*
            |--------------------------------------------------------------------------
            | Schema
            |--------------------------------------------------------------------------
            |
            | The schema class to use for retrieving attributes and generating models.
            |
            | You can also set this option to `null` to use the default schema class.
            |
            | Custom schema classes must implement \Adldap\Contracts\Schemas\SchemaInterface
            |
            */

            'schema' => Adldap\Schemas\ActiveDirectory::class,

            /*
            |--------------------------------------------------------------------------
            | Connection Settings
            |--------------------------------------------------------------------------
            |
            | This connection settings array is directly passed into the Adldap constructor.
            |
            | Feel free to add or remove settings you don't need.
            |
            */

            'connection_settings' => [

                /*
                |--------------------------------------------------------------------------
                | Account Prefix
                |--------------------------------------------------------------------------
                |
                | The account prefix option is the prefix of your user accounts in AD.
                |
                | For example, if you'd prefer your users to use only their username instead
                | of specifying a domain ('ACME\jdoe'), enter your domain name.
                |
                */

                'account_prefix' => '',

                /*
                |--------------------------------------------------------------------------
                | Account Suffix
                |--------------------------------------------------------------------------
                |
                | The account suffix option is the suffix of your user accounts in AD.
                |
                | For example, if your domain DN is DC=corp,DC=acme,DC=org, then your
                | account suffix would be @corp.acme.org. This is then appended to
                | then end of your user accounts on authentication.
                |
                */

                'account_suffix' =><EMAIL_ADDRESS>
                /*
                |--------------------------------------------------------------------------
                | Domain Controllers
                |--------------------------------------------------------------------------
                |
                | The domain controllers option is an array of servers located on your
                | network that serve Active Directory. You can insert as many servers or
                | as little as you'd like depending on your forest (with the
                | minimum of one of course).
                |
                */

                'domain_controllers' => ['<IP_ADDRESS>1', 'serv.gov.init'],

                /*
                |--------------------------------------------------------------------------
                | Port
                |--------------------------------------------------------------------------
                |
                | The port option is used for authenticating and binding to your AD server.
                |
                */

                'port' => 389,

                /*
                |--------------------------------------------------------------------------
                | Base Distinguished Name
                |--------------------------------------------------------------------------
                |
                | The base distinguished name is the base distinguished name you'd like
                | to perform operations on. An example base DN would be DC=corp,DC=acme,DC=org.
                |
                | If one is not defined, then Adldap will try to find it automatically
                | by querying your server. It's recommended to include it to
                | limit queries executed per request.
                |
                */

                'base_dn' => 'DC=gob,DC=init',

                /*
                |--------------------------------------------------------------------------
                | Administrator Account Suffix
                |--------------------------------------------------------------------------
                |
                | This option allows you to set a different account suffix for your
                | configured administrator account upon binding.
                |
                | If left empty, your `account_suffix` option will be used.
                |
                */

                'admin_account_suffix' =><EMAIL_ADDRESS>
                /*
                |--------------------------------------------------------------------------
                | Administrator Username & Password
                |--------------------------------------------------------------------------
                |
                | When connecting to your AD server, an administrator username and
                | password is required to be able to query and run operations on
                | your server(s). You can use any user account that has
                | these permissions.
                |
                */

                'admin_username' => 'user',
                'admin_password' => '',

                /*
                |--------------------------------------------------------------------------
                | Follow Referrals
                |--------------------------------------------------------------------------
                |
                | The follow referrals option is a boolean to tell active directory
                | to follow a referral to another server on your network if the
                | server queried knows the information your asking for exists,
                | but does not yet contain a copy of it locally.
                |
                | This option is defaulted to false.
                |
                */

                'follow_referrals' => false,

                /*
                |--------------------------------------------------------------------------
                | SSL & TLS
                |--------------------------------------------------------------------------
                |
                | If you need to be able to change user passwords on your server, then an
                | SSL or TLS connection is required. All other operations are allowed
                | on unsecured protocols. One of these options are definitely recommended
                | if you have the ability to connect to your server securely.
                |
                */

                'use_ssl' => false,
                'use_tls' => false,

            ],

        ],

    ],

];

Hi @stevebauman I have a new problem
Whoops, looks like something went wrong.
1/1 BindException in Guard.php line 91: Server is unwilling to perform
:( :( :(

Help me please @stevebauman :D

Hey @leonmilx, sorry for the long response.
That exception usually occurs when you're anonymously binding to your server or you don't have authorization to run searches / modifications with the account you've bound with.
Are you sure you're using an administrator account in your configuration?

Steveeee I'm using linux, I have permission to access LDAP, but I still have the error
BindException in Guard.php line 91: Server is unwilling to perform
Help me pleaseeeeeeeeee,
What I can do??????? :( :( :( :( :( :(

There has to be something wring in your configuration.
To be absolutely clear, are you sure this is correct:
'base_dn' => 'DC=gob,DC=init', // < Is this the correct base DN?

yes, I'm sure
'base_dn' => 'DC=gob,DC=init'
the user is adm and password does not have.
'admin_username' => 'adm'
It means cn=adm???

the user is adm and password does not have.

You don't have a password for the admin account?
If so, this is the problem. You can't perform LDAP operations on your server without a password for an account.

ldap has no password is empty,there are other applications that connect ldap, but this new application is with laravel. :( :( :(

Just use an administrator account that has a password, and if that works, then that is the issue.
To be honest, you really shouldn't be using an administrator account with a blank password anyway.

I'll find this information about password, thanks!!!  but I warn you :D

Hi @stevebauman
'admin_username' =>'adm',
'admin_password' =>'Prldap145',
I found the password, but I have the following error
BindException in Guard.php line 91: Invalid DN syntax :( :( :( :( :(

My file adldap.php is
'connection_settings' => [
'account_prefix' => '',
'account_suffix' =><EMAIL_ADDRESS>'domain_controllers' => ['<IP_ADDRESS>1', 'serv.gov.init'],
'port' => 389,
'base_dn' => 'DC=gob,DC=init',
'admin_account_suffix' => '',
'admin_username' => 'adm',
'admin_password' => 'Prldap145',
'follow_referrals' => false,
'use_ssl' => false,
'use_tls' => false,
],
where is the syntax error????  :/   : /   :/   :/

Hi @stevebauman Remember me pleaseeeeeeeee :D

thanks @arose-hat. that fixed it for me.

You always using gov.init expect in your DN?
'base_dn' => 'DC=gob,DC=init',

Are you 100% sure thats correct? Sorry for asking again.
And if you have problems setting it up with laravel, try an LDAP Browser first.

Closing due to inactivity.


No Advanced Lighting OpenGL Mac OSX

Advanced lighting currently does not work on Mac OSX.
It refuses to enable. Have to investigate more.
@eightyeight can you throw the OSX label on here :)

You corrected script?(where is activation of AL)
Delete Check if(platform==macosx)return;

didn't know there was script blocking it, will check soon, thanks :)

@galek where is the script that is causing this? I can't seem to find it.

@JeffProgrammer
in Templates\Full\game\core\scripts\client\lighting\advanced\init.cs
function onActivateAdvancedLM()
{
// Don't allow the offscreen target on OSX.
if ( $platform $= "macos" )
return;
// On the Xbox360 we know what will be enabled so don't do any trickery to
// disable MSAA
if ( $platform $= "xenon" )
return;
// Enable the offscreen target so that AL will work
// with MSAA back buffers and for HDR rendering.
AL_FormatToken.enable();
}

i removed the mac OSX check, and it still refuses to enable advanced lighting.

progress! good and bad.
Good:
So, funny enough, there's some old legacy GL checking that was making advanced fail. managed to solve that: https://github.com/JeffProgrammer/Torque3D/commit/b0d0a380d52c0cf19218f183821586c3280e1913
Bad: advanced lighting doesn't quite work....it renders geometry black :/


Contextual Menu plugin - Does not open when right clicking name

Contextual Menu only works when right clicking on the icon and not the name.
When right clicking on the name, it breaks the contextual menu for that file/node and users can no longer access it (even the checkbox, if enabled) until after refreshing.
Tested on the demo site to verify.

I can not reproduce - which browser, which OS? Right-clicking anywhere on a node works fine:
https://www.jstree.com/plugins/
Please provide more information and steps to reproduce the issue and I will reopen.

My apologies. I tested this on FIrefox and in an incognito window on Chrome, both worked properly.
Isolated the issue to an extension (Flip this) that allows me to right click and rotate elements (ex. pictures) on demand, without having to fiddle with dev tools to rotate it manually.
The plugin is working properly.


Fixed NPM Error ❗ Important Pull ✅

Fixed NPM ✅
@Ftwrr @ariffb25

Both Can Be Used [ npm i or npm update or bash install.sh ] So Updated Readme Back.

that version is not supported to send button & list messages


Cross-Origin Request Blocked

Version
4.5.8
Reproduction link
http://xxx
Environment info
Linux

$ vue --version
@vue/cli 4.5.8

Steps to reproduce
update /etc/hosts
<IP_ADDRESS>       dev dev.local localhost localhost.localdomain

Create a hello-world app using vue-cli, run app
yarn serve

Error 1

open browser at: http://localhost:8080
open debug console, see errors, "Cross-Origin Request Blocked:"

Error 2

stop the app, use suggested url in console, "http://dev:8080"
this redirects to "https" and unable to see vue app running in the browser.

What is expected?
app run without error in the debug console
What is actually happening?

seeing error in debug console as mention earlier
http gets redirected to https

I discovered another error! do not update /etc/hosts
Make sure it looks like the following, this should be the default.
After making this change you should logout and login again.
<IP_ADDRESS>       localhost localhost.localdomain

The hostname of my Linux box is, "dev", type hostname in the terminal.
$ hostname
dev

Is seem Vue.js CLI is using the hostname, rather than using localhost, someone decided to get clever I suppose?
Anyway as a result of this I am no longer able to run and view the Vue.js app

http://localhost:8080 does not show anymore
http://dev:8080 gets redirected to https and does now show anything

This is supper annoying as I can no longer code a Vue.js 3 app.

The vue-cli-service server is not defaulting to host <IP_ADDRESS>, please fix to make this the default and don't use any clever lookup.
For anyone else having this problem, I found a work-around, update package.json script like this:
  "scripts": {
    "serve": "vue-cli-service serve --host <IP_ADDRESS>",


[Bug]: v1.7.0 built version does not run on intel macs

Code of Conduct

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

Is there an existing issue for this?

[X] I have searched the existing issues

App Version
1.7.0
Electron Version
29.2.0
Operating System
MacOS
What happened?

Steps To Reproduce
Open the app
Relevant log output
No response

The electron version should be 30 something I thought...

Should we pull this version?

Probably. It's hard to say. Do we want to support intel or apple silicon macs? I think that my vote would be to just add a note to the README about intel-based macs and point them at the older version. It appears to me that intel macs don't auto-upgrade to the unsupported version:

I'd like to figure out what caused changes to the support matrix. I wonder if it's the github hosted runners or new versions?

I assume that it was the switch from darwin to arm-based builds?

I didn't change anything in the code to explicitly specify ARM. We are still using the darwin token in the maker.
I think https://github.com/electron/universal is the solution.

This has been resolved.


Loss is decreasing but accuracy stuck on 47%

I have asked this question on stack overflow link  .
I suspect that there may be some error in prediction functions as it’s very weird that my loss Is decreasing but accuracy stuck on 47% after 10 epochs, then remain on that after few more epochs
But after 30 epochs, loss is still decreasing, however accuracy is now beginning to decrease rather than increase.
This issue may relate to performance as I can not see any coding error in the training loop.

I don't think we can classify this issue as an error. Unfortunately, there are too many unknowns, including lack of MFE. StackOverflow is the right place for discussing this matter.


Purchasing Alias after expiry doesn't properly assign ownership

Create alias as UserA, let it expire
As UserB purchase the alias
Note UserB pays for alias activation, UserA also sees an alias activation transaction. UserB doesn't get alias / doesn't show in alias list, aliasinfo.ismine=false. UserA see alias in non-expired list again, can edit, etc.

Expected: Alias is owned by UserB. UserA sees no transaction. UserA cannot edit alias.

retest


Added support for mifareclassic and mifare ultralight cards

Added support to read MiFareClassic and Mifare Ultralight cards.  I'm cleaning up my repositories, I will leave this open for a couple weeks, then I'm deleting it as I have no reason to keep it going forward

@tblanchard Just wondering if you would be able to help out with @mobidev111 questions ?
It would be really great to get these additions merged.  Appreciate your time is limited and so thanks in advance for any help you can provide.


Enhance the relayMetadata documention

relayMetadata is likely going to be the most popular security scheme for API providers. The integration team would like more details added to the docs to enhance the relay metadata flow.

We could also add a link to the airnode-examples integration: https://github.com/api3dao/airnode/tree/master/packages/airnode-examples/integrations/relay-security-schemes

This has been completed and deployed.
Pull Requests:

656
657


Errors trying to open MARGO

Hi there,
I'm using Matlab 2016b with the bug updates to try and open MARGO, but keep getting some errors. Would hugely appreciate any help on this topic- I got it going once before but it won't seem to work anymore :( I've attached the error code here:

ls

.                   .gitignore          README.md           data classes        experiments         hardware            tracking
..                  LICENSE.md          analysis and plots  examples            gui                 profiles            utilities

addpath(genpath(pwd));
margo
Error using serial/fwrite (line 199)
Unsuccessful write: A timeout or Ctrl-C occurred during the write operation.

Error in writeInfraredWhitePanel (line 25)
fwrite(COM_obj,writeData,'uchar');
Error in refreshCOM (line 54)
writeInfraredWhitePanel(expmt.hardware.COM.light,1,...
Error in margo>margo_OpeningFcn (line 118)
[expmt, handles] = refreshCOM(expmt, handles);
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in margo (line 48)
gui_mainfcn(gui_State, varargin{:});

Issue should be fixed with on the most recent versions of the master branch after: https://github.com/de-Bivort-Lab/margo/tree/feature/zwerkho-001-update-deprecated-functions


create coordinated AMA thread

 Issue by Erkan-Yilmaz
Wednesday Jan 25, 2017 at 12:02 GMT
Originally opened as https://github.com/Erkan-Yilmaz/Gridcoin-tasks/issues/65

e.g. "ask the community anything", and then several users answer there

https://www.reddit.com/r/AMA/

what strategy to use ?

bundle with other ads/marketing activities ?

mentioned in hangout 5

 Comment by grctest
Wednesday Jan 25, 2017 at 13:19 GMT

/r/iAMA has more than 15million subscribers where as /r/AMA has approx 150k subscribers.
/r/ama rules:

Moderators can use their discretion to remove posts they think need to be (advertising, repeated reposting of the AMA, no identification [My friend said I should do an AMA, AMA.], or otherwise posts that we feel may deteriorate the subreddit.

/r/iama rules:

Obvious nonsense or advertising will be removed - this is up to the discretion of the moderators.

I believe that moderators may perceive the AMA as advertising & censor/ban our attempts at an AMA. It's worth inquiring about the idea though..

AMAs need to be about something you have done, not something that you plan to do at some point or are in the process of doing.

Gridcoin isn't in the past tense, technically it's something actively present..

We could do an AMA on the less serious AMA subreddits (there's a few) if we're rejected from the main AMA subs. Alternatively, we could do one on Steemit (where censorship does not exist).
edit: Perhaps we'd have the least mod resistance on /r/InternetAMA/ ?

 Comment by fkinglag
Wednesday Jan 25, 2017 at 14:17 GMT

I also suggest r/casualAMA as another source/venue to help us do this. Having a charity-related thing we could do at the same time would help exposure throughout. Have we ever had any ideas for charity endorsement?
r/AMA, years ago, was changed in order to deter the amount of people constantly making AMA's. In some cases the AMA would be a hit and now the rules are set in place in order to control a narrative on Reddit. We see r/AMA used now as a venue for celebrities and projects to pump their products up into this narrative for exposure. I don't know how they can have these rules against advertising when clearly every AMA made has something being plugged. Reddit was supposed to be a non-profit.

 Comment by grctest
Wednesday Jan 25, 2017 at 14:27 GMT

Have we ever had any ideas for charity endorsement?

https://github.com/Erkan-Yilmaz/Gridcoin-tasks/issues/62

I think this would be a train wreck if we attempted this, hangouts are far more appropriate for getting personal responses & since we'd be forced to use smaller obscure ama subs this would be unlikely to recruit significant quantities of users.


"No Yubikey interface available" when enabling All interfaces

I'm using the Yubico.Core and Yubico.Yubikey Nuget packages for setting/removing Lock Codes and add/remove NFC/USB Capabilities.   The SetEnabledUSBCapabilities and SetEnabledNFCCapabilities methods work fine when starting with a Yubikey that initially has all capabilities enabled and then removing all but the FIDO2 NFC/USB capabilities.  However, when I try to re-enable "All" capabilities on that Yubikey, I get "There is no YubiKey interface available to communicate with the requested application".
They YKMan.exe utility and the YKMan-GUI do not have this problem, so it's certainly possible to do this using other means.  Is there some method I need to run prior to the lines of code below, or is this a bug in the SDK?
device.SetEnabledNfcCapabilities(YubiKeyCapabilities.All);
device.SetEnabledUSBCapabilities(YubiKeyCapabilities.All);

Is this on Windows? If so, you need to run your code in an elevated process.
Windows prevents unprivileged access to any CTAP devices.

Hey @steven-keller - were you able to get logging turned on? Did that show any errors or warnings that might be helpful?

Yes, sorry about that. I just realized that we don't really have a good writeup in our documentation. We ought to correct that.
I believe you would need the following packages:

Serilog
Serilog.Sinks.Console
Serilog.Extensions.Logging

I hope that helps!

Hey @steven-keller - any update on your side? I was never able to reproduce this on my end. Are you still encountering this issue?

Closing this issue. Feel free to re-open it if you are still encountering the issue.


HTML unordered/ordered list tags are not rendered correctly within tables

Describe the bug
Certain HTML tags are not honored/rendered correctly within the context of tables.
To Reproduce
Declare a table with some embedded HTML on a page.
| col1 | col2 | col3 |
| --- | --- | --- |
| some data | more data | here is a list
 that is not rendered correctly:

list item 1

list item 2

list item 3

 |
| even more data | data everywhere | here is an ordered
 list that is not rendered correctly:

list item 1

list item 2

list item 3

 |

Expected behavior
The table should be rendered with an unordered list and ordered list similar to how GitHub renders the table.
Screenshots
GitHub render (correct):

Just The Docs render (incorrect):

Desktop (please complete the following information):

OS: Windows 10
Browser: Firefox, Chrome
Version: Firefox 79.0, Chrome 84.0.4147.125

Additional context
As you can see, some HTML tags (such as the
) are rendered correctly. We cannot use the standard markdown list declaration within the table as it breaks the table syntax. We are using the default layout and do not have any custom CSS.

@mttjj this issue is a general one for Kramdown, and not related to the use of this theme.
See https://mademistakes.com/notes/kramdown-table-html/ for a work-around. I'm not familiar with how GitHub processes Markdown extensions, but it appears to differ from Kramdown.

That makes sense! I should have looked at Kramdown closer before opening this bug here. I tried the work around demonstrated in the article and it works for us.
Much appreciated!

Glad to hear it works for you. The Kramdown developer seems quite dogmatic about the design choice of not supporting block content in table cells – see https://github.com/gettalong/kramdown/issues/387. It would be good if we could switch to a more expressive extension of Markdown (such as Pandoc) for use with Jekyll on GitHub Pages, but I guess we'll have to live with Kramdown work-arounds like this one for the foreseeable future 🙄


Align already captured RGB and depth images

Issue Description
Hi, guys. I've searched through issues but haven't found any working example for the following: I already have captured color and depth images (as .jpg) and i need to align them. I have intrinsics and extrinsics data (and some additional depth info) so that I can initialize classes but I don't know how to properly use them - all I've seen so far is processing images from the stream, not from the file.
Can please someone navigate me or link the similar problem?

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
Win10

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/NVIDIA Jetson/ etc..

SDK Version
2.30+

Language
python

Segment
others

Hi @FourierMourier  The best available reference for alignment of already created image files is at https://github.com/IntelRealSense/librealsense/issues/1274
If you still have the camera then it would be easier to record depth and color streams into a bag file (which is like a video recording of camera data) and then load the bag file into the RealSense SDK and apply alignment to the stored data in real-time.

Hi @FourierMourier  Do you require further assistance with this case, please?  Thanks!

@MartyG-RealSense Hi, thanks. I would like to, but not sure whether smth would help...btw, do you know why i pass rs.software_video_frame object to depth_sensor being of type rs.software_sensor in method .on_video_frame and get "Process finished with exit code -1073741819 (0xC0000005)" in the debug/run mode?
this is how i create such frame
    depth_video_frame = rs.software_video_frame()     depth_video_frame.pixels = depth_frame     depth_video_frame.stride = stride     depth_video_frame.bpp = bpp     depth_video_frame.timestamp = 0.0  # 0.0 as default     depth_video_frame.domain = rs.timestamp_domain.hardware_clock     depth_video_frame.frame_number = frame_number
but segmentation fault happens anyway; also, i noticed that pixels attribute is expected of type rs.BufData but i can't use the constructor; depth_frame is a contiguous flatten np array of type np.uint16
what's the recommended way of creating rs.software_video_frame objects? how can i fill data then?

Hi @FourierMourier  A RealSense team member provides advice about BufData at https://github.com/IntelRealSense/librealsense/issues/8394
My knowledge of software-device programming is admittedly limited and so I do not have advice that I can provide about rs.software_video_frame() unfortunately, though https://github.com/IntelRealSense/librealsense/issues/7057 has an example of a Python software-device script that uses it.
for i in [f for f in os.listdir() if 'npy' in f]:
    print('loading frame i')
    depth_npy = np.load(i, mmap_mode='r')

    vid_frame = rs.software_video_frame()
    vid_frame.stride = depth_stream.width * depth_stream.bpp
    vid_frame.bpp = depth_stream.bpp
    vid_frame.timestamp = 0.0
    vid_frame.pixels = depth_npy
    vid_frame.domain = rs.timestamp_domain.hardware_clock
    vid_frame.frame_number = int(i.split('.')[0])
    vid_frame.profile = dstream_prof
    vid_frame.pixels = depth_npy
    print('created software frame')

@MartyG-RealSense i tried both numpy array assignment for .pixels attribute as well as sharing data but

example listed in #8394 issue doesn't work with the same error (constructor is not defined)
i'm still getting seg fault errors when trying to put frames

    depth_sensor.on_video_frame(depth_video_frame)
    color_sensor.on_video_frame(color_video_frame)

using the way in #7057 neither helps - i got the same error as the one back in 2020 (no device connected) using newest pylib version...

i already use software_device and syncer classes - cpp code works ok but python breaks due to internal errors; seems strange that 2 years later there's still no python constructor for rs.BufData object...
May i ask you whether the team member can provide a minimal example of how to properly use/initialize such objects?

I will highlight your question to my Intel RealSense colleagues.  Thanks very much for your patience.

@MartyG-RealSense Thanks in advance

@FourierMourier Thanks for raising the issue to the realsense team. Attached please find a sample python script to demonstrate construct software device with pre-captured images and align depth to color. This example first captures depth and color images from realsense camera into npy files and then create software device and align depth to color with the saved images. It was tested on Windows 10 with Python 3.9.10 and pyrealsense2-<IP_ADDRESS>17.
align-with-software-device-example.py.txt

@gwen2018 Thank you very much! I adjusted my data to your given blocks of the code and it finally works (even though i haven't managed to test full pipeline with project_points yet but I can see aligned images without any seg faults in py code)
environment:
win11/win10
pyrealsense2==<IP_ADDRESS>23
python 3.9.16
opencv-python==<IP_ADDRESS>
Some possible improvements as the comments in the code:
if depth_npy is not loaded as numpy array but as image and then is processed, it's expected to be a contiguous flatten array (from width*height) - almost the same applies to color_npy (numpy's .flatten() method seems to handle that properly without manual for loops)
I think this example 100% should be added to lib examples :)

@FourierMourier  It's great to hear that the code kindly provided by @gwen2018 worked for you.
@gwen2018  Thanks so much for the help provided!

Hi @FourierMourier  Do you require further assistance with this case, please?  Thanks!

Hi, I had the same problem with you and I am wondering whether you are willing to share your code to help me solve this problem?  I would appreciate your help so much!

@MartyG-RealSense Sorry for the late response. No, thank you and the team for the assistance! I managed to align to both (depth -> color and vice versa).
Just a small notice - alignment worked fine using 2.53 version (sometimes pypi cannot find version properly specified full version), then i decided to update and got nearly white images no matter what, and maybe 2 weeks after again normal images with the last version; so I'm not sure whether it's a particular package version issue or maybe the machine i worked on

You are very welcome.  Thanks very much for the update about your success!

@songdedaoyi Hi! see the example here:
https://github.com/IntelRealSense/librealsense/issues/12020#issuecomment-1675211260
To proceed, please ensure that you properly initialize the intrinsics and extrinsics objects, following the format specified (since I don't know how you store the data). Additionally, if your depth image is in uint8 format (as image rather than smth like np.array), you will need to convert it to uint16. Once these preparations are complete, you can use the provided code from the Realsense team (link to the answer above).

@MartyG-RealSense By the way, this question is unrelated to the previous issue, but I'm curious: do depth cameras capture objects faster than color cameras? I've noticed that for fast-moving objects, the depth image appears clearer while the color image appears blurred.

Hi @FourierMourier  RealSense camera models of the D435 type, and also D415, have a slow 'rolling' shutter on the RGB sensor and a fast 'global' shutter for the depth sensors.  So on those models with a rolling shutter, RGB blurring can occur during fast motion.
The D455 type models have a fast global shutter on both the RGB and depth sensors.
Increasing RGB FPS to 60 whilst having depth FPS at 30 can help to reduce blurring on D415 / D435x models.
An alternative approach to blur reduction is to set RGB auto-exposure to manual and use a manual exposure value of '78' and an FPS of '6' (not 60).

@songdedaoyi Hi! see the example here: #12020 (comment)
To proceed, please ensure that you properly initialize the intrinsics and extrinsics objects, following the format specified (since I don't know how you store the data). Additionally, if your depth image is in uint8 format (as image rather than smth like np.array), you will need to convert it to uint16. Once these preparations are complete, you can use the provided code from the Realsense team (link to the answer above).

Thanks for your reply! My depth images are in uint16 format and saved as .tif. I am still confused because the sample python script they provide seems to need to capture frames first, I actually have no idea how to deal with the frames I had already captured to replace the function ’wait_for_frames()‘. Could you tell me how to deal with that?

@MartyG-RealSense Thanks for the info! Yeah, I also noticed on some d415 cameras this issue like depth was able to capture the objects and rgb wasn't - just wondering whether the fps reduction will lead to blurred objects on depth also... Thanks for the exposure adjustment feature - should've tried to check that : )

You are very welcome!  Depth should not be affected by RGB blurring due to the fast shutter on the depth sensor.  When depth and RGB are aligned though, the position of the RGB color data may noticably lag behind the position of the depth data instead of both of them moving perfectly together if measures to reduce RGB lag are not taken.

Hi @FourierMourier  Do you require further assistance with this case, please?  Thanks!

Hi @MartyG-RealSense No, you guys helped me a lot so i believe no big issues left. Thanks for your assistance! It seems I have to close it : )

You are very welcome.  I'm pleased that we could help.  Thanks very much for the update!

Hello, I had the same issue that @FourierMourier  had. Basically, I have an RGB-D pair that is saved on my drive in png format. The depth image is Uint16, and the RGB image is Uint8 (I believe these are the correct formats). I followed the steps mentioned in this thread, but I am getting the following error:
Traceback (most recent call last):
File "/home/akadsh/Desktop/demo.py", line 111, in
depth_frame = rs.software_video_frame(depth_data)
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. pyrealsense2.pyrealsense2.software_video_frame()
Invoked with: array([[   0,    0,    0, ...,    0,    0,    0],
[   0,    0,    0, ...,    0,    0,    0],
[   0,    0,    0, ..., 1809, 1804,    0],
...,
[   0,    0,    0, ..., 2460, 2460,    0],
[   0,    0,    0, ..., 2460, 2469,    0],
[   0,    0,    0, ...,    0,    0,    0]], dtype=uint16)
I am not able to figure out where I am going wrong. All of my code is running, but the depth_frame = rs.software_video_frame(depth_data) line is giving me an error. Below, I have attached my full code:
`import cv2
import pyrealsense2 as rs
import numpy as np
fps = 30
camera_depth_intrinsics          = rs.intrinsics()  # camera depth intrinsics
camera_color_intrinsics          = rs.intrinsics()  # camera color intrinsics
camera_depth_to_color_extrinsics = rs.extrinsics()  # camera depth to color extrinsics
sdev = rs.software_device()
depth_sensor: rs.software_sensor = sdev.add_sensor("Depth")
depth_intrinsics = rs.intrinsics()
depth_intrinsics.width  = camera_depth_intrinsics.width
depth_intrinsics.height = camera_depth_intrinsics.height
depth_intrinsics.ppx = camera_depth_intrinsics.ppx
depth_intrinsics.ppy = camera_depth_intrinsics.ppy
depth_intrinsics.fx = camera_depth_intrinsics.fx
depth_intrinsics.fy = camera_depth_intrinsics.fy
depth_intrinsics.coeffs = camera_depth_intrinsics.coeffs       ## [0.0, 0.0, 0.0, 0.0, 0.0]
depth_intrinsics.model = camera_depth_intrinsics.model
depth_stream = rs.video_stream()
depth_stream.type = rs.stream.depth
depth_stream.width = depth_intrinsics.width
depth_stream.height = depth_intrinsics.height
depth_stream.fps = fps
depth_stream.bpp = 2                              # depth z16 2 bytes per pixel
depth_stream.fmt = rs.format.z16
depth_stream.intrinsics = depth_intrinsics
depth_stream.index = 0
depth_stream.uid = 1
depth_profile = depth_sensor.add_video_stream(depth_stream)
color_sensor: rs.software_sensor = sdev.add_sensor("Color")
color_intrinsics = rs.intrinsics()
color_intrinsics.width = camera_color_intrinsics.width
color_intrinsics.height = camera_color_intrinsics.height
color_intrinsics.ppx = camera_color_intrinsics.ppx
color_intrinsics.ppy = camera_color_intrinsics.ppy
color_intrinsics.fx = camera_color_intrinsics.fx
color_intrinsics.fy = camera_color_intrinsics.fy
color_intrinsics.coeffs = camera_color_intrinsics.coeffs
color_intrinsics.model = camera_color_intrinsics.model
color_stream = rs.video_stream()
color_stream.type = rs.stream.color
color_stream.width = color_intrinsics.width
color_stream.height = color_intrinsics.height
color_stream.fps = fps
color_stream.bpp = 3                                # color stream rgb8 3 bytes per pixel in this example
color_stream.fmt = rs.format.rgb8
color_stream.intrinsics = color_intrinsics
color_stream.index = 0
color_stream.uid = 2
color_profile = color_sensor.add_video_stream(color_stream)
depth_to_color_extrinsics = rs.extrinsics()
depth_to_color_extrinsics.rotation = camera_depth_to_color_extrinsics.rotation
depth_to_color_extrinsics.translation = camera_depth_to_color_extrinsics.translation
depth_profile.register_extrinsics_to(depth_profile, depth_to_color_extrinsics)
depth_sensor.open(depth_profile)
color_sensor.open(color_profile)
camera_syncer = rs.syncer()
depth_sensor.start(camera_syncer)
color_sensor.start(camera_syncer)
align_to = rs.stream.color
align = rs.align(align_to)
colorizer = rs.colorizer()
depth_img = cv2.imread('/home/akadsh/Downloads/depthimg_2023-04-25 15_21_05.png', cv2.IMREAD_UNCHANGED)
depth_data = np.array(depth_img)
rgb_img = cv2.imread('/home/akadsh/Downloads/image_2023-04-25 15_21_05.png')
rgb_data = np.array(rgb_img)
depth_frame = rs.software_video_frame(depth_data)
rgb_frame = rs.software_video_frame(rgb_data)
aligned_frames = align.process(depth_frame, rgb_frame)`
Any help would be appreciated.


add points from community guidelines

LGTM
@JuroUhlar What about standard things like code of conduct? Please also close your notices that are fixed by the PR author.

Hey, thanks I closed my solved threads. FingerprintJS repository has a code of conduct, but our other open-source repositories don't, as far as I can tell. We could certainly add it, or at least link to the one in fingerprintjs.

FingerprintJS repository has a code of conduct, but our other open-source repositories don't yet, as far as I can tell. It would be nice to have it everywhere, right? Let's add it here if you like.

@JuroUhlar No, you know better than me whether it should be added. I asked just in case.

FingerprintJS repository has a code of conduct, but our other open-source repositories don't yet, as far as I can tell. It would be nice to have it everywhere, right? Let's add it here if you like.

@JuroUhlar No, you know better than me whether it should be added. I asked just in case.

Okay, let's skip it for now. It makes sense to have it in large repositories with genuine community activity, but for the smaller ones, it's just an extra file to trip over.


Convert gok99.jpg -> gok99.png

So that the grading system will pick it up :( unfortunately image size has 10x-ed

Codecov Report

Merging #29 (68a8d18) into master (b0a8b4b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #29   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

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


the main menu has no start option

Main menu doesn't display any options at all

how can i fix this ?

The same here.


Propagate the span of Self keyword to QSelf

A similar case to #235.
The following code:
use pin_project::{pin_project, pinned_drop};
use std::pin::Pin;

#[pin_project(PinnedDrop)]
pub enum E {
    V { x : () }
}

#[pinned_drop]
impl PinnedDrop for Struct {
    fn drop(self: Pin<&mut Self>) {
        let _: Self = Self::V;
    }
}

The error message points to call-site span:
error[E0533]: expected unit struct, unit variant or constant, found struct variant `#[pinned_drop]`
  --> $DIR/self.rs:47:5
   |
47 |     #[pinned_drop]
   |     ^^^^^^^^^^^^^^
   |

This PR fixes span of < and > tokens of QSelf to make the error message to point to the correct span:
error[E0533]: expected unit struct, unit variant or constant, found struct variant `Self::V`
  --> $DIR/self.rs:51:27
   |
51 |             let _: Self = Self::V;
   |                           ^^^^^^^

bors r+


Simulating multiple traits

In #52 we added the sim_trait(ts, num_causal) function which returns a pandas data frame with num_causal rows. It seems to me that we will often want to simulate multiple traits, which perhaps we should try to support natively. I'm guessing (and correct me if I'm wrong!) that people will do things like this:
num_traits = 100
# Choose number of causal sites uniformly for each trait
num_causal = np.random.uniform(10, 100, size=num_traits)
for j in range(num_traits):
    df_trait = tstrait.sim_trait(ts, num_causal[j])
    # df_trait has cols  site_id, causal_state, and effect_size
    X = tstrait.sim_phenotypes(ts, df_trait)
   # Do something with X

A better pattern (and one more suitable for interoperability with things like SLiM etc might be:
num_traits = 100
# Choose number of causal sites uniformly for each trait
num_causal = np.random.uniform(10, 100, size=num_traits)
df_traits = tstrait.sim_traits(ts, num_causal)
# df_traits has cols trait_id,  site_id, causal_state, and effect_size
for trait_id, X in enumerate(tstrait.sim_phenotypes(ts, df_traits)):
    # Do something with X

The gain here is that we can communicate multiple traits at once - otherwise, it might get quite clunky when trying to work with many traits. The sim_phenotypes function returns an iterator over the traits and the generated phenotypes for each trait (much like msprime does for random seeds).
Thoughts?

I second that working on multiple traits at once is a way forward since that also enables straightforward simulation of correlated traits. Below are some thoughts on what can be done for a single trait at a time or multiple traits. I am not adding anything regarding the API though!
Genetic variance for a trait and covariance between traits is a function of two sources - 1) causal mutation effects and 2) genotypes at 1)

We would want the ability to simulate correlated mutation effects for some loci, potentially all. This can be done:

a) for multiple traits at once (easiest and will involve Cholesky or some other transformation of a user-provided covariance matrix) or
b) for one trait at a time, but taking into account genetic covariance with previous traits through a Cholesky factor.

Once we have 1) we can calculate genetic values of nodes or individuals, by applying causal mutation effects to corresponding genotypes; this can be done independently for each trait, possibly under the hood so it looks multi-trait to a user.

Finally, phenotypic variance for a trait and covariance between traits is a function of at least two sources - 1) genetic values of individuals simulated above and 2) environmental effects experienced by individuals. The latter can be again independent or correlated - through a user-provided environmental covariance matrix. Application of this environmental covariance can be again done:
a) for multiple traits at once (easiest and will involve Cholesky or some other transformation of a user-provided covariance matrix) or
b) for one trait at a time, but taking into account environmental covariance with previous traits through a Cholesky factor.
Above, I say "at least" because a user could be adding other effects on top of the genetic and environmental effects, say sex, year, location, etc. That part can be done after sim_phenotypes().

@jeromekelleher
Thank you for your feedback on https://github.com/tskit-dev/tstrait/pull/55, and I think it is very interesting to try simulating multiple traits.
I guess we can simulate multiple traits by adding a new TraitModel that can simulate values based on a multivariate normal distribution, or to simulate multivariate normal random variables from Cholesky decomposition.
However, I think the biggest issue is to obtain mutiple trait results by using a Pandas dataframe. Would you suggest that we try adding new columns in the dataframe to represent simulated results from multiple traits, or to obtain multiple dataframes for each trait? I'm currently stuck with how I can produce the output, and I would appreciate your suggestions.

We usually have one wide object for multiple traits - for mutation effects and for node/individual values (I mean these are two multi-trait objects) - some fixed number of columns for site or individual ids and such metadata and then multiple columns for traits. That form makes it quite easy to work with in my view.
Depending on the implementation, you can also go with the “tall” object (speaking in tidyverse sense) where a mutation has multiple rows - one per trait, and you then need trait column and value column.
Multiple objects for multiple traits would get messy in my view. For example, it's common to calculate correlation between traits, so having traits in one objects makes that simple.

I think a single "tall" data frame is the way to go. In the simplest case we can have columns:

trait_id
site_id
causal_state
effect_size

then when we call sim_phenotypes on this, it will do something like this (but moer efficiently!)
def sim_phenotypes(ts, df_traits, ...):
     trait_ids = df_traits.trait_id.unique()
     for trait_id in trait_ids:
           yield _sim_trait_phenotypes(ts, df_traits[df_traits.trait_id == trait_id])

So we generate the phenotypes for traits one-by-one. The correlations between traits can be handled in the sim_traits function, right?

I think a single "tall" data frame is the way to go. In the simplest case we can have columns:

trait_id
site_id
causal_state
effect_size

Should you link to a mutation ID or to site ID? If you link to a mutation ID, then you get site ID from there.

So we generate the phenotypes for traits one-by-one. The correlations between traits can be handled in the sim_traits function, right?

sim_traits is simulating mutation effects, which will take care of genetic correlations, but only the mutation effects part, so would it not be better to call this sim_mutation_effects (this one should be run for multiple traits to take genetic correlation into account)? Namely, genetic correlation between traits is a function of mutation effects AND genotypes, so genetic correlation between traits comes out only after sim_phenotypes is called.
sim_phenotypes is calculating genetic values (by applying mutation effects to genotypes) and on top of these simulating phenotype values by adding environmental noise. This noise can be correlated though! In light of this, you might want to have two functions here: calculate_genetic_values (this one can be run trait by trait) and sim_phenotypes (this one should be run for multiple traits to take environmental correlation into account).

@gregorgorjanc Thank you very much for your detailed feedback. I also thoroughly looked at your lecture videos on AlphaSimR, https://media.ed.ac.uk/playlist/dedicated/76589901/1_os6ikczi/1_4il26qf1, and it was super helpful for me to understand the importance of quantitative trait simulation and multiple trait simulation in agriculture. Considering that the correlation is important in multiple trait simulation, I think doing the following simulation might be a good idea, but what do you think about it?
Input of sim_traits (Simulate effect sizes):

Tree sequence
Number of causal sites (We assume complete pleiotropy like AlphaSimR)
model (Only the Multivariate normal trait model supports multiple trait simulation)

Input of multivariate normal trait model:

Correlation matrix
Variance vector
Mean vector

Output of sim_traits (based on @jeromekelleher suggestions):
Dataframe with

trait_id
site_id
causal_state
effect_size

Here, we are considering site ID, as it would be possible for multiple mutations at a particular site to have the same derived state, and it would not be a good idea to consider them differently.
To simulate the phenotypes, I am thinking about inputting the vector of heritability, and simulating environmental values based on those values. It would be great to consider environmental correlation as well, but I think as @gregorgorjanc had suggested in slack, it might be better to allow users to define their own environmental noise by allowing heritability = 1 option, instead of us trying to implement a complex structure.
Do you think this sounds like a good idea? If so, I will try posting a pull request to implement this functionality to tstrait, and I really appreciate your time and help.

Input of sim_traits (Simulate effect sizes):

Tree sequence
Number of causal sites (We assume complete pleiotropy like AlphaSimR)
model (Only the Multivariate normal trait model supports multiple trait simulation)

I think these inputs look good.

Input of multivariate normal trait model:

Correlation matrix
Variance vector
Mean vector

Also good. Start with mean, then var, then corr;)

Output of sim_traits (based on @jeromekelleher suggestions): Dataframe with

trait_id
site_id
causal_state
effect_size

Here, we are considering site ID, as it would be possible for multiple mutations at a particular site to have the same derived state, and it would not be a good idea to consider them differently.

It depends. If we assume that a mutation, say from G to C at a site X, has the same effect irrespective of sequence context then this suffices. Most statistical genetics research is taking this view! I have been using this view for years! It's only natural to take this view if the only thing you see in front of you is a matrix of genotypes and you have no sequence context of where mutations happened.
Since I am working with tree sequences and it's notion of multiple mutations at a site, I have started to think that this view is possibly too simplistic. Let me explain with a simple example from protein-coding DNA - we know how that part of biology works very well:

if we mutate GGG codon (GLY amino acid) to CGG codon (mutating G to C at the 1st site) we get ARG amino acid
if we mutate GCG codon (ALA amino acid) to CCG codon (mutating G to C at the 1st site) we get PRO amino acid

Both of the above mutations happen at the same site, and they both mutate G to C; however, they are not the same mutation in terms of starting and resulting amino acids due to different sequence contexts! Assuming that this polymorphism (G vs C) has the same effect, imposes an average effect of this polymorphism across different sequence contexts. This is what we are estimating in GWAS and polygenic risk score studies, but note that in real data, we will likely not have an equal proportion of haplotypes (GGG, CGG, GCG, and CCG codons in the above example), meaning that the actual effect we estimate could be more influenced by the GGG->CGG mutation (if that one is more prevalent) than the GCG->CCG mutation. Maybe this partly explains why polygenic risk scores don't port well between populations? That's a huge research question. Technically speaking, by considering different mutation effects depending on sequence context, we are allowing for some form(s) of epistasis.
The above is quite a specific example and very much a research question. It would be neat if we could simulate one or the other scenario and later test how different estimation methods deal with these different settings. I understand you might want to implement the simple case of the same effect of a mutation at a site first! For one, the more complex case opens many questions - how do we simulate these variable effects depending on the sequence context and do all mutations have such "variable" effects for the same site etc.!?

To simulate the phenotypes, I am thinking about inputting the vector of heritability, and simulating environmental values based on those values. It would be great to consider environmental correlation as well, but I think as @gregorgorjanc had suggested in slack, it might be better to allow users to define their own environmental noise by allowing heritability = 1 option, instead of us trying to implement a complex structure.

I agree that the vector of h2 will take you far. It really depends on how versatile you want to make this simulator. Environmental correlations between traits are the norm though, as are genetic correlations;)

I just created a new pull request to incorporate the things that were mentioned in this issue. I would appreciate it if you could look through the codes whenever you have some time.
https://github.com/tskit-dev/tstrait/pull/56

The issue is incorporated into https://github.com/tskit-dev/tstrait/pull/56. Thank you @gregorgorjanc for your detailed suggestions, and they were super helpful for me.


Polishing

This pull request does 4 things:

it changes order of parameters and return values of shrinkify() and adds default values for parameters; the idea is to have more compatibility with old code, in case someone directly calls shrinkify();
it limits the duration of the exploration of the failures tree to 1024 iterations; this is needed in the case there are too many cases to explore; the limit to 1024 should of course become a setting that people can tune;
it adds a simple example of checking that an array of random numbers contains only even numbers; this is most likely wrong, and we reduce the failing test case to a smaller subset;
it adds a more evolved example of testing an external C program; this example is directly taken from famous John Hugues video where he says "Don't write tests, generate them!".

Beautiful!


Define smart_count is required for pluralization strings in docs for public site

…tation.

PRs are never made to the gh-pages branch; it's only updated on release.


Update the changelog

You should probably update the changelog because the last referenced version is 0.6.6.
I forgot to add this in my PR ;)

Will do :+1:


fix compatibility problem while using aliyun mail as authentication source

Close #27043

@lunny @puni9869
I have modified the original issue title and make changes to this pull request, can you re-review this?
this is the original code that handles smtp auth error
https://github.com/go-gitea/gitea/blob/684ab403aa89c8df7bcbaef5754f7bed7306c3e1/services/auth/source/smtp/source_authenticate.go#L47-L55
it only handles specific textproto error, so it may have compatibility with email providers. and the actual textproto error is hidden from the log.

Will take a look tomorrow.

It's not easy if we have no accounts of that two platforms.

It's not easy if we have no accounts of that two platforms.

Actually you don't have to have accounts of these email providers, Just setup an SMTP authentication source with smtp.qiye.aliyun.com as host. And do login with any email account, the 500 error will show up.

If I understand correctly, 526 error is caused by DNS error?
https://www.alibabacloud.com/help/en/direct-mail/user-guide/summary-of-common-email-return-codes-and-solutions

~If I understand correctly, 526 error is caused by DNS error?~ https://www.alibabacloud.com/help/en/direct-mail/user-guide/summary-of-common-email-return-codes-and-solutions
Maybe this one: https://www.alibabacloud.com/help/en/alibaba-mail/latest/526-authentication-failure
What I want to say is that, this is not a normal error code for smtp authentication error, so we need docs to explain why we need to do this.

As I have commented in the PR:
	// when authentication via smtp fails, wraps ErrInvalidArgument
	// with the original textproto.Error as the cause,
	// so it will show username_password_incorrect to the user
	// while log the original error so that admin can check.
	// see: routers/web/auth/auth.go SiginPost

Is that clear enough to you ?
What this PR does is that instead of showing 500 to end user when such errors occurs, just show login failure to user and let admin to check the log to pinpoint the actual reason while not hiding it.
It's not perfect though, but still be better.

I prefer adjusting the logic in UserSignIn and the error handling logic in SignInPost, as not all errors mean incorrect username/password.
For example, do not always show 500 error page, just show error info to users, such as there's an unexpected error occurred during the login process, please contact the admin.

@lunny
maybe backport label should be changed? This PR has been moved to 1.22 milestone.


Issues with objects that belong to tiles

Retrieving Object.type from a tile's objects returns a blank string, I am able to retrieve x/y/width/height which works out for points and rectangles because you can identify the difference between them by checking if width/height is 0. For ellipses and polygons though I'm afraid it's impossible to check if the object is one of those two

Also, tiles without any objects aren't included in TiledTileSets, adding at least an object to each tile will resolve this error. Don't know if this intentional or not, but I think tiles without objects should still be included in TiledTileSets for easing the process of making tiles without collision

UPDATE: it appears that I've forgot to subtract my TileID variable by 1 like the half brain celled sack of flesh I am, the out of bounds exception is my fault 🤡

Hey @Frankfires
Concerning your issue with the type field. This works as intended. The type field is empty I believe because its default is a rectangle.  When you use a tile as object the type field is empty too but the gid field is set. And in case of a point, polygon or ellipse, the fields polygon, point and ellipse are set respectively. To be honest I don't know for certain when it does get filled. But Tiled was designed this way so I just respect it. But when I talk to Björn I will ask him if he could elaborate on it further.
As for the issue with the TiledTileset.Tiles property, Tiled only saves tiles which contains data like animations or properties. So they only serve as a data container for a specific tile rather than the tile itself. This is how Tiled was designed and thus TiledCS only loads what it can find. I could fill up the array with tiles that were not defined in the tileset but than the whole array could become really big and I am not certain that is desirable for those with many tilesets.
I hope you understand and if you have questions, shoot!
With kind regards,
TheBoneJarmer

Aha I got it makes sense now ty! 👍


Scrollable's scrollTo/scrollBy Future behaviour needs to be reexamined and/or documented.

Currently if you:
Future future1 = scrollable.scrollTo(100);
Future future2 = scrollable.scrollTo(-100);

It's not clear what to expect from future1.
I would suggest future1 should complete with error since it was unable to get where it wanted to go.

If you use async/await, completing with an error is modeled as throwing an exception.  We can certainly do that, but I'm worried that might not be what you want.

Well, possibly the return value of the future is the current scroll value and/or an error flag?

Also, we should document when the future completes vs the onScroll* events firing.  It appears the future completes after the onScrollEnd which is good and is what I want but without it being documented there's no contract so I can't depend on that behaviour.

Behaviour is covered by other bugs; documentation will come later.

Obsolete I think.


Add balancer meter fixes #4470

Adds two gauges that can be used to monitor balancing

manager.balancer.balancing.total - snapshot of the number of current migrations being performed.
manager.balancer.need.balancing.total - snapshot of the total number of migrations needed to balancing.

This fixes #4470
This is based on PR #4459 and that PR needs to be merged before this PR.  This change is rather small, with changes to:
core/src/main/java/org/apache/accumulo/core/metrics/MetricsProducer.java
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java
server/manager/src/main/java/org/apache/accumulo/manager/metrics/BalancerMetrics.java
server/manager/src/main/java/org/apache/accumulo/manager/metrics/ManagerMetrics.java
test/src/main/java/org/apache/accumulo/test/metrics/MetricsIT.java

The diff against 2.1 is much larger because it also shows the changes from #4459.  Marking this as draft so that it will not be merged before #4459. Otherwise, it should be ready to go (pending any comments)

I confirmed that with uno instance configured to use a LoggingProvider, the meters appear in the manager metrics log:
METRICS: 2024-04-19T12:08:37,303, manager.balancer.balancing.total{host=localhost,instance.name=uno,port=9999,process.name=manager} value=0
METRICS: 2024-04-19T12:08:37,303, manager.balancer.need.balancing.total{host=localhost,instance.name=uno,port=9999,process.name=manager} value=0

Closed in favor of #4699


White-Board for web development Intermediate project

Is your proposal related to a problem? Please describe.
It is a simple digital white board built using HTML, CSS and Javascript. It has multiple features :
Pen with different sizes & colors
Eraser with different sizes
Undo
Redo
Sticky Notes
Image Upload
Download
stack
html
css
js
Add any other context or screenshots about the proposal request here.

I'm a GSSoC22 participant.

@Kushal997-das The PR is made #486  . Kindly review and merge it.
Thank You


cherry-pick: Only fetch if remote branch doesn't exist

Cherry-pick was updated to fetch if the branch doesn't
exist, but this could fetch unnecessarily if the remote
branch exists locally but namespaced in the remote.
Make this more clear with 3 paths:

branch exists locally
branch doesn't exist but remote version of it does (no fetch needed)
neither of the above exists, will attempt to fetch

Reviews in this chain:
└https://github.com/Skydio/revup/pull/169 cherry-pick: Only fetch if remote branch doesn't exist

#
head
base
diff
date
summary

0
2262b049
c4ace457
diff
Mar 13 14:51 PM
1 file changed, 15 insertions(+), 9 deletions(-)

no :disappointed: i'll think about this some more since I agree its objectively more important to be able to pick up changes vs saving ~.5s


Exclude 'jck-runtime-api-java_security' test for FIPS JDK8

Exclude 'jck-runtime-api-java_security' test for FIPS140_2 JDK8
Fixes: for backlog/issues/1118,
-jck-runtime-api-java_security test is disabled for TESTFLAG=FIPS140_2.
Signed-off-by: Anna Babu Palathingal<EMAIL_ADDRESS>

Thanks @annaibm . Grinder details should be in the comment (not in the commit message). Please see
https://github.com/adoptium/aqa-tests/blob/master/Contributing.md
https://github.com/eclipse-openj9/openj9/blob/master/CONTRIBUTING.md#commit-guidelines

Grinder builds:
TEST_FLAG=FIPS140_2
Grinder #35689
TEST_FLAG=
GRINDER_JCK - 1704


Express mode should auto opt into using the www folder

Currently there is no way to add a static handler in Express mode. I believe if the www folder exists next to the app, Express mode (and possibly Core) should opt in to supporting the static folder.
cc @karangattu

Maybe we should add a static_assets argument to ui.page_opts


App crashes when run on device

Build and run in simulator is working for me, but when I run the app on my device, iPhone 7 with iOS 13.3.1, app crashes almost immediately.
Thread 1
#0	0x000000010485f5e4 in __abort_with_payload ()
#1	0x0000000104866498 in abort_with_payload_wrapper_internal ()
#2	0x00000001048664c8 in abort_with_payload ()
#3	0x0000000104863848 in dyld::halt(char const*) ()
#4	0x000000010481aff4 in dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) ()
#5	0x0000000104815208 in dyldbootstrap::start(dyld3::MachOLoaded const*, int, char const**, dyld3::MachOLoaded const*, unsigned long*) ()
#6	0x0000000104815038 in _dyld_start ()

I thought maybe the build target was iOS 11 and my OS was 13.1 so I changed the build target to 13.1 but crashes in the same place. Updating to 13.1 also produces many more build warnings.

the prior version built on Runtime 100.6 ran fine on my device.

xcode 11.3.1


feat(camel-k): add options to override some aspects of a route

@davsclaus mind having a look ?

I guess we'd want this backported to 4.4.x?

I guess we'd want this backported to 3.8.x?

if that is not an issue, yes

@jamesnetherton should I backport ?

@jamesnetherton should I backport ?

oh you did it already


Preload many2many problem

My structs
type BaseModel struct {
	ID        uint 			`gorm:"primary_key" json:"id"`
	CreatedAt time.Time  	`json:"-"`
	UpdatedAt time.Time  	`json:"-"`
	DeletedAt *time.Time 	`json:"-"`
}

type Show struct {
	BaseModel
	Name           string `json:"name""`
	Videos         []Video `gorm:"many2many:show_videos;"`
}

type Video struct {
	BaseModel
	StreamURL string `json:"streamURL"`
}

My code:
var shows []models.Show
dbMap.Preload("Videos").Order("name asc").Find(&shows)

SQL
SELECT  * FROM "shows"  WHERE ("shows".deleted_at IS NULL OR "shows".deleted_at <= '0001-01-02') ORDER BY name asc
SELECT  * FROM "videos" INNER JOIN show_videos ON show_videos."video_id" = "videos"."id" WHERE (show_id in ())

When table shows is empty, I get error:
ERROR:  syntax error at or near ")"
LINE 1: ...show_videos."video_id" = "videos"."id" WHERE (show_id in ())
                                                                     ^

Some fix:
-add to file preload.go in function handleHasManyToManyPreload:
	primaryKeys := scope.getColumnAsArray(relation.ForeignFieldNames)
	if len(primaryKeys) == 0 {
	    return
	}

+1

+1

Thank you for your report, fixed that.

@jinzhu Thanks!


Replace documentation with jsdoc

documentation npm module has a large footprint. This replaces it with the usejsdoc.org module.
Removals

Removes documentation npm module.

Changes

Adds jsdoc npm module.
Adds missing @description tag per jsdoc warnings.
Updates npm-shrinkwrap.json.

Testing

Run ./frontend.sh
Run gulp docs
Open docs/scripts/index.html in a browser.

Review

@cfpb/cfgov-frontends
@cfpb/cfgov-backends

Screenshots

Notes

Could the markdown files in /docs/ be in a subdirectory so the output of different documentation tools can be placed in there and not be lost?

👍 works for me, although I had to bump my node version to 5.5.0 to get the docs/scripts directory generated.


InAppBrowser not closing

In MagicBareRnExample when we try to login with google inapp browser open and loader keeps loading its doesn't route back to login screen.
Plantform: Android

Method
const googleData = await magicNative.oauth.loginWithPopup({
provider: 'google',
redirectURI: 'sponsors://',
});

Hey @Ariflo any update on this?

@pragyesh12 We are still investigating. Apologies for the delay. We will do our best to get this resolved asap


Add automatic pushes to Dockerhub for Dockerfiles

See nf-core template

https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/{{cookiecutter.name_noslash}}/.github/workflows/push_dockerhub.yml

Maybe

check if env variable is empty with bash
if so conditional echo with id https://stackoverflow.com/a/61236803

later check id and proceed

https://github.com/mlf-core/mlf-core/commit/d520390f594ca85775923105c3a51ef5660241c2


Add Missing Debian build-dep

The Debian control file is missing one of the build dependencies (zlib dev libraries), adding the package zlib1g-dev satisfies that
Changes proposed in this pull request:

Add zlib1g-dev as  a build-dep in the debian control file

Your great patch is much appreciated. We are considering to apply your patch into the SoftEther VPN main tree.
SoftEther VPN Patch Acceptance Policy:
http://www.softether.org/5-download/src/9.patch
You have two options which are described on the above policy.
Could you please choose either option 1 or 2, and specify it clearly on the reply?

Option 1

PRELIMINARY DECLARATION FOR FUTURE SWITCH TO A NON-GPL LICENSE
I hereby agree in advance that my work will be licensed automatically under the Apache License or a similar BSD/MIT-like open-source license in case the SoftEther VPN Project adopts such a license in future.

It's already present.

@davidebeatrici
Please explain, do you mean it's already present because one of the package listed in the build-deps depends on it or that it's installed by default on Debian or something else entirely?

@rikyenns4 That's the current line in master:
https://github.com/SoftEtherVPN/SoftEtherVPN/blob/eb776cf14cfaad7cf94674c37436a9fbf67b5749/debian/control#L5
zlib1g-dev is already there.

My apologies, I downloaded the source earlier, I don't know how I missed that it got added

No problem.


Building SwiftPM project hangs indefinitely

Building the attached project using Xcode 13.3.1 hangs (AFAICT indefinitely). Building it with the open source toolchain swift-5.6-RELEASE succeeds.
When opening the project in Xcode, Xcode is stuck in “Resolving Package Graph”.
$ /Applictions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift build
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git (0.74s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 0.50600.1 (0.07s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 0.50600.1
[20096/20096] Downloading binary artifacts
<hang>

Injectable.zip
rdar://92271229

Originated from this thread: https://forums.swift.org/t/swiftsyntax-with-swift-5-1/29051/23


with recent attrs test_base_utils.test_attrs_with_repr fails

    def test_attrs_with_repr():
        @attrs
        class WithRepr(object):
            def __init__(self, x):
                self.x = x

            def __repr__(self):
                return 'foo'

>       assert hash(WithRepr(1)) == hash(WithRepr(1))
E       TypeError: unhashable type: 'WithRepr'

This is caused by https://github.com/python-attrs/attrs/issues/136; other tests work fine, so it seems attrs change doesn't affect eli5. But I can't say it for sure because I don't understand what this test was introduced for in a first place.

I've commented out this test for now, but we need to check why was it there in a first place, and either remove the test or fix the bug.


Error when I click on "View and edit SQL"

Hi,
when I do it here, I have "unrecognized token: "["" error.
Is it normal?
Thank you

It works in heroku, than might be a bug with datasette-publish-now.
Thank you


Rename makefile to Makefile and edit

This Makefile both follows convention better, and uses sane defaults
For example, make has default rules for building.
All projects, unless they are certain, should use them.
So this does.
This also adds install without falling into the -D portability trap.

Hi @Vaelatern
I really appreciate anyone taking the time out of their day to just commit to my repo's, thanks a lot!

$ make clean
rm -f dollarskip
$ make
cc -g    dollarskip.c   -o dollarskip
$ make clean
rm -f dollarskip
$ make install
cc -g    dollarskip.c   -o dollarskip
install -d /usr/local/bin
install -m 755 dollarskip /usr/local/bin/\$
install: cannot create regular file '/usr/local/bin/$': Permission denied
make: *** [Makefile:9: install] Error 1
$ make clean
rm -f dollarskip
$ make
cc -g    dollarskip.c   -o dollarskip
$ bmake
$ make
make: Nothing to be done for 'all'.
$ make clean
rm -f dollarskip
$ bmake clean
rm -f dollarskip
$ bmake
cc -pipe -g -g   -o dollarskip dollarskip.c
$

@Vaelatern I think you need to sign the commits for us to be able to merge, is that correct @CleanMachine1?

I dont remember turning that rule on. I'll merge as administrator and also disable that rule

@Vaelatern Its signed however you need to upload the key here

Thanks for contributing!


Command line interface

Hey, your lib is awesome, I created a Command line interface app, documented it, write options types, basic tests, removed png.js files and used npm install png.js.
The only thing missing is that you publish the library to npm (npm publish) so the cli app depends on that (currently is requiring the project relatively and that won't work for users npm-installing it.
Please tell me if you think this PR could be merged (after review) since I need it published on npm so users can easily install it. Thanks!

Hi Sebastián,
Thanks for your CLI app, it looks great! I didn't have time to test it yet, but skimmed some parts, and it will be much more useful and safer than the current nodecli example.
However, I need some time to think about merging this PR. Some features I would like to keep in the ImageTracer projects are: dependency free, single file, batteries included, KISS.
Yes, it seems I contradict myself here as imagetracerjs includes a copy of PNG.js files, but it's meant to be more like an example. I don't want to be opiniated here, I encourage users to find the best image loader / Node.js canvas implementation. (Random real, not sarcasm question here: can PNG.js load JPG, GIF, etc. ? I don't know.) But I want to be able to download imagetracerjs.zip from GitHub and have it work out-of-the box in 10 years.
Adding these dependencies (glob, minimist, png.js) might be in conflict with these ideas, it's hard to decide what's best.
I recommend you to fork the project and publish it with your CLI app on NPM. You can do whatever you want as it's Unlicense / Public domain. :)
Best wishes,
András

However, I need some time to think about merging this PR. Some features I would like to keep in the ImageTracer projects are: dependency free, single file, batteries included, KISS.

I agree, I was thinking about the same thing after integrating Jimp to support several input formats: https://github.com/cancerberoSgx/imagetracerjs/blob/a02d8a6d3188a84830d80d607d2f6906d3c67920/imagetracer_v1.2.5.js#L63 - I just killed the project simplicity :)
But as you can notice, the folder cli has its own package.json, is not a dependency nor it doesn't depend on files outside the folder so it can be considered an independent project. Ideally , people use mono-repos for this, or even separate repositories but I didn't want to take the credit for such a tool being you the author.
Also notice that cli/ is mainly a Command line Interface - if I just remove its index.js (so it doesn't export any js API) then it's only usable as a command line tool.
Besides the CLI I think it would be also good to have:

test (in node and in browser)
a basic playground where users can change options / load images online to understand the library

And for both things/projects using image reader implementation will be needed.
In summary, do you think I should create a separate project for this? I do think having "consumer" projects like these will add great value and help the library to mature. But if you think otherwise feel free to close this PR and if I have your permission I can move the cli part to a separate project.
Also a comment, I see there are several methods referencing the DOM, and I think embedding / loading images in the DOM should not be part of the core, but a separate project (DOM users should know how to do this).
Thanks, keep it up!

Although I'm not sure is the project needs canvas and the DOM, just in case, if you are using it just for loading the image's bitmap, that can be done without involving the DOM and using the same API both for node and browser by using libraries like 'node-fetch' or 'buffer'. I just discovered these and for this kind of library that aims to support both browser and node it can be of great help.
const blobToBuffer = require('blob-to-buffer')
const fetch = require('node-fetch'); // it uses window.fetch in browser and pollyfill in node
var option = {
    method: 'GET',
    headers: headers,
    mode: 'cors',
    cache: 'default'
  }
  const response = await fetch(url, options)
  const blob = await response.blob()
  const buffer = await blobToBuffer(blob)
  new PNGReader(content).parse((error, png) => {
      if (error) {
      } else {
       const outputContent = ImageTracer.imagedataToSVG({ ...png, data: png.pixels }, options)
      }
    })


During registration the "Algemene voorwaarden" are in English

This should use the language of the browser.

Couldn't reproduce this issue (set the current browser language to dutch, and it shows the dutch version of terms and conditions)
Could you please provide me with the browser, current language (with locals), you can for example detect current browser languages by visiting this website https://aruljohn.com/language.php


UX of Disable and Uninstall feels weird to me

Testing #14288

Disable looks like a button (which makes me think it should be single-clickable) but then it pops up a menu.
I would personally have a wrench icon or a "Manage" link and put the three actions in there:

Disable for current workspace
Disable
Uninstall

Suggested menu:

Also I believe the Reload button should not be a button, but a fly-out at the top of the viewlet that pushes everything down and reads "Some changes will not be applied until you restart" or something like that.

@alexandrudima Thanks for the feedback. I do like moving uninstall/enable/disable actions to a context menu which will simplify UI a lot.
Currently reload button indicates the user, what extensions to reload. I think having a global reload button also makes sense.

@sandy081 I suggest removing the Reload button from each extension and using some sort of other affordance:
Each button does the same thing and it is not related to an extension, plus it gives me the feeling that it will apply only for that extension, meanwhile it applies for all extensions.

Did some improvements by moving the actions (Uninstall, Enable, Disable) under settings icon.
Moving this to November for the rest


Fails to get Vimeo video info

youtube-dl -U
Updating to latest version...
youtube-dl is up-to-date (2011.11.22)

youtube-dl http://vimeo.com/5662331
[vimeo] 5662331: Downloading webpage
[vimeo] 5662331: Extracting information
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4186, in
main()
File "/usr/bin/youtube-dl", line 4177, in main
_real_main()
File "/usr/bin/youtube-dl", line 4164, in _real_main
retcode = fd.download(all_urls)
File "/usr/bin/youtube-dl", line 815, in download
ie.extract(url)
File "/usr/bin/youtube-dl", line 1073, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl", line 2017, in _real_extract
simple_title = _simple_title(video_title)
NameError: global name '_simple_title' is not defined

Tried multiple Vimeo URLs and all the same

Running on Amazon EC2 with: ebs/ubuntu-images/ubuntu-natty-11.04-i386-server-20111003
Youtube URL's work with no problem

youtube-dl http://www.youtube.com/watch?v=iG8UAHIuHeI&feature=feedrec_grec_index
[1] 19508
root@domU-12-31-39-09-88-BE:/home/ubuntu# [youtube] Setting language
[youtube] iG8UAHIuHeI: Downloading video webpage
[youtube] iG8UAHIuHeI: Downloading video info webpage
[youtube] iG8UAHIuHeI: Extracting video information
[download] Destination: iG8UAHIuHeI.mp4
[download] 100.0% of 4.27M at   29.07M/s ETA 00:00
ls -l
-rw-r--r-- 1 user   user   4472446 2011-02-14 13:44 iG8UAHIuHeI.mp4

When I run it in my OSX Terminal locally with the previous version it works fine for Vimeo. Once I ran youtube-dl -U on the mac, then it fails the same way. Is there a way to downgrade?

Oops, we really need automated tests to keep me from commiting broken code. Fixed in 2011.11.23 - running youtube-dl -U again should fix the problem.
By the way, if your URL contains ampersands or other strange characters, put it into quotes, as in
youtube-dl 'http://www.youtube.com/watch?v=iG8UAHIuHeI&feature=feedrec_grec_index'

Confirmed. Thanks for super quick fix. :)


Add catalina-xcode-12.3 image

Can we get a catalina-xcode-12.3 image?
My use case is running valgrind (https://github.com/LouisBrunner/valgrind-macos) which is pretty fragile when it comes to versions. I currently use catalina-base and install Apple's "Command Line Tools" manually but that's a PITA in CI because the normal process involves the user clicking on buttons see https://apple.stackexchange.com/a/195963 .
A catalina-xcode-12.3 image should do the job. valgrind compiles fine on big-sur-xcode-12.3. But I can switch to big-sur because valgrind just won't run work there properly, it's not supported yet.

catalina-base should have the command line tools installed. But probably not the latest. Will an update to catalina-base work for you?

Indeed, they're available (because installing homebrew automatically installs command line tools AFAIU) but not in the latest version.

Will an update to catalina-base work for you?

I believe this will do the job, too.

Ok, and with homebrew in mind , I can imagine that even a simple rebuild of catalina-base should work because then homebrew should fetch the newest version of CLT.

Let's try that first. The VM hasn't been rebuilt since October. If that won't work then I'll build the Xcode one of the update version. Will ping you once available.

Sorry it's taking a little bit of time. I want to include the latest security updates for Catalina in the VM and the VM just keeps hanging. I'm investigating it...

Thanks for the quick reply and no worries, it's not the urgent because the manual installation works. And have a merry Christmas!

BTW how do you update the CMD Tools manually? Though softwareupdates?

See https://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line/195963 (and the comment including a change for catalina). It's implemented here: https://github.com/real-or-random/secp256k1/blob/1111e4801e88f605a2eb9839752ce68e40a14641/.cirrus.yml#L115

The image should be updated now. 👌


Enhancement: Wallet > Token URL warning for invalid characters

Hiya,
Wallet v 1.1.4
The warning message for the token icon URL does not say which characters are not supported. It rejects this URL unless I remove the @ symbol.
If there are several invalid characters, maybe worth including which characters are invalid in the warning message?

Thanks
Jazmin

@eliasnemr Did we update this to auto html encode the urls?


Create a static ddprof exe on alpine/musl

What does this PR do?
Build a static ddprof executable on Alpine.
Statically link both ddprof and libdd_profiling.so with musl libc.
This should make ddprof / libdd_profiling.so compatible with all Linux distributions.

Current dependencies on/for this PR:

main

PR #159

PR #160   👈

This comment was auto-generated by Graphite.

This PR is very very cool. It comes with some amount of black magic.
After R&D we can talk about what it takes to feel good about merging this.


Feature: Preview the exact YAML to be used for install?

Is your feature request related to a problem? Please describe.
Unsure if this is a bug or a feature request.
For some reason this did not work:
glasskube install sealed-secrets --skip-update-check --enable-auto-updates=false --dry-run --non-interactive -o yaml

I'm honestly unsure if this is intentional or not?
TLDR; I would like to be able to see exactly what YAML will be applied to my cluster.
Same for interactive mode too.
My use-case is that sometimes I was the raw .yaml for backup purposes, or if I wanted to debug what happened between two version updates (-o yaml on one, -o yaml on the other) and be able to compare the two.
Describe the solution you'd like
Be able to see what YAML is going to be applied.
Describe alternatives you've considered
Tried debugging.
Additional context
N/A

@cdrage could you check if this is what you are looking for: glasskube install sealed-secrets --yes --dry-run -o yaml? The exact yaml is printed to stdout, other things like progress are printed to stderr to not mess up the actual yaml output.

--enable-auto-updates is just a flag, so when it's there, we interpret it as true, otherwise false
--yes answers all other questions with y
--non-interactive will throw an error as soon as it requires interaction, but you won't need it in this scenario if you use --yes


[doc] Fix 404'd link in memory usage guides

Hello!
Pull request overview

Fix link that currently 404's in https://huggingface.co/docs/accelerate/main/en/usage_guides/memory.

Details
The link at the bottom of https://huggingface.co/docs/accelerate/main/en/usage_guides/memory points to https://huggingface.co/docs/accelerate/main/en/usage_guides/package_reference/utilities#accelerate.find_executable_batch_size, which gives a 404.
Note the following in that link:
https://huggingface.co/docs/accelerate/main/en/usage_guides/package_reference/utilities#accelerate.find_executable_batch_size
                                               ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^

The desired resource is only under package_reference, and not under usage_guides. I've replaced the link with https://huggingface.co/docs/accelerate/main/en/package_reference/utilities#accelerate.find_executable_batch_size by adding ../.
I've also added a dot at the end of the sentence.

Tom Aarsen

Hello @tomaarsen, looks good, thanks for your contribution 😄

Thanks a lot!


certain deopts are not highlighted as such in the detailed method view

In the following trace,  some methods contain detopts:
http://mrale.ph/irhydra/2/#gist:cb03646d9db987c3e9fa6baa70d04053
In the overview, those methods are hightlighted in red to indicate this:

But in the detailed method view, those deopts are not hightlighted anymore:

Thank you for the report and reproduction! This should now be fixed.


navigation2: 1.2.0-1 in 'iron/distribution.yaml' [bloom]

Increasing version of package(s) in repository navigation2 to 1.2.0-1:

upstream repository: https://github.com/ros-planning/navigation2.git
release repository: https://github.com/SteveMacenski/navigation2-release.git
distro file: iron/distribution.yaml
bloom version: 0.11.2
previous version for package: null

SLAM Toolbox PR coming shortly, should be merged together