dockerizing hyperd

I'd like to run hyperd inside a docker image for deployment reasons.
I've managed to get it working by adding lots of privileges (that is okay for my scenario):
$ docker run --privileged --net=host -v /dev:/dev --cap-add=ALL -it myimage bash
$ hyperd >/dev/null &
$ hyperctl run -t alpine:3.2 uptime
 09:42:41 up  ....

The hyperd prints out following errors:
WARN[0000] devmapper: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/daemon/#daemon-storage-driver-option
WARN[0000] devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.
WARN[0000] devmapper: XFS is not supported in your system. Either the kernel doesnt support it or mkfs.xfs is not in your PATH. Defaulting to ext4 filesystem
INFO[0000] devmapper: Creating filesystem ext4 on device docker-0:69-235-base
INFO[0001] devmapper: Successfully created filesystem ext4 on device docker-0:69-235-base
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support swap memory limit.
INFO[0001] Loading containers: start.

INFO[0001] Loading containers: done.
E0406 09:43:16.823246       1 dm.go:193] losetup: /var/lib/hyper/lib/data: failed to set up loop device: Device or resource busy

My Dockerfile is as follows:
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND=noninteractive
ENV GOPATH=/root/go

RUN apt-get update && apt-get upgrade -y

RUN apt-get install -y software-properties-common && \
    add-apt-repository -y ppa:longsleep/golang-backports && \
    apt-get update && \
    apt-get install -y golang-1.8 && \
    ln -s /usr/lib/go-1.8/bin/go /usr/local/bin/go

WORKDIR /root/go/src/github.com/hyperhq

RUN apt-get install -y git
RUN git clone https://github.com/hyperhq/hyperd.git hyperd  && \
    git clone https://github.com/hyperhq/hyperstart.git hyperstart

RUN apt-get install -y \
  autotools-dev libdevmapper-dev libsqlite3-dev libvirt-dev automake \
  cpio

WORKDIR /root/go/src/github.com/hyperhq/hyperd

#TODO: btrfs is yes, but:
#checking btrfs/ioctl.h, usability... no
#checking btrfs/ioctl.h, presence... no
#checking for btrfs/ioctl.h,... no

RUN apt-get install -y gawk btrfs-tools
RUN ./autogen.sh && \
    ./configure --without-xen  && \
    make

RUN cp hyperd /usr/local/bin && \
    cp hyperctl /usr/local/bin && \
    mkdir -p /etc/hyper && \
    cp package/dist/etc/hyper/config /etc/hyper

WORKDIR /root/go/src/github.com/hyperhq/hyperstart

RUN ./autogen.sh && \
    ./configure  && \
    make

    RUN mkdir -p /var/lib/hyper && \
        cp build/kernel /var/lib/hyper && \
        cp build/hyper-initrd.img /var/lib/hyper

    RUN apt-get install -y \
        aufs-tools libvirt-bin qemu-kvm

#TODO: move
#E0406 08:48:28.327679      16 dm.go:222] /bin/sh: 1: dmsetup: not found
RUN apt-get install -y dmsetup

# WARN[0001] Running modprobe nf_nat failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-66-generic/modules.dep.bin'
RUN apt-get install -y kmod
RUN apt-get install -y linux-image-4.4.0-66-generic

How could I get rid of those errors?

(related https://github.com/hyperhq/hyperd/issues/467)

Tried but give up -- It is too hard to operate low level storage functionalities inside docker container.

any pointers where to look for a solution?

Is /dev/loop6 and /dev/loop7 used in your host? hyperd devicemapper storage driver uses these two device by default.

Okay, so this seems to work:
docker run -it --privileged --net=host -v /var/lib/hyper myimage hyperd

So: -v /dev:/dev is not needed and also --cap-add=ALL is not (because of --privileged)
IMO this looks very promising, it's so convenient to run hyperd as a docker image!

We should release an official image for hyperd in the v0.9.0 release

@matti Did you benchmark your setup? I followed this to create a hyper-in-docker (hid) :) installation of the 0.8.1 version and it worked fine, but when running a simple benchmark I get very low disk-IO performance. I.e., 'tar xf linux-4.12.5.tar.xz' takes around 15 seconds on host, also around 15 seconds in docker but around 200 seconds on hid. All my setup uses btrfs (host, docker and hyperd).

@neerdoc didn’t do any IO benchmarks. Just compared startup times (ran uptime from alpine image) - from around 6s on GCP, virtualbox to 1.7s with baremetal kabylake 3.8ghz..

Where did you do the benchmark? Running the tar within the container at /var/lib/hyper with the passed through volume will perform vastly differently then in the rest of the container as it will be doing cow operations.


Support JSDoc syntax for optional parameters

Currently only the Google Closure syntax for optional parameters is supported (using = behind the type), but not the JSDoc way (using square brackets around the param name)

This seems to be already resolved, by the issue is still open.

You're right. I guess it got implemented in some other context.


Ruff python formatter builtin is outdated & duplicated

FAQ

[X] I have checked the FAQ and it didn't resolve my problem.

Issues

[X] I have checked existing issues and there are no issues with the same problem.

Neovim Version
v0.9.1
Dev Version?

[X] I am using a stable Neovim release version, or if I am using a dev version of Neovim I have confirmed that my issue is reproducible on a stable version.

Operating System
macos, linux & windows
Minimal Config
n/a

Steps to Reproduce
configure the ruff linter with builtins.formatting.ruff and try to format. Nothing happens.
Reproducibility Check

[ ] I confirm that my minimal config is based on the minimal_init.lua template and that my issue is reproducible by running nvim --clean -u minimal_init.lua and following the steps above.

Expected Behavior
The document should be formatted.
Actual Behavior
The wrong command is executed & the document does not format.
The command that is run is ruff --fix where it should be ruff format.
Debug Log
n/a
Help
Yes
Implementation Help
No response
Requirements

[X] I have read and followed the instructions above and understand that my issue will be closed if I did not provide the required information.

Reopening as per https://github.com/nvimtools/none-ls.nvim/pull/41#issuecomment-1845466894

@bellini666 After the confusion around this last week - are you able to confirm if there's an issue here at all? I only ask yourself as you're more familiar with Ruff.
I'd be happy to close it if it works fine for you.

@jakenvac I don't think we have an issue here, everything is working fine for me!
But based on the fact that you were having issues, what were those? Maybe it was due to lack of documentation? Even the fact that you thought ruff_format shouldn't exist tells me that we probably should be documenting it better (i.e. telling why it exists alongside ruff itself)

That's a really good point. The issues I experienced I have chalked up to my lack of python knowledge (and it's ecosystem/tools) and the documentation for ruff not being very clear.
For context: I had looked through the help command from ruff and it's Github page(s) and couldn't find the distinction between the various 'formatting' commands. I probably could have spent more time looking.
So the actual issue I was experiencing was that when running either of the formatters we have configured for null-ls on some python code, nothing happened. I purposely used some poorly formatted python code to try this.
After I changed the command in null-ls, it did successfully 'format' the document.
All that to say, since you're happy that both tools are working, I'll close this and if anyone else experiences issues we can revisit.


Add DistributionPlanner for WRITE operation

Description

Add WritePlanNode as the abstract class of WRITE operation PlanNode
Add simple logic for distribution plan of WRITE operation
Fix some other issues for FragmentInstance

Coverage increased (+0.01%) to 55.525% when pulling 06a8b5602a99c416da8458e3b23f04432bf626f5 on xingtanzjr/write_instance_parallel into 4de7d70fe1f9f78f2830441f41ae9aa0d9deaca7 on master.


Popup for changed proofs does not render properly

The popup is below.

my log id: 6ba8bb960ddc2a98dcdb9d1c

Cc: @chrisnojima. Looks like the lookup to https://chris.keybase.pub failed, but then the popup didn't render properly.  Feels like a race condition.  Looks like all of the RPCs were fired from my perspective...

Investigating

Do we assume this is fixed?


Check if there is an automated way to get the FAO data

e.g. https://github.com/kanishkan91/FAO-Data-pulls

Not needed anymore


Feature Request: RTL & Translation

hey, im using this version since v1, and also converted to v2. a great project!
have noticed there is no much progress for the last few months, and wonder if i could suggest a new feature that supports languages and RTL support.

Thank you for the suggestion! While we aren't planning on adding that, it could be a nice feature to add in your forked version of this starter repo 😄


⚠ ClamAV has degraded performance

In 46f0683, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 176 ms

Resolved: ClamAV performance has improved in bc2b1f1.


Put pending bootlog uploads at the front of the queue

They're very small in comparison to everything else.  Regardless of the timestamps, the bootlogs seem to be placed at the end of the queue and behind all routes, in all circumstances.
For situations like sharing a bug report where the bootlogs are necessary, it would be much more convenient to have the tiny bootlogs always upload first instead of uploading gigs of routes for multiple days when the small bootlog from 10 minutes ago is what's wanted.

I'm already working on this! They will also be put in their own folder instead of a separate route.

I'm already working on this! They will also be put in their own folder instead of a separate route.

@pd0wm Will the bootlogs be permitted to upload over cellular/comma prime as well?  As far as I can tell, they will only upload over wifi.

@pd0wm Will the bootlogs be permitted to upload over cellular/comma prime as well?  As far as I can tell, they will only upload over wifi.

Yes. They will be put in a special folder, and uploaded with the qlogs. (Same as crashlogs https://github.com/commaai/openpilot/blob/master/selfdrive/loggerd/uploader.py#L61)

Yes. They will be put in a special folder, and uploaded with the qlogs. (Same as crashlogs https://github.com/commaai/openpilot/blob/master/selfdrive/loggerd/uploader.py#L61)

Wow, thanks for this! This will be very helpful.

Wow, thanks for this! This will be very helpful.


Error when performing a cascading delete on models with foreign keys

I'm using django simple history in combination with the Django CMS Mezzanine, and in that situation we have curriculum vitaes (CVs) for our users where each CV is a mezzanine page. Additionally, there are entries which appear on these CVs (publications, awards, etc.) which are models with foreign keys to these CV pages. These CV items (publications, awards, etc) have their history tracked with simple history.
When deleting a CV page, the CV items are also deleted through a cascade, which is desired. However, when doing this cascading delete, Django throws a database integrity error, since the simple history entries don't get deleted and they now reference nonexistent models (the CV page).
I understand why simple history doesn't delete historical models when the base model is deleted, but it seems like its handling of foreign keys isn't correct. I can work around the issue I'm encountering by either a) setting the foreign keys on the cv items to be nullable or by b) overriding the delete method on the CV page to also delete the historical entries before calling super().delete()
However setting the keys to be nullable seems bad, and overriding the delete method on the CV page doesn't seem like it should be necessary.
It seems like the proper solution here would be for simple history to always create foreign keys in the historical model which are nullable, even when the foreign keys in the database are not nullable.  This way, a simple history object could reference a deleted item without violating database constraints.

What version of Django are you using? In django-simple-history 1.6.1 we changed the transformation of the ForeignKey fields on historical models to set db_constraint to False, which I believe should prevent the database engine from knowing the column is a foreign key, and avoid any constraint issues when manipulating the original model.

I'm also encountering this issue using Django==1.6.5 and django-simple-history==1.6.2.

I saw this error on Django 1.6.11 and django-simple-history==1.6.2. However, I did just realize that I didn't apply the migration generated by django-simple-history after upgrading, so it's possible that applying that migration will relax the DB constraint.
I'm currently in the process of upgrading to 1.8, so I'll let you know if that fixes my issue.

I'd really appreciate hearing your results Nick, thanks.
On Fri, Jul 17, 2015 at 9:09 PM, Nick<EMAIL_ADDRESS>wrote:

I saw this error on Django 1.6.11 and django-simple-history==1.6.2.
However, I did just realize that I didn't apply the migration generated by
django-simple-history after upgrading, so it's possible that applying that
migration will relax the DB constraint.
I'm currently in the process of upgrading to 1.8, so I'll let you know if
that fixes my issue.
—
Reply to this email directly or view it on GitHub
https://github.com/treyhunner/django-simple-history/issues/185#issuecomment-122361807
.

FWIW I just upgraded to Django==1.8 and the error is still occuring.
On Fri, Jul 17, 2015 at 9:14 PM, Hakan Bakkalbasi<EMAIL_ADDRESS>wrote:

I'd really appreciate hearing your results Nick, thanks.
On Fri, Jul 17, 2015 at 9:09 PM, Nick<EMAIL_ADDRESS>wrote:

I saw this error on Django 1.6.11 and django-simple-history==1.6.2.
However, I did just realize that I didn't apply the migration generated by
django-simple-history after upgrading, so it's possible that applying that
migration will relax the DB constraint.
I'm currently in the process of upgrading to 1.8, so I'll let you know if
that fixes my issue.
—
Reply to this email directly or view it on GitHub
https://github.com/treyhunner/django-simple-history/issues/185#issuecomment-122361807
.

@hakanb, the error is raised from the database. Django migrations should be disabling the database-level FK constraint, but if the migrations are not applied, the database will signal an exception which will trickle up through Django like any other database constraint. Could you verify the historical model in your schema does not have any foreign key constraints?

So I upgraded to Django 1.8, and I'm still seeing this issue. I went back and investigated some more, and it appears that the FK constraint still exists even though the field is allowed to be null.
Here is an example from our PG database:
Table "public.foo_historicalhonor"
     Column      |           Type           |                                 Modifiers
-----------------+--------------------------+---------------------------------------------------------------------------
 id              | integer                  | not null
 _order          | integer                  |
 name            | text                     | not null
 person_id       | integer                  |
 show_on_web     | boolean                  | not null
 show_on_cv      | boolean                  | not null
 history_id      | integer                  | not null default nextval('foo_historicalhonor_history_id_seq'::regclass)
 history_date    | timestamp with time zone | not null
 history_user_id | integer                  |
 history_type    | character varying(1)     | not null
Indexes:
    "foo_historicalhonor_pkey" PRIMARY KEY, btree (history_id)
    "foo_historicalhonor_history_user_id" btree (history_user_id)
    "foo_historicalhonor_id" btree (id)
    "foo_historicalhonor_person_id" btree (person_id)
Foreign-key constraints:
    "history_user_id_refs_id_f109dac2" FOREIGN KEY (history_user_id) REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED
    "person_id_refs_foopage_ptr_id_41875746" FOREIGN KEY (person_id) REFERENCES foo_person(foopage_ptr_id) DEFERRABLE INITIALLY DEFERRED

I'm not a Postgres expert, but is this saying that person_id can be NULL, but that there must be a corresponding NULL person_id in the persons table? That may explain why this still isn't working for us.

@macro1 Yeah, no FK constraints.
I was able to fix this by:

Rolling back migrations to the point before django-simple-history fields were added
Removing django-simple-history from my project
Upgrading to Django 1.8 (including migrations)
Adding django-simple-history and corresponding fields to the project again
Running makemigrations

I take it back. I don't know why I thought this was fixed but it's still happening.

@macro1 Would we be OK if we manually dropped the FK constraints?

@hakanb, obviously removing them from your database would just remove the consistency guarantee (which we don't want to begin with). So running a command manually to remove the constraint is perfectly fine.
If you're asking about removing the constraint from the historical model being generated by the app, I was hoping that was already the case, so I'll need to do some tests to reproduce the issue you all are seeing.

@macro1 After giving this some more thought, I wonder if the issue I'm seeing is that the model the simple history object is referencing via FK is being deleted first, before the simple history object gets updated. When the FK model gets deleted, simple history's model is in an invalid state since the FK column in the history object still references an non-null ID, and thus the DB throws an integrity error. In that case, it seems like the only way to prevent this is to either 1) never have simple history create a FK or 2) ensure that the simple history object's FK gets updated to NULL before the object it references is deleted.
Any thoughts?

I looked at it a bit more today, and I still don't think this is a bug with django-simple-history. The initial migrations I'm seeing generated with makemigration, and the SQL I'm generating with the sql command all leave off the foreign key constraint in the SQL definitions it's generating, which is what we want. Don't worry about null or not null, those are irrelivant. We want historical models to track relationships at the time of change, and to keep those values even after the related model is gone.
So I'm thinking either you are both seeing a relationship that is somehow still expressing a database-level foreign key constraint even though nearly all of them do not. Or there is a bug with Django's handling of the constraint flag we're taking advantage of. I do think there was a bug with migrations that once the FK constraints were applied, removing them with a migration had no affect, you needed to remove them manually. But @hakanb reported seeing this with a new installation, so I'm at a loss.
As far as working around the problem, since our goal is to only have one foreign key constraint on the historical models on the database level, manually removing the others after migrations complete is completely safe, and will give the desired behavior from the application.


Vulnerability roundup 106: vault-1.7.4: 2 advisories [5.3]

search, files

[ ] CVE-2021-38554 CVSSv3=5.3 (nixos-21.05)
[ ] CVE-2021-38553 CVSSv3=4.4 (nixos-21.05)

CVE details
CVE-2021-38554
HashiCorp Vault and Vault Enterprise’s UI erroneously cached and exposed user-viewed secrets between sessions in a single shared browser. Fixed in 1.8.0 and pending 1.7.4 / 1.6.6 releases.
CVE-2021-38553
HashiCorp Vault and Vault Enterprise 1.4.0 through 1.7.3 initialized an underlying database file associated with the Integrated Storage feature with excessively broad filesystem permissions. Fixed in Vault and Vault Enterprise 1.8.0.

Scanned versions: nixos-21.05: 6120ac5cd20.
Cc @Chili-Man
Cc @lnl7
Cc @offlinehacker
Cc @pradeepchhetri
Cc @rushmorem

NixOS 21.05 is EOL. First CVE is fixed in 1.7.4 though (#136219).


Reset VIRTUALENV vars in brainy theme

Thanks for the PR! Can you please explain the background/context of this change? Trying to understand whether functionality was broken and your PR fixes that...

It looks like this theme requires many of these THEME vars to be unset (like RVM_THEME_PROMPT*, RBFU_THEME_PROMPT* above it).
Without this change the virtualenv string is not surrounded in brackets, even though the ___brainy_prompt_python() function specifies brackets: https://github.com/Bash-it/bash-it/blob/master/themes/brainy/brainy.theme.bash#L121

Thanks for the explanation - appreciate it!


Implement LiveAddress.equals(AccountId)

We already support LiveAddress.equals(string) and, of course, LiveAddress.equals(LiveAddress).
Might as well allow for AccountId comparisons.
This is already being used in our test-base and could simplify coding.

Note: LiveAddress has since been renamed to StratoAddress


libminecraft_skins.nro crashing game

Atmosphere Version: 1.2.4|S
ARC Version: 2.1.0
When loading up Smash Bros. the application closes.
Game does not close when libminecraft_skins.nro is disabled. No other mods are conflicting.

The problem has been identified. The current release will be updated to contain a hotfix sometime soon.

@KHOmega try with the new build https://github.com/jam1garner/smash-minecraft-skins/releases/tag/v1.2.4, reopen the issue if it doesn't work


Centered image doesn't get a class applied

It seems that when I want to center an image there isn't any class added to the image.
It does work for the alignment to the right or resizing of the image.

I'm using the default configuration.
Please let me know if you need anymore information.
Edit:
I noticed that class: image acts as the 'centered class', but I don't think that's desired behavior. image-style-center would be a better classname imo.
I managed to center the images with this css though:
.image-style-side{
    margin-left: auto;
    margin-right: 0 !important
}

.image {
    margin: 0 auto;
}

@stijnwesterhof Read the documentation https://ckeditor.com/docs/ckeditor5/latest/features/images/images-styles.html


[Question] Alternate Fluids?

What does this:
# Register alternative redstone, glowstone, cryotheum and ender fluids? It is recommended that this is set to true if no CoFH mods are installed.
B:register_cofh_fluids=true
exactly do?
I set it to true, as i no longer have anything from CoFH - but e.g. enderium is still unavailable?

Perhpas look up 'molten ender' instead?

Well i can't craft the enderium cooler, while i can with the crytoheum for example - it's made out of tin, it seems.

You can craft the cryotheum coolers?

Yes. They're made with molten crythoeum which can be made out of tin and beewax in forestry.
Molten Ender is there but has no recipes. The enderium cooler also has no recipe.

Your molten redstone and glowstone also have no recipe - but i can use the one from enderio and Tic.

Yeh, the reason you can't make enderium coolers is because they require enderium, not just ender pearls or molten ender.
Can you not produce NC's molten redstone, glowstone and ender in the Melter?

No.
Glowstone = Glowstone Gas (Ender IO)
Redstone = Molten Redstone (Ender IO)
Ender Pearls = Molten Ender Pearls (Ender IO)
Evil Ender IO.

But that's fine - those fluids will still be valid active coolants.


Fea argconf model instantiation

Modulus Pull Request
Allow for arbitrary kwargs to models.
Description
This fixes and issue where we can have arbitrary arguments to instantiate a model. The following is an example of this,
from dataclasses import dataclass
import modulus
import torch.nn as nn

class UNet(modulus.Module):
    def __init__(self, in_channels=1, out_channels=1, **other_args):
        super(UNet, self).__init__(meta=None)

        self.enc1 = self.conv_block(in_channels, 64)
        self.enc2 = self.conv_block(64, 128)

        self.dec1 = self.upconv_block(128, 64)
        self.final = nn.Conv2d(64, out_channels, kernel_size=1)

        self.my_args = other_args
        print(self.my_args)

    def conv_block(self, in_channels, out_channels):
        return nn.Sequential(
            nn.Conv2d(in_channels, out_channels, 3, padding=1),
            nn.ReLU(inplace=True),
            nn.MaxPool2d(2)
        )

    def upconv_block(self, in_channels, out_channels):
        return nn.Sequential(
            nn.ConvTranspose2d(in_channels, out_channels, 2, stride=2),
            nn.Conv2d(out_channels, out_channels, 3, padding=1),
            nn.ReLU(inplace=True)
        )

    def forward(self, x):
        x1 = self.enc1(x)
        x2 = self.enc2(x1)
        x = self.dec1(x2)
        return self.final(x)

if __name__ == "__main__":
    model = UNet(1, boop=2, out_channels=3, beep=4)
    model.save("unet.mdlus")
    new_model = modulus.Module.from_checkpoint("unet.mdlus")
    assert model.my_args == new_model.my_args, f"{model.my_args} != {new_model.my_args}"

Turns out this is just a 1 line change and I think we just implemented it wrong in the first place.
Closes https://github.com/NVIDIA/modulus/issues/287
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.
[x] The CHANGELOG.md is up to date with these changes.
[x] An issue is linked to this pull request.

Dependencies

https://github.com/NVIDIA/modulus/issues/287

This should be ready for review and merge now @akshaysubr and @mnabian. I think the current solution is much less hacky and makes sense.

Follow up issue to be fixed by myself: https://github.com/NVIDIA/modulus/issues/367

/blossom-ci

/blossom-ci


refactor: reduce test data size [WIP]

Doing some test setup cleanup. This PR is needed to be able to add presto to the CI https://github.com/bkyryliuk/incubator-superset/pull/13, presto inserts are fairly slow and takes forever to finish.
The ultimate state is to move off the load examples & leverage the fixtures instead.  This step is more intermediate and just reduces the data size loaded into the test databases.

Codecov Report

Merging #10487 into master will decrease coverage by 10.90%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master   #10487       +/-   ##
===========================================
- Coverage   70.84%   59.94%   -10.91%
===========================================
  Files         605      409      -196
  Lines       32428    13355    -19073
  Branches     3423     3423
===========================================
- Hits        22975     8006    -14969
+ Misses       9341     5161     -4180
- Partials      112      188       +76

Flag
Coverage Δ

#cypress
?

#javascript
59.94% <ø> (ø)

#python
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Doesn't show the user name

When I sign in, the header shows:
Hello<EMAIL_ADDRESS>How can I show the real name?

Hey @fujiy - there's kind of 2 ways to do this.

Use ClaimsPrincipal.Current.Identity.Claims to directly pull out information from the claims in your controller.

In the OpenIDConnectAuthenticationOptions, set TokenValidationParameters to a new instance of the TokenValidationParameters class, and set the NameClaimType property to the claim that you want to use as the User.Identity.Name

Thanks!
Another question. This values can change? Because I was using TokenValidationParameters like here: https://github.com/AzureADSamples/WebApp-RoleClaims-DotNet/blob/master/WebApp-RoleClaims-DotNet/App_Start/Startup.Auth.cs
But after packages update I needed to change
RoleClaimType = "roles"
To
RoleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
Very thanks

No, it shouldn't change.  That role claim mapping is a point-in-time fix we had to make.  But generally they should remain constant for you.

I thought it was generated at server-side. Why packages update (client side) made that change?
Anyway, maybe you want to update the samples to use the latest packages.

Yes, I'll make a note to update.  Client made the change to be compatible with the .NET ClaimTypes.Role enum.

Thanks


Docker error for latest version

Hey!
Appreciate the help with past issues :)
I've tried pulling version 0.19.0 and I'm running into the following error:
Unable to find image 'streamthoughts/jikkou:0.19.0' locally
0.19.0: Pulling from streamthoughts/jikkou
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.

I'm running on an apple m2 - but version 0.18.0 works so I can use that for now.

This seems to be resolved now! Not sure what's changed


gradle build broken : class is frozen

UPDATE: Sorry, it works now, but I don't know why :)
Hi,
Everything was working fine, but since 15h30 this afternoon I cannot
instruments models with the gradle plugin.
I'm using the snapshot version :
classpath group: 'org.javalite', name: 'activejdbc-gradle-plugin', version: '1.4.12-SNAPSHOT'
Quitting the IDE, ./gradlew clean ./gradlew build always outputs the same error :
`Directory: /Users/rabbit/IdeaProjects/X/server/build/classes/main
:server:instrumentModels FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':server:instrumentModels'.

org.javalite.instrumentation.InstrumentationException: java.lang.RuntimeException: com.X.server.domain.User class is frozen
`

Any idea ?
Thanks

@could this because you tried to instrument classes that are already instrumented? Ensure you clean class files, then compile, then instrument.

We use Javassist. For more info, you can see this: https://jboss-javassist.github.io/javassist/tutorial/tutorial.html

@rabbitfr I'm closing this as a non-issue

This might be another instance of #438
@rabbitfr were you using the Gradle daemon?

this was fixed here: https://github.com/javalite/activejdbc/pull/538


Gallery: Update block input & other fun fixes

Very WIP, but basic structure is here. Still need to:

[x] handle mobile input
[x] handle drag drop/paste
[x] rich text?

Will eventually...
Fixes LAND-614
Fixes LAND-401

This work was moved to another branch.


container cpu usage some too high, some zero.

Description
container cpu usage some too high, some zero.
Steps to reproduce the issue

Describe the results you received and expected
nerdctl stats --namespace=k8s.io
https://github.com/containerd/nerdctl/assets/98507458/2d56b704-cfdb-40c1-9d27-0dc2448c709b
crictl stats

What version of nerdctl are you using?
1.6.2
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information

![image](https://github.com/containerd/nerdctl/assets/98507458/f914dcbd-54fe-477d-9c05-c2f16825f073)

HI @minesunny
When try to invesgate the issue with stress-ng, the result is no zero :-)
https://github.com/containerd/nerdctl/assets/1469319/513cef21-9ec6-4f75-abd9-cd83906db382
the nerdctl version:
nerdctl --version
nerdctl version 1.6.0

Would you please share us how to reproduce the issue.

HI @minesunny
When try to invesgate the issue with stress-ng, the result is no zero :-)
2023-10-17.104716.mp4
the nerdctl version:
nerdctl --version
nerdctl version 1.6.0

Would you please share us how to reproduce the issue.

I don't have exactly steps to reproduce the issue. I just install k8s cluster(master1,node1,node2)and deploy my apps,then I want to find a better ctr command line tools to help me manager my containers.Finally, this issue happened

@yankay did you stressed kubernetes containers ? Seems like issue occurs with k8s containers

@yankay did you stressed kubernetes containers ? Seems like issue occurs with k8s containers

No,so it is weird that cpu's usage up to hundreds percentage or ten  hundreds percentage;

I am also facing the same issue. @fahedouch  can you help us here ?
ineedshell@cop-fips-fresh-install-n1:/tmp$ sudo nerdctl --version
nerdctl version 1.4.0
ineedshell@fips-fresh-install-n1:/tmp$ sudo nerdctl --info
FATA[0000] unknown flag: --info
ineedshell@fips-fresh-install-n1:/tmp$ sudo nerdctl info
Client:
 Namespace:	default
 Debug Mode:	false

Server:
 Server Version: 1.6.33
 Storage Driver: overlayfs
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Log: fluentd journald json-file syslog
  Storage: aufs native overlayfs
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-1099-fips
 Operating System: Ubuntu 20.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 503.5GiB
 Name: cop-fips-fresh-install-n1.arubacorp.net
 ID: 54a9ebcb-74c3-4954-b920-87741ae88756

WARNING: No swap limit support


Make the dependency filetime optional

filetime is in the same boat as xattr: only used if you’re unpacking tarballs to disk, and already disableable at runtime (preserve_mtime, unpack_xattrs). An excellent candidate for making optional.
This is a very slightly breaking change: anyone using tar with default features disabled (to lose xattr) will now also lose filetime. I’d consider that narrowly acceptable in the circumstances of the similarity of the two optional dependencies.

I should have put the code down while I still had a chance.
I’ve pushed two more commits, one making Builder optional in order to futilely seek zero dependencies, and one to unbreak Builder on cfg(not(any(unix, windows))) platforms, e.g. wasm32-wasi should work now instead of panicking (untested), and anything else that’s also not wasm32 should work instead of not compiling. (When I flip the unix and not(unix) on fill_platform_from, the tests still pass; not sure how much weight to put on that, though—clearly nothing’s testing fine mode preservation.) Details in commit messages. This branch name is now silly. Such is life.
Up to you what you do with this. If you decide you don’t like splitting out an optional builder feature, I hope you at least consider the fill_platform_from patch (with the very minor changes required to disentangle it).
This was fun, even if you don’t like it all. 🙂

Is there any particular reason for making the dependency optional?

It’s just because major use cases don’t actually use filetime (e.g. I’m using tar and reading from the tarball without unpacking), so I think it’s nice to remove it from the dependency tree proactively rather than having to compile it and then wait until later in compilation or linking to confirm that it wasn’t actually used. (Mildly related: that’s been a pet peeve of mine in license-scraping tools: they don’t recognise when nothing actually gets used from a crate, like this.) It’s the principle of the thing, keeping things lean deliberately so that the compiler can definitely avoid needing to compile unused dependencies. Otherwise, why is xattrs marked as optional?

Also, filetime now pulls in windows-sys, which is a large dependency that is still a moving target, so many crates also depend on different versions of it.


Add Viscosity Formulation as per Moris et al.

The only other classic formulation that we are missing that is used for Low Reynold Number flows.

@efaulhaber Please check the equation i think it was wrong in the first version.


Fix py3k regression in 0.8.3

.items() works in both.  This dictionary won't ever be especially large,
so the performance hit for not using an iterator in py27 is negligible.
If you really want, I can pull in six.iteritems() but I didn't see any other uses of six so I didn't want to introduce a new dependency.

If this is good to go, can we get a 0.8.4 as well?  Thanks.

Looks fine, the tests are passing. If you are interested in python 3 compat you might be interested in #80 because I think we are not running python3 tests... :(


Specify both a max width and height when scaling

Hi,
Say there is a site that has a "fixed" image placeholder of 640 (w) x 480 (h).
If I set scaling.sizes: maxSize option to 640 and upload a 5500 (w) x 3010 (h) image; it will be scaled to 640 (w) x 350(h). This is OK as it doesn't go over the website placeholder max width.
But if I upload a 3010 (w) x 5500 (h) image; it will be scaled to 350 (w) x 640 (h). That means it goes over the image placeholder max height. It should be scaled to 263 (w) x 480 (h).
So is it possible to set max width AND height?
Thanks

We can probably address this by adding checking for a maxWidth or a maxHeight option if maxSize does not exist. However, we will have to take into account the image orientation based on the EXIF data before acting on either of these new options. Seems like this won't be terribly difficult, but the scaling feature is complex enough that a lot of other issues could appear as a result of this change, along with other unexpected challenges.
At the moment, this is a low-priority feature as it has only been requested by one user and I don't see this as an exceptionally important adjustment. As such, I don't have a planned release date or version at the moment.

Fair enough. You have already done an amazing job. So thanks a lot.

Just a bump to this, I see it's added as a low priority but it would be really great to specify max width and max height separately.


The ai model that beamng provides for user can avoid background vehicle?

Does the officially implemented self-driving model have the function of avoiding vehicles? In the API reference, I only found the API for driving correctly according to the lane. I don't know if the function of automatic collision avoidance has been implemented.

Hi,
the AI includes (limited) collision avoidance by default, which is not configurable.


update to private secp256k1 dependency

Depend on patched version of secp256k1 instead of stale upstream

@ptescher I don't have merge access for this


Highlight modified tabs

Hi,
I would like to include a setting for highlighting modified tabs. Just the circle is not enough clear (for me). In Sublime Text for example there is a setting:
"highlight_modified_tabs": true
Just adding a CSS like this:
.tab.dirty .label-name {
    color: #ffcc66;
}

When the setting is true.
Thanks a lot.

// fyi @bpasero @aeschli

Perhaps now this change would be easy to implement thanks to the setting "workbench.colorCustomizations".
Thanks a lot for your job.

@javifm86 excuse me, could you tell me which option you choose to change the color of modified files in  "workbench.colorCustomizations". I searchd "highlight_modified_tabs" and found this issue.

@Charon3coins this thread is a feature-request. The option to change color for modified tab does not exist yet.

@javifm86 thx (:D

Why was this issue closed?

is this ever going to be implemented? I like the top of the tab to be colored, not just the little dot that changes to the "x" close button when you mouse of it.

bump +1

... May 9, 2017 ... Bueller?

Is there a workaround currently to highlight modified tabs?

... April 2018 ... Bueller?

+1 please

+1  (or maybe +much more...)
I find it incredibly annoying modified tabs aren't highlighted.
I can hover over each tab and see if a dot or an x appears, but that requires extra work (and I might forget).
I can open the 'open editors' on the left (which I usually have hidden...) but that's also extra work (and I might forget...).
The editors icon on the left does show how many dirty files, but I open lots of temporary files for notes and terminal dumps and so on.   So when I see '5' there I don't know if they're real source files or just temporary files - which I might actually want to keep, so I don't want to just save them as "temp1,..." - and that's extra work, too...
Please you do extra work (I'll say thank you!  :) so I don't have to!
Mostly I like VSCode.  It's become my everyday editor-of-choice.
Btw, one of the absolutely critical features was having a Portable Apps version - I'm moving almost exclusively to portable apps.  Thank you, Gareth Flowers!

+1 again

+1 again

+1, please! 👍

another vote here :+1:

... one more ...

+1

bump!

Workaround :

Install extension : extension/be5invis.vscode-custom-css

Add to settings :

  "vscode_custom_css.imports": ["file:///Users/whoami/.vscode/custom.css"],

Create file /Users/whoami/.vscode/custom.css :

.tab.dirty {
  border-top: 2px solid #79a5d9;
}

The circle has little visibility.
+1

Thanks to @usernamehw this is now in:

New colors for theme authors:

tab.activeModifiedBorder
tab.inactiveModifiedBorder
tab.unfocusedActiveModifiedBorder
tab.unfocusedInactiveModifiedBorder

Setting to enable this: workbench.editor.highlightModifiedTabs (off by default)

I'm curious why this is Closed when it's only partially implemented?
I currently use the same plugin @qkdreyer mentioned above to modify the CSS for tabs, thus:
/* Highlight tabs with unsaved work more visibly */
.tab.dirty {
    background-origin: border-box;
    background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 6px, /* 8px */
      #2036b4 9px /* #465298 9px */
    );
}

Why not simply allow custom CSS as originally requested?

I kind of agree with @MartinFalatic. I prefer to change the colour of the circle inside the tab not a border colour.


parallelize uploads and downloads in stage 1 (host filtering)

examples available in stage 2

started looking at this

partly addressed in #174


Having problems creating another feature module

I am having issues when creating another feature module.
Currently there is this PagesModules with PagesRoutingModule and I wanted to create a Customer one.
I tried creating files manually and with using ng g m customers --routing
Both modules (PagesModule and my new CustomersModule) are imported in appModule.
Routing module has this definition
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
Module has this definition:
@NgModule({
declarations: [DashboardComponent],
imports: [
CustomersRoutingModule,
RouterModule,
ThemeModule,
NbMenuModule,
DashboardModule,
NbButtonModule,
NbTabsetModule,
NbCardModule,
NbTreeGridModule,
NbSearchModule,
NbUserModule,
NbActionsModule,
NbRadioModule,
NbSelectModule,
NbListModule,
NbIconModule,
NbInputModule,
NbTableModule,
NbLayoutModule,
Ng2SmartTableModule,
]
})
export class CustomersModule { }
app-routing module has these routes (my module also added to lazy loading)
{
	path: 'pages',
	loadChildren: () => import('./pages/pages.module')
		.then(m => m.PagesModule),
},
{
	path: 'customer',
	loadChildren: () => import('./customers/customers.module')
		.then(m => m.CustomersModule),
},

Customers module has one base component that should contain the router-outlet and this is where the issue occurs
import { Component } from '@angular/core';
import { MENU_ITEMS } from '../pages/pages-menu';
@Component({
selector: 'ngx-customer',
styleUrls: ['customers.component.scss'],
template:     <ngx-one-column-layout>       <nb-menu [items]="menu"></nb-menu>       <router-outlet></router-outlet>     </ngx-one-column-layout>  ,
})
export class CustomersComponent {
menu = MENU_ITEMS;

}
because, i get an error that router-outlet is not a known component, which means that my component does not know about the RouterModule.
Is there any other place where i need to setup some configuration if i want to create a new feature module?
Would really appreciate if you guys could shed some light on my issue, spent already too much trying to fix this.

What is the solve of this?


add removed lines

@pawelRytwinski Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@pawelRytwinski Thank you for signing the Contributor License Agreement!


Bugfix/qr fix 286

Submisison Checklist

[*] Run unit tests: ./runTests.py test/unit
[*] Run cpplint: make cpplint
[*] Declare copyright holder and open-source license: see below

Summary:
Fix segfault when qr_R is called on a non-square matrix
Intended Effect:
Prevent the aforementioned segfault
How to Verify:
Run ./runTests.py test/unit/math/prim/mat/fun/qr_R_test.cpp
Side Effects:
Doesn't segfault
Documentation:
Needs another pull request for stan
Reviewer Suggestions:
Anyone
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Benjamin Goodrich
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Looks good.  If I can make one request: in test/unit/math/prim/mat/fun/qr_R_test.cpp Line 16, store qr_Q(m1) and qr_R(m1) in temporary matrices constructed with explicit sizes as m2 is on Line 15.  That way the test can check for the right dimensions of the individual components and it provides some implicit doc as to what dimensions to expect from each term in the decomposition.

OK. I did that in 2c8439a, although I think Eigen will resize matrices. I have another PR ready for Stan with the doc changes as soon as this PR is merged.

Perfect -- let's merge after tests pass.


Update motivation.rst

The last merge never triggered the merge CI/CD. I'm hoping that was because the repo was private and now that it is public, this small change will trigger it.

🚀 [bumpr] Bumped! New version:v1.0.0 Changes:v0.1.21...v1.0.0


Icons/emojis not rendering properly

Hi folks, the icons on the sidebar are looking like this for me:

The terminal emulator is Kitty. Running on an M1 Mac. Thoughts?

Your font doesn't support icons.
Reproduce the issue with one of these fonts: https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode/Regular/complete
this is not an nvim-ide issue so closing.


Create EmbeddedContentConsumer component to interface with embedded iframe content

Progress

[ ] Design Input
[ ] Expected Behaviour
[ ] Tech Design
[ ] Development
[ ] Functional Validation
[ ] UX Validation
[ ] Released

Feature / Enhancement Request

Future React applications will need to embed iFrame content into themselves in order to present non-React content. However, we still want content in those embedded frames to communicate to their containing applications (using a messaging system like XFC) in order to drive workflows.
I would like to develop a generic EmbeddedContentConsumer component that will mount an iFrame within itself using XFC and handle the generated messages in a standard way.
Expected Behavior
I have an (admittedly out of data) example in this branch: https://github.com/cerner/terra-clinical/blob/pdf_redux/packages/terra-clinical-application/src/patient-app/embedded-content-consumer/EmbeddedContentConsumer.jsx
Ideally, the EmbeddedContentConsumer (better names welcome :D) would have a simple prop API:

src - The URL for the iFrame's src attribute
handlers - An Object mapping message names to function handlers

When the EmbeddedContentConsumer mounts, it will mount the iFrame using XFC and establish communication with the Provider in the iFrame content. Then, when the Provider dispatches messages back to the EmbeddedContentConsumer, the EmbeddedContentConsumer will use the message name to lookup the proper handler from the handlers prop and will call the handler with the message payload as a parameter.
This would allow more opinionated components to wrap the EmbeddedContentConsumer and provide specific URLs and handlers. We may wish to include some default handlers in the EmbeddedContentConsumer itself, but I'm not sure what those defaults would be at this time.
The above linked branch also includes a EmbeddedContentProvider: https://github.com/cerner/terra-clinical/blob/pdf_redux/packages/terra-clinical-application/src/patient-app/embedded-content-provider/EmbeddedContentProvider.jsx
Theoretically, React content in the iFrame could be wrapped in that component and have the bootstrapping handled automatically. Non-React content would have to handle the bootstrapping separately (but in a similar way). I'm not sure a component like EmbeddedContentProvider is necessary at this time, but I'm documenting the prototype here to hopefully give everything a bit more context.

+1

Closing this issue. This component was added to the terra-core repository in this PR https://github.com/cerner/terra-core/pull/737


Code sharing

Looking forward to seeing the code. When is the code expected to upload?

Thank you very much for your interest. The coding is expected to be completed by the end of 2024 May.


Looking for maintainers

I am not using flutter anymore. If someone wants to maintain this, I can give the required permissions.

Hi, I currently use this repo for managing flutter plugin. I offer as maintainer.

@oae have you considered https://github.com/asdf-community/.github#how-do-i-move-plugins-here ?

Also volunteering to maintain this repo. Would be nice to resolve open issues and get this into asdf-community again (at least I believe it was there at some point) as @missingcharacter mentioned.

Hi, I have created an issue here https://github.com/oae/asdf-flutter/issues/39

Correction issue is here

@oae
I'm interested in this issue.
I want to join maintainer, and move this to asdf-community https://github.com/orgs/asdf-community/discussions/56

I've joined the asdf-flutter maintainer, and work is currently underway to move this to the asdf-community.
The move to asdf-community is complete when the following are merged: Please wait.
https://github.com/asdf-community/infrastructor/pull/157
I want to contribute to this project as one of the maintainers after this move work.
It's been a while since the latest issue or pr was published.
@oae @ciccioska @ugurcoskn
Please let me know if you have any advice or things to be careful about as a maintainer.

I've joined the asdf-flutter maintainer, and work is currently underway to move this to the asdf-community.
The move to asdf-community is complete when the following are merged: Please wait.
https://github.com/asdf-community/infrastructor/pull/157

today, that pr was merged. maintainer is moved to asdf-community.


Spelling mistake

In the description of the repo, it says "SEC fillings" instead of "SEC filings".

Fixed. Thanks for the report!


[Bug]: On adding a partial evaluation in the table filter, the results being fetched are incorrect

Is there an existing issue for this?

[X] I have searched the existing issues

Description
On adding a partial evaluation in the table filter, the results being fetched are incorrect
Steps To Reproduce

D&D a table widget
Deploy the app
Add a valid condition in the filter
Add a partial condition (without any attributes)
Notice that on adding the second filter, the data which is being fetched is incorrect

Public Sample App
No response
Issue video log
https://www.loom.com/share/f051a226e2484f3db350c6e5cc882d28
Version
Production

Not an issue, discussed with laveena


Do not toggle rule 'interface-over-type-literal' for mapped types

Bug Report

TSLint version: 5.17.0
TypeScript version: 3.5.2
Running TSLint via: Atom

Reproduction using TSLint Playground
https://www.typescriptlang.org/play/#src=type Keys %3D 'option1' | 'option2'%3B
%2F%2F TSLint%3A Use an interface instead of a type literal. (interface-over-type-literal)
type Tflags %3D { [K in Keys]%3A boolean }%3B

%2F%2F BUT the mapped type cannot be used for interfaces
interface Iflags { [K in Keys]%3A boolean }%3B

TypeScript code being linted
type Keys = 'option1' | 'option2';
// TSLint: Use an interface instead of a type literal. (interface-over-type-literal)
type Tflags = { [K in Keys]: boolean };

// BUT the mapped type cannot be used for interfaces
interface Iflags { [K in Keys]: boolean }; // error

with tslint.json configuration:
{
    "defaultSeverity": "error",
    "extends": [
      "tslint:latest",
      "tslint-config-airbnb",
      "tslint-config-prettier"
    ],
    "jsRules": {},
    "rules": {
      "trailing-comma": [true, {"multiline": "always", "singleline": "never"}],
      "align": [false],
      "max-line-length": [true, 120],
    },
    "rulesDirectory": []
}

Actual behavior
TSLint throws a warningUse an interface instead of a type literal. (interface-over-type-literal)
Expected behavior
TSLint should recognize this as a mapped type and not throw a warning

Hi @wischli - I wasn't able to reproduce the error using TSLint playground. It seems that the current rule already uses isTypeLiteralNode from tsutils to exclude mapped types. In actual tests, it does not seem to lint mapped types as well.
Could you post a more detailed description of how you get the error?


Could you remove it?


No reward sia coin  for node work

Hello!
I have running node:

General Info:
Connectability Status: Host appears to be working.
Host Internal Settings:
acceptingcontracts:   Yes
maxduration:          25 Weeks
maxdownloadbatchsize: 17.83 MB
maxrevisebatchsize:   17.83 MB
netaddress:           <IP_ADDRESS>:9982 (automatically determined)
windowsize:           24 Hours
    collateral:       100 SC / TB / Month
    collateralbudget: 100 KS
    maxcollateral:    5 KS Per Contract

    mincontractprice:          1 SC
    mindownloadbandwidthprice: 25 SC / TB
    minstorageprice:           50 SC / TB / Month
    minuploadbandwidthprice:   1 SC / TB

Host Financials:
Contract Count:               41
Transaction Fee Compensation: 0 H
Potential Fee Compensation:   41 SC
Transaction Fee Expenses:     0 H
    Storage Revenue:           0 H
    Potential Storage Revenue: 2.451 SC

    Locked Collateral: 679.7 SC
    Risked Collateral: 4.903 SC
    Lost Collateral:   0 H

    Download Revenue:           0 H
    Potential Download Revenue: 5.569 mS
    Upload Revenue:             0 H
    Potential Upload Revenue:   17.13 mS

RPC Stats:
Error Calls:        391
Unrecognized Calls: 7641
Download Calls:     53
Renew Calls:        0
Revise Calls:       4369
Settings Calls:     352186
FormContract Calls: 284
Storage Folders:
Used        Capacity      % Used    Path
8.431 GB    299.842 GB    2.81      /datadrive/siadata
8.703 GB    14.764 GB     58.95     /home/slavenin/Sia/storage

node uptime
11:29:23 up 51 days,
but in my transactions only negative values

[height]                                                   [transaction id]    [net siacoins]   [net siafunds]
120213   a7c117aa8ef008ac076400044227a7a51c41816ea643137578362ad4096b2952         470.00 SC             0 SF
120213   371982ac23c604228de0ce5138d8dcf1b5ea50e398eb0f8c70bfd386cebfb61a           0.00 SC             0 SF
120213   b16c02de13418a9b32d3edb170580bafc5db1e36f0f529e3658b4b8ab0c80769          -0.02 SC             0 SF
120214   bbf9a9bc23ee20e9aa3a75a6e0295ebbaba77a5c0b6c8fc612d3ebcee3c75689           0.00 SC             0 SF
120214   768197b51728934040faed628f489297be7824b06b8bcb314126ed745a3c0d64          -0.02 SC             0 SF
120348   c0344cb08d7dc225fb771416c120e2bdba726dba91fa0b43da9b3f00f925d305           0.00 SC             0 SF
120348   75c731e3d12b4f5adbddecf3cf690784809d773d063559c970a7091523900175          -0.02 SC             0 SF
120956   51679eb8a74e364af6bb670ee73e9edb68cc31bf2e11a27bff2379c42daf9e83           0.00 SC             0 SF
120956   5a96624d606856406c463ce69116fff8727386231dae60dc32d47976856e1ae1         -11.14 SC             0 SF
121042   4172bc7fdb7e9c3735e11123f5b349af3a0836a39cb18f0efb575f80946c1e0a           0.00 SC             0 SF
121042   e9e71f8ee18b30174ff6979f4d26ccdc86a798a1518e674a71873b7931971b24          -1.74 SC             0 SF
121269   1e5f4549621644b22249dd71c978a684da5f0da60659f10e679a097fae8cf306           0.00 SC             0 SF
121269   33d050c40c23ed1e69e5afb4bf45b2ff6e1d5180100c4f9cd18ebe97cc0ce302          -1.41 SC             0 SF
122010   281b2ab4d495da9d56bd10afb7f8a908a94a8f5da39cd89ced11ffa32169fa65           0.00 SC             0 SF
122010   f072044e86adf3277f5e6d3e37bfcde74afbbbf18fb46ba6fc32abedea46ae1a          -2.93 SC             0 SF
122372   5c3edaebd705ac98c7a7fa6d623b8bdba2dff6ff346f885eb7a8db4a6c38f976           0.00 SC             0 SF
122372   f856babcd8f8b001d87738bbb4f74bf68ec6f9d4f1c8bfe8d02573a418d6148f         -25.94 SC             0 SF
122429   666a364b16ececa41b5297338c808ea02020e8d936447822ee507fe270e1c783           0.00 SC             0 SF
122429   d5251256e86c9c1ccc43354c9284e282b18186f6c28e21c09a109e356d2d7355          -1.29 SC             0 SF
122580   fbccc10a423d6abf6fef4659e9e3c763d789839d6590d28ed128dde49c67a334           0.00 SC             0 SF
122580   c745e6705a263c4a8bb86eeab4e7300516a12a945145573625a4cdc2990e7af9        -340.56 SC             0 SF
122655   8aae46700e58099d2131dda8ce55c4183ca8e6a98dd692408908a8acd30737c9           0.00 SC             0 SF
122655   a1f662e3f98abce7c113e29db1e30ee16a4c8ccedc3d1895d96772fd59863f50         -11.61 SC             0 SF
122728   02177f55ca79d5bf59120b3b041b92f6d6a0c14839895374234e4476a6741903           0.00 SC             0 SF
122728   49ac9cfeecbfd3839d225c917692af70f1c17b6923e3d11caed31e992b05b5d7         -70.65 SC             0 SF
122945   5cbf7c67f35347479cc0e16a733641e2d9a332bfe4679a70e5326c4251073399           0.00 SC             0 SF
122945   e7fda978427adc711a62146a0dd07121363d9e0bdddb2b3145d690dd623f9085          -0.84 SC             0 SF
123971   b08af12c596275b29850f66bd859d8bd08698f70dc621464be0dd0f2ee9a7f31           0.00 SC             0 SF
123971   02c5c9bdf9ab622be2547fe5b3d74057a0335ad86f5dc7c051cdf068d1f52b82          -1.28 SC             0 SF

Why i not receive reward for node work?

I have seen same behaivor. Check host.log for possible missing storage proof.
At the end of contract duration if host fails to create and post to blockchain storage proofs it will not be paid and in an addition will loose collateral frozen in contract.
And check related issue: https://github.com/NebulousLabs/Sia/issues/1862

This looks related to #1862 and the issues linked there.
Recommendation to devs: close

In my host log no errors about missing storage proof.
Errors are divided into the following categories:

2017/08/26 17:46:31.079183 errors.go:151: communication error: error with IP: incoming RPCFormContract failed: contract verification failed: renter proposed a file contract with a too-long duration

2017/08/31 05:22:33.002979 errors.go:151: connection error: error with IP: incoming RPCReviseContract failed: revision iteration failed: could not read renter transaction signature: EOF

2017/08/31 20:44:02.299952 storageobligations.go:392: Failed to add storage obligation, transaction set was not accepted: consensus conflict: provided transaction set is standalone and invalid: transaction spends a nonexisting siacoin output

2017/08/31 20:45:17.648449 negotiate.go:257: consensus conflict: provided transaction set is standalone and invalid: transaction spends a nonexisting siacoin output

I think that problem in last errors, but i not understand what does it mean...

Perhaps related to https://github.com/NebulousLabs/Sia/issues/2138?


Add SSLMode for PostgreSQL

Description of your changes
Reviving https://github.com/crossplane-contrib/provider-sql/pull/40
Adds SSLMode option to ProviderConfig for PostgreSQL.

Fixes #
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
make reviewable test

cc/ @turkenh @negz

@jdotw I just did a rebase and included the suggestion to follow the default, please review my last commit, which changes the behavior a little bit.

forgot the test :roll_eyes:


Write up unit tests

Preferrably using the pytest framework.

This has been setup. The code base is not fully covered, but it's well on the way.


Immediate mode in modern opengl?

Hi
Is there an elegant way of drawing a numpy array of points or triangles for a basic visualization, without start from writing a custom shaders and compile it and go through all the 20 chapters of nehe tutorial?

pyglet already has lots of built-in classes that make it easy to work with shaders.
However, you can just re-use one of the default pyglet shaders if it suites your needs. For example, the shader for the shapes module. This shader only uses 2D positioning, but you can very easily extend it for 3D if necessary. To use it as-is:
import pyglet

from pyglet.gl import GL_TRIANGLES

window = pyglet.window.Window()
batch = pyglet.graphics.Batch()

# re-use an existing Shader Program:
program = pyglet.shapes.get_default_shader()

# Examine the vertex attribute details:
for name, meta in program.attributes.items():
    print(name, meta)

# Make data for three vertices:
position = ('f', (100, 100,  200, 100,  150, 175))                                  # count = 2, so (2 * 3)
colors = ('Bn', (200, 50, 50, 255,  50, 255, 50, 255,  50, 50, 255, 255))           # count = 4, so (4 * 3)

# Make a vertex list
vlist = program.vertex_list(count=3, mode=GL_TRIANGLES, batch=batch,
                            # attribute data is passed in as kwargs:
                            position=position, colors=colors)

@window.event
def on_draw():
    window.clear()
    batch.draw()

pyglet.app.run()

This chapter in the documentation goes into more details about this, but feel free to ask if something is not clear.
https://pyglet.readthedocs.io/en/latest/programming_guide/rendering.html

@benmoran56 Thank you very much. I found the example folder is a good way to start. I used the pyglet.model.get_default_shader(). But your recommendation is much better since it does not require lots of material setup.


Download from tags list error

Prerequisites

[Y] Did you read FAQ section?
[Y] Did you test with the latest releases or commit ?

Description
Version 20200824
I choose "7. Download from tags list", it will report error after config.
Version 20200726 does NOT have this problem, so I roll back to 20200726.
[LOG]
===log from screen===
Input: 7
Tags list filename [tags.txt]: 0.txt
Use Wildcard[y/n]: y
Oldest first[y/n]: n
Bookmark Count:
Start Page (default=1):
End Page (default=0, 0 for no limit):
Start Date [YYYY-MM-DD]:
End Date [YYYY-MM-DD]:
Reading: 0.txt
Reading D:\pixiv\tag downloader\config.ini ...
Configuration loaded.
Error at process_tags() at page 1: (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'startswith'"), <traceback object at 0x0B972E28>)
Error at process_tags_list(): (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'startswith'"), <traceback object at 0x0B979208>)
Traceback (most recent call last):
File "PixivUtil2.py", line 1555, in main
File "PixivUtil2.py", line 1259, in main_loop
File "PixivUtil2.py", line 942, in menu_download_from_tags_list
File "PixivUtil2.py", line 184, in process_tags_list
File "PixivTagsHandler.pyc", line 48, in process_tags
File "PixivHelper.pyc", line 992, in decode_tags
AttributeError: 'list' object has no attribute 'startswith'
press enter to exit.
===end log from screen===
==log from file===
2020-08-27 14:21:30,241 - PixivUtil20200824 - INFO - Premium User: False.
2020-08-27 14:21:30,241 - PixivUtil20200824 - INFO - Locale =
2020-08-27 14:21:32,222 - PixivUtil20200824 - INFO - Taglist mode (7).
2020-08-27 14:21:40,597 - PixivUtil20200824 - ERROR - Error at process_tags() at page 1: (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'startswith'"), <traceback object at 0x0B972E28>)
2020-08-27 14:21:40,597 - PixivUtil20200824 - ERROR - Traceback (most recent call last):
File "PixivTagsHandler.pyc", line 48, in process_tags
File "PixivHelper.pyc", line 992, in decode_tags
AttributeError: 'list' object has no attribute 'startswith'
2020-08-27 14:21:40,600 - PixivUtil20200824 - ERROR - Error at process_tags_list(): (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'startswith'"), <traceback object at 0x0B979208>)
2020-08-27 14:21:40,600 - PixivUtil20200824 - ERROR - Traceback (most recent call last):
File "PixivUtil2.py", line 184, in process_tags_list
File "PixivTagsHandler.pyc", line 48, in process_tags
File "PixivHelper.pyc", line 992, in decode_tags
AttributeError: 'list' object has no attribute 'startswith'
2020-08-27 14:21:40,605 - PixivUtil20200824 - ERROR - Unknown Error: 'list' object has no attribute 'startswith'
Traceback (most recent call last):
File "PixivUtil2.py", line 1555, in main
File "PixivUtil2.py", line 1259, in main_loop
File "PixivUtil2.py", line 942, in menu_download_from_tags_list
File "PixivUtil2.py", line 184, in process_tags_list
File "PixivTagsHandler.pyc", line 48, in process_tags
File "PixivHelper.pyc", line 992, in decode_tags
AttributeError: 'list' object has no attribute 'startswith'
===end log from file===

yep, got typo when migrating....

can try: https://github.com/Nandaka/PixivUtil2/releases/tag/v20200827-beta1

okay, will do, thank you so much.

v20200827-beta1 is okay, thank you so much.


Dynamically sized bytes type.

What is wrong?
Dynamically sized byte arrays are commonly used and can be found in the public interfaces of many contracts. For example, it's used here in the Uniswap core contracts. Since it's so common, we need to deal with it somehow.
See #258 for discussion about the future of bytes in Fe. For now tho, we may just want to add a type similar to stringN for practical reasons. We can always remove it at a future date.
How can it be fixed
The easiest way to support bytes would be to do what we currently do with strings. That is, set a limit on the size of the string, but keep it dynamic otherwise.

For the cited example, we would then use a type such as bytes1000 where 1000 is an arbitrary picked number that is considered "big enough"? And the reason for the upper bound is basically to maintain stronger decidability in the language, right?

Sorry for the late reply @cburgdorf, missed this.

For the cited example, we would then use a type such as bytes1000 where 1000 is an arbitrary picked number that is considered "big enough"? And the reason for the upper bound is basically to maintain stronger decidability in the language, right?

That, but it's also more easily implemented. Giving a max size keeps us from having to deal with multiple segments of memory.

Citing from your reply in #277

Without support for dynamically sized bytes, I'm not quite sure how this will be implemented.

Do you suggest that msg.data would be of type bytesN where N is a fixed number that we decide that should be big enough to hold the data?
If yes, then, is there even a limit or is the limit just bound by the max block gas limit?

Giving a max size keeps us from having to deal with multiple segments of memory

So I assume whatever bytesN ends up being we would reserve the entire space in memory for it. This means, even if we don't actually end up using it, we end up making memory more access more expensive simply because we reserved that space already.
Btw, it may be that Vyper doesn't support msg.data for this reason:

https://vyper.readthedocs.io/en/v0.2.11/constants-and-vars.html?highlight=msg.sender#block-and-transaction-properties
https://github.com/vyperlang/vyper/issues/1181

Do you suggest that msg.data would be of type bytesN where N is a fixed number that we decide that should be big enough to hold the data?

Basically, yeah. I think this is as good as it gets without getting too deep in the weeds.

If yes, then, is there even a limit or is the limit just bound by the max block gas limit?

We don't want to allocate too much space. It could just be some arbitrary number number like 1024. I imagine this would make due in most cases.

It's worth noting that I really don't like this approach, even if it's only temporary.
Maybe there's a completely different way of handling this. For example, we could add a special type that is used to write bytes from calldata into fixed size types.
pub def foo(some_bytes: cbytes) -> bytes[100]:
  bar: bytes[100]
  some_bytes.read(100, bytes[100])
  return bar

Just an idea.. The typing is still somewhat weird. msg.data would be of type cbytes.

Of all the times bytes is used in Soldity, I wonder which one of the following is most often the reason:

Programmer doesn't actually know the size of the bytes array at compile time.
Programmer cannot express fixed bytes array with size greater than 32.

It's worth noting that I really don't like this approach, even if it's only temporary.

Yeah, me neither. Choosing a limit that will fit most use case but not all rubs me the wrong way. Especially when these limits are choosen based on the current network use. What if that dramatically changes in a rollup centric world with higher gas limits and transactions with more calldata become the norm.

For example, we could add a special type that is used to write bytes from calldata into a fixed size bytes array.

This is what we should do, I think! But instead of the read API we can go one step further as Vitalik was suggesting in the Vyper issue.
We could introduce an API slice(offset, length) on cbytes that would let you read arbitrary chunks out of it.
Also, we might get away with not having to pass an array explicitly since we could infer the return type directly from the literals 0and 1. Though, that wouldn't work if non-literals where allowed here.
pub def foo(some_bytes: cbytes) -> bytes[100]:
  return some_bytes.slice(0, 100)  # returns bytes[100] based on the inputs of 0 and 100

We can tweak around with the exact APIs but I like this a lot more for!

Of all the times bytes is used in Soldity, I wonder which one of the following is most often the reason

Hard to tell for me.

Programmer cannot express fixed bytes array with size greater than 32.

As far as I understand you can have a fixed size byte array larger than 32 in Solidity (such as bytes[40]) but it would end up padded so I guess it would consume 64 bytes whereas using bytes would only consume the actual 40 bytes.


[FEATURE REQUEST] Playing two youtube videos at the same time

I would like to play N number of youtube videos in my application. I am creating an application that shows live events, I wish to have at least two at the same time. It seems that the current version doesn't allow that.

I'm having the same situation and the issue I've found it not the playing itself, as it is working correctly for multiple video, but the full-screen view is not working as it only takes the app into landscape but the video is not full-screened :(


Bad UX when ign-transport is misconfigured

I've spent an hour today figuring out why my ign topic -l output is empty while gazebo is running right next to it. Today it was IGN_TRANSPORT_TOPIC_STATISTICS. Earlier, I spent a day finding a forgotten remnant of ign-citadel (https://github.com/ignitionrobotics/ign-gazebo/issues/294).
In both cases, ign topic -l just sits there with its empty result and tells you everything's fine. With no clue whatsoever why is that.
I see two possible ways to improve this:

Prepare a static stderr message that would be printed every time the output of ign topic -l is empty.
Implement some clever fallback/autodetection that would automatically try different installed versions of ign-transport, different values of IGN_TRANSPORT_TOPIC_STATISTICS and whatever is added in the future. If it succeeds with some of these fallback settings, it should tell the user exactly what are his/her options to fixing that.

This is just about ign topic -l (and also ign service -l). Maybe there are other CLI tools that would make use of such improvement. But from my experience, when things go haywire, ign topic -l is among the first things I try to diagnose the problem.

Spent a couple hours with gdb tonight figuring out the IGN_TRANSPORT_TOPIC_STATISTICS issue, wish I saw your post earlier :smiley: . At a minimum, it would be nice to have some error indicating there is a version mismatch rather than silently dropping the mismatching discovery packets with no indication of error.

Had one thought on this: maybe the existing IGN_VERBOSE environment variable could be used to enable more detailed debug information such as a version mismatch (e.g. by setting IGN_VERBOSE=2).

@peci1 , could you give it a shot? https://github.com/ignitionrobotics/ign-transport/pull/245

Fixed by #245 and released in 9.1.1 .


[Feature] Table widget: select all rows across table pages.

Summary
Need a way to select all rows across table pages.
In a table with multirow selection and multiple pages, if I press the checkbox in the table header, I would expect it to select all the rows in the table instead it selects only the rows in current page. :tired_face:

It is also not possible to select the various pages with the "select all" checkbox because each selection cancels the previous one.

https://github.com/DevSnap/appsmith/commit/529332b4182d613ff409c6705e0c3bc24708cad3
It works and seems trivial..
Anyway this is my first attempt to contribute to an open source project (but I don't develop in react :laughing:), so there's probably something missing.
I need this to release an appsmith app into production. :heart_eyes:

Hey @DevSnap 👋 , Thanks for taking the time to contribute to Appsmith. 😄  Can you please create a pull request in the Appsmith  repo against the Release branch and request for a review from me or anybody in the team. We will then be able to take this forward quickly. Let me know if you have any challenges

I'll add some details about the use case. @somangshu
I have a table with a large amount of rows and external filters.
After applying a filter I would like to perform an action on all rows.
With the current behavior this is inconvenient because:
a)

It is also not possible to select the various pages with the "select all" checkbox because each selection cancels the previous one.

b)
I can't trigger the select action in all rows from an external button.
For point "a".
In ant design instead is possible. (https://ant.design/components/table/#components-table-demo-row-selection-and-operation)
Personally as a user I would expect to select ALL rows across table pages.
e.g.
https://material-ui.com/components/tables/#sorting-amp-selecting
https://www.gyrocode.com/projects/jquery-datatables-checkboxes/examples/styling/awesome-bootstrap-checkbox/

@DevSnap Thanks for the detailed explanation, While we are reviewing your PR, We also have another active issue #5634 where we want to solve multiple problems related to the mass selection from the design point of view.
In my understanding something like this would be apt 👇

We should verify this throughly, Regressions around table widget need to be avoided.
@mohanarpit @yatinappsmith this PR is contributed by an external dev, This PR CI workflow skipped the UI test and the server build, How can this be rectified?


Disclosure triangle is positioned incorrectly on iPad in landscape orientations

I expected the disclosure indicator to be all the way to the right as opposed to partially to the left, as shown below:

Strangely, it seems to work fine on the iPhone in all orientations.
This occurs with Xcode 7.0 and iOS 9 (both simulator and device).

Not sure whats going on. On the iPad the recommended setup is using it as a popover and it should work fine. I've never tryed to use it full screen on an iPad, and haven't tested for iOS9, so i'm not sure what is causing this problem.
If you wanna use it fullscreen and you fix this issue, feel free to PR.
Sorry and ty!

Good point about using it as a popover. We decided to do just that, thanks!


Proposal: Pool

Description

This proposal is to create an IRL project that makes it easy for friends to put funds together, create and manage a pool of funds. This can be used for fundraising among individuals in the same social group, participate in a gaming tournament. It not only facilitate pool creation but it control access by whitelisting participants, hosts and sponsors, as it has a sponsorship system where a sponsor can sponsor a particular tournament or project.

Bounty track

Social

OK. Approved. Make it work with KLAY and a mock stablecoin for now.


[JENKINS-37011] Allow StepDescriptor to define how single argument invocation gets handled

Allow StepDescriptor to define how single argument invocation gets handled. This is necessary to properly support Steps that do not have @DataBoundConstructor

This depends on https://github.com/jenkinsci/structs-plugin/pull/7

:bee:

Needs merge conflict resolution.

After discussion with Jesse:

[ ] prove that snippet generator works with this
[ ] test case that covers body closure
[ ] tests that demonstrate multiple and optional parameters

provisional :bee: (pending review of https://github.com/jenkinsci/workflow-cps-plugin/pull/34)

Does https://github.com/jenkinsci/workflow-cps-plugin/pull/59 render this obsolete?

Obsolete I think.


Fix library default config bug

A bug was introduced in bd06d2447b296546c1940c18453313d344216af7, where hardhat would always recompile because the solc cache entry differed from the input solc. One would have libraries: {} and the other would not include that setting.
This was due to adding libraries: {} to the default config and then later checking:
if (config.zksolc.settings.libraries) {
    input.settings.libraries = config.zksolc.settings.libraries;
}

Which will always evaluate to true and updates the input settings. I removed libraries from the default config but another option is to just change to check that the object has keys in the above if statement instead of checking that it exists.

Thanks @ly0va, can you also publish a release whenever you get a chance?

@mikemcdonald Published! Thanks!


We should wrap known error types properly so the user can handle them

Currently, we are improving all error messages using fmt.Errorf("some improved explanation: %s", err), however, this is causing known error types like context.Canceled to lose their identity preving the use of tools like:

errors.Is()
errors.As()

from the errors package from the standard library.

This was implemented and is available since 1.5.1


Update snyk to 1.165.1

:tada: This PR is included in version 1.3.8 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Always on top?

Love this extension, but
can the popout Always on top of other windows?

Nope. That's not how Chrome extensions work. But you can use third party software to do this. if you're on Windows I've heard good things about DeskPins.


[GSSOC'21] Longest Increasing Subsequence

Hey,
I am a GSSOC'21 participant, I would like to add a problem - longest increasing subsequence in an array in DP section in C++
@tarun26091999 Can you please assign this issue to me.
Thank you

Hi,I'm a GSSoC participant.
I wish to add the implementation of Longest Increasing Subsequence in Java.

Hey @rudrakshi99 @nakul-19
I am a GSSoC'21 participant. I would like to do this problem in python.
Can you assign me this issue

Hey, I am Kanchan Jeswani, a GSSOC'21 participant.
I am a Competitive Programmer and C++ enthusiastic.
I would love to solve this problem using CPP with well-explained code and along with its time and space complexity.
Please assign me this issue.
Hope to hear from you.
@anubhavitis @dheerajkotwani @tarun26091999 @todi-2000 @geekquad @plazzy99 @rudrakshi99


ubuntu user = nobody inside the container

Required information

Distribution: ubuntu
Distribution version: 16.04

Issue description
Since I migrated containers to new and fresh host, I realized that my ubuntu user permissions inside the container changed. I made some changes on my lxc configuration, I did some tests as well (sharing storage from the host, I played with subuid/subgid, etc, dir/zfs, storage, etc)
Information to attach
I am sure good eyes will see how I can fix that...
Could you tell me what are the right permissions to set both on host and container to fix it ?
inside the container
ubuntu@wt-node-04:~$ lxc config show u1
architecture: x86_64
config:
  image.architecture: amd64
  image.build: "20170728_03:49"
  image.description: Ubuntu xenial (amd64) (20170728_03:49)
  image.distribution: ubuntu
  image.release: xenial
  volatile.base_image: 09c69deb97c721ebc74fb0e78d62c19b9ee180bc006c8704b64be998c0a32c75
  volatile.eth0.hwaddr: 00:16:3e:49:c1:7f
  volatile.eth0.name: eth0
  volatile.idmap.base: "0"
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.power: RUNNING
devices: {}
ephemeral: false
profiles:
- portdmz-m

root@u1:~# cat /etc/subuid
git:165536:65536
ubuntu:100000:65536

root@u1:~# cat /etc/subgid
git:165536:65536
ubuntu:100000:65536

root@u1:~# ll /home/
total 4
drwxr-xr-x  3 root   root     3 Jul 28 05:56 ./
drwxr-xr-x 21 root   root    21 Jul 28 05:55 ../
drwxr-xr-x  7 nobody nogroup 13 Oct  1 13:02 ubuntu/

from the host
ubuntu@host-01:~$ ll /var/lib/lxd/storage-pools/default/containers/u1/rootfs/home/
total 4
drwxr-xr-x  3<PHONE_NUMBER>00  3 Jul 28 05:56 ./
drwxr-xr-x 21<PHONE_NUMBER>00 21 Jul 28 05:55 ../
drwxr-xr-x  7 ubuntu ubuntu 13 Oct  1 13:02 ubuntu/

Hi. This happens because you don't have in your container u1 a user who's uid (respectively gid) that exists and maps to your user/group defined on your host.

Hi,
Yes I know ! But do you know how can I fix this ?
ubuntu user permission is suppose to be 1000 by default, so :
root@u1:~# id ubuntu
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),27(sudo)

seems to be normal, in my point of view....
How can I find back the good relation between my host and my container ? that is my question :-)

Based on your map, all uids/gids in the container are offset by 100000 compared to the host.
So to have something appear as owned by uid 1000 in the container (ubuntu user), it'd have to be owned by uid 101000 on the host.

chown -R 101000:101000 /var/lib/lxd/storage-pools/default/containers/u1/rootfs/home/ubuntu/
should fix it assuming that the entire home directory is supposed to be owned by the ubuntu:ubuntu user/group (likely).

Closing as this isn't an actual LXD issue. The most likely way you'd have ended up in this case is if you had something directly copy from /home/ubuntu of your host to the container without also remapping all uid/gid during the transfer.
It could also have been the result of a since-reverted LXD bind-mount + hole punching (attempt to mount /home/ubuntu from the host into the container), in either case, the command above should fix things for you.


[wrangler] update unenv

What this PR solves / how to test
Update unenv to the latest available version.
When I created #6589 earlier today, I realized that unenv-nightly hadn't been updated for 1 month.
Thanks to @pi0 the issue was fixed quickly and a new version was released.

Thanks all for the help here!


fix(common): Ensure building async factory before PlatformModule

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

v6.56.1
GitHub release

Your semantic-release bot :package::rocket:


PR: Support 'alias mode' for generating the .app bundle in OSX

On OSX, py2app has the ability to create an app in 'alias mode', in which the generated app is just a bare-bones wrapper to launch code from the user's python environment.  This is useful when launching Spyder from an Anaconda environment, for example.  (See ContinuumIO/anaconda-issues#634.)
To generate the alias-mode app, use this command:
python create_app.py py2app --alias

Then try it out:
open dist/Spyder-Py2.app

I did not edit the conda.recipe, but I think it might be a good idea to do so.  For now, you can find an example recipe that generates the alias-mode app in a separate PR: conda/conda-recipes#560
BTW, To get this to work, I had to make a few bug fixes.  Please review those commits carefully.  In particular, you should scrutinize b81e6d0:
    start_ipython_kernel: Add current directory to ipython sys.path as an absolute path, not ''

For some reason, the ipython kernel was not starting properly in my build.  Some obscure code in setuptools.pkg_resources was raising a ValueError, complaining about the current directory.  By changing it to an absolute path instead, the error disappeared.  But using os.getcwd() is not quite the same as '' in this context, because in the resulting ipython kernel, the user won't be able to change the effective sys.path by merely typing cd.

@stuarteberg, you PR has conflicts. Could you rebase it or merge it with master to update it?

We have decided to provide an app structure for Spyder in the menuinst package:
https://github.com/ContinuumIO/menuinst/
Thanks for your work Stuart!


Input validation before creating an eFormidlings "shipment"

Description
I would like to suggest a small improvement to the eFormidlings client and business logic during the steps right before creating a shipment. The logic would need to look at the instance and its data elements to determine if a shipment can be successfully generated.
The first and most critical validation step would be to check for more than one attachment with the same filename. The integration point for eFormidling gives off an error message and crashes the process if the app is attempting to upload a file with a name that match an earlier upload.
The application owner can add logic like this themselves, but this one example should be built in I think.
Additional Information
I created this issue here in this repo even though I'm not sure exactly who it is that owns the eFormidlings client code. The code is hosted in the altinn-studio repository for the time being. I do assume that this would require some changes in the app lib code as well.

I don't know much about eFormidling, but as far as I can tell this can be stopped at multiple stages.

file analyzer/validator that (barring race conditions) prevents a user from uploading duplicate file names.

normal task validation that prevents submission of attachments with duplicate file names. (User need to delete and reupload with unique names)

logic in the preparation of the message that changes file names to be unique (eg add -1 postfix when required)

use the element id (guid) instead of the file name from the upload request.

(also suggested) provide a way to make the file names on the instance unique when uploading. This is race condition prone.

logic in the preparation of the message that changes file names to be unique (eg add -1 postfix when required)

I think this is the suggestion we're considering. Will investigate


Add rust implementation of trim functions.

addresses 2/40ths #334
These were related and small so I did them together.

Coverage increased (+0.009%) to 39.822% when pulling 3116e9f858d0eec401902cc6aa05c7aeef595cc2 on zaowen:to_u into 4575c3176d557fb548823d2a3d8e64c67da77122 on newsboat:master.

Gonna get to this tomorrow. Things came up and I haven't had time.

No problem! Life happens, take your time.
On Wed, 31 Oct 2018, 06:38 Zarthur<EMAIL_ADDRESS>wrote:

Gonna get to this tomorrow. Things came up and I haven't had time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/newsboat/newsboat/pull/342#issuecomment-434550125,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHQW_GGENzR11DHoP2V3f2F0BFslEcHks5uqRspgaJpZM4X7PiN
.

Thank you, @zaowen!


Expand RotaryEncoder usability for text input

Added double press threshold functionality
Implemented handling of double button presses
Updated processing logic for button press actions

https://github.com/user-attachments/assets/ca62671c-6c2e-4d55-a978-8d2c1a89b272
closes #194

Looks like *NavConfig's are already big enough and can be not just utils, but dedicated layer - Menu input:
Menu input -> Menu -> DisplayInterface.


Requirement of proper README.md

The issue has been created to highlight that a proper README.md is required for the project. For any discussion regarding the **README.md, kindly continue to this thread.

Accept the PR and close this issue VirtualRcoder.

Hey @cypher-naman, this README.md  still requires improvements. So, let this issue be open in case someone has to discuss regarding it or if someone suggests to add something.


Web interaction with loading files through the browser

@Jesper276 is this issue still relevant? parent issue is closed


Add adding a team member to bundlerbot

What was the end-user problem that led to this PR?
The "adding a team member" was missing adding the person to bundlerbot

@bundlerbot r+


Split SparkGenomeReadCounts into CLI and separate backend class

Closing, although perhaps @asmirnov239 should consider this in his rewrite of the coverage collection if it is relevant.


Trying to cast timestamp when report timezone is set

Timestamp are showing up always as set report timezone even when casted using at time zone.
Metabase report timezone is set to US/Pacific, results are correct for US/Pacific. However, does not show up correctly when I want to cast it back to UTC or any other time zone. The same thing if at_timezone function is used
Expected behavior:
_col1 and _col2 to show up as '2012-10-31 01:00 UTC' and '2022-01-01 00:00:00 UTC' respectively

For comparison, this is how the postgres connector would behave

Hi @kempspo, thats for reporting this.
Please provide some more details about your environment:

version of Starburst/Trino
version of Metabase
version of Starburst Metabase driver?

Trino Version: 401
Metabase Version: 1.44.5
Starburst Metabase Driver Version: 1.0.6

Please let me know if you need any other details

This seems to be a Metabase issue to me.
Datasource provides data (in 0/1 format) and BI tool presents them visually. Trino is able to transfer data correctly to Metabase but Metabase decides to show them all in the reporting timezone. You can cast the data at the data source level to force them to show in different timezones (usually is against best BI best practice though).
The following screenshot shows that DBeaver wants to show dt with timezone at client timezone, as Metabase does:

And the following screenshot shows that the ODBCTest tool simply displays the string representation as you were expecting:

@xsgao-github what you're saying makes sense, what leads me to believe it's a driver issue is because testing the same query on say a postgresql on the same metabase instance, the time zone casting works.

Issue is likely caused by this line: https://github.com/starburstdata/metabase-driver/blob/main/drivers/starburst/src/metabase/driver/implementation/execute.clj#L126
And we should also fix:
https://github.com/starburstdata/metabase-driver/blob/main/drivers/starburst/src/metabase/driver/implementation/execute.clj#L134-L138
We should try to convert following approach:
java.time.ZonedDateTime

After some further review, it turns out that the behavior seen is the correct one. Indeed, if we consider the first two columns:

Starburst returns the exact same timestamp albeit with two different timezones (2010-10-30T18:00-07:00[America/Los_Angeles] and 2010-10-31T01:00Z[UTC]), which is the expected behavior
The time zone is then converted by Metabase to the local time

So it makes sense that the first two columns return the same value. This was confirmed by Metabase (https://discourse.metabase.com/t/handling-of-timestamps-with-time-zone/23004)
Why is PostgreSQL showing a different result? It turns out that PostgreSQL "WITH TIME ZONE" behaves differently than Starburst's and actually modifies the timestamp. TIMESTAMP '2010-10-31 01:00 UTC' AT TIME ZONE 'America/Los_Angeles' returns 2010-10-31 08:00:00+00 whereas TIMESTAMP '2010-10-31 01:00 UTC' AT TIME ZONE 'UTC' returns 2010-10-31 01:00:00+00.

TIMESTAMP '2010-10-31 01:00 UTC' AT TIME ZONE 'America/Los_Angeles' returns 2010-10-31 08:00:00+00

@lpoulain You cannot use at time zone function to timestamp (without timezone), which caused a weird value here. TIMESTAMPTZ'2010-10-31 01:00 UTC' AT TIME ZONE 'America/Los_Angeles' gives correct values.
But I agree to cast all timestamp values to a single timezone is the correct choice. Otherwise, as Postgres driver does, it will bring more confusion - users have to link values back to their corresponding/various timezones, and joining data by timestamp in two different timezones will be very difficult.

To summarize here, the difference in behavior between PostgreSQL and Trino is due to the fact that although the queries in the examples look very similar, they return different data types.
SELECT timestamptz '2012-10-31 01:00 UTC' AT TIME ZONE 'US/Pacific'
In PostgreSQL, this returns a timestamp without time zone, in other words, a local timestamp that has no associated time zone information.  So AT TIME ZONE turns a timestamp with time zone into a timestamp without time zone (see https://www.postgresql.org/docs/11/functions-datetime.html#FUNCTIONS-DATETIME-ZONECONVERT - thank you to @mdesmet for providing the explanation).
SELECT timestamp '2012-10-31 01:00 UTC' AT TIME ZONE 'US/Pacific'
In Trino, this returns a timestamp(0) with time zone, so it's the original point in time with a different time zone.  Metabase displays this in the UTC time zone.


Sample replica connector tolerates f connection failures (v5)

I added more updates on #74:

use slice of api.MessageStreamHandler instead of map of it in struct ReplicaConnector for better synchronization
add input check in ReplicaMessageStreamHandler
remove orphaned error check in makeReplicaConnector

Updated with #76, so I close this item.