Update Sampler class to maintain state (among other things)

Currently most of our samplers are not able to maintain their current state and continue sampling. Instead they all implement their own sample method which initializes, runs and outputs sample results. This makes it very difficult and inefficient to implement true Gibbs sampling using our current samplers. To remidy this we would need a total rework of the base sampler class to implement something like the following:

Allocate sample method
warmup method (samples in a warmup/burnin phase and tunes parameters)
sample method
output samples method
Printing progress

The subclassing samplers would be required to implement the following

step (take a single MCMC step from the current position)
tune (tune parameters according to the current state)

Comments
jakj: It is neat to write out progress by updating the same one line. On the other hand printing a new line each time allows us to add more information so as to monitor progress over iterations, even just adding time spent pr sample is helpful to allow monitoring if this changes and how long to expect it still will take.
amal:

samplers diagnostics can be considered #274 for all samplers (we have some diagnostics in NUTS for now)
related issue #147

Babak suggested code structure
See code for a suggested structure for the samplers that are entirely stateful (i.e. they keep track of their state).
import numpy as np
import matplotlib.pyplot as plt

class Sampler():
    def __init__(self, log_pi_target, x0):
        self.log_pi_target = log_pi_target
        self.dim = x0.shape[0]
        self.x_old = x0
        self.target_old = self.log_pi_target( self.x_old )

        self.samples = [ x0 ]
        self.targets = [ self.target_old ]
        self.acc = [ 1. ]

    def sample(self, Ns):
        for i in range(Ns):
            local_acc = self.step()
            self.samples.append( self.x_old )
            self.targets.append( self.target_old )
            self.acc.append( local_acc )

class Metropolis_Hastings(Sampler):
    def __init__(self,log_pi_target, x0, scale=0.1):
        super().__init__(log_pi_target, x0)
        self.scale = 0.1

        self.num_adapt = 0
        self.star_acc = 0.234    # target acceptance rate RW

    def set_pi_target(self, log_pi_target):
        self.log_pi_target = log_pi_target

    def set_scale(self, scale):
        self.scale = scale

    def step(self):
        x = self.x_old + self.scale*np.random.standard_normal(self.dim)

        target = self.log_pi_target( x )
        ratio = target - self.target_old
        alpha = min(0., ratio)
        uu = np.log( np.random.rand() )
        if (uu <= alpha):
            acc = 1
            self.x_old = x
            self.target_old = target
        else:
            acc = 0

        return acc

    def tune(self, history_length=1):
        av_acc = np.mean( self.acc[-history_length:] )
        zeta = 1/np.sqrt(self.num_adapt+1)
        self.scale = np.exp(np.log(self.scale) + zeta*(av_acc-self.star_acc))
        print(self.scale)

if __name__ == '__main__':
    log_pi = lambda p: -0.5*p**2
    x0 = np.array( [0.] )
    sampler = Metropolis_Hastings(log_pi,x0)
    sampler.scale

    sampler.sample(500)
    sampler.tune(history_length=50)
    sampler.sample(500)
    sampler.tune(history_length=50)

    samps = np.array( sampler.samples ).flatten()
    plt.hist(samps, bins=100)
    plt.show()

We agreed to split this task into smaller subtasks

[ ] Add new baseclass sampler + MH + pCN.
[ ] Linear_RTO + UGLA sampler.
[ ] CWMH
[ ] ULA, MALA
[ ] NUTS
[ ] Gibbs

Finally closed by #425


Remote Execution tutorial

Hey @jvmancuso,
Here is the tutorial for remote execution. If we have the time, I will provide a more complex solution for the exercise.
Thanks

Looks great @yanndupis added some comments form reviewnb.

THanks @justin1121 , I addressed comments and updated the requirements


Update code to work on current nightly builds.

I've fixed up the code and dependencies so that the criterion-stats package can build on current nightly compilers.

Thanks @bheisler.


Restructure global variables to use its own table

Following on from the conversation in https://github.com/statamic/eloquent-driver/issues/128, it makes sense to split globals and variables into separate tables, enabling splitting of configuration from data.
Ideally we would be able to offer a config for letting you opt into eloquent globals and variables separately, but from what I can see this is not possible in core as things stand. Scope for future development.
Closes: https://github.com/statamic/eloquent-driver/issues/128

Looking good to me! Curious what the challenge would be to separate it?

Not a lot to be honest, working on a PR to core at the moment

@FrittenKeeZ I'd love a second pair of eyes on this if you had the time to check it over?

@royduin https://github.com/statamic/cms/pull/8343 if you want to follow along

Subscribed 👌🏻


NetWorker recive a large package in TCP mode error bug!~

hi author，In NetWorker.cs , if Server send to client a very big userdata，package size more than client recive buff size,  the package will split two small package，and OnMessageReceived function will post error，because second package don't have correct header length，so please fix it。
very thanks ！！！

Can you work on UDP for now so that you don't have any blockers. UDP and TCP are easy to switch between so you can easily go back to TCP once this is fixed.

Only so ， thank very much!~


docs: Fix linux minimum version in project_configuration docs

After https://github.com/prefix-dev/pixi/pull/1887 . @ruben-arts

Thankyou!


fixed backslash escape issue for removing remote containers

Fixes #209

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/412/
Test FAILed.

test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/413/
Test FAILed.

test this please

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/414/
Test FAILed.

test this please
On Fri, Jun 9, 2017 at 1:35 PM, UCB AMPLab<EMAIL_ADDRESS>wrote:

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/414/
Test FAILed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ucbrise/clipper/pull/210#issuecomment-307493205, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABiDrG7lDP1wzSpvnlELB6ABbYpSj8IYks5sCayRgaJpZM4N1mp6
.

@nishadsingh1 can you review this?

Yep looking at it now

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/419/
Test FAILed.

jenkins test this please

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/420/
Test PASSed.


Billing capped amount and terms

Hello, still enjoying the package.  Do you have any plans of adding a means to provide a capped amount and terms in cases where there will be a recurring charge and a periodic usage charge?
Here's the documentation: https://help.shopify.com/api/reference/recurringapplicationcharge#create
Thanks.

Yes, that's correct.  The best pricing model for my app is usage-based pricing so I'll need to provide the capped amount and terms when the recurring application charge is created.  If one of these fields is populated, the other is required but, as you know, these fields aren't required so shouldn't cause any breaking changes.
Thanks for the consideration.

I'll add this in either today or tomorrow sure.

Hey @brianakidd #22 should solve this, its merged in, tests passed. Released as v2.2.0, should be in Composer. Theres a couple new entries in config/shopify-app.php
If you're using ENV vars, set SHOPIFY_BILLING_CAPPED_AMOUNT and SHOPIFY_BILLING_TERMS to get it to work.
Thanks!

Thanks so much!
From: Tyler King<EMAIL_ADDRESS>Reply-To: ohmybrew/laravel-shopify<EMAIL_ADDRESS>Date: Wednesday, April 25, 2018 at 12:53 PM
To: ohmybrew/laravel-shopify<EMAIL_ADDRESS>Cc: Brian Kidd<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [ohmybrew/laravel-shopify] Billing capped amount and terms (#21)
Hey @brianakidd #22 should solve this, its merged in, tests passed. Released as v2.2.0, should be in Composer. Theres a couple new entries in config/shopify-app.php
If you're using ENV vars, set SHOPIFY_BILLING_CAPPED_AMOUNT and SHOPIFY_BILLING_TERMS to get it to work.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Ill close for now, reopen if theres a issue. Cheers.


Bearded Icons

[x] Extension name: Bearded Icons
[x] Extension GitHub or homepage: https://github.com/BeardedBear/bearded-icons

Thank you for your request! The extension is now live in the code-server extension marketplace.


Move python package to python directory

This is to make room for a new node package, that’ll be built from the same hfst-optimized-lookup.cc file, but will have different glue code.

The PR to add the node package, which could be created once this is merged, looks like this:
https://github.com/andrewdotn/hfst-optimized-lookup/compare/python-dir...andrewdotn:node?expand=1


How to download data without video? Just IMU and keystep annotated.

Hello
Thank you very much for your excellent work.
Could you give me advice about how to download the IMU data that has keystep annotated?
It seems the download tool does not offer such a command to filter video.
Thanks very much for your help!
Best
Cassie

Hi @qingxinxia
To access IMU stream, you can download the VRS files without image streams. Unfortunately we do not have the IMU pre-extracted, so you will have to use aria data tools to extract it yourself.
You can filter the takes by benchmark via the --benchmarks flag, i.e. --benchmarks keystep
For example here is what your command would look like:
egoexo -o <out-dir> --parts take_vrs_noimagestream --benchmarks keystep

The size of this set is 434.0GiB. Does this work for your use-case?
Kind regards,
Miguel.

Thank you very much!
I'm waiting for the access key to download.
Hopefully, everything goes well.

Hi @qingxinxia
To access IMU stream, you can download the VRS files without image streams (video data). Unfortunately we do not have the IMU pre-extracted, so you will have to use aria data tools Python API to extract it yourself.
You can filter the takes by benchmark via the --benchmarks flag, i.e. --benchmarks keystep
For example here is what your command would look like:
egoexo -o <out-dir> --parts take_vrs_noimagestream --benchmarks keystep

The size of this set is 434.0GiB. Does this work for your use-case?
You can see other file size breakdowns and CLI flag options here: https://docs.ego-exo4d-data.org/download/
Kind regards, Miguel.

Hello Miguel
Thanks very much for your reply. I recently downloaded the data.
However, after extracting the IMU from vrs file, I found the IMU data really strange.
Could you help me have a look at the data extraction?
Thank you very much.
Here's my code;
`
from projectaria_tools.core import data_provider
from projectaria_tools.core.sensor_data import TimeDomain, TimeQueryOptions
from projectaria_tools.core.stream_id import RecordableTypeId, StreamId
vrsfile = r"F:\takes\cmu_bike01_2\aria01_noimagestreams.vrs"
provider = data_provider.create_vrs_data_provider(vrsfile)
assert provider is not None, "Cannot open file"
timestamp, acc, gyro = [], [], []
for data in provider.deliver_queued_sensor_data():
# timestamp, acc, gyro are avaliable
if data.sensor_data_type().name == 'IMU':
acc.append(data.imu_data().accel_msec2)
timestamp.append(data.imu_data().capture_timestamp_ns)
gyro.append(data.imu_data().gyro_radsec)
import numpy as np
import matplotlib.pyplot as plt
accnp = np.array(acc)
plt.plot(accnp[:100])
plt.show()
`


Watcher does not update eventSources

I recently worked with ui-calendar and discovered a strange behavior. I noticed when I change some fullcalendar options (e.g. weekends) any drag and drop changes got lost. The reason for that is that the sources variable is initialized once on the uiCalendar directive, but never updated. So when the watcher for getOptions is triggered, the inital event source are loaded again.
I'm not sure if this was only an issue for me. I fixed it with the following way:
        scope.$watch(getOptions, function(newO,oldO){
            scope.destroy();
            sources = scope.eventSources;    // These both lines
            options.eventSources = sources ; // update the eventSources now.
            scope.init();
        });

It was just a dirty quick fix. Maybe this could help you guys. If you need a plunker example of my issue let me know, I will provide you one.

+1

can you please send a reproduction of this?

You have an example here: http://angular-ui.github.io/ui-calendar/
Just move any event and switch the language. The event will move back to its original position instead of staying where you dropped it.


Unable to see 'Options' tab in 7.6.2 Kibana

Hi, we have been using enhanced table from 6.4 version.  Recently, we had to migrate to 7.6.2.  After we migrated, we are unable to see 'options' tab in Enhanced table.  It shows up as empty.  Attaching a screenshot.  Please assist.

Do you have some error logs in your browser console?

Thanks for the quick response.  Here is the error message from browser console.
Error: [$compile:multidir] Multiple directives [draggableContainer (module: kibana), draggableContainer (module: kibana)] asking for 'draggableContainer' controller on:
https://errors.angularjs.org/1.7.9/$compile/multidir?p0=drag…arams.computedColumns" class%3D"computed-columns">
r http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ke http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ve http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
se http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
se http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
se http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
se http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ie http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
link http://<IP_ADDRESS>:5601/bundles/commons.bundle.js:3
pe http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
Re http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
Ie http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ae http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
se http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ae http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
se http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ie http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
ge http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
o http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
v http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
compile http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
watchCollection http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
$digest http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
evalAsync http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
completeTask http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368
o http://<IP_ADDRESS>:5601/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368

I think it is because we customized enhanced-table plugin to create another plugin called util-enhanced-table.  After migrating to 7.6.2, I think something is conflicting and breaking both the plugins' 'Option' page.  After I deleted the util-enhanced-table plugin, iI can see the 'Options' tab in enhanced-table.  Will troubleshoot more.

Thanks for your investigation.
Indeed, the error lets me think about a conflict between 2 plugins declaring the same “draggable” component.
Therefore, I’m curious: what brings more your “util-enhanced-table” ?
And if your “util-enhanced-table” adds some feature, don’t hesitate to make a pull request here :)

Hi,  We had a requirement to select a bucket of data based on intersection of time range field rather than a fixed timestamp field.  So, we do some override of timefilter selection in the plugin.  We did it in a very crude way.  Need to spend some time in hardening it.

Thank you for the details.
We could imagine a checkbox in options for that need.
I guess that your time range intersection is defined in query, so is global for all buckets/metrics?
Concerning your issue, since kibana 7.7, dragula (that defines draggableContainer) is not anymore a dependency. So maybe it could fix your issue.

The issue is not caused by enhanced table, but because a fork of enhanced table is installed aside enhanced table.
And I gave a tip to potentially avoid the issue.
So I close the issue.


Level0 section: k8s basic operations and environment setup.

Add level 0 section to execute lab fluently.

#5 pull-request merged.


Boba Gateway - Pending Transaction Logic Order (Rinkeby)

I noticed that when you have a pending traditional exit running and you want to start a (slow deposit, fast deposit or fast exit) this newer pending transaction will always show underneath the traditional exit, instead on top. If you have 3 pending traditional exits running, the user have to scroll to the second page to know the latest acitivy...
[Potential solution]
I think I found where the problem lies. The UI is looking for the latest timestamp, based on the estimated completion time. But because the traditional exit takes 7 days, this will be always on top for the next 7 days. To fix this, it should be based on starting time!

Good catch!

https://github.com/omgnetwork/optimism/pull/420

fixed


feat(lazygit): add support for ssh://host[:port]/url pattern in git browse

Description
Hi! This adds support for the ssh://host[:port] pattern in Git Browse (<leader>gB)
Related Issue(s)
No related issues
Screenshots
Checklist

[x] I've read the CONTRIBUTING guidelines.

part of snacks.gitbrowse


Problems creating certificates with subdomains

Hello, I am trying to generate a certificate for an instant messaging system in Ubuntu Server 20.04, so I need the certificate to contain subdomains.
I added the subdomains in the init-letsencrypt.sh file:
domains=(simidea.com.ar chat.simidea.com.ar irc.simidea.com.ar mail.simidea.com.ar munim.simidea.com.ar proxy.simidea.com.ar transport.simidea.com.ar upload.simidea.com.ar webchat.simidea.com.ar webmail.simidea.com.ar www.simidea.com.ar)

And in the app.conf file, in the lines:
server {
    listen 80;
    server_name simidea.com.ar, chat.simidea.com.ar, irc.simidea.com.ar, mail.simidea.com.ar, munim.simidea.com.ar, proxy.simidea.com.ar, transport.simidea.com.ar, upload.simidea.com.ar, webchat.simidea.com.ar, webmail.simidea.com.ar, www.simidea.com.ar;
    server_tokens off;

    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
    }
    location / {
        return 301 https://$host$request_uri;
    }
}
server {
    listen 443 ssl;
    server_name simidea.com.ar, chat.simidea.com.ar, irc.simidea.com.ar, mail.simidea.com.ar, munim.simidea.com.ar, proxy.simidea.com.ar, transport.simidea.com.ar, upload.simidea.com.ar, webchat.simidea.com.ar, webmail.simidea.com.ar, www.simidea.com.ar;
    server_tokens off;
    ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
    location / {
        proxy_pass  http://simidea.com.ar,http://chat.simidea.com.ar, http://irc.simidea.com.ar, http://mail.simidea.com.ar, http://munim.simidea.com.ar, http://proxy.simidea.com.ar, http://transport.simidea.com.ar, http://upload.simidea.com.ar, http://webchat.simidea.com.ar, http://webmail.simidea.com.ar, http://www.simidea.com.ar;
        proxy_set_header    Host                $http_host;
        proxy_set_header    X-Real-IP           $remote_addr;
        proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
    }
}

When I run the init-letsencrypt.sh script I get the following error on each of the subdomains:
### Requesting Let's Encrypt certificate for simidea.com.ar ...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for simidea.com.ar and 10 more domains

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: chat.simidea.com.ar
  Type:   connection
  Detail: Fetching http://chat.simidea.com.ar/.well-known/acme-challenge/okLh0IXNPKKyRBxN2ALGkU9htihXkUCDs_qYVrIDiVI:     Timeout during connect (likely firewall problem)`

If I remove the subdomains the certificate is generated but only for the main domain. Any idea what is causing the problem? Thank you

Same issue

Same issue

@pikhovkin What is this comment talking about? There is no directory like that here.

@kevin192291 My comment suggests that this non-obvious issue might be related to permissions. Just try to set permissions to your configs

Any update here?

Hello, I am trying to generate a certificate for an instant messaging system in Ubuntu Server 20.04, so I need the certificate to contain subdomains.
I added the subdomains in the init-letsencrypt.sh file:
domains=(simidea.com.ar chat.simidea.com.ar irc.simidea.com.ar mail.simidea.com.ar munim.simidea.com.ar proxy.simidea.com.ar transport.simidea.com.ar upload.simidea.com.ar webchat.simidea.com.ar webmail.simidea.com.ar www.simidea.com.ar)

And in the app.conf file, in the lines:
server {
    listen 80;
    server_name simidea.com.ar, chat.simidea.com.ar, irc.simidea.com.ar, mail.simidea.com.ar, munim.simidea.com.ar, proxy.simidea.com.ar, transport.simidea.com.ar, upload.simidea.com.ar, webchat.simidea.com.ar, webmail.simidea.com.ar, www.simidea.com.ar;
    server_tokens off;

    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
    }
    location / {
        return 301 https://$host$request_uri;
    }
}
server {
    listen 443 ssl;
    server_name simidea.com.ar, chat.simidea.com.ar, irc.simidea.com.ar, mail.simidea.com.ar, munim.simidea.com.ar, proxy.simidea.com.ar, transport.simidea.com.ar, upload.simidea.com.ar, webchat.simidea.com.ar, webmail.simidea.com.ar, www.simidea.com.ar;
    server_tokens off;
    ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
    location / {
        proxy_pass  http://simidea.com.ar,http://chat.simidea.com.ar, http://irc.simidea.com.ar, http://mail.simidea.com.ar, http://munim.simidea.com.ar, http://proxy.simidea.com.ar, http://transport.simidea.com.ar, http://upload.simidea.com.ar, http://webchat.simidea.com.ar, http://webmail.simidea.com.ar, http://www.simidea.com.ar;
        proxy_set_header    Host                $http_host;
        proxy_set_header    X-Real-IP           $remote_addr;
        proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
    }
}

When I run the init-letsencrypt.sh script I get the following error on each of the subdomains:
### Requesting Let's Encrypt certificate for simidea.com.ar ...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for simidea.com.ar and 10 more domains

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: chat.simidea.com.ar
  Type:   connection
  Detail: Fetching http://chat.simidea.com.ar/.well-known/acme-challenge/okLh0IXNPKKyRBxN2ALGkU9htihXkUCDs_qYVrIDiVI:     Timeout during connect (likely firewall problem)`

If I remove the subdomains the certificate is generated but only for the main domain. Any idea what is causing the problem? Thank you

Did you find any solution? thanks.

I'm facing this issue too. It seems to be a potential change in perhaps how nginx does stuff? I'm not sure. I'll update here in a bit. For now though, in theory, reverting the change https://github.com/wmnnd/nginx-certbot/commit/94c73dbf3f1b819feff469595c05eb8d3d3a93d9 Shoud (I think?) fix the issue. This will however create multiple certificates instead of one.


Pandas Performance Warning

This code, in the newest bluesky environment, is producing a very noisy pandas PerformanceWarning:
PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling frame.insert many times, which has poor performance. Consider using pd.concat instead

https://github.com/bluesky/databroker/blob/2441403793ea3b5ec636e459469e1703d7dd1d96/databroker/v1.py#L621-L624

Here is a post discussing the issue:
https://stackoverflow.com/questions/70079811/pandas-performancewarning-dataframe-is-highly-fragmented-whats-the-efficient-s

We should fix the problem, not just silence the messenger.


Add support for mixed tab/spaces indentation

Traditional Unix editors (emacs, vim etc) use a mix of tabs and spaces for indentation. The tab length is always assumed to be 8 and if the indentation size is different, indentation is created by  inserting as much tabs as possible and inserting spaces for the remainder. Right now, in order to view such files correctly one needs to set the tab size to 8, convert the file to use only spaces and then set the indentation size to the correct value. However, when working on legacy code it is desired to keep the indentation method the same to avoid unnecessary commits. Therefore VSCode should support this method of indentation, auto detect it and allow to easily convert from and to it.

VSCode Version: 1.0.0
OS Version: OS X 10.11.4

Steps to Reproduce:

Load a file with mixed indentation
VSCode won't display the file correctly

Our current indentation was designed to help convert to only one type of indentation, more details about this can be found here. As a workaround for your scenario I suggest to set in your settings:
"editor.detectIndentation": false
Leaving this as a feature reqeust
fyi @alexandrudima

I'm thinking we need to add a setting called fixedTabSize: true|false or something like that.
@eladts I wonder how other editors deal with this. i.e. Do emacs and vim offer an equivalent setting to switch behaviour?

I think such a setting should be applied per-file, not just glibally. As far as I know, Emacs always uses tab size of 8, there is no way to change that. I'm less familiar with VIM. In my opinion  a separate indent size and tab size would provide a more generalized solution to the problem. This way you can set indent size to 4 and tab size to 8, for example.

Yes, vim allows you to set a different size for tabs (that already exist in the file), and indentation (how many spaces it moves if you press the TAB key). You can choose if the TAB key indents only with spaces, or if it should replace some spaces by a tab, if there are more than e.g. 8.

For example, in APT we indent at 3 spaces each, but every 8 spaces are replaced by a tab, so our indentation goes like this:

3 spaces
6 spaces
1 tab + 1 space (equaling 9 spaces)
1 tab + 4 spaces (equaling 12 spaces)

and so on. Both atom and vscode can't handle that, making it impossible to use them on such code.

JFTR: clang-format also uses the "IndentWidth" (how many spaces to indent) and "TabWidth" (how long a tab should be interpreted as), coupled with a "UseTab" option. Going the same approach for vscode would make a lot of sense given that you can then easily use the same settings for both without thinking much :)
So for example, for APT weird's indentation, we have IndentWidth: 3, TabWidth: 8, UseTabs: Always and it just works.

Vim allows specifying different values for both hard and soft tabstops, and can either use as many tabs as possible, or expand them all to spaces. It also has a separate setting for shift width, which roughly maps to the key combinations Ctrl+[ and Ctrl+] in VS Code.
Theoretically editor config also supports this use case, since you can specify a different indentation size from tabstop size. The plugin for VS Code supports setting both values, but it doesn't function as expected in this case; it just sets the tabstop size to the indentation size.
Java code following the "Code Conventions for the Java Programming Language" is another use case for this feature. Section 4 - Indentation begins: "Four spaces should be used as the unit of indentation. The exact construction of the indentation (spaces vs. tabs) is unspecified. Tabs must be set exactly every 8 spaces (not 4)."

The GNU coding style also mandates indenting by two columns, using as many tabs as possible (where 1 tab is 8 columns) and the rest using spaces.  So it's impossible to use vscode (or any other monaco-based editor) to work on these.

Just wanted to poke this issue as it still seems to be open.
I'm using Code as a wrapper for vim and I like everything about it, but I have to work on code written in vi(m) with tabStop=8 and shiftWidth=4 and there still doesn't seem to be the way to make it work.

Agreed, the Unix world learnt to use a fixed physical tabstop (of every 8 monospaced characters) a very long time ago. It is the only way that generic tools (like XTerm or Powershell!) and text editors can reliably expand tabs in any file they come across.
The problem is that many Windows editors pretend they can flout the rules and cause many problems for themselves and others. A common misconception is that tabs can be any number of spaces and this can be used to change the indenting of a file. A little bit of thought shows that this only works if tabs only occur at the start of the line and are never mixed with spaces.
So at the moment vscode cannot deal with tabs correctly.

When can we expect this feature?

I also need this feature!

Yes, please get this done

I can't believe I found this 3 years old unresolved issue on Google.
I happened to write a bash script awhile ago and came across heredoc indentation problem. Example of my code is:
tee /home/user/test.log > /dev/null <<-END
    this is line 1
    this is line 2
    this is line 3
END

I ended up having 4 leading space since it was not indented using tab. heredoc <<- was supposed to remove the leading spaces only if tab is used. Details here.
I don't want the whole document to use tab but only on the heredoc part and there is no way to mix it without entering the rest of the spaces manually... Not sure how to explain this, but that "leading spaces" will only get ignored when tab is used not space upon calling "<<-"...

Just wanted to chime in here as well. A feature like this would put Code ahead of Sublime in my mind, they don't do this either and their general response is "fix your codebase" which is not feasible for larger projects.

It's beyond frustrating that this feature is getting any attention from the vscode team at Microsoft. Or if it is, it's be nice if they could give some indication of when/where it lands on the roadmap.

I am editing old .cgi scripts from 2001 and I find it baffling that vscode does not support combining tabs and spaces. Like ghost said, in heredoc parts it actually matters if it is spaces or tabs. Is there some great reason why it is not supported?

Here's another ping on this requesting a separation of tab size from indentation width.  This will make it possible to use VSCode on projects that have coding standards requiring different tab size and indent width settings.  Examples of codes being excluded include most FreeBSD (and style(1)) conforming codes, most of the GNU ecosystem, X11, and other stalwarts like the sources to Emacs and Vim themselves.  This is related to request #42740.

To add another example of lecagy style documents that's hard to edit without separating the concepts of "indent size" and "tab width" are makefiles. In make, tabs are used not as generic whitespace, but as a special character representing a recipe line. To make them stand out, a traditional tab width of 8 is (almost) required. But you'd want the rest of the file formatted using space and a reasonable indent size (like 2 or 4).

I would like the features as well. My example is GCC compiler, where we mix spaces (we indent by 2) and tabs (equal to 8 spaces).
Without that I can't start using vscode for the project. Thanks.

Just for the record, the Atom editor has the very same limitation: atom/atom#21371.
Not being a vscode developer, I briefly grepped for insertSpaces and tabSize and there's a huge number of usages. I've also tried prototyping a proof-of-concept, but I haven't managed in the few hours I gave it.
The future tabStop feature would require changes in how tabs are displayed, in column navigation, shift/unshift indentation, and likely many other places.

Bump. Please make shiftwidth: and tabstop: work with embedded modelines as well.

Done via https://github.com/microsoft/vscode/pull/155450

@alexdima, does that PR address this requirement?

indentation is created by inserting as much tabs as possible and inserting spaces for the remainder

From the discussion on the PR:

It doesn't convert spaces into tabs. With the above configuration, any existing tabs in the file will be aligned to 8 spaces, but pressing the tab key will only ever insert spaces

that seems to do as it says then, it's just not clear how someone would actually input a tab with this setup apart from copying the character from somewhere else

it sounds like the PR does not really address the issue. We could already display files correctly by setting tab size to 8. The issue is that when you start editing the file, you start to mess it up by not mixing tabs and spaces correctly. My previous workaround was to manually insert tabs and spaces as needed (or use a different editor).

Does "editor.insertSpaces": false not allow to get tabs?

It doesn't seem like the authors really understand how vim/emacs work.

PR #155450 has information on the thought process. It seems like an important step for supporting alternate indentation styles, especially the GNU "hard tab-stop" style.
But I agree that without the changes to indentation style (such as replacing editor.insertSpaces with an enum), this issue should probably stay open.

@alexdima As mentioned above, the PR does not actually address this issue for editing.  #5394 and #42740 should remain open as they are not actually fixed by the PR.

Agreed, my PR #155450 doesn't fully address this issue.
As a proof of concept, I've implemented a quick fix that seems to do what folks want, in terms of allowing mixed indentation that continues to insert both tabs and spaces: https://github.com/zeroimpl/vscode/commit/ba9ac4fee7a8bd73ec4a37357bcfb2b21ea4b2df, https://github.com/zeroimpl/vscode/tree/zeroimpl/mixed_tabs
i think it needs some more work to fully productize though. There's a normalizeIndentation function used in a bunch of places that likely needs updating. Documentation should be updated too. I don't know enough about the code base to make all the relevant changes though.

Reopening since #155450 doesn't address the replacing as many spaces as possible with tabs part.

Annual ping, any update?


Aligned time

This should be 3 PRs, but that's just a bunch of cycling through PRs for not a lot of point.
Each commit can be assessed completely on its own, and it's the last of what I've got pending.

Not sure why my system has so much trouble with the linter, thought I fixed it after last time.


Switch QPS generic RPC to idiomatic Slice API

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences


Form plugin : Missing FORM_ALREADY_SUBMITTED translation in french

Hi,
In the form plugin user/plugins/form/languages.yaml file the FORM_ALREADY_SUBMITTED translation is missing in fr.
Here is my first contribution : "Le formulaire a déjà été envoyé."
Keep up the good work.
Regards,
Matthieu

Please just edit this file:
https://github.com/getgrav/grav-plugin-form/blob/develop/languages.yaml
it will create a Pull Request for us to merge.


Disable HTTP cloning

Is it possible to disable the HTTP cloning method?

Currently... no, but can be a feature request...

If you add config flag to hide "http" button it would be an awesome!!!

+1 Would love to see this

It must be globally disabled or onu for some repositories ?

Personally I would like to disable is globally as I use it in an intranet where I am not wanting users to have the choice to work without SSH.

OK, I could propose a PR within one or two days.

That would be amazing, thank you

Would love to see this feature as well. We also have an internal network and don't use HTTP(S) at all, only SSH. Any chance that PR could be merged before the next release?

+1
PR#3367 seem approved and CI passed any idea when this PR will be merged ?

Fixed by https://github.com/gogits/gogs/pull/3667.


Implement ConcurrentHashMap.newKeySet and use it in VersionChecks

closes #3882

Hmm, sbt testSuite2_13/test failed due to missing newKeySet, which is added in this PR.
[error] C:\projects\scala-js\test-suite\shared\src\test\scala\org\scalajs\testsuite\javalib\util\ConcurrentHashSetTest.scala:60:41: type newKeySet is not a member of object java.util.concurrent.ConcurrentHashMap
[error]     new ju.concurrent.ConcurrentHashMap.newKeySet[E]()
[error]                                         ^
[error] one error found

Hmm, sbt testSuite2_13/test failed due to missing newKeySet, which is added in this PR.
[error] C:\projects\scala-js\test-suite\shared\src\test\scala\org\scalajs\testsuite\javalib\util\ConcurrentHashSetTest.scala:60:41: type newKeySet is not a member of object java.util.concurrent.ConcurrentHashMap
[error]     new ju.concurrent.ConcurrentHashMap.newKeySet[E]()
[error]                                         ^
[error] one error found

It is werid that ConcurrentHashMapKeySetViewTest is failing...
val hs = factory.empty[String]

assertEquals(0, hs.size) // pass
assertTrue(hs.add("ONE")) // fail with AssertionError: null

I do not figure out where AssertionError is coming from.

It is werid that ConcurrentHashMapKeySetViewTest is failing...
val hs = factory.empty[String]

assertEquals(0, hs.size) // pass
assertTrue(hs.add("ONE")) // fail with AssertionError: null

I do not figure out where AssertionError is coming from.

AssertionError: null may mean that the assert itself is failing (i.e. add returns false instead of true). The null simply means the message field is null. Which happens if assertTrue doesn't have a second msg parameter.

AssertionError: null may mean that the assert itself is failing (i.e. add returns false instead of true). The null simply means the message field is null. Which happens if assertTrue doesn't have a second msg parameter.

Re: keySet() without parameters: It seems this is specified in Map and quite well tested in MapTest. However, that add and addAll throw an UnsupportedOperationException is not tested there, but it probably should. So IMO the best course of action is to add these tests there (and fix offending implementations if any).

Re: keySet() without parameters: It seems this is specified in Map and quite well tested in MapTest. However, that add and addAll throw an UnsupportedOperationException is not tested there, but it probably should. So IMO the best course of action is to add these tests there (and fix offending implementations if any).

So IMO the best course of action is to add these tests there (and fix offending implementations if any).

Added tests and fixed implementations.
I will squash commits into single comment when PR get approved.

So IMO the best course of action is to add these tests there (and fix offending implementations if any).

Added tests and fixed implementations.
I will squash commits into single comment when PR get approved.

What is the status on this? @exoego is there anything you need from our end or are you unblocked?

I think that all mentioned issues were addressed.

LGTM! go for squash :)

@gzm0 I think all issues on previous squash were addressed.

And we're down under the bar of 40 open issues! 🎉 Thank you @exoego !


Update get balance function for Kusama

Description the bug
Update get balance function for Kusama

Actual: Show incorrect transferable value
Expected: Show correct information

Version test: https://file.cdmteck.com/s/4oimk9zDJ8R5Aai/download?path=%2F&files=./917-merge-build-0.7.4-1670919126623.zip
Validation passed!


bucket list and namespace not shown in noobaa monitoring pod for odf 4.12

Environment info
ODF Version:
<EMAIL_ADDRESS>517]# oc get csv -n openshift-storage
NAME                                   DISPLAY                       VERSION               REPLACES   PHASE
mcg-operator.v4.12.0                   NooBaa Operator               4.12.0                           Succeeded
metallb-operator.4.12.0-202301230835   MetalLB Operator              4.12.0-202301230835              Succeeded
ocs-operator.v4.12.0                   OpenShift Container Storage   4.12.0                           Succeeded
odf-csi-addons-operator.v4.12.0        CSI Addons                    4.12.0                           Succeeded
odf-operator.v4.12.0                   OpenShift Data Foundation     4.12.0                           Succeeded
<EMAIL_ADDRESS>517]#

Platform:
<EMAIL_ADDRESS>517]# oc version
Client Version: 4.12.0
Kustomize Version: v4.5.7
Server Version: 4.12.0
Kubernetes Version: v1.25.4+77bec7a

Actual behavior
Bucket list

<EMAIL_ADDRESS>517]# mmdas export list

 Name
 ------
 export1
 export2
 export3
 export4
 export5
 export10
 export6
 export7
 export8
 export9

<EMAIL_ADDRESS>517]# oc get pod -n ibm-spectrum-scale -o wide
NAME                                                   READY   STATUS    RESTARTS   AGE     IP              NODE                                   NOMINATED NODE   READINESS GATES
ibm-spectrum-scale-gui-0                               4/4     Running   0          9m12s   <IP_ADDRESS>   worker2.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
ibm-spectrum-scale-gui-1                               4/4     Running   0          12m     <IP_ADDRESS>   worker0.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
ibm-spectrum-scale-noobaamonitoring-78dd65c744-h6fg8   2/2     Running   0          9m43s   <IP_ADDRESS>   worker2.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
ibm-spectrum-scale-pmcollector-0                       2/2     Running   0          9m41s   <IP_ADDRESS>   worker2.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
ibm-spectrum-scale-pmcollector-1                       2/2     Running   0          12m     <IP_ADDRESS>   worker0.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
worker0                                                2/2     Running   0          13m     <IP_ADDRESS>    worker0.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
worker1                                                2/2     Running   0          6m15s   <IP_ADDRESS>     worker1.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>
worker2                                                2/2     Running   0          9m54s   <IP_ADDRESS>     worker2.ocp4-shaurya.cp.fyre.ibm.com   <none>           <none>

<EMAIL_ADDRESS>517]# oc rsh -n ibm-spectrum-scale worker2
Defaulted container "gpfs" out of: gpfs, logs, mmbuildgpl (init), config (init)

sh-4.4# mmhealth node show noobaa -v

Node name:      worker2.daemon.ibm-spectrum-scale.stg.ocp4-shaurya.cp.fyre.ibm.com.

Component     Status        Status Change            Reasons & Notices
-------------------------------------------------------------------------------
NOOBAA        HEALTHY       2023-02-03 11:10:57      -

Event              Parameter  Severity    Active Since         Event Message
------------------------------------------------------------------------------------------------------------------------------------------------------------
noobaa_api_active  NOOBAA     INFO        2023-02-03 11:10:57  Noobaa Data was retrieved successfully.
service_pod_data   NOOBAA     INFO        2023-02-03 11:10:57  The request to ibm-spectrum-scale-noobaamonitoring-78dd65c744-h6fg8 did return health data as
                                                               expected.

Expected behavior
bucket list and namespaces should be displayed as shown below fetched from previous builds:

sh-4.4# mmhealth node show noobaa -v

Node name:      worker2

Component     Status        Status Change            Reasons & Notices
----------------------------------------------------------------------
NOOBAA        HEALTHY       2022-06-14 01:51:46      -
  bucket1     HEALTHY       2022-06-13 12:49:44      -
  bucket11    HEALTHY       2022-06-14 07:13:26      -
  bucket111   HEALTHY       2022-06-14 07:13:26      -
  bucket2     HEALTHY       2022-06-14 07:00:26      -
  bucket22    HEALTHY       2022-06-14 07:12:56      -
  bucket222   HEALTHY       2022-06-14 07:13:26      -
  bucket3     HEALTHY       2022-06-14 07:03:26      -
  bucket33    HEALTHY       2022-06-14 07:12:56      -
  bucket333   HEALTHY       2022-06-14 07:13:56      -
  export1     HEALTHY       2022-06-14 07:09:56      -
  export10    HEALTHY       2022-06-14 07:11:56      -
  export11    HEALTHY       2022-06-14 07:11:56      -
  export12    HEALTHY       2022-06-14 07:11:56      -
  export13    HEALTHY       2022-06-14 07:11:56      -
  export14    HEALTHY       2022-06-14 07:11:56      -
  export15    HEALTHY       2022-06-14 07:11:56      -
  export16    HEALTHY       2022-06-14 07:11:56      -
  export17    HEALTHY       2022-06-14 07:11:56      -
  export18    HEALTHY       2022-06-14 07:11:56      -
  export19    HEALTHY       2022-06-14 07:11:56      -
  export2     HEALTHY       2022-06-14 07:11:26      -
  export20    HEALTHY       2022-06-14 07:11:56      -
  export3     HEALTHY       2022-06-14 07:11:26      -
  export4     HEALTHY       2022-06-14 07:11:26      -
  export5     HEALTHY       2022-06-14 07:11:26      -
  export6     HEALTHY       2022-06-14 07:11:56      -
  export7     HEALTHY       2022-06-14 07:11:56      -
  export8     HEALTHY       2022-06-14 07:11:56      -
  export9     HEALTHY       2022-06-14 07:11:56      -

Event                   Parameter     Severity    Active Since             Event Message
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
service_pod_data        NOOBAA        INFO        2022-06-13 12:22:28      The request to ibm-spectrum-scale-noobaamonitoring-744bf99f88-z24gk did return health data as expected.
noobaa_api_active       NOOBAA        INFO        2022-06-14 01:51:46      Noobaa Data was retrieved successfully
active_ns_rsc           NOOBAA        INFO        2022-06-13 12:23:13      Namespace Resource noobaa-s3res-4080029599 is active in Noobaa
ns_rsc_data_present     NOOBAA        INFO        2022-06-13 12:23:13      Data for Noobaa Namespace Resources was retrieved successfully
active_ns_bucket        bucket1       INFO        2022-06-14 01:51:46      Bucket bucket1 is Healthy and Active
active_ns_bucket        bucket11      INFO        2022-06-14 07:13:26      Bucket bucket11 is Healthy and Active
active_ns_bucket        bucket111     INFO        2022-06-14 07:13:26      Bucket bucket111 is Healthy and Active
active_ns_bucket        bucket2       INFO        2022-06-14 07:00:26      Bucket bucket2 is Healthy and Active
active_ns_bucket        bucket22      INFO        2022-06-14 07:12:56      Bucket bucket22 is Healthy and Active
active_ns_bucket        bucket222     INFO        2022-06-14 07:13:26      Bucket bucket222 is Healthy and Active
active_ns_bucket        bucket3       INFO        2022-06-14 07:03:26      Bucket bucket3 is Healthy and Active
active_ns_bucket        bucket33      INFO        2022-06-14 07:12:56      Bucket bucket33 is Healthy and Active
active_ns_bucket        bucket333     INFO        2022-06-14 07:13:56      Bucket bucket333 is Healthy and Active
active_ns_bucket        export1       INFO        2022-06-14 07:09:56      Bucket export1 is Healthy and Active
active_ns_bucket        export10      INFO        2022-06-14 07:11:56      Bucket export10 is Healthy and Active
active_ns_bucket        export11      INFO        2022-06-14 07:11:56      Bucket export11 is Healthy and Active
active_ns_bucket        export12      INFO        2022-06-14 07:11:56      Bucket export12 is Healthy and Active
active_ns_bucket        export13      INFO        2022-06-14 07:11:56      Bucket export13 is Healthy and Active
active_ns_bucket        export14      INFO        2022-06-14 07:11:56      Bucket export14 is Healthy and Active
active_ns_bucket        export15      INFO        2022-06-14 07:11:56      Bucket export15 is Healthy and Active
active_ns_bucket        export16      INFO        2022-06-14 07:11:56      Bucket export16 is Healthy and Active
active_ns_bucket        export17      INFO        2022-06-14 07:11:56      Bucket export17 is Healthy and Active
active_ns_bucket        export18      INFO        2022-06-14 07:11:56      Bucket export18 is Healthy and Active
active_ns_bucket        export19      INFO        2022-06-14 07:11:56      Bucket export19 is Healthy and Active
active_ns_bucket        export2       INFO        2022-06-14 07:11:26      Bucket export2 is Healthy and Active
active_ns_bucket        export20      INFO        2022-06-14 07:11:56      Bucket export20 is Healthy and Active
active_ns_bucket        export3       INFO        2022-06-14 07:11:26      Bucket export3 is Healthy and Active
active_ns_bucket        export4       INFO        2022-06-14 07:11:26      Bucket export4 is Healthy and Active
active_ns_bucket        export5       INFO        2022-06-14 07:11:26      Bucket export5 is Healthy and Active
active_ns_bucket        export6       INFO        2022-06-14 07:11:56      Bucket export6 is Healthy and Active
active_ns_bucket        export7       INFO        2022-06-14 07:11:56      Bucket export7 is Healthy and Active
active_ns_bucket        export8       INFO        2022-06-14 07:11:56      Bucket export8 is Healthy and Active
active_ns_bucket        export9       INFO        2022-06-14 07:11:56      Bucket export9 is Healthy and Active
sh-4.4#

We'll need more information.
I see the outputs of "mmhealth", can you please provide the calls made to NooBaa itself and their outputs (without mmhealth) ?


ICTL-851 Add support for JUnit 5 for LLM-based test generation

I found another bug:
When the detected test platform is JUnit 4, in the menu, still the pre-selected option is JUnit 5 (see attachment)


added define to build without streams

Hello! Thanks for your great library.
I need to use your library in an Intel SGX Enclave where we can't use standard streams (for security reasons).
In order to use your library I needed to exclude those lines from the header

Hi @theShmoo ,
Thanks for your input.
I'll likely implement these changes myself and perhaps use a configuration flag like nssv_CONFIG_NO_STREAM_INSERTION.
Files to update:

README.md
test/string-view.t.cpp
include/nonstd/string_view.hpp

Thanks! Can I help you with anything?

Sure, if you like to update this PR into the direction of the suggestion above, that would certainly be of help :)

I updated the requested files 👍

Thanks @theShmoo ,
Looks good...
However, there's something I forgot to warn for: trailing double spaces in README.md's markdown are significant (see .editorconfig) and there are quite a lot of them. I'd appreciate it if you could you revert those to as they were before.
Thanks for your help.

Will do! Sorry for the auto formatting. Forgot to deactivate.
Martin Moene @.***> schrieb am Sa., 24. Apr. 2021,
14:01:

Thanks @theShmoo https://github.com/theShmoo ,
Looks good...
However, there's something I forgot to warn for: trailing double spaces in
README.md's markdown are significant (see .editorconfig
https://github.com/martinmoene/string-view-lite/blob/2abb8ead9c51a28c087109ef842754bc52537001/.editorconfig#L15)
and there are quite a lot of them. I'd appreciate it if you could you
revert those to as they were before.
Thanks for your help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/martinmoene/string-view-lite/pull/42#issuecomment-826082471,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABK7ANZZ7BJ5NT526JNRZNTTKKXKLANCNFSM43OOXAYQ
.

Thank you very much for your support!

You're welcome, thank you too :)


ModelData Examples

Hello,
I had the same question as this stackoverflow user.
This seems to be supported by swagger: https://swagger.io/docs/specification/2-0/adding-examples/
I would expect then to be able to write something like this:
return SwaggerModelData.ForType<Type>(with =>
{
    with.Property(x => x.Name)
        .Description("Name of the user")
        .Example("James Johnson")
});

Thus clicking "Try it out" for a MetaDataModule with a BodyParameter that has .Schema<Type> would give me the example json:
{
  "name": "James Johnson"
}

Rather than
{
  "name": "string"
}

A fairly trivial example, but it would be nice for large bodies with a lot of information (some of which may need to conform to some standards).

Believe I've found a way to do this, at least partially. See my answer here: https://stackoverflow.com/a/58634621


Can't set drawing Fill/Stroke color via color picker

Using Foundry v10, when trying to set the drawing color via the color picker, and exception shows up on the log and the color is not changed. The error occurs after I click "Select" on the color picker.
On Firefox, the message is: "Uncaught TypeError: can't access property "value", document.querySelector(...) is null
[Detected 1 package: boneyard-drawing-tools]".
This comes from the function
color_dropper_handler(e) {
        document.querySelector("#by-color-selector > div #by-color-text").value = e.target.value;
        this.update_default_colors(e.target.value);
    }

The problem here is that (apparently) #by-color-selector is null.
Typing the hex color in the text box ("#00FF00" or whatever) correctly changes color.
On Chrome, I get no message and cant change the color either way.
Any idea if I'm doing something wrong?

Commenting out the selection on firefox works:
color_dropper_handler(e) {
  //document.querySelector("#by-color-selector > div #by-color-dropper").value = e.target.value;
 this.update_default_colors(e.target.value);
}

no dice on chrome, though.

Hm, from a quick test I'm unable to replicate the error on chrome, but I'll install Firefox and see if I can replicate it there. When you were testing was this module the only one enabled, or were there any other modules enabled as well? And what specific Foundry build are you on?

Alright, I was able to replicate the bug on Firefox and believe I had an idea as to it's cause. It seems to be due to the browser's default color selector. My module doesn't have a built in color selector, it uses whatever the browser provides by default. Additionally, the color editor pane provided by this module is set up to hide itself when the user defocuses the window. It seems like some browser color selectors will open a separate window from the color editor instead of a sub-window, causing the color editor window to hide itself and no longer be referenceable within the document.
I'll start with figuring out how to replicate this issue on Chrome and look into solutions from there. Thank you for bringing this to my attention.

Oh I got it.
The issue with chrome is completely unrelated. On my settings, the "Line width" option was blank

If it's blank, the chosen color is ignored and it defaults to white. Write a valid value there (a number), and the color picker works correctly on chrome.


Scheduled Email - Actionable hyper link behaves inconsistently with respond at hyper link

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.51-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5083888
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Navigate to OldDot login page
Click on the option to "organize my own expenses"
Enter a new account (name the account in a way that it's easy to filter and locate when receiving emails, e.g<EMAIL_ADDRESS>Once navigated to NewDot - Select "Track and Budget Expenses" on the onboarding modal
Finish the onboarding modal
Logout and wait until you receive an email (Usually lasts about 24h - 48h)
Once you receive the email open it
Make sure you're not signed into new dot on another tab (You can clear cache and cookies for new dot)
Go back to the email and click on the bottom hyper link (Respond at... hyper link)

Expected Result:
Both hyper links should automatically sign in user
Actual Result:
The actionable hyper link just takes deeplinks user to a specific page whereas the bottom respond at hyper link automatically signs in user and takes user to the specific page
Workaround:
Unknown
Platforms:

[ ] Android: Standalone
[ ] Android: HybridApp
[ ] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/76b2f3d8-3461-4c09-962d-dccb85872631

View all open jobs on GitHub

@puneetlath  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

I don't think it's expected that the reply footer automatically signs you in.


"Filipeștii de Târg" is listed in the drop-down menu.

Description:
"Filipeștii de Târg" is listed in the drop-down menu alongside its corresponding county according to the law
Precondition:
The website is up an running.

Step 1
Type "Filipeștii de Târg" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Filipeștii de Târg, PRAHOVA".


TypeScript repository language incorrect on GitHub home page

This might help: My repository is marked as the wrong language

Yeah, we've looked into this before and unfortunately can't really fix it easily until there's some ability to just manually tag your repo language. We've submitted a few fixes to their code classifier tool so that other repos get classified as TypeScript correctly (ex a lot of crypto currency repos have .ts files that aren't TypeScript) but in our case the issue is that repos are classified by what makes up the majority of their repo by file count and for us that's .js baseline files from our test suites.

It looks like we can use .gitattributes to override this? https://github.com/github/linguist#troubleshooting

Fixed by #2394


Azure.RequestFailedException: 'Service request failed. Status: 431 (Request Header Fields Too Large)

My application is hosted on Azure WebApp. I am using AAD authentication and we are experiencing Error code# 431.

@shubham8886 this may be due to the size of the AAD token being used to authenticate the request. Without providing the token itself are you able to provide the size of an AAD Token that causes this issue?
The AAD Token is included in the "Authorization" HTTP header in the HTTP request sent to Azure App Configuration. The format looks like below if you would like to take it out of one of your requests
Authorization: Bearer {aadToken}
The value of the token is sensitive, so it shouldn't be pasted here, but the size can help us diagnose the issue.
Let me know if you need more details on how to get the value of the aad token.

@shubham8886 this may be due to the size of the AAD token being used to authenticate the request. Without providing the token itself are you able to provide the size of an AAD Token that causes this issue?
The AAD Token is included in the "Authorization" HTTP header in the HTTP request sent to Azure App Configuration. The format looks like below if you would like to take it out of one of your requests
Authorization: Bearer {aadToken}
The value of the token is sensitive, so it shouldn't be pasted here, but the size can help us diagnose the issue.
Let me know if you need more details on how to get the value of the aad token.

@jummyca15 I am not able to get the size of the request. can you help me in that, if you are aware of it

Are you able to reproduce this issue locally? If so there are multiple options. My first choice would be to use fiddler to capture the HTTP request that has a 431 response. Then you could inspect it and read the headers that are being sent.


fix(index): Don't talk to crates.io when using alt registry

Ideally we'd find the proper registry and talk to it but that takes a
lot more work to support.
Until then, we'll just act like the registry has no packages in it and
put in some specific hacks to support it.
This should be less brittle than our previous approach which just hoped
we sprinkled config.registr().is_none() in the right places.
Fixes #732

I have publish = ["myregistry"] in my Cargo.toml and cargo-release still fails with this change.
Printing pkg.config.registry() reveals that it's None. Is it expected that I also need to pass --registry=myregistry?

At this time; yes.  Feel free to open an issue about respecting public = [names].  Not many of us have experience with alternative registries to know how all of these pieces fit together.

Sure, I made #736.


conda update -c conda-forge geemap  can't update version

geemap version: 0.6.2
Python version: 3.8
Operating System: win10
*Conda version 4.8.3

Description
Can't update version using conda
What I Did
Use  the   command  cant't updated
conda update -c conda-forge geemap
Use  the   command  I Successfully updated
pip install -U geemap

I am aware of the conda update issue. You can either use pip install -U geemap or geemap.update_package() to update geemap to the latest version.

thanks!

I found that there are many people online report issues with Python 3.8 and conda. Therefore, this is not unique to geemap. I just tried Python 3.7 and and the conda installation worked fine. If you use Python 3.8, you can use pip install.
conda create -n gee python=3.7
conda install -c conda-forge geemap=0.7.3


fix grammar in upload failure notification

Very minor, but "File(s) failed to uploaded" is not grammatically correct. This PR corrects all occurrences of this message to "File(s) failed to upload".

Thanks!


ensureInitializationComplete freezes an Android app

I moved initialization of Flutter to Application subclass. In onCreate I call these methods
   FlutterMain.startInitialization(this);
   FlutterMain.ensureInitializationComplete(this, null);

It works fine on Android 10, but freezes the app on Android 8. It happens on an emulator.
The last log lines from the logcat:
2020-04-08 14:11:24.713 I/zygote64: Do partial code cache collection, code=60KB, data=41KB
2020-04-08 14:11:24.715 I/zygote64: After code cache collection, code=54KB, data=39KB
2020-04-08 14:11:24.715 I/zygote64: Increasing code cache capacity to 256KB

The ensureInitializationCompleteAsync method works fine.
[✓] Flutter (Channel unknown, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)

Hi @tomrozb
could you please provide a minimal project to reproduce it?

Turns out this is related to Dagger 2.
		applicationComponent = DaggerApplicationComponent
				.builder()
				.applicationModule(new ApplicationModule(this))
				.build();

                 // FlutterMain.ensureInitializationComplete(this, null); <- works fine
		applicationComponent.inject(this);
		// FlutterMain.ensureInitializationComplete(this, null); <- blocks indefinitely when invoked here

May be related to many things in the app. Can be closed as this is not easy to reproduce on a simple project setup. I hope this thread would help somebody to fix the issue in their project.

@tomrozb
I'm glad that it's solved, closing


Bug report/technical issue, folder browsing not working correctly due to output caching

Checklist

[X] The feature would be useful to more users than just me.
[X] I have checked the feature overview and the feature doesn't already exist.
[X] Feature Requests regarding daily notes will not be implemented, since there are other Alfred workflows that do focus on daily notes already.
[X] If you are looking for a way to trigger a specific Obsidian command from outside Obsidian, see this comment explaining how you can easily create such a workflow yourself.

Feature Requested
Not a feature request but no other options available. I am running into issues where folder browsing doesn't work correctly, nothing happens when a folder is selected. I have determined that the issue is the caching of the output of o_search.js. If the output is not cached (by removing the cache item at the end of o_search.js), folder browsing works (though this obviously slows things down in the cases that caching would be effective).
I am not sure whether there is something specific to my setup that causes the output caching to break things. Using version 4.7.1
Alternatives considered
N/A
Relevant Screenshot
No response

ah, wasn't aware that Alfred's caching mechanism had that effect. Thanks, fixed with latest release.
https://github.com/chrisgrieser/shimmering-obsidian/releases/download/4.7.2/shimmering-obsidian.alfredworkflow

bug report form had a bug, also fixed


Battery requests to install a backwards incompatible update every time the app is started on MacOS Sequoia

What is the issue? (required)
Battery requests to install a backwards incompatible update every time the app is started on MacOS Sequoia.
What exactly did you do to produce the issue? (required)
Steps to reproduce the behavior:

Ensure you are on MacOS 15.0 or greater
Start Battery (quit and restart if already running).
A message appears saying "Battery needs to apply a backwards incompatible update, to do this it will ask for your password. This should not happen frequently."
Something oss requests a change to system with password.
After everything is done, Battery runs normally.
However, if you quit it, it goes back to step 3.

Expected behavior (required)
I expect battery to install that required item once and not again.
Screenshots (optional)

I have the same issue. I installed with Homebrew cask on latest version of MacOS Sonoma

Ditto here with v1.2.2 installed via Homebrew on Sonoma 14.7 (23H124).

Dupe of #300.

Same issue on my side with Sequoia 15.1

Same. Everytime I restart the battery.app or reboot.
First it asks for permission, then gives a password prompt:

Then after it does it's thing, this is the confirmation message.

MacBook Pro | Apple M2 Max | Sonoma 14.6.1

Battery App Password-Free Setup Script
If you're tired of entering your password every time the Battery app starts up, this script will configure your system to allow the Battery app to run without password prompts.
What This Script Does

Creates a backup of your sudoers configuration
Adds specific permissions for the Battery app commands
Tests the configuration to ensure it works
Provides detailed logging of all actions
Includes safety checks and error handling

How to Use

Create a new file called fix-battery.sh
Copy the script below into the file
Make it executable: chmod +x fix-battery.sh
Run it with sudo: sudo ./fix-battery.sh

The Script
#!/bin/bash

# Color codes for output
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Get current user
CURRENT_USER=$(whoami)
if [ "$CURRENT_USER" = "root" ]; then
    CURRENT_USER=$SUDO_USER
fi

# Logging function
log() {
    echo -e "${YELLOW}[$(date '+%Y-%m-%d %H:%M:%S')]${NC} $1"
}

error() {
    echo -e "${RED}[$(date '+%Y-%m-%d %H:%M:%S')] ERROR:${NC} $1"
}

success() {
    echo -e "${GREEN}[$(date '+%Y-%m-%d %H:%M:%S')] SUCCESS:${NC} $1"
}

# Check if script is run as root
if [ "$EUID" -ne 0 ]; then
    error "Please run this script with sudo"
    exit 1
fi

# Print script start information
log "Starting battery sudo configuration script"
log "Configuring for user: $CURRENT_USER"

# Create backup of sudoers
log "Creating backup of sudoers configuration..."
if cp /etc/sudoers /etc/sudoers.backup; then
    success "Backup created at /etc/sudoers.backup"
else
    error "Failed to create sudoers backup"
    exit 1
fi

# Create new sudoers file for battery app
log "Creating battery app sudoers configuration..."
cat > /etc/sudoers.d/battery-app << EOL
$CURRENT_USER ALL=(ALL) NOPASSWD: /usr/local/bin/smc -k CH0C -r
$CURRENT_USER ALL=(ALL) NOPASSWD: /usr/local/bin/smc -k CH0I -r
$CURRENT_USER ALL=(ALL) NOPASSWD: /usr/local/bin/smc -k ACLC -r
$CURRENT_USER ALL=(ALL) NOPASSWD: /usr/local/bin/smc -k ACLC -w 02
$CURRENT_USER ALL=(ALL) NOPASSWD: /usr/local/bin/battery
EOL

# Set correct permissions
log "Setting correct permissions..."
if chmod 440 /etc/sudoers.d/battery-app; then
    success "Permissions set correctly"
else
    error "Failed to set permissions"
    rm /etc/sudoers.d/battery-app
    exit 1
fi

# Validate sudoers syntax
log "Validating sudoers syntax..."
if visudo -c -f /etc/sudoers.d/battery-app; then
    success "Sudoers syntax validated successfully"
else
    error "Sudoers syntax validation failed"
    rm /etc/sudoers.d/battery-app
    exit 1
fi

# Test the configuration
log "Testing configuration with actual commands..."

# Test array of commands
declare -a test_commands=(
    "/usr/local/bin/smc -k CH0C -r"
    "/usr/local/bin/smc -k CH0I -r"
    "/usr/local/bin/smc -k ACLC -r"
)

# Run tests
TEST_FAILED=0
for cmd in "${test_commands[@]}"; do
    log "Testing command: $cmd"
    if sudo -n $cmd &>/dev/null; then
        success "Command executed without password: $cmd"
    else
        error "Failed to execute without password: $cmd"
        TEST_FAILED=1
    fi
done

if [ $TEST_FAILED -eq 0 ]; then
    echo
    echo -e "${GREEN}✅ Battery sudo configuration completed successfully${NC}"
    echo -e "${GREEN}✅ All test commands executed without password prompts${NC}"
    echo
    log "You can now use the battery app without password prompts"
    log "If you need to undo these changes, run: sudo rm /etc/sudoers.d/battery-app"
else
    echo
    error "Some tests failed. Configuration may not be complete."
    error "Check the logs above for details"
    echo
    exit 1
fi

# Print final status check
echo
log "Final Configuration Status:"
echo "-------------------------"
echo "User configured: $CURRENT_USER"
echo "Sudoers file: /etc/sudoers.d/battery-app"
echo "Backup file: /etc/sudoers.backup"
echo "Syntax validation: Passed"
echo "Command tests: Passed"
echo "-------------------------"

How to Undo Changes
If you need to remove these permissions, simply run:
sudo rm /etc/sudoers.d/battery-app

Safety Note
This script modifies system permissions to allow the Battery app to run specific commands without a password. While this is safe for the Battery app's specific commands, you should always be careful when modifying sudo permissions on your system.
The script includes several safety features:

Creates a backup of your original configuration
Validates syntax before applying changes
Tests the configuration before completing
Can be easily reverted if needed


Block notification template when blocking IPs

When I've used the script to block IPs (using "Block/tag socks") the script will block IPs but not leave a notification on the IP's talk page (with "Add talk page notice when blocking socks selected"). See, for example, Wikipedia:Sockpuppet investigations/Specialwood and Wikipedia:Sockpuppet investigations/Stevemalya. Could Template:Uw-ipevadeblock please be used for this?

It should be leaving a talk page notice...let me look into this. I'm reluctant to use uw-ipevadeblock instead of uw-sockblock because the latter is more generic and the former doesn't cover things like "intentional logged-out editing to create false consensus," but I'll think about it.

It should be leaving a talk page notice...let me look into this. I'm reluctant to use uw-ipevadeblock instead of uw-sockblock because the latter is more generic and the former doesn't cover things like "intentional logged-out editing to create false consensus," but I'll think about it.

Ahaa, found the issue. For whatever reason, the code that decided what type of message to leave on talk pages was checking the tag and not adding a talk page notice if there wasn't a tag, and since we don't tag IPs...yeah. Queueing a fix in dev now.

Ahaa, found the issue. For whatever reason, the code that decided what type of message to leave on talk pages was checking the tag and not adding a talk page notice if there wasn't a tag, and since we don't tag IPs...yeah. Queueing a fix in dev now.

Thanks. No issues with uw-sockblock.

Thanks. No issues with uw-sockblock.

Will the fix also deal with cases where accounts aren't tagged but are blocked. For example: https://en.wikipedia.org/wiki/Wikipedia:Sockpuppet_investigations/AveryGilmerrealestate?

Will the fix also deal with cases where accounts aren't tagged but are blocked. For example: https://en.wikipedia.org/wiki/Wikipedia:Sockpuppet_investigations/AveryGilmerrealestate?

Yup, it will fix that too.

Yup, it will fix that too.

Deployed this morning in 2.3.0.

Deployed this morning in 2.3.0.


Add pogo pin to Teensy 3.0/3.1/3.2/LC footprint

The Reset pin of the Teensy 3.1 and Teensy 3.2 can be accessed with a pogo pin connector. These 2 pogo pin locations could be added to the footprint.

[x] Teensy 3.1 pogo pin
[x] Teensy 3.2 pogo pin

See: https://www.tindie.com/products/loglow/teensy-32-breakout-revision-a/

done in<PHONE_NUMBER>8f179f063d0f2d2da6f7db5caa68c4


Improve mocking behavior

Currently you can mock specific ElectronJS apis via, e.g.:
await browser.electron.mock('dialog', 'showOpenDialog', 'dialog opened!');

This approach has several limitations:

it doesn't allow to validate whether this method was actually called in the Electron process
it doesn't allow to execute alternative code

I suggest to align the mocking interface to what we strive for in WebdriverIO as well. The following primitives should be not to difficult to implement in the serviceL

an execute command that allows to run arbitrary code in the main process

const res = await browser.electron.mock((electron) => {
  electron.dialog.showOpenDialog('foobar')
  return 123
})
// console.log(res) // outputs 123

extending the mock command to return a mock object we can use in the mock matchers

const dialog = await browser.electron.mock('dialog', 'showOpenDialog')
expect(dialog).toBeCalledTimes(2)
expect(dialog).toBeCalledWith('Hello World!')

Similar has been considered from the API perspective in #107; The proposed solution will also remove need for the preload and main scripts since the IPC bridge will be no longer required.

I think we can just stringify the function and run it in the main process similar to how WebdriverIO uses execute to run JS in the browser. I will look into this on my way to NYC.

I see, as in https://github.com/webdriverio/webdriverio/blob/main/packages/devtools/src/commands/executeScript.ts#L16?
I did attempt something along these lines when I was prototyping the service initially, but couldn't find a way to get access to the main process.


Multiple LiDARs

May we know if this supports multiple Horizon Lidars? what is the recommended setup for multiple Lidar data collection? Thanks

Hi raspectedward，
It is possible to achieved. There are two issues I could think of are:
1. The output of Lidars' IMU are using the same topic, the data detected by imu may be different. Therefore, you may need an external imu to detect the actual motion.
2. You need to set the extrinsic parameter to make the pointcloud "combine" together
Some secondary developments are required,


What is the best way to update data in nodes with the same id?

I created a tree where some of the children have the same id. Selecting and deselecting a child from one parent will also update its status under another parent, which is the behavior that I want. Not sure if this was intended by the developers, but it was definitely nice to see it working.

However, I also want the capacity values to set to 0 kW whenever a child is deselected. It doesn't seem to set the other children with the same id to 0 kW.
This is the data payload that I'm using to generate the nodes.
{
      'name': 'Utility Program Name',
      'id': 'program_01',
      'capacity': 500,
      'unit': 'kW',
      'children': [
        {
          'id': 'group_01',
          'name': 'Group 1',
          'capacity': 200,
          'unit': 'kW',
          'children': [
            {
              'id': 'account_01',
              'name': 'account 01',
              'capacity': 50,
              'unit': 'kW'
            },
            {
              'id': 'account_02',
              'name': 'account 02',
              'capacity': 50,
              'unit': 'kW'
            },
            {
              'id': account_03,
              'name': 'account 03',
              'capacity': 100,
              'unit': 'kW'
            }
          ]
        },
        {
          'id': group_02,
          'name': 'Group 2',
          'capacity': 300,
          'children': [
            {
              'id': 'account_04',
              'name': 'account 04',
              'capacity': 200,
              'unit': 'kW'
            },
            {
              'id': 'account_01',
              'name': 'account 01',
              'capacity': 50,
              'unit': 'kW'
            },
            {
              'id': 'account_02',
              'name': 'account 02',
              'capacity': 50,
              'unit': 'kW'
            }
          ]
        }
      ]
    }

Template code
 <tree-root #tree [nodes]="nodes" [options]="options" [(state)]="state">
        <ng-template #treeNodeTemplate let-node let-index="index">
          <label>
            <input type="checkbox"
                        (click)="node.mouseAction('checkboxClick', $event); updateCapacity(node)"
                        [indeterminate]="node.isPartiallySelected"/>
            <span>
              {{node.data.name}} - {{ node.data.capacity }} {{ node.data.unit }}
            </span>
          </label>
        </ng-template>
</tree-root>

Is it possible to extend the behavior on how nodes with same id are updated? I also want to update the parents' capacity values as well whenever their children are updated.

Hi,
Using the same ID with the tree will lead to unexpected behaviour.
I suggest you create a unique ID for each node (you can specify another id field in the options).
BTW,
The fastest way to get an answer is to join our slack channel and post it there:
https://angular-tree-component.herokuapp.com/
You will also get announcements on releases, discussions and new features
Feel free to join


How to access vertex of geometry?

We are trying to access all vertex positions of geometry to show Highlight point on them
could you share example  of how to assess geometry vertex positions

As GLTFKit2 is a fairly low-level framework, this is tedious but ultimately straightforward. One approach is to declare an Objective-C category on the GLTFPrimitive class that returns packed position data:
@interface GLTFPrimitive (VertexPositionAccess)
- (NSData *_Nullable)copyPackedVertexPositions;
@end

which could be implemented as follows
@implementation GLTFPrimitive (VertexPositionAccess)

- (NSData *)copyPackedVertexPositions {
    GLTFAccessor *positionAccessor = self.attributes[GLTFAttributeSemanticPosition];
    if (positionAccessor == nil) {
        return nil; // No position data, because the primitive didn't contain a position accessor
    }
    const void *sourceBufferBase = positionAccessor.bufferView.buffer.data.bytes;
    const void *sourceBase = sourceBufferBase + positionAccessor.offset + positionAccessor.bufferView.offset;
    if (sourceBase == NULL) {
        return nil; // No position data, because buffer view or buffer is NULL, or because the buffer contains no data
    }
    NSInteger vertexCount = positionAccessor.count;
    NSInteger destinationStride = sizeof(float) * 3;
    NSInteger bufferLength = destinationStride * vertexCount;
    NSInteger sourceStride = positionAccessor.bufferView.stride;
    if (sourceStride == 0) {
        sourceStride = destinationStride;
    }
    if (sourceStride == destinationStride) {
        // Existing data is already packed; just return a data object that acts as a view on it
        return [NSData dataWithBytesNoCopy:(void *)sourceBase length:bufferLength freeWhenDone:NO];
    } else {
        // Existing data is *not* packed; we need to copy it element by element
        void *packedBuffer = malloc(bufferLength);
        for (int i = 0; i < vertexCount; ++i) {
            const void *sourcePtr = sourceBase + i * sourceStride;
            void *destPtr = packedBuffer + i * destinationStride;
            memcpy(destPtr, sourcePtr, destinationStride);
        }
        return [NSData dataWithBytesNoCopy:packedBuffer length:bufferLength freeWhenDone:YES];
    }
}

@end

Back in Swift, assuming you have a reference to a primitive object, you could print out all of its vertices like this:
let vertexCount = primitive.attributes[GLTFAttributeSemantic.position.rawValue]?.count ?? 0
if let positionData = primitive.copyPackedVertexPositions() {
    positionData.withUnsafeBytes { positionPtr in
        for i in 0..<vertexCount {
            let position = positionPtr.baseAddress!
                .advanced(by: MemoryLayout<Float>.stride * 3 * i)
                .assumingMemoryBound(to: Float.self)
            let x = position[0]
            let y = position[1]
            let z = position[2]
            print("\(x) \(y) \(z)")
        }
    }
}

If you need to iterate over triangles in indexed order instead of just the raw vertex list, you can write a similar extension to retrieve the index data from the primitive. This is slightly more complex, because indices can be 8, 16, or 32 bits each, but index data is guaranteed to be packed already.

If you've already converted a glTF asset to a SceneKit scene, you can instead retrieve the vertex source using the sources(for:) method, then iterate its data instead, making sure to account for the stride between vertices.

This issue will be automatically closed in 7 days if no further comment is received.

Closing due to inactivity.

Is this still the best way to get vertex position data?


Security vulnerabilities in guzzlehttp/psr7 dependency in v6.x

Thanks for your work on this library.
Guzzle version(s) affected: 6.5.8
PHP version: 7.4
cURL version: Not relevant
Description
Due to GHSA-wxmh-65f7-jcvw the minimum version for the 1.x version of guzzlehttp/psr7 should be 1.9.1. This means the entry in composer.json should be:
"guzzlehttp/psr7": "^1.9.1"

Is this something you are likely to change and issue a release for?

No, it is not necessary for us to change this. One could just install an old version of guzzle to get the vulnerability, in the same way one could install an old psr7 package.

Context: this is a security audit. composer.jsons are scanned to look for dependencies on vulnerable software.
If the composer.jsons are declared such that it can be proved that there are no dependencies on vulnerable software, the audit is passed. Otherwise, it is failed.
In that context, you cannot "just install an old version of guzzle" because it would be vulnerable.
I guess I'm missing something?

Yes, but in any case, Guzzle 6 is EOL and doesn't support even a version of PHP that is still getting security fixes. Guzzle 7 is the only release of Guzzle that should be used, today.


New Label: cricutdesignspace

Output:
2022-05-26 10:54:52 : WARN  : cricutdesignspace : setting variable from argument DEBUG=0
2022-05-26 10:54:52 : WARN  : cricutdesignspace : setting variable from argument INSTALL=force
2022-05-26 10:54:52 : REQ   : cricutdesignspace : ################## Start Installomator v. 10.0beta, date 2022-05-26
2022-05-26 10:54:52 : INFO  : cricutdesignspace : ################## Version: 10.0beta
2022-05-26 10:54:52 : INFO  : cricutdesignspace : ################## Date: 2022-05-26
2022-05-26 10:54:52 : INFO  : cricutdesignspace : ################## cricutdesignspace
2022-05-26 10:54:52 : INFO  : cricutdesignspace : BLOCKING_PROCESS_ACTION=tell_user
2022-05-26 10:54:52 : INFO  : cricutdesignspace : NOTIFY=success
2022-05-26 10:54:52 : INFO  : cricutdesignspace : LOGGING=INFO
2022-05-26 10:54:52 : INFO  : cricutdesignspace : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2022-05-26 10:54:53 : INFO  : cricutdesignspace : Label type: dmg
2022-05-26 10:54:53 : INFO  : cricutdesignspace : archiveName: Cricut Design Space.dmg
2022-05-26 10:54:53 : INFO  : cricutdesignspace : no blocking processes defined, using Cricut Design Space as default
2022-05-26 10:54:53 : INFO  : cricutdesignspace : App(s) found: /Applications/Cricut Design Space.app
2022-05-26 10:54:53 : INFO  : cricutdesignspace : found app at /Applications/Cricut Design Space.app, version 7.9.158, on versionKey CFBundleShortVersionString
2022-05-26 10:54:53 : INFO  : cricutdesignspace : appversion: 7.9.158
2022-05-26 10:54:53 : INFO  : cricutdesignspace : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2022-05-26 10:54:53 : INFO  : cricutdesignspace : Latest version of Cricut Design Space is 7.9.158
2022-05-26 10:54:53 : INFO  : cricutdesignspace : There is no newer version available.
2022-05-26 10:54:53 : REQ   : cricutdesignspace : Downloading https://staticcontent.cricut.com/a/software/osx-native/CricutDesignSpace-Install-v7.9.158.dmg to Cricut Design Space.dmg
2022-05-26 10:54:55 : REQ   : cricutdesignspace : no more blocking processes, continue with update
2022-05-26 10:54:55 : REQ   : cricutdesignspace : Installing Cricut Design Space
2022-05-26 10:54:55 : INFO  : cricutdesignspace : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.LLI066bN/Cricut Design Space.dmg
2022-05-26 10:54:58 : INFO  : cricutdesignspace : Mounted: /Volumes/Cricut Design Space Install
2022-05-26 10:54:58 : INFO  : cricutdesignspace : Verifying: /Volumes/Cricut Design Space Install/Cricut Design Space.app
2022-05-26 10:54:59 : INFO  : cricutdesignspace : Team ID matching: 25627ZFVT7 (expected: 25627ZFVT7 )
2022-05-26 10:54:59 : INFO  : cricutdesignspace : Downloaded version of Cricut Design Space is 7.9.158 on versionKey CFBundleShortVersionString, same as installed.
2022-05-26 10:54:59 : INFO  : cricutdesignspace : Using force to install anyway.
2022-05-26 10:54:59 : INFO  : cricutdesignspace : App has LSMinimumSystemVersion: 10.11.0
2022-05-26 10:54:59 : WARN  : cricutdesignspace : Removing existing /Applications/Cricut Design Space.app
2022-05-26 10:54:59 : INFO  : cricutdesignspace : Copy /Volumes/Cricut Design Space Install/Cricut Design Space.app to /Applications
2022-05-26 10:55:00 : WARN  : cricutdesignspace : Changing owner to dnikles
2022-05-26 10:55:00 : INFO  : cricutdesignspace : Finishing...
2022-05-26 10:55:10 : INFO  : cricutdesignspace : App(s) found: /Applications/Cricut Design Space.app
2022-05-26 10:55:10 : INFO  : cricutdesignspace : found app at /Applications/Cricut Design Space.app, version 7.9.158, on versionKey CFBundleShortVersionString
2022-05-26 10:55:10 : REQ   : cricutdesignspace : Installed Cricut Design Space, version 7.9.158
2022-05-26 10:55:10 : INFO  : cricutdesignspace : notifying
2022-05-26 10:55:10 : INFO  : cricutdesignspace : App not closed, so no reopen.
2022-05-26 10:55:10 : REQ   : cricutdesignspace : All done!
2022-05-26 10:55:10 : REQ   : cricutdesignspace : ################## End Installomator, exit code 0

Thank you


made portofolio column sizes consistent with other widgets

Purpose
The portfolio column sizes do not match other 2-column mode widgets, leading to the left column heading looking a little funny.  Compare to the about, experience, or any other 2-column widget.

Specifically, this fixes inconsistent behavior when resizing, and thus on some tablet-sized displays.
Before, most widget headers become stacked at (wherever the bootstrap boundary is) pixels, but portfolio does not.  It stays in 2-column mode one size smaller than all of the others.
After, we have consistent behavior.  This does not impact other display sizes.
Before:

After:


updated repxe script

Clearer rebooting instructions,
Takes care of a graceful shutdown of the host before beginning,
Corrected the order of operations.

I like the graceful shutdown work! Do you have an idea on how we can still use this for a new machine (e.g. a whole machine swap or just to automate the process of PXE booting a brand new machine)?


manifest-lock.overrides.yaml: unpin kernel

Cherry-pick of #364 on master

/override ci/prow/e2e-aws-upgrade
disruption

/hold

/retest

/hold cancel


chore: document constructor/initialization arguments

re: https://github.com/orgs/flipt-io/discussions/3174

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.91%. Comparing base (efef2cb) to head (de5b0d7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #280   +/-   ##
=======================================
  Coverage   85.91%   85.91%
=======================================
  Files          11       11
  Lines        3281     3281
=======================================
  Hits         2819     2819
  Misses        462      462

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


Remove old API with 2.2

Suggest we drop it in 2.2, whenever that will be out. See README for description and disclosure of deprecation plans.

@psolin I could remove old api and cut a new release. That ok for you?

done. 2.2 released.


Can't access the examples

I tried to have look at the examples on codesandbox but I'm facing some errors.
The examples on codesandbox seem to have some errors.
Is this also happening with yours too?

It seems a problem with babel, which should be a dependency of react-scripts.
The sandbox has not changed since I published the last version of react-reparenting, so I don't think it's a problem with the library.
I will investigate further.

Yes, that's I think so. When I removed the React import, it worked just fine.


I want to init a PDA, i use the following code :
#[account(     init,     payer = owner,     seeds = [METADATA_ACCOUNT_PREFIX.as_bytes(), mint.key().as_ref()],     token::mint = mint,     token::authority = owner,     bump,     )]   pub real_metadata_account: Box<Account<'info, TokenAccount>>,
if i comment it, everything works as expected, but as soon as i uncomment it i get the following error:
Program failed to complete: Instruction passed to inner instruction is too large<PHONE_NUMBER>6 > 1280)
Like if the program fails to init the account in the inner instruction, but i don't get why there would be that much data.
I used many times init with similar seeds, and never had any problem.
for information, i tried with different mint addresses.
metadata_account_prefix is just a string of letters.
any idea ?

Could you share a reproducable example in https://github.com/solana-labs/solana/issues/31960 ?
This seems to be an issue with Solana 1.16.0 and if you are looking for a quick solution, downgrading to 1.14.18 solves it.

downgraded to 1.14.18 and it works now, thanks

downgraded to 1.14.18 and now i'm getting
error: package `winnow v0.4.7` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.62.0-dev

downgraded to 1.14.18 and it works now, thanks

downgraded to 1.14.18 and now i'm getting
error: package `winnow v0.4.7` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.62.0-dev

downgraded to 1.14.18 and it works now, thanks

downgraded to 1.14.18 and now i'm getting
error: package `winnow v0.4.7` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.62.0-dev

solana-cli v1.14 uses an older version of rustc, you'd have to use an earlier version of the problematic crates. See https://github.com/coral-xyz/anchor/issues/2511#issuecomment-1575433342.
If you have an easy reproducable example for this error, please share it in https://github.com/solana-labs/solana/issues/31960.

https://github.com/solana-labs/solana/issues/31960#issuecomment-1668682153 explains why this problem happens.
This should not happen on 0.29.0 because ^1.16 is required for Solana crates.


Requesting template causes incorrect request body data type

Steps to repro:

Make any request with body data type Array.
Check payload transferred to the server - it always has Object format.

Thus, each time you send an array [{a: 1}, {a: 2} ...], it transforms to object {0: {a: 1}, 1: {a: 2}}

Woops, didn't test on latest version. Seems like it's already fixed! Closing this one