Insufficient memory

sir I made OMR program in python version 3.11.4 32 bit version and its get problem about memory. and i am not use python 64 bit version because i also use twain library for scan OMR sheet and twain library is work on 32 bit and in 64 bit python its not show the scanner. so i use 32 bit library.
Error like  :
res = cv2.matchTemplate(
^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 4380856 bytes in function 'cv::OutOfMemoryError'
and sir please replay me.

did u find the solution?

no i don't find solution. if you have any solution please give me.

did u find the solution?

no i don't find solution. if you have any solution please give me.

Well Iam trying to test opencv 4.5.4 or 4.2.0 they should work.
I'll keep u in touch, but it may take a day to reach u.

Well Iam trying to test opencv 4.5.4 or 4.2.0 they should work. I'll keep u in touch, but it may take a day to reach u. I suggest u to test 4.5.4.

ok. i try 4.5.4 version and after i tell you.

4.5.4

i try version 4.5.4 and its get error like
Collecting opencv-python==<IP_ADDRESS>
Downloading opencv-python-<IP_ADDRESS>.tar.gz (89.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.8/89.8 MB 861.2 kB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment      Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment      Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.9" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment      Collecting setuptools
Downloading setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB)
Collecting wheel
Downloading wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Collecting scikit-build
Downloading scikit_build-0.17.6-py3-none-any.whl.metadata (14 kB)
Collecting cmake
Downloading cmake-3.28.3-py2.py3-none-win32.whl.metadata (6.5 kB)
Collecting pip
Using cached pip-24.0-py3-none-any.whl.metadata (3.6 kB)
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement numpy==1.21.2 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0rc1, 1.23.0rc2, 1.23.0rc3, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0rc1, 1.24.0rc2, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0rc1, 1.25.0, 1.25.1, 1.25.2, 1.26.0b1, 1.26.0rc1, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 2.0.0b1)
ERROR: No matching distribution found for numpy==1.21.2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Iam already on half of the way of 4.5.4 :))
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: Dhruv00710 @.>
Sent: Saturday, March 16, 2024 12:51:00 PM
To: opencv/opencv-python @.>
Cc: Sadegh Kalami @.>; Comment @.>
Subject: Re: [opencv/opencv-python] Insufficient memory (Issue #957)
Well Iam trying to test opencv 4.5.4 or 4.2.0 they should work. I'll keep u in touch, but it may take a day to reach u.
—
Reply to this email directly, view it on GitHubhttps://github.com/opencv/opencv-python/issues/957#issuecomment-2001924301, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7DNTQNMOBGHOD7QBNTFICLYYQFHZAVCNFSM6AAAAABDYSRR36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBRHEZDIMZQGE.
You are receiving this because you commented.Message ID: @.***>

Oh darling
I am sorry. I'm on linux platform.

Oh darling I am sorry. I'm on linux platform. If u wanna try other opencv version u would better to build from source.

which version i use.

The problem for me was having 2 opencvs version.
Libopencv-dev and custom installation of opencv 4.8.0.
Choose 1 opencv and stick to it.
GL

hi, @Sadegh-Kalami
If there are multiple versions of OpenCV installed on the system, how do you ensure that the version being used is the custom 4.8.0 version you installed? I would be extremely grateful, as I've tried many methods without success.

You can use the command dpkg -l | grep libopencv to list all installed OpenCV packages and their versions. If your output looks like mine, where all packages are version 4.2, you're all set:
ii  libopencv-calib3d-dev:amd64                 4.2.0+dfsg-5                                amd64        development files for libopencv-calib3d4.2
ii  libopencv-calib3d4.2:amd64                  4.2.0+dfsg-5                                amd64        computer vision Camera Calibration library
ii  libopencv-contrib-dev:amd64                 4.2.0+dfsg-5                                amd64        development files for libopencv-contrib4.2
ii  libopencv-contrib4.2:amd64                  4.2.0+dfsg-5                                amd64        computer vision contrlib library
ii  libopencv-core-dev:amd64                    4.2.0+dfsg-5                                amd64        development files for libopencv-core4.2
ii  libopencv-core4.2:amd64                     4.2.0+dfsg-5                                amd64        computer vision core library
ii  libopencv-dev                               4.2.0+dfsg-5                                amd64        development files for opencv
ii  libopencv-dnn-dev:amd64                     4.2.0+dfsg-5                                amd64        development files for libopencv-dnn4.2
ii  libopencv-dnn4.2:amd64                      4.2.0+dfsg-5                                amd64        computer vision Deep neural network module
ii  libopencv-features2d-dev:amd64              4.2.0+dfsg-5                                amd64        development files for libopencv-features2d4.2
ii  libopencv-features2d4.2:amd64               4.2.0+dfsg-5                                amd64        computer vision Feature Detection and Descriptor Extraction library
ii  libopencv-flann-dev:amd64                   4.2.0+dfsg-5                                amd64        development files for libopencv-flann4.2
ii  libopencv-flann4.2:amd64                    4.2.0+dfsg-5                                amd64        computer vision Clustering and Search in Multi-Dimensional spaces library
ii  libopencv-highgui-dev:amd64                 4.2.0+dfsg-5                                amd64        development files for libopencv-highgui4.2
ii  libopencv-highgui4.2:amd64                  4.2.0+dfsg-5                                amd64        computer vision High-level GUI and Media I/O library
ii  libopencv-imgcodecs-dev:amd64               4.2.0+dfsg-5                                amd64        development files for libopencv-imgcodecs4.2
ii  libopencv-imgcodecs4.2:amd64                4.2.0+dfsg-5                                amd64        computer vision Image Codecs library
ii  libopencv-imgproc-dev:amd64                 4.2.0+dfsg-5                                amd64        development files for libopencv-imgproc4.2
ii  libopencv-imgproc4.2:amd64                  4.2.0+dfsg-5                                amd64        computer vision Image Processing library
ii  libopencv-ml-dev:amd64                      4.2.0+dfsg-5                                amd64        development files for libopencv-ml4.2
ii  libopencv-ml4.2:amd64                       4.2.0+dfsg-5                                amd64        computer vision Machine Learning library
ii  libopencv-objdetect-dev:amd64               4.2.0+dfsg-5                                amd64        development files for libopencv-objdetect4.2
ii  libopencv-objdetect4.2:amd64                4.2.0+dfsg-5                                amd64        computer vision Object Detection library
ii  libopencv-photo-dev:amd64                   4.2.0+dfsg-5                                amd64        development files for libopencv-photo4.2
ii  libopencv-photo4.2:amd64                    4.2.0+dfsg-5                                amd64        computer vision computational photography library
ii  libopencv-shape-dev:amd64                   4.2.0+dfsg-5                                amd64        development files for libopencv-shape4.2
ii  libopencv-shape4.2:amd64                    4.2.0+dfsg-5                                amd64        computer vision shape descriptors and matchers library
ii  libopencv-stitching-dev:amd64               4.2.0+dfsg-5                                amd64        development files for libopencv-stitching4.2
ii  libopencv-stitching4.2:amd64                4.2.0+dfsg-5                                amd64        computer vision image stitching library
ii  libopencv-superres-dev:amd64                4.2.0+dfsg-5                                amd64        development files for libopencv-superres4.2
ii  libopencv-superres4.2:amd64                 4.2.0+dfsg-5                                amd64        computer vision Super Resolution library
ii  libopencv-ts-dev:amd64                      4.2.0+dfsg-5                                amd64        development files for TS library of OpenCV (Open Computer Vision)
ii  libopencv-video-dev:amd64                   4.2.0+dfsg-5                                amd64        development files for libopencv-video4.2
ii  libopencv-video4.2:amd64                    4.2.0+dfsg-5                                amd64        computer vision Video analysis library
ii  libopencv-videoio-dev:amd64                 4.2.0+dfsg-5                                amd64        development files for libopencv-videoio4.2
ii  libopencv-videoio4.2:amd64                  4.2.0+dfsg-5                                amd64        computer vision Video I/O library
ii  libopencv-videostab-dev:amd64               4.2.0+dfsg-5                                amd64        development files for libopencv-videostab4.2
ii  libopencv-videostab4.2:amd64                4.2.0+dfsg-5                                amd64        computer vision video stabilization library
ii  libopencv-viz-dev:amd64                     4.2.0+dfsg-5                                amd64        development files for libopencv-viz4.2
ii  libopencv-viz4.2:amd64                      4.2.0+dfsg-5                                amd64        computer vision 3D data visualization library
ii  libopencv4.2-java                           4.2.0+dfsg-5                                all          Java bindings for the computer vision library
ii  libopencv4.2-jni                            4.2.0+dfsg-5                                amd64        Java jni library for the computer vision library

If you want to check the specific OpenCV version your project is using, you can add the following lines to your CMakeLists.txt:
find_package(OpenCV REQUIRED)

message(STATUS "Found OpenCV version: ${OpenCV_VERSION}")

When you run CMake, it will output the OpenCV version found, like this:
-- Found OpenCV version: 4.2.0


The problem is with downloading data

https://pan.baidu.com/share/init?surl=yYNJFuyrJy8kn5TVA5_Okw
On this page, I don't know how to download the dataset? What is meant by code?

The code mean password of page.
And this is just the Baidu Cloud link.

the password is  d0kc


Undo walloging replorgin file on checkpoint

Problem
See #8620
Summary of changes
Remove walloping of replorigin file because it is reconstructed by PS
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

Do we have a plan for how to eventually remove those obsolete pg_logical/replorigin_checkpoint files from the storage?

~/git-sandbox/neon/vendor/postgres-v16 (remove_replorigin_checkpoint_v16)$ git diff REL_16_3 src/backend/replication/logical/origin.c
diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c
index b0255ffd25a..bc540521a96 100644
--- a/src/backend/replication/logical/origin.c
+++ b/src/backend/replication/logical/origin.c
@@ -83,6 +83,7 @@
 #include "nodes/execnodes.h"
 #include "pgstat.h"
 #include "replication/logical.h"
+#include "replication/message.h"
 #include "replication/origin.h"
 #include "storage/condition_variable.h"
 #include "storage/copydir.h"
@@ -657,7 +658,6 @@ CheckPointReplicationOrigin(void)
                                         errmsg("could not write to file \"%s\": %m",
                                                        tmppath)));
                }
-
                COMP_CRC32C(crc, &disk_state, sizeof(disk_state));
        }

@@ -1144,6 +1144,7 @@ replorigin_session_setup(RepOriginId node, int acquired_by)

                /* ok, found slot */
                session_replication_state = curstate;
+               break;
        }

Why the added break? And let's remove those other superfluous changes too.

Sorry, removed unintended changes.

Do we have a plan for how to eventually remove those obsolete pg_logical/replorigin_checkpoint files from the storage?

Any reason for it? Can extra ~100 bytes somehow compensate efforts needed to remove them?

Do we have a plan for how to eventually remove those obsolete pg_logical/replorigin_checkpoint files from the storage?

Any reason for it? Can extra ~100 bytes somehow compensate efforts needed to remove them?

It's not urgent, but it might cause surprises later, after everyone has already forgotten about them.

Why the added break? And let's remove those other superfluous changes too.

Sorry, removed unintended changes.

I can still see the extra 'break' there.

Why the added break? And let's remove those other superfluous changes too.

Sorry, removed unintended changes.

I can still see the extra 'break' there.

Sorry, looks like I didn't push changes in neon repo.
Fixed.


Do you have any plan to support latest boost library?

Hi,
Seems current ARMNN library supports only boost v1.64.0 so fixed boost version makes it hard to deploy ARMNN to Linux platform because some platforms may use different version of boost library.
It would be glad to support at least all versions since v1.64.0.
As for this, do you have any plan?

Hi @MatthewARM thanks for quick response.
When I tried to build armnn with boost v1.65 I see below warning messages,
[   11s] CMake Warning at cmake/modules/FindBoost.cmake:765 (message):
[   11s]   Imported targets not available for Boost version 106501
[   11s] Call Stack (most recent call first):
[   11s]   cmake/modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDENCIES)
[   11s]   cmake/modules/FindBoost.cmake:1471 (_Boost_MISSING_DEPENDENCIES)
[   11s]   cmake/GlobalConfig.cmake:106 (find_package)
[   11s]   CMakeLists.txt:11 (include)
[   11s]
[   11s]
[   11s] CMake Warning at cmake/modules/FindBoost.cmake:765 (message):
[   11s]   Imported targets not available for Boost version 106501
[   11s] Call Stack (most recent call first):
[   11s]   cmake/modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDENCIES)
[   11s]   cmake/modules/FindBoost.cmake:1471 (_Boost_MISSING_DEPENDENCIES)
[   11s]   cmake/GlobalConfig.cmake:106 (find_package)
[   11s]   CMakeLists.txt:11 (include)
[   11s]
[   11s]
[   11s] CMake Warning at cmake/modules/FindBoost.cmake:765 (message):
[   11s]   Imported targets not available for Boost version 106501
[   11s] Call Stack (most recent call first):
[   11s]   cmake/modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDENCIES)
[   11s]   cmake/modules/FindBoost.cmake:1471 (_Boost_MISSING_DEPENDENCIES)
[   11s]   cmake/GlobalConfig.cmake:106 (find_package)
[   11s]   CMakeLists.txt:11 (include)
[   11s]
[   11s]
[   11s] CMake Warning at cmake/modules/FindBoost.cmake:765 (message):
[   11s]   Imported targets not available for Boost version 106501
[   11s] Call Stack (most recent call first):
[   11s]   cmake/modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDENCIES)
[   11s]   cmake/modules/FindBoost.cmake:1471 (_Boost_MISSING_DEPENDENCIES)
[   11s]   cmake/GlobalConfig.cmake:106 (find_package)
[   11s]   CMakeLists.txt:11 (include)
[   11s]
[   11s]
[   11s] CMake Warning at cmake/modules/FindBoost.cmake:765 (message):
[   11s]   Imported targets not available for Boost version 106501
[   11s] Call Stack (most recent call first):
[   11s]   cmake/modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDENCIES)
[   11s]   cmake/modules/FindBoost.cmake:1471 (_Boost_MISSING_DEPENDENCIES)
[   11s]   cmake/GlobalConfig.cmake:106 (find_package)
[   11s]   CMakeLists.txt:11 (include)
[   11s]
[   11s]
[   11s] -- Boost version: 1.65.1
[   11s] -- Found the following Boost libraries:
[   11s] --   unit_test_framework
[   11s] --   system
[   11s] --   filesystem
[   11s] --   log
[   11s] --   program_options
And then linking error,
[  656s] [ 99%] Building CXX object CMakeFiles/UnitTests.dir/src/armnnCaffeParser/test/TestSplit.cpp.o
[  661s] [100%] Linking CXX executable UnitTests
[  662s] /usr/lib/gcc/armv7l-tizen-linux-gnueabi/6.2.1/../../../../armv7l-tizen-linux-gnueabi/bin/ld: libarmnnUtils.a(Logging.cpp.o): undefined reference to symbol '_ZN5boost6detail12get_tss_dataEPKv'
[  662s] //lib/libboost_thread.so.1.65.1: error adding symbols: DSO missing from command line
[  662s] collect2: error: ld returned 1 exit status
With boost 1.64, it was no problem. Could you guide me?
Thanks,
Inki Dae

Hi @MatthewARM,
I resoved the linking error by modifying required boost version like below,
diff --git a/cmake/modules/FindBoost.cmake b/cmake/modules/FindBoost.cmake
index cf08f9b..29a5705 100644
--- a/cmake/modules/FindBoost.cmake
+++ b/cmake/modules/FindBoost.cmake
@@ -745,7 +745,7 @@ function(_Boost_COMPONENT_DEPENDENCIES component _ret)
set(_Boost_THREAD_DEPENDENCIES chrono system date_time atomic)
set(_Boost_WAVE_DEPENDENCIES filesystem system serialization thread chrono date_time atomic)
set(_Boost_WSERIALIZATION_DEPENDENCIES serialization)

elseif(NOT Boost_VERSION VERSION_LESS 106300 AND Boost_VERSION VERSION_LESS 106500)

elseif(NOT Boost_VERSION VERSION_LESS 106300 AND Boost_VERSION VERSION_LESS 106600)

Thanks,
Inki Dae

Thanks @daeinki, looks like we should update our version of FindBoost.cmake. I'll note this down to follow up internally.


⚠ Secret Website 3 has degraded performance

In 55354de, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2316 ms

Resolved: Secret Website 3 performance has improved in 764dfa9.


feat(smartdrop): adding Smart Drop S300 (T8790)

Goal
Adds in support for the Smart Drop S300 (T8790). I was able to set this up and use it within HomeAssistant with these properties.
I combined properties from the Safes and Cameras, and they seem to work. If there is a way to dump the exact properties let me know and I can do that isntead.

Should Resolve #261

@bropat @bassrock Anything I can do to help? Happy to test–just got my SmartDrop setup at the new place so awesome to see this PR waiting to get merged :)

Todo:

[ ] Test push notifications
[ ] Test open SmartDrop p2p command
[ ] Understand how the delivery pin creation works

Todo:

[ ]  Test push notifications
[ ]  Test open SmartDrop p2p command
[ ]  Understand how the delivery pin creation works

Please feel free to use my smartdrop as needed, all can be reset if needed and I will be home to close / change anything as needed for testing.
Appreciate all the hard work as always!

@Williamysays
Can you please close the smart drop?
Thanks :)

Sorry forgot to reply! / closed!

@bropat sorry i didnt get back, let me know how i can help move this forward.


What are the members proposal/expectations/commitments ?

Ask Catalyst school members how they see their role in the future and what they expect out of the journey?
stakeholder:

[x] Stephen -

I see my role as helping with documentation and Course design
I see my role as helping with documentation and Course design

[x] Lucio
[ ] Kerstin
[x] Dominik
[ ] Victor
[ ] Seomon
[ ] George
[ ] Raz
[ ] Stefan
[ ] Tevo
[ ] JakobD

Well that not everything


HTML Reporter: Escape backslash when parsing string

Screenshot:

Fixes #478

This looks fine, but without any tests that could help prevent regressions its hard to tell if we're actually making things worse.

Landed this anyway, its a simple change that we can improve later if its turns out to be problematic. Rebased the commit and update the commit message, now using the right component.


refactor: drop dependency on nodejs-repo-tools

Samples and systems are also failing on the release pr. I think quota is low.

Samples test failure seems real?
1) instances
       should list zones:
     Error: Command failed: node instances.js "nodejs-bigtable-samples-369c21"
instances.js <command>


Broken link in FPGA development

https://github.com/lowRISC/sonata-system/blob/main/doc/dev/fpga-development.md tells me to make sure I follow the software section. There is no software section.

It means the instructions in this section: https://lowrisc.org/sonata-system/doc/guide/building-examples.html

Opened a PR to fix this: https://github.com/lowRISC/sonata-system/pull/89


Implement default share service

in 99% of cases i just want the gif as fast as possible, this is a first stab at doing so:

This adds an option to skip the editor and use a default share plugin directly, thoughts?
Needs some more work like if you uninstall a plugin etc

Maybe this is even better:

@albinekb We have a redesign coming up that would make this different.
@skllcrn thoughts?

This wouldn't fit with our goal of making the main window extremely compact. It also a setting you'd use to control the app behaviour for some time, for changing often it's better to keep the default of going to the editor as it has all the options. Based on that I'd say that this belongs in preferences.

I would also put it in Preferences.

Do we still want this? I got time to fix the comments and rebase  🙌

Putting an issue up in a sec 👍


chore: re-enable the unittest workflow in Owlbot configuration

This change is re-enabling the unittest workflow in Owlbot configuration. This workflow was previously disabled in #948 but is now reintroduced due to a fix in Synthtool.

@shobsi It is not fixing anything but it's nice to bring the exclude file back to sync up with the upstream template. The file was excluded because of the hidden directories bug was not fixed yet in the template but can be quick fixed in BF.


additional question about tableviewcell connection

Thanks to help me!
Actually, I already ask question smiler to this request.
I'm understand how to connect storyboard with code class. but In Cell class
like class of UITableViewCell, How can I create instance for connecting storyboard of AnimatableTableViewCell?????
ex) class Aview: TableviewCell {
}
but It is hard to connect both of them which are storyboard and TableviewCell class
Thanks!

@XOneto9 your question is a general question on how to custom UITableViewCell, I suggest you follow this tutorial and try https://www.ralfebert.de/tutorials/ios-swift-uitableviewcontroller/custom-cells/
If you want to use the features in AnimatableTableViewCell, then you can change
class FruitTableViewCell: UITableViewCell {
}

to
class FruitTableViewCell: AnimatableTableViewCell {
}

Then, you can use the inspectable properties from AnimatableTableViewCell.

@JakeLin
Thanks...
Well,, I'm solving the problem, I have known the way suggested you to me how can I connect as a above answer.
Well now, I'm solved, when I ask you question, I saw the error to my complier in AnimatableTableViewCell
but I'm re try compiling, then the error is removed totally.
because of error, I have wonder of having a other ways to connect storyboard with code of class.
Thanks have a nice days !!!

@XOneto9 good to hear you have solved the problem. Sometimes, Xcode is very weird. We need to recompile to fix some issues. In the future, you may have to remove something called derived data too 😓. Have a nice day.


add metadata update to example and fix builder user-settable fields

Coverage decreased (-0.12%) to 52.9% when pulling 6c59a54b8bdd75d899981aa10da6c4887da72b91 on aozarov:master into 76776e3ab91e4691e7636ec2fb443cf53f54d00b on GoogleCloudPlatform:master.

This PR is a combination of different changes. It would be clearer if these were separate requests with their own descriptions

Coverage increased (+5.68%) to 58.71% when pulling 17ec594784481c17f380499f2586ff15ec6b78db on aozarov:master into 76776e3ab91e4691e7636ec2fb443cf53f54d00b on GoogleCloudPlatform:master.

Coverage increased (+5.68%) to 58.71% when pulling 17ec594784481c17f380499f2586ff15ec6b78db on aozarov:master into 76776e3ab91e4691e7636ec2fb443cf53f54d00b on GoogleCloudPlatform:master.

Coverage increased (+5.68%) to 58.71% when pulling 4b8bd324d670988430c9634ce9271cc87cb075b7 on aozarov:master into 76776e3ab91e4691e7636ec2fb443cf53f54d00b on GoogleCloudPlatform:master.

Changes were applied yesterday. Not sure if an explicit PTAL is expected.

Coverage increased (+5.63%) to 58.66% when pulling 96b3ada3ece83a95e42489715d760a66f9494f05 on aozarov:master into 76776e3ab91e4691e7636ec2fb443cf53f54d00b on GoogleCloudPlatform:master.

I played few hours o deal with git and gitHub branches to avoid having the last commit "Replace given null values with Apiary nulls and provide doesNotExists" be part of this push request but unfortunately did one mistake (forgot to switch to my local branch before applying the patch which I had ready) and realized it after I pushed. This is not a big change and I don't want to play with rolling it back, so I leave it as part of this push. Honestly the process which I am following (maybe there is a better one) is annoying as I have to find the state of the master before my push request and branch from it each time to avoid including its pending changes so a quicker turn-around would be appreciated.

There's a lot of stuff that got added here - it will take me a little while to go through it.
The workflow I use, which I think is pretty typical git, it to have separate branches for separate features and then merge between them as needed. If there are dependent changes, then rebase off the parent branch after merging in the feedback.

The issue for me was co-coordinating it with gitHub (and basically making
sure that the branch does not include what is already pending).
I didn't add much today and many of the previous changes are trivial such
making things final and overriding equals and hashCode.
Arie | Ozarov |<EMAIL_ADDRESS>|<PHONE_NUMBER>
On Wed, May 13, 2015 at 5:01 PM, Jeremy Boynes<EMAIL_ADDRESS>wrote:

There's a lot of stuff that got added here - it will take me a little
while to go through it.
The workflow I use, which I think is pretty typical git, it to have
separate branches for separate features and then merge between them as
needed. If there are dependent changes, then rebase off the parent branch
after merging in the feedback.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-java/pull/58#issuecomment-101854572
.

Coverage increased (+5.63%) to 58.66% when pulling<PHONE_NUMBER>f5f06dd36a308ade6ef0cf2b784145 on aozarov:master into 76776e3ab91e4691e7636ec2fb443cf53f54d00b on GoogleCloudPlatform:master.


Button text is always in captial letters.

Hello Rey,
I am using the button code in layout xml as follows
<com.rey.material.widget.Button
style="@style/RaiseWaveColorButtonRippleStyle"
android:id="@+id/getStartedButton"
android:layout_width="wrap_content"
android:layout_height="@dimen/bt_height"
android:text="Get Started"
android:textSize="@dimen/button_text_size"
android:textColor="@color/colorTextOrIcons"
<EMAIL_ADDRESS>android:paddingLeft="15dp"
android:paddingRight="15dp" />
The button text I provided is 'Get Started' but everytime when I run the app, I get the text as 'GET STARTED'. Is there any hook using which I can set the text as required? Thanks in advance.

The com.rey.material.widget.Button doesn't do anything with Button text. Which Android version did you use to test it? May be you should try to add android:textAllCaps="false".

Rey, my bad. android:textAllCaps="false" works.

<EMAIL_ADDRESS>This makes all letters in buttons capitailized.


Centralize deployment and execution in base repository

In this PR I centralize most of the cluster provisioning and interaction with experiments through the base repository. It's become quite big, so I'd rather merge it now. The problem (and hence why it's become big) is that I've tuned things as I developed experiments.
In particular, in this PR I include:

Some invoke-based tasks to easily interact with Azure
Knative related tasks (copied from faasm-experiments with the necessary changes to update them to a current knative version).
Plots and results for the kernels experiments.

The expected way to run experiments now is to have both experiment-base and experiment-other cloned in the same directory. This avoids some duplication and makes it possible to centralize some provisioning and execution files. Alternative approaches were:

Having experiment-base as a submodule to all the different experiments: albeit reasonable from an engineering perspective, I think it is an overkill, as realistically it will only be two of us running experiments.
Having it as part of the docker build (and tranistively inheriting in experiment images) but some experiments have involved relationships with their environment preventing an in-docker deployment (like lithops, for example).

Lastly, observe that I've decided to store ploting scripts, plots, and data in the base repository. In my opinion this has a series of advantages like:

Quickly presenting plots in markdown files (see here: https://github.com/faasm/experiment-base/blob/invoke/results/kernels/README.md)
Quickly disseminating and re-creating plots without the need to re-run the experiments, or even provision them, or even clone the actual experiments repo.
Eventually mount/softlink/hardlink easily to any dissemination document that needs the plots.

This all makes sense to me. I'm tempted by the submodule approach like we had with the faasm/development repo, where we have a super-repo with experiment-base and then all the experiments as submodules, then it sort of formalises the development set-up (even if it's just for the two of us). However, cloning both in the same folder works just as well for now. Will take a look in more detail :eyes:

Summary from our offline discussion:

Install faasm as a submodule for experiment-base.
The previous point means that the deploy folder together with knative and faasm tasks can be removed from here.
However, we'll need to install the faasmcli's corresponding tasks (and probably run inside a CLI container).
Add all other experiment-other as submodules of experiment-base.


Check listener functions exist

Get classes from strings at first, so we can fail fast
Make sync faster, because we don't have to find classes in every iteration
Fix tests
Remove Testrpc gas limit

Coverage decreased (-0.2%) to 88.6% when pulling e797661351f014546bdc0f6676418c435397d9d5 on feature/PM-508-Check-listener-functions-exist into 95ee0e4a93208c1ca5168b22879a9d16e2a4e21e on master.


Prereq scraper

Added code to the course scraper to get data on which prerequisites are necessary to take each course, and added the data obtained to courses.json. The data is a little rough at the moment, in that it is still in sentence form and is not consistent across each course, but should be workable. If there is no prerequisite necessary for the course, it will say "None".
This does not directly close any issues, but is necessary to fix issues #22 and #47.

This looks good! I am going to merge it. I am currently in creating a method to parse courses from a string, once I finish mine I will be able apply this method to the prereqs to make them easier to work with.


Fixed failure to display the names of parent process nodes for evtx

Hi,
When providing an evtx to the software, the nodes of the parent processes do not necessarily have a name because it is not specified in the transformer. This patch is used to display it.

The reason for this is that sometimes, the information about the parent process doesn't actually exist in a windows security event log file. For example this event:
{
 'data_name_commandline': '"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" '
                          '-s -NoLogo -NoProfile',
 'data_name_newprocessid': '0x00000c50',
 'data_name_newprocessname': 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe',
 'data_name_processid': '0x0000011c',
 'data_name_subjectdomainname': 'IE10WIN7',
 'data_name_subjectlogonid': '0x000000000006793c',
 'data_name_subjectusername': 'IEUser',
 'data_name_subjectusersid': 'S-1-5-21-3463664321-2923530833-3546627382-1000',
 'data_name_tokenelevationtype': '%%1937',
 'eventid_qualifiers': '4688',
}

This event shows process 0x0000011c spawning a powershell process ID with 0x00000c50.
Since this is the first event in this EVTX file, there's no way to get more information about the parent process (0x0000011c). That means I need to either decide to ignore it, or just give it "empty" values like you see above.
I chose to not drop it and give it an empty value as it makes the graph more complete, in your case, you still have the two outgoing edges from the 'empty' process. If I had dropped it, you wouldn't know the those two nodes are related/spawned by the same parent. If you click on it and view it in the side window, you'll actually see the information Beagle found on it (hashes/pid/etc)
I hope this explains why, this is only the case with WindowsEVTX files, because they do not give info about the parent in each event


Regenerate Google.Cloud.Bigtable.Admin.V2

This PR was generated using Autosynth. :rainbow:
Here's the log from Synthtool:
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/apis/Google.Cloud.Bigtable.Admin.V2/synth.py.
Cloning into 'gapic-generator'...
Cloning into 'gapic-generator-csharp'...
Submodule 'api-common-protos' (https://github.com/googleapis/api-common-protos.git) registered for path 'api-common-protos'
Submodule 'protobuf' (https://github.com/protocolbuffers/protobuf.git) registered for path 'protobuf'
Cloning into '/tmpfs/src/git/autosynth/working_repo/gapic-generator-csharp/api-common-protos'...
Cloning into '/tmpfs/src/git/autosynth/working_repo/gapic-generator-csharp/protobuf'...
Submodule path 'api-common-protos': checked out '4c0a203e3658ae0e56d47c817c2c5904116c0ae0'
Submodule path 'protobuf': checked out '815ff7e1fb2d417d5aebcbf5fc46e626b18dc834'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'protobuf/third_party/benchmark'
Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'protobuf/third_party/googletest'
Cloning into '/tmpfs/src/git/autosynth/working_repo/gapic-generator-csharp/protobuf/third_party/benchmark'...
Cloning into '/tmpfs/src/git/autosynth/working_repo/gapic-generator-csharp/protobuf/third_party/googletest'...
Submodule path 'protobuf/third_party/benchmark': checked out '5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8'
Submodule path 'protobuf/third_party/googletest': checked out '5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081'
Cloning into 'googleapis'...
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes
> Task :buildSrc:jar
> Task :buildSrc:assemble
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build
> Task :extractIncludeProto
> Task :extractProto
> Task :generateProto

> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :processResources
> Task :createProperties
> Task :classes
> Task :shadowJar

BUILD SUCCESSFUL in 14s
7 actionable tasks: 7 executed
Generating Google.Cloud.Bigtable.Admin.V2
synthtool > Wrote metadata to synth.metadata.

First commit is generated; second is manual. PTAL, and once we've merged this one I'll move on to #3249 which will be more complicated (as the methods are used by the project itself).


fix(Dropdown): more logic for clearing search

fix(Dropdown): clear search if adding item or if selection is only option #1952

test(Dropdown): add test for clear search if selection is only option

Heads up, tests are failing due to lint:
/home/ubuntu/Semantic-UI-React/src/modules/Dropdown/Dropdown.js
  599:53  error  Extra semicolon  semi
  603:64  error  Extra semicolon  semi
  702:64  error  Extra semicolon  semi
  711:53  error  Extra semicolon  semi

You can run npm run lint:fix to fix most errors and then push.  Note that you can ignore warnings.

Codecov Report

Merging #1956 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #1956      +/-   ##
=========================================
+ Coverage    99.8%   99.8%   +<.01%
=========================================
  Files         148     148
  Lines        2568    2573       +5
=========================================
+ Hits         2563    2568       +5
  Misses          5       5

Impacted Files
Coverage Δ

src/modules/Dropdown/Dropdown.js
100% <100%> (ø)
:arrow_up:

src/elements/Button/Button.js
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Awesome this will be fixed + the extra tests. Great work @ChrisNLott , hope it will be merged soon, this is really bugging us in production as well.

Thanks much @ChrisNLott.  I'll make a release today.

Released in<EMAIL_ADDRESS>


Hotfix: Parallels kernel modules are unavailable in v1.8.3

Due to #1054, the extra subdirectory is no longer created. I was too naive while putting Parallels kernel modules to this dir :-(
So, in v1.8.3 there are no kernel modules from Parallels Tools, which causes a critical issue with shared folder mounting: https://github.com/Parallels/docker-machine/issues/7
In this PR I've changed the path for storing kernel modules from Parallels: let them be in the top level dir, adjacent to vbox modules.
@tianon Please, review this PR. We looking forward to get it released ASAP :pray:

Arg :cry:
LGTM

@tianon Thanks! Is there some estimation for the next release date?

https://github.com/tianon/boot2docker-legacy/releases is where the RCs of 1.9.0 are dropping, which is going to be released next week :+1:


Error processing tar file(exit status 1): Error making old root private after pivot: permission denied

I want to move the image from internet connected PC to offline server in my company.
But I've got an error like below.
I doubt the security tool installed on my company's server named Redcastle.
I think this security tool would block Docker processes.
How can I solve this problem?
p.s. coworker said Redcastle will block "chroot" command.
[Executed Command]

Executed on internet connected PC
docker save -o "aa.tar"

Executed on offline Server
docker load < "aa.tar"

[Error Message]
Error processing tar file(exit status 1): Error making old root private after pivot: permission denied
[docker info]
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.12.3
Storage Driver: devicemapper
Pool Name: docker-253:17-7477521-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 11.8 MB
Data Space Total: 107.4 GB
Data Space Available: 107.4 GB
Metadata Space Used: 581.6 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /SAM/DOCKER/devicemapper/devicemapper/data
Metadata loop file: /SAM/DOCKER/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2015-10-14)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null bridge host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.10.0-327.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
OSType: linux
Architecture: x86_64
CPUs: 28
Total Memory: 94.06 GiB
Name: SLPDLAAL01
ID: NPX4:TQQK:ZIOS:O6MG:BCJC:R5JB:U6BD:YELM:52VJ:Q7O4:GCKH:R2BI
Docker Root Dir: /SAM/DOCKER
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
<IP_ADDRESS>/8

It is possible this has changed in Docker 1.13, I do remember there were some changes in runc to how the pivot root process worked, but it may not make a difference for this use case.

I think this is from https://github.com/docker/docker/blob/master/pkg/chrootarchive/chroot_linux.go#L88

@justincormack Thanks for good information. I'll try to upgrade my docker.
@cpuguy83 Yes. I think so.
But I don't know how can I reproduce this error.
Do you have any idea?

@jbb100 mount --make-rprivate would be the equivalent.

@justincormack @cpuguy83 Thanks for your answers~
I solved the problem with security solution engineer.
Maybe this security solution assumed "mount" as chroot command.
Thanks again.
Have a good day~

@jbb100
I am facing similar kind of permission denied problem, could you please write steps, how did you solve this one.


[Awaiting Checklist Completion] [$500]  Inconsistency bug: emoji suggestion does not reopen on revisit (works fine for mentions)

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

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1698048662555869
Action Performed:

Open the app
Open any report
Type in :tea to trigger emoji suggestions
Visit another tab or minimize the window
Revisit the app tab and observe that focus is present but emoji suggestion is not displayed
Similarly try it for mentions and observe that mentions are displayed properly on revisit

Expected Result:
App should display emoji suggestions on tab revisit as we do for mention suggestions
Actual Result:
App should display emoji suggestions on tab revisit as we do for mention suggestions
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Android: Native

Android: mWeb Chrome

https://github.com/Expensify/App/assets/93399543/acfda114-c3fd-4fed-b138-b525052842bd

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/93399543/2c97133e-c3f6-44a4-8fe0-22e3484f3510
https://github.com/Expensify/App/assets/93399543/ed6f7ff5-d1e0-4624-8961-14de4d6534cc
https://github.com/Expensify/App/assets/93399543/6d940faa-3130-4448-b198-a187acb08791

MacOS: Desktop

https://github.com/Expensify/App/assets/93399543/158f965d-1b95-4797-b9b0-45885462f965

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~010b89a38dcc5e639b
Upwork Job ID:<PHONE_NUMBER>942243328
Last Price Increase: 2023-11-06
Automatic offers:

eh2077 | Contributor | 27643100
dhanashree-sawant | Reporter | 27643101

Issue OwnerCurrent Issue Owner: @allroundexperts

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistency bug: emoji suggestion does not reopen on revisit (works fine for mentions)
What is the root cause of that problem?
The root cause of this issue is that SuggestionEmoji doesn't have useEffect to re-calculate emoji suggestions when isComposerFocused is true while SuggestionMention has useEffect to re-calculate mention suggestions when isComposerFocused is changed, see calculateMentionSuggestion which is depended on isComposerFocused.
What changes do you think we should make in order to solve the problem?
To let emoji suggestion also show up when revisiting tab, we can add isComposerFocused by destructuring assignment after this line
https://github.com/Expensify/App/blob/3f32b7dabbc9ee19e6e859d6460f7652f4824c4d/src/pages/home/report/ReportActionCompose/SuggestionEmoji.js#L61
and add an useEffect after this line
https://github.com/Expensify/App/blob/3f32b7dabbc9ee19e6e859d6460f7652f4824c4d/src/pages/home/report/ReportActionCompose/SuggestionEmoji.js#L181
    useEffect(() => {
        if (isComposerFocused) {
            calculateEmojiSuggestion(selection.end);
        }
    }, [selection, calculateEmojiSuggestion, isComposerFocused]);

Then we can show emoji suggestions after revisting tab.

Click to see demo video
https://github.com/Expensify/App/assets/117511920/f591a10c-dc13-4b1b-afa6-4462de6cb78b

What alternative solutions did you explore? (Optional)
N/A

One proposal here for ya @allroundexperts.

@allroundexperts
calculateEmojiSuggestion won't be called when composer focused state is changed if we add isComposerFocused to its dependency. In mentions, calculateMentionSuggestion was added to the dependency list of useEffect and so the function is called when calculateMentionSuggestion is changed
And if we add extra dependency to the useEffect(selection and calculateEmojiSuggestion), redundant call of calculateEmojiSuggestion would be made. We should add only isComposerFocused

@allroundexperts  Thanks for reviewing proposals. That's a good point. I'll dig deeper and post an update soon.

Still waiting on proposals

@eh2077 @s-alves10 Would you mind explaining why we can't add isComposerFocused as a dependency to the calculateEmojiSuggestion callback instead of the new useEffect which you are creating? Wouldn't that be inline with what we're doing with mentions?

@allroundexperts First, we need to have an useEffect in SuggestionEmoji to reflect the state change of isComposerFocused. Second, about having consistent implementation between them, I checked change records of SuggestionMention

We added useEffect in SuggestionMention to handle typing @ showing up mention menu issue on iOS native platform, see PR
Later we fixed a regression caused by the useEffected by checking isComposerFocused in method calculateEmojiSuggestion to skip calculating mentions and adding method calculateEmojiSuggestion to the dependency list of useEffect, see PR.
But I think just checking isComposerFocused to skip calling method calculateMentionSuggestion in the useEffect can achieve the same effect, which is suggested in my proposal.

Bump @allroundexperts for a review of @eh2077's comment.

@allroundexperts let me know if you can't get to this and I'll reassign a new C+ next week if not.

No, we just assigned @eh2077 Melv!

@allroundexperts The PR https://github.com/Expensify/App/pull/31289 is ready for review, thanks.

Payment Summary:

@allroundexperts should request $500 via Expensify (C+)
@eh2077 paid $500 here (Contributor)
@dhanashree-sawant paid $50 here (Reporter)

Waiting now on @allroundexperts to complete the checklist.

Checklist

I was not able to pinpoint an exact PR which caused this bug. This seems like an edge case which existed since we introduced emoji suggestions.
N/A
A slack discussion isn't needed here. I don't think that any checklist item would have avoided this.
A regression test is not necessary here in my opinion since this is minor and does not really have a large impact on the user experience. If the internal engineer disagrees however, the test steps in the OP look clear enough to me.

I agree with you at 4, @allroundexperts! Regression steps for this edge case might be an overkill.

$500 payment approved for @allroundexperts based on comment above.


Initializes conhost's Campbell color scheme in conhost order instead of ANSI/VT order

Summary of the Pull Request
Switch conhost back to BGR order instead of RGB order.

PR Checklist

[x] Closes #1234

Validation Steps Performed
I ran openvt, as shown in the original bug

I am wondering if it is reasonable to have a function called SwapANSIColorOrderForConhost that just works on a vector, and all of our Initialize...Color functions use ANSI order?

I would very much prefer this to a second definition of the entire table.

@zadjii-msft, can you fix this up before the bot kills it?

/azp run


fix Issue 14587 - generated 64 bit code for switch jump tables is wrong

https://issues.dlang.org/show_bug.cgi?id=14587
This is a critical bug fix.

Auto-merge toggled on

I think this should have gone into branch stable, since it's a regression. I think we need to update the D wiki on how to properly do this. @MartinNowak, what is the proper way to do this, and how do you know whether something goes into stable or not?

how do you know whether something goes into stable or not?

It goes into stable if it makes the compiler more stable :), i.e. regression fixes and bugfixes with low risk.

I think the question is, should it go to stable at this stage, when 2.067.1 is out and 2.068 is next ? Will there be 2.067.2 ? I assume at some point master is going to be merged to stable.

I think the question is, should it go to stable at this stage, when 2.067.1 is out and 2.068 is next ? Will there be 2.067.2 ? I assume at some point master is going to be merged to stable.

Always stable, simpler and leaves us more options, e.g. releasing 2.067.2, even though that isn't planned.

I'll try my hand at updating the wiki.


CDC: experimental_avro + envelope=key_only + updated is now rejected

Changes:

Added note to CREATE CHANGEFEED > Options section

Closes #6182.

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/44839ae3919d1e35e5355d8906b2f515ff345e1f/
Edited pages:

v20.1/create-changefeed.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/7356c425e6a1bd50efb2d4781be390cec5d14316/
Edited pages:

v20.1/create-changefeed.md

Do you have a preference since I'll be pinging you to review? If it's easier, I can push the other changes to this PR and lyk when the whole thing is ready for review.

I think I'd prefer that, but I'd go with whatever is easiest for you. I'll also be out for the next few days, so the review might be a little delayed.

I think I'd prefer that, but I'd go with whatever is easiest for you. I'll also be out for the next few days, so the review might be a little delayed.

Ok, will do! I'll add to this PR for you to review once you're back. Thanks!

Merging. Will open another PR for the remaining WITH diff changes.


chore: Align to new name KubeRocketCI (#220)

Remove the old custom chart that is deprecated.
Fixes #220
Type of change

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

How Has This Been Tested?
run helm template
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Pull Request contain one commit. I squash my commits.

/recheck


DOTNET Restore Fails behind proxy still

Running the following commands at the root of my dotnet core console application fails with a 401.
dotnet nuget locals -c all
dotnet restore

I have followed several github posts in an attempt to add proxy settings in nuget.config. and while restoring via VisualStudio works fine, anything from the command line fails with 401. The work around to use VS to restore isn't plausable as I am creating a dotnet CLI tool and need to be able to install it via dotnet tool install from my private azure devops feed.

@JCanlett Thank you for your feedback. The issues in this repo are for content feedback, can you let me know the URL of the article that goes with this feedback so I can pass it along to the correct author? If this is a product issue (something not working properly, or a feature request), please file an issue here: https://developercommunity.visualstudio.com/spaces/21/index.html
Thank you.

I have looked at so many now, one is here:  https://github.com/NuGet/Home/issues/6978
And the documentation here  https://docs.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=vsts  is lacking.
However based on one of the links in the docs above, I found this page describing how to manually create the NuGet plugins folder for dotnet. https://github.com/Microsoft/artifacts-credprovider
However that doesn't seem to work for the dotnet tools install command which doesn't understand --interactive (although you can see the output of dotnet restore suggesting this) I have no work around for the Proxy issues as even after all that manual process I have to do the following to get around this.

Clear all local nuget package caches
From the root of a dotnet core project run dotnet restore --interactive (which calls cred manager and fails behind proxy)
after auth is complete and a token is generated in local cache, I can then run dotnet tool install "packagename"

Not sure where to put any of these issues.

@JCanlett I have assigned this to the author of the docs.microsoft.com article you provided so they can address the feedback on that article. Thank you.

The .NET Core CLI task is updated with support for proxies. It's rolling out as part of the current deployment, will be available in the next few weeks.

@alexmullans do you know if it will be available in the next 2.1.x SDK version?


Review, update and include licenses

Review, update and include licenses for all libraries and program distributables.

Put summary license information in about tool


Detection for cookie(http only)

🚀 Feature Proposal
If cookie is set to http only, this plugin will not work. In this case, I think it's better to output some message in console.

What is exactly not working?
This is a client (browser) side plugin.
If you have any advice on how your idea could be implemented, feel free to provide a PR.


Request Timeout error when uploading file

hi there!
When uploading files (roughly 20mb), consistently get failed error:
Request Timeout
Server timeout waiting for the HTTP request from the client.

Additionally, a 408 Request Timeout error was encountered while trying to use an ErrorDocument to handle the request.

This seems to be happening more and more often to me and now it's happening to all uploads. Earlier it would happen for very large files (40mb or so) and on slower connections. When I would simulate slower connection by chrome network throttling, I was able to recreate it. The failure happens at random times (from 15s to 30s etc.)
I adjusted all php-related settings, but I believe this has anything to do with PHP since the initial ajax request doesn't even complete and hand over to PHP. I added a timeout value as well (=10000000 or 0) but that didn't make any difference. This is on a shared hosting space so I cannot tweak apache-related settings like RequestReadTimeout or KeepAliveTimeout.
Here's my options for the fileupload:
    $('#fileupload').fileupload({
        url: large_url,
        dataType: 'json',
        autoUpload: false,
        acceptFileTypes: /(\.|\/)(tiff|tif)$/i,
        maxFileSize: 999000000,
        limitMultiFileUploads: 1,
        singleFileUploads: true,
        limitConcurrentUploads: 1,
        fileInput: '.largefile',
        maxNumberOfFiles: 1,        // Enable image resizing, except for Android and Opera,
        // which actually support image resizing, but fail to
        // send Blob objects via XHR requests:
        disableImageResize: true,
        previewMaxWidth: 100,
        previewMaxHeight: 100,
        previewCrop: true,
        maxRetries: 100,
        retryTimeout: 500,
        timeout: 10000000,
    }).on('fileuploadadd', function (e, data) {
        data.context = $('
').appendTo('#files');
        $.each(data.files, function (index, file) {
            var node = $('
')
                    .append($('').text(file.name));
            if (!index) {
                node
                    .append(uploadButton.clone(true).data(data));
            }
            node.appendTo(data.context);
        });
        var prog_bar = $(e.target).parent().parent().find('.progress');
        prog_bar.find('.progress-bar').removeClass('progress-bar-success');

    }).on('fileuploadprocessalways', function (e, data) {
        console.log(e, data);
        var index = data.index,
            file = data.files[index],
            node = $(data.context.children()[index]);
        if (file.preview) {
            node
                .prepend('
')
                .prepend(file.preview);
        }
        if (file.error) {
            node
                .append('
')
                .append($('
').text(file.error));
        }
        if (index + 1 === data.files.length) {
            data.context.find('button')
                .text('Upload')
                .prop('disabled', !!data.files.error);
        }
    }).on('fileuploadprogressall', function (e, data) {
        var progress = parseInt(data.loaded / data.total * 100, 10);
        $('#progress .progress-bar').css(
            'width',
            progress + '%'
        );
    }).on('fileuploaddone', function (e, data) {
        var prog_bar = $(e.target).parent().parent().find('.progress');
        prog_bar.find('.progress-bar').addClass(
            'progress-bar-success'
        );

        $.each(data.result.files, function (index, file) {
            if (file.url) {
                var link = $('')
                    .attr('target', '_blank')
                    .prop('href', file.url);

                if (file.status === false) {
                    var status = '
'+file.message+'
';
                } else {
                    var status = '
'+file.message+'
';
                    addLargeImage(file.thumbmailurl);
                }
                //var status = 'Done';
                $(data.context.children()[index])
                    .append(status);

            } else if (file.error) {
                var error = $('
').text(file.error);
                $(data.context.children()[index])
                    .append('
')
                    .append(error);
            }
        });
    }).on('fileuploadfail', function (e, data) {
        $.each(data.files, function (index) {
            var error = $('
').text('File upload failed.');
            $(data.context.children()[index])
                .append('
')
                .append(error);

            var prog_bar = $(e.target).parent().parent().find('.progress');
            prog_bar.find('.progress-bar').delay(3000).animate( { width: 0 } );
        });
    }).prop('disabled', !$.support.fileInput)
        .parent().addClass($.support.fileInput ? undefined : 'disabled')
    .bind('fileuploadsubmit', function (e, data) {
        data.formData = {
            'curr_entry_id': $('[name=curr_entry_id]').val(),
            'curr_ag_id': $('[name=curr_ag_id]').val()
        }
    });

Here's the XHR output in chrome (in firefox, it just fails without returning any error!):

Is there anything I can do or try to get around this? I have been hesitant to use chunk files as that could really complicate the backend processing for this rather simple project! Hoping there is another better way...
Thanks very much!
jQuery-File-Upload v.10.29
jQuery v.2.2.3

Thanks for your report @kujain.
When you disable JavaScript and submit a selected file with a plain HTML form submit, can you reproduce the same issue?
Since this project is rather old and has been well-tested over time (including with large file uploads), there is still a very good chance this is related to your backend setup (and not an issue with this project).
However it doesn't have to be your PHP setup, if the request doesn't reach PHP it might very well have something to do with a server in front (Apache in your case, or anything else that is between your clients and your backend).
If you can reproduce this with a plain HTML form submit, you probably wanna contact your shared hosting provider about it.

Hi @blueimp
This WAS a server configuration issue actually. Disabling the mod_reqtimeout apache module resolve this. But considering that that module was added on the host for security purposes (DDOS etc) it would be good to find a solution that works with the module correctly.
Thanks!

Thanks for posting your resolution @kujain!
You probably don't want to disable the mod_reqtimeout module completely.
If you are able to set RequestReadTimeout, you could change the body timeout setting only and leave the remainder of the settings as default:
https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html


Adopt "Scripts to rule them all" pattern

https://github.com/github/scripts-to-rule-them-all
I'll start with script/bootstrap and script/server and script/build and script/update scripts.

I'd like to use script/cibuild too.

I'd like to use script/cibuild too.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 427 ms

Resolved: ClamAV performance has improved in 850852a.


Downloading Language Server extremely slow

The downloading of the Language Server is extremely slow in my network, nearly 10KB/s. Is it possible to have an alternative way to download the file, like provide local mirror, or manual download (#8456), or provide bundled release like C/C++ extension?

Hi @renkun-ken, thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes your idea gets to help us make our decision.

大佬出没

The python language server is sometimes really slow to download in some regions, such as China. After downloading it manually, I don't know how to install it.
python language server这个文件在某些地区有时候确实下载地很慢，尤其是中国，下载地非常慢。手动下载好了都不知道怎么安装。

any recent updates?

https://github.com/microsoft/python-language-server/issues/1916

🚴♂ It's really slow in China.

I'm stateside and experiencing the same issues. No output, it moves quick in download until about 77% and just gets stuck there.

Anyone looking at this?  It's definitely not just China.

It also happens basically every time I open vscode. Its incredibly annoying and I am not sure how to help. What information can we provide to help with this?

I don't know why need downloading every time I open vscode. this action is stupid, every time I open vscode, I will downloading hours, all auto-complete CANNOT use, maybe I can use notepad to replace vscode to coding

Same issue. I'm in the US. This is a Remote-SSH VSCode window. Running a wget https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x<IP_ADDRESS>.nupkg works perfectly, so why would the download get stuck at 80% forever?

I don't know why need downloading every time I open vscode. this action is stupid, every time I open vscode, I will downloading hours, all auto-complete CANNOT use, maybe I can use notepad to replace vscode to coding

Switch to Jedi for now. It's not as good, but it doesn't have this same issue.

Any progress on this? I'm seeing the same issue here (Germany, Python 3.7 in a remote container). Download gets stuck every time at around 90%. Very frustrating.

Dose the difference exist with download address? My downloading process go slower when I use VPN (not the speed problem, I could download python-language-server by chrome at the speed about 1M/s).
So maybe the vscode use different address to download for different area.
Can I change the address?

We have recently released a new and more performant language server called Pylance which likely solves this issue you are reporting.  You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out.

Does this mean the "Microsoft" python language server is now deprecated? Is another team going to take over this project? Is the current team going to manage both? Considering how heavily Microsoft pushes this language server (it literally forces a pop-up everytime you open a python file and you're not using this specific language server), I feel it would make sense to address the future of this project, in relation to a new product designed to do the same thing by the same team.

I've been using Pylance since its first release and it's working nicely so far as the there's no need to download the language server by Python extension but from the marketplace now.

How is this still happening like 6 months after reported. In my case, geographic location shouldn't be an issue: I'm located in Mexico, using an ethernet connection to a fiber optic router... this is something else :(

I can confirm that moving to pylance fixes this issue. Its worth doing so @lesmo

I can confirm that moving to pylance fixes this issue. Its worth doing so @lesmo

Yeah, actually it's pretty nice. I can forget about this problem now... but it's still an issue for pretty much everybody who doesn't want to use pylance (although honestly wouldn't understand why, it's pretty awesome).

05/04/2021 with the same problem...

06/18/2021, still experiencing the same issue in China. The progress stucked at 99% with less than 400k remaining.
Try to install PyLance instead of Python plugin, but it seems like these two are binded. Whenever I uninstall/disable Python, PyLance will be uninstalled/disabled as well.

@kaimingkuang Pylance is an alternative to the Microsoft Python Language Server, but it's supposed to be used alongside the Python extension.
For others on this thread, we recommend you either use Pylance or the Jedi Language Server.
You can set the language server value by opening your VS Code settings (View > Command Palette... and run "Preferences: Open Settings (JSON)") and adding the following line:

For Jedi:

“python.languageServer” : “JediLSP”

For Pylance:

"python.languageServer" : "Pylance"

Quick heads up: this issue was created almost a year ago, and now this ext uses Pylance by default since May.
So I'm under the impression that this issue is no longer relevant, and should be closed :)

@lesmo Thanks, closing as stale.


Should I use the mean value as the final value when I generate distribution realisations to measure errors

So for things like the hydrostatic mass distribution, where I generate many realisations of the fitted temperature and density models to see what the mass distribution is like so I can measure uncertainties on the mass. For the final mass value should I be using the value I calculate using the best fit model parameters, or the mean of the final mass distribution I generate?

Median is better in these situations I've decided (and implemented), especially for asymmetric distributions.


Tests from "make test" failing with SSL Certificate errors

Confirmed that two colleagues are seeing the same thing in their clones of the current code.  Two tests out of 50 fail with these error messages:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================================ short test summary info =============================================================================================
FAILED resources/test_collection.py::test_returns_valid_collection - urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (...
FAILED resources/test_item.py::test_returns_valid_item - urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)>
============================================================================ 2 failed, 48 passed, 41 skipped, 216 warnings in 14.73s =============================================================================
make: *** [test] Error 1
This is running on Rancher desktop on MacOS.  Might be particular to our work env, still working on it.

Contractor confirmed that this is not happening for him outside our corporate enclave, so I'm back to considering this a 'local' issue.

Resolved with some additional tinkering on the Dockerfile on my end, will have to just maintain a personal copy for myself and colleagues with the same issue.


Juliaup Crash Report

"name" = "Juliaup"
"operating_system" = "Mac OS 14.6.1 [64-bit]"
"crate_version" = "1.17.4"
"explanation" = """
Panic occurred in file 'src/command_update.rs' at line 83
"""
"cause" = "assertion failed: !version.is_empty()"
"method" = "Panic"
"backtrace" = """

   0: 0x105070df4 - core::panicking::panic::ha86301d07c045335
   1: 0x104ef7f39 - juliaup::command_update::update_channel::h875a10af5b26659a
   2: 0x104d8ccd2 - juliaup::main::h830dcac2fb1b84f3
   3: 0x104d7dff6 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcb5656c6ec4a1df2
   4: 0x104d9127a - _main
   5: 0x7ff803ea0345 - <unresolved>"""

This is a repeatable problem. juliaup update keeps crashing. juliaup self update does nothing.
I have these versions installed:
$ juliaup status
 Default  Channel  Version                          Update
---------------------------------------------------------------------
          1.0      1.0.5+0.x64.apple.darwin14
          1.1      1.1.1+0.x64.apple.darwin14
          1.2      1.2.0+0.x64.apple.darwin14
          1.3      1.3.1+0.x64.apple.darwin14
          1.4      1.4.2+0.x64.apple.darwin14
          1.5      1.5.4+0.x64.apple.darwin14
          1.6      1.6.7+0.x64.apple.darwin14
          1.7      1.7.3+0.x64.apple.darwin14
          1.8      1.8.5+0.x64.apple.darwin14
          1.9      1.9.4+0.x64.apple.darwin14
          1.10     1.10.5+0.x64.apple.darwin14
       *  beta     1.11.0-rc3+0.x64.apple.darwin14
          nightly  Development version              Update available
          release  1.10.5+0.x64.apple.darwin14

juliaup rm nightly resolved the problem.
A subsequent juliaup add nightly worked, and juliaup update is now working again as well.
If you are interested then I can investigate the previous state (from before juliaup rm nightly) from a recent backup.


Feature: JSON parse options

Currently we just use Klaxon to read JSON using the default settings. We should allow users to change Klaxon settings.

From another side, need to do it without expanding any Klaxon API in our public API if it changes in the future

That's probably why it was hidden

Some proxies for basic options will be enough, probably?

probably yes. For advanced stuff, users can simply parse it using their own parser, export to string and feed it to DF again


Error with viem and custom chainId (for example, a tenderly fork)

What happened?
When using viem, and a network with a unique/custom chainId, the error NetworkNotFoundError is thrown.
The normal solution is to pass in a custom viem chain, but hre.ignition.deploy does not allow passing in a chain.
See the error message:

I propose adding a parameter or field to an existing parameter on hre.ignition.deploy that allows passing a custom viem chain.
Minimal reproduction steps
See https://github.com/johnpm-12/hardhat-ignition-tenderly-test
npm run deploySameId works as expected, because the chainId is the same as one in viem/chains
npm run deployUniqueId throws NetworkNotFoundError
Search terms
NetworkNotFoundError

Thanks for the reproduction repo, it really helps.
I think the additional chain parameter makes sense as a solution.

@kanej see #783 I put up a PR solving this


[WCOW] Clean mount path for windows

This is the correct fix for https://github.com/containerd/cri/pull/1335.
Fixes https://github.com/kubernetes/kubernetes/issues/85142
Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

@mikebrow Can you help review the change? @jterry75 is out of town. :)

/test pull-cri-containerd-node-e2e

Apply LGTM based on https://github.com/containerd/cri/pull/1337#pullrequestreview-317841687


Problems using frontend in webapages with applicationinsights

I have this problem in using application insights, the same started yesterday 08/29/2017, I already identified that occurs in the application frontend in the use of the script that is inserted in the masterpage.
var appInsights = window.appInsights || Function (config) {function r (config) {t [config] = function () {var i = arguments; (S) = sv = sv = sv = sv = sv = svv = svv = svv = svv = svv = U.createElement (o), i, f; For (s.src = config.url || "//az416426.vo.msecnd.net/scripts/a/ai.0.js", u.getElementsByTagName (o) [0] .parentNode.appendChild (s), T.cookie = u.cookie, t.queue = [], i = ["Event", "Exception", "Metric", "PageView", "Trace" I.pop ()); Return r ("setAuthenticatedUserContext"), r ("clearAuthenticatedUserContext"), config.disableExceptionTracking || (Config, r, u, e, o) {var s = f && f (config, r, u, R, u, e, o), return s! ==! 0 && t ["_" + i] (config, r, u, = Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.Active.InstrumentationKey%> "}); Window.appInsights = appInsights; AppInsights.trackPageView ();
error: Unhandled exception at line 2, column 3681 in http://az416426.vo.msecnd.net/scripts/a/ai.0.js 0x800a138f - JavaScript runtime error: Can not get the 'apply' property of an undefined or null reference.
Is someone having this problem or has it already had the same problem?
Thank you!

Thank you for reporting this. I'm investigating.


Change limits of when we delete replication slots

[x] Metric on the number of snap files
[x] Pageserver: metric for number of aux files (we have pageserver_aux_file_estimated_size, so it's enough for now)
[ ] Adjust metric for slot removal after lagging for >N GB (we can probably relax it)

Currently, when we have >1000 snap files, we delete the slot. We can probably remove (bump) logic for replication slot removal
https://github.com/neondatabase/neon/blob/42229aacf60831443d9ec5e2342db34a143f9f1d/pgxn/neon/neon.c#L70
John: That'd be great for all AUX files to occupy 32 MB (???)
Important comment from Heikki on how to generate big aux files: https://github.com/neondatabase/neon/issues/6626#issuecomment-2065475447

Sounds like we want a default of 32MB?

@arssher last planning we discussed adding the size-based equivalent for neon.logical_replication_max_snap_files because the cumulative size is what we also care for AUX files. I wonder, was there any specific reasoning for adding a files-count-based limit?
If not, I think we could have both, like 10k count limit and 10 MB or so for size (check the right numbers with storage)
cc @tristan957

I wonder, was there any specific reasoning for adding a files-count-based limit?

When we were adding this, the count was the main problem / bottleneck due to O(n^2) operations in the pageserver. Since this is apparently solved maybe size limit also reasonable. But it is probably not very different because snap files contain list of running xacts, which would usually be in range 0-100, maybe 1000. Hm, though not sure if subxacts are separately tracked there, probably they are.

Size of LR snapshot files doesn't;t depend on number of subxids (at least as far as I understand).
looking at the code it should depend on mummer of committed transactions:
	/* copy committed xacts */
	if (builder->committed.xcnt > 0)
	{
		sz = sizeof(TransactionId) * builder->committed.xcnt;
		memcpy(ondisk_c, builder->committed.xip, sz);
		COMP_CRC32C(ondisk->checksum, ondisk_c, sz);
		ondisk_c += sz;
	}

... but looks like I do not completely understand which committed transactions are taken in account.
I tried to get large snapshot files with the following test:
import time
from fixtures.neon_fixtures import (
    NeonEnv,
    logical_replication_sync,
)
from fixtures.log_helper import log

def test_snap_files(neon_simple_env: NeonEnv, vanilla_pg):
    env = neon_simple_env

    tenant_id = env.initial_tenant
    timeline_id = env.initial_timeline
    endpoint = env.endpoints.create_start("main", config_lines=["log_statement=all"])

    con1 = endpoint.connect()
    cur1 = con1.cursor()

    con2 = endpoint.connect()
    cur2 = con2.cursor()

    cur1.execute("create table t(pk serial primary key, payload integer)")
    cur1.execute("create publication pub1 for table t")

    # now start subscriber
    vanilla_pg.start()
    vanilla_pg.safe_psql("create table t(pk integer primary key, payload integer)")

    connstr = endpoint.connstr().replace("'", "''")
    log.info(f"ep connstr is {endpoint.connstr()}, subscriber connstr {vanilla_pg.connstr()}")
    vanilla_pg.safe_psql(f"create subscription sub1 connection '{connstr}' publication pub1")

    # Wait logical replication channel to be established
    logical_replication_sync(vanilla_pg, endpoint)

    # insert some data
    cur1.execute("begin")
    cur1.execute("insert into t (payload) values (0)")
    for _ in range(10000):
        cur2.execute("insert into t (payload) values (0)")
    log.info("Waiting 1 minute")
    time.sleep(60)
    cur1.execute("commit")

    logical_replication_sync(vanilla_pg, endpoint)
    assert vanilla_pg.safe_psql_scalar("SELECT count(*) FROM t") == 10001

but still size of snapshot file is 144 bytes.
May be somebody has idea how to get larger snapshot files?
In any case it seems to be good idea to calculate total size of snapshot files rather than just their number.
Also there was some concerns that larger transaction can cause generation of large snapshot files.
From the code it is  clean that it is not true.
But in any case I tried LR with larger transactions.
Two observation:

Large transactions doesn't increase size of snapshot file or their number, snapshots are still generated each 15 seconds and their sizes 144 bytes.
By default larger transaction is placed in reorder buffer and is spilled to disk. So transaction size is limited by local disk size. To prevent it, subscription should be created with streaming=parallel option. There is now discussion in hackers whether parallel option should be switched on by default:
https://www.postgresql.org/message-id/flat/TYAPR01MB5692F83F3C7A383FD13A209CF57D2%40TYAPR01MB5692.jpnprd01.prod.outlook.com#c3c2c14d14[…]71f730f9b20

regarding the size limit, pageserver currently issues a single vectored read for aux files when generating the basebackup, and we will print a warning if the size is >= 128KB. While a majority of tenants fall below this limit, pageserver can also handle aux file basebackups ~10MB.


Hyperion forward OSMC issues

Hey @brindosch - Just tested Hyperion proto/ json forward to Philips Hue on OSMC, Rpi-1. Individual jsons to APA LED strips on Rpi GPIO & Philips Hue resolves fine. That's when implemented forward on hyperion.config. And the issues starts from there -

APA strips works flawless as usual.
Philips Hue shows very frequent color flicks (not the rainbow swirl) between a static color & color provided by grabber. The flick reduces after sometime in some cases.
3.Finally config2 halts stating either
*** Error in `/opt/hyperion/bin/hyperiond': double free or corruption (!prev): 0x01dcf650 ***
Aborted
or Segmentation fault

or
*** Error in `/opt/hyperion/bin/hyperiond': corrupted double-linked list: 0x00ca0fb0 ***
Aborted
In the last instance both the hyperiond fails/ halts.
http://pastebin.com/5QPU7LS8
This is something I can't figure out yet why this is occuring only on forward.

I have to admit, i still had no time to play around with the forwarder (hardware is here since 2 weeks waiting for use...)
But i am sure we have some experts here :)

hmm - would wait :-)

//cleanup


Error: "ufunc 'isfinite' not supported for the input types"

Hi,
I am using shap.KernelExplainer, since I have custom-made models. I wrote a function that returns a float64 array of the predicted probabilities for my models. The shap.KernelExplainer works, but when I try to calculate explainer.shap_values I get the above error.
What could be the problem?

Hi @ori-katz100
How did you resolve this?


[libgit2] Update portfile.cmake

libgit2 cannot be built to static library with dynamic CRT under Windows. Change the portfile to set STATIC_CRT option based on the value of VCPKG_CRT_LINKAGE in the triplet.

I think this got closed automatically because you proposed it against my development branch.
Could you reopen this against master? Thanks!

Reopened as PR #4432


More badges

Badges are important

@homu r+

:pushpin: Commit ea79d35 has been approved by poteto

:zap: Test exempted - status


.mtx file as input?

I saved the input files like in 0_prepare_your_data_from_Seurat.ipynb
# Save normalised counts - NOT scaled!
writeMM(so@assays$RNA@data, file = 'endometrium_example_counts_mtx/matrix.mtx')
# save gene and cell names
write(x = rownames(so@assays$RNA@data), file = "endometrium_example_counts_mtx/features.tsv")
write(x = colnames(so@assays$RNA@data), file = "endometrium_example_counts_mtx/barcodes.tsv")

But I see no possibility to to use this files as input in the cellphonedb functions. There is only a recommendation for a txt or h5ad file. How I should handle the .mtx file?

Hi,
Currently we only support anndata h5ad or text files. You can either read your raw data with scanpy and save it to h5ad or use sceasy  to convert your seurat object to h5ad.
Regards

Reviewing this comment, a colleague noticed I mistake on my side.
CellPhoneDB supports Mex format matrices.
You just need to pass to the counts_file_path argument of the CellPhoneDB method you are using the path where you have your counts (matrix/barcode/features).
Apologies for the confusion.
Regards


No documentation on developing with Django

Is your feature request related to a problem? Please describe.
"Use case: I'm a developer building a Django app and want to publish an asset. There's not a single example or instruction in this repo on how to do that. There's a docs folder but nothing helping in there." (from @kremalicious, originally in #113)
Describe the solution you'd like
Address the issue above. (See possibilities in the comments).

Using django means a webapp running ocean.py server-side. It's much safer to run ocean.js client-side (in the browser).
Therefore (imo) this issue is lower priority.
Or, maybe solving it is simply to put into ocean.py docs: "if you're thinking of doing a webapp with django, we recommend instead to use ocean.js because it can be run the browser without any custodial issues".
Thoughts, @kremalicious ?

depends on what we think ocean.py is for. Building web apps with Python/Django seems an industry-standard, and telling someone to use another tech stack completely raises the question what ocean.py then can actually be used for. Not aware of how exactly this works in Python world with interaction with user wallets in a browser. But if we think ocean.py can be used in a Python/Django app we should have a simple setup example. I remember some Python/Django app from Outlier Ventures they did in Python with squid-py back then so seems a valid use case

The main use case for ocean.py is data science use cases. Not webapps.

I propose closing this. Django uses libraries like any other Python package, so I'm not sure what we should document? As to writing a wrapper for django, I don't think that is in our list of priorities. Overall it seems like a wild goose chase, imo.

Needs more flashing out and more details about what problems Django users encounter.

I agree with @calina-c on this one, you just import it and use it the way you would for any other python lib.
If someone is actually trying to build in Django and sees / wants / needs specific ways to improve, we do stuff then. In the meantime I think we can and should close this issue (imo).

@kremalicious any problems if we close this ticket? Much bigger fish to fry, and we can revisit if/when someone using ocean.py in django has needs and feedback.


some issues I found during testings, hope will help

Player.stop() will return STATE_STOPPED on iOS and 0 (STATE_NONE) - Android bug
event handler is returning "STATE_PLAYING" as string on iOS and 3 on Android (well known bug)
if you call Player.remove([]) - with an empty array - the whole queue is cleared - iOS bug
sometimes the Player continue to play even if I remove the app from background with stopWithApp: true, moreover if I use stopWithApp: true the Player is very unstable but if set to false everything is working perfect, I think  stopWithApp  should not be an option :)
some inconsistency after last track is played
Android
Object {type: "playback-queue-ended", position: 200.525, track: "2"}
iOS
{type: "playback-state", state: "STATE_PAUSED"}
{type: "playback-queue-ended", track: "2", position:<PHONE_NUMBER>632653}

Yes, we're working on those inconsistencies


Enable EXPERIMENTAL_BATCH_WORKER for super-linter

That flag has been deprecated, and its behaviour is going to be the default behaviour, see https://github.com/super-linter/super-linter/commit/11b70102c3a30483b917d562942f115abeac03e0


Widget: UI Event

Description
It has been discussed on many occasions that it would be beneficial to have the context of user data available in Node-RED when a Dashboard is rendered, i.e. if a page is rendered, having context on which user is viewing that page in both NR and Dashboard.
Given that we do have FF & basic auth available to Dashboard through the NR middleware, this is data we should be able to have an expose.
Similarly, we've had a request whereby we want to have different data show for different users, as you would expect on any standard software product when a user logs in.
Underpinning this, I believe there is an architecture within the flows that could be accomplished with a ui-event node. This node would send a payload whenever a set of given events takes place, and could include things like pageview, with accompanying data included in it's transmitted payload that details the authenticated user.
The most significant complexity for the above use cases is server-side state management (SSSM), which would essentially need to be turned off, and moved to a Database (most likely user managed, rather than something we offer as a service with Dashboard). With SSSM till on, a user viewing a page would trigger a database lookup, sending that data to the chart, and be made visible to the given user, but because that data would be retained server-side, any user viewing that dashboard would now see that user's data.
Instead, we would need to look at SSSM on a connection-by-connection basis - which could get very messy, or no SSSR at all, which feels cleaner given that state would need to be database managed anyway.
So a side-issue of this implementation may need to be the ability to turn off SSSR for a given widget/group/page/ui
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

Thanks for the issue creation @joepavitt, really clear write up.
One thing that I think there is value in is the ability to pass a user identifier into a flow once a user has been authenticated. That would allow much more complex interactions such as showing relevant data to team members who work at a specific location. I appreciate there may be significant complexities in that feature but I also suspect it would see significant usage within FlowFuse users.

showing relevant data to team members who work at a specific location

The additional difficulty here is that Dashboard 2.0 follows the same architecture as 1.0, whereby there is a single copy of the dashboard/visuals, maintained server-side, so all users would see the same content.
It's a significant shift, although possible, to change this.

One thing that I think there is value in is the ability to pass a user identifier into a flow once a user has been authenticated.

Completely agree, I got a basic ui-event node up and running on https://github.com/FlowFuse/node-red-dashboard/tree/274-ui-event this morning, and Ben is taking over to see if we can utilise middleware to inject user data

Hi,
With the implementation of FlowFuse we can now have user authentication with Azure AD (SSO) for Node-RED instances even for Dashboards.
For our use case however it is imperative that we can see in Node-RED flows who is performing which action in a Dashboard v2. With that information available the action can be logged completely (which is a security requirement).
And indeed, Dashboard user actions of one user should not visible to other Dashboard users.
Thanks for any efforts in working to make this happen! :)
DenW

It would be great for us to get a comprehensive list from you for what kind of events you'd be hoping to track? Or re tou thinking, everything?
Button clicks, form inputs, selections, page views, etc?

Our primary use case requires a form input, which then triggers an action.
Sometimes we fill out form fields using a dropdown, but the central user action is a form submit.
The way we've set it up now is that a form triggers the action directly (within the same Node-RED instance). However, we're also thinking of redesigning that so that a form input results in a HTTP POST on another instance. This would enable us to trigger the same action from multiple front-ends, and also gather client information (headers, cookies).

Thanks @joepavitt , for the description. This would full fill the requirements from: https://github.com/FlowFuse/node-red-dashboard/issues/1
Consider providing the "Widget: UI Event" as the first Dashboard extension because the functionality should be EE.

Consider providing the "Widget: UI Event" as the first Dashboard extension because the functionality should be EE.

I understand the thinking here, but please let me justify why i don't think this is quite the right move as proposed.
ui-event as a node just sends different socketio topics when users do particular things in the Dashboard, e.g. a page load. This is very easily reproduced using custom nodes, and even if we licensed accordingly, what we are then licensing is very niche to the particular event/topic names, which can just be changed, and therefore no IP infringement.
However, where the EE value is truly added is with the addition of req.user data. So, whilst I propose that ui-event stays Apche 2.0, as per the rest of Dashboard 2.0, the inclusion of user data on any ui-event transmission (and potentially every other event transmitted back from the UI, e.g. button clicks, form submissions), would be EE through and through because that piece would require auth providers anyway.

Let me understand this better: What is the concrete use case of ui-event if it is not related to "multi-user" scenarios?

What is the concrete use case of ui-event if it is not related to "multi-user" scenarios?

There is no single concrete use case of the widget, just as there is no single concrete use case for a ui-button.
As an example though, a user may want to trigger a flow once a page is loaded, automatically calling API updates to render latest data in charts.

Playing with event structure here. Want to have a set of defined events, e.g. $pageview, $pageleave. We send these as the topic of the Socket IO event, and we then send a payload which contains appropriate data.
I'm thinking the ui-event node could then send() a message structure like this:
msg = {
    topic: "$pageview"
    payload: {
        page: <page object>
    }
}

@joepavitt I see advantaged and disadvantages in either format but feel Format 1 is more intuitive and in-keeping with common convention established in Node-RED
Format 1 (slightly different to your proposal - the payload is the data object (its not in a sub property e.g. payload.page)
msg = {
    topic: "$pageview"
    payload: { ...pageObject }
}

Advantages:

topic is easy for filtering on & we can guarantee it will always be a typeof string
extra properties are always inside payload (regardless of being a $pageview, $pageleave or $some_future_event)
common pattern in Node-RED

Format 2
msg = {
    payload: {
        event: "$pageview"
        data: { ...pageObject }
    }
}

Advantages:

event and data in same object

To provide some no-code means of finer filtering, we might want to consider offering scope and event name separately.
For example:
msg = {
topic: "$pageview",
event: {
scope: "$page", // (or "some_future_scope")
name: "view" // (or "leave" or "...")
}
payload: { ...pageObject }
}

We could simplify for MVP - make the topic easily "splitable" e.g.  `topic: "page:view"`.  The disadvantage is users dont have a simple `no-code` means of differentiating "$page" events from say "$widget" events.

Thanks Steve - I think I'm okay with Option 1 as it stands in that case. I understand the benefit of the broken hierarchy of evens, but cautious of over complicating it.

What this has lead me to change though is the Socket IO structure. previously I was emitting the event ui-event:$pageleave and the topic of the widget's ID. Instead, I'm now emitting a ui-event event, with the topic $pageleave. This means that any custom integrations, or ui-template nodes can also trigger the ui-event watcher with their own custom events.


multiThread error in yolov4

[TensorRT] ERROR: ../rtSafe/cuda/caskConvolutionRunner.cpp (290) - Cask Error in checkCaskExecError: 7 (Cask Convolution execution)
[TensorRT] ERROR: FAILED_EXECUTION: std::exception
Above is the error， how to solve it?

You probably need to create a cuda context with in the thread.  Reference: https://forums.developer.nvidia.com/t/tensorrt-do-inference-error/77055/12?u=jkjung13

I have updated the TrtYOLO class to handle cuda context at initialization and cleanup times.
Please check out the latest code from the repo.  Try instantiating TrtYOLO inside the thread which executes inferencing.  Let me know if that resolves your problem.

Your solution can solve above problem, but CUDA memory is too expensive. Can i instantiation one TrtYOLO and run inference with
multiThread?

I guess using TensorRT C++ API for inferencing (instead of using pycuda) could achieve that.  You could refer to the first 2 demos (GoogLeNet and MTCNN) in the repo, for how I did that.

OK，thank you！


HDDS-6217. Cleanup XceiverClientGrpc TODOs, and document how the client works and should be used.

What changes were proposed in this pull request?
As part of HDDS-5954, we have investigated the gRPC client and how it works, to see how we should tune its behaviour for erasure coded storage. At the end of the day, we decided to do not change the gRPC client and how it works in general, but we would like to document what we have found, and considered.
This PR contains our learnt knowledge, it removes the TODO comments from the XceiverClientGrpc class, and extends the APIDoc related to this class as well as adds a broader readme content about how the client works with the rest of the code.
Code changes to fix some IDE warnings along with documentation changes are:

internal variables that do not change were made to be final,
connect method with the token parameter made to call the parameterless version, as they duplicated the same code,  and none used the token parameter,
two unnecessary null value assignments were removed as they did not have any effect.

What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6217
How was this patch tested?
Not applicable, there weren't any semantical changes made to the code.

Thanks @fapifta for the cleanup and writeup.


Preload notifications tab when a push notification arrives.

Need to use -[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] instead for this.

Closing in favour of #1119.

Actually, I’m re-opening this, as it is specifically about fetching data.