Prefixed actions are very slow

What did you expect to happen?
Prefixed actions (is that the right term?) like g g, z z, z a, etc. are executed immediately.
What actually happened?
When I type e.g. g g to return to the top of a file, the first g first opens the minibuffer listing possible evil actions starting with g. This takes ~5 seconds. Only then is the second g processed, and the action executed.
I am ok with there being a delay before the minibuffer is shown, but if I type g g fast I just want that action to run instantly.
Similarly, actions like SPC , take just a little bit too long (although it's not quite as bad as g g and z z).
Additional details:
My config includes
(setq which-key-idle-delay 0.1)
(setq which-key-idle-secondary-delay 0.1)

Which I've come across in threads like #1317 and others, but adding/changing those lines doesn't help. My config is pretty vanilla otherwise (just some theming and indentation settings).
Profiler output after navigating to the end of a file and hitting g g:

There are no warnings or other problems anywhere, and I see no correlation with modes or file sizes.
I'm happy to help debug this in whatever way I can, I just don't know where to start. Thank you for this incredible project!
System information:

emacs   version    26.3
        features   XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2
        build      Sep 16, 2019
        buildopts  (--build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=26 --with-modules --with-file-notification=inotify --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets --with-lcms2 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs26-TP6iDo/emacs26-26.3~1.git96dd019=. -fstack-protector-strong -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie')
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop 847bbf380 2020-06-13 17:12:23 -0400
        dir        ~/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /bin/zsh
        uname      Linux 5.6.2-050602-generic #202004020822 SMP Thu Apr 2 12:25:59 UTC 2020 x86_64
        path       (~/.nvm/versions/node/v12.13.1/bin ~/.local/kitty.app/bin ~/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin ~/.fzf/bin /usr/lib/x86_64-linux-gnu/emacs/26.3/x86_64-linux-gnu/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets :emacs dired electric ibuffer vc :tools (eval +overlay) :checkers syntax :tools (lookup +docsets) magit :lang data emacs-lisp markdown (org +dragndrop +ipython +pandoc +roam +present) sh :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (n/a)
        elpa       (zzz-to-char zygospore zprint-mode web-mode typescript-mode tide spinner s reason-mode prettier-js popup pkg-info org-roam org-plus-contrib org opencl-mode markdown-mode lv lsp-mode ht flycheck-elixir flycheck f epl emacsql-sqlite emacsql elixir-mode dash-functional dash company-org-roam company caml ayu-theme avy auto-complete alchemist ac-alchemist)

(setq which-key-idle-delay 0.1)
(setq which-key-idle-secondary-delay 0.1)

This is only expected with delays so low. Their default is 1.0 for a reason. Increase it, and it won't trigger so quickly that you can't even type trivial key sequences without invoking it.

Thank you Henrik!
Hmm – this does help, but now it takes even longer for the minibuffer to come up when I do need it. Is there a reason it takes so long to load? Ideally, I do want it to pop up after a few hundred milliseconds at most, but still not block further input in the meantime. Anything I can do to speed it up?

I'm surprised that it takes so long. Does it happen only the first time you invoke which-key, or every time?
If it's the former, that's the delay of which-key loading for the first time. You could get around that by loading which-key more aggressively for a small startup cost, e.g.
;; in ~/.doom.d/config.el
(require 'which-key)

If the latter, then that is unusual. I see you're on a two-month old version of Doom. There were some optimizations both to Doom and to which-key (upstream) that may help out. Try upgrading (by running doom upgrade on the command line).

Thank you. It happens every time, and pre-requiring which-key beforehand didn't make a difference; neither did upgrading and reloading. What did help in the end was restarting emacs. Is it possible that after weeks of usage, something somewhere (?) accumulates that ends up slowing things down?

What did help in the end was restarting emacs. Is it possible that after weeks of usage, something somewhere (?) accumulates that ends up slowing things down?

Yes. Definitely. Memory usage, background buffers, more elisp loaded in memory -- unless you're extra careful to keep Emacs tidy every day it is generally unwise to keep it open for so long. In any case, I'll consider this resolved.


scVI integration and highly variable genes selection

Hello everyone!
I have a question on scanpy and the selection of the highly variable genes before the downstream integration step with scVI.
In my dataset I have two main variables: “donor” and “batch_ID”. Each donor (X, Y, Z, …) corresponds to more than one sample sequenced (Xa, Xb, Xc, …), so the variable “donor” groups more than one sample. While, instead, the “batch_ID” variable corresponds to each sample sequenced.
In the code of HVG selection, sc.pp.highly_variable_genes, there is the option to set the batch_key. Should I set the batch_key equal to “batch_ID” or to “donor”?
Another question, should I use the same variable of HVG selection as the one on which I perform the batch correction for the integration? I mean, if I decide to select the HVGs on the “donor” instead of on “batch_ID”, should I set the batch correction in the modeling of the training on “donor” as well? Or the selection of HVGs is independent from the choice of the variable to correct the batch for the integration?
And last one, if I want to make a subset of clusters to focus the analysis on specific type of cells (like, starting from total PBMCs, I want to focus on myeloid cells == adata_reduced), should I recalculate the HVGs and perform again the training of the adata_reduced? If yes, the batch_key in the HVG code on adata_reduced should be the same as the one chosen for the adata?
Thanks so much!!
Paolo

Hi Paolo,
Thank you for the question. Do you mind asking on our forum. We reserve github issues for development related content. Thanks!


Add UITableViewSection, fix typos, lower deployment target

I added UITableViewSection for title and footer keys, fixed a bunch of typos you had in the readme, and lowered the deployment target since Swift can be used on iOS 7 projects.

The lib does support iOS 7. The issue is that when including the app through CocoaPods, use_frameworks! needs to be used, which is only supported by iOS 8 projects. The decision to only support iOS 8 as a target is on purpose for the sake of simplicity.
Please remove this and I will merge the branch. Thanks for the contribution!

Tried to tun on iOS.
IB allows to set localized key, but project is not compiling because "import AppKit" not found.
If I tried to change it to UIKit - new error "use of undeclared type UITableViewSection"


4 Threads crashes xorg with lc0 on default

I installed rocm-arch and i can run lczero on my 6800 XT but only if i set 1 thread per player. Default is 2 Threads per player and with 2 players (equals to 4 threads) then the desktop crashes (it gets black). I switched to tty manually and killed my session and login to kde again. I opend an issue here: https://github.com/LeelaChessZero/lc0/issues/1765 but they said it could be an driver issue.

rocminfo

~/ rocminfo
ROCk module is loaded
=====================
HSA System Attributes
=====================
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE
==========
HSA Agents
==========
*******
Agent 1
*******
Name:                    AMD Ryzen 7 5700G with Radeon Graphics
Uuid:                    CPU-XX
Marketing Name:          AMD Ryzen 7 5700G with Radeon Graphics
Vendor Name:             CPU
Feature:                 None specified
Profile:                 FULL_PROFILE
Float Round Mode:        NEAR
Max Queue Number:        0(0x0)
Queue Min Size:          0(0x0)
Queue Max Size:          0(0x0)
Queue Type:              MULTI
Node:                    0
Device Type:             CPU
Cache Info:
L1:                      32768(0x8000) KB
Chip ID:                 0(0x0)
Cacheline Size:          64(0x40)
Max Clock Freq. (MHz):   3800
BDFID:                   0
Internal Node ID:        0
Compute Unit:            16
SIMDs per CU:            0
Shader Engines:          0
Shader Arrs. per Eng.:   0
WatchPts on Addr. Ranges:1
Features:                None
Pool Info:
Pool 1
Segment:                 GLOBAL; FLAGS: FINE GRAINED
Size:                    32707376(0x1f31330) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
Pool 2
Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size:                    32707376(0x1f31330) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
Pool 3
Segment:                 GLOBAL; FLAGS: COARSE GRAINED
Size:                    32707376(0x1f31330) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
ISA Info:
*******
Agent 2
*******
Name:                    gfx1030
Uuid:                    GPU-XX
Marketing Name:          AMD Radeon RX 6800 XT
Vendor Name:             AMD
Feature:                 KERNEL_DISPATCH
Profile:                 BASE_PROFILE
Float Round Mode:        NEAR
Max Queue Number:        128(0x80)
Queue Min Size:          64(0x40)
Queue Max Size:          131072(0x20000)
Queue Type:              MULTI
Node:                    1
Device Type:             GPU
Cache Info:
L1:                      16(0x10) KB
L2:                      4096(0x1000) KB
L3:                      131072(0x20000) KB
Chip ID:                 29631(0x73bf)
Cacheline Size:          64(0x40)
Max Clock Freq. (MHz):   2575
BDFID:                   768
Internal Node ID:        1
Compute Unit:            72
SIMDs per CU:            2
Shader Engines:          8
Shader Arrs. per Eng.:   2
WatchPts on Addr. Ranges:4
Features:                KERNEL_DISPATCH
Fast F16 Operation:      TRUE
Wavefront Size:          32(0x20)
Workgroup Max Size:      1024(0x400)
Workgroup Max Size per Dimension:
x                        1024(0x400)
y                        1024(0x400)
z                        1024(0x400)
Max Waves Per CU:        32(0x20)
Max Work-item Per CU:    1024(0x400)
Grid Max Size:<PHONE_NUMBER>(0xffffffff)
Grid Max Size per Dimension:
x<PHONE_NUMBER>(0xffffffff)
y<PHONE_NUMBER>(0xffffffff)
z<PHONE_NUMBER>(0xffffffff)
Max fbarriers/Workgrp:   32
Pool Info:
Pool 1
Segment:                 GLOBAL; FLAGS: COARSE GRAINED
Size:                    16760832(0xffc000) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Alignment:         4KB
Accessible by all:       FALSE
Pool 2
Segment:                 GROUP
Size:                    64(0x40) KB
Allocatable:             FALSE
Alloc Granule:           0KB
Alloc Alignment:         0KB
Accessible by all:       FALSE
ISA Info:
ISA 1
Name:                    amdgcn-amd-amdhsa--gfx1030
Machine Models:          HSA_MACHINE_MODEL_LARGE
Profiles:                HSA_PROFILE_BASE
Default Rounding Mode:   NEAR
Default Rounding Mode:   NEAR
Fast f16:                TRUE
Workgroup Max Size:      1024(0x400)
Workgroup Max Size per Dimension:
x                        1024(0x400)
y                        1024(0x400)
z                        1024(0x400)
Grid Max Size:<PHONE_NUMBER>(0xffffffff)
Grid Max Size per Dimension:
x<PHONE_NUMBER>(0xffffffff)
y<PHONE_NUMBER>(0xffffffff)
z<PHONE_NUMBER>(0xffffffff)
FBarrier Max Size:       32
*** Done ***

clinfo

~/ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3452.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns
Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
Device Name                                     gfx1030
Device Vendor                                   Advanced Micro Devices, Inc.
Device Vendor ID                                0x1002
Device Version                                  OpenCL 2.0
Driver Version                                  3452.0 (HSA1.1,LC)
Device OpenCL C Version                         OpenCL C 2.0
Device Type                                     GPU
Device Board Name (AMD)                         AMD Radeon RX 6800 XT
Device PCI-e ID (AMD)                           0x73bf
Device Topology (AMD)                           PCI-E, 0000:03:00.0
Device Profile                                  FULL_PROFILE
Device Available                                Yes
Compiler Available                              Yes
Linker Available                                Yes
Max compute units                               36
SIMD per compute unit (AMD)                     4
SIMD width (AMD)                                32
SIMD instruction width (AMD)                    1
Max clock frequency                             2575MHz
Graphics IP (AMD)                               10.3
Device Partition                                (core)
Max number of sub-devices                     36
Supported partition types                     None
Supported affinity domains                    (n/a)
Max work item dimensions                        3
Max work item sizes                             1024x1024x1024
Max work group size                             256
Preferred work group size (AMD)                 256
Max work group size (AMD)                       1024
Preferred work group size multiple (kernel)     32
Wavefront width (AMD)                           32
Preferred / native vector sizes
char                                                 4 / 4
short                                                2 / 2
int                                                  1 / 1
long                                                 1 / 1
half                                                 1 / 1        (cl_khr_fp16)
float                                                1 / 1
double                                               1 / 1        (cl_khr_fp64)
Half-precision Floating-point support           (cl_khr_fp16)
Denormals                                     No
Infinity and NANs                             No
Round to nearest                              No
Round to zero                                 No
Round to infinity                             No
IEEE754-2008 fused multiply-add               No
Support is emulated in software               No
Single-precision Floating-point support         (core)
Denormals                                     Yes
Infinity and NANs                             Yes
Round to nearest                              Yes
Round to zero                                 Yes
Round to infinity                             Yes
IEEE754-2008 fused multiply-add               Yes
Support is emulated in software               No
Correctly-rounded divide and sqrt operations  Yes
Double-precision Floating-point support         (cl_khr_fp64)
Denormals                                     Yes
Infinity and NANs                             Yes
Round to nearest                              Yes
Round to zero                                 Yes
Round to infinity                             Yes
IEEE754-2008 fused multiply-add               Yes
Support is emulated in software               No
Address bits                                    64, Little-Endian
Global memory size<PHONE_NUMBER>8 (15.98GiB)
Global free memory (AMD)                        16760832 (15.98GiB) 16760832 (15.98GiB)
Global memory channels (AMD)                    8
Global memory banks per channel (AMD)           4
Global memory bank width (AMD)                  256 bytes
Error Correction support                        No
Max memory allocation<PHONE_NUMBER>8 (13.59GiB)
Unified memory for Host and Device              No
Shared Virtual Memory (SVM) capabilities        (core)
Coarse-grained buffer sharing                 Yes
Fine-grained buffer sharing                   Yes
Fine-grained system sharing                   No
Atomics                                       No
Minimum alignment for any data type             128 bytes
Alignment of base address                       1024 bits (128 bytes)
Preferred alignment for atomics
SVM                                           0 bytes
Global                                        0 bytes
Local                                         0 bytes
Max size for global variable<PHONE_NUMBER>8 (13.59GiB)
Preferred total size of global vars<PHONE_NUMBER>8 (15.98GiB)
Global Memory cache type                        Read/Write
Global Memory cache size                        16384 (16KiB)
Global Memory cache line size                   64 bytes
Image support                                   Yes
Max number of samplers per kernel             29631
Max size for 1D images from buffer            134217728 pixels
Max 1D or 2D image array size                 8192 images
Base address alignment for 2D image buffers   256 bytes
Pitch alignment for 2D image buffers          256 pixels
Max 2D image size                             16384x16384 pixels
Max 3D image size                             16384x16384x8192 pixels
Max number of read image args                 128
Max number of write image args                8
Max number of read/write image args           64
Max number of pipe args                         16
Max active pipe reservations                    16
Max pipe packet size<PHONE_NUMBER> (1.587GiB)
Local memory type                               Local
Local memory size                               65536 (64KiB)
Local memory size per CU (AMD)                  65536 (64KiB)
Local memory banks (AMD)                        32
Max number of constant args                     8
Max constant buffer size<PHONE_NUMBER>8 (13.59GiB)
Preferred constant buffer size (AMD)            16384 (16KiB)
Max size of kernel argument                     1024
Queue properties (on host)
Out-of-order execution                        No
Profiling                                     Yes
Queue properties (on device)
Out-of-order execution                        Yes
Profiling                                     Yes
Preferred size                                262144 (256KiB)
Max size                                      8388608 (8MiB)
Max queues on device                            1
Max events on device                            1024
Prefer user sync for interop                    Yes
Number of P2P devices (AMD)                     0
Profiling timer resolution                      1ns
Profiling timer offset since Epoch (AMD)        0ns (Thu Jan  1 01:00:00 1970)
Execution capabilities
Run OpenCL kernels                            Yes
Run native kernels                            No
Thread trace supported (AMD)                  No
Number of async queues (AMD)                  8
Max real-time compute queues (AMD)            8
Max real-time compute units (AMD)             36
printf() buffer size                            4194304 (4MiB)
Built-in kernels                                (n/a)
Device Extensions                               cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
clCreateContext(NULL, ...) [default]            No platform
clCreateContext(NULL, ...) [other]              Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
Platform Name                                 AMD Accelerated Parallel Processing
Device Name                                   gfx1030
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
Platform Name                                 AMD Accelerated Parallel Processing
Device Name                                   gfx1030
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
Platform Name                                 AMD Accelerated Parallel Processing
Device Name                                   gfx1030

Installed arch AUR packages:

aur/hip-runtime-amd
aur/hsa-amd-aqlprofile-bin
aur/hsa-rocr
aur/lc0
aur/leela-zero
aur/rocm-hip-sdk
aur/rocm-opencl-sdk

Note: 1. in that packages are some checksum and dependency errors that i workaround. 2. Compiling it could be a reason to get a drink. 3. I kicked out blas or openblas.
UEFI is set to "resizable-bar=on"

resizable Bar:

~/ sudo dmesg | grep BAR=
[    1.675524] [drm] Detected VRAM RAM=16368M, BAR=16384M

Hi @Chris2000SP, please try ROCm 6.0.0 to see if your issue has been resolved.  If resolved, please close the ticket.  Thanks.

Sorry, i have tested it now with rocm 5.7.1 and still persists. As there are no AUR packages for 6.x.x i can not test it until i manually compile this half a day with your tutorials. Can i wait for this or do i have to invest a hole day to test this?

The difference now is that i use wayland now, and wayland did not crash but lc0 could not execute with that setting.

OK, i tested it with xorg. xorg did not crash but lc0 again did not execute with 2 treads and 2 players. As xorg did not crash it is soved half way. So this is now a simpler user error and no crash of xorg. I close this thread. I think that this is a minor issue.

Xorg do not crash anymore. lc0 do not execute with default and is a user error only now.


Faster RCNN on Jetson TX2

Hi @naisy ,
Thanks a lot for sharing your work.
In the readme, you have mentioned Faster R-CNN: PC only
Were you able to get FasterRCNN+Inception (or) FasterRCNN+ResNet working on TX2 with TensorFlow? Is there any known issue doing so?

Hi @sivagnanamn,
TX2 has small memory capacity, therefore error occurs at run time.
You can download from https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md

Thank you @naisy .
FasterRCNN+Inception (or) FasterRCNN+ResNet seems to throw cuda launch out of resources error while running on TX2. Especially in the places where tf.where operation is involved.
However, moving tf.where to CPU results in wrong detection. Have you come across this error before?

Hi @sivagnanamn,
I have not confirmed the existence of detection error caused by processing tf.where on CPU.
The CUDA of ARM architecture seems to require more memory than X86 architecture.
I hope that memory problem will be solved with Xavier and CUDA10.


Add cargo fmt command to make lint

Current make lint just run cargo clippy  command , me hope add cargo fmt command to  make lint command for Makefile file.

@lengrongfu I have the same idea. Let's do it!

@lengrongfu Should I assign you?

Hey  , I missed that when originally making the makefile :sweat_smile: Thanks for opening this and working on it :heart:


Updated 1forge service URL

It looks like the API URL has changed for the 1forge service

Bump @florianv

Thanks @rossjcooper :)


Add SDP API Docs

Adds the SDP API docs to the APIs section of the developer docs.
When reviewing changes, use the PR preview. The only file worth reviewing, and the only file that needs updates, is openapi/sdp/main.yml.
The OpenAPI specification was mostly sufficient for generating good docs, however there are a few remaining items:

The specification used example requests & responses instead of defining schemas for each of the requests and responses.   Our docs do not support examples, so each endpoint is missing POST or PATCH schemas and response schemas.
Each "resource" is missing a description
Each endpoint is missing a description. Right now they match the status code they return like OK or Created

NOTE: DO NOT CHANGE THE SUMMARY OR OPERATION ID OF THE ENDPOINTS
These fields in the specification map to the file names of the autogenerated markdown files. If you change the summary or operation Id of an endpoint, you'll have to update the relevant endpoint table to link to the updated file name.

Something went wrong with PR preview build please check

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Thank you! I can take a first pass at writing the resource descriptions today and then work on the endpoint descriptions.

This is an awesome addition @JakeUrban! One observation:
You'll need to modify one of the rewrite rules in /nginx/includes/redirects.conf. As it is now, someone can find themselves redirected to docs.site/api/horizon/sdp/whatever on accident. It only seems to happen when you physically type the URL into the address bar or copy/paste into the address bar. Example: go to this URL. I'm not exactly sure why the redirect doesn't happen through ordinary page navigation, though. Probly some client-side wizardry with docusaurus, maybe? I can add that redirect for you, if you like.
Two (pretty inconsequential) questions:

The api:bundle command in package.json is getting a bit cumbersome. Do you mind if I push a change to your branch that cleans that up just a bit? I'm thinking something like breaking horizon, ap, sdp into their own commands and api:bundle calling each of them.
The URL schemes for SDP and AP are inconsistent. We already have docs.site/api/anchor-platform, but we're adding docs.site/api/sdp. We should probably be consistent across our different APIs, although I don't really have a preference for which way we might go. I think /api/stellar-disbursement-platform feels quite unwieldy, though lol. This is probably a pretty nit-picky thing anyway, though. What are your thoughts?

Hi @ElliotFriend, it would be great if you could add the redirect!
As for 1, I think thats a good idea, but maybe outside the scope of this PR. If you make another PR for this refactor I can merge main to update this branch.
On 2, I definitely don't want to use api/ap, because nobody calls the anchor platform "AP" in the same way we use "SDP". So if we want to be consistent, I would vote for api/stellar-disbursement-platform so we can keep api/anchor-platform. Personally I don't think its a big deal if the URLs don't all use full names though.

I spelled disbursement wrong. I blame my concussion. But you get the idea.

Something went wrong with PR preview build please check

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Something went wrong with PR preview build please check

Something went wrong with PR preview build please check

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Something went wrong with PR preview build please check

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr188.previews.kube001.services.stellar-ops.com


Fix <TracePathMatcher should match pattern "**" with paths end by "/">

[ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
[x] Update the CHANGES log.

@devkanro Please help on reviewing this new one.

@DominikHubacek You need to fix CI, look like code style issue.

@DominikHubacek It is better you could confirm all these edge cases. https://github.com/apache/skywalking-java/pull/72#issuecomment-975170969

@DominikHubacek You need to fix CI, look like code style issue.

Will do

@DominikHubacek It is better you could confirm all these edge cases. https://github.com/apache/skywalking-java/pull/72#issuecomment-975170969

I changed tests based on that comment, but only those which are checked(true), will add those unchecked (false) as well

ok

I have improved the state machine to support #72, check the comment to get more infomation.
@DominikHubacek @wu-sheng

OK, so, this becomes a hybrid PR. @DominikHubacek Please recheck this PR, and if you don't feel comfortable about this PR will(if merged) be on your name, we could consider other options.

OK, so, this becomes a hybrid PR. @DominikHubacek Please recheck this PR, and if you don't feel comfortable about this PR will(if merged) be on your name, we could consider other options.

its ok, I checked if my changes still work as intended and fixed 1 test based on devkanro comment

Could you two confirm this is good now?


change to MIT license

Codecov Report

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

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


Add admin inlines

Description
I added some inlines for most of the tables. I modeled the column choices based on the Paddle.com versions of the same tables where possible. I didn't do businesses yet since I wasn't able to generate any test data for that table.
Related Issue
#70
Type of Change

[ ] 📚 Examples / docs / tutorials / dependencies update
[x] 🔧 Bug fix (non-breaking change which fixes an issue)
[x] 🥂 Improvement (non-breaking change which improves an existing feature)
[ ] 🚀 New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🔐 Security fix

Checklist

[x] I've read the CODE_OF_CONDUCT.md document.
[x] I've read the CONTRIBUTING.md guide.
[x] I've updated the code style using make codestyle.
[ ] I've written tests for all new methods and classes that I created.
[ ] I've written the docstring in Google format for all the methods and classes that I used.

I added a second commit that removed the Account model dependency. I don't see the value in using Account in parallel with AUTH_USER_MODEL, especially when the default for Account is to use the user model anyway. I think it would be better to just keep it all within the user model and not create a layer of abstraction.

The account model is required for flexibility. In a multitenant system, 1 user can have multiple workspace and with this multiple subscription for the same product.

I see, that makes sense. I will add that part back in then.

I modified from_paddle_data to allow account_id to be optional. If it is supplied and the account model doesn't exist, it returns an error still, but if it is not supplied it will just leave the field null.

Please check this comment https://github.com/websideproject/django-paddle-billing/issues/70#issuecomment-2143297164
Can you describe your workflow from the frontend? How do you plan linking customer to users and subscriptions to users/accounts? (Js example code? )
Making the account optional doesn't break stuff for the users who uses the account_id, but can create orphan customers and subscriptions for the others

In my case, each user will only be allowed one subscription at a time and I require an account to be created before signing up, so I have their email. However, I am not sure how I will handle third-party sign-in cases with no email yet.
I just created a new user account and registered for a subscription on my site and I see in the webhooks the paddle customer get created then the subscription with the customer_id attached, so I am able to get them all linked up to the email address provided by the user when they subscribe. In my case at least, I am not seeing any risk of an orphaned account or subscription.

This PR started to grow big from the original title. It's ok for now, but let's create other PRs for other than fixes of the current PR scope.
I need some time to review and test the changes

No worries. I actually intended to make them separate pull requests but I wasn't paying attention and just ran with it when I noticed.


ActiveRel creation fails if a related node is subclassed

I have a failing test I'm trying to puzzle out now...
Basically this fails:
class ParentClass
  include Neo4j::ActiveNode
end

class FromClass < ParentClass
  has_many :out, :to_classes, rel_class: 'RelClass'
end

class ToClass
  include Neo4j::ActiveNode
end

class RelClass
  type 'is_a'
  from_class :FromClass
  to_class :ToClass
end

with this error:
Neo4j::Session::CypherError: ParentTestClass_uuid not defined
  "MATCH (to_node) WHERE (ID(to_node) = {to_node_id})
  CREATE (from_node:`FromClass:ParentClass` {uuid: {from_node_FromClass:ParentClass_uuid}})
  CREATE UNIQUE from_node-[rel:is_a {rel_create_props}]->to_node
  SET rel.`created_at` = {setter_rel_created_at}
  RETURN rel, from_node"

It looks like it's a problem with that parameter needing to be quoted maybe to hide the identifier colon(:) from the parser?  But I'm still digging out where exactly the issue originates.  I wonder if this is related to #1128 also?

Interesting!
ActiveRel's queries get built using classes defined here. You'll get different results based on the persistence state of the nodes. We can see from this line that we're just using the Cypher DSL from Neo4j-core, so I think the root cause of this is the way that param names are created from labels. When I run that problem line directly, IRB singles out that :.
Neo4j::Session::CypherError: ParentClass_uuid not defined (line 1, column 51 (offset: 50))
"CREATE (n:`Student:ParentClass` {uuid: {n_Student:ParentClass_uuid}}) RETURN n"
                                                   ^

We should take a look at Neo4j-core, find where it sets params, and make sure it strips invalid characters.

Spent 30 mins looking at Neo4j-core and it looks like it might be tricky to fix, but @cheerfulstoic is more familiar with that code than me and might be able to do it faster. As a quick and dirty fix, we can just rewrite the CREATE statement with a String and set params manually.
    def create_query
      return match_query if graph_object.persisted?
      base_query.create("(#{identifier}:`#{graph_object.labels_for_create.join('`:`')}` {#{identifier}_create_params})")
        .params("#{identifier}_create_params" => graph_object.props_for_create)
    end

I didn't write a test for it so I won't PR it or merge in just yet, have to get off the computer right now (actually 10 minutes ago!) but it appears to solve the problem when I test by hand.
Alternatively, as a workaround, you can create the node and rel in two steps instead of one. The params won't be part of the rel creation query so it won't break.

Thanks Chris - hopefully this fix will work in neo4j-core

Awesome! Fix released as 6.1.7!

:dancers:


Upgrade Knative Camel Operator to 0.15.1

Signed-off-by: Nicola Ferraro<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

It seems Ansible hooks into the examples and tries to parse "{{slack.token}}", which is a string, part of the example. Any clue why?

Any guidance on how to unlock this?

It seems to be the problem on CVP side.I will try to retest it.

/test CVP

@mvalahtv I've changed the examples to (trying) avoid the conflict with Ansible.


Add Omega support to Cosine Bell tests

Checklist

[x] Testing comment in the PR documents testing used to verify the changes

Omega is using newer modules on Chrysalis than Polaris, so we need to update the Polaris version and build new spack packages before this can go in.

With https://github.com/E3SM-Project/Omega/pull/169, this is working through forward steps but viz steps are failing because the dimensions are cannot yet be translated, see #172

Seems to be working!  Viz is messed up but can be fixed (with Andrew Nolan).  Convergence isn't what it should be, so we need to look into that.

For comparison, MPAS-Ocean is performing considerably better, presumably because of higher order tracer advection schemes:

We should presumably do an MPAS-Ocean run with centered tracer adveciton for comparison.

We should presumably do an MPAS-Ocean run with centered tracer adveciton for comparison.

I'll do this. Just let me know if you've already started making the MPAS-O changes

I get the same convergence for MPAS-Ocean (tracer adv order 2, monotonic off):

I will plan to add a separate test for 2nd order advection in a follow-on PR for benchmarking Omega against MPAS-O.

Okay, this runs fine (still fails analysis step) after a rebase.

Thanks again @cbegeman!!


Added

Made changes in the styling and also added footer component

I have resolved the conflicts and removed the newsletter part

@biswajit150803 you can raise a new issue
To add FAQ, Terms of Service etc


Dutch translation added

Thank you very much for this awesome card! I have added the Dutch translation.

Thanks!


ViewGroup and EmiterBackground

Hi!
Today I found a way to put particles inside a Fragment (#58) but now the problem i'm dealing with is that the constructor new ParticleSystem(ViewGroup parentView, Drawable drawable, int maxParticles, long timeToLive) cannot be used for the displaying the particles in the background because it throws the error android.support.v7.widget.AppCompatImageView cannot be cast to android.view.ViewGroup when new ParticleSystem(getActivity(), 50, R.drawable.animated_particles, 1000, R.id.background_hook)
Any idea of how to fix this?
Thanks for your time!

The exception is very clear, the hook is not a ViewGroup, but an AppCompatImageView.
The hook view needs to be a ViewGroup so the ParticleSystem (which is a View) can be made a child of it.
The simplest ViewGroup you can use is a FrameLayout.
Hope this helps.

@plattysoft Thanks!


Need script optimization to improve blog performance in Lighthouse

The provided script is significantly impacting the blog’s performance score in Lighthouse. It would be beneficial to optimize the script or incorporate it into the build process to enhance its performance.
https://github.com/d9beuD/blog.d9beud.com/blob/2632e381e4aca57ea0a1ff9c5d97dad0dadd77c0/_layouts/post.html#L57-L100

https://github.com/d9beuD/blog.d9beud.com/commit/92dcddb7154e67bee2f16e5913401ceecaf81006 resolves this issue.


Basics folder added

Basics folder having Fundamental of JS added

Can you remove the commented code pls?

done!!


Ingest sort group files 2

Our ingestion was taking way too long. To speed it up, put each filetypes conversion into its own thread.

Few comments. Most important probably being that we need to process gtfs_static files before any gtfs_rt files to avoid race conditions in performance_manager loading.

added a semi big change to the ingest_files system, now there is only one NoImplConverter which will do all the moving for files we don't currently process. the GTFS Converter is run first.

LGTM, we'll need to keep an eye on the ECS resource usage and the size of ThreadPool


Support for speedy filtering on very high cardinality dimensions

I have a very high cardinality dimension (IPs that in my case are more or less unique). I want to be able to filter on this dimension when I do my queries in a way that doesnt kill my performance.
Example data:

Type
IP
Uses

1
<IP_ADDRESS>
3

1
<IP_ADDRESS>
5

1
<IP_ADDRESS>
3

Example query: TopN on the dimension Type for metric Uses with IP in this range: <IP_ADDRESS> - <IP_ADDRESS>. This query would return 8 Uses for Type 1.
The ranges can change for each query, and Im interested in not only TopN queries, but also timeseries and groupby.
The naive way to do this is to just use the IP directly, but as far as I understand it its not a good practice to have a dimension that have very high cardinality as in this case. In my case I would be ok with a approximate solution, for example a bloom filter (or maybe theta sketch could do this?)
(I asked about it on druid-users, and got the suggestion to report it as an issue here. https://groups.google.com/forum/#!topic/druid-user/ME-Ev5bf-qg)

I'm assuming you have this loaded as a string column now, since that's the default for dimensions. A few things could potentially help here.

You don't say what kind of filter you're using, but for range and prefix filters on string columns, "bound" and "like" perform substantially better than the alternatives. In your example LIKE "10.0.0%" should work best. For running these on IPs, it can help to store them in 0-padded hex encoding rather than dotted decimal, since that will make any subnet range or prefix search doable with a "bound" or "like" filter.
Roaring bitmaps tend to work better than Concise for unioning large numbers of bitmaps, so you could try switching to those (at indexing time using "indexSpec" : { "bitmap" : { "type" : "roaring" } } in your tuningConfig).
If you don't have any IPv6, you can also try loading the IP column as a "long" rather than the default of "string". Longs are currently unindexed in Druid, which may or may not hurt depending on your queries. So they tend to be faster sometimes and slower sometimes depending on your query. If you have IPv6 then this isn't doable since we don't have a numeric type that wide.

At the moment I only have a thetasketch of the IP to count them. To be able to filter on IP is a new requirement and Im looking into what options there are.

Ah okay. Well, in that case, try doing either a "string" or "long" dimension. One of them should work best for you.

I don't think you can do it with information stored in thetaSketch which is just maintaining hashes to do unique counts.
this would definitely require storing IPs into a dimension column and using the inbuilt selector/bound etc filters.


Redo Rivendare's Army of the Dead so it doesn't use a dummy caster

Don't need a dummy caster for this mechanic and dummy casters are relatively heavy to use.

Im curious, we dont need dummy casters??

Im curious, we dont need dummy casters??

Nah not for this, because we can just spawn the unit directly using code and apply the Summoned tag. Same as the SummonUnitOnDeath thing you used.


feat: upgrade to pandas 1.1.x

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Flip content

Hello!
I have an issue that I wasn't able to solve using the available tools: I need to draw text on the PDF that is flipped both horizontally and vertically.
I can flip the text vertically using rotate: 180 or using font: -14. But how to flip it horizontally?

Hello @xSAVIKx!
You'll need to alter the graphics state with some low-level operators (scale and translate) to achieve this effect. I've created an example demonstrating how to do this:
import {
  degrees,
  PDFDocument,
  popGraphicsState,
  pushGraphicsState,
  rgb,
  scale,
  translate,
} from 'pdf-lib';

const red = rgb(1, 0, 0);
const green = rgb(0, 1, 0);
const blue = rgb(0, 0, 1);
const yellow = rgb(0.85, 0.85, 0.25);

const dims = { width: 200, height: 200 };
const center = { x: dims.width / 2, y: dims.height / 2 };

(async () => {
  const pdfDoc = await PDFDocument.create();

  const page = pdfDoc.addPage([dims.width, dims.height]);

  // Normal
  page.drawText('Foobar', { ...center, rotate: degrees(0), color: red });

  // Rotated 180 degrees about origin
  page.drawText('Foobar', { ...center, rotate: degrees(180), color: green });

  // Flipped over x axis
  page.pushOperators(
    pushGraphicsState(),
    scale(1, -1),
    translate(0, -dims.height),
  );
  page.drawText('Foobar', { ...center, rotate: degrees(0), color: yellow });
  page.pushOperators(popGraphicsState());

  // Flipped over x axis and rotated 180 degrees about origin
  page.pushOperators(
    pushGraphicsState(),
    scale(1, -1),
    translate(0, -dims.height),
  );
  page.drawText('Foobar', { ...center, rotate: degrees(180), color: blue });
  page.pushOperators(popGraphicsState());

  const pdfBytes = await pdfDoc.save();
})();

Here's the resulting file: out.pdf

I hope this helps. Please let me know if you have any additional questions!


Does not work with browserify

No matter what it does not work with browserify
I have tried using angular and ngReact from npm and it failed.
Then i tried using http://ngcli.github.io/ , which auto converts bower_components to simple require() statements and it even failed there.
Error message
undefined is not a function on below line.
  return angular.module('react', [])

require("angular") is available to my app so it should be available to ngReact , not sure what is the issue here.

I have created a repo and it makes use of browserify https://github.com/thetutlage/ng-react-test
If u have time , clone and see what is the real deal

@thetutlage I think the problem is that the angular npm package doesn't export angular, so require( 'angular' ) returns undefinded.

Note that this package is not in CommonJS format, so doing require('angular') will return undefined. If you're using Browserify, you can use exposify to have require('angular') return the angular global.
-- https://www.npmjs.com/package/angular

We use browserify when we run the tests in this repository and ran into this issue as well. To solve it we run angular through browserify shim see.  https://github.com/davidchang/ngReact/blob/master/karma.config.js#L19
I'm closing this, feel free to reopen if this isn't the problem you are seeing.

I have also used bower and still it has same issue ..

I have created a pull request and that simply works
https://github.com/davidchang/ngReact/pull/38


x/tools/cmd/compilebench: alloc numbers vary with memprofilerate

$ compilebench -run=Flate -alloc
BenchmarkFlate 1 174337267 ns/op 203717000 user-ns/op 24668880 B/op 238572 allocs/op
$ compilebench -run=Flate -alloc -memprofilerate=128
BenchmarkFlate 1<PHONE_NUMBER> ns/op<PHONE_NUMBER> user-ns/op 153120624 B/op 4721861 allocs/op
$ compilebench -run=Flate -alloc -memprofilerate=256
BenchmarkFlate 1<PHONE_NUMBER> ns/op<PHONE_NUMBER> user-ns/op 109857056 B/op 3202958 allocs/op

The allocs/op numbers should be more or less unchanged by memprofilerate. All that compilebench does is read the Mallocs number printed by the compiler, and the compiler's Mallocs number comes directly from runtime.ReadMemStats.
My simple attempts to reproduce directly using only runtime.ReadMemStats in a simple program have failed, though, and I'm out of time to investigate.
I'd be delighted if anyone reading this was willing to investigate enough to at least rule out a bug in runtime.ReadMemStats.

runtime.ReadMemStats works as expected. It's the pprof package that could be considered as wrong.
The problem you see is that writeHeap allocates some memory itself before reading the memstats. The amount of memory allocated basically only depends on the number of profile records, which depend on runtime.MemProfileRate.
When calling compilebench without -memprofilerate, compile uses the default runtime.MemProfileRate of 512KB, which will result in much less records in the profile as when setting it to 128 or 256. So with a factor of 4096 in difference between the profiling rates, it's clear that the allocations will be way higher.
If you move the call to runtime.ReadMemStats to the top, the resulting memstats will not include those extra allocations.

Thanks, Justin!
Marking as 1.10, since this doesn't appear to be a regression from 1.8.


"Uncaught TypeError: Cannot read property 'toString' of undefined" when saving without IDs

When a collection has an url without an ID this error pops up and the following data is stored in localstorage:
/events/: ""
/events/undefined: "{"words":6,"createdAt":"2015-02-12T13:23:03.262Z","date":1423770129451}"

Turns out it had nothing to do with the URL. It was the idattribute of the models that was not properly set. Somehow this had not generated an error with just plain backbone.


feat: enforceBinary option

Checklist
See #130 for more information

[x] run npm run test and npm run benchmark
[x] tests and/or benchmarks are included
[x] documentation is changed or added
[x] commit message and code follows the Developer's Certification of Origin
and the Code of conduct

Would you mind to add a test?

Would you mind to add a test?

https://github.com/fastify/aws-lambda-fastify/issues/130#issuecomment-1268131724


Dao related problems, please help me to have a look

The call to deposit is successful, and the call to starwithdrawing is also successful, but the call to withdraw reports an error. What is the reason for the error? don't quite understand
This is my address: ckt1qyqw8c9g9vvemn4dk40zy0rwfw89z82h6fys07ens3
const depositOutPoint = {
  txHash: "0x201b4e60ee79934170cadc8e296e9d685c49f2b497e964417d754b88e051e2b1",
  index: "0x0"
};
const startWithDrawOutPoint = {
  txHash: "0xd5271ca8302f155bdcc69e60e967aa9eb709eb8f559f46a8b79613955626bbcf",
  index: "0x0"
};
const withdraw = async () => {
  await ckb.loadDeps();
  await loadCells();
  const tx = await ckb.generateDaoWithdrawTransaction({
    depositOutPoint,
    withdrawOutPoint: startWithDrawOutPoint,
    fee: BigInt(1000000)
  });
  console.log(tx, "tx_________");
  const signed = ckb.signTransaction(sk)(tx);
  console.log(signed, "signed______");

  const txHash = await ckb.rpc.sendTransaction(signed);
  console.log(txHash, "txHash______");
  const outPoint = {
    txHash,
    index: "0x0"
  };
  console.log(`const withdrawOutPoint = ${JSON.stringify(outPoint, null, 2)}`);
};

ckt1qyqw8c9g9vvemn4dk40zy0rwfw89z82h6fys07ens3

From the Withdraw Phase 2 in RFC we can learn that there is a pending time between phrase 1(start withdrawing) and phrase 2(withdraw), specified by a field named since in the transaction SDK code.
The since field allows a transaction to be constructed in advance but rejected by ckb node until the pending time is passed. In this case, the withdraw transaction is generated just after starting withdraw, but rejected with the reason the transaction is immature because of the since requirement.
This transaction could be packaged after ckb node reaches epoch specified by the since field.
Ref: tx valid since

Thank you, this means that I still need to wait for the unlocking time when I operate starWithdrawing? Wait until the unlock time is up before you can operate withdraw?

Thank you, this means that I still need to wait for the unlocking time when I operate starWithdrawing? Wait until the unlock time is up before you can operate withdraw?

Yes, the timing of withdraw phrase 2 is set by the since field calculated from (deposit time, startWithdrawing time), and the withdraw tx will be rejected until the time is up


chore: bdd-spring-1587645825 to 0.0.1

chore: Promote bdd-spring-1587645825 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Version 1.3 not available in bower

I am experiencing a bug in version 1.2.2 and I read that it was fixed in version 1.3 so I ran "bower install slider-pro#1.3 --save" but it said that the version doesnt exist. Tried running "bower install slider-pro --save" but it only installs version 1.2.2

Thank you for the heads up, I will take a look. In the mean time you can download the updated files from Github.
Cheers


fresh repo build:prod not working

[X] bug report
I download a fresh copy and try to build it without any modification, then I opened the index.html under dist folder, it showed me bunch of ERR_FILE_NOT_FOUND errors in the console. I can see it's pointing to C:/assets to find its static contents. It should be finding content under current directory.
I also tried other building commands (build:dev, build:aot), it still gave me the same error.
Steps to reproduce:

git clone this repo
npm install
npm run build:prod
open index.html under dist folder
page not loading and FILE_NOT_FOUND errors in console

Environment:
Chrome:	56.0.2924.87 (Official Build) (32-bit)
Nodejs: 6.9.1
npm: 3.10.8

Got it working by searching into index.html
 and add a dot like this


Array creation functions should accept a sequence of objects that implement __cupy_get_ndarray__

Description
Root cause of #6367, see https://github.com/cupy/cupy/pull/6874#issuecomment-1189740670.
To Reproduce
No response
Installation
No response
Environment
# Paste the output here

Additional Information
To address this, I believe we need to touch cupy/_core/core.pyx. We need to modify _array_info_from_nested_sequence and/or _array_from_nested_sequence, such that it recognizes a sequence of objects that implement __cupy_get_ndarray__ is a valid object.

It seems numpy does not support nested sequences having __array__?
>>> import numpy as np
>>> class Foo:
...     def __array__(self):
...         return np.arange(10)
...
>>>
>>> np.asarray([Foo()])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Foo'
>>> np.asarray([np.arange(10)])

Hmmm that's strange, this is what I got:
>>> import numpy as np
>>> class A:
...     def __array__(self):
...             return np.ones(10)
...
>>>
>>> np.asarray([A()]*2)
<stdin>:1: FutureWarning: The input object of type 'A' is an array-like implementing one of the corresponding protocols (`__array__`, `__array_interface__` or `__array_struct__`); but not a sequence (or 0-D). In the future, this object will be coerced as if it was first converted using `np.array(obj)`. To retain the old behaviour, you have to either modify the type 'A', or assign to an empty array created with `np.empty(correct_shape, dtype=object)`.
<stdin>:1: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
array([<__main__.A object at 0x7fd884ee14f0>,
       <__main__.A object at 0x7fd884ee14f0>], dtype=object)

I think internally numpy.array_api.Array.__array__ does the asarray conversion to avoid returning an array of dtype object, so effectively this is what's being done:
>>> np.asarray([np.asarray(A()), np.asarray(A())]*2)
array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1.],
       [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.],
       [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.],
       [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]])


Naming service for large scale rollouts of SSH No Ports

Is your feature request related to a problem? Please describe.
Once you have more than 25 devices on an atSign then you have to use a new atSign for the next 25 devices etc etc
This is painful for larger rollouts
Describe the solution you'd like
Have a naming atSign that can be referenced by sshnp to provide the needed arguments for logging into a particular sshnpd. This could also be shared and policed by the policy atsign for groups of people.
My like ~/.ssh/config but for SSH No Ports and using atSigns not config files.
For example
sshnp  -f <from atSign> -c <config atSign> -d <device>
and the config atSign provides the  ,  , etc etc
to set the config/change something like:-
sshnp  -f <from atSign> -sc <config atSign> -d <device> <bunch of JSON>
Describe alternatives you've considered
config files are fine but having to keep them upto date everywhere is a pain.. This could be super cool for .dofiles as well.
Perhaps a default atSign in ~/.atssign/config would save typing it all the time ?
Additional context
No response

SSHNP already supports config files, although they are currently in a .env style, which is inflexible and hard to read. I would like to migrate to json or toml, probably toml since it's easy to read & parse. The installer currently writes to np.sh with a bunch of defaults, we could instead write these to ~/.config/atsign/sshnp.toml.

Having the config owned by an atSign also allows many atSigns to share the config as a client.
In other words the remote atSign and the de vice name can be used by N number of client atSigns.


Protection against data corruption.

If index or data files are somehow corrupted, or mismatched (meaning
that the index file from one store/version gets used in combination
with a data file for another store/version), then the server gets into
bad buffer allocation problems, causing IllegalArgumentExceptions and
potentially OOMing in the process. This commit makes it easier to
debug the issues and protect against the OOMs. Changes include:

Disallow allocation of negative size buffers.
Disallow allocation of excessively large value buffers (configurable,
max 25 MB by default).
Disallow allocation of a buffer which would go past the data file's
length.
Server-side logs now print out the file name and key (in hex) which
triggered the problem.
Server-side logs now print out the socket name and stacktrace when
SelectorManagerWorker catches a Throwable.
Client-side will report an "internal server error" when any of the
bad allocation scenarios described above happen.
Slight optimization in the allocation strategy while reading the
key/values in a data file.

Hi @gnb, @arunthirupathi,
I addressed the comments you made in e7db8278fb8a452ce06916e268d240b54eeb11ed and updated the commit message accordingly.
Please review the latest code.
-F

FYI, your new test passes but this change introduces a regression in HadoopStoreBuilderTest.testHadoopBuild(). I will investigate that before merging it in.

I fixed the bug in this amended commit on another branch: https://github.com/FelixGV/voldemort/commit/b5e969c18d355fd0773b321d2465cedb2d55dc61
I'm re-running the tests one more time and planning to merge this in afterwards.
-F

This is merged in.


Create Identity e2e tests for running in Azure Service Fabric

Tracking item to create new /sdk/e2e Azure.Identity smoke tests for running in Azure Service Fabric hosted environment.

Add new /sdk/e2e tests for Azure Service Fabric
Update Parent issue https://github.com/Azure/azure-sdk/issues/901 with instructions for Test team

Closing, instructions were added in https://github.com/Azure/azure-sdk/issues/901


Add "endpoint" field to bucket

Due to apparent limitations of Crossplane compositions we need both an "endpoint" and an "endpointURL" field. "endpoint" will contain the simple endpoint host name, while endpointURL will contain the full URL (https://...).
Context: https://ticket.vshn.net/browse/APPCAT-226

A sideeffect of this PR is that now the S3 endpoint URL doesn't become configurable anymore.

This is IMHO an oversight in the cloudscale Go client libraries. The Go library should know the endpoints to be used for S3 and we should be able to just query it. I've grepped through the library code though and this information does not seem to be present anywhere in the cloudscale libraries.
I did not make this configurable because currently there is no need for that and there is nothing preventing us from making this configurable later should this ever be necessary.
Moreover while in the composition it was technically configurable, it certainly wasn't very practical to e.g. overwrite part of the composition for one cluster while leaving it as it is for another cluster, so whether it was really configurable in the previous implementation is perhaps debatable.

@ccremer Thanks! However I still haven't tested the change that moves the status update from connect() to observe()... now I get new obscure errors in ArgoCD... :(
Yes I'll change that in provider-exoscale as well.

@davidgubler If you just want to test this particular part, you don't necessarily need to deploy it with ArgoCD, you can test it locally as well.
If you have an API token you can export CLOUDSCALE_API_TOKEN=... and then run make local-install install-samples, which installs you a bucket and user in the VSHN staging project in a local kind cluster.

@ccremer Thanks, that works indeed. And it's a good hint because I need to remove forProvider.endpointURL from the test data...

Glad to hear that. Don't forget to delete the samples before deleting the cluster when you are done, otherwise the bucket stays and the next person trying to apply the samples will have a hard time creating a bucket that already exists :)


long AOT compilation time due to quadratic code in cid range building code

To repro:
$ git clone https://github.com/hydro-sdk/hydro-sdk
$ cd hydro-sdk/
$ git checkout 603
$ flutter pub get
$ $DART_SDK/pkg/vm/tool/precompiler2 -v bin/swid.dart bin/swid.aot

AOT compilation will sit in gen_snapshot for a very long time. If I perf record it I get profile like this:
    24.09%  gen_snapshot  gen_snapshot        [.] dart::Object::HandleImpl
    23.62%  gen_snapshot  gen_snapshot        [.] dart::Class::IsSubtypeOf
    13.14%  gen_snapshot  gen_snapshot        [.] dart::VMHandles::AllocateHandle
     6.83%  gen_snapshot  gen_snapshot        [.] dart::Zone::DeleteAll
     4.98%  gen_snapshot  gen_snapshot        [.] dart::AbstractType::operator^=
     4.83%  gen_snapshot  gen_snapshot        [.] dart::Type::type_class
     2.72%  gen_snapshot  gen_snapshot        [.] dart::TypeArguments::IsUninstantiatedIdentity
     2.02%  gen_snapshot  gen_snapshot        [.] dart::TypeArguments::InstantiateFrom

Call-graph points to cid range construction as the source of IsSubtypeOf checks.
I suspect that complicated inheritance hierarchy hits quadratic case in the cid range construction code, because we ask the same IsSubtypeOf question again and again. (e.g. given chain A -> B -> C we will ask if A is D, then we will ask B is D which leads us to ask A is D again and so on).
Reported by @chgibb
/cc @mkustermann

@sstrickl has made some changes that makes us ask this question even more often, tentatively assigning to her.

Have some initial thoughts about how to handle this by retrieving (and creating, if necessary) the ranges for subclasses/implementors first and then just merging the ranges appropriately for the base class based on comparing it to its direct subclasses/implementors (instead of all other classes), semi-related to how we create the ranges for JIT. I think that should avoid the issue, though we'll need to see if we end up missing some cases afterwards.

Okay, have a candidate fix where the profile is much better (below are entries >= 1% of the total runtime):
   4,33%  gen_snapshot  gen_snapshot        [.] dart::kernel::KernelLineStartsReader::TokenRangeAtLine
   2,18%  gen_snapshot  gen_snapshot        [.] dart::kernel::KernelTokenPositionCollector::CollectTokenPositions
   1,63%  gen_snapshot  gen_snapshot        [.] dart::ConcurrentMarkTask::Run
   1,54%  gen_snapshot  gen_snapshot        [.] dart::ScavengerVisitorBase<false>::VisitPointers
   1,41%  gen_snapshot  gen_snapshot        [.] dart::PriorityQueue<long, long>::InsertOrChangePriority
   1,25%  gen_snapshot  gen_snapshot        [.] dart::VMHandles::AllocateZoneHandle

(Also it runs in 12s, vs. the old version which ran in 8m40s.)
Verifying that the type testing stubs are unchanged between the two, and if so I'll put the CL up for review.

No changes to type testing stubs after the fix, so it is currently being reviewed as part of CL 210581.


F#2442 fix oracle extension todate

Description
fix todate function of query builder in oracle extension
append is false if batch ingestion type is ALL
Related Issue : #2442

How Has This Been Tested?

Create a datasource from oracle database
See the log file and check the select query TO_DATE value. (single quotes)

Need additional checks?
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

Additional Context

run build
deploy to 4

@minhyun2

The last row is repeated.
There seems to be an error in the comparison operator.

log

2019-08-13 00:00:30.858 DEBUG [-] [scheduler_Worker-5] a.m.d.d.d.c.jdbc.JdbcConnectionService   : Generated incremental query : SELECT "EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO" FROM (
select * from scott.emp
 ) WHERE "HIREDATE" >= TO_DATE('1987-05-22 15:00:00', 'YYYY-MM-DD HH24:MI:SS')   AND ROWNUM >= 0 AND ROWNUM <= 10000
2019-08-13 00:00:30.858 DEBUG [-] [scheduler_Worker-5] a.m.d.d.d.connection.jdbc.JdbcCSVWriter  : Execute query : SELECT "EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO" FROM (
select * from scott.emp
 ) WHERE "HIREDATE" >= TO_DATE('1987-05-22 15:00:00', 'YYYY-MM-DD HH24:MI:SS')   AND ROWNUM >= 0 AND ROWNUM <= 10000

run build
deploy to 4


fix(module:tree-select): fix search box exception when Chinese search

fix bug: #8165

Hi @EnochGao thanks a lot fot this PR, could you please provide the tests for the code added :)
Thanks in advance :)

Hi @EnochGao thanks a lot fot this PR, could you please provide the tests for the code added :)
Thanks in advance :)

Kindly verify it

LGTM


Enable FLORIS to use changing wind direction and thrust control at the same time

Currently, FLORIS only allows either yaw control or thrust control. In Hercules, changing wind directions come across as yaw directions to FLORIS, which means that thrust control is not allowed to be implemented at the same time. This causes an error in the code, currently.

I think if you used the "mixed" turbine model you can apply both yaw and thurst:
Here's an example where it's used: https://nrel.github.io/floris/examples/examples_control_types/003_setting_yaw_and_disabling.html

Thanks @paulf81 ! The operation model is already set as "mixed"---I think the issue here is that, although we don't really ever intend to by yaw misaligning and derating at the same time, so instances of that are creeping through (possibly because we are trying to apply "realistic" yaw actions, which don't instantaneously match the wind direction, while also trying to derate). I'll look into this more, and override the yaw actions if that's the case.


ionic info runs in error on 3.0.0-beta10

What version of the CLI are you using? Output of ionic --version
3.0.0-beta10
Short description of the problem:
On running ionic info I get this output
[ERROR] Error with ionic version.json file: FILE_NOT_FOUND

npm (global):
    @ionic/cli-utils : 1.0.0-beta1
    cordova          : 6.5.0
    ionic            : 3.0.0-beta10

npm (local):
    @ionic/cli-plugin-cordova : 1.0.0-beta1
    @ionic/cli-plugin-ionic1  : 1.0.0-beta1
    Ionic Framework           : unknown

System:
    Node       : v6.10.2
    OS         : Linux 4.10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed

As you can see there is an error on reading version.json file and also there is an unknown Ionic Framework in npm (local)

What version of Ionic Framework is the project using? Maybe past the content of your package.jsonhere.

I used 3.1.0 and also 3.0.1

I created a completely new ionic project with beta10 by doing a new ionic start, after that I copied my project files in the new created project and adapt any configuration files I changed before.
And there I noticed config.xml changed a lot, and doing this it seems this is resolving me the problem.
So for beta10 there is a migration problem!
Same as for error: #2169


Fleets arriving at planets sometimes don't have planet waypoints

Possibly it tracked a fleet? Or some other bug. Either way if it's orbiting a planet, the waypoint should reflect that.


fix: npmcli run-script separated from bundle as external dep

Description

ok, I think I need to improve my reading skills, --external in ncc means that it is not going to bundle package from different location, it means that it will not bundle it at all and requires it to be stored separately. So basically run-script is a package we need to store in the repo in node_modules.

Related issue(s)
Fixes https://github.com/asyncapi/github-action-for-generator/issues/111

@magicmatatjahu please approve again, I had to commit typescript to node_modules too. I tested and also @pioneer2k confirmed it works now.

@magicmatatjahu but @pioneer2k can use the PR now in his pipelines for few days and you definitely should not approve it this week while being on holidays. Any attempt to approve will be dismissed :trollface:

@magicmatatjahu I don't think it is possible with bug fixes and when node_modules are pushed to the PR, but I will definitely do my best to do it. Thanks a lot @magicmatatjahu 🤝


MCAM-2267

https://jira.sendgrid.net/browse/MCAM-2267
Add Q&A regarding CSV uploads and the file format requirements.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


replace async.timesSeries with for loop + async.until

The regression that caused only one data point to upload for Bayer meters was due to a change in the implementation of async.timesSeries, a dependency that was updated as part of the redux work.
This PR replaces the use of async.timesSeries with a for loop and async.until.

As as @GordyD pointed out, the root cause here is the fact that async.timesSeries can no longer handle the string "8" as the first arg. The simpler #235 replaces this PR.


Not truncate MQTT SUBACK reason codes

Motivation:
Reason code for MQTT SUBACK messages is truncated, thus not allowing to get new codes supported by MQTT v.5
Modification:
Changed MqttCodecTest.testUnsubAckMessageForMqtt5 to catch it then, removed truncation in MqttDecoder.decodeSubackPayload to make it pass.
Result:
Codec users can get all reason codes supported by MQTT5 now.

@netty-bot test this please

@netty-bot test this please

@netty-bot test this please

@paul-lysak thanks a lot

@paul-lysak thanks a lot

no problem


Review/document limitations on data access in current full-stack example

See #80
The main issue is for a specific usage, where the user wants to upload their own zarr files and then run jobs on them.

Fixed with #85 by @mfranzon

The current solution (once again, for demo purposes only) is to go through inotify and dynamically update permissions for files added via the filebrowser service. inotify is then wrapped in an opnerc service, as described in

https://developertips.substack.com/p/how-to-create-and-manage-a-service
https://www.exact-lab.it/en/services-docker-alpine/


restart button on debugging toolbar should restart the file that originally started it, not the active window from the editor

VSCode Version: Code 1.10.2 (8076a19fdcab7e1fc1707952d652f0bb6c6db331, 2017-03-08T14:02:52.799Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions:

Extension
Author
Version

html-snippets
abusaidm
0.1.0

Handlebars
andrejunges
0.2.0

handlebars-preview
chaliy
1.1.0

bracket-pair-colorizer
CoenraadS
0.8.8

beautify
HookyQR
1.0.2

node-module-intellisense
leizongmin
1.3.0

debugger-for-chrome
msjsdiag
2.7.0

node-modules-resolve
naumovs
1.0.2

bootstrap-3-snippets
wcwhitehead
0.0.9

Steps to Reproduce:

Running Node server app in debugger - server.js
Change to edit .html file that the server is serving.
Hit restart on the debugging toolbar (green circular arrow).
ERROR - Cannot launch program 'folder\folder\home.html'; setting the 'outFiles' attribute might help.

@weinand this is the issue if we should reload the configuration on restart or if we should not.
It seems to be tricky to find the right balance, atm we relaod the configuration but keep the process.type since the debug extension might ovewrite it.
I agree that this behavior is strange and it might make sense to also ovewrite the program, but that feels like a hack. What fields do we overwrite and which do we keep.
In the end it just might be better that we do not relaod the configuration but just use the one on the active process.

@isidorn but in this case the problem is probably that the launch config uses the '${file}' variable and this is reevaluated on restart. So it picks up the html file instead of the original server.js.

@weinand yes that is the underlying problem. I can also close this as designed even though it feels to me as unexpected behavior

We should consider to reload (and reevaluate variables) only if the underlying launch.json has changed. If it hasn't we will continue to use the launch config in memory.
Open issue: do we loop this launch config again through the extension's startSession command?

This should be fixed in latest vscode insiders
@amesmr let me know if that is not the case and I will reopen, thanks


Add an image utility

This is related to #316: It adds an image utility that allows (currently quite slow) conversions between different image representations. For example, this can convert between "3 bytes per pixel" (yuck!) and "4 bytes per pixel". This can also convert between "no padding between lines" to "each line is padded to a 4 byte boundary". Stuff like this.
The most useful conversion function is most likely Image::native which converts to the format expected by the X11 server.
This does not contain any utilities for conversion between different bit depths.

Thanks to Travis, I had to add depth conversion to the new example. I had hoped that I can skip this (no one runs an X11 server with a depth different than 24!), but actually this is a good thing, because examples should show how to "do things" correctly. I even found a bug in the process.
Future work includes moving (some of?) this new code into x11rb::image, but right now I am lazy.

Addressed two out of three review comments (thanks!) and fixed the doctests


Add refresh button on home screen desktop

Add a button to refresh the home screen on the desktop mode.

Added on v2.13.0-beta.1.


Improve Docs

Fixes #7

Pull Request Test Coverage Report for Build 96f47d1c3ec07bcb55a51b1b3efb852d57cd3479-PR-11
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build 640ddba062f592df207c813d635ba268b7972084:
0.0%

Covered Lines:
0

Relevant Lines:
107

💛  - Coveralls


compress/flate.NewWriter causes large heap growth when compression is unnecessary

Recently I ran into an issue:when I run a benchmark test with my service in production environment, compress/flate.NewWriter causes large heap memory growth , even if  the number of bytes in every response is less than min_length in the config of http.gzip directive.
then pprof help me found the key information
(venv37)  gairui@gairui: go tool pprof -inuse_space http://localhost:2015/debug/pprof/heap\?gc
Fetching profile over HTTP from http://localhost:2015/debug/pprof/heap?gc=
Saved profile in /Users/gairui/pprof/pprof.alloc_objects.alloc_space.inuse_objects.inuse_space.062.pb.gz
Type: inuse_space
Time: Dec 18, 2018 at 11:34pm (CST)
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) top
Showing nodes accounting for 1011.30MB, 96.70% of 1045.81MB total
Dropped 105 nodes (cum <= 5.23MB)
Showing top 10 nodes out of 26
      flat  flat%   sum%        cum   cum%
  859.40MB 82.17% 82.17%   996.25MB 95.26%  compress/flate.NewWriter
  131.84MB 12.61% 94.78%   131.84MB 12.61%  compress/flate.(*compressor).initDeflate (inline)
   11.04MB  1.06% 95.84%    11.04MB  1.06%  bufio.NewWriterSize (inline)
    5.52MB  0.53% 96.37%     5.52MB  0.53%  bufio.NewReaderSize (inline)
    1.50MB  0.14% 96.51%  1014.75MB 97.03%  github.com/mholt/caddy/caddyhttp/httpserver.(*Server).ServeHTTP
       1MB 0.096% 96.60%     7.01MB  0.67%  net/http.(*conn).readRequest
    0.50MB 0.048% 96.65%     5.50MB  0.53%  runtime.systemstack
    0.50MB 0.048% 96.70%  1005.75MB 96.17%  github.com/mholt/caddy/caddyhttp/gzip.Gzip.ServeHTTP
         0     0% 96.70%     5.52MB  0.53%  bufio.NewReader
         0     0% 96.70%   136.85MB 13.09%  compress/flate.(*compressor).init

heap.svg
the heap.svg show that compress/gzip.(*Writer).Close cause compress/flate.NewWriter to allocate memory，and github.com/mholt/caddy/caddyhttp/gzip.putWriter would be called no matter whether gzip compression happened or not.
https://github.com/mholt/caddy/blob/1570bc5d03bd4423625505ca4fa45c27b691d19e/caddyhttp/gzip/gzip.go#L68-L77
*gzip.Writer is managed by pool, and its number is related to the number of concurrent requests
so I think the more reasonable way is just call and gzip.putWriter methods only when gzip compression happened.
This is an easy way I used to reproduce this issue.

start service Caddyfile

localhost {
    gzip {
        min_length 2048
        level 4
    }
    root /home
    pprof
}

benchmark

hey -z 10s -c 1500 -q 15000 http://localhost:2015/

pprof

go tool pprof -inuse_space http://localhost:2015/debug/pprof/heap

Nice find.
Think you could open a PR to fix it?

Nice find.
Think you could open a PR to fix it?

Thanks for your reply, I will do it soon


dataframe output font size too big after update

dataframe output font size too big after update
I can reset font size by code
heading_properties = [('font-size', '6px')]

cell_properties = [('font-size', '6px')]

dfstyle = [dict(selector="th", props=heading_properties),
           dict(selector="td", props=cell_properties)]

df.style.set_table_styles(dfstyle)

can I set default jupyter output font size ?

The output size is the wrong size for this user. They're adding the code above to work around it.

The font size of outputs now aligned with input and we didn't have a setting to allow customzie ityet.


Within unsorted iter

Codecov Report

Merging #69 (44b7886) into next (e1489a7) will increase coverage by 2.65%.
The diff coverage is 95.38%.

@@            Coverage Diff             @@
##             next      #69      +/-   ##
==========================================
+ Coverage   83.91%   86.56%   +2.65%
==========================================
  Files          29       32       +3
  Lines        3593     3647      +54
==========================================
+ Hits         3015     3157     +142
+ Misses        578      490      -88

Impacted Files
Coverage Δ

src/fixed/kdtree.rs
80.64% <ø> (-1.45%)
:arrow_down:

src/float/kdtree.rs
69.11% <ø> (-1.31%)
:arrow_down:

src/lib.rs
100.00% <ø> (ø)

src/types.rs
30.76% <ø> (ø)

src/nearest_neighbour.rs
46.15% <33.33%> (ø)

src/best_neighbour.rs
46.15% <46.15%> (ø)

src/fixed/distance.rs
53.57% <53.57%> (+30.31%)
:arrow_up:

src/float/query/within_unsorted_iter.rs
93.96% <93.96%> (ø)

src/common/generate_best_n_within.rs
100.00% <100.00%> (ø)

src/common/generate_nearest_n.rs
100.00% <100.00%> (ø)

... and 17 more

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Enforce a minimum Resque version of 1.27.0 to avoid crashing on startup.

In the 4.4.0 release, Resque Scheduler can fail on startup in locking.rb if your Resque version is lower than 1.27.0 with 👇
NoMethodError: undefined method `data_store' for Resque:Module

The data_store class was only introduced into Resque from version 1.27.0 here https://github.com/resque/resque/pull/1466 via this commit.

@rafaelfranca Any possibility this can be released in 4.4.1 anytime soon?


[help wanted] How to zoom an image rendered by rich-text-renderer with react-awesome-lightbox library

Hello, would you please help me how to zoom an image rendered from rich text? I use this library:
https://github.com/theanam/react-awesome-lightbox#setting-up
// (...)
import Lightbox from "react-awesome-lightbox";
import "react-awesome-lightbox/build/style.css";

// (...)
  <RichText
          content={portfolioItem.content.raw.children}
          renderers={{
            img: ({ src, altText, height, width }) => (
              <Flex alignItems="center" justifyContent="center" pt={4} pb={4}>
                <Image
                  src={src}
                  alt={altText}
                  height={{ base: "full", lg: "920" }}
                  width={{ base: "full", lg: "1920" }}
                  objectFit="cover"
                  border="1px"
                  borderColor={imageBorderColor}
                  onClick={() => {
                    <Lightbox image={src} title="Image Title" />; // zoom on click each image rendered by rich-text-renderer
                  }}
                />
              </Flex>
            ),
          }}
        />

// (...)

Hey, this library lacks a lot of support and doesn't look maintained anymore. I would recommend using another library.
But, I created this example of how you could do it: https://codesandbox.io/s/optimistic-shockley-7evcvq?file=/src/App.tsx
I hope it helps!


CelOS 1 issue.

For the OS: section in CelOS 1 the version is "CelOS 20.04 focal" whereas the OS field should display CelOS GNU/Linux

Can you please post your current /etc/os-release file?

VERSION="20.04.2 LTS (Focal Fossa)"
ID=celos
ID_LIKE=debian
PRETTY_NAME="CelOS 1-beta4"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-pol>
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal```

Pretty_name has been updated to "CelOS 1 GNU/Linux"

I just changed the way the OS output is constructed. Have a look at what it looks like now and update me.

will do

It's the same output for me, however I am using an installation script - But I fail to see how it'd be different

Does your /etc/os-release respect following specification: https://www.freedesktop.org/software/systemd/man/os-release.html?

Closing this due to inactivity.


Fetching subdomains with special characters

Reproduction
Steps to reproduce the behavior:

fetch('otherdomain[.example.com') will fetch otherdomain/[.example.com

Expected behavior
I believe the request should fail, as is the case with the normal fetch api and location header within browsers.
https://tools.ietf.org/html/rfc1035
Your Environment

software
version

node-fetch
2.6.1

node
12.18.4

npm
6.14.8

Operating System
ubuntu

Additional context
This has security implicatons, there are circumstances where any subdomains of a specific root domain are allowed to be fetched (and are user-supplied) but node-fetch adds a forward slash and allows other domains to be fetched

Reproduction:
import {parse} from 'url';

console.log(parse('otherdomain[.example.com'));

Output:
Url {
  protocol: null,
  slashes: null,
  auth: null,
  host: null,
  port: null,
  hostname: null,
  hash: null,
  search: null,
  query: null,
  pathname: 'otherdomain[.example.com',
  path: 'otherdomain[.example.com',
  href: 'otherdomain[.example.com'
}

Opened a bug for NodeJS.
https://github.com/nodejs/node/issues/39467

In fetch v3 we switched out the legacy url parser and switched it to use new URL(url) instead.
Can you try out the latest version 3.0.0-beta.10 ?
it's going to be stable soon (within a month) if no more bugs/hotfixes or other breaking changes really needs to be made. We currently do not plan to add/accept more features/PR's that could halt the release of the long awaited v3

@jimmywarting The v3 version is working well and raise the proper error.
NodeJS. closed my bug with link to the reference to ditch the using of Node url impl and prefer the WHATWG API.
BUT! we are using node-fetch as core HTTP client in our applications and v3 drop the cjs support and I can't use the esm without doing huge refactoring of millions lines of code... so I prefer bugs to solved in this version or keep the cjs support for legacy.
Maybe its for another issue :)

We do not want to duplicate our codebase to work with both cjs and ems, and we do not want to compile with babel or anything anymore, that why we ditched cjs. You should also do it. Beside we have a other ESM only dependency right now that do not support cjs maybe soon two.
So we are not going to support cjs anymore.
I think this will push the development of more standard modules forwards and benefit the hole ecosystem if more ppl just started using ESM so we can import them in browser and deno also without using something like NPM.
if you really want to use fetch in a cjs package then you can load it using the async import()
function fetch(...args) {
  return import('node-fetch').then(m => m.default(...args))
}

I also belive you can mix cjs and esm if you do not want to refactor everything. Just have to change type to module and import a cjs file in the esm file
https://nodejs.org/api/packages.html#packages_approach_1_use_an_es_module_wrapper

we use new URL() in both v2 and v3 now...


feat(docs): deployment decision tree

Hello, I would like to request an additional documentation.
During my first deep dive with eks and IaC I was struggling to find out the most optimal way to meet my needs.
My considerations were:

terraform vs eksctl
managed vs self-managed nodes support
custom AMI support

I have found sufficient strategy after few days of studying this module code and AWS documentation.
I was wondering If we could enhance module documentation with deployment decision tree. I strongly believe that this pattern is occrruing often for newcomers and I would like to save their time.

hello @m00lecule  - while I agree that there are numerous decisions out there when it comes to the Kubernetes space in general, I don't think this is valuable for the module. A quick google search on any of these and you will see numerous articles and blog posts so I think its best to leave these types of opinions out of the documentation


allow single-use constrained types in some situations

Fixes #223.
What do you think of this? I'm not sure if its the cleanest way to go about it or the ideal place to do it, either, so some feedback on that would be nice.
It is to allow cases like this:
function func<T extends object>(param: Foo<T>): void;

This currently isn't allowed, but is of course a valid use case to constrain the type parameter.
cc @sandersn

How does that behave differently than
function func(param: Foo<object>): void;

That is my exact though, too. I'm not entirely sure.
Now that I dig into it more, i apologise for using your time up with this PR as i can see it should definitely not be needed. We're struggling with this in the DT sinon types and i'm unsure why.
If I copypaste the sinon types from my branch and dumb them down:
interface SinonSpy<TArgs extends any[] = any[], TReturnValue = any> {
}

declare function makeSpy<F extends (...args: any[]) => any>(func: F): SinonSpy<Parameters<F>, ReturnType<F>>;

declare function notCalled(spy: SinonSpy<any[]>): void;

const test = makeSpy((arg1: string, arg2: boolean) => 123);

notCalled(test);

This compiles just fine... with --strict too.
However, when the DT tests run, we get this:
ERROR: 300:28   expect                      Compile error in<EMAIL_ADDRESS>but not in typescript@next.                                                                               TypeScript@next features not yet supported.
Argument of type 'SinonSpy<[string, boolean], number>' is not assignable to parameter of type 'SinonSpy<any[], any>'.

Where L300 is a notCalled(spy);...

Don't think we need this anymore. Will reopen one day if I'm wrong


[BUG] Custom cluster's Read and Subscribe interactions doesn't work

Reproduction steps
I have created a custom cluster that is required for our setup, so I've made the XML file that describes the custom cluster, then added the new cluster to the required endpoint in the ZAP file, and then regenerated the ZAP-generated files.
The custom cluster has one command and one attribute. The command handling works fine, the controller receives the command and the payload correctly. However, the attribute handling does not work well. I tried to read the attribute value with chip-tool, but I always got an INVALID_ACTION response. In the controller's log, I see chip[EM]: Dropping unexpected message of type 0x1 with protocolId (0, 1) and MessageCounter:219703856 on exchange 24614r.
I digged into the core and found that the ReadHandler::ProcessAttributePaths method is the one that sends the error.
The custom cluster's XML content:
<?xml version="1.0"?>
<configurator>
  <domain name="General"/>

  <cluster>
    <name>TestCluster</name>
    <domain>Home Automation</domain>
    0xFF00
    <define>TEST_CLUSTER</define>
    <description>TestCluster description</description>
    <globalAttribute side="either" code="0xFFFD" value="1"/>

    <attribute side="server" code="0x0000" define="STATUS" type="CHAR_STRING" length="128" reportable="true">Status</attribute>

    <command source="client" code="0x00" name="Change" optional="false">
        <description>Description of the Change command</description>
        <arg name="message" type="CHAR_STRING" length="64"/>
    </command>

  </cluster>
</configurator>

Could someone help me out, how can I solve this problem?
Bug prevalence
always
GitHub hash of the SDK that was being used
4088a77
Platform
core
Platform Version(s)
No response
Anything else?
No response

`<code>0xFF00</code>`

That's not a valid cluster id, per spec.  That's why it's failing.  Presumably on the IsValidClusterId() check under ProcessAttributePaths.
It looks like CommandHandler does not do such a check (arguably a bug), which is why your command works.
The valid cluster id ranges are:

0x00000000 - 0x00007FFFF -- standard-defined cluster
0x0001ABCD - 0xFFF4DEFG -- manufacturer-defined cluster, so long as ABCD >= FC00 and DEFG <= FFFE.  The first two bytes are the manufacturer id.

As in, you need to add your manufacturer id to the cluster code.

Also, note that manufacturer IDs 0xFFF1-0xFFF4 are reserved for testing.

Note https://github.com/project-chip/connectedhomeip/pull/29461 for fixing writes/commands to also do the checks.

May I know which Chip-tool commands can be used to read Custom Clusters?
We have added custom clusters to my Matter device but cannot find out which command we should use on the Matter Controller.

May I know which Chip-tool commands can be used to read Custom Clusters?

chip-tool any ....

May I know which Chip-tool commands can be used to read Custom Clusters?

chip-tool any ....
Ah... We looked at the commands list a lot of times...
Didn't notice that the "any" can be used by setting the IDs...
Thanks a lot.

May I know which Chip-tool commands can be used to read Custom Clusters?

chip-tool any ....

Hi Boris,
I highly appreciate your help that I can now use the 'any' command to write the custom cluster.
"./chip-tool any write-by-id 6 0xfff18000 1 11 4"

However, it is weird that I cannot read the same ID back.
"./chip-tool any read-by-id 6 0xfff18000 11 4"

Do you have any ideas about this issue?
Many thanks for your help.

@BryanH1128 0xfff18000 is not a valid attribute ID.  Per spec, attribute IDs for non-global attributes must have the low 4 bytes in the range 0x0000 to 0x4FFF.
It looks like the server in this case does not enforce that for writes (though I suspect tip does) but does enforce it for reads.

@BryanH1128 0xfff18000 is not a valid attribute ID. Per spec, attribute IDs for non-global attributes must have the low 4 bytes in the range 0x0000 to 0x4FFF.
It looks like the server in this case does not enforce that for writes (though I suspect tip does) but does enforce it for reads.

Hi Boris,
I highly appreciate your help.
After changing the ID, it is working for read and write now. :')
Thanks a lot.

@BryanH1128 Glad to hear it work!


Fix SshCommand not retrieving the host by its alias

This PR enforces the use of host aliases by the ssh command.
I'm not sure if this is the intended behaviour though, so let me know if modifications should be made.
I also don't know if this is a breaking change since I never used v6.8 (I'm new to Deployer)

[x] Bug fix #2528
[ ] New feature?
[ ] BC breaks?
[ ] Deprecations?
[x] Tests added?
[ ] Docs updated?
[ ] Changelog updated?

I corrected the code to pass phpcs and phpstan checks.

https://github.com/deployphp/deployer/issues/2528#issuecomment-927259310


[280-depth-anything] -- Unable to Compile OpenVINO Converted Model on GPU

Hello, I am exploring 280-depth-anything notebook. I was able to run it successfully on myMac without any issue. However, when I try to run it on linux GPU (RTX4090), the converted OpenVINO model is unable to compile. I see the error: "Couldn't find a suitable kernel to convert ..."
I have attached the screen shot of the error.
Thank you!

Never mind, just realized OpenVINO only supports Intel GPUs and I was trying NVIDIA.


Update with Faculty Office Hours for Fall 2023

Current embedded spreadsheet is from Spring 2023, this updates it to the current semester.

Think I'd solved this before I saw your pull request. There are other maintainers. Anyway looks like it has spring 24 updated automatically so will close this as unnecessary now.