text:
Ability to mount host's directories in LXD containers in similar manner to fstab in LXC

From what I can see LXD is great when sharing devices between the host and containers.
When it comes to sharing directories though, the LXC method of mounting a directory in fstab does not appear to exist.
That is, in LXC, if you have a container named mycontainer you could:
echo "/mnt/mymount mnt/mymount  none bind 0 0" >> /var/lib/lxc/mycontainer/fstab
And then have lxc.mount = /var/lib/lxc/mycontainer/fstab in /var/lib/lxc/mycontainer/config.
Can directories be shared in LXD in a similar manner? I have not found any information regarding this so I am posting here as a question / improvement request.

My bad. Turns out it can be done using the disk device method!


text:
After setting security.privileged true for one of my containers and restart it, it hung and now lxd seems to be broken.

Required information

Distribution:
Linux ubuntu-s-2vcpu-4gb-ams3-01 4.13.0-32-generic #35-Ubuntu SMP Thu Jan 25 09:13:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Distribution version:
The output of "lxc info" or if that fails:

Kernel version:
LXC version:
LXD version:
Storage backend in use:

config: {}
api_extensions:
- storage_zfs_remove_snapshots
- container_host_shutdown_timeout
- container_stop_priority
- container_syscall_filtering
- auth_pki
- container_last_used_at
- etag
- patch
- usb_devices
- https_allowed_credentials
- image_compression_algorithm
- directory_manipulation
- container_cpu_time
- storage_zfs_use_refquota
- storage_lvm_mount_options
- network
- profile_usedby
- container_push
- container_exec_recording
- certificate_update
- container_exec_signal_handling
- gpu_devices
- container_image_properties
- migration_progress
- id_map
- network_firewall_filtering
- network_routes
- storage
- file_delete
- file_append
- network_dhcp_expiry
- storage_lvm_vg_rename
- storage_lvm_thinpool_rename
- network_vlan
- image_create_aliases
- container_stateless_copy
- container_only_migration
- storage_zfs_clone_copy
- unix_device_rename
- storage_lvm_use_thinpool
- storage_rsync_bwlimit
- network_vxlan_interface
- storage_btrfs_mount_options
- entity_description
- image_force_refresh
- storage_lvm_lv_resizing
- id_map_base
- file_symlinks
- container_push_target
- network_vlan_physical
- storage_images_delete
- container_edit_metadata
- container_snapshot_stateful_migration
- storage_driver_ceph
- storage_ceph_user_name
- resource_limits
- storage_volatile_initial_source
- storage_ceph_force_osd_reuse
- storage_block_filesystem_btrfs
- resources
- kernel_limits
- storage_api_volume_rename
- macaroon_authentication
- network_sriov
- console
- restrict_devlxd
- migration_pre_copy
- infiniband
- maas_network
- devlxd_events
- proxy
- network_dhcp_gateway
- file_get_symlink
- network_leases
- unix_device_hotplug
- storage_api_local_volume_handling
- operation_description
- clustering
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  certificate: |
    -----BEGIN CERTIFICATE-----
    MIIFgzCCA2ugAwIBAgIRAIf44fB2WkHlwpYc2hjbjjgwDQYJKoZIhvcNAQELBQAw
    SDEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzEoMCYGA1UEAwwfcm9vdEB1
    YnVudHUtcy0ydmNwdS00Z2ItYW1zMy0wMTAeFw0xODAyMDYyMDQzNTNaFw0yODAy
    MDQyMDQzNTNaMEgxHDAaBgNVBAoTE2xpbnV4Y29udGFpbmVycy5vcmcxKDAmBgNV
    BAMMH3Jvb3RAdWJ1bnR1LXMtMnZjcHUtNGdiLWFtczMtMDEwggIiMA0GCSqGSIb3
    DQEBAQUAA4ICDwAwggIKAoICAQDJSFXvlM/2Y4PTcwSrqw81OxIJsCAJBl5LaTG0
    BD90ACJNp3nvzYu5cY7w161u1/jBpLgrPy5Sl12w61b5qsFYT97U5ZRMO9Ubslx1
    QyEyYuh3omm4HktsDkiw5oKbs4uBbNwOdz5ztMO6V+m9cUybtjrGMRq/XMNV1KYa
    vz+z6kgDZLDC3puoqn2kNVgsFU+UWiRdMbJU1xborWcwBzAxfcnzOC6C0AlHfpw8
    fZTuqkMeQR79r4yDGfY/TpetEqdb5GYqYlodGSUL/kzipyB2VRI2yNqwmOVIi+kz
    pnHwgtywllhTQJk8QxvN5zpN0vxmgca3vcOcONN4n6PgVEllKduSKTJFhkWZoIqe
    aiEp+ykIiTahdr4aiDhmWE36ve8AbhMS/iaaw0URMoAtVNlC0RrCCrfpNihxq2Rz
    nmcQCPkV/JHZPie0/j/lDAoP3LSQFHV2jct9+W1fcVLp92oAu4ttOWvwjWRrCfDf
    iSPhDmorih0OoAtKc2MYi6NgEE8mlBg+eqKYGIoY4MzhTTwhZhNWHWuu7PcZMQJQ
    pFntSgM9/JItj0zuIJYIyoq2R4iOlFkoRJRny04mr94AFW4higkpWql6EIKpm0iJ
    VSlMpPAbSQoUJbImuitgU+xNVW/Po7+PdgXK3e6jj0Uak0YdKCrwRZFZTMQFa3Jj
    b2VzwwIDAQABo2gwZjAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUH
    AwEwDAYDVR0TAQH/BAIwADAxBgNVHREEKjAoghp1YnVudHUtcy0ydmNwdS00Z2It
    YW1zMy0wMYcEvKZkI4cEChIABTANBgkqhkiG9w0BAQsFAAOCAgEAu49gtclfxnBm
    Re/kdq/FRgTZyHxAGL4G+F2453Vu6O8i+WZLV0jOKe8G3uaXZ/+vVG8fEpzdoi7Q
    Qh+FyQQeje36tTdPQ0b2X1TE+srVKmGEqGw1whOxW7/9KGqyogHn9GJHq1MmEcTC
    4s8HrpvpAJlBYPD0irrhlWrO5nzHkaNNkV0yW3n5VQfEpEknAQGXRH7a7Hd9rOwk
    Gh9TaXwpoSvwsWZvUbb39/mpvNElgnt+xnV313vvseQHlZlxVWW94BZCDPDmmPtO
    pqyJIiw7sMVjnYdB6D8Qv8IZ238HBFAuRcioFQr0oIYRQexWDBDv6atXM5NkcC89
    Ah5sPyUOvN6Y5CoH7yukOPuVXDZVBLPPKf5P+JbE6ewf3pA1sg6cLoP1M0FV4UyC
    0QN7ehA6j2IShSiFqB/nATXp8LiIQTEgmduCz2staMStu7AbaDoa09uaAgp/svWI
    NEgny6YQ+73mjd/2SQ32KgZg01e/lyzFOmwkV8HAgVMhiCgLBWME6JUfQSLq+Lcx
    dpjHfhdkXBEw5Rq64QLg6YnCGh7MMa3MPupA0+YN4mpDQKg3THg67bMd9ilF+9Ha
    Rqp+zc/OYNfcU/Kd9IovJXtok1wZRIgCj5ac1ppl16jbEy7Yfc+7UQ/nuFdztNTk
    6xX8cDbHKpJg64P6nyMN6BkzoESE77A=
    -----END CERTIFICATE-----
  certificate_fingerprint: 54acab961dcd4b7e0bf998c4921a100eac0313e782aac4bf7c4bd56273941553
  driver: lxc
  driver_version: 2.1.1
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.13.0-32-generic
  server: lxd
  server_pid: 481
  server_version: 3.0.0.beta3
  storage: dir
  storage_version: "1"
  server_clustered: false
  server_name: ubuntu-s-2vcpu-4gb-ams3-01

Issue description
So i was trying to mount a share that is hosted on another container, from one of my containers. Then for some reason, Operation was not permitted, so then checked online to find out why. Someone said setting security.privileged to true would fix it. Then i did as suggested, and restarted afterwards which hung and eventually failed, then this container got into an error state. Now i cannot work on it, i cannot restart it, or stop all will hang forever.
I also cannot create a new container, it hangs when trying to start it up. I cannot restart lxd service, cuz it hangs as well. These are all started to happen after i reconfigured one of my containers and restarted it.
Information to attach
[5948147.268758] lxdbr0: port 2(veth2S0F7F) entered disabled state
[5948147.275801] device veth2S0F7F left promiscuous mode
[5948147.275809] lxdbr0: port 2(veth2S0F7F) entered disabled state
[5948147.309488] secondnet: port 2(veth8V7MBK) entered disabled state
[5948147.315363] device veth8V7MBK left promiscuous mode
[5948147.315370] secondnet: port 2(veth8V7MBK) entered disabled state
[5948147.340690] thirdnet: port 1(vethOD8VL0) entered disabled state
[5948147.347201] device vethOD8VL0 left promiscuous mode
[5948147.347208] thirdnet: port 1(vethOD8VL0) entered disabled state
[5948148.311088] audit: type=1400 audit(1527339686.465:24007): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="lxd-machine2_</var/lib/lxd>" pid=29004 comm="apparmor_parser"
[5948148.573430] audit: type=1400 audit(1527339686.727:24008): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxd-machine2_</var/lib/lxd>" pid=29030 comm="apparmor_parser"
[5948148.619680] lxdbr0: port 2(veth7J4SQH) entered blocking state
[5948148.619683] lxdbr0: port 2(veth7J4SQH) entered disabled state
[5948148.619759] device veth7J4SQH entered promiscuous mode
[5948148.625847] IPv6: ADDRCONF(NETDEV_UP): veth7J4SQH: link is not ready
[5948148.625857] lxdbr0: port 2(veth7J4SQH) entered blocking state
[5948148.625859] lxdbr0: port 2(veth7J4SQH) entered forwarding state
[5948148.643445] secondnet: port 2(vethSLDCLF) entered blocking state
[5948148.643448] secondnet: port 2(vethSLDCLF) entered disabled state
[5948148.643541] device vethSLDCLF entered promiscuous mode
[5948148.644156] IPv6: ADDRCONF(NETDEV_UP): vethSLDCLF: link is not ready
[5948148.644165] secondnet: port 2(vethSLDCLF) entered blocking state
[5948148.644167] secondnet: port 2(vethSLDCLF) entered forwarding state
[5948148.647633] thirdnet: port 1(vethUU744G) entered blocking state
[5948148.647636] thirdnet: port 1(vethUU744G) entered disabled state
[5948148.647719] device vethUU744G entered promiscuous mode
[5948148.649278] IPv6: ADDRCONF(NETDEV_UP): vethUU744G: link is not ready
[5948148.649285] thirdnet: port 1(vethUU744G) entered blocking state
[5948148.649287] thirdnet: port 1(vethUU744G) entered forwarding state
[5948148.738003] eth0: renamed from vethM145JF
[5948148.753069] eth1: renamed from vethTG1G9C
[5948148.760718] eth2: renamed from vethA3EFFE
[5948148.780535] IPv6: ADDRCONF(NETDEV_CHANGE): veth7J4SQH: link becomes ready
[5948148.780650] IPv6: ADDRCONF(NETDEV_CHANGE): vethSLDCLF: link becomes ready
[5948148.780750] thirdnet: port 1(vethUU744G) entered disabled state
[5948148.782825] IPv6: ADDRCONF(NETDEV_CHANGE): vethUU744G: link becomes ready
[5948148.782892] thirdnet: port 1(vethUU744G) entered blocking state
[5948148.782894] thirdnet: port 1(vethUU744G) entered forwarding state
[5948148.866278] audit: type=1400 audit(1527339687.020:24009): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine2_</var/lib/lxd>" name="/sys/fs/cgroup/unified/" pid=29072 comm="systemd" fstype="cgroup2" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
[5948149.084997] audit: type=1400 audit(1527339687.239:24010): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine2_</var/lib/lxd>" name="/run/lock/" pid=29327 comm="(networkd)" flags="ro, nosuid, nodev, noexec, remount, bind"
[5948154.152655] audit: type=1400 audit(1527339692.306:24011): apparmor="DENIED" operation="file_lock" profile="lxd-machine2_</var/lib/lxd>" pid=29403 comm="(ostnamed)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948154.152671] audit: type=1400 audit(1527339692.306:24012): apparmor="DENIED" operation="file_lock" profile="lxd-machine2_</var/lib/lxd>" pid=29403 comm="(ostnamed)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948154.152676] audit: type=1400 audit(1527339692.306:24013): apparmor="DENIED" operation="file_lock" profile="lxd-machine2_</var/lib/lxd>" pid=29403 comm="(ostnamed)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948154.152680] audit: type=1400 audit(1527339692.306:24014): apparmor="DENIED" operation="file_lock" profile="lxd-machine2_</var/lib/lxd>" pid=29403 comm="(ostnamed)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948284.604917] ------------[ cut here ]------------
[5948284.604921] kernel BUG at /build/linux-UKCsxy/linux-4.13.0/fs/nfs_common/grace.c:107!
[5948284.607546] invalid opcode: 0000 [#1] SMP PTI
[5948284.608877] Modules linked in: nfsv3 rpcsec_gss_krb5 nfsv4 nfs fscache ipt_REJECT nf_reject_ipv4 xt_conntrack nfsd auth_rpcgss nfs_acl lockd grace binfmt_misc veth ebtable_filter ebtables ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_filter ip6_tables ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_CHECKSUM xt_comment xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_filter bridge stp llc ppdev nls_iso8859_1 sb_edac kvm_intel kvm irqbypass joydev parport_pc parport input_leds serio_raw pvpanic mac_hid sch_fq_codel ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi sunrpc scsi_transport_iscsi ip_tables x_tables autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy
[5948284.638172]  async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear crct10dif_pclmul crc32_pclmul qxl ghash_clmulni_intel ttm drm_kms_helper syscopyarea sysfillrect sysimgblt pcbc fb_sys_fops aesni_intel drm aes_x86_64 crypto_simd glue_helper cryptd floppy psmouse pata_acpi virtio_blk virtio_scsi virtio_net i2c_piix4
[5948284.648244] CPU: 0 PID: 29372 Comm: kworker/u4:4 Not tainted 4.13.0-32-generic #35-Ubuntu
[5948284.651058] Hardware name: DigitalOcean Droplet, BIOS 20171212 12/12/2017
[5948284.653293] Workqueue: netns cleanup_net
[5948284.654653] task: ffff9dec90d89740 task.stack: ffffaa2940dac000
[5948284.656668] RIP: 0010:grace_exit_net+0x24/0x30 [grace]
[5948284.658448] RSP: 0018:ffffaa2940dafdc0 EFLAGS: 00010297
[5948284.660154] RAX: ffff9dec368ddd00 RBX: ffff9debb43faf80 RCX: 0000000180100004
[5948284.662636] RDX: ffff9dec369f82b8 RSI: ffffffffc08f8020 RDI: ffff9debb43faf80
[5948284.665062] RBP: ffffaa2940dafdc0 R08: ffff9debed4dac00 R09: 0000000180100004
[5948284.667705] R10: ffffaa2940dafd40 R11: 0000000000000000 R12: ffffaa2940dafe18
[5948284.670171] R13: ffffffffc08f8018 R14: ffffffffc08f8020 R15: 00000000ffffffff
[5948284.672505] FS:  0000000000000000(0000) GS:ffff9dec9fc00000(0000) knlGS:0000000000000000
[5948284.675377] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[5948284.677342] CR2: 00005566e7b69740 CR3: 000000008c80a004 CR4: 00000000001606f0
[5948284.679880] Call Trace:
[5948284.680792]  ops_exit_list.isra.8+0x38/0x60
[5948284.682352]  cleanup_net+0x1ca/0x2b0
[5948284.683650]  process_one_work+0x1e7/0x410
[5948284.684928]  worker_thread+0x4b/0x420
[5948284.686095]  kthread+0x125/0x140
[5948284.687111]  ? process_one_work+0x410/0x410
[5948284.688408]  ? kthread_create_on_node+0x70/0x70
[5948284.689812]  ret_from_fork+0x1f/0x30
[5948284.690914] Code: 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 15 79 22 00 00 48 8b 87 88 12 00 00 55 48 89 e5 48 8b 04 d0 48 8b 10 48 39 d0 75 02 5d c3 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 15 49 22
[5948284.697792] RIP: grace_exit_net+0x24/0x30 [grace] RSP: ffffaa2940dafdc0
[5948284.701107] ---[ end trace 718f2ae318f06635 ]---
[5948602.857992] audit: type=1400 audit(1527340141.023:24015): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=30183 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948602.871384] audit: type=1400 audit(1527340141.023:24016): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=30183 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948602.883502] audit: type=1400 audit(1527340141.023:24017): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=30183 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948602.898324] audit: type=1400 audit(1527340141.023:24018): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=30183 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948603.178029] audit: type=1400 audit(1527340141.343:24019): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=30190 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948603.196827] audit: type=1400 audit(1527340141.343:24020): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=30190 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948603.208537] audit: type=1400 audit(1527340141.343:24021): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=30190 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948603.226842] audit: type=1400 audit(1527340141.343:24022): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=30190 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5948837.387564] audit: type=1400 audit(1527340375.559:24023): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine5_</var/lib/lxd>" name="/" pid=30513 comm="(resolved)" flags="rw, rslave"
[5948886.072809] lxdbr0: port 2(veth7J4SQH) entered disabled state
[5948886.083382] device veth7J4SQH left promiscuous mode
[5948886.087360] lxdbr0: port 2(veth7J4SQH) entered disabled state
[5948886.129935] secondnet: port 2(vethSLDCLF) entered disabled state
[5948886.139879] device vethSLDCLF left promiscuous mode
[5948886.143676] secondnet: port 2(vethSLDCLF) entered disabled state
[5948886.182326] thirdnet: port 1(vethUU744G) entered disabled state
[5948886.195016] device vethUU744G left promiscuous mode
[5948886.200491] thirdnet: port 1(vethUU744G) entered disabled state
[5948887.123010] audit: type=1400 audit(1527340425.295:24024): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="lxd-machine2_</var/lib/lxd>" pid=30754 comm="apparmor_parser"
[5948890.722265] audit: type=1400 audit(1527340428.895:24025): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxd-machine2_</var/lib/lxd>" pid=30786 comm="apparmor_parser"
[5948890.760314] lxdbr0: port 2(veth3BM7FK) entered blocking state
[5948890.763933] lxdbr0: port 2(veth3BM7FK) entered disabled state
[5948890.770279] device veth3BM7FK entered promiscuous mode
[5948890.775651] IPv6: ADDRCONF(NETDEV_UP): veth3BM7FK: link is not ready
[5948890.783034] secondnet: port 2(veth03Q6BE) entered blocking state
[5948890.786354] secondnet: port 2(veth03Q6BE) entered disabled state
[5948890.791669] device veth03Q6BE entered promiscuous mode
[5948890.796250] IPv6: ADDRCONF(NETDEV_UP): veth03Q6BE: link is not ready
[5948890.801237] secondnet: port 2(veth03Q6BE) entered blocking state
[5948890.804542] secondnet: port 2(veth03Q6BE) entered forwarding state
[5948890.817545] thirdnet: port 1(vethE460YE) entered blocking state
[5948890.820769] thirdnet: port 1(vethE460YE) entered disabled state
[5948890.825896] device vethE460YE entered promiscuous mode
[5948890.831176] IPv6: ADDRCONF(NETDEV_UP): vethE460YE: link is not ready
[5948890.835743] thirdnet: port 1(vethE460YE) entered blocking state
[5948890.838923] thirdnet: port 1(vethE460YE) entered forwarding state
[5948891.785433] secondnet: port 2(veth03Q6BE) entered disabled state
[5948891.790769] thirdnet: port 1(vethE460YE) entered disabled state
[5948908.846589] audit: type=1400 audit(1527340447.019:24026): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine5_</var/lib/lxd>" name="/" pid=31004 comm="(resolved)" flags="rw, rslave"
[5949546.362929] audit: type=1400 audit(1527341084.552:24027): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine3_</var/lib/lxd>" name="/" pid=31947 comm="(resolved)" flags="rw, rslave"
[5950161.728846] audit: type=1400 audit(1527341699.934:24028): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/bin/lxc-start" pid=476 comm="apparmor_parser"
[5950161.755632] audit: type=1400 audit(1527341699.960:24029): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default" pid=480 comm="apparmor_parser"
[5950161.765850] audit: type=1400 audit(1527341699.960:24030): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-cgns" pid=480 comm="apparmor_parser"
[5950161.775025] audit: type=1400 audit(1527341699.960:24031): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-mounting" pid=480 comm="apparmor_parser"
[5950161.781398] audit: type=1400 audit(1527341699.960:24032): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-nesting" pid=480 comm="apparmor_parser"
[5950353.653515] audit: type=1400 audit(1527341891.863:24033): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine5_</var/lib/lxd>" name="/" pid=1159 comm="(resolved)" flags="rw, rslave"
[5950402.887887] audit: type=1400 audit(1527341941.099:24034): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=1230 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950402.906764] audit: type=1400 audit(1527341941.099:24035): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=1230 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950402.916684] audit: type=1400 audit(1527341941.099:24036): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=1230 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950402.926321] audit: type=1400 audit(1527341941.099:24037): apparmor="DENIED" operation="file_lock" profile="lxd-machine3_</var/lib/lxd>" pid=1230 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950403.153132] audit: type=1400 audit(1527341941.364:24038): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=1236 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950403.163167] audit: type=1400 audit(1527341941.364:24039): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=1236 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950403.172944] audit: type=1400 audit(1527341941.364:24040): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=1236 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950403.182583] audit: type=1400 audit(1527341941.364:24041): apparmor="DENIED" operation="file_lock" profile="lxd-machine1_</var/lib/lxd>" pid=1236 comm="(ionclean)" family="unix" sock_type="dgram" protocol=0 addr=none
[5950426.027495] audit: type=1400 audit(1527341964.239:24042): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-machine5_</var/lib/lxd>" name="/" pid=1276 comm="(resolved)" flags="rw, rslave"
[5950762.088686] audit: type=1400 audit(1527342300.309:24043): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/bin/lxc-start" pid=1707 comm="apparmor_parser"
[5950762.110859] audit: type=1400 audit(1527342300.331:24044): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default" pid=1711 comm="apparmor_parser"
[5950762.121402] audit: type=1400 audit(1527342300.331:24045): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-cgns" pid=1711 comm="apparmor_parser"
[5950762.137819] audit: type=1400 audit(1527342300.331:24046): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-mounting" pid=1711 comm="apparmor_parser"
[5950762.148167] audit: type=1400 audit(1527342300.331:24047): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-nesting" pid=1711 comm="apparmor_parser"

Did you try rebooting your system?
You have a nfs kernel crash in your kernel log which would explain why random processes appear to be hanging now.

okay now things seem to be working fine after rebooting, but i still cant mount a share that is hosted on one of my containers from another container. Getting an accessed denied. I tried this.

https://discuss.linuxcontainers.org/t/nfs-client-mount-not-permitted/928 has some good pointers on mounting nfs inside a container.

source: gharchive/issue

repo: lxc/lxd

license_type: permissive

license_source: bigquery


text:
lxd 3.12 : cannot open freezer cgroup (/sys/fs/cgroup/freezer): No such file or directory

Required information

Distribution:Ubuntu 18.04.2 LTS

The output of "lxc info" or if that fails:

Kernel version: 4.15.0-48-generic
LXC version: 3.12
LXD version: 3.12
Storage backend in use: btrfs

Issue description
Since minor update of Ubuntu 18.04.2 LTS and reboot snap lxd do not start:
journalctl logs:
cannot open freezer cgroup (/sys/fs/cgroup/freezer): No such file or directory
snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
even lxc cli can't be launched
Steps to reproduce

on Ubuntu 18.04.X LTS:

apt update
apt upgrade
reboot

lxc list:
cannot open freezer cgroup (/sys/fs/cgroup/freezer): No such file or directory

Step three
tried to downgrade snapd

initily was: 2.38+18.04
installed 2.32.5+18.04 : same problem
before update, kernel was 4.15.0-40-generic
now it is 4.15.0-48-generic

dmesg logs:
'''dmesg | grep -i denied
[    9.560827] audit: type=1400 audit(1554998387.147:3): avc:  denied  { module_load } for  pid=1 comm="systemd" path="/lib/modules/4.15.0-48-generic/kernel/fs/autofs4/autofs4.ko" dev="sda1" ino=11471 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=system permissive=1
[    9.904464] audit: type=1400 audit(1554998387.491:4): avc:  denied  { associate } for  pid=1 comm="systemd" name="init.scope" scontext=system_u:object_r:init_var_run_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   11.350701] audit: type=1400 audit(1554998388.939:5): avc:  denied  { associate } for  pid=1 comm="systemd" name="user.slice" scontext=system_u:object_r:systemd_passwd_var_run_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   11.379877] audit: type=1400 audit(1554998388.963:6): avc:  denied  { associate } for  pid=1 comm="systemd" name="system-openvpn.slice" scontext=system_u:object_r:lvm_var_run_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   11.387624] audit: type=1400 audit(1554998388.971:7): avc:  denied  { associate } for  pid=1 comm="systemd" name="ufw.service" scontext=system_u:object_r:devlog_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   12.167725] audit: type=1400 audit(1554998389.751:8): avc:  denied  { associate } for  pid=1 comm="systemd" name="dev-hugepages.mount" scontext=system_u:object_r:hugetlbfs_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   12.173664] audit: type=1400 audit(1554998389.759:9): avc:  denied  { associate } for  pid=1 comm="systemd" name="sys-kernel-debug.mount" scontext=system_u:object_r:debugfs_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   12.182961] audit: type=1400 audit(1554998389.767:10): avc:  denied  { audit_read } for  pid=1 comm="systemd" capability=37  scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1
[   12.207916] audit: type=1400 audit(1554998389.791:11): avc:  denied  { associate } for  pid=1 comm="systemd" name="initctl" scontext=system_u:object_r:init_var_run_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=filesystem permissive=1
[   19.465161] audit: type=1107 audit(1554998397.051:16): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='avc:  denied  { start } for auid=n/a uid=0 gid=0 path="/lib/systemd/system/ifup@.service" cmdline="" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=service permissive=1
[   19.467012] audit: type=1107 audit(1554998397.051:17): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='avc:  denied  { status } for auid=n/a uid=0 gid=0 path="/lib/systemd/system/ifup@.service" cmdline="" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=service permissive=1
[   20.861356] audit: type=1400 audit(1554998398.451:18): avc:  denied  { associate } for  pid=1 comm="systemd" name="var-lib-docker.mount" scontext=system_u:object_r:var_lib_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   20.894316] audit: type=1400 audit(1554998398.479:19): avc:  denied  { associate } for  pid=1 comm="systemd" name="var-snap-lxd-common-lxd.mount" scontext=system_u:object_r:var_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   20.910903] audit: type=1400 audit(1554998398.495:20): avc:  denied  { associate } for  pid=1 comm="systemd" name="mnt-ROOT.mount" scontext=system_u:object_r:mnt_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   21.921617] audit: type=1400 audit(1554998399.507:21): avc:  denied  { create } for  pid=1434 comm="(resolved)" name="shm" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:ptmx_t:s0 tclass=dir permissive=1
[   21.921623] audit: type=1400 audit(1554998399.507:22): avc:  denied  { mounton } for  pid=1434 comm="(resolved)" path="/tmp/namespace-dev-qbUPRp/dev/shm" dev="tmpfs" ino=5 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:ptmx_t:s0 tclass=dir permissive=1
[   21.921681] audit: type=1400 audit(1554998399.507:23): avc:  denied  { create } for  pid=1434 comm="(resolved)" name="log" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:ptmx_t:s0 tclass=lnk_file permissive=1
[   21.922138] audit: type=1400 audit(1554998399.507:24): avc:  denied  { create } for  pid=1434 comm="(resolved)" name="core" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:devtty_t:s0 tclass=lnk_file permissive=1
[   22.205451] audit: type=1400 audit(1554998399.791:25): avc:  denied  { associate } for  pid=1 comm="systemd" name="selinux.service" scontext=system_u:object_r:uuidd_var_run_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   24.636006] audit: type=1400 audit(1554998402.219:26): avc:  denied  { module_load } for  pid=1633 comm="modprobe" path="/lib/modules/4.15.0-48-generic/kernel/drivers/net/dummy.ko" dev="sda1" ino=7553 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=system permissive=1
[   24.918177] audit: type=1400 audit(1554998402.503:27): avc:  denied  { associate } for  pid=1 comm="systemd" name="ifup@dummy0.10.service" scontext=system_u:object_r:uuidd_var_run_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   30.216288] audit: type=1107 audit(1554998407.803:28): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='avc:  denied  { start } for auid=n/a uid=0 gid=0 path="/run/systemd/transient/user-0.slice" cmdline="/lib/systemd/systemd-logind" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:systemd_unit_t:s0 tclass=service permissive=1
[   30.216776] audit: type=1400 audit(1554998407.803:29): avc:  denied  { associate } for  pid=1 comm="systemd" name="user-0.slice" scontext=system_u:object_r:systemd_unit_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   30.235661] audit: type=1107 audit(1554998407.819:30): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='avc:  denied  { status } for auid=n/a uid=0 gid=0 path="/run/systemd/transient/session-1.scope" cmdline="/lib/systemd/systemd-logind" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:systemd_unit_t:s0 tclass=service permissive=1
[   31.391084] audit: type=1400 audit(1554998408.975:31): avc:  denied  { associate } for  pid=1 comm="systemd" name="snapd.seeded.service" scontext=system_u:object_r:systemd_unit_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[   38.347086] audit: type=1400 audit(1554998415.931:32): avc:  denied  { module_load } for  pid=5888 comm="modprobe" path="/lib/modules/4.15.0-48-generic/kernel/net/netfilter/xt_mark.ko" dev="sda1" ino=407287 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=system permissive=1
[   38.501542] audit: type=1400 audit(1554998416.087:33): avc:  denied  { associate } for  pid=1 comm="systemd" name="docker.service" scontext=system_u:object_r:systemd_unit_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
[  289.826946] audit: type=1400 audit(1554998667.826:34): avc:  denied  { transition } for  pid=7973 comm="dpkg" path="/var/lib/dpkg/info/linux-modules-4.15.0-42-generic.postrm" dev="sda1" ino=921724 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:dpkg_script_t:s0 tclass=process permissive=1
[  289.826991] audit: type=1400 audit(1554998667.826:35): avc:  denied  { entrypoint } for  pid=7973 comm="dpkg" path="/var/lib/dpkg/info/linux-modules-4.15.0-42-generic.postrm" dev="sda1" ino=921724 scontext=system_u:system_r:dpkg_script_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
[  308.318375] audit: type=1400 audit(1554998686.316:36): avc:  denied  { entrypoint } for  pid=8190 comm="dpkg" path="/var/lib/dpkg/info/snapd.prerm" dev="sda1" ino=917882 scontext=system_u:system_r:dpkg_script_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
[  310.764026] audit: type=1400 audit(1554998688.764:37): avc:  denied  { associate } for  pid=1 comm="systemd" name="systemd-journal-flush.service" scontext=system_u:object_r:init_var_run_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=1
'''

This error doesn't come from LXD but from snapd instead.
Can you try to run snap install hello-world and then run hello-world see if this hits the same issue?

Also, how comes your system is running SELinux? is that intentional?

hello-world
cannot open freezer cgroup (/sys/fs/cgroup/freezer): No such file or directory
selinux: i think it was for openshift, unused now: i have uninstalled it. and now all is working .
strange....

i have this warning now:
2019/04/12 09:16:11.265251 cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /root/snap: exec: "matchpathcon": executable file not found in $PATH
is this important?

i have installed back selinux-tools.
there is still a warning:
WARNING: cannot create user data directory: failed to verify SELinux context of /root/snap: exit status 1
looks like it is non-mainline kernel problem .

You may have a boot option to force SELinux in /etc/default/grub, if you do, remove that, run update-grub and reboot

authors: gaetanquentin stgraber


text:
Add/remove cluster role commands

Adds a new role subcommand for lxc cluster to add and remove cluster roles without using lxc cluster role edit <member>.
Closes #10116.

As part of this please can you update the test_clustering_events tests to use these commands rather than this style of edit:
printf "roles: [\"database\", \"event-hub\"]\nfailure_domain: \"default\"\ngroups: [\"default\"]"  | LXD_DIR="${LXD_ONE_DIR}" lxc cluster edit node1

Thanks!

@markylaing sorry I shouldn't have merged this as you've pulled in the until package from lxd into lxc which is preventing it building on non linux systems.
Please can you move this function into shared package
https://github.com/lxc/lxd/pull/10172/commits/632000dfb91fa3c5203172b77f4a65b97d143c63#diff-ca7f9d974e4ad0268e74a074fd6dc0906bda49b4fd72bbd09b994629e5be4dcaR81

@markylaing sorry I shouldn't have merged this as you've pulled in the util package from lxd into lxc which is preventing it building on non linux systems.
Please can you move this function into shared package

@tomponline no worries I wasn't sure what was causing the build failure but had to head out. I can see you've fixed this in #10174 now though.

source: gharchive/pull-request

authors: markylaing tomponline


text:
Cleanup db function names

This is a first batch of renames of db functions, to make them more consistent with current naming conventions in LXD.
Other similar renames will be done progressively in follow-up branches.

Good we're doing this early in the cycle, backporting to 4.0 shouldn't be too bad.

@freeekanayaka some of the unit tests are failing.

Testsuite passed

Looks good minus the two instances of your text editor adding aliases to imports when it's already their names :)

Looks good minus the two instances of your text editor adding aliases to imports when it's already their names :)

I was using goimports when saving a .go file, which is a wrapper around gofmt that also fills in missing imports. Unfortunately there's no way to tell goimports to not rename packages, so I've disabled it for now and switched back just using plain gofmt for the time being.

Testsuite passed

authors: freeekanayaka lxc-jenkins stgraber tomponline


text:
lxd/images: Properly spread replicated images

Without this, the image would always end up on the leader (unclear why
that was done) and then the next X nodes in database order.
Instead we want the load spread as much as possible, so let's just pick
random nodes instead.
Signed-off-by: Stéphane Graber stgraber@ubuntu.com

@monstermunchkin if jenkins like it, you can scratch this one off your list.

@monstermunchkin if jenkins like it, you can scratch this one off your list.

Had a branch for that already ;-)

authors: monstermunchkin stgraber


text:
Fix parsing error of email addresses with query params

Email addresses with query parameters often get used in
contact forms on websites. They can also be found in
other documents like Markdown.
A common use-case is to add a subject line to the email
as a parameter e.g. mailto:mail@example.com?subject="Hello".
Previously we handled such cases incorrectly by interpreting
them as files. The reason was that our email parsing was too strict
to allow for query parameters at the end of an email address.
With email_address we switched to a more permissive parser.
Note that this does not affect the actual address email checking,
as this is still done with check-if-email-exists, which has more strict
check functionality. For the check we pass the path to check-if-email-exists
and ignore the query params because they aren't part the email address
but rather get passed to the mail client.
This change modifies the URI parsing for all links.
All tests pass, so I hope I didn't break anything, but I'd appreciate some
review/testing before merging this.
As an added benefit I optimized the common path, which is a non-email
URL, so parsing should overall be slightly faster, even though I haven't
done any benchmarks and the performance benefit is probably negligible.
Fixes #653.
@egrieco, @Stargator, @wolf99 fyi

Thank you, @mre. Nothing stands out from a code review, but Ruby is not my strongest language.
I'll be able to run the tests later and double check all is good.

Ruby is not my strongest language

Mine neither. 🤣 But I know you meant Rust.

I'll be able to run the tests later and double check all is good.

Thanks for the support on this one. 👍

Mine neither. 🤣 But I know you meant Rust.

Oh...yeah... I didn't even look at the file extension. I just thought the syntax looked ruby-like. Thanks

@mre Could you test it with the exercism/problem-specifications repo?

This would be the full command

Thank you. I played around with the test, changing the expected values as well as the TEST_EMAIL_QUERY_PARAMS html and md files, just to verify it accepts net and org domains as well as verifying it works with no query params.
Outside of the problem-specifications repo, I think that would be it.

Very nice. Thanks for taking a look.
The exercism/problem-specifications works, too:
problem-specifications ❯❯❯ lychee .
🔍 94 Total ✅ 94 OK 🚫 0 Errors

Merging.

authors: Stargator mre

repo: lycheeverse/lychee

license_source: github-api


text:
[CI] Remove travis config

We're using github actions now

Depends on https://github.com/lyft/Kronos/pull/61 to be green

repo: lyft/Kronos


text:
Fix insecure flag

TL;DR
It appears my previous attempt at fixing this failed.  I think now everything is actually fixed.
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[x] Code completed
[x] Smoke tested
[x] Unit tests added
[x] Code documentation added
[x] Any pending items have an associated Issue

Complete description
it appears that flags operate like toggles. If both the default is true and the flag is passed in the command, they negate each other and it's as if it's not passed.
Tested with:

-i right after flyte-cli
-i after the subcommand
without the -i flag at all,

while the config file had

"insecure=True"
"insecure=False"
insecure not specified.

Also for flags, there is no difference between a required one and a not-required one it seems.
Tracking Issue
NA
Follow-up issue
NA

Codecov Report

Merging #137 into master will decrease coverage by 0.01%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
- Coverage   81.35%   81.34%   -0.02%
==========================================
  Files         217      217
  Lines       14128    14129       +1
  Branches     1159     1160       +1
==========================================
- Hits        11494    11493       -1
- Misses       2352     2354       +2
  Partials      282      282

Impacted Files
Coverage Δ

flytekit/clis/flyte_cli/main.py
38.14% <33.33%> (-0.16%)
:arrow_down:

flytekit/__init__.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

authors: codecov-commenter wild-endeavor

repo: lyft/flytekit


text:
Update README to match the actual output

Besides updating the README, your last change should have set the version to 1.0.0, since it breaks the interface from 0.1.2.  Arguably, since you are still on version 0, you could get away with using version 0.2.0, but I say go all in and make it 1.0.0!

Thanks.
Incoming new version :)

Here you go: https://www.npmjs.com/package/damerau-levenshtein
Thanks again.

repo: lzrski/node-damerau-levenshtein


text:
DarkGray option color in PowerCLI

Hi all!
I can't see no one options in the PowerCLI, because they are transparent!
Like this:
Set-PSReadlineOption            Parameter                  green

Next time I see options in near-green colors.
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor green

At all, all colors are incorrect: DarkRed, DarkMagenta,Red,Magenta are the same, near-red color, for example.
Help me please! Where can I change those colours in PowerCLI.
p.s. I can't attach screenshot now.

Unfortunately, the color names come from .Net and do not reflect any specific RGB value.
I'm not familiar with PowerCLI, but one of these links should help:
http://www.leeholmes.com/blog/2008/06/01/powershells-noble-blue/
http://commandwindows.com/configure.htm

authors: Tremorus lzybkr

repo: lzybkr/PSReadLine


text:
Golem 2022 hype

The golem response is saner and easier to manage and this is an attempt to do that.
Example response provided by cardboardshark: https://pastebin.com/YnZiPFhc

lgtm. are you still working on this or should we mark pr ready for review? (it's in draft mode currently)

authors: AardWolf DevJackSmith

repo: m-h-c-t/mh-helper-extension

license: MIT


text:
Journal truncation strategies

The journal is unbounded, which could eventually exceed storage on a resource-limited device.
Need a (configurable, learnable) way to truncate it, with strategies to suit different applications.
This has been mitigated by #61, as the journal is more compact.
See also #31, #6 and #20.

Some readying accommodations made on Edge: https://github.com/m-ld/m-ld-js/blob/ad3d852282f180b15ecb3b5fe2cf187f74ba3e36/src/config.ts#L98

repo: m-ld/m-ld-spec


text:
Display Module 13.2 not working with Core2 V1.1

I have an application that works fine when using Core2 V1.0 with the Display Module 13.2, but when I use the new Core2 V1.1, the display is blank.
M5.getDisplayIndex(m5gfx::board_M5ModuleDisplay) returns 1 on a Core2 V1.0, but returns -1 on a Core2 V1.1, so it appears the Core isn't seeing the display module.

Hello, @mjau-scot
Thank you for letting me know.
Updated develop branch. We'll be releasing updates soon, but if you want to try them out right away, please use the develop branch.

I can confirm that it's now working fine on Core2 v1.1 with the develop branch. Thanks for fixing this so quickly.

It's is not working for us as well. Do you have already solution of the problem?

authors: YouthInventor lovyan03 mjau-scot


text:
Add Artur Piszek blog

As per the title. Add fantastic piszek.com :D

thanks for the contribution


text:
fix: Prevent Batches from queuing empty events

Summary

Within BatchUploader.queueEvent, we are only checking if the event is null, but not if it is actually empty.
We don't have reliable test data directly related to this bug report, and is unlikely that an event can get to this point in the code while being empty, but we should be more defensive, just in case.

Testing Plan

Using the browser debugger, manually send events into the batch uploader and verify that batches without events are not created.

Master Issue
Closes https://go.mparticle.com/work/SQDSDKS-4737

lastly, just to include another hopefully fail safe - can we do something here in the upload function?
https://github.com/mParticle/mparticle-web-sdk/blob/master/src/batchUploader.ts#L199-L214
if (uploads[i].events.length<0) {
   continue;
}

repo: mParticle/mparticle-web-sdk


text:
Contours are plotted transposed from their original data

In the current master version, plotting contours appear transposed from the original density image.

(sorry for the late reply, been off the radar for a while)
Thanks for the report, it is fixed in the referred commit. Note this is in the packages branch, which I plan to merge to master soon.

authors: maartenbreddels mfouesneau

repo: maartenbreddels/vaex

license: mit


text:
Component detail view not rendering (wheel turning)

Describe the bug
Component detail view not rendering (wheel turning)
To Reproduce

open component detail view

Expected behavior
detail view showing up
Screenshots
https://user-images.githubusercontent.com/5694071/127918262-d4255f8c-e448-48e9-b578-520ca69a7f13.mp4
Environment

OS: RHEL 8.3
Browser FF 90.0.2
MLX Version 5422d23f1f2ea9297081d5b081e7197f196fc388

Our mlexchange/mlx-api:nightly-main and mlexchange/mlx-ui:nightly-origin-main images had not been built and pushed to DockerHub during the past 3 weeks as we ran out of Travis credits.
I just pushed both images with the latest code. Can you do a docker compose pull and try again?

authors: ckadner romeokienzler

repo: machine-learning-exchange/mlx


text:
How to serialize a JsonValue into a compact binary format?

I am implementing a NoSQL database that uses JsonValue as its basic storage block. However, I am wondering if there is anyway that I can serialize a JsonValue into a compact binary format instead of String (using Serde and bincode for example)?

If your database uses plain json text, you can deserialize it to serde_json::Value instead of JsonValue from this crate, and then serialize that to binary using bincode.

Thanks

Cheers :)

authors: maciejhirsz zhengyi-yang

repo: maciejhirsz/json-rust


text:
[Question] Segmented source input?

Is it possible to implement lexer over a segement input (E.g. RopeSlice) ?
I found that there is a Source trait in logos, but I have no idea how to implement these methods over RopeSlice.
fn slice(&self, range: Range<usize>) -> Option<&Self::Slice>;
unsafe fn slice_unchecked(&self, range: Range<usize>) -> &Self::Slice;

Those 2 methods require returning a reference, not a reference-like-type.
For RopeSlice, I would expect using these approach:
impl<'a> Source<'a> for RopeSlice<'a> {
    type Slice = RopeSlice<'a>
    fn slice(&self, range: Range<usize>) -> Option<Self::Slice> {}
    unsafe fn slice_unchecked(&self, range: Range<usize>) -> Self::Slice {}
}

But this can not be done with current trait requirement.

Slices wouldn't be so bad and I could relax the types here, however for the Lexer to work on segmented input, it would need to be able to read Chunks of sequentially allocated memory, which might be tricky with segmented input (in case Lexer wants to quickly match the next 8 bytes, but there are only 4 left in current segment, f.e.).

repo: maciejhirsz/logos


text:
Create src/metrics/mod.rs and move src/cpu.rs into src/metrics/cpu.rs.

I want to start working on something other than metrics, so it's better to put the metrics in a deeper module. If you approve with this PR policy, I'll do the others.

The main purpouse - to move some metric modules to a separate module - seems to be good.

I'm gonna rebase commits after getting approved.

Thank you.

repo: mackerelio-labs/mackerel-agent-rs


text:
🛑 HungryApp API is down

In c21b452, HungryApp API ($API_URL?consumer_key=$API_CONSUMER_KEY&consumer_secret=$API_SECRET_KEY) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HungryApp API is back up in ea5c663.

repo: mad-hengseyha/hungry-app-status


text:
Fix/instrumentation

Record latest block number for StateTransition jobs
Currently, StateTransition jobs record the starting block number instead of the ending block when processing multiple blocks. This PR changes it to record the ending block number (external_id) specifically for StateTransition jobs, while keeping the behavior the same for other job types.

coverage: 67.448% (-0.001%) from 67.449%
when pulling fd4d688dd62e419525c6ddb9cf5ebd0639922c30 on fix/instrumentation
into a008642b1708530c9b0a7ec3cac1e57529b949ea on main.

authors: coveralls heemankv

repo: madara-alliance/madara-orchestrator


text:
Wrong behaviour when hitting backspace in a single multi-line Text block

Good evening!
First of all, I want to thank you for your work. I've spent hours searching for an editor based on blocks and your library is perfect.
Then, while developing my own custom blocks, I noticed an issue with the default Text one. What happens is that, if the block is multi-line (if you used Shift + Enter to have a new lines), then when you hit the backspace key with the caret at the start of any line (except the first one), the block is merged into the previous one, whereas the line should be merged into the previous one.
Additionally, when the block is merged with the previous one, only the content of the first line is kept: the rest is deleted.
Here's a GIF of the issue:

I've dug into your code and identified the faulty lines. Here is a PR with a fix: https://github.com/madebymany/sir-trevor-js/pull/520
Clément

@clementprdhomme what browser and version are you showing this in?

Ok. It's in safari.

Yes sorry, I didn't mention it. I've been testing it on Safari 10.

Looks good. Thanks @clementprdhomme

authors: clementprdhomme raffij

repo: madebymany/sir-trevor-js


text:
Split the code into lib and server sample.

Let the lib code live in src, move the main.cpp into sample. Add a CMake option BUILD_SAMPLE_SERVER with default value OFF, do not include sample subdir in build process if the option is OFF. The CMake files should provide two targets, one for the lib and one for the sample server. We can go with static lib for now and add a dynamic one later.

Implemented.

repo: madf/async-radius


text:
Feature/ch widgets

Pull request for "Growth Widget for Product"

Classic selector
Name length coordinator

Hi @p-mob2015,
Thanks for your pull request - I'll add a few inline comments.

merged with 1.3.8 (see https://github.com/maestrano/impac-angular/pull/197)

repo: maestrano/impac-angular


text:
[IMPAC-65] Added sales/opportunity_timeline widget

{
path: 'sales/opportunity_timeline',
name: 'Opportunity timeline',
metadata: { template: 'sales/opportunity_timeline' },
desc: 'Opportunity timeline',
icon: 'line-chart',
width: 6
}

The code you have written looks good, just I think there is a bit of a misunderstanding with the concept of the widget.
Below is a list of changes to be made to bring this widget inline with the requirements. It will require changes to both the engine and the front-end.

The left panel opportunities list:

List opportunities in a non-expandable list by Opportunity name (no need to display the sales stages)
Selected opportunities should be visibly selected (See the "Sales Comparison" widget for example), currently you cannot tell which item is selected from the left panel. See image below:

A maximum of 1 opportunity may be selected at any given time
There should also be an "average opportunities" entry added to the opportunities array (which can be selected and displayed on the pie chart). This should be created in the engine by determining the averages of each opportunity.
The "Average Opportunities" opportunity will need to contain a sales stages array, with averages calculated from all the opportunities sales stage's across the opportunities.

The right panel graph section:

The graph should display only 1 opportunity at any given time.
The graph sections (slices) should represent each sales stage of the selected opportunity
The list below the graph should list the selected Opportunity's sales stages like so: sales stage name, sales stage date range, sales stage total duration. So in other words, each slice of the pie graph (being the sales stages for the selected Opportunity).
The heading above the graph should be the opportunity name
The sub-heading below the graph can be removed

In the settings panel:

Remove the time period selection directive.
Take a look at the "Opportunities Funnel" widget settings, the "Sales Stage Selection" section I believe uses the params-picker directive. That should be used in the widgets settings to select which sales stages the User wants to compare. See image below:

Thanks

authors: an-pavlovych xaun


text:
[MNOE-107] Fix admin finance page

Tenant#current_billing_amount to be calculated via mnohub for performance reason (and also to
perform the currency conversion)
Admin Finance page:

Fix invoices table amount
Add extra finance KPIs

I would just add a TODO comment with the required version of mnohub so it's easier to do some clean up (don't forget to add the same todo to the old_tenant factory)

@BrunoChauvet see last commit

Looks good

Squashed

authors: BrunoChauvet ouranos

repo: maestrano/mno-enterprise


text:
Bug Report

rror message: Unable to load DLL 'texgenpack': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

You can try my AssetRipper fork.

repo: mafaca/UtinyRipper


text:
gc crash

(we prob aren't validating something we should validate)
<--- Last few GCs --->

  218746 ms: Mark-sweep 1044.0 (1085.8) -> 790.1 (833.7) MB, 162.0 / 0.0 ms (+ 180.8 ms in 7 steps since start of marking, biggest step 88.3 ms) [allocation failure] [GC in old space requested].
  220310 ms: Mark-sweep 1334.1 (1377.2) -> 566.0 (607.6) MB, 187.3 / 0.0 ms (+ 65.5 ms in 5 steps since start of marking, biggest step 33.8 ms) [allocation failure] [GC in old space requested].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x10a43b5cfb51 <JS Object>
    1: grow [/Users/maf/dev/node_modules/npm-dependency-db/node_modules/memory-pager/index.js:~68] [pc=0x3e27a0f22be2] (this=0x10a43b5e6f19 <JS Global Object>,list=0x33a398fff711 <JS Array[67108864]>,index=0x1e31fbc04499 <Number: 1.34218e+08>,len=0x1e31fbc044a9 <Number: 6.71089e+07>)
    2: get [/Users/maf/dev/node_modules/npm-dependency-db/node_modules/memory-pager/index.js:28] [pc=0x3e27a0c93...

FATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::HashTable<v8::internal::SeededNumberDictionary, v8::internal::SeededNumberDictionaryShape, unsigned int>::EnsureCapacity(v8::internal::Handle<v8::internal::SeededNumberDictionary>, int, unsigned int, v8::internal::PretenureFlag) [/usr/local/bin/node]
 5: v8::internal::SeededNumberDictionary::AddNumberEntry(v8::internal::Handle<v8::internal::SeededNumberDictionary>, unsigned int, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyDetails, bool) [/usr/local/bin/node]
 6: v8::internal::(anonymous namespace)::DictionaryElementsAccessor::AddImpl(v8::internal::Handle<v8::internal::JSObject>, unsigned int, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, unsigned int) [/usr/local/bin/node]
 7: v8::internal::JSObject::AddDataElement(v8::internal::Handle<v8::internal::JSObject>, unsigned int, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow) [/usr/local/bin/node]
 8: v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::LanguageMode) [/usr/local/bin/node]
 9: v8::internal::Runtime_KeyedStoreIC_Slow(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
10: 0x3e27a0a092a7
Abort trap: 6

This is solved by checking that the remote replication stream is talking about the same hypercore as us AND validating nonce to be 24 bytes (prob some rando connected and sent garbage).
Also bitfield-rle should expose a way to limit the buffer produced + have messages should be more strict about bounds checks

should be fixed in latest

repo: mafintosh/hypercore


text:
[jk] Manually run pipeline once in same trigger

Description

Add button to Trigger Detail page for running pipeline once in same trigger, which can be more convenient than clicking the Run@once button on the Triggers list page because it does not require the user to re-enter overwritten runtime variables.
For @once triggers, the trigger does not need to be active status before running the pipeline once using the Run@once button in the Trigger Detail page. The trigger will automatically be updated to active status. However, if the trigger is NOT an @once trigger (e.g. a recurring interval or API trigger), the trigger must be set to active status before manually running the pipeline once from the Trigger Detail page.
Renamed "start/pause" trigger on Trigger Detail page to "enable/disable" trigger.

How Has This Been Tested?
Added Run@once button to Trigger Detail page:

Manually running pipeline once from an @once trigger (trigger does not need to be active status):

Manually running pipeline once from a recurring trigger (button is disabled if the trigger is NOT active status):

Checklist

[X] The PR is tagged with proper labels (bug, enhancement, feature, documentation)
[X] I have performed a self-review of my own code
[ ] I have added unit tests that prove my fix is effective or that my feature works
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] If new documentation has been added, relative paths have been added to the appropriate section of docs/mint.json

should we just remove the button if the user can't click on it?

We have it disabled cuz user can click it after they enable the trigger.

I'm just worried because the tooltip doesn't show up for a little bit, so it could be confusing

I'm just worried because the tooltip doesn't show up for a little bit, so it could be confusing

repo: mage-ai/mage-ai


text:
On latest lumin version browserWidth is not a function

Hello, I downloaded latest lumin OS for Magic Leap and I had the code described here: https://magicleaphelio.com/WebAPI/docs/prism-size.html
But js console threw error that browserWidth, browserHeight, browserBreadth are not functions, and indeed changing them to:
var width = window.mlWorld.browserWidth;
var height = window.mlWorld.browserHeight;
var breadth = window.mlWorld.browserBreadth;

works without problems. Maybe documentation should be updated?

Hey, @netgfx thanks for catching that, we've updated the API docs to reflect that: https://magicleaphelio.com/WebAPI/docs/prism-size.html

authors: chrisdubya netgfx

repo: magicleap/prismatic


text:
Could not connect to Development Server after Module Config

If you visit my update repo this is the result - this is why when you visited it earlier i had reverted it to an earlier version.

Found out it was due to the organization (not the contents) of info.plist - via the way that you have your file organized

Have same issues, guys what you have done for solving that?

You should double check your plist file. If in doubt, generate a fresh one and add the strings required again. Posting your specific file would help too.

authors: magus muchychka robtg4

repo: magus/react-native-facebook-login


text:
能否公开一下api和请求方式

RT，因为语言不同，所以需要自己实现，大神是否可以提供相应的api以及解析办法

你可以在 core.php 找到相关代码

嗯已经看到了，还好我会一点php不然真的要疯了

authors: SuperstarSage maicong

repo: maicong/music


text:
License wrong in README and Cargo.toml

The license image in the README says gpl3 (at the top), and on crates.io as well, but the actual LICENSE appears to be some commercial license.

The library is dual source, GPL v3 and a commercial license. the GPL license is listed within COPYING. Not sure why it was done this way. Let me find out.

authors: NickLambert ebfull

repo: maidsafe/crust


text:
canAccessContainer - use container variable

Code snipped has a variable for container name, but then wasn't using that variable in the function call.  Creates confusing results until you realise it.

r? @krishnaIndia
(maidsafe_highfive has picked a reviewer for you, use r? to override)

@bdrehmer Thank you for creating a PR to correct this mistake.

authors: bdrehmer hunterlester maidsafe-highfive


text:
MF-216 - Integrate Bashflux into monorepo

This pull request resolves #216.

We can add this version for Mainflux 5.0, but I would strongly suggest that for the further releases we rewrite whole bashflux later to be in the form of interactive shell using https://github.com/c-bata/go-prompt

@manuIO please resolve the conflicts and update branch.

@manuIO Remove deps that are not directly used. Check CI build log dep ensure step warning

authors: drasko manuIO nmarcetic

repo: mainflux/mainflux


text:
build(golang): dumps golang req to 1.16

Testing Brno Cluster Fedora 34 Cluster

Closing as it became irrelevant :)

authors: aslakknutsen bartoszmajsak

repo: maistra/istio-workspace


text:
Request support for Tuya Human Presence Sensor (Wifi Version)

Log Message

2023-11-04 12:21:13.598 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches ir_remote_sensors with quality of 50%. DPS: {"updated_at": 1699062672.755938, "1": "none", "101": 0, "102": 14, "103": false}
2023-11-04 12:21:13.598 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

Information about DPS mappings

{
  "result": {
    "properties": [
      {
        "code": "presence_state",
        "custom_name": "",
        "dp_id": 1,
        "time": 1699061803844,
        "value": "none"
      },
      {
        "code": "have",
        "custom_name": "",
        "dp_id": 101,
        "time": 1699061807363,
        "value": 0
      },
      {
        "code": "none",
        "custom_name": "",
        "dp_id": 102,
        "time": 1699062345443,
        "value": 9
      },
      {
        "code": "led",
        "custom_name": "",
        "dp_id": 103,
        "time": 1699062384135,
        "value": false
      },
      {
        "code": "th1",
        "custom_name": "",
        "dp_id": 104,
        "time": 1663659433226,
        "value": 120
      },
      {
        "code": "th2",
        "custom_name": "",
        "dp_id": 105,
        "time": 1663659433226,
        "value": 250
      }
    ]
  },
  "success": true,
  "t": 1699062384531,
  "tid": "f648f9287ab311ee837e2261b7a5ced3"
}

Product ID

"name": "Human Presence Sensor WiFi Version",
"product_id": "jfmnvyhd63yuuchn",
"product_name": "人体存在WIFI版",
Information about how the device functions
Using Localtuya, I have control of the microwave binary sensor, and the LED (only as a switch on/off, not color).

DPI 1: Microwave binary sensor
DPI 103: LED on/off
Using the Tuya integration it only exposes the microwave binary sensor.

24g mm wave sensor
LED changes color depending on state - Red detected, Green clear, Blue no wifi connection.

https://www.aliexpress.com/item/1005004552185948.html

This is what shows currently when trying to add

This requires more info on the dps: possible values that dp 1 can take, range and meaning of dps 101, 102, 104, 105, and whether dp 103 is a switch for controlling whether the LED is on, or a binary_sensor indicating the LED state.

repo: make-all/tuya-local


text:
added bcd to grey code conversion

Related Issue

Info about Issue or bug

fix #[issue number that will be closed through this PR]
Describe the changes you've made
A clear and concise description of what you have done to successfully close your assigned issue. Any new files? or anything you feel to let us know!
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.

Screenshots

Original
Updated

original screenshot
updated screenshot

@sairish2001  plz review this

@sairish2001  plz review

repo: makesmatheasy/makesmatheasy


text:
hw18-webflux completed

Name: «Комната 1408»
Goal: Научиться создавать реактивные приложения с Web-интерфейсом и базой данных

Request approved by Sergey Petrelevich

license: Unlicense


text:
Overhaul READMEs - as discussed

See #40, will merge if checks pass.

@makimenko Merged and published v0.1.0!

repo: makimenko/angular-template-for-threejs


text:
[WIP] 難易度表示を追加する

#113
5b4b7c1: バックエンドにdifficultyを追加しました。よくわかっていないので、バグがあるかもしれません。

ブランチを間違えたので閉じます。

ブランチを間違えたので閉じます。

操作ミスをしたので、一旦閉じました。また開きます。
957d7bc35c037460da5bf12e44bce4875d2423da: バックエンドをいろいろいじりました。よくわかっていないので、バグがあると思います。

操作ミスをしたので、一旦閉じました。また開きます。
957d7bc35c037460da5bf12e44bce4875d2423da: バックエンドをいろいろいじりました。よくわかっていないので、バグがあると思います。

開けないので、プルリク作り直します。

開けないので、プルリク作り直します。

repo: makutamoto/mojacoder


text:
Add filter columns to SNP effects dataframe

Rather than adding a site_mask parameter and actually removing filtered SNPs from the resulting dataframe, it might be more convenient to return a dataframe with all SNPs, including the three filters as dataframe columns. Then the user can see all SNPs but also have access to information on which filters are passed/failed.

Decided not to do this for now.

repo: malariagen/malariagen-data-python


text:
Various fixes on location timeout

These commit fix a couple of issues with timeout.

timeout wasn't firing because the NSTimer wasn't added to the run loop. Instead I replaced the init with scheduledTimerWithTimeInterval

People are complaining that some accuracy locations do not work. This is actually not the case, instead the accuracy simply can't be reached (for ex. because I'm inside a building with lower precision on GPS). I implemented some changes in order to return the best effort location along with the timeout error. This way you can at least receive one location while eventually retrying again to request location:

        highPrecisionLocationManager = LocationManager.shared.observeLocations(.House, frequency: .OneShot, onSuccess: { location in
            print(location)
        }) { (bestEffortLocation, error) in
            switch error {
            case .RequestTimeout:
                print(bestEffortLocation)
            default:
                break
            }
        }
        highPrecisionLocationManager.timeout = 5.0

Great PR @tcamin, I'm happy to merge these good changes

authors: malcommac tcamin

repo: malcommac/SwiftLocation


text:
objective c pod issue

[!] Pods written in Swift can only be integrated as frameworks; add use_frameworks! to your Podfile or target to opt into using it. The Swift Pod being used is: ListPlaceholder

https://github.com/Alamofire/Alamofire/issues/2285

repo: malkouz/ListPlaceholder


text:
[Bug Report] sass编辑报错

问题出在哪个包
@taroify/core
问题出在哪个平台/设备/浏览器
H5, 微信小程序
平台/设备/浏览器
window
你正在使用的 Taroify 版本是多少
3.4.8
描述一下您遇到的问题以及重现步骤
`
| Compiling...Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(0.75, 12) or calc(0.75 / 12)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
42 │           opacity: 1 - (0.75 / 12) * ($i - 1);
│                         ^^^^^^^^^
╵
node_modules@taroify\core\loading\loading.scss 42:25  @import
node_modules@taroify\core\loading\index.scss 331:9    root stylesheet
`
如果可能的话，请包含一个代码框的链接与复制的问题
No response
你知道如何解决这个问题吗
No response
您是否愿意参与修复这个问题，并创建一个 PR
No response
修复这个问题的解决方案
No response

只是警告，过段时间再升级 scss 语法。

authors: momtboy tgioer

repo: mallfoundry/taroify


text:
Not working Google Chrome Version 56

Google Chrome Version 56.0.2924.87 (64-bit)
Safari Version 10.0.3 (11602.4.8.0.1)

This is intended. See #53 #21 #73

authors: AveVlad malte-wessel

repo: malte-wessel/react-custom-scrollbars


text:
Hidden div always shows horizontal scrollbar when made visible

When you change the display value to block on the div below, there's always a horizontal scrollbar visible. Is this a bug? Or is there a way to 're-initialize' the scrollbar?
<div style={{ 'display' : 'none', 'height': '200px', 'width': '200px' }}>
    <Scrollbars height="200px" width="200px">
        Placeholder text
    </Scrollbars>
</div>

Occurs in Chrome and Edge.

Have the same problem


text:
Fixes a display issue on iPad

Fixes an issue where the background image would spill beyond the top frame boundary on iPad.
Before:

After:

+1 Thank you!!

You're welcome! When will you be deploying a new version of the CocoaPod?

I can do that tomorrow. On the road now will be home late.

repo: mamaral/Onboard


text:
Toggle to switch between themes

It's more of a nice to have feature than something critical, but more websites have now started to expose a switch to control theme, for example on the Playwright docs:
https://playwright.dev/
https://user-images.githubusercontent.com/591645/109678589-10eb9300-7b7b-11eb-975c-838b9860c420.mp4
Maybe there could be something similar here, to toggle between to reinstalled themes.

There is now an entry in the menu if more than one theme is installed to switch between themes.

authors: fcollonval jtpio

repo: mamba-org/quetz-frontend


text:
Add command to generate bootstrap and activate scripts

This is more of a feature request than a bug, feel free to close the issue if it falls outside the current scope.
Currently, when utilizing this extension and including the environment.yml file in a project, the user is restricted to controlling the environment solely within VSCode. It would be highly beneficial to have a command within the extension that generates a script enabling the initialization and activation of the virtual environment outside of the VSCode environment. This enhancement would greatly enhance flexibility and convenience for users.

umh, micromamba activate <env_name>?

oh, you are talking about linux environment??

If there is some interest, I can provide the scripts for windows too.

well, i don't think there's a need for this. on windows, it's just a standalone file - i put-ed it anywhere, entered it in $PATH environment variable (system wide), and it runs fine....
(i am using msys2 to provide bash)
$ micromamba activate facerecog_env
critical libmamba Shell not initialized

'micromamba' is running as a subprocess and can't modify the parent shell.
Thus you must initialize your shell before using activate and deactivate.

To initialize the current bash shell, run:
    $ eval "$(micromamba shell hook --shell bash)"
and then activate or deactivate with:
    $ micromamba activate
To automatically initialize all future (bash) shells, run:
    $ micromamba shell init --shell bash --root-prefix=~/micromamba
If your shell was already initialized, reinitialize your shell with:
    $ micromamba shell reinit --shell bash
Otherwise, this may be an issue. In the meantime you can run commands. See:
    $ micromamba run --help

Supported shells are {bash, zsh, csh, xonsh, cmd.exe, powershell, fish}.

$ eval "$(micromamba shell hook --shell bash)"

$ micromamba activate facerecog_env
warning  libmamba 'root_prefix' set with default value: C:\Users\...\micromamba
(facerecog_env)
$

We don't need micromamba to activate the environment when we want to activate an environment created by the extension.
A .env.<name> file is generated when the environment is created. To activate the environment, we could set environment variables from the .env.<name> file.
I'm trying to figure out how to make it convenient and simple for users in all those different terminal types and can't see it yet.

authors: corker goyalyashpal jfchenier

repo: mamba-org/vscode-micromamba


text:
Update fritzconnection to 1.2.0 (HA 0.105)

Sadly a couple of things changed (in a strange manner). Eg. values for on/off are now booleans. Sometimes.
It was a bit of a hassle to test everything and I made some fishy changes, but it works on my setup now.
Tested:

Get value of call deflection
Set value of call deflection
Get port forward
Set port forward
Get device profile
Set device profile
Get guest wifi state
Set guest wifi state
Connectivity sensor

@AaronDavidSchneider could you test it with your setup as well? And feel free to review and provide feedback!
Closes #46
Closes #63

Homeassistant 0.105 is now available

authors: AaronDavidSchneider mammuth

repo: mammuth/ha-fritzbox-tools


text:
[SUGGESTION] Ability to detect non-cybersyn trains

I was copy-pasting some trains and somehow ended up with a train that just went back and forth on the same route, ignoring any conditions and filling up the cargo beyond the requested amount.
I was able to use the indev menu to figure out that that train was NOT actually part of the cybersyn network, even though it went through the depot multiple times (setting a filter for that particular item showed 0 results). Deleting that train fixed the issue but it would be nice to have some sort of a warning when a train is visiting a cybersyn station without it being connected to the network.
For anyone who wants to check their current network for zombie trains, use this:
/c
local trains = remote.call("cybersyn", "read_global", "trains")
game.print("Number of trains in cybersyn: " .. table_size(trains))

local game_trains = game.surfaces[1].get_trains()
game.print("Number of trains in game: " .. #game_trains)

The counts should be identical, ignoring any shuttle trains.

Turns out the problem had nothing to do with this. The depot had a couple of stations missing the combinator. #150

repo: mamoniot/project-cybersyn


text:
! method only callable as !obj, not obj.!

Negation (!) is a definable method, but isn't callable using standard method syntax (obj.!), only the syntactic sugar form of !obj.  Example:
class TestClass
  def !
    puts "!" * 10
  end
end

obj = TestClass.new
!obj
obj.!

I'm not sure why anybody would want to call it this way, but since it's a method, it should be possible to use normal method syntax.

This is actually important, because when writing macro you normally use the obj.method(...) notation and in this case it would fail to parse. Thanks!

Oh nice, I just thought it was some obscure syntax parsing oddity that nobody would ever need.  Only reason I even found it is I was poking at possible methods for the .not_nil! RFC discussion.
Glad it was a useful find.

authors: Marand- asterite

repo: manastech/crystal


text:
Split a string on matched tokens, but keep the delimiters

Hi,
I'm trying to split a string on a particular delimiter, but I want to keep the delimiter.
I'm quite new to Ruby-ish ecosystem, so it took me quite  a while to figure few things. However, I still couldn't achieve what I wished for.
Example (taken from http://stackoverflow.com/a/6964207)
s = "split on the word on okay?"

I've tried String#split, but it doesn't allow to keep delimiters (or so it seems, according to source code).
I've tried to play on the regexes like
s.split(/(on)/)

But I am unable to achieve:
["split ", "on", " the word ", "on", " okay?"]

I also tried the "Ruby-way" with the link provided over, but nothing again gave the desired output.
Any help is greatly appreciated,
A.
n.b. I would've normally asked this kind of question on SO but I'm not quite sure about the visibility of Crystal-lang related questions there

Oh, I didn't know that in Ruby if the argument given to split is a regex then the groups are returned in the result array as well. I'll do it.

Hmmm... In fact, maybe we can change things from Ruby, a bit. For example say you want to split by /(foo)+/ but without keeping the delimiter, in Ruby there's no way. So maybe we can add options to these methods.
class String
  def split(separator : Char, limit = nil, include_separator = false)
  end

  def split(separator : String, limit = nil, include_separator = false)
  end

  def split(separator : Regex, limit = nil, include_separator = false, include_groups = false)
  end
end

What do you think?
/cc @jhass

That'd simplify the way to do it, yes. I don't know if it is a common task, but I think doing this would make sense.

Regular expressions are already telling something, so maybe we don't need to introduce new arguments?

/on/ skips the delimiter;
/(on)/ injects the delimiter (captured);
/(?:on)+/ skips the delimiter (not tested, but expected since it groups but doesn't capture).

You can do this already http://carc.in/#/r/2ib so maybe we can keep it simple?

Oh and Ruby also has String#partition, which while only splitting once, has "keep the delimiter" a lot more obvious in its contract.

@jhass Thanks! Yes, let's keep it simple for now. I have the include_separator implementation in a stash in case we want to add it later.
I wonder what's needed for us to start using Stack Overflow... Probably nothing. Maybe we should use the crystal-lang tag as there's also crystal-reports.

I'd love to get a mod to give use the crystal alias though.

:+1: for a stackoverflow tag

I have enough rep to create tags; I just need to find out what question to ask. :)

Going to http://stackoverflow.com/tags?tab=new is not enough?

Nevermind; I just tagged the question asking if anyone has tried Crystal.
Behold...the Crystal tag: http://stackoverflow.com/questions/tagged/crystal-lang
Now somebody needs to ask a question on SO and use this tag within six months to prevent it from being deleted...

@kirbyfan64 Thanks!!
@vyp Thank you too, that'll help spreading that tag in Stack Overflow.

Nice for the SO tag!
@ysbaddaden Indeed, just reading at the Regex is clear to me that'd be what to expect from it.
@jhass Thanks for the link, I'll use this at the moment, although that I feel it seems hacky a bit, but hey, it works :)
Thanks guys, that answered my question!

The solution from @jhass isn't hacky, it's just a regular expression, but it sure is more complicated than having String#split reinject captured expressions !

@ysbaddaden Totally forgot about (?:...) for not capturing a group.
I think it would be fine then to copy Ruby's semantic. It's a simple change that adds flexibility and makes it easy to keep the delimiter, plus maybe other cases.

sweet!

:+1:

authors: asterite jhass kirbyfan64 mrtryhard ysbaddaden