dotnet-sdk-2.1.200 could not be installed on Ubuntu 18.04

unmet dependencies: aspnetcore-store-2.0.8 but it is not going to be installed
and aspnetcore-store-2.0.8 depends on aspnetcore-store-2.0.7
and aspnetcore-store-2.0.7 depends on aspnetcore-store-2.0.6
but aspnetcore-store-2.0.6 is not a real package (virtual)
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:          18.04
Codename:     bionic

Looking into this ..

Good to go now.


Create abstraction from spring-cloud-sleuth-correlation

Allow implementations to plug into the log based solution (like s-c-s-zipkin) without having to recreate all of the touch points (instrumented classes, aop, etc...).

@marcingrzejszczak I'd like your feedback and questions on this (@mstine or @dsyer if you have the time as well).  I'll start to look at this tomorrow.

Pinging @b for feedback on this as well...

Can you elaborate more on what you would like to achieve cause from the description I don't get it too much? :P Isn't the autoconfiguration supposed to fix this?

@marcingrzejszczak how do you see the correlation id in the logs?  Do you need to change the log format?

Yes you have to. With MDC we set it and you have to customize the logging
message to include such a field (with Correlation-Id field name I guess)

After perusing the 4finance correlation and the zipkin impl, I think I've started to form some thoughts about an abstraction.  The 4finance correlation id impl, it is fairly basic.  It put's a single UUID into the logs and passes it along through each request or thread.  I've started to think of their impl as the SLF4J impl.  The zipkin/brave impl is much more complex.
There are three parts to correlation:

starting/stopping a new trace
starting/stopping a new sub-trace (client tracing).
instrumenting packages to use the above.

New Trace
startTrace(C context);
stopTrace(C context);

The type of the context depends on how the request was started.  An http endpoint would look in an http request to see if it is part of an existing trace or not.  A new request starting from an @Scheduled method would have a different context.
New Sub-trace
startSubtrace(C context)
stopSubstrace(C context)

This may be better called client tracing.  This is where specific clients, such as RestTemplate, Spring MVC Controllers, Servlet Filters, etc... pass the trace data to request it constructs.  That may be via setting new http headers or passing values to a new thread.
Instrumentation
Instrumenting code can be accomplished in a couple of ways.  The 4finance code uses Spring AOP to intercept calls.  Other options include using existing extension points such as RestTemplate RequestInterceptor.  Another option is a delegate pattern.
@dsyer @mstine

@joshlong

PR #4 is the current work on this.

Now with [traceId spanId] via #4

Closed via a51e92ad0bf72fb030b16fbb5b53ecadf59bb501


Feedback Banner

Use this issue to refactor the component: Feedback Banner
Refactor checklist

[ ] Sass file contains comments, using the comments template format
[ ] Refactor code using BEM for naming
[ ] Remove / refactor any code smells
[ ] Remove / refactor any 'random numbers' or make comments where it is necessary to use

Component checklist

[ ] SCSS
[ ] SCSS lint
[ ] HTML template
[ ] HTML validate & lint
[x] Nunjucks macro
[x] A standalone example
[ ] README/Documentation
[ ] Pseudocode tests
[ ] Visual tests
[ ] Tested against our testing policy (Resolution, Browser & Accessibility)
[ ] Print stylesheet considered
[ ] CHANGELOG

Need someone to write up the survey banner API logic, the required javascript and how to implement it on website and services.


Cryptographic algorithms

Hi there, I 'd like to implement a few basic cryptographic algorithms like Triple DES, RSA etc.

Sure! You can each algorithm under C++/source/cryptography/, and commonly used functions under C++/include/cryptography/


Corrupting XML when reading, parsing, writing (LibreOffice Flat ODT file)

Loading and saving Flat LibreOffice Text document makes it unreadable:
fn main() {
    let xml = std::fs::read_to_string("template.fodt").expect("Failed to open");
    let doc = sxd_document::parser::parse(&xml).expect("Failed to parse");

    let mut output = Vec::new();
    sxd_document::writer::format_document(&doc.as_document(), &mut output).expect("unable to output XML");
    std::fs::write("output.fodt", &output).expect("Failed to write");
}

The very minimal template file is attached (but zipped because of Github).
template.fodt.zip

It appears that the primary differences are:

SXD doesn't output unused namespaces
SXD doesn't explicitly set the encoding

Ah, it's actually that xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" needs to be on the root (again, which is silly). I'm guessing that someone was playing fast and loose with some document type checking code.

So this document works —
<?xml version="1.0"?>
<office:document
    office:mimetype="application/vnd.oasis.opendocument.text"
    office:version="1.3"
    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
     xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
    >
 <office:body>
  <office:text>
   <text:p />
  </office:text>
 </office:body>
</office:document>


memory_buffer_alloc.c corner cases and fixes

This is memory_buffer_alloc.c (simplified, with all ifdefs removed) and some corner cases I identified and proposed fixes for them. This can be readily compiled and run (contains main). I think the code + comments speak for themselves.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

/* Implementation that should never be optimized out by the compiler */
static void mbedtls_zeroize( void *v, size_t n ) {
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
}

#define mbedtls_exit   exit

#define MAGIC1       0xFF00AA55
#define MAGIC2       0xEE119966
#define MAX_BT 20

#define MBEDTLS_MEMORY_ALIGN_MULTIPLE       4 /**< Align on multiples of this value */
#define MBEDTLS_MEMORY_VERIFY_ALLOC        (1 << 0)
#define MBEDTLS_MEMORY_VERIFY_FREE         (1 << 1)

typedef struct _memory_header memory_header;
struct _memory_header
{
    size_t          magic1;
    size_t          size;
    size_t          alloc;
    memory_header   *prev;
    memory_header   *next;
    memory_header   *prev_free;
    memory_header   *next_free;
    size_t          magic2;
};

typedef struct
{
    unsigned char   *buf;
    size_t          len;
    memory_header   *first;
    memory_header   *first_free;
    int             verify;
}
buffer_alloc_ctx;

static buffer_alloc_ctx heap;

static int verify_header( memory_header *hdr )
{
    if( hdr->magic1 != MAGIC1 )
    {
        return( 1 );
    }

    if( hdr->magic2 != MAGIC2 )
    {
        return( 1 );
    }

    if( hdr->alloc > 1 )
    {
        return( 1 );
    }

    if( hdr->prev != NULL && hdr->prev == hdr->next )
    {
        return( 1 );
    }

    if( hdr->prev_free != NULL && hdr->prev_free == hdr->next_free )
    {
        return( 1 );
    }

    return( 0 );
}

static int verify_chain()
{
    memory_header *prv = heap.first, *cur = heap.first->next;

    if( verify_header( heap.first ) != 0 )
    {
        return( 1 );
    }

    if( heap.first->prev != NULL )
    {
        return( 1 );
    }

    while( cur != NULL )
    {
        if( verify_header( cur ) != 0 )
        {
            return( 1 );
        }

        if( cur->prev != prv )
        {
            return( 1 );
        }

        prv = cur;
        cur = cur->next;
    }

    return( 0 );
}

static void *buffer_alloc_calloc( size_t n, size_t size )
{
    memory_header *new, *cur = heap.first_free;
    unsigned char *p;
    void *ret;
    size_t original_len, len;

    if( heap.buf == NULL || heap.first == NULL )
        return( NULL );

    original_len = len = n * size;

#ifdef FIX
    /* man calloc:
     *
     *  The calloc() function allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory.
     *  The memory is set to zero.  If nmemb or size is 0, then calloc() returns either NULL, or a unique pointer value that  can  later  be
     *  successfully  passed  to free().
     *
     *  In other words, mbed TLS cannot rely on the libc calloc to return a valid pointer for calls which amount to nmemb*size = 0, so this
     *  calloc replacement doesn't have to either.
     *
     *  An argument for returning a small buffer for nmemb*size = 0 despite not having an obligation to do so is that this creates a "safety net" for
     *  code that (unjustly) depends on this.
     *
     *  An argument for returning NULL in this event is that zero-allocations won't consume unnecessary resources (buffer bytes)
     *
     *  But even if code depends on a small allocation for zero-allocations, it will either exit (due to allocation failure) or do a null pointer
     *  dereference which is generally understood to be harmless in normal client operations.
     *
     *  So I'm in favor of returning NULL here.
    */
    if( n == 0 || size == 0 || len / n != size )
        return( NULL );
#else
    if( n != 0 && len / n != size )
        return( NULL );
#endif

#ifdef FIX
    /* This fixes bug_1 */
    if ( len > (size_t)-4 )
    {
        return( NULL );
    }
#endif

    if( len % MBEDTLS_MEMORY_ALIGN_MULTIPLE )
    {
        len -= len % MBEDTLS_MEMORY_ALIGN_MULTIPLE;
        len += MBEDTLS_MEMORY_ALIGN_MULTIPLE;
    }

    // Find block that fits
    //
    while( cur != NULL )
    {
        if( cur->size >= len )
            break;

        cur = cur->next_free;
    }

    if( cur == NULL )
        return( NULL );

    if( cur->alloc != 0 )
    {
        mbedtls_exit( 1 );
    }

    // Found location, split block if > memory_header + 4 room left
    //
    if( cur->size - len < sizeof(memory_header) +
                          MBEDTLS_MEMORY_ALIGN_MULTIPLE )
    {
        cur->alloc = 1;

        // Remove from free_list
        //
        if( cur->prev_free != NULL )
            cur->prev_free->next_free = cur->next_free;
        else
            heap.first_free = cur->next_free;

        if( cur->next_free != NULL )
            cur->next_free->prev_free = cur->prev_free;

        cur->prev_free = NULL;
        cur->next_free = NULL;

        if( ( heap.verify & MBEDTLS_MEMORY_VERIFY_ALLOC ) && verify_chain() != 0 )
            mbedtls_exit( 1 );

        ret = (unsigned char *) cur + sizeof( memory_header );
        memset( ret, 0, original_len );

        return( ret );
    }

    p = ( (unsigned char *) cur ) + sizeof(memory_header) + len;
    new = (memory_header *) p;

    new->size = cur->size - len - sizeof(memory_header);
    new->alloc = 0;
    new->prev = cur;
    new->next = cur->next;
    new->magic1 = MAGIC1;
    new->magic2 = MAGIC2;

    if( new->next != NULL )
        new->next->prev = new;

    // Replace cur with new in free_list
    //
    new->prev_free = cur->prev_free;
    new->next_free = cur->next_free;
    if( new->prev_free != NULL )
        new->prev_free->next_free = new;
    else
        heap.first_free = new;

    if( new->next_free != NULL )
        new->next_free->prev_free = new;

    cur->alloc = 1;
    cur->size = len;
    cur->next = new;
    cur->prev_free = NULL;
    cur->next_free = NULL;

    if( ( heap.verify & MBEDTLS_MEMORY_VERIFY_ALLOC ) && verify_chain() != 0 )
        mbedtls_exit( 1 );

    ret = (unsigned char *) cur + sizeof( memory_header );
    memset( ret, 0, original_len );

    return( ret );
}

static void buffer_alloc_free( void *ptr )
{
    memory_header *hdr, *old = NULL;
    unsigned char *p = (unsigned char *) ptr;

    if( ptr == NULL || heap.buf == NULL || heap.first == NULL )
        return;

#ifdef FIX
    /* I believe that (void*)(heap.buf + heap.len) is the first OOB byte. */
    if( p < heap.buf || p >= heap.buf + heap.len )
#else
    if( p < heap.buf || p > heap.buf + heap.len )
#endif
    {
        mbedtls_exit( 1 );
    }

    p -= sizeof(memory_header);
    hdr = (memory_header *) p;

    if( verify_header( hdr ) != 0 )
        mbedtls_exit( 1 );

    if( hdr->alloc != 1 )
    {
        mbedtls_exit( 1 );
    }

    hdr->alloc = 0;

    // Regroup with block before
    //
    if( hdr->prev != NULL && hdr->prev->alloc == 0 )
    {
        hdr->prev->size += sizeof(memory_header) + hdr->size;
        hdr->prev->next = hdr->next;
        old = hdr;
        hdr = hdr->prev;

        if( hdr->next != NULL )
            hdr->next->prev = hdr;

        memset( old, 0, sizeof(memory_header) );
    }

    // Regroup with block after
    //
    if( hdr->next != NULL && hdr->next->alloc == 0 )
    {
        hdr->size += sizeof(memory_header) + hdr->next->size;
        old = hdr->next;
        hdr->next = hdr->next->next;

        if( hdr->prev_free != NULL || hdr->next_free != NULL )
        {
            if( hdr->prev_free != NULL )
                hdr->prev_free->next_free = hdr->next_free;
            else
                heap.first_free = hdr->next_free;

            if( hdr->next_free != NULL )
                hdr->next_free->prev_free = hdr->prev_free;
        }

        hdr->prev_free = old->prev_free;
        hdr->next_free = old->next_free;

        if( hdr->prev_free != NULL )
            hdr->prev_free->next_free = hdr;
        else
            heap.first_free = hdr;

        if( hdr->next_free != NULL )
            hdr->next_free->prev_free = hdr;

        if( hdr->next != NULL )
            hdr->next->prev = hdr;

        memset( old, 0, sizeof(memory_header) );
    }

    // Prepend to free_list if we have not merged
    // (Does not have to stay in same order as prev / next list)
    //
    if( old == NULL )
    {
        hdr->next_free = heap.first_free;
        if( heap.first_free != NULL )
            heap.first_free->prev_free = hdr;
        heap.first_free = hdr;
    }

    if( ( heap.verify & MBEDTLS_MEMORY_VERIFY_FREE ) && verify_chain() != 0 )
        mbedtls_exit( 1 );
}

void mbedtls_memory_buffer_set_verify( int verify )
{
    heap.verify = verify;
}

int mbedtls_memory_buffer_alloc_verify()
{
    return verify_chain();
}

void mbedtls_memory_buffer_alloc_init( unsigned char *buf, size_t len )
{
#ifdef FIX
    /* This fixes bug_2
     * Not only verify that there is enough room for memory header
     * but also for MBEDTLS_MEMORY_ALIGN_MULTIPLE in case 'buf'
     * isn't aligned.
    */
    if ( len < (sizeof(memory_header) + MBEDTLS_MEMORY_ALIGN_MULTIPLE) )
    {
        mbedtls_exit(1);
    }
#endif

    memset( &heap, 0, sizeof(buffer_alloc_ctx) );
    memset( buf, 0, len );

    //mbedtls_platform_set_calloc_free( buffer_alloc_calloc, buffer_alloc_free );

    if( (size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE )
    {
        /* Adjust len first since buf is used in the computation */
        len -= MBEDTLS_MEMORY_ALIGN_MULTIPLE
             - (size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE;
        buf += MBEDTLS_MEMORY_ALIGN_MULTIPLE
             - (size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE;
    }

    heap.buf = buf;
    heap.len = len;

    heap.first = (memory_header *) buf;
    heap.first->size = len - sizeof(memory_header);
    heap.first->magic1 = MAGIC1;
    heap.first->magic2 = MAGIC2;
    heap.first_free = heap.first;
}

void mbedtls_memory_buffer_alloc_free()
{
    mbedtls_zeroize( &heap, sizeof(buffer_alloc_ctx) );
}

void bug_1(void)
{
    /* Memory corruption because sizeof(buf) < sizeof(memory_header) */
    char buf[1];
    mbedtls_memory_buffer_alloc_init(buf, sizeof(buf));
}

void bug_2(void)
{
    /* Underallocation due to this code causing 'size' to overflow:
     * (in buffer_alloc_calloc() )
     *
     * if( len % MBEDTLS_MEMORY_ALIGN_MULTIPLE )
     * {
     *   len -= len % MBEDTLS_MEMORY_ALIGN_MULTIPLE;
     *   len += MBEDTLS_MEMORY_ALIGN_MULTIPLE;
     * }
     *
     * So for a calloc(1, 0xFFFFFFFF) this is:
     *
     * len = 0xFFFFFFFF; // (on 32 bit)
     * if ( 3 )
     * {
     *   len -= 3;
     *   len += 4;
     * }
     *
     * len is now 0
    */
    char buf[100];
    mbedtls_memory_buffer_alloc_init(buf, sizeof(buf));
    buffer_alloc_calloc(1, (size_t)-1);
    /* or */
    buffer_alloc_calloc(1, (size_t)-2);
    /* or */
    buffer_alloc_calloc(1, (size_t)-3);
}

int main(void)
{
    bug_1();
    bug_2();
    return 0;
}

ARM Internal Ref: IOTSSL-1033

    if ( len > (size_t)-4 )

should be
    if ( len > (size_t)-MBEDTLS_MEMORY_ALIGN_MULTIPLE )

Hi Guido,
I believe that this issue has been fixed by the patches introduced by #778, which will be included in the next release, therefore I am closing this issue. Please let us know if there are more problems in memory_buffer_alloc.


ember-data

when using #= require ember-data in my application, I am getting error in my console
Could not find module 'ember-data/index' imported from 'ember-data/initializers/ember-data'
Not sure how to resolve this issue. Help please!

@tricknotes ping

Any Luck?

I gave up and started using ember-cli.
On Tue, Jun 13, 2017 at 11:55 AM, hussyn12<EMAIL_ADDRESS>wrote:

Any Luck?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/emberjs/ember-rails/issues/548#issuecomment-307983815,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADno3gXLrwtC7CLfAoLoLEBkHLYKiTdFks5sDev_gaJpZM4Npx5G
.

--
Regards
Raj Gaire

O beghairto kardo ember-data ka missing module update :(

Sorry to my late.
It seems a ember-data's bug.
I opened a PR for ember-data. https://github.com/emberjs/data/pull/5035
I wish it will fix this problem.
However using ember-cli is good choice to me.


Consider advising developers to use native provider

I'm evaluating this as an alternative to scala-pact. The main feature gap I see at the moment is the inability to handle provider states when checking pacts. However, I also notice that pact-jvm has native support for scalatest providers
https://github.com/pact-foundation/pact-jvm/tree/master/provider/scalatest
and that it seems to offer pretty rich support for modeling provider states so it might be worth linking to them.

Hi @caoilte. Version 0.0.10 adds initial support for handling provider state. See here for how to use it: https://github.com/jbwheatley/pact4s#provider-state

@jbwheatley nice one. Just got that working. I don't like it, but I can see it's because you're mainly just shadowing the JVM implementation.


Unregister unnecessary callbacks attached to weakly reached adapters

Using android.arch.lifecycle.ViewModel, callbacks that are not explicitly unregistered will continue to be kept in the ObservableList even if the Activity is discarded due to screen rotation.
This is because the ViewModels are managed by the retained fragment.
In order to avoid this, monitor the ReferenceQueue and unregister callbacks attached to weakly reached adapters.

Thanks for the pr! Hadn't considered this issue before. However, I came up with my own solution that is hopefully a bit simpler. https://github.com/evant/binding-collection-adapter/pull/94. Biggest difference is it uses a background thread to unregister callbacks instead of doing it in arbitrary places. Would like to know what you think.

Your PR looks good to me :smile:


[TRI-3867] Updating lots of environment variables at once fails with a transaction timeout

When we bulk upsert environment variables we wrap the entire thing in a database transaction. If there are a lot of env vars (e.g. more than 100) then the transaction can timeout.
You can see in the current code that the transaction is wrapped around the for loop: https://github.com/triggerdotdev/trigger.dev/blob/feb4fcdac675aa6c18fde4b0a96e87abc80102e2/apps/webapp/app/v3/environmentVariables/environmentVariablesRepository.server.ts#L138
Instead we should move that transaction inside the for loop. We still need the transaction so we always create all the resources for each env var and don't leave any of them dangling.
TRI-3867

hey @matt-aitken working in this issue

@matt-aitken Checkout this #1413


Allow Deferred for the ca_text parameter

Hi,
Could you please support Deferred for the ca_text parameter?
Kind regards,
David

Which version of Puppet are you using?

6... 😳

If you could upgrade to a recent-ish Puppet 7, this should just work.
https://dev.to/puppet/updating-puppet-modules-for-deferred-functions-5d6k

Puppet 7.17 also improves the way typed class parameters are checked. The data type of a deferred function is Deferred, and older versions of Puppet would actually use that type when checking class signatures. For example, if the profile::myappstack class we referenced in the example above specified that the db_password parameter should be a String, then the example would have failed because the Deferred type would not match the expected String type.

As of Puppet 7.17, this is no longer a problem. Deferred functions are introspected and the return type they declare will be used for type matching. If the function doesn't explicitly declare a return type, Puppet will print a warning, but the compilation will succeed. No code changes are required to take advantage of this improvement, but if you're writing classes that might be used with older Puppet versions, you might consider using a variant datatype such as Variant[String, Deferred] for parameters that are expected to be deferred.


Redactional terminology changes für german FAQ

Where to find the issue
https://www.coronawarn.app/de/faq/
Describe the issue
Terminologie Abgleich FAQ.docx
Suggested change
Various grammatical and terminology changes, see the attached word document.

Addressed in #526

Still needed?

Still needed?

"Corona Warn App" --> "Corona-Warn-App"
in english version of the FAQ
https://github.com/corona-warn-app/cwa-website/pull/814#discussion_r566266247

Corona-Warn-App Open Source Team

"Corona Warn App" --> "Corona-Warn-App"
in english version of the FAQ
https://github.com/corona-warn-app/cwa-website/pull/814#discussion_r566266247

Corona-Warn-App Open Source Team

@heinezen
Six months have gone by and the file attached to this issue is quite out of date. Perhaps this issue can be closed in favor of #971?


[GHSA-294q-5vvf-xj65] SQL Injection vulnerability in CRMEB v.5.2.2 allows a...

Updates

Affected products
References
Source code location
Summary

Comments
The vendor solved the problem with an update(5.3.0)

👋 Hi @phtcloud-dev, we can't accept this contribution because https://github.com/crmeb/CRMEB isn't in one of the GitHub Advisory Database's supported ecosystems. I was unable to find CRMEB at https://packagist.org/?query=crmeb. Thank you for your interest in GHSA-294q-5vvf-xj65 and have a great week!

不好意思我的翻译器有点问题
我的意思是https://github.com/crmeb/CRMEB
------------------ 原始邮件 ------------------
发件人:                                                                                "github/advisory-database"                                                                                @.>;
发送时间: 2024年6月21日(星期五) 凌晨0:04
@.>;
<EMAIL_ADDRESS>主题: Re: [github/advisory-database] [GHSA-294q-5vvf-xj65] SQL Injection vulnerability in CRMEB v.5.2.2 allows a... (PR #4545)
👋 Hi @phtcloud-dev, we can't accept this contribution because https://github.com/crmeb/CRMEB isn't in one of the GitHub Advisory Database's supported ecosystems. I was unable to find CRMEB at https://packagist.org/?query=crmeb. Thank you for your interest in GHSA-294q-5vvf-xj65 and have a great week!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


docs(operators): add documentation for throttleTime

Close #105

Codecov Report

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

@@           Coverage Diff           @@
##           master     #187   +/-   ##
=======================================
  Coverage   74.78%   74.78%
=======================================
  Files           9        9
  Lines         119      119
  Branches        6        6
=======================================
  Hits           89       89
  Misses         30       30

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 8804ed5...d28040d. Read the comment docs.

@ashwin-sureshkumar rebase?

Rebased and tests passed locally. Merging in.


WindowManager

Codecov Report

Merging #23 into develop will increase coverage by 1.02%.
The diff coverage is 90.56%.

@@              Coverage Diff              @@
##             develop      #23      +/-   ##
=============================================
+ Coverage      51.74%   52.76%   +1.02%
- Complexity       351      372      +21
=============================================
  Files             37       37
  Lines           1952     2005      +53
  Branches         282      291       +9
=============================================
+ Hits            1010     1058      +48
- Misses           859      862       +3
- Partials          83       85       +2

Impacted Files
Coverage Δ
Complexity Δ

...n/java/edu/uci/qa/browserdriver/BrowserDriver.java
75% <87.5%> (+0.65%)
71 <6> (+6)
:arrow_up:

...browserdriver/manager/defaults/DefaultManager.java
86.66% <91.11%> (+1.11%)
81 <15> (+15)
: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 8f0f594...cdad8c7. Read the comment docs.


Intellisense not working with Scholarly XML

Intellisense (code suggestion and completion) doesn't work with Scholarly XML.  ctrl-space brings up "Loading ..." and sticks there.  Intellisense works fine with other languages/plugins.  Any help much appreciated.

Hi, I am testing this extension out and I am having the same issue.
I can't get any suggestions while typing and ctrl-space brings up loading... but nothing happens:
Scholarly XML v0.3.0

Version: 1.81.1
Release: 23222
Commit: aef377c42cea6e9aea642829953104f07097abfa
Date: 2023-08-10T18:29:01.714Z
Electron: 22.3.18
ElectronBuildId: undefined
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 6.1.0-17-amd64

Any recommendation to fix it?
Thanks! 🙏

Hello @Cicorione. Currently, Scholarly XML only supports RelaxNG schemas associated via an <?xml-model?> processing instruction. This needs to be expressed as indicated in the README file. I see from the linked issue on speedata that you're trying to get their schema to work, here is what you want to do:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model
  href="https://raw.githubusercontent.com/speedata/publisher/develop/schema/layoutschema-de.rng"
  type="application/xml"
  schematypens="http://relaxng.org/ns/structure/1.0"?>

<Layout xmlns="urn:speedata.de:2009/publisher/en"
	xmlns:sd="urn:speedata:2009/publisher/functions/en">
  [...]
</Layout>

As you can see, this makes it possible to access the Intellisense features:

Admittedly, the extension should provide better feedback to users when the association via <?xml-model?> isn't done correctly. So I opened a separate issue to deal with that: https://github.com/raffazizzi/vscode-sxml/issues/36
Thanks for reporting!

Nice!
Thanks to help me how with this!!! 🙏

If I don't bother you I would have another question for you... 🙏
How can I change this to load a local definition:
href="https://raw.githubusercontent.com/speedata/publisher/develop/schema/layoutschema-en.rng"
Is it actually possible, I can't see any reference here: https://www.w3.org/TR/xml-model/

Sure, here are some options:
Relative path
Use this to point to a location relative to your XML file. If your XML and the schema are in the same folder, you can just do this:
href="layoutschema-de.rng"
Or if it's one level up and inside a folder named "schema", you can do this:
href="../schema/layoutschema-de.rng"
Absolute path
You can specify the absolute path on your machine without using the file:// protocol, just enter /FULL/PATH/TO/. For example if your file is located in /usr/share/speedata-publisher/schema:
href="/usr/share/speedata-publisher/schema/layoutschema-en.rng"
On Windows, you may need to specify the drive, e.g.:
C:\PATH\TO\layoutschema-en.rng

Hi, thank you very much again!
I have not idea how much this information is going to be relevant for you, but when I try to load a local schema it tells me that RNG schema is incorrect:

🤷♂

@Cicorione the status message is once again not very helpful, but I wonder if it is also accompanied by a pop-up that says "Could not parse schema" on the bottom right? (Though I notice that you have notifications turned off)

What I think is happening is that there is, in fact, no layoutschema-en.rng file at /usr/share/speedata-publisher/schema/layoutschema-en.rng. Are you sure it's in that location and it has the right filename? Have you tried a relative path — e.g. placing both the XML and the schema in the same folder and changing the href to href="layoutschema-de.rng"?

@raffazizzi I am very sorry, I forgot I made some changes at the local RNG file making it invalid, restoring the original file fixed the issue, my bad... 😭


Use MAX Framework package

Use MAX Framework package
~WIP pending https://github.com/IBM/MAX-Framework/issues/5~

Merging this in for now, will resolve issue with _predict() in a later commit.


CiphertextBlob appears empty if an invalid base64 string was provided

Giving a seemingly incorrect error of CiphertextBlob missing rather than CiphertextBlob invalid.

Turned out to be an issues with the PHP SKD. LKMS returns SerializationException as expected.


Add missing getops for hostname argument

Same fix as https://github.com/click0/FreeBSD-install-scripts/pull/1

Thanks.

I think it's pointless to specify hostname at this stage.
For all the same, at the next stage there will be an install of a new system with its own hostname.


Unable to pull from Kitematic

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

No information provided or steps to replicate - Closing 😞


docs: add tutorial-style user guide

it should include how to integrate an existing project with garnish


Add setting for show/disable message content in email notification

Fixes #6938

Ready for review!!
Few points which I haven't added, but have in mind. If they sound useful we can add:

Changing the email layout when message body is not included.(Right now I haven't added any different frontend layout for email which doesn't contain message content)
Showing warning(You have disabled message content in email notification, [learn more](link to setting page or user document)) at the end of email if user has disabled message content for email notification.
Writing some tests for this feature

It's ready for review!!

@rishig This one adds new notification setting in user settings. Can you take a look and suggest if any changes are required with email body or header? Thanks!

Great, thanks! And sorry for the delay in reviewing. Some notes

Let's move this to the "Other notification settings" section, to be the second checkbox.

The text of the setting can be "Hide private information from missed message emails"

Ideally, checking this will uncheck and grey-out the Digest email option, since if someone checks this we shouldn't send them digest emails

For the email: The sender can be "Zulip" (instead of zulip missed messages), the subject

New missed message
{% if realm_name_in_notifications %}
 in {{ realm_str }}
{% endif %}

And for the content we should remove "Or just reply to this email" in this case.

@rishig Thanks for reviewing!

Let's move this to the "Other notification settings" section, and reorder as "inlcude org name ...", this one, and then "send digest emails ..".

Done.

The text of the setting can be "Hide private information from missed message emails"

If setting text is opposite to our backend setting name, then it will be ambiguous in frontend to have the reverse value set in frontend. Can we change it to something which is same text as our backend setting name(which is message_content_in_email_notifications), looks similar to our other setting in Other notification settings section and text looks user friendly as well.

Ideally, checking this will uncheck and grey-out the Digest email option, since if someone checks this we shouldn't send them digest emails

Do we also want to add this restriction in backend as well as frontend?(if message_content_in_email_notifications is false then do not send digest emails or automatically turn off digest email setting when message content setting is disabled.)

For the email: The sender can be "Zulip" (instead of zulip missed messages), the subject

Done. It is same for both cases, message content is disabled or enabled, so I add separate commit for this. Let me know if we want to revert it or only apply in case of message-content-disabled.

And for the content we should remove "Or just reply to this email" in this case.

I don't understand how this is affected, when message content is disabled in emails. :thinking:  Open discussion on chat.

Thanks @YJDave!

If setting text is opposite to our backend setting name, then it will be ambiguous in frontend to have the reverse value set in frontend.

How about "Include message content in missed message emails"?

Do we also want to add this restriction in backend as well as frontend?

After chatting with Tim, it sounds like we should just leave these uncoupled in the code, and write a help article that explains how to handle the "I don't trust my email server" case. So let's not touch the digest emails any more (sorry for the change!)

Done. It is same for both cases, message content is disabled or enabled, so I add separate commit for this. Let me know if we want to revert it or only apply in case of message-content-disabled.

It should only apply in case of message-content-disabled.

@rishig Updated!

Removed Or just reply to this email in case of no msg content in emails
Change the from_name to "Zulip"
Change setting text

Thanks for reviewing :)

Thanks @rishig for reviewing in such a details! Address all comments.
Here, is how setting look like:

With this setting disabled:
Private messages:

Mentioned:

With this setting enabled:
Private messages:

Mentioned:

@rishig @timabbott Updated! Addressed all comments,

refactor/rename test function
Split changes into two commits

Merged, thanks @YJDave !  @rishig FYI, in case you want to do any additional QA or schedule follow-ups.

Thanks, Tim for the changes and suggestions! I will keep these in mind :)


JOSS paper review minor issues

Hello @amoodie ,
First of all, apologies if I'm doing this review incorrectly or if i'm not following github customs. This is certainly a learning experience for me.
I noticed two smalls things when trying to follow your tutorial (https://deltarcm.org/pyDeltaRCM/guides/10min.html):
1)

import pyDeltaRCM
default_delta = pyDeltaRCM.DeltaModel()
for _ in range(0, 5):
delta.update()
delta.finalize()

default_delta is changed to delta, so it will give an error message if you're blindly following these steps.
2)
where can I find this file '10min_tutorial.yaml'?
Best wishes,
Jaap

Hi Jaap,
You're a github pro as far as I can see! Thanks for pointing out these issues.
I've fixed the first error. For number 2), there is no file. Our intention is to have the user learn how to create the YAML file themselves, as knowing how to set up this file is pretty central to using the model. However, I see that wanting the user to make this file was obviously not clear in the documentation. I've updated the text in that section to hopefully make it clear that the user should make the file, and a brief description for how to make the file.

openjournals/joss-reviews/issues/3398

Thanks @amoodie!, your answers make sense, although (from a end-user perspective) I usually run the default and adapt files where needed instead of trying to make new files myself. I see where you're coming from though.
Cheers,
Jaap

For my own record keeping during revisions:
The issues identified in this review were addressed in #216.


Members set and not defined in externs are renamed and do not produce warnings

var /** @type {HTMLFormElement} */ eForm =
       /** @type {HTMLFormElement} */ (document.querySelector("form"));
eForm.acceptCharset = "utf-8"; // Defined in externs.
eForm.undefinedProperty = true; // Not defined in externs.

Compiles to -
var a=document.querySelector("form");a.acceptCharset="utf-8";a.a=!0;

Note the a.a instead of a.undefinedProperty.
While this is may be desirable in some cases, in other cases, it might just be a typo. For example, eForm.novalidate (incorrect, but the name is similar to the HTML content attribute) versus eForm.noValidate (correct, this is the IDL name).
Same goes for CSSProperties where CSS properties are not always defined in the built in externs and can lead to subtle (or, in the best case, harsh) runtime issues.
I guess the fact that Closure Compiler renames the properties is fine, but a warning for those properties (setting properties of interfaces defined in externs, where the property being set is not defined in externs) should be added (perhaps an optional one).
I have been burned by that a lot of times already (I obviously submit pull requests for the missing built in properties, but if these are your custom externs, for third party code or something, then you simply would not know until you get a bug about it). :(

I believe this is now addressed by the strictMissingProperties warnings guard.


In floder file not Visible still it is there

When i tried to look the file which is actually present in the folder not visible and also in search bar

Please file new issue with proper steps. This is not good.


Merge for release 0.56.2

https://github.com/Brain-Bones/skeleton/discussions/395

Whoops, got this backwards!


[hub] - hf hub internal api no longer returns an error for invalid access tokens when using listFiles for a gated model

Issue
Hi, not sure if this is the correct place to post this issue since it seems to be an internal api change.
Previously, listing files in a gated repo using listFiles with an invalid or undefined access token would throw an authentication error. Now the authentication error is not thrown until an attempt is made to download one of the gated files with said invalid token.
Would it be possible/within scope to add some kind of hint to specify whether or not the user provided access token used in listModels/listFiles is able to access the gated model.
Example

For example, when going to https://huggingface.co/google/gemma-2b/tree/main, I am immediately informed whether or not I have access to the gated model.
Use case
Jellybox allows users to input their access token to download gated models after accepting the model conditions.

Hi @phudtran
The thing is that it's now possible to list gated files with the API.
If you want to check if a model is gated, I just created a PR adding modelInfo: https://github.com/huggingface/huggingface.js/pull/946
You can then do:
const info = await modelInfo({name: "some-model"});
console.log(info.gated);

Available in<EMAIL_ADDRESS>:)

And await checkRepoAccess({repo: <model>, accessToken: "..."}) is available in 0.18.1

And await checkRepoAccess({repo: <model name>, accessToken: "..."}) is available in 0.18.1: https://github.com/huggingface/huggingface.js/pull/947

Got it! Thank you!


What's the correct way to remove overrides without restarting?

I added overrides like this
(defun ublt/straight-recipe (package &rest plist)
  (declare (indent 1))
  (let ((recipe (cl-copy-list (cdr (straight-recipes-retrieve package)))))
    (cl-loop for (key value) on plist by #'cddr
             do (plist-put recipe key value))
    (cons package recipe)))

(defun ublt/straight-override (package &rest plist)
  (declare (indent 1))
  (straight-override-recipe (apply #'ublt/straight-recipe package plist)))

(ublt/straight-override 'hydra
  :fork ...)

It worked.
How do I remove the overrides without restarting Emacs?
I tried changing straight-recipe-overrides, but it doesn't seem to be picked up.
(straight--convert-recipe 'hydra) still includes :fork, and M-x straight-freeze-versions still uses the fork.

On a second note, overriding like that seems to work only during startup, not afterwards.

Try reloading your init-file.

Reloading init file works, but that's to coarse-grained.
Just (load straight-bootstrap-file nil 'nomessage) works as well.
Is that the recommended way, or is there a more fine-grained API?

Honestly, I would not suggest using straight-recipe-overrides for this. It is primarily intended for overriding the recipe for straight.el itself, conditionally overriding the recipe for a dependency that might or might not be present, and other such advanced usage. As such, the API is inflexible. Why not just pass your modified recipe to straight-use-package directly?

Ah ok, I misunderstood the doc then.
I use straight-register-package now.
Is there a way to rebuild the cache without reloading init-file, which has many other (potentially unwanted) side effects?

No, currently the only supported way to change existing package configuration is by reloading your init-file. This is because the API to support arbitrary post-hoc changes to configuration without a full reload would be very complex, in my opinion. If you can think of a straightforward way to support your use case, I would be happy to hear it, though.
Nevertheless I recommend making your init-file idempotent, if possible. Mine is, and it simplifies many things.

This is because the API to support arbitrary post-hoc changes to configuration without a full reload would be very complex

Can you give a bit more details on this, or some examples?
One I can think of is user adding several custom recipes, then forgetting to evaluate one of them.
In my configuration, all custom recipes are included in a single file, within a straight-transaction block, not in use-package blocks in different locations. The above is then a non-issue.
Idempotency in terms of functionality configuration is easy, but there can be other types of side effects, for examples:

Slow startup-only operations (even though the end state would be the same).
State changes of module loading mechanism (load-history (require vs. load)), configuration mechanism (use-package). I think reloading init-file is even more problematic for this. In my case specifically, not letting straight-freeze-versions reload init-file gives the correct lockfile, while letting it reload results in the incorrect lockfile below (most packages removed):(("epkgs" . "932c173480e505c40cb510ebaae4ccae6efdee3a")
 ("gnu-elpa-mirror" . "e979b4211660a2cc4377ef04918979fe9b4323ed")
 ("hydra" . "a2bb124a3f2e57c032fc264bcd08219fa3d513d9")
 ("melpa" . "fe8fe6af7826a4b73ac784fde8859130b9ad7096")
 ("straight.el" . "46aa1b1ee10bfd3a20a419c3f70d7a9c6d369fb4")
 ("use-package" . "0ee88b5cac41acf974c4bedb8859931ead8bfc79"))
:saturn

My opinion is that, reloading init-file is a middle ground between restarting Emacs (basic), and using the low-level functions to incrementally tweak things (advanced). Getting this middle ground right is trickier than it's worth.

My use case is updating the lockfile after overriding recipes to use forks.
The following works for me though, so I'm closing this.
(straight-freeze-versions 'force)


Problem with mat-select with multiple selections

Bug, feature request, or proposal:
Hello, when I try to insert an element select mat into the code and try to select an option when I click on an outsideside, the optimon elements are not hidden
What is the expected behavior?
mat-options must hide
What is the current behavior?
mat-options not hide
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
version 7.0.4 windows 10
Is there anything else we should know?

Can you provide a reproduction in StackBlitz.  This will help us to investigate the issue you are seeing.

Problem solved. The following code was found in project styles:
* { pointer-events: auto; }

Thank you for trying to help.


[react-testing] Release act promises when root wrapper is destroyed

Description
With React 18 a hanging promises returned from act can prevent other updates from occurring and since that happens on a global scope it will affect subsequent tests within the same test suite. This PR attempts to free up the act queue by resolving any  unfulfilled promises when the root wrapper is destroyed.
Within our internal tests we typically have destroyAll within a afterEach which loops through all active wrappers and calls destroy on them. The change with this PR is that now destoryAll will have to be awaited so that any active promises holding up the act can be resolved.
This PR also adds a warning when attempting to call wrapper.act on an already destroyed root, this can happen if for example a graphQL context is shared between wrappers. Eventually we'd want to clean those up.
Note: this also eliminates the need to have something like
await act(async () => {
    await flushPromises();
  });

in a afterEach

Sorry for the delay, I ran these changes against web and everything passes without any additional changes in web. CI run here: https://buildkite.com/shopify/web-ci-builder/builds/522692 . I think we can keep it as a minor version bump.


[DUOS-3042][risk=no] NPE fixes for study by identifier API

Addresses
https://broadworkbench.atlassian.net/browse/DUOS-3042
Summary

Handle null schema property cases in translating datasets to consent groups
Handle case where study object is not null and not populated
Updated the roles allowed for the relevant GET endpoints related to getting studies by various criteria

Have you read CONTRIBUTING.md lately? If not, do that first.

Label PR with a Jira ticket number and include a link to the ticket
Label PR with a security risk modifier [no, low, medium, high]
PR describes scope of changes
Get a minimum of one thumbs worth of review, preferably two if enough team members are available
Get PO sign-off for all non-trivial UI or workflow changes
Verify all tests go green
Test this change deployed correctly and works on dev environment after deployment

UCSC is awaiting this to test on dev. Given 3 approvals already, I will squash and merge to unblock them.


Support Python 3.x CI/CD

Codecov Report

Merging #8 (6a44299) into master (2456e56) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           12        12
  Lines          393       393
=========================================
  Hits           393       393

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 2456e56...6a44299. Read the comment docs.


Dragging an item from a list into a different list makes it appear twice

Whenever the last item in a list is dragged into a different list, the item appears twice in the destination list. However, clicking the X on one of them does remove them both.

After further testing, it doesn't appear to be tied to the last item in the source list. I see the issue when dragging from left to right and the position within the lists doesn't make a difference.

https://github.com/chrismccord/todo_trek/assets/409009/4f7c5138-63e5-48a5-8aac-32be941173a6

Workaround: make it clear where you need to grab the todo:
        <div
          :for={{id, form} <- @streams.todos}
          id={id}
          data-id={form.data.id}
          data-list_id={form.data.list_id}
          class="
          relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-2 shadow-sm
          focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400
          drag-item:focus-within:ring-0 drag-item:focus-within:ring-offset-0
          drag-ghost:bg-zinc-300 drag-ghost:border-0 drag-ghost:ring-0
          "
        >
          <.icon
            name="hero-arrows-pointing-out"
            class="h-5 w-5 pointer-events-auto cursor-grab active:cursor-grabbing active:cursor-drag"
          />
          <.simple_form
            for={form}
            phx-change="validate"
            phx-submit="save"
            phx-value-id={form.data.id}
            phx-target={@myself}
            class="min-w-0 flex-1 drag-ghost:opacity-0"
          >

@chrismccord, alternatively we can make sure to blur input when dragging starts using Sortable's onStart:
Hooks.Sortable = {
  mounted(){
    let group = this.el.dataset.group
    let sorter = new Sortable(this.el, {
      group: group ? {name: group, pull: true, put: true} : undefined,
      animation: 150,
      // delay: 100,
      dragClass: "drag-item",
      ghostClass: "drag-ghost",
      // forceFallback: true,
      onStart: function (evt) {
        document.activeElement.blur();
      },
      onEnd: e => {
        let params = {old: e.oldIndex, new: e.newIndex, to: e.to.dataset, ...e.item.dataset}
        this.pushEventTo(this.el, this.el.dataset["drop"] || "reposition", params)
      }
    })
  }
}


[AutoPR network/resource-manager] changes to swagger in interface endpoints and subnet delegation

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3860

(message created by the CI based on PR content)

Codecov Report

Merging #3315 into restapi_auto_Network-September-Release will decrease coverage by 0.15%.
The diff coverage is n/a.

@@                            Coverage Diff                             @@
##           restapi_auto_Network-September-Release    #3315      +/-   ##
==========================================================================
- Coverage                                   55.31%   55.16%   -0.16%
==========================================================================
  Files                                        9459     9200     -259
  Lines                                      189228   185065    -4163
==========================================================================
- Hits                                       104680   102086    -2594
+ Misses                                      84548    82979    -1569

Impacted Files
Coverage Δ

...gmt/containerservice/models/managed_cluster_py3.py
27.77% <0%> (-10.32%)
:arrow_down:

...re/mgmt/containerservice/models/managed_cluster.py
27.77% <0%> (-10.32%)
:arrow_down:

...t/datamigration/models/data_migration_error_py3.py
62.5% <0%> (-10.23%)
:arrow_down:

.../mgmt/datamigration/models/data_migration_error.py
62.5% <0%> (-10.23%)
:arrow_down:

.../azure/mgmt/containerinstance/models/ip_address.py
54.54% <0%> (-9.75%)
:arrow_down:

...re/mgmt/containerinstance/models/ip_address_py3.py
54.54% <0%> (-9.75%)
:arrow_down:

...e_sql_server_sql_db_task_output_migration_level.py
23.8% <0%> (-5.83%)
:arrow_down:

...l_server_sql_db_task_output_migration_level_py3.py
23.8% <0%> (-5.83%)
:arrow_down:

...mt/datamigration/operations/projects_operations.py
63.96% <0%> (-2.07%)
:arrow_down:

...instance/operations/container_groups_operations.py
58.38% <0%> (-1.92%)
:arrow_down:

... and 324 more

Continue to review full report at Codecov.

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


Event for right click?

Is there an event for right click on node? like (NodeRightClicked) ?

Yes but is there a way to know if user has right clicked on a node to see the menu? It renders an element 'node-menu' and using angular's elementref to search for element exists is not solving my purpose. I need to perform api call when user right clicks on a node.

@hotdog1987 I think we can publish an event on that action - will bring this in the next release.


Error on second run within same script

There seems to be an issue when running chatette more than once in a single script. Even when we reset either the instance or the system, it throws a syntax error like:
SyntaxError: Tried to declare intent 'E7WzqixfmcHF1zAvsE9LIbEL450pPHOe' twice.
It always works the first time, but even though we give it a random intent name every time, it thinks it's already been declared.
I've tried deleting the facade object as well as reloading the chatette library altogether, but I still can't avoid the error.
chatetteTest.txt is the python script I'm using to test it and common.txt is a required grammar file to run it.
Any help you could provide on this would be greatly appreciated.
chatetteTest.txt
common.txt

I'll check that out as soon as I can. Thanks for providing your files :)

This is fixed on the dev branch. It should be included in the next release.
Thanks again for raising this issue!


Nicer can't find nginx message

Was pretty happy this actually worked, got:
Downloads|⇒ kong start
[ERROR] can't find nginx

(which is an openresty executable)
Now we could make it look nicer and suggest the user to install openresty, check his $PATH etc...

wut


window rule column generation order

Describe the bug
The preceeding expression goes latter.
To Reproduce
Steps to reproduce the behavior:

Import finefood.sample.txt "with colon delimiter."
Click the generated I.DS.
Click Create dataflow with this dataset.
Edit rules.
Drop column3 and all after.
Select window command.
Input 3 expressions - lead(column1, 0), lead(column1, 1), lead(column1, 2)
Click Done.
The new columns order is the result of lead(column1, 2), lead(column1, 1), lead(column1, 0)

Expected behavior
The order of the expressions the user entered would be better.
Screenshots

Additional context
There is a logic that a new column comes right after the target column. (if any)
But, in this case, all the expressions should be appended in series.

1st integrated test passed.


Not compatible with python3.11 - Traceback (most recent call last):   File "/Library/Frameworks/Python.framework/Versions/3.11/bin/myth", line 5, in      from mythril.interfaces.cli import main

When running
$myth
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/bin/myth", line 5, in <module>
    from mythril.interfaces.cli import main
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/__init__.py", line 8, in <module>
    from mythril.plugin.loader import MythrilPluginLoader
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/plugin/__init__.py", line 1, in <module>
    from mythril.plugin.interface import MythrilPlugin, MythrilCLIPlugin
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/plugin/interface.py", line 2, in <module>
    from mythril.laser.plugin.builder import PluginBuilder as LaserPluginBuilder
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/laser/plugin/builder.py", line 1, in <module>
    from mythril.laser.plugin.interface import LaserPlugin
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/laser/plugin/interface.py", line 1, in <module>
    from mythril.laser.ethereum.svm import LaserEVM
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/laser/ethereum/svm.py", line 10, in <module>
    from mythril.analysis.potential_issues import check_potential_issues
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/analysis/potential_issues.py", line 1, in <module>
    from mythril.analysis.report import Issue
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mythril/analysis/report.py", line 6, in <module>
    from eth_abi import decode_abi
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_abi/__init__.py", line 6, in <module>
    from eth_abi.abi import (  # NOQA
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_abi/abi.py", line 1, in <module>
    from eth_abi.codec import (
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_abi/codec.py", line 16, in <module>
    from eth_abi.decoding import (
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_abi/decoding.py", line 14, in <module>
    from eth_abi.base import (
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_abi/base.py", line 7, in <module>
    from .grammar import (
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_abi/grammar.py", line 4, in <module>
    import parsimonious
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/parsimonious/__init__.py", line 9, in <module>
    from parsimonious.grammar import Grammar, TokenGrammar
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/parsimonious/grammar.py", line 14, in <module>
    from parsimonious.expressions import (Literal, Regex, Sequence, OneOf,
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/parsimonious/expressions.py", line 9, in <module>
    from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)

This is due to py-evm and its libraries not supporting python 3.11. You can meanwhile stick to python 3.6-3.9 or use the docker container.


Feature/css edits

File Browser paging updated
Sorting by headers of File Browser added
Clever Canary files added

Great work @emikoifish !


Syncing names in include files with current-federal

Syncing names in include files to agree with latest cleanup of current-federal.

@h-m-f-t @dav3r
I'm doing a test now to verify that we can remove the rewrites.csv file.
I'm also interested in removing the noncyhy.csv file.  As long as I ensure that all entries in that file appear in agencies.csv, the data will be saved in the database, the agency will appear in unique-agencies.csv, and the HTTPS and Trustworthy Email reports should be generated.  (I will do a test to verify this.)
Assuming that is the case, the only other thing noncyhy.csv is used for is to populate a field in the scan database that is in turn used to separate HTTPS reports into two directories (pshtt_reports and pshtt_non-cyhy_reports).  I don't think we care about separating the reports into two such directories (particularly since we don't do it for Trustworthy Email reports), so I think we can do away with this.
Thoughts?  I'm happy tackling this in a separate pull request, but I want to make sure that there isn't a reason for separating the HTTPS reports that I'm missing.


Better handling of manual_changes for cannot fix

For this round it checks whether the file exists, but in the future I shoudl either remove the file from the repository or use a different name.

Not relevant anymore


Optional pagination to be supported by helix for incorrectly documented endpoints on Twitch reference

It's come to my attention that Twitch has incorrectly documented their endpoints...
their newer endpoints do actually support pagination although the docs do not r
eally state the fact they do, as identified by community devs.
see github issue(s) raised for the Twitch Helix API

Thanks for bringing this to our attention

https://github.com/nicklaw5/helix/pull/112


[GHSA-4pmp-38hf-rmwj] OpenStack Neutron allows remote authenticated users to cause a denial of service

Updates

Affected products

Comments
The first available pypi package is from 2018: https://pypi.org/project/neutron/#history (predating the versions listed here), and none of them follow the calver versions specified.
It seems likely this is a false match (at least for PyPI), and should be withdrawn

(Not sure how to get this withdrawn through the improvements UI at https://github.com/advisories/GHSA-4pmp-38hf-rmwj/improve

Went ahead and altered this to be a withdrawal on our side. We limit that capacity from the CC form for.... reasons 😉
If you wanna withdraw something in the future making an issue is probably sufficient too if that's easier.


How to share image on the screen at the time?

I see examples of how to share certain images with the app (naming the exact url of the image in the code), but what about sharing the image the user happens to be on at the time they press the share button? How is that accomplished?
For instance, you give the example:
<button onclick="window.plugins.socialsharing.share('Message and image', null, 'https://www.google.nl/images/srpr/logo4w.png', null)">message and image</button>
... which will share the image pogo4w.png. But how can we allow them to just share the image they see at the time?

Sorry, that's a javascript question, not at all related to this plugin. You can use something like jquery and do:
$(img).click(function(... etc

Forgive me, newbie here. I'd have to hook into your plugin somehow, right? With a variable or something?


"Dârmănești" is listed in the drop-down menu

Description:
"Dârmănești" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Dârmănești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Dârmănești, Argeș (Dârmănești)".


Image Component in a FAB

Has anyone tried creating a FAB component with a React Native Image instead of an Icon?
I am getting this warning:
Warning: Failed prop type: Invalid props.style key `color` supplied to `ForwardRef(Image)`.
Bad object: {
  "color": "#fff",
  "fontSize": 24,
  "width": 35,
  "height": 35,
  "borderRadius": 35
}

It seems like FAB is injecting the styles into the image component. This makes sense for an Icon as a default, but for an Image, its not perfect. Aside from the above warning, it seems like it works alright.
Any thoughts? Conceptually, putting an image in a FAB does make sense.

Worked around the above warning by wrapping image in a view. Seems to be working fine.


go/types, types2: enable real, imag and complex with type parameter arguments

For 1.18 we disabled (report an error) when applying one of these built-in functions to arguments of type parameter type because it involves the creation of a synthetic type parameter which may break go/types API invariants if those types leak.
Need to investigate what the correct approach is (e.g., should we track the type parameters in the types.Info.Implicits map?) and re-enable the code. The compiler may also need minor adjustments.
cc: @findleyr
cc: @ianlancetaylor

Shouldn't that limitation be mentioned in the docs ? 4fea593 only contains code changes.

Creating pseudo TypeParams to represent these derived types seems okay, but feels a bit inconsistent to me with how structural typing works otherwise in Go and the go/types API. If there's no declared name in the source file (i.e., no TypeName), then I think representing it as a TypeParam seems not ideal.
Could we instead create new Types to directly represent "type operations"? Like suppose we had types.FloatOf and types.ComplexOf, so that given value z of complex type C, FloatOf(C) would represent the type of real(z).
I expect we'll need a types.ElemOf operation too, if we allow things like dereferencing pointers of whose type is constrained to *P|*Q.

inconsistent to me with how structural typing works otherwise in Go and the go/types API

Just to make sure I'm not missing something: currently where a structural type is used we expose the structural type itself in the API, right? Are you aware of any other conventions?

Instead of providing type operations, perhaps we can redefine the built-ins in a backward-compatible way, for instance:
func real[Argument ~complex64|~complex128, Result ~float32|~float64](z Argument) Result

and record the built-in signature as such. Then all type parameters are declared.

@findleyr Sorry, when I wrote "structural typing" I meant as opposed to nominal typing (i.e., https://en.wikipedia.org/wiki/Structural_type_system). I didn't mean the Go-specific use case.
@griesemer But I think we need a way to establish that Argument and Result are related types? E.g., for
func F[C1, C2 constraints.Complex](z1a, z1b C1, z2 C2) {
  _ = real(z1a) + real(z1b) // ok
  _ = real(z1a) + real(z2) // ERROR
}

we need to know that for any C1 the real(z1a) and real(z1b) calls will always have the same corresponding derived type and thus are addable, but that real(z1a) and real(z2) may not be.

We could make the Result constraint a magic type constraint function that depends on the Argument. Maybe if real applied to a type, it produces a type result:
func real[Argument ~complex64|~complex128, Result real(Argument)](z Argument) Result

Such a type function would only be permitted in constraints.
But it opens the door to all kinds of similar constructs which we may not want to entertain.

We could make the Result constraint a magic type constraint function that depends on the Argument.

This sounds similar to the RealOf type operator I described above, but with the extra complexity of representing real as a generic function instead of a builtin function. I'm not opposed to that, but do the extra indirections buy us anything? Or is there a distinction I'm missing?
I also don't think that solution generalizes to allowing dereferencing *P|*Q-constrained pointers, because there's no function call that we can add the magic type parameter constraints to.

I think that any discussion of how to handle these cases should also consider how to handle cases like
func First[T ~string | ~[]byte](s T) int {
    for _, c := range s {
        return int(c)
    }
}

Here c is either byte or rune.  The code is fine if we can handle that case.

@ianlancetaylor My first proposal would be to have types.RangeKeyOf and types.RangeValueOf type operators, which represent the corresponding types assigned to the RangeStmt.{Key,Value} expressions, respectively.
But I think there's also value in trying to consider creating a common Type instance to represent all of these operations, rather than creating one-off Types for each operation.

I like @mdempsky's idea of type operations/functions types.FloatOf and types.ComplexOf  I was thinking of it more in terms of rules, since there are only a limited number of them, but functions on types makes sense.  Basically, the type operation is what the stenciler/instantiater can use to generate the final concrete or shape type for these particular cases when substituting in the type args of a generic function/method.
Since the shape type implementation may vary between compilers, it may be that thinking of these as an enumerated set of rules is a little better, since the compiler will have to implement the rule.  I.e. if it sees a type type.RealOf(T), and the value of the T arg during instantiation is a shape like complex128, then it knows that the result type should be a shape like float64 (even though it hasn't even generated a shape like float64 before).
I definitely don't see any particular use in representing these dependent types as type parameters - but at the very least, they need to have a rule/function associated with them.  (Or each compiler will just have to implement these rules independently based on the builtins/constructs being used at that point in the program.)

Moving to 1.21. Not a high priority.

#45049 describes a possible solution to this problem.


What about images in ?

like this:

Can we disabled zoom.js for this situation?

don't add the zoom data action to images if you don't want them to zoom ;)


Help adding kernel support for dumpling = OP5T

What device do you have?
What is the output of uname -a on the device?
Linux ubuntu-phablet 4.4.153-lineage+ #1 SMP PREEMPT Sat Aug 19 00:05:49 CEST 2023 aarch64 aarch64 aarch64 GNU/Linux
Where is the kernel repo?
I already reported it there as well:
https://gitlab.com/ubports/porting/community-ports/android9/oneplus-5/oneplus-cheeseburger-dumpling/-/issues/4

Afaik this should be done now, was there some other issue with the app still?

 Thanks again. I forgot that I had this one open here too.
Although even with the patch the app does still fail to work properly on my OP5T.
The connection is established, but I fail to reach devices in my homenetwork.
When connecting I get this error:
[30.03.24 20:25]  phablet : TTY=unknown ; PWD=/opt/click.ubuntu.com/wireguard.davidv.dev/1.0.0 ; USER=root ; COMMAND=/usr/bin/sed -i 1inameserver <IP_ADDRESS> /etc/resolv.conf
[30.03.24 20:25] pam_unix(sudo:session): session opened for user root by phablet(uid=0)
[30.03.24 20:25] sed: couldn't open temporary file /etc/sedqq0vgG: Read-only file system
[30.03.24 20:25] pam_unix(sudo:session): session closed for user root

Making the device r/w doesn't solve this issue.
But I guess I should close this issue here and open a new one.


Idea for featured country on homepage

The homepage features the country of the user (or an approximation in some cases).
It could be nice to have the flag of the country to the right of the name (if its possible on white background).
It might also be useful to add a link to the country page.

The featured country idea has been deemed out by management and is no longer a part of the home page. Thanks though.


optionsConfig should get a 'default' property

It's a boolean. If set, then if the value is optional and not provided, it will be set to its defaul tvalue. This will happen before normalizeSimOptions is called, removing a lot of need for normalizeSimOptions.
It only does something if optional is true, and it says 'fill in this example value if it's not set in normalized options'. If set, then the example value should be not an 'interesting' value, but the default one.
This is tracked in some other sub-issue. And now more things in schelling-org can be set as optional because they can be defaulted fine.

Originally captured in #25

[ ] Add (and test) a configWithDefaults(config, obj)
[ ] Simulation should run the config through configWithDefaults
[ ] Remove as much of schelling's normalizeSimOptions as possible with this


Flask

Hello @jmuddappa , looks good. I made a comment on one of your files, it looks like you might have some indentation errors.  Other than, merge away!


BUG: PointAndZone.cpp -> Zone::rotate()

In the calculation of inv_x and inv_y, TFT_WIDTH and TFT_HEIGHT must be interchanged according to the rotation of the screen. Otherwise, the resulting coordinates of the Zone :: rotate () function are wrong and do not correspond to the physical locations of buttons A, B, and C.
Demonstration:
M5.Lcd.setRotation(2);
...
BtnA(10,240,110,40..);

Inside Zone :: rotate ():
inv_x = TFT_WIDTH - 1 - x - w (= 240 - 1 - 10 - 110 = 119 -> Wrong!!)
...
switch (m) {
...
  case 2:
    x = normal_y;
    y = inv_x;
    break;
...

The zone corresponding to button A would have the coordinates (240,119,280,229), overlapping with the real button B (240,130,280,200).
Correct value:
When the rotation is 2, the screen has a resolution of 240(280)x320 in the rotated x and y directions, so:
inv_x = TFT_WIDTH - 1 - x - w (= 320 - 1 - 10 - 110 = 199 - > Correct !!)
Fixed function:
void Zone::rotate(uint8_t m) {
  if (m == 1) return;

  int16_t tftW = TFT_WIDTH;
  int16_t tftH = TFT_HEIGHT;

  switch (m) {
    case 0:
      tftW = TFT_HEIGHT;
      tftH = TFT_WIDTH;
      break;
    case 2:
      tftW = TFT_HEIGHT;
      tftH = TFT_WIDTH;
      break;
    case 3:
      tftW = TFT_WIDTH;
      tftH = TFT_HEIGHT;
      break;
    // rotations 4-7 are mirrored
    case 4:
      tftW = TFT_HEIGHT;
      tftH = TFT_WIDTH;
      break;
    case 5:
      tftW = TFT_WIDTH;
      tftH = TFT_HEIGHT;
      break;
    case 6:
      tftW = TFT_HEIGHT;
      tftH = TFT_WIDTH;
      break;
    case 7:
      tftW = TFT_WIDTH;
      tftH = TFT_HEIGHT;
      break;
  }

  int16_t normal_x = x;
  int16_t normal_y = y;
  int16_t inv_x = tftW - 1 - x - w;
  int16_t inv_y = tftH - 1 - y - h;
...

There are no changes from this line to the end of the function.

Thx a lot for this issue. It helped me find out, why my M5Stack Core2 didn't work properly with rotation.
Unfortunaltely the must be another issue if rotation = 3 --> when the buttons A, B and C are above the screen.
Perhaps someone knowsa workaround?


Components not styles when built (has dist folder)

I have a use case where my components are run from dist folders.  Built by tsup.
I have created a repo to show the difference:  https://github.com/paulm17/nextyak_build
steps to reproduce:

cd nextyak_build
pnpm i
cd packages/button2
pnpm build
cd ../../
pnpm run dev

There should be two buttons:

one styled as it pulls inline javascript from the component
the other not styled as it pulls from the build folder

expected outcome:
both buttons should be styled.
note: i've just cobbled this together to show the issue using create-t3-turbo.

hi @paulm17
thanks for your bug report and reproduction!
next-yak prepares the css during build
when you import a pre-built module from a dist folder, Next.js does not recompile these pre-built modules
Instead, it treats them as already-processed code, assuming that all necessary transformations (including CSS-in-JS transformations) have already been applied
there is the transpilePackages in nextjs but I have to verify that this helps in your case:
https://nextjs.org/docs/app/api-reference/next-config-js/transpilePackages
/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: ['@acme/ui', 'lodash-es'],
}

maybe our next-yak compiler is not able to read the correct information from your precompiled code correctly
could you please post the precompiled code to this issue?

Hi @jantimon
thanks for this wonderful library and taking the time to answer this issue.  Really appreciate it!
Here is the next config:
  transpilePackages: [
    "@acme/button",
    "@acme/button2",
  ],

I've removed git ignore from the repo.  Heres the link to the dist folder for button2.
Here is index.mjs for button2 however:
// src/button.tsx
import * as React from "react";

// src/button.css.ts
import { styled } from "next-yak";
var StyledDiv = styled.div`
  color: #333;
  padding: 16px;
  background-color: #f0f0f0;
`;

// src/button.tsx
var Button = React.forwardRef(
  ({ className, asChild = false, ...props }, ref) => {
    return /* @__PURE__ */ React.createElement(StyledDiv, null, "Hello, next-yak!");
  }
);
Button.displayName = "Button";
export {
  Button as Button2
};

right now next-yak does not support *.mjs but only .ts and .tsx
therefore it won't add the styles
however we might allow configuring the exensions.
I prepared a branch which would enable here: https://github.com/jantimon/next-yak/pull/99
could you please try if that would fix this issue?

Thank you for taking the time to do this.
I can now confirm that it's working!
Firstly I'm getting
⚠ Invalid next.config.js options detected:
⚠ Unrecognized key(s) in object: 'extensions'

Also to get this working, I had to change line
const compiledExtensions = yakOptions.extensions || ["js", "mjs", "ts", "tsx"];

Released in 0.2.0


[BUG] ArrayIndexOutOfBoundsException exception for APK without resources produced with AGP7

Information

Apktool Version (apktool -version) - 2.6.0
Operating System (Mac, Linux, Windows) - Mac
APK From? (Playstore, ROM, Other) - Other

Stacktrace/Logcat
~/Downloads ./apktool -f d demo-app-debug-androidTest.apk
I: Using Apktool 2.6.0 on demo-app-debug-androidTest.apk
I: Loading resource table...
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
	at brut.androlib.res.AndrolibResources.selectPkgWithMostResSpecs(AndrolibResources.java:103)
	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:76)
	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:56)
	at brut.androlib.Androlib.getResTable(Androlib.java:69)
	at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:247)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:109)
	at brut.apktool.Main.cmdDecode(Main.java:175)
	at brut.apktool.Main.main(Main.java:78)

Steps to Reproduce

apktool -f d demo-app-debug-androidTest.apk

APK produced with AGP < 7:
~/Downloads unzip -l demo-app-debug-androidTest.apk
Archive:  demo-app-debug-androidTest.apk
  Length      Date    Time    Name
---------  ---------- -----   ----
  4145064  01-01-1981 01:01   classes.dex
    25220  01-01-1981 01:01   classes2.dex
    11376  01-01-1981 01:01   LICENSE-junit.txt
       34  01-01-1981 01:01   META-INF/services/kotlin.test.AsserterContributor
      964  01-01-1981 01:01   junit/runner/logo.gif
      883  01-01-1981 01:01   junit/runner/smalllogo.gif
     3328  01-01-1981 01:01   AndroidManifest.xml
      384  01-01-1981 01:01   resources.arsc
      901  01-01-1981 01:01   META-INF/CERT.SF
     1400  01-01-1981 01:01   META-INF/CERT.RSA
      827  01-01-1981 01:01   META-INF/MANIFEST.MF
---------                     -------
  4190381                     11 files

APK produced with AGP 7
~/Downloads unzip -l demo-app-debug-androidTest.apk
Archive:  demo-app-debug-androidTest.apk
  Length      Date    Time    Name
---------  ---------- -----   ----
  4145044  01-01-1981 01:01   classes.dex
    24964  01-01-1981 01:01   classes2.dex
    11376  01-01-1981 01:01   LICENSE-junit.txt
       34  01-01-1981 01:01   META-INF/services/kotlin.test.AsserterContributor
      964  01-01-1981 01:01   junit/runner/logo.gif
      883  01-01-1981 01:01   junit/runner/smalllogo.gif
     3328  01-01-1981 01:01   AndroidManifest.xml
       40  01-01-1981 01:01   resources.arsc
      901  01-01-1981 01:01   META-INF/CERT.SF
     1400  01-01-1981 01:01   META-INF/CERT.RSA
      827  01-01-1981 01:01   META-INF/MANIFEST.MF
---------                     -------
  4189761                     11 files

Extra clarification - in case of AGP < 7 resources.arsc after decoding contains only:
<?xml version="1.0" encoding="utf-8"?>
<resources />

so essentially it is empty.

Brain is blanking - what is AGP? GooglePlay something?

Android Gradle Plugin

To save me time, can you share those two applications or even push the test source via PR to this repo under 2701? https://github.com/iBotPeaches/TestApks

PLEEEEASE SHUT UP WITH THE OLD THINGS!!!! Let's see what you have been doing since the age og 15 and now 42. Found out April 2014. Excactly 20y. before I, I noticed....but obv. as most have seen something (ass,fart,Pepe...).

I see the same exception when I use Apktool on any recent "Android Instrumented Test" APK. I assume inez's APK is also a instrumented test APK based on the "-androidTest" in the file name.
For example, you can use an APK from the latest Android CTS release, like android-cts/testcases/AlarmTestApp.apk in https://dl.google.com/dl/android/cts/android-cts-12_r2-linux_x86-arm.zip
(source at https://android.googlesource.com/platform/cts/+/refs/tags/android-cts-12.0_r2/tests/AlarmManager/app/)
Alternatively, you can create a new test app in Android Studio, using the default template for Phone App with Empty Activity, then open the auto-generated "ExampleInstrumentedTest" and click on the "Run test" triangle in the margin next to the class name. That will generate the APK in app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk

Just leaving a note that I attempted to build my own application for replication, kept getting manifest merge errors with a brand new empty application and gave up. I will return back to this ticket in time.

Can you give this a try? https://github.com/gramound/TestApks/commit/6f1f747ce9cbffd89094d147fd44c0954bb5a09b
./gradlew assembleDebugAndroidTest
apktool d ./app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk

@gramound - Pulled in your test app - thanks as well as fixing source to crash at right location as you mentioned. Have not peeked yet further at this time.

@inez - Does adding --no-res fix your issue? (It works for my test apks).

On second thought --no-res is not good enough for me, because it leaves the AndroidManifest.xml as binary XML.
The issue with this empty resources.arsc is that apktool can't find the main package name. Is there an alternate way of finding it?
For example, I was able to workaround by injecting the main package name in readTableHeader()
if (packageCount == 0) {
    ResPackage[] packages = new ResPackage[1];
    packages[0] = new ResPackage(mResTable, 2, "com.example.my.package.name");
    return packages;
}

Actually, prehaps injecting a default bogus package name could be good enough in that situation?
I had accidentally left the code snippet above in my build and was having no problem decompiling a whole bunch of apks that had nothing to do with the injected package name. Everything went fine. The only impact was the package="com.example.my.package.name" appearing in the AndroidManifest.xml, but it doesn't affect anything else. (better than nothing?)

I'll admit this ticket really confused me at first, but after another look. We are building the test sample which must be some shell of the application to trigger tests.
So have a patch going up that properly survives decoding with an empty resource table.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1.apk
I: Regular manifest package...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  2701

I extracted the sample apk from the test apk pr, updated gradle here and loaded into test suite.
Will close on merge of: https://github.com/iBotPeaches/Apktool/pull/3230
Sorry for delay.

Thanks! I just want to clarify we don't get nothing. We actually get the decompiled test source code (e.g. smali_classes3/com/ibotpeaches/issue2701/ExampleInstrumentedTest.smali)
This is extremely useful with closed source test suites like GTS and TVTS.


More terminals with sixel support; more sixel implementations

Not sure where these fit, as there is a lot of overlap in "Supported terminals", "Other implementations", and "Projects using SIXEL".
More terminals:

SyncTERM (since version 1.1) - http://www.syncterm.net/
xterm.js when using xterm-image-addon - https://github.com/jerch/xterm-addon-image
foot - https://codeberg.org/dnkl/foot
contour - https://github.com/contour-terminal/contour

More encoder implementations:

rasterm - Go

Some more terminals with sixel support:

Alacritty (via the ayosec graphics fork) - https://github.com/ayosec/alacritty/tree/graphics
IBM Personal Communications - https://www.ibm.com/support/pages/ibm-personal-communications
Rxvt (via the saitoha sixel fork) - https://github.com/saitoha/rxvt-unicode-sixel
VTE (built with the sixel option) - https://gitlab.gnome.org/GNOME/vte/

Also, if you're going to be updating that page, note that WRQ Reflection has long since changed ownership and is now known as Microfocus Reflection Desktop (https://www.microfocus.com/en-us/products/reflection-desktop/). There are actually a bunch of Reflection products for different platforms, but I don't think they all support sixel - I know Reflection Desktop definitely does.

Also update/add RLogin's github repo link: https://github.com/kmiya-culti/RLogin
(Thank you @j4james !)

Hm.. having some thoughts on this:

xterm.js: isn't the addon kinda orphaned. Not maintained and no intend to do so, sadly? (I might be wrong)
Alacritty's PR: If i read some comments in that PR (and other sites) correctly, that's sadly unlikely to be merged. Or is it?
VTE: did any TE pick this mode up already, e.g. gnome-terminal?

The last comments I've seen on the issue tracker for the xterm.js image addon were from February, which isn't that long ago, and it definitely didn't sound like it was abandoned to me.
I suspect the Alacritty sixel PR is not very likely to be merged in the main repo, but there are still people actively maintaining forks with the sixel support included.
As for VTE, I think it could theoretically be used in any VTE-based terminal as long as you're willing to build it yourself. I've only tested in the VTE demo app though, so I might be wrong about that.


Duplicate #232 to #452 for 2022S4W4 Dirt oval

@bfiete : to display Lucas Oil Raceway in Dirt Oval series for this week

@bfiete : could you please commit this pull request as this track appears 4 times this weel on Dirt oval series ;)
You can also commit #28 :D
Thanks.


Missing default jdbc.connections.* Spring Boot metrics

Hi all,
using Spring Boot you have metrics about connections like
jdbc.connections.min
jdbc.connections.max
jdbc.connections.idle
jdbc.connections.active

When tracing is enabled we are creating a ProxyDataSourceBuilderCustomizer to have tracing info.
Doing this we have the new metrics (jdbc.conection, jdbc.query, jdbc.result-set ...) but the metrics created by Spring Boot disappears!
Is there a way to get previous metrics as well when using datasource-micrometer?
Thanks

Hi @stefano-salmaso
Looking at the Spring Boot code, DataSourcePoolMetricsAutoConfiguration seems to be the one that registers the DataSourcePoolMetrics binder.
Specifically here.
I don't see it would interfere with DataSourceObservationBeanPostProcessor which creates a proxy from datasource-micrometer.
Can you try to debug the behavior on the DataSourcePoolMetricsAutoConfiguration on your app to see whether it is registering the binders correctly??

Hi @ttddyy
I think the problem is related to the fact you are using a proxy.
Here  the metadataProviderreturn null passing the proxy... but return the value using real datasource.
Going deeper.. here the function DataSourceUnwrapper.unwrap is not able to return the datasource. This method tries in multiple way to obtain the datasource... but with ProxyDataSource it seems not working...

I found a workaround... adding this implementation of DataSourcePoolMetadataProvider as a Bean solve the issue
    @Bean
    DataSourcePoolMetadataProvider proxyDatasourceTomcatPoolDataSourceMetadataProvider() {
        return dataSource -> {
            if(dataSource instanceof ProxyDataSource) {
                org.apache.tomcat.jdbc.pool.DataSource tomcatDataSource = DataSourceUnwrapper.unwrap(((ProxyDataSource) dataSource).getDataSource(), ConnectionPoolMBean.class, org.apache.tomcat.jdbc.pool.DataSource.class);
                return tomcatDataSource != null ? new TomcatDataSourcePoolMetadata(tomcatDataSource) : null;
            }
            return null;
        };
    }

I didn't check if we have issue Hikari CP and, also, this implementation needs org.apache.tomcat:tomcat-jdbc dependency

After more digging, it's a bug in tomcat-jdbc.
The org.apache.tomcat.jdbc.pool.DataSource always returns false for isWrapperFor and null for unwrap methods: https://github.com/apache/tomcat/blob/main/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java#L62-L73
I see there is a bug filed in 2016 but I don't see it has anything addressed.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59569
The reason why DataSourceUnwrapper.unwrap on org.apache.tomcat.jdbc.pool.DataSource works is that it checks the instance itself:
https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DataSourceUnwrapper.java#L57-L59
So, essentially, it does datasource instanceof ConnectionPoolMBean, which returns true and returns the tomcat datasource.
However, in this case, it should also return true for datasource.isWrapperFor(ConnectionPoolMBean.class), yet it returns false.
I think the suggested workaround in the above comment is a good approach for now.
Since the root cause is in tomcat-jdbc and cannot be resolved by datasource-proxy or datasource-micrometer, I am closing this issue.


python-certifi-win32 broke pip, pip now gives PermissionError: [WinError 32]

I installed the python-certifi-win32 module (I'm so busy trying to fix this problem that I don't even remember why I originally installed it). Right after I installed it, though, I started getting this error when I run pip (extended error code below): PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\user1\AppData\Local\Temp\tmph93rz74c' When I delete the file C:\Users\user1\AppData\Local\Temp\tmph93rz74c, another file pops up in its place, just with a different random combination of letters and numbers, and the error says the new file name instead. I have no idea how to fix it, my pip hasn't been working for days. I've looked through tens of pages of google results.
Full error code:
Traceback (most recent call last):
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\Scripts\pip.exe_main.py", line 4, in
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\main.py", line 9, in
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\main_parser.py", line 8, in
from pip._internal.cli import cmdoptions
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\cmdoptions.py", line 23, in
from pip._internal.cli.parser import ConfigOptionParser
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\parser.py", line 12, in
from pip._internal.configuration import Configuration, ConfigurationError
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\configuration.py", line 20, in
from pip._internal.exceptions import (
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\exceptions.py", line 13, in
from pip.vendor.requests.models import Request, Response
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\requests_init.py", line 135, in
from . import utils
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\requests\utils.py", line 27, in
from . import certs
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\wrapt\importer.py", line 170, in exec_module
notify_module_loaded(module)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\wrapt\decorators.py", line 470, in _synchronized
return wrapped(*args, **kwargs)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\wrapt\importer.py", line 136, in notify_module_loaded
hook(module)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\certifi_win32\wrapt_pip.py", line 35, in apply_patches
import certifi
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\wrapt\importer.py", line 170, in exec_module
notify_module_loaded(module)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\wrapt\decorators.py", line 470, in _synchronized
return wrapped(*args, **kwargs)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\wrapt\importer.py", line 136, in notify_module_loaded
hook(module)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\certifi_win32\wrapt_certifi.py", line 20, in apply_patches
certifi_win32.wincerts.CERTIFI_PEM = certifi.where()
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\certifi\core.py", line 37, in where
_CACERT_PATH = str(_CACERT_CTX.enter())
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 135, in enter
return next(self.gen)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\importlib_common.py", line 95, in _tempfile
os.remove(raw_path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\user1\AppData\Local\Temp\tmph93rz74c'

The same for me

I had the same problem and I wasn't able to remove it in the "correct" way. What I did is simply remove all the files related to "python-certifi-win32" in "...\lib\site-packages" (3 items in total) and it was working again.
If you go to "python-certifi-win32" on Pypi it says:
NOTE : This package has been replaced by pip-system-certs and is generally unmaintained.
I installed "pip-system-certs" and it is working as expected.


[Character Problem] Wishes after use, space, Cyrillic M

Information

To widen the space (#32) in the MatrixChunky6/8 font a bit (2 dots):

Make M Cyrillic more classical:
MatrixChunky8:

PS: For some reason MatrixChunky6 TTF font displays space on Matrix in 3 dots. :(

Also, updating the Light Cyrillic Ems to a similar style...

Super for Light

This image helped and gives decent idea how a 6-pixel Cyrillic font would look:

5 dots in height?
A - Ok

О П Р С - Ok!

Ф - Ok!

Ш Щ - Ok!

Ы Ь Э Ю - Ок!

Don't forget these :)

In my opinion this is more correct...

Super! Thanks :)

Added Cyrillic to the 6-series.  Had to mash some of the lower-case characters down a bit (esp. on the non-X fonts).  I think they look just OK.  Not much to do when working with 5 pixels.  Test it out if you like... I'll close this thread for now but you can come back if there's problems.


Motoko to JSON Multidimensional Aarray

i'm trying to convert multidimensional array to JSON but it is not working. it's give me Failed to decode candid blob kind of error.
in single array it's working good but multidimensional not working.
How to solve this error?

Hey @krunalray,  I wasn't able to recreate the issue. Can you share more details on the multi-dimensional array you were trying to convert to JSON?

`type studentInfo = {
name:Text;
rollNo:Text;
age:Text;
};
type addressInfo = {
firstname:Text;
lastname:Text;
address:Text;
city:Text;
pincode:Text;
};
type subjectInfo = [{
name:Text;
marks:Text;
grade:Text;
remark:Text;
}];
type subjectDataInfo = [{
name:Text;
marks:Text;
grade:Text;
remark:Text;
}];
type student = {
info:studentInfo;
address_info:[addressInfo];
subject:subjectInfo;
subjectDataInfo: subjectDataInfo;
};
var info :T.studentInfo= {name = "name1"; rollNo = "1"; age="15";};
var subjectInfo :T.subjectInfo= [{name = "computer"; marks="90";grade= "a"; remark = "";},{name = "English"; marks="65";grade= "B"; remark = "";}];
var addressInfo :[T.addressInfo]= [{firstname = "firstname"; lastname="lastname";address= "address"; city = "city";pincode = "pincode"}];
var studentData :T.student = {
info = info;
subject = subjectInfo;
address_info = addressInfo;
subjectDataInfo = subjectInfo;
};
let postjsonn = JSON.toText(to_candid(studentData),[], null);
if i remove subjectDataInfo then it's working fine but if i used subjectDataInfo then it's give me an error.
Error:- trapped explicitly: Failed to decode candid blob
`