[Question] Creating new contacts

Sorry, this is more of a question than an issue but I was not sure about the ideal channel of communications and maybe the question is also interesting for other users of the library.
As explained in the Readme, it is possible to create a new contact in the Android contact database, however for my real-world use-case I have two additional questions:

I cant/don't have to pass a contactId along. Therefore, I assume that the ID will be assigned automatically: Is that correct (would make sense to me as Android is better able to guarantee its uniqueness).
I have to pass the account into which the contact should be stored. Is there a way to get the information from Android (or ideally from this library), which accounts are available and which of them is the default?

hi @fgubler, this is the right place to ask questions :)

I assume that the ID will be assigned automatically

This is correct. As soon as you store a contact via ContactStore, Android itself will assign a new id to it. There is no need to provide your own ids.

Is there a way to get the information from Android (or ideally from this library), which accounts are available and which of them is the default?

You can use AccountManager.get(this).accounts to get all accounts on the device. Each Account contains a name and a type, which you can use to create an InternetAccount and use that when you create a contact via ContactStore.
AFAIK there is no concept of 'default' in Android, but it is something each app handles on their own.

Thanks for the explanation :-).

You can use AccountManager.get(this).accounts to get all accounts on the device. Each Account contains a name and a type, which you can use to create an InternetAccount and use that when you create a contact via ContactStore.
AFAIK there is no concept of 'default' in Android, but it is something each app handles on their own.

Ok, makes sense. The system's contact app so far always correctly predicted which account to choose as default for me (across vendors). But maybe it just checked which one had the most contacts in it.
There is also usually an option to just store a contact locally on the phone without any account. Is that also supported by the library? Is it just a kind of dummy-account?

Is that also supported by the library? Is it just a kind of dummy-account?

Yup it is supported. Pass no account and it will be stored locally.

Last question for now: when loading an existing contact: is there a way to find out which account it belongs to?
(to e.g. determine which account has the most contacts assigned and use it as default)

No. Each contact returned by contact store can be the result of combining multiple contacts together from different sources.
For your case, the number of contacts might not mean that this is the account the user would prefer saving the contacts (as the account can be managed from a different device). An alternative would be to check what kind of account you would like to promote (i.e. google) and pick that first.


experiment with SurrogateModelOptim

Small updates.

Codecov Report

Merging #11 (d53d891) into main (fb8fd5e) will decrease coverage by 0.25%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   88.20%   87.94%   -0.26%
==========================================
  Files           7        7
  Lines         339      340       +1
==========================================
  Hits          299      299
- Misses         40       41       +1

Impacted Files
Coverage Δ

src/types.jl
90.90% <0.00%> (-2.85%)
:arrow_down:

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 fb8fd5e...d53d891. Read the comment docs.

Codecov Report

Merging #11 (d53d891) into main (fb8fd5e) will decrease coverage by 0.25%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   88.20%   87.94%   -0.26%
==========================================
  Files           7        7
  Lines         339      340       +1
==========================================
  Hits          299      299
- Misses         40       41       +1

Impacted Files
Coverage Δ

src/types.jl
90.90% <0.00%> (-2.85%)
:arrow_down:

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 fb8fd5e...d53d891. Read the comment docs.


🧑💻: Sign in and sign out page enhancement

Title
Sign in and sign out page enhancement
Enhancement Aim
I want to add style in sign in and out.
Changes
I want to add style in sign in and out.
Screenshots 📷

Guidelines

[X] I have read the guidelines
[X] I have the link to my latest merged PR

Full Name
Souvik Pramanik
Participant Role
GSSOC

This is a highlight of the page, it will looks good when i implement it on the website.

I have two styles which one you want

the sign in and sign up will be opening in a different page
the sign in and sign up will be opening in the same page


getting read ECONNRESET error when request takes longer time

Its not working even after increasing timeout to unlimited time.
Code:
var response = request('POST', url, {
headers : {'content-type':'application/xml'},
body: payload,
timeout : 200000
});
Note:
The request will take 5 minutes to complete. Platform windows
Error:
nodeNC failed:                                                                                events.js:167                                                                                throw er; // Unhandled 'error' event                                                                                ^                                                                                Error: read ECONNRESET                                                                                at TCP.onStreamRead (internal/stream_base_commons.js:111:27)                                                                                Emitted 'error' event at:                                                                                at emitErrorNT (internal/streams/destroy.js:82:8)                                                                                at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)                                                                                at process._tickCallback (internal/process/next_tick.js:63:19)                                                                                : success : false

+1

+1

+1

+1

+1


Actions/Events for for when debouncing starts and stops

I've found the need to know when the debouncing is happening (I want to show an indicator while a search is being debounced).
Would you be open to a pull request that would either add actions that can be overwritten (something like queryParamDebounceStarted and queryParamDebounceEnded or use the Evented mixin to trigger similar events?

Sorry I've been a bit busy. Yes that sounds good to me.
I like the queryParamDebounceStarted  and queryParamDebounceEnded  because it makes it very explicit.


X509_VERIFY_PARM_inherit() Crash

Hi:
I am using OpenSSL version 1.1.1k on Linux versions Ubuntu 15.0r and CENTOS 6.8.
My server code appears very stable on the Ubuntu system but crashes after an
indeterminate number successful connections on CENTOS. A backtrace from such
a crash is as follows:
This problem seems particular to CENTOS 6.8 with kernel version 2.6.32-642.1.1.el6.x86_64
#0  0x00007f198fac223d in X509_VERIFY_PARAM_inherit () from /usr/lib64/libcrypto.so.10
#1  0x00007f198fab9b3b in X509_STORE_CTX_init () from /usr/lib64/libcrypto.so.10
#2  0x00007f198fdad218 in ssl3_output_cert_chain () from /usr/lib64/libssl.so.10
#3  0x00007f198fd9c7a5 in ssl3_send_server_certificate () from /usr/lib64/libssl.so.10
#4  0x00007f198fda175d in ssl3_accept () from /usr/lib64/libssl.so.10
#5  0x0000000000406905 in Ssl_Accept (cdesc=0x8c7690, sock_fd=30) at ssl.c:217
#6  0x00000000004063a1 in make_incoming_connection (listen_handle=0x7ffc1e68c060, status=0) at main.c:572
#7  0x0000000000420a92 in uv__server_io (loop=0xc37a80, w=0x7ffc1e68c0e8, events=1) at src/unix/stream.c:570
#8  0x00000000004284b7 in uv__io_poll (loop=0xc37a80, timeout=-1) at src/unix/linux-core.c:462
#9  0x0000000000417e15 in uv_run (loop=0xc37a80, mode=UV_RUN_DEFAULT) at src/unix/core.c:385
#10 0x0000000000406173 in main () at main.c:431
I am using OpenSSL to verify a self-signed client certificate. The main code used is
as follows. Do you see something wrong ? Also, I am explicitly using the OpenSSL
CRYTPO_LOCK mechanism because OpenSSL is used in the Linux pthreads environment.
However, I not sure if it necessary in OpenSSL version 1.1.1k.  Finally,
is there a newer stable version available ?
#ifdef MOBILE_AUTH_SSL
//
// FUNCTION - Ssl_ConfigTrust(): Configures Server authentication of the Client.
//
// ARGUMENTS
// -----------
// ctx: An SSL context.
// x509_data: Points a caller allocated structure for holding the essential X509 authentication items.
//
// RETURN VALUE
// --------------
// Returns TRUE if successful and FALSE otherwise.
//
// NOTES
// -------
// None
//
ROUTINE PRIVATE BOOL Ssl_ConfigTrust(SSL_CTX *ctx, X509_DESC *x509_data)
{
X509_STORE *pstore = NULL;
X509_STORE_CTX *storeCtx = NULL;
BOOL rval = TRUE;
int r = 0;
X509 *client_cert;
FILE *fp;

syslog(LOG_INFO, "MAIN_TASK: Configure SSL Authentication");
//
// Load the client's public certificate into memory.
// We need this for proper structuring although it is not
// used in the authentication. This is a work around to
// compensate for the fact that not passing a client certificate
// to X509_STORE_CTX_init() eventually leads to an internal SSL
// crash due to the fact it intermittently clobbers the address
// in storeCtx->ctx->cert_store->param.
//
fp = fopen(SSL_CLIENT_CERT_FILE, "r");
client_cert = PEM_read_X509(fp, NULL, 0, NULL);
fclose(fp);
if( !client_cert )
  {
	r = -1;
	syslog(LOG_ERR, "MAIN_TASK: Invalid Client Certificate File: %s", SSL_CLIENT_CERT_FILE);
  }
else
//
// Now allocate a store context and configure the authentication characteristics.
//
if( !(storeCtx = X509_STORE_CTX_new()) )
   {
	rval = FALSE;
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Context Allocation Failure");
   }
else
//
// Get rid of the default trust store.
//
pstore = SSL_CTX_get_cert_store(ctx);
if(pstore)
	X509_STORE_free(pstore);
pstore = NULL;
//
// First, fabricate a temporary trust store and
// add the CA Certificate to the new trust store.
//
if( !(pstore = X509_STORE_new()) )
  {
	rval = FALSE;
	syslog(LOG_INFO, "MAIN_TASK: X509 Error - Store Allocation Failure");
  }
else
if( (r = X509_STORE_load_locations(pstore, SSL_CA_CERT_FILE, NULL)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Certificate Addition Failure");
else
if( (r = X509_STORE_set_default_paths(pstore)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Path Configuration Failure");
else
//
// Now allocate a store context and configure the authentication characteristics.
//
if( !(storeCtx = X509_STORE_CTX_new()) )
   {
	rval = FALSE;
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Context Allocation Failure");
   }
else
if( (r = X509_STORE_add_cert(pstore, client_cert)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Addition Failure");
else
if( (r = X509_STORE_CTX_init(storeCtx, pstore, client_cert, NULL)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Initialization Failure");

else
  {
	//
	// Finally set the authentication characteristics.
	// This flag is just to enhance debugging on most SSL versions and
	// should be set.
	//
	X509_STORE_CTX_set_flags(storeCtx, ( X509_V_FLAG_CB_ISSUER_CHECK ) );
  }

if(r != 1)
  {
	syslog(LOG_ERR, "MAIN_TASK: SSL Authentication Configuration Error");

	ERR_print_errors_fp(stderr);
	abort();
  }

if(rval)
  {
	syslog(LOG_INFO, "MAIN_TASK: Authentication Configuration Succeeded");

	x509_data->storeCtx = storeCtx;
	x509_data->store = pstore;
  }
else
  {
	syslog(LOG_INFO, "MAIN_TASK: Transient SSL Authentication Configuration Failure");

	if(pstore)
		X509_STORE_free(pstore);
	if(storeCtx)
	  {
		X509_STORE_CTX_cleanup(storeCtx);
		X509_STORE_CTX_free(storeCtx);
	  }
  }

return(rval);

}
#endif // MOBILE_AUTH_SSL
Best Regards,
Paul R.

Hi:
I forgot to mention that the Server verification of the Client certificate is
end to end without the involvement of an intermediate CA. Also, I don't'
really need a trust store as all the appropriate certificates are in
a well known directory on the Server but I don't know how to get around
using a trust store within the OpenSSL framework. Any suggestions would
be appreciated.
Best Regards,
Paul R.

You say this:

I am using OpenSSL version 1.1.1k on Linux versions Ubuntu 15.0r and CENTOS 6.8.

But the backtrace says:

/usr/lib64/libcrypto.so.10

I'm not sure what OpenSSL version .so.10 translates to on CENTOS 6.8 (this is not the standard OpenSSL suffix). But my guess is this is a 1.0.2 version of OpenSSL not 1.1.1k as you claim.
Are you sure you are using 1.1.1k?

libcrypto.so.10 is the system openssl from the 1.0.2 branch on CentOS. So according to the backtrace you are not using the upstream 1.1.1k on CentOS.

Hi:
Your comment is correct and thank you for alerting me about the version discrepancy.
On my Ubuntu system the default versions of the SSL libraries are as follows.
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/lib/x86_64-linux-gnu/libsslso.1.0.0

On the Centos system they are as follows.
/usr/lib64/libcrypto.so.1.0.1e
/usr/lib64/libssl.so.1.0.1e

I linked my Server code with the libssl.so.10 and libcrytpo.so.10 and performed
the same test on CENTOS. The same kind of crash occurred and this is the core dump.
#0  0x00007f14fee9323d in X509_VERIFY_PARAM_inherit () from /usr/lib64/libcrypto.so.10
#1  0x00007f14fee8ab3b in X509_STORE_CTX_init () from /usr/lib64/libcrypto.so.10
#2  0x00007f14ff17e218 in ssl3_output_cert_chain () from /usr/lib64/libssl.so.10
#3  0x00007f14ff16d7a5 in ssl3_send_server_certificate () from /usr/lib64/libssl.so.10
#4  0x00007f14ff17275d in ssl3_accept () from /usr/lib64/libssl.so.10
#5  0x0000000000406905 in Ssl_Accept (cdesc=0x849aa0, sock_fd=28) at ssl.c:217
#6  0x00000000004063a1 in make_incoming_connection (listen_handle=0x7ffff55eabf0, status=0) at main.c:572
#7  0x0000000000420a92 in uv__server_io (loop=0xc37a80, w=0x7ffff55eac78, events=1) at src/unix/stream.c:570
#8  0x00000000004284b7 in uv__io_poll (loop=0xc37a80, timeout=-1) at src/unix/linux-core.c:462
#9  0x0000000000417e15 in uv_run (loop=0xc37a80, mode=UV_RUN_DEFAULT) at src/unix/core.c:385
#10 0x0000000000406173 in main () at main.c:431
A tangential issue common to both Ubuntu and Centos is that if you explicity free the socket descriptor
with SSL_free() it results in a crash. If you free the socket descriptor with SSL_free() and then
the SSL context with SSL_CTX_free(), the crash occurs when it SSL_STORE_free() is called.
I think this may indicate there is a problem in my code. What do you think ?
This is a core dump example.
#0  __GI___libc_free (mem=0x441) at malloc.c:2933
#1  0x00007fad7812801d in CRYPTO_free (str=0x441) at mem.c:397
#2  0x00007fad781b0a87 in sk_free (st=0x23bf090) at stack.c:290
#3  0x00007fad781ed294 in X509_STORE_free (vfy=0x23bf0a0) at x509_lu.c:248
#4  0x00007fad784e408a in SSL_CTX_free (a=0x441) at ssl_lib.c:1978
#5  0x0000000000407357 in Ssl_ReleaseConnect (cdesc=0x654380 <Conn_Desc_Table>, mutex=0x0) at ssl.c:725
#6  0x000000000040cb3e in rx_fsm (cdesc=0x654380 <Conn_Desc_Table>, sdu=0x2390760) at rx_fsm.c:363
#7  0x0000000000407658 in Protocol_Task (arg=0x0) at protocol.c:121
#8  0x00007fad77ba96aa in start_thread (arg=0x7fad74181700) at pthread_create.c:333
#9  0x00007fad778deeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Best Regards,
Paul R.

#4 0x00007fad784e408a in SSL_CTX_free (a=0x441) at ssl_lib.c:1978

0x441 seems highly unlikely to be a valid SSL_CTX * value.  It does seem likely to indicate a problem in your code.

Hi:
Below is the sequence of SSL operation steps I use to establish an incoming SSL connection.
For convenience of understanding, I have omitted the extraneous code and assumed all operations
succeed. These steps occur after incoming TCP connection establishment.
Steps 3 and 3.1 are used only if Client Authentication is performed, and step 4 is used only if
Client Authentication is not performed.
In the case Client Authentication is not performed, the SSL socket can always be released successfully with
SSL_free() and no other problems occur.
The problem is in the case Client Authentication is performed, and releasing the SSL socket with SSL_free()
leads to a crash as previously described. Consequently, I think I am doing something wrong in steps 3 or 3.1.
Do you see something wrong with those steps ?

Basic SSL Context Configuration - All cases.
method = (SSL_METHOD *) TLSv1_2_server_method();
ctx = SSL_CTX_new(method));
SSL_CTX_set_options(ctx, (SSL_OP_TLS_BLOCK_PADDING_BUG | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1);

Certificate File Configuration - All cases.
SSL_CTX_use_certificate_file(ctx, SSL_SERVER_CERT_FILE, SSL_FILETYPE_PEM);
SSL_CTX_use_PrivateKey_file(ctx, SSL_SERVER_KEY_FILE, SSL_FILETYPE_PEM);
SSL_CTX_check_private_key(ctx);
 socket = SSL_new(ctx);

SSL_set_accept_state(socket);
SSL_set_accept_state(socket);

Verification Characteristic Configuration - Only if Authentication is used.
SSL_set_verify(socket, (SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT), NULL);
SSL_set_verify_depth(socket, 1);

3.1) Trust Store Fabrication - Only if Authentication is used.
fp = fopen(SSL_CLIENT_CERT_FILE, "r");
client_cert = PEM_read_X509(fp, NULL, 0, NULL);
pstore = SSL_CTX_get_cert_store(ctx);
if(pstore)
	X509_STORE_free(pstore);
pstore = X509_STORE_new();
X509_STORE_load_locations(pstore, SSL_CA_CERT_FILE, NULL);
X509_STORE_set_default_paths(pstore);
storeCtx = X509_STORE_CTX_new();
X509_STORE_add_cert(pstore, client_cert);
X509_STORE_CTX_init(storeCtx, pstore, client_cert, NULL));
X509_STORE_CTX_set_flags(storeCtx, ( X509_V_FLAG_CB_ISSUER_CHECK ) );

Configure Verification Characteristics - Only if Authentication is not used.
SSL_set_verify(socket, SSL_VERIFY_NONE, NULL);

Final Accept Steps -- All cases.
SSL_set_fd(socket, sock_fd));
SSL_accept(socket);

3.1 does seem problematic -- SSL_CTX_get_cert_store() just grabs a pointer from the SSL_CTX, with no reference-count increment.  So by then X509_STORE_free()ing it, you leave a stale pointer in the SSL_CTX.  That causes problems when it is later accessed and also when the SSL_CTX is freed.
In the posted code, all the operations performed on the pstore are happening on a local object and are not reflected in the SSL_CTX that you started with.  You could perhaps use SSL_CTX_set1_cert_store() or SSL_CTX_set_cert_store() to replace the store originally in the SSL_CTX (note that those APIs will take care of freeing the current store associated with the SSL_CTX, so you don't need to get and free the old value yourself).
You might want to run your code with a checking tool like valgrind or asan (you can build asan support into openssl as well, if you do your own openssl build), that would help catch issues like this.

Hi:
I forgot to include one set of steps which man be significant and they are as follows.

After sucessfull SSl_accept() - Only if Authentication is used.
Release unneeded resources.
X509_STORE_free(x509_data->store);
X509_LOOKUP_free(x509_data->lookup);
X509_STORE_CTX_cleanup(x509_data->storeCtx);
X509_STORE_CTX_free(x509_data->storeCtx);

Is it possible freeing the SSL_CTX with SSL_CTX_free() automatically
releases the X509 items ?
Best Regards,
Paul R.

Hi:
I incorporated your suggestions into the Ssl_ConfigTrust() routine with positive results.
However, I also found another factor, and probably the root cause, contributing to the problem.
Extensive testing indicates SSL_free() and SSL_CTX_free() work correctly after implementing the
solution described below. (So far I have only tested in the Ubuntu environment.)
NOTE: I think this is real cause of the X509_VERIFY_PARM_inherit() Crash.
The other factor contributing to the problem is as follows. The following routine
were being called before SSL_CTX_free() and apparently SSL_CTX_free() automatically
releases these resources. I directly observed that the crash was occurring in
X509_STORE_free() when it was invoked by SSL_CTX_free() because x509_data->store was NULL.
X509_STORE_free(x509_data->store);
X509_LOOKUP_free(x509_data->lookup);
X509_STORE_CTX_cleanup(x509_data->storeCtx);
X509_STORE_CTX_free(x509_data->storeCtx);

Does this seem correct to you ?
The code for two routines follows. First, Ssl_ConfigTrust() updated to include your suggestions.
Second, Ssl_ReleaseConnect() which is where SSL_CTX_free() is called.
ROUTINE PRIVATE BOOL Ssl_ConfigTrust(SSL_CTX *ctx, X509_DESC *x509_data)
{
X509_STORE *pstore = NULL;
X509_STORE_CTX *storeCtx = NULL;
BOOL rval = TRUE;
int r = 0;
X509 *client_cert;
FILE *fp;

syslog(LOG_INFO, "MAIN_TASK: Configure SSL Authentication");
//
// Load the client's public certificate into memory.
// We need this for proper structuring although it is not
// used in the authentication. This is a work around to
// compensate for the fact that not passing a client certificate
// to X509_STORE_CTX_init() eventually leads to an internal SSL
// crash due to the fact it intermittently clobbers the address
// in storeCtx->ctx->cert_store->param This believed to be
// an OpenSSL bug which affects at least version 1.0.2e.
//
fp = fopen(SSL_CLIENT_CERT_FILE, "r");
client_cert = PEM_read_X509(fp, NULL, 0, NULL);
fclose(fp);
if( !client_cert )
  {
	r = -1;
	syslog(LOG_ERR, "MAIN_TASK: Invalid Client Certificate File: %s", SSL_CLIENT_CERT_FILE);
  }
else
//
// Now allocate a store context
//
if( !(storeCtx = X509_STORE_CTX_new()) )
   {
	rval = FALSE;
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Context Allocation Failure");
   }
else
//
// First, fabricate a temporary trust store and
// add the CA Certificate to the new trust store.
//
if( !(pstore = X509_STORE_new()) )
  {
	rval = FALSE;
	syslog(LOG_INFO, "MAIN_TASK: X509 Error - Store Allocation Failure");
  }
else
if( (r = X509_STORE_load_locations(pstore, SSL_CA_CERT_FILE, NULL)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Certificate Addition Failure");
else
if( (r = X509_STORE_set_default_paths(pstore)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Path Configuration Failure");
else
//
// Now configure the authentication characteristics.
//
if( (r = X509_STORE_add_cert(pstore, client_cert)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Addition Failure");
else
if( (r = X509_STORE_CTX_init(storeCtx, pstore, client_cert, NULL)) != 1)
	syslog(LOG_ERR, "MAIN_TASK: X509 Error - Store Initialization Failure");
else
  {
	//
	// Insert the new store settings in the SSL context.
	//
	// Finally set the authentication characteristics.
	// This flag is just enhance debugging on most SSL versions and
	// should be set.
	//
	SSL_CTX_set_cert_store(ctx, pstore);
	X509_STORE_CTX_set_flags(storeCtx, ( X509_V_FLAG_CB_ISSUER_CHECK ) );
  }

if(r != 1)
  {
	syslog(LOG_ERR, "MAIN_TASK: SSL Authentication Configuration Error");

	ERR_print_errors_fp(stderr);
	abort();
  }

if(rval)
  {
	syslog(LOG_INFO, "MAIN_TASK: Authentication Configuration Succeeded");

	x509_data->storeCtx = storeCtx;
	x509_data->store = pstore;
  }
else
  {
	syslog(LOG_INFO, "MAIN_TASK: Transient SSL Authentication Configuration Failure");

	if(pstore)
		X509_STORE_free(pstore);
	if(storeCtx)
	  {
		X509_STORE_CTX_cleanup(storeCtx);
		X509_STORE_CTX_free(storeCtx);
	  }
  }

return(rval);

}
ROUTINE void Ssl_ReleaseConnect(CONN_DESC *cdesc, uv_mutex_t *mutex)
{
SSL_CTX *ctx;
SSL *sock;
syslog(LOG_INFO, "PROTO_TASK: CONN[%d] SSL Release Resources", cdesc->index);

if(mutex)
	ENTER_MUTEX(mutex);

if(cdesc->ssl_socket)
  {
	ctx = cdesc->ssl_ctx;
	sock = cdesc->ssl_socket;

	cdesc->ssl_socket = NULL;
	cdesc->ssl_ctx = NULL;

	if(mutex)
		EXIT_MUTEX(mutex);

	SSL_free(sock);

	SSL_CTX_sess_set_remove_cb(ctx, NULL);
	SSL_CTX_free(ctx);
  }
else
  {
	if(mutex)
		EXIT_MUTEX(mutex);
  }

return;

}
Best Regards,
Paul R.

I think this closes all issues mentioned in the case.
Do you agree ?

I think this closes all issues mentioned in the case.
Do you agree ?

Yes, this looks to resolve everything; I will close it.
I'm glad you managed to get things working!


is it possible for macros to take arguments?

If I'm calling a macro as a command from elsewhere, can I give it an args list?

Taken from https://marketplace.visualstudio.com/items?itemName=geddski.macros#overview

Passing Arguments to Commands
Many commands accept arguments, like the "type" command which lets you insert text into the editor. For these cases use an object instead of a string when specifying the command to call in your settings.json:
"macros": {
"addSemicolon": [
"cursorEnd",
{"command": "type", "args": {"text": ";"}}
]
}

I can't get it to work with editor.action.indentUsingSpaces though...


samples: sensor : mcp9808: check return value

Check the return value while setting sensor trigger
Coverity-CID: 186196
Signed-off-by: Paras Jain<EMAIL_ADDRESS>

Codecov Report

Merging #8046 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #8046   +/-   ##
=======================================
  Coverage   55.03%   55.03%
=======================================
  Files         481      481
  Lines       53934    53934
  Branches    10474    10474
=======================================
  Hits        29684    29684
- Misses      19980    19981    +1
+ Partials     4270     4269    -1

Impacted Files
Coverage Δ

samples/philosophers/src/main.c
96.87% <0%> (-1.57%)
:arrow_down:

boards/posix/native_posix/timer_model.c
100% <0%> (+1.78%)
:arrow_up:

Continue to review full report at Codecov.

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


Add logging in testDNSStats

What does this PR do?
TestDNSStatsWithNAT is still flaky, I'm noticing that many of the failures are on prebuilt, and the CO-RE failures have the suspicious 'clang timed out error'. I'm wondering if this is an issue of the netlink conntracker being behind the real tracer. These logs will help verify. If all the failures we see are on prebuilt, we can either skip this test with netlink conntrack,  or add some synchronization
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/merge

/merge


cargo-dist: 0.13.1 -> 0.13.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for cargo-dist is: A tool for building final distributable artifacts and uploading them to an archive
meta.homepage for cargo-dist is: https://github.com/axodotdev/cargo-dist
meta.changelog for cargo-dist is: https://github.com/axodotdev/cargo-dist/blob/v0.13.2/CHANGELOG.md
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.13.2 with grep in /nix/store/yz3fflc514067mg5l69qivqx0likzack-cargo-dist-0.13.2
found 0.13.2 in filename of file in /nix/store/yz3fflc514067mg5l69qivqx0likzack-cargo-dist-0.13.2

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
cargo-dist

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/yz3fflc514067mg5l69qivqx0likzack-cargo-dist-0.13.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A cargo-dist https://github.com/r-ryantm/nixpkgs/archive/30c60b8164854c207c8233e813aaaed7571897ed.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/30c60b8164854c207c8233e813aaaed7571897ed#cargo-dist

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/yz3fflc514067mg5l69qivqx0likzack-cargo-dist-0.13.2
ls -la /nix/store/yz3fflc514067mg5l69qivqx0likzack-cargo-dist-0.13.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

cargo-dist

Maintainer pings
cc @figsoda @matthiasbeyer @mistydemeo for testing.

Result of nixpkgs-review pr 305477 run on x86_64-linux 1

1 package built:

cargo-dist

Backport pushed to https://github.com/NixOS/nixpkgs/pull/298312


PERA-1345 :: Add pera usernames to CLA filter

Pull Request Template
Description

Add pera usernames to CLA filter

Related Issues

Closes https://algorandfoundation.atlassian.net/browse/PERA-1345

Checklist

[X] Have you tested your changes locally?
[X] Have you reviewed the code for any potential issues?
[X] Have you documented any necessary changes in the project's documentation?
[X] Have you added any necessary tests for your changes?
[X] Have you updated any relevant dependencies?

Additional Notes

This PR is needed because the CLA filter checks by PR, and we don't want to have to sign each time

I have read the CLA Document and I hereby sign the CLA

recheck


Please bring this

Describe your suggested feature

Other details
I need this feature For all novels like in tachiyomi, the change has to be permanent
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with a source, I should be opening an issue in the sources repository.
[X] I have updated the app to version 1.1.17.
[X] I will fill out all of the requested information in this form.

If You don't understand, is permanent sort

More > Settings > General > Default Chapter Sort


Wrong preshared key behavior for multi branch

Bug description

Not able to receive messages from subscriber branch

When creating a multi branch channel with a preshared key for an subscriber (auditor), the auditor is only able to fetch messages from the author but not from a different branch of a subscriber which writes to the channel.
Here is my code sample:
https://codesandbox.io/s/preshared-key-multi-branch-i7ik5

Fetches messages of the author although auditor used wrong key when subscribing

In the following code sample I used a different preshared key as it was used by the author when creating the channel. In this case the auditor is still able to decrypt the message of the author.
Code Sample:
https://codesandbox.io/s/wrong-preshared-key-multi-branch-i7ik5?file=/src/index.js
Rust version
https://github.com/iotaledger/streams/commit/2964da41b2f5629998f39d1ffa95b76a7ef4263a
Steps To reproduce the bug
See code examples.
Expected behaviour

Auditor is able to fetch messages from all subscribers if the preshared key is added to the send_keyload message of the branch.
Auditor shouldn't be able to receive this messages since he has the wrong preshared key.

Hmmm its definitely working in rust; https://pastebin.com/pLFRWvtw
Tested from commit: https://github.com/iotaledger/streams/commit/2964da41b2f5629998f39d1ffa95b76a7ef4263a

Right... I see.. :D
When you store a PSK, you get a string back
let id = author.store_psk(presharedkey);
Then when you make a PskIds object, you store said id in there. In the example you use you store the presharedkey not the id :)
Once you change that on both accounts, your first example works


Wine Support ?

Hi,
I would love to be able to use your software under Wine.
What requirements does the Software have?
I know "Mono".
But what other System Libraries (Visual Basic / Visual C++ ?) does it need?
This is the Wine Log:
http://sprunge.us/7zRmjF
To give you an idea: Often one needs to add Microsoft Visual C++ Runtime Libraries. For example:
The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications that are built by using Visual Studio 2013 (version 12.0)
But this C++ redistributable runtime exists from version 4.0 up to version 14.0 (Visual Studio 2015)
Or there is the Visual Basic Runtimes up to version 6.0?
Can you possibly point me to any of these runtimes?

According to Winetricks, .NET Framework 4.5 (which 4.7 depends on) is broken on Wine versions newer than 5.18 (current stable version is 6.0 and latest is 6.8). There is a flag to try the installation anyway, but I didn't use it.

Hi!. I am very sorry for the delay in offering a response, but I have had this project quite forgotten and abandoned.
Responding yo your issue, Easy Link File Viewer is a software designed to run under Windows OS. Supporting running the application on other platforms is not planned. However, users are free to ask and get help from other users. I'm glad to see there has been some response trying to help you.
I don't have enough experience with Unix/Linux neither with Wine, but analyzing the log that you have shared it states that the support for running software targeting .NET Framework 4.7 is not implemented:

002a:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.7" not implemented

It also states other errors related to the framework configuration manager:

002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"configSections" in state 2
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"sectionGroup" in state 6
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"section" in state 6
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"userSettings" in state 2
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"My.MySettings" in state 6
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
002a:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6

A next release of Easy Link File Viewer is coming soon, and it will rely on .NET Framework 4.8.
Those issues related to the configuration file should disappear on the next release, as the methodology for saving and loading the user settings will change.
I'm sorry I can't bring more help in this issue.
Sincerely,
Elektro.

Just checked this again. The issue that prevented .NET Framework 4.5 from installing seems to be fixed. Easy Link File Viewer 1.4 works fine after running winetricks dotnet48 (that will install 4.7 as well).
.NET Framework 4.8.1 is marked as broken on AppDB, but I have not verified that.

Thank you @selurvedu !


An issue with the monad documentation

There is a problem with the monad.htgx documentation, but I can't repair it.
It currently reads:
##The Writer Monad##
Fixed a monoid \{M\}, the \{M\}-writer monad is just all possible pairs of elements from \{M\}
and elements from other types. Thus, the Haskell declaration is as follows\f
Some authors write it using tuples, like this: \{data W m a = W (a,m)\}.\f:

But "Fixed a monoid M, the M-writer monad..." doesn't make sense.
What is it supposed to mean? (Could you please use different words so I can extract your meaning).

For any given monoid M...

Ahhhh :) ok. That makes a lot of sense. I guess you can change it then? :)

Actually, I just adjusted the files in the PR, so should be good to go now.


Configure client middleware on the server too

The sidekiq server is also a client of itself because jobs can enqueue
other jobs.  If we want these kinds of jobs to get the metrics recorded
by the client middleware, we need to configure the client-on-the-server
as well as the client-not-on-the-server to include the middleware.  This
is a little bit confusing, so see the sidekiq wiki entry on configuring
middleware for more detail.

Planning on creating this against https://github.com/StatusPage/librato-sidekiq too, but I want it in our fork first before I do that, as the other changes we've got in our fork don't appear to have been merged upstream.

Oh also, feel free to open the PR, but the last thing merged into that repo was in 2014, so I've got a feeling the gem might be unmaintained. I think that's why we forked in the first place.


Error in BBB 2.4

We have recently updated to BBB 2.4 and, not always, but with long meeting, we have this error:
root@ns3109230:/opt/bbb-video-download# docker-compose run --rm --user 997:996 app node index.js -i /var/bigbluebutton/published/presentation/cd716c9b27d8dc4aeb35f9118d8d0dff2f54cba5-1646917178297 -o ./video.mp4
Creating bbb-video-download_app_run ... done
[Start] Rendering downloadable video for BBB presentation  {
args: Namespace(input='/var/bigbluebutton/published/presentation/cd716c9b27d8dc4aeb35f9118d8d0dff2f54cba5-1646917178297', output='./video.mp4'),
format: 'mp4',
docker: true
}
[Error] Failed rendering downloable video for BBB presentation  {
args: Namespace(input='/var/bigbluebutton/published/presentation/cd716c9b27d8dc4aeb35f9118d8d0dff2f54cba5-1646917178297', output='./video.mp4'),
format: 'mp4',
docker: true,
workdir: './tmp/datapNObgA'
} Error: Command failed: ffmpeg -hide_banner -loglevel error -f concat -i ./tmp/datapNObgA/slides.txt -threads 1 -y -filter_complex "[0:v]fps=24, scale=800:-2[out]" -map '[out]' -strict -2 -crf 22 -pix_fmt yuv420p ./tmp/datapNObgA/slides.mp4
at checkExecSyncError (child_process.js:635:11)
at Object.execSync (child_process.js:671:15)
at renderVideo (/home/bigbluebutton/modules/slides.js:317:18)
at module.exports.renderSlides (/home/bigbluebutton/modules/slides.js:13:15)
at async module.exports.createPresentationVideo (/home/bigbluebutton/modules/presentation.js:10:20)
at async module.exports.createVideo (/home/bigbluebutton/modules/processor.js:20:26)
at async run (/home/bigbluebutton/index.js:10:9) {
status: null,
signal: 'SIGKILL',
output: [ null, ,  ],
pid: 133,
stdout: ,
stderr:
}

Look into your system logs and check if the ffmpeg process was killed by the Kernel OOM killer. If yes, you do not have enough ram. Some versions of ffmpeg seem to consume an absurd amount of memory for this computation.


Not an issue but a question regarding using Brain.js for automated categorization of products

I am very new in NN, so please excuse me if what I am asking is very obvious. I am trying to use brain.js in a project that automatically categories products based on keywords found from the pre-input product data (ex, color, brand, product line, etc). I am thinking my training data would look like the following:
var net = new brain.NeuralNetwork();

net.train([
{ input: { "Batman": 1 }, output: { "Batman": 1, "Superhero": 1, "DC": 1, "Arkham Knight": 1 } },
{ input: { "Funko POP!": 1 }, output: { "Funko": 1, "Vinyl Figure": 1, "Figure": 1 } },

{ input: { "Iron Man": 1 }, output: { "Iron Man": 1, "Superhero": 1, "Marvel": 1 } },
{ input: { "Funko POP!": 1 }, output: { "Funko": 1, "Vinyl Figure": 1, "Figure": 1 } },

{ input: { "Mickey Mouse": 1 }, output: { "Mickey Mouse": 1, "Disney": 1, "Family-friendly": 1 } },
{ input: { "Disney Collection": 1 }, output: { "Disney": 1, "Plush": 1 } },

{ input: { "Donald Duck": 1 }, output: { "Donald Duck": 1, "Mickey Mouse": 0.5, "Disney": 1, "Family-friendly": 1 } },
{ input: { "Disney Collection": 1 }, output: { "Disney": 1, "Plush": 1 } },

{ input: { "Batman": 1 }, output: { "Batman": 1, "Superhero": 1, "DC": 1, "Justice League": 1 } },
{ input: { "Bandai S.H. Figuarts": 1 }, output: { "Bandai": 1, "ActionFigure": 1, "Figure": 1 } },

{ input: { "Batman": 1 }, output: { "Batman": 1, "Superhero": 1, "DC": 1, "Batman the Animated Series": 1 } },
{ input: { "Mattel Batman the Animated Series Plush": 1 }, output: { "Mattel": 1, "Plush": 1 } },

... more ...
])

My first question is, am I even on the right track? Should I break down the output so that each input/output pair only contains one output data, like the following?
// Instead of using
// { input: { "Batman": 1 }, output: { "Batman": 1, "Superhero": 1, "DC": 1, "Arkham Knight": 1 } }
// use:

{ input: { "Batman": 1 }, output: { "Batman": 1} },
{ input: { "Batman": 1 }, output: { "Superhero": 1} },
{ input: { "Batman": 1 }, output: { "DC": 1} },
{ input: { "Batman": 1 }, output: { "Arkham Knight": 1} }

My second question is, it appears that the neural network object only supports up to 19 (20?) different output properties. How can I change that? Again, am I even doing the right thing at all?

If you still need help, feel free to re-open this issue.


Void Linux package count 0.

Description
After installing the void linux package, I've noticed that the package count has remained zero, whereas screenfetch correctly reports it as 1038.
System Information
OS: Void Linux x86_64
Kernel: Linux 4.4.6_1 x86_64
Shell: /bin/zsh
WM: bspwm
CPU: AMD Turion Dual-Core RM-75 (2) @ 2.2GHz
GPU: NVIDIA C77 GeForce 8200M G
Memory: 1849MB / 2760MB
Neofetch version
1.6
Operating system
GNU/Linux 4.4.6_1
Screenshot (If relevant)

Verbose log
http://sprunge.us/UEYB

Thanks for reporting this, I'm installing Void Linux now to fix this.

Do you by any chance have another package manager installed alongside xbps-query?
(pacman, dpkg, rpm and etc)

I only have pip installed besides xbps, 95% of packages are from the xbps package manager

Does #229 fix your isssue?
It changes the package function to work when the user has multiple package managers installed.

It appears so,

Awesome, I'm going to do some testing with various distros and #229 before I merge it.
I also just noticed that battery seems to be broken for you, what's the output for these commands?

cat /sys/class/power_supply/BAT*/capacity
cat /sys/class/power_supply

╭─ 02:58:55  benjamin@benjamin-laptop  ~/bin/neofetch   master 
╰─ cat /sys/class/power_supply/BAT*/capacity                                                                                 ✓
cat: /sys/class/power_supply/BAT0/capacity: No such device
╭─ 02:59:06  benjamin@benjamin-laptop  ~/bin/neofetch   master 
╰─ cat /sys/class/power_supply                                                                                 1 ↵
cat: /sys/class/power_supply: Is a directory

As a note before you get to concerned, my battery won't hold a charge anymore and linux sometimes thinks its charging. If you want I can help you investigate this some, but I only have that battery there for when I order a replacement.

The fix is now in master, thanks for reporting this!

Not a problem, thanks for the fix!

Thanks. :)

Not a problem.


[Bug]: @example decorator fails to generate a proper example if nested models are used

Describe the bug
When the @example decorator is applied to a model property that references another model, the generated example is invalid
Reproduction
Declare the following models:
model A {
  name: string
}

model B {
  items: Array
}

Apply the @example decorator to model B as follows:
@example(#{
  items: #[
    #{ name: "one" },
    #{ name: "two" }
  ]
})
model B {
  items: Array
}

The generated example: section in the resultant YAML will look like:
example:
        items:
          - {}
          - {}

which isn't even valid YAML
Checklist

[X] Follow our Code of Conduct
[X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
[X] The provided reproduction is a minimal reproducible example of the bug.

Weird issue, will try to see about getting a hotfix for that as well


TIme interval splits are time aligned

ensure the time interval splits are aligned exactly to the time boundary. e.g. 1min spits are @ 12:00:00 precsisely

added, regressions are good, required some re-adjustment for compare values. system aligns the start time on the split. means the first pcap will be smaller.


Filtering on individual columns

Is your feature request related to a problem? Please describe.
There doesn't appear to be a way to add a filter button to the column title. Here is an example https://ant.design/components/table#components-table-demo-head where the columns have sort and filter buttons.
Describe the solution you'd like
If a column is marked as filterable, it should be able to provide simple filtering options based on the data type of the column, or allow one to provide a ReactNode that would be rendered in the overlay when the filter button is clicked.
Describe alternatives you've considered
I could not find a way to achieve this, but I suspect that by providing a ReactNode as the title, I could sneak in a filter button there. Its placement and functionality would still have to be manually defined though, rather than a convenient built-in solution.

This would undoubtedly be a useful feature. It has been discussed before and don't have much time to address this till the end of the year, but it sounds like a perfectly valid reason to make the column header accept a function, to begin with. In fact, I think I'll just do that.

This would undoubtedly be a useful feature. It has been discussed before and don't have much time to address this till the end of the year, but it sounds like a perfectly valid reason to make the column header accept a function, to begin with. In fact, I think I'll just do that.

Today i use this package in my company: https://github.com/AlexcastroDev/flexysearch
based on Mui Datagrid PRO.
You can check if is good for this project, or if needed, i can update to help mantine-datatable.
Cheers


Proper Errors

currently, many built in functions do not print a proper error message, they just exit with failure on invalid inputs. Fix this.

merged into v0.6.1


calendar store file contains default settings

ok on setup, once !display/ update is triggered, it populates calendar with default settings


Show "No templates found" in the list if setting the  "Azure Functions: Template Source" setting with "Staging" when creating a .NET 6.0 LTS project

OS: All
Build Version: 20220715.7
Repro Steps:

Set the "Azure Functions: Template Source" setting with "Staging".
F1 -> Click "Azure Functions: Create New Project..." -> Select a folder -> Select C# -> Select .NET 6.0 LTS.
Check whether there are many templates in the list.

Expect:
There are many templates in the list.

Actual:
Show "No templates found" in the list.

More Info:

An error occurs after selecting "Skip for now" to create project.

This issue doesn't reproduce for other .NET runtimes.
This issue doesn't reproduce when setting the "Azure Functions: Template Source" setting with "Default"

@nturinski I tried these steps and couldn't reproduce. Hopefully it's not a real issue because they're in the process of moving these templates out of prerelease this afternoon: https://github.com/Azure/azure-functions-tooling-feed/pull/369

@v-xinda I also can't reproduce this issue.  Could you try this again with either the current release version or the current main build?

@nturinski  Verified this issue with the current release version and the latest main build, and set the "Azure Functions: Template Source" setting with "Default" or "Staging". It doesn't reproduce, so close it.


"use strict"; no longer throws errors if google cannot be loaded

Was working without internet and google && google.maps was causing an issue with "use strict;" (because the google namespace was not declared). Further, if the googleMaps var was falsely the component still tried to initialize.

Thanks for the PR! Released in 1.14.0.


[refactor] #4126: test to prevent cross chain replay attacks

Description

Linked issue

Closes #{issue_number}

Benefits

Checklist

[ ] I've read CONTRIBUTING.md
[ ] I've used the standard signed-off commit format (or will squash just before merging)
[ ] All applicable CI checks pass (or I promised to make them pass later)
[ ] (optional) I've written unit tests for the code changes
[ ] I replied to all comments after code review, marking all implemented changes with thumbs up

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
3993 unchanged lines in 68 files lost coverage.
Overall coverage decreased (-0.02%) to 56.772%

Files with Coverage Reduction
New Missed Lines
%

tools/kagami/src/crypto.rs
1
12.12%

core/src/sumeragi/network_topology.rs
1
98.78%

primitives/src/lib.rs
1
0.0%

primitives/src/unique_vec.rs
2
91.24%

data_model/src/metadata.rs
2
78.87%

config/src/kura.rs
3
80.0%

logger/src/lib.rs
5
94.12%

config/src/logger.rs
5
72.73%

tools/kagami/src/main.rs
5
0.0%

telemetry/src/dev.rs
7
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
22431

Relevant Lines:
39511

💛  - Coveralls


AFD soccer example

This includes an auto feature discovery model factory through the Python API. It's differentiated from other examples tutorials in that it combines the AFD with a parallelized model factory, and includes a separate notebook to request the data from a public API. It's also a soccer example, so that's fun.
Future considerations: deploy the model(s) to MLOps and use realtime predictions in a Shiny app to predict game outcomes.

Will go through community process


feat: implement codegen of i32 ops

This PR adds support for lowering IR instructions that have i32 operands to Miden Assembly. Since these are the most likely to be needed by Wasm-compiled modules, we wanted to get these implemented ASAP.
There are three main pieces here:

The hand-written MASM modules in the intrinsics namespace, e.g. intrinsics::i32
The parsing of MASM files into our internal MASM representation so that we can use them with the emulator. For this we lean on the parsing facilities provided by the miden-assembly crate
The implementation of the i32 variants for relevant instructions in OpEmitter in the miden-codegen-masm crate

While we could construct IR representing the intrinsics modules, it's far too verbose to be easy to maintain that way, hence the need for 1 and 2. We also want to be able to test modules compiled with uses of those intrinsics, hence the need for 2.

Sorry @greenhat, this was supposed to be a draft PR still, since I hadn't finished adding tests yet. I've changed the status temporarily until that gets done.

@greenhat This PR is a bit of a mess now, because there are a mix of changes in here related to loading intrinsics from disk, and that got tangled up with the changes to the driver and compiler. I'd like to merge this as-is (with the broken i32 intrinsics included), and open a separate PR with the fixes for the intrinsics, otherwise this is going to get messy fast. Once this PR gets merged, I'll open the follow-up PR with those fixes, but I'm going to use this branch as my base for those changes for now.

NOTE: The sole failing test is the dlmalloc expect test because the compiled Wasm for dlmalloc doesn't match what's in the expect test. I don't know why this is failing in CI but not locally, even running the same toolchain, but maybe this is something fixed in one of your PRs?

It's weird that it does not fail locally. I got it disabled in my branch because IIRC it was failing down the pipeline anyway. Let's disable it for now.
As a side note, I disabled the signed_arith test as well since local env details leaked into rodata (local path and newlines).

Approved.


etcdserver/test: synchronously wait on TestApplySnapshotAndCommittedE…

…ntries
Replaces the RecorderBuffered with a RecorderStream so Wait will block
waiting for updates to the etcdserver store.
Fixes #4296

LGTM


[BUG] kubectl on host gives permission denied / command not found

Describe the bug
After installing 3 Harvester nodes I started an SSH session to run kubectl. When run without sudo it gives a permission denied error on /etc/rancher/rke2/rke2.yaml. When running the command with sudo it gives a command not found error.
So, either the PATH should be adjusted during installation or the access rights of the RKE2 yaml-file should be adjusted.
I run Harvester v1.0.2 (amd64).
To Reproduce
Steps to reproduce the behavior:

Install a 3 node Harvester cluster (number of nodes probably not relevant).
Add it to Rancher.
Install a RKE2 cluster with default values for all optional parameters.
SSH into one of the Harvester hosts with the rancher user.
Run a kubectl command with and without sudo.

U may just execute sudo su first and then run the kubectl command.

Of course... :O)
Thanks.


GUACAMOLE-656: Explicitly depend on maven-surefire-plugin 3.0.0-M1 due to SUREFIRE-1588.

Yikes! Glad it's an easy fix.


How can config the count of image to show?

Hi, I use react-swipeable-views 0.12.8 in my webapp.
This is my case, I have 3 images.
In the mobile version is ok:

But I want that in my desktop version show me the 3 images at same time:

Here an example with react-slick. In this library, the responsive config works:
https://jsfiddle.net/2w7jr06z/
I hope you can help me, thanks!

You could be using something like a withWidth() Higher order Component to change the shape of the children based on the current width of the screen.


Subject: Arduino Yun and node.js, a good read

Subject: Arduino Yun and node.js, a good read
After spending 2 weeks working through lots of challanges with Arduino Yun and Node.js, I put together a massive article with lots of source code to cover in depth Arduino Yun and Node.js.
I also provide a pre-built binary image that you can bun onto your own Micro SD (instruction included) for the perfect Yun / Node.js setup.
I developed a serial Watchdog (for when serial bridge doesn't connect), socket.io client using binary ws for the Yun, figured our node.js live remote debug and more...
I just had too many good things to not share it with everyone, so here it is, ENJOY and please comment:
https://github.com/born2net/mediaArduino
(PS sorry that has to open an issue, but no other way to post on GitHub).

Thanks for sharing! GitHub issues are definitely not the best forum for this, though. I suggest posting in HackerNews. :)


[APIView][Feature Request] - Support uploading Java source jars from hyperlink

To upload a new API review, the code has to be locally built and the source jar has to be created (for Java) to upload to the API view tool. It would be great to have API view download the jar from a hyperlink, so this will allow us to point to nightly builds or even Maven central. It's especially useful when creating a diff with an existing GA'd library. We can simply point to released jar in Maven as initial version and locally build only the diff and upload as revision.

Do we still need this after we recently added the support to generate review from PR based on the  changes? This feature automatically gives you the diff option from what's in main branch as baseline. @srnagar @JonathanGiles

It would be nice if we could support url uploads. It isn't a huge requirement, just a nice to have.

@mssfang is this something you could help us with later this year or January?

This feature request doesn't fall into the Java-specific tooling so much as it requires an enhancement to APIView WebUI itself to support providing a URL rather than a file system path

I will add we are trying to move away from manually uploading reviews at all. We now have nightly and PR requests added automatically to ApiView and we expect those will be the most common way to get reviews started in the future. With that I'd suggest we not add this feature at all.

There is still value in such a feature, IMHO, because I don't think our team will ever move away entirely from uploading individual source jars occasionally, and, also, in the wider context of other deployments / test deployments of APIView, we should continue to ensure this useful functionality exists for those who choose to not integrate into nightly / PR based pipelines.


Endpoint to store multisig call params and hash

The events for the multisig operations only contain hashes of the original call data. In order for the frontend to display the original data, we need to map said data to the call hash in the backend. So the frontend can resolve it later on.
The first endpoint should store

the original call data, and
the hash (as calculated by the frontend)

The backend then must verify the hash is correct, using this code.
Only if correct, the backend stores the call data and associates it with the hash for later retrieval.

The call must be signed by either the DAO Owner, of (more likely, because it's a multisig) one of the multisig signers to be accepted.

@x-xo @deep-ink-ventures
I would like to ask for help on how verify the hash is correct. i can't find a way to use the code provided above.
and  and what original call data i am expecting

This is the Lifecycle:

A tx is created via endpoint or via an incoming NewMultisig event -> Status is PENDING, when the event comes in there is already the first signer (who submitted, we store this signer in the model)

A tx is updated via MultisigApprovalevent -> Status remains PENDING if the threshold isn't met but we store the addition signer, if the number of signers meets the threshold, the status becomes APPROVED

A tx is updated via MultisigCancelled event -> Status switches to CANCELLED
A tx is updated via MultisigExecuted event -> Status switches to EXECUTED

these are the events: https://github.com/paritytech/substrate/blob/master/frame/multisig/src/lib.rs#L225-L247
Just to note: A tx can be created via an endpoint or via an event and both must be possible and sometimes only an event happens (when someone uses a different ui and is not using our API endpoint). In that case we still track it but give back the values as None in the API on the params / function / module. We can then only present the call hash in the ui
Sample code for the call hash:
from substrateinterface import SubstrateInterface
substrate = SubstrateInterface(url="wss://node.genesis-dao.org/")

try:
    call = substrate.compose_call(
        call_module='Votes',
        call_function='mark_implemented',
        call_params={
            'proposal_id': 42,
        }
    )
    call_hash = call.call_hash

    # bytes
    print(call_hash)

    # encoded, to store in the database
    print(call_hash.hex())

    # reverse the hex encoding
    print(bytes.fromhex(call_hash.hex()))

except ValueError as exc:
    print(f'Raise a 400 and give back this: {exc}')
    ```

39f24db137e9c09465e76fc952345fc480faf69a


MSID: 100205 Version: 1 DOI: 10.1101/2<IP_ADDRESS>8066

MSID: 100205
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>8066
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=100205
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>8066

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/100205v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>8066
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/100205/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

warn: [mixed-citation-other-publication-flag] mixed-citation in reference (id=c1) has a publication-type='other'. Is that correct?


JavaScript Frameworks

I have noticed that there been changes in how framework are operated.
And I'm now sure is there is better alternative ..... I have asked our UI guys to add ways for me to simulate active ajax request.
we are using React JS and mootools they do not have any ajax monitoring built in.
so I have to first activate it:
browser.execute_script("return Ajax.active()")

And then i can monitor open connections using:
browser.execute_script('return openHTTPs')

what would be the best way to integrate this into the page-object and at the same time have ability to use build it javascript frameworks.
Also some test does go to multiple systems, such that pages may have different framework or no framework, I think there should be an option to overwrite global setting by per-page configuration.
ex.
if test need to go to paypal sandbox jQuery may not work and will throw error.
Thank you!

I  think this is no longer relative...


why the description in model-defined code is not display in votager-UI

why the description in model-defined code is not display in votager-UI?
#商品类型的预注册登记表（交易系统内定义的套餐，code为'-set-')
type ProductType{
    id: ID! @unique
    createdAt: DateTime!
    updatedAt: DateTime!
    deletedAt: DateTime
    """外部商品系统的名称"""
    name:String
}

include the two style:  '#' and the """ ** """

As far as I know the convention is to use """text""" and that works with the most recent version:
"""商品类型的预注册登记表（交易系统内定义的套餐，code为'-set-')"""
type ProductType{
    id: ID!
    createdAt: DateTime!
    updatedAt: DateTime!
    deletedAt: DateTime
    """外部商品系统的名称"""
    name:String
}


Global audit: Fauxhai platform version

In multiple cookbooks, fauxhai is being explicitly set to pretty old OS X versions. This is a global note to fix them.

We might also want to audit .travis.yml to ensure that we are using the lates OSX version:
---
language: objective-c # <= forces OS X
osx_image: xcode7.3 # <= forces version 10.11
# ...

Going to archive this repo, closing.


Fix compilation error on FreeBSD when using clang 11 or higher

Hi @SeanTAllen,
The changelog - fixed label was added to this pull request; all PRs with a changelog label need to have release notes included as part of the PR. If you haven't added release notes already, please do.
Release notes are added by creating a uniquely named file in the .release-notes directory. We suggest you call the file 3964.md to match the number of this pull request.
The basic format of the release notes (using markdown) should be:
## Title

End user description of changes, why it's important,
problems it solves etc.

If a breaking change, make sure to include 1 or more
examples what code would look like prior to this change
and how to update it to work after this change.

Thanks.

I'm waiting on confirmation from a pony user that this fixes a build issue for them before merging.

Closing this because I had to problem backwards. There is no version of googletest that compiles on FreeBSD 13 as far as I know at the moment. More testing of that would be required.


promise rejection

Hi, I am trying to use getTransactions function to get transaction data.  Somehow I am not able to decode it. If I set decode boolean to false, I am able to get the raw data. But when I set it to true, I return an error as follow. Any thought why?
monerod.getTransactions('f062d04308f89fd3b18a86f1cb28ab62b1e5aa79364c83ad7ce11a0c7d08fbcb', true).then(txInfo =>{
console.log(txInfo);
});
(node:4754) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 42): SyntaxError: Unexpected token u in JSON at position 0

Hi!
getTransactions expects an array of tx ids. So please try this instead:
monerod.getTransactions(['f062d04308f89fd3b18a86f1cb28ab62b1e5aa79364c83ad7ce11a0c7d08fbcb]', true).then(txInfo =>{

    console.log(txInfo);

});

I may update the function to accept single values as well.


fix: remove getTextFromItem

Split out the Fabric update PR https://github.com/microsoft/ConversationLearner-UI/pull/1343 as I want to reduce variables. The should prevent the modal from opening which was known bug breaking the tests. Hopefully we can get smoke tests passing before upgrading Office Fabric

Hmm, doesn't fix the tests, but fixes other issues so will merge anyways. I looked more into test failure and understand why now

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

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


About HQSEG-44K

Thanks for the excellent job! I am planning to do some fine-tuning on the SAM model with HQSEG-44K dataset. However, when I prepared the dataset, I found several issues:

Some images in FSS are never labeled, like bamboo_slip/7.png
Some images in MSRA-10K are mislabeled, like 97915.jpg
The DUT-OMRON dataset only contains 5168 images, while actually the DUTS dataset contains 15572 images (including training and val splits). I cannot figure out which dataset is truly used in the HQSEG-44K.

Can you tell us more dataset preparation details? Thanks!

hi, we will release the training instructions and codes in the beginning of July, which also includes the datasets preparation and downloading.

Thanks!


Modifications of dosomder's "Remove unused code"

As we wanted some changes to @dosomder's pull request #574 and he stated that he unfortunately cannot spend time on the project at the moment, I took the liberty to create a new pull request including the original commit and some further changes.

Not much to say about this, it's pretty straight forward. We did have a discussion at some point how we should do imports from pynipap, like should we always import VRF, Pool and Prefix or only import what we need? I don't think we ever reached consensus on that.
Merging.


DeveloperExceptionPage does not show line numbers in stack trace

Using 2.0.0-preview1 bits:

Microsoft.AspNetCore.Diagnostics 2.0.0-preview1-24820 (via Microsoft.AspNetCore.All)
Microsoft.NETCore.App 2.0.0-preview1-002101-00

Throw a runtime exception during request processing, e.g. in an inline middleware, in a Controller action, in a Razor view/page, and the exception page displays but the stack trace contains no line numbers:
System.Exception: middleware
   at RazorPagesSample.Startup.<>c.<Configure>b__8_0(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()

@muratg @Eilon @pranavkm @davidfowl

-_- This has been regressed so many times. We seriously need to have end-to-end functional tests validating this.

Well, apparently this is a known issue: https://github.com/aspnet/Mvc/issues/6120.

Investigated this guy. Looks like there's a core clr issue with StackFrame that broke from netcoreapp1.1 => netcoreapp2.0. Filed an issue here.

We can keep this issue here at least to track.

@Eilon we keep this in preview1 or move out?

Can keep it here for now until we at least find out what the conclusion is on the .NET side.

This should now be fixed in CoreFX with https://github.com/dotnet/corefx/pull/19364.

@lt72 thanks!

@NTaylorMullen - can you confirm we're seeing the right thing on the latest build of the CLI that I sent out?

Verified by doing dotnet new -t mvc and throwing an exception in the HomeController:

All looks good!

Can you unskip https://github.com/aspnet/Mvc/issues/6120?

This issue resurfaced again in the mirror, probably because the corefx team merged their commits from preview1(where it regressed) to dev(where it was working when @NTaylorMullen unskipped this).

This has been fixed. https://github.com/dotnet/corefx/issues/19838

This has been regressed again for net461 apps. Re-opened the corefx issue: https://github.com/dotnet/corefx/issues/19838

Do we need to revive this - https://github.com/aspnet/Common/commit/31a4622223d99520bebf629ee545a7d382d50b61?

Yup, opened this issue.
To work around this issue for those watching you can add this to your csproj:
<DebugType Condition="'$(TargetFrameworkIdentifier)'=='.NETFramework'">Full</DebugType>

Have other issues tracking the fix of this now:

https://github.com/aspnet/Mvc/issues/6356
https://github.com/aspnet/Common/issues/235


Update with-hashed-statics example

I have substituted the babel's configuration for renaming static assets with a custom next configuration.

Please run yarn lint --fix https://travis-ci.org/zeit/next.js/builds/424769039#L2204

Done.


Added Proxy Support

Added use environment Proxy settings for proxy support. Also allows MiTM interception as a learning/validation tool.

Thanks!


Terminal screen number bug after gulp

Hello.
I have this bug https://github.com/akinsho/toggleterm.nvim/issues/173 with neovim plugin https://github.com/akinsho/toggleterm.nvim
The bug is only with OneDarkPro, if disabled OneDarkPro, i didn't have any bug.
Can you help me ?

Hmmmm. I use toggleterm.nvim too and can say I haven't noticed any issue like this. Do you have any custom filetype highlights?
I do specifically ignore toggleterm's filetype, toggleterm in the config when applying filetype highlights.

Thanks you.
I confirm, if i replace :
local onedarkpro = require("onedarkpro")
onedarkpro.setup({
  filetype_hlgroups = {
    scss = {
      TSFunction = { fg = "${cyan}" },
      TSProperty = { fg = "${orange}" },
      TSPunctDelimiter = { fg = "${orange}" },
      TSType = { fg = "${red}" },
    },
  }
})
onedarkpro.load()

by just :
require('onedarkpro').load()
It's fixed.
But i need the custom color :( do you have any tips ?

I wondered if that may stop the issue. I think it's due to Ignoring filetypes and buffer types.
Could you try this, in your config:
filetype_hlgroups_ignore = {
  filetypes = {},
  buftypes = {}
}

I wondered if that may stop the issue. I think it's due to Ignoring filetypes and buffer types.
Could you try this, in your config:
filetype_hlgroups_ignore = {
  filetypes = {},
  buftypes = {}
}

Edit: Might be worth playing around with filetypes and buftypes and see what happens.
Thanks.

same bug with :
local onedarkpro = require("onedarkpro")
onedarkpro.setup({
  filetype_hlgroups = {
    scss = {
      TSFunction = { fg = "${cyan}" },
      TSProperty = { fg = "${orange}" },
      TSPunctDelimiter = { fg = "${orange}" },
      TSType = { fg = "${red}" },
    },
  },
  filetype_hlgroups_ignore = {
    filetypes = {},
    buftypes = {}
  }
})
onedarkpro.load()

:(

Does it only do it when you're running gulp?
Could you try adding the following function to toggleterm:
on_close = function()
  lua require("onedarkpro.utils").set_fhlgroups(true)
end

and see if that does anything?

Does it only do it when you're running gulp?
Could you try adding the following function to toggleterm:
on_close = function()
  lua require("onedarkpro.utils").set_fhlgroups(true)
end

and see if that does anything?
I don't understand how to add the function into my config. Could you help me ? Im sorry.

Sorry, should have been more explicit:
require("toggleterm").setup({
  on_close = function()
    require("onedarkpro.utils").set_fhlgroups(true)
  end
})

Sorry, should have been more explicit:
require("toggleterm").setup({
  on_close = function()
    require("onedarkpro.utils").set_fhlgroups(true)
  end
})

Thanks you.
I have try the "on_close" and it didn't help :(

What about if you just try:
require("toggleterm").setup({
  on_close = function()
    require("onedarkpro").load()
  end
})

Essentially, I'm wondering if reloading the theme fixes the issue.

What about if you just try:
require("toggleterm").setup({
  on_close = function()
    require("onedarkpro").load()
  end
})

Essentially, I'm wondering if reloading the theme fixes the issue.
Thanks you for your time.
Same problem with this.

if i use https://github.com/navarasu/onedark.nvim with :
local onedark = require("onedark")
onedark.setup({
highlights = {
  TSProperty = { fg = "#c99a6e" },
}
})
onedark.load()

I didn't have the bug with gulp (but i have changed the color not only for scss).
I think is very close with the exception of "scss" custom color.

I confirm, i didn't have the problem with this onedarkpro.nvim config :
local onedarkpro = require("onedarkpro")
onedarkpro.setup({
  hlgroups = {
      TSFunction = { fg = "${cyan}" },
      TSProperty = { fg = "${orange}" },
      TSPunctDelimiter = { fg = "${orange}" },
      TSType = { fg = "${red}" },
  }
})
onedarkpro.load()

The problem is only with custom color by filetype.

Yeah I have no doubt the theme is causing this issue based on your troubleshooting. I'm just stumped as to how the filetype highlights are causing it.
If you could share your repo, I can run gulp and take a look myself. You'll just need to tell me what I need to do to get it setup. Not used gulp in an age!

Yeah I have no doubt the theme is causing this issue based on your troubleshooting. I'm just stumped as to how the filetype highlights are causing it.
If you could share your repo, I can run gulp and take a look myself. You'll just need to tell me what I need to do to get it setup. Not used gulp in an age!

https://github.com/Asterovim/test-gulp-neovim.git
need nodeJS version 10.
You could install nvm : https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install 10
nvm use 10

after that, you can :
git clone  https://github.com/Asterovim/test-gulp-neovim.git
cd test-gulp-neovim
into ToggleTerm :
nvm use 10
gulp

I think is related to BrowserSync because if i disabled i didn't have any arror.
Thanks you. Im also looking about BrowserSync...

Hey sorry for the slow reply. I haven't had time to test the above. I did try running a yarn dev which opened a browser, from within toggleterm and I couldn't recreate.
I wondered what happens if you toggle the line numbers on and off again?

If I toogle the line numbers, it's fix the bug.
But if I remove the line numbers and toggle the terminal i have the bug again (with or without gulp).

If I toogle the line numbers, it's fix the bug. But if I remove the line numbers and toggle the terminal i have the bug again (with or without gulp).

As a hacky workaround, could you do this:
require("toggleterm").setup({
  on_close = function()
    vim.cmd([[set nonumber]])
    vim.cmd([[set number]])
  end
})


Rename README to md

Rejecting because this project is based on the original LIRC.
I tried to have it upstreamed but was recommended to make it a plugin (See #1).
So unless this gets upstreamed, I'll ditch this repository entirely and replace it with a custom python / libusb / uinput solution without lirc.
Closed.


Update de comparison tab

The comparison tab has a bug:
cannot access local variable 'ga_combinator_dic' where it is not associated with a value
We should talk to @PedroSophiaaa to fix it.
Also, we can incorporate the new function to read XDIs, and compare the uploaded spectra to all the spectra in the database.

How the bug can be reproduced ?


Minifying with asset pipeline breaks formatting buttons

Including bootstrap3-wysiwyg in the Rails asset pipeline and then minifying it is causing the formatting buttons to not work properly.
Clicking on them causes the correct <i>, <b>, etc. tag to be inserted, but the cursor moves to the beginning of the input and the button itself does not toggle.

I am getting the same behavior. Using bootstrap-wysihtml5-rails gem.


Take a frame in realtime, process, shift the outgoing frame by XY.

Greetings.
You have a very good project.
Please tell me what needs to be done in order to take a frame in realtime, process it with opencv, and shift the outgoing frame by XY coordinates to stabilize the camera shake.
I think it 's better to do the shift in your own way using the opengl realtime filter ? Is it possible to give an example of how to create a frame processing function and cause a frame shift from it?
Best Regards pedroSG94 and all github team !!!

Hello,
OpenCV is not supported in this library. The only way to modify the output frames is using openGL with a filter:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/wiki/Real-time-filters
You can use getGlInterface().takePhoto method to get frames as bitmap, convert it to argb byte array and proccess it with openCV. With the data you can use the filter to modify the image but I think that the first step will be really slow so I'm not sure it is a good idea.
Few devices support camera stabilization using camera2 api that maybe is the best way to handle with this problem. It is already implemented in the library using this methods:
rtmpCamera2.enableVideoStabilization()
rtmpCamera2.enableOpticalVideoStabilization()


bug: View Source for $ionicSlideBoxDelegate link broken

From @timofeysie on July 12, 2016 3:0
Type: bug
Ionic Version: 1.x
Platform: all
The link for 'view source' on the ion-slides api page is broken.
http://ionicframework.com/docs/api/directive/ionSlides/
Leads to:
https://github.com/driftyco/ionic/tree/master/js/angular/directive/slides.js#L2
and returns a 404.

Copied from original issue: driftyco/ionic#7276

Hello, since this is an issue with the ionic docs site and not the framework I will be moving this issue to that repo. Thanks for using ionic!

This has been fixed 🎉


[LIVE+ PPV]* Pantoja vs Asakura LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT oN TV Guide & 𝐒𝐭𝐫𝐞𝐚𝐦𝐢𝐧𝐠

UFC 310 culminates in two huge fights tonight, as Shavkat Rakhmonov faces Ian Machado Garry before Alexandre Pantoja defends his flyweight belt against Kai Asakura.
👉👉⏩🎥🅻🅸🆅🅴🔴▶ CLICK HERE TO WATCH LIVE ONLINE
👉👉⏩🎥🆆🅰🆃🅲🅷🔴▶ CLICK HERE TO LIVE STREAM
👉👉⏩🎥🅻🅸🆅🅴🔴▶ CLICK HERE TO WATCH LIVE ONLINE
Rakhmonov was due to challenge welterweight champion Belal Muhammad here, but the latter withdrew due to a bone infection, leading Machado Garry to step in. The unbeaten Irishman faces the unbeaten Kazakh – one of his former training partners – in a highly-anticipated bout, which will establish a No 1 contender at 170lb.
Then, the UFC 310 main event pits Pantoja against Asakura, who is challenging for gold in his promotional debut. Asakura previously reigned as Rizin’s bantamweight champion, and that pedigree sees him hit the ground running in the UFC.
Elsewhere on the card, former interim heavyweight champion Ciryl Gane faces Alexander Volkov in a rematch, while Aljamain Sterling and Chris Weidman are the other ex-title holders to feature in Las Vegas.
Follow live updates and results from the UFC 310 main card and prelims, below.
Recommended
Shavkat Rakhmonov clears up Ian Machado Garry sparring rumours with blunt claim
Shavkat Rakhmonov clears up Ian Machado Garry sparring rumours with blunt claim
Ian Machado Garry ‘will get finished’ by Shavkat Rakhmonov if he can’t avoid key weapon
Ian Machado Garry ‘will get finished’ by Shavkat Rakhmonov if he can’t avoid key weapon
‘Disrespected’ Merab Dvalishvili marched into UFC office demanding Umar Nurmagomedov fight
‘Disrespected’ Merab Dvalishvili marched into UFC office demanding Umar Nurmagomedov fight
UFC 310 LIVE
Main event: Alexandre Pantoja defends his flyweight title versus Kai Asakura
Asakura, a former Rizin bantamweight champion, fights for gold in his UFC debut
Pantoja given fresh challenge after beating top contenders Moreno and Royval multiple times
Co-main event: Shavkat Rakhmonov faces Ian Machado Garry to decide No 1 contender at welterweight
Machado Garry replaces champion Belal Muhammad, whose bone infection ruled him out of title defence versus Rakhmonov
Rakhmonov and Machado Garry, both unbeaten, are former training partners
Rakhmonov (18-0, 18 stoppages) submitted Machado Garry (15-0, 8 stoppages) in past sparring rounds
5 minutes ago
UFC 310: Dominick Reyes def. Anthony Smith
Here’s what Smith told the UFC about his late friend and coach Scott Morton this week:
“Him and I have trained every day or twice a day, damn near on average, six days a week since I was 17 years old. And he was my coach, but that was one of the smaller parts of what he was. That guy was my best friend. He was my mentor, older brother, father figure.”
 This guy was my best friend. I thought I could push it down, but I couldn’t even control it walking out here. I don’t know how many times I can do this without him.”
Smith adds that it’s “probably” his final fight.
Alex Pattle8 December 2024 02:59
13 minutes ago
UFC 310 LIVE: Anthony Smith vs Dominick Reyes
Round one
Smith grabs a single-leg after a feeling-out period on the feet, but Reyes is able to slip free.
Decent overhand right for Smith, then we have a brief pause in the action due to an accidental eye poke on Reyes.
Back under way. Both men are landing straight punches. Lead uppercut by Reyes, from a southpaw stance.
Smith walks onto a series of jabs, and Reyes adds some crosses now. Smith felt those.
Trio of stiff jabs by Reyes now, and Smith sticks his tongue out at his fellow American.
Round two
Smith goes for a single-leg, but Reyes defends with some nasty elbows! It’s already 42-0 to Reyes in significant strikes in this round!
Smith is kneeling on the mat now, still eating elbows and punches. Reyes moves into half-guard, where he lands more strikes.
Reyes has now reached 127 significant strikes – I believe in the fight, rather than this round.
And referee Marc Goddard finally steps in. Reyes gets the TKO.
Dominick Reyes def. Anthony Smith via second-round TKO (ground strikes, 4:46)
Alex Pattle8 December 2024 02:51
32 minutes ago
UFC 310 LIVE: Anthony Smith vs Dominick Reyes
To the light-heavyweight division now, where Anthony Smith faces Dominick Reyes.
This is a meeting of former title challengers; in 2019, Smith was easily outpointed by then-champion Jon Jones, who won an extremely controversial decision against Reyes in 2020.
Smith is fighting despite the passing of his coach and close friend Scott Morton last month. Morton died of a heart attack at just 47 years old.
Smith looks incredibly emotional.
Alex Pattle8 December 2024 02:32
47 minutes ago
UFC 310 LIVE: Vicente Luque vs Themba Gorimbo
Next up, Vicente Luque vs Themba Gorimbo at welterweight.
Gorimbo steps in for UFC legend Nick Diaz, who was unable to make it through his training camp.
Round one
OH! Luque drops Gorimbo early with a short right hook, then snatches an anaconda choke! He puts Gorimbo OUT COLD!
Vicente Luque def. Themba Gorimbo via first-round submission (anaconda choke, 0:52)
Alex Pattle8 December 2024 02:16
1 hour ago
UFC 310 LIVE: Aljamain Sterling vs Movsar Evloev
Round three
This could be the deciding round. Evloev misses with a spinning back fist, and Sterling uses his momentum against him, timing a body-lock takedown to perfection.
Evloev stands against the fence, but he’s dumped to the mat. Once again the Russian gets back to his feet, but he’s trapped against the cage wall.
He manages to roll free, and in the ensuing scramble, Evloev ends up in Sterling’s guard! Sterling stands but is dragged down, and Evloev is working on taking the back...
One minute for Sterling to survive a submission, and he may well take this fight – although it has been close throughout...
We’ll go to the scorecards.


Add unit tests for pkg/service.Service

This PR:

Introduces the lbmap.LBMap interface and its mock implementation - LBMockMap.
Adds first batch of the pkg/service.Service unit tests (more to follow in the next PR; creating the PR sooner than expected due to the bug below).
Fixes the bug where backends were not properly accounted which resulted in the backend leak.

Reviewable per commit.

This change is

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

Coverage increased (+0.3%) to 45.442% when pulling 5fad617ad228cace79d0b656ebc70d984e60712d on pr/brb/svc-unit-tests into 7797aa5d76d6aca9db27fa8a4544482b79dd884d on master.

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

PTAL:

Added more tests.
Fixed another bug where svc.BackendByHash was not populated.

test-me-please


add to_hash alias to to_h method of ObjectType and Response

In Rails, it's quite common to use as_json which relies on to_hash that graphql-client currently lacks. This PR introduces to_hash as an alias to to_h.
Ref: https://github.com/rails/rails/blob/3528b9df8b331863025c6ee66341b98d4989c40d/activesupport/lib/active_support/core_ext/object/json.rb#L59

Looks good to me -- thanks for this improvement!


docs: fix GitHub format

Github -> GitHub

Thanks for this @eltociear. Seeing this I ran a grep through the repo and found a few occurrences of the typo:
./README.md
164:If you would like to learn more, or you would like support for your use-case, feel free to open an issue on Github.

./docs/docs/integrations/postgres.md
51:on Github.

./docs/blog/2021-03-08-mern.md
461:To check out the Synth source code you can visit the Synth repo on [Github](https://github.com/getsynth/synth/), and to join the conversation hop-on the the [Synth discord server](https://discord.com/invite/wwJVAFKKkq).

./docs/blog/2021-09-07-mocking-a-production-api.md
361:Shopify, feel free to open an issue on Github!

If you feel like fixing these up I'll merge it, otherwise I can do this as well.
Thanks again!

@christoshadjiaslanis
Thank you for your reply!
Added a fix.

Thanks @eltociear !


I get 'undefined' properties when try using plugin

Hi!
I try to use your plugin but when start it i get:
Error processing suite.before event:
TypeError: Cannot read property 'description' of undefined
...
TypeError: Cannot read property 'elements' of null
...
Error processing test.failed event:
TypeError: Cannot read property 'result' of null

I don't use BDD
I write simple test like first from this page
How can i fix it problem?
Starting by
"test-start": "HEADLESS=true codeceptjs run --steps --plugins cucumberJsonReporter"
deps:
"codeceptjs": "^3.3.3",
"codeceptjs-assert": "0.0.5",
"codeceptjs-cucumber-json-reporter": "^1.0.8",
"faker": "^6.6.6",
"mochawesome": "^7.1.3",
"puppeteer": "^13.5.1"

This plugin is specifically meant for BDD/cucumber because it tries to read gherkin feature files, so it will not work with Codeceptjs vanilla type tests


VSCode's search is susceptible to a ReDoS attack

VSCode Version: 1.25.1
OS Version: Windows 10

Steps to Reproduce:

Ctrl+Shift+F to enter search
Make sure the "Use Regular Expression" button is toggled
Copy one of the regexes from here into the search field:
e.g. ^(([a-z])+.)+[A-Z]([a-z])+$
Paste one of the given inputs into a file and search:
e.g. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!

VSCode will hang and eventually a dialog will display asking the user to reopen the window.
VSCode should probably timeout instead, though I don't know how serious a ReDoS exploit in VSCode is...

#30874


Fix Chrome 55+ mobile & new pad sensitivity option

fixed Chrome 55+ mobile pich/touch flickering bug #303
fixed Chrome passive event warning #328
add new otion "pan sensitivity"

I think you should have done this in 3 different PRs... Also, looking at the PR diff, in one place you're adding 3 lines of commented code, and a few lines below you're adding some trailing space.

Sorry, what do you mean about PRs?
Feel free to use my corrections for your project. I'm using since 2 month and it works well on all configurations desktop/mobile.

PR -> Pull requests.. There's too many changes here, and they're not related.

That reverted all changes. The pull request is now useless, so I'll close it.

I'm working on it, you so fast and close my PR :)
I hope soon to publish 2 distinct PRs.

@inuyaksa Sounds good. Thanks for the help!


[FEATURE] Location Filter for "Location Type Override"

Is your feature request related to a problem? Please describe.
We are only able to filter event instances based on the main Event record's location. We are offered a Location Filter but it only works at the Event-level. For example, we cannot filter Online instances of an Event if the Event is initially On-Site.
Describe the solution you'd like
Ideally, we would like to be able to filter by location at the instance levels so the JSON returns the subset of instances in a certain location.
Describe alternatives you've considered
Creating different events for each location would alleviate the issue but then that defeats the purpose of the "Override" feature in Event instances!
To help determine if a recipe may be more appropriate, please share other use cases, if possible, this functionality would benefit from.
This would benefit all users that use the eventFeed JSON and want to make use of the flexibility provided by the Location Override fields.
Are you willing and interested in being engaged during the development and testing process?
Absolutely, please loop me in as necessary.

@mad2492 , would adding a filter parameter for location and locationType into the REST API feed accomplish this? I've noticed a few areas where overrides aren't accounted for in the feed so some careful adjustments will need to be made. I played with adding a locationtype additional url parameter with some success. Would that fix your issue in the short term?

@tcdahlberg Hey Thad, locationtype should meet our needs for the time being

Included in beta release <IP_ADDRESS>

Included in production release <IP_ADDRESS>


updated hdfs support for qhub-onprem

Added hdfs support for qhub.

An Ansible script is created to install openjdk11.
Remove the current hadoop installation.
Download and extract haddop 3.x version
Rename & move the installation under /opt folder structure.
Add the environment variables to .bashrc.
Add configuration properties to enable azure auth into core-site.xml file.
All values have been stored within group_vars/all.yaml file.
Values are used in hadoop.yaml file under tasks folder.

Thanks for the PR @rtiwariops!  Could you add some documentation for this PR?  Something similar to  https://github.com/Quansight/qhub-hpc/blob/main/docs/conda.md for example?

Closing due to no activity recently


Graph View: allow images in the graph view.

Please select if your request is either something new or an enhancement

[ ] Enhancement of an existing Feature.
[ ] Request of a new feature.

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[ ] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[ ] Lookup - Dendron's Lookup Command
[x] Views - Dendron Preview, Tree View, Side Panels in the UI
[ ] Schema - Dendron Schemas
[ ] Pod - Data import from / export to Dendron
[ ] Publish - External Site Publish
[ ] Markdown - Markdown features, such as syntax support and features

Is your feature request related to a problem? Please describe
Improve visualization in the graph by allowing an image to be rendered within the graph along with the name of the node.
Describe the solution you'd like
Allow addition of image field in the front matter, YAML, this image would be rendered in the graph along with the name of the node.
Describe alternatives you've considered
Exporting data out of Dendron.

ack, added to backlog


0<=1 not accept by math_opt

Hello, the following model gives error:
Traceback (most recent call last):
  File "e:\mypyoptimize\py-smart-roster\test2.py", line 11, in <module>
    model.add_linear_constraint(sum([x[i2,j] for (i2,j) in setIJ if i2==i]) <= 1)
  File "E:\anaconda3\envs\optim\lib\site-packages\ortools\math_opt\python\model.py", line 1758, in add_linear_constraint
    normalized_inequality = as_normalized_linear_inequality(
  File "E:\anaconda3\envs\optim\lib\site-packages\ortools\math_opt\python\model.py", line 2263, in as_normalized_linear_inequality
    raise TypeError(
TypeError: unsupported type for bounded_expr argument: bool.
This error can occur when trying to add != constraints (which are not supported) or
inequalities/equalities with constant left-hand-side and right-hand-side
 (which are redundant or make a model infeasible).

In pywraplp, there is no error with this model.  I know in the constraint, if i=10, it becomes 0<=1 which is accepted by pywraplp,
but not accepted by mathOpt. I want that mathOpt also accept it.
The model:
from ortools.math_opt.python import mathopt

model = mathopt.Model()
setIJ = {(i,j) for i in range(10) for j in range(10)}

x = {(i,j): model.add_integer_variable(lb=0.0, name=f"x_{i}_{j}") for (i,j) in setIJ}

for i in range(11):
    model.add_linear_constraint(sum([x[i2,j] for (i2,j) in setIJ if i2==i]) <= 1)

model.minimize(sum(x[i,j] for (i,j) in setIJ))

result = mathopt.solve(model, mathopt.SolverType.CP_SAT)

in your loop for i in range(11) last loop i.e. i == 10 there is no (i, j) in setIJ if i==10 so sum is empty...
try to change the range to range(10)...

thank you, fast_sum is exactly what I want.

Here I would recommend:

either using mathopt.fast_sum() instead of sum(), which returns a linear expression instead of 0 when there are no operands:for i in range(11):
  model.add_linear_constraint(mathopt.fast_sum([x[i2,j] for (i2,j) in setIJ if i2==i]) <= 1)

or use the start optional parameter of Python's sum and set the start value as zero linear expression:for i in range(11):
  model.add_linear_constraint(sum([x[i2,j] for (i2,j) in setIJ if i2==i],
                                  start=mathopt.LinearExpression()) <= 1)

The rationales for these two alternatives is that in Python, if you have 0 instead of LinearExpression(), there is no way for MathOpt to do anything when calling add_linear_constraint(0 <= 1) as Python will transform 0 <= 1 to False.
Does this makes sense?

thank you, fast_sum is exactly what I want.


PineconeClient: Error getting project name: ReferenceError: fetch is not defined

Wierd error.
I thought it was because node was not v18 or higher, but even after the updating it still fails like this.

Everything else is configured correctly and not throwing any errors. Just that upsert fails.

Odd thing is the index is actually created.

This should be solve by #13


[Notion] Add the ability to pass the database as an argument in Create Database Page

Extension
https://www.raycast.com/notion/notion
Description
Current Situation:
Currently, users of Raycast must manually select the database each time they create a quicklink, which can be time-consuming and prone to errors.
Proposed Enhancement:
Introduce the ability to pass arguments when creating a quicklink in Raycast. This enhancement will enable users to create multiple quicklinks directly to desired databases, streamlining the workflow and eliminating repetitive manual selections.
Benefits:
Efficiency: Users can specify the desired database as an argument, bypassing the need for manual selection.
Accuracy: Minimize the risk of selecting the wrong database by directly specifying it in the quicklink creation process.
Productivity: Enable users to create quicklinks for multiple databases swiftly, enhancing overall productivity.
Who will benefit from this feature?
The ones who often generate pages in the same database, but have more than 1 in the workspace.
Anything else?
No response

@RedSlowpoke I think it's working like you want already.  You need to select default values and database, then click Create Deeplink, save it and when you open deeplink the values will be selected.
Take a look on video here https://github.com/raycast/extensions/pull/11178
This is my PR with ability to hide some fields and change order in your form, so on video I hide database field because it will take from Deeplink arguments.

Indeed! I'm newbie to the Raycast, need to wrap my head around how those things working.
Thank you @dariuszpaluch

@RedSlowpoke Tip: If you would like to change icon for your deeplink, then you need to create custom script command instead of deeplink 😃


Better "default" image for streaming server

The starting image for the streaming server is ugly.  I think I can fix it by turning x and y axis labels off on the initial plot, then turning them back on with the stream updates.

I don't think this is going to be hard, let's try and get it in.