Not clear how to reference multiple modules in the same class

Summary
If a unit test needs to assert the state of core Java objects (e.g. Map), and Guava object (e.g. Multimap) then it's not clear how to statically import assertThat() in way that pleases both tests. Sometimes a single test needs both types of asserts, so I can't workaround the problem by using separate files.
Example
Multimap<Integer, String> multimap = Stream.of(1, 2, 3, 4, 5, 1, 2, 3, 4, 1, 2, 3).collect(
	GuavaCollectors.multimapFrom(Integer.class, Function.identity(), i -> Integer.toString(i)).
	toImmutableMultimap().
	build());
assertThat(multimap.size()).isEqualTo(12);
assertThat(multimap.keySet().size()).isEqualTo(5);
assertThat(multimap.get(1)).containsOnly("1", "1", "1");
assertThat(multimap.get(4)).containsOnly("4", "4");
assertThat(multimap.get(5)).containsOnly("5");
Map<String, Integer> expected = ImmutableMap.of("2", 2,
	"1", 1,
	"3", 3);
assertThat(multimap).containsAllEntriesOf(expected);

Java 8 specific ?
Yes

As a side-note, if I had GuavaAssertions for the Guava module vs Assertions for the core module, I could at least import those classes and type GuavaAssertions.assertThat() vs Assertions.assertThat() in the test code. Right now I am forced to specify the fully-qualified name, including the package name.

assertThat from assertj-core 3.4.0 can coexist with assertThat from assertj-guava 2.0.0, this example below works:
import static com.google.common.collect.Lists.newArrayList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.guava.api.Assertions.assertThat;
import static org.assertj.guava.api.Assertions.entry;

import org.junit.Test;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;

public class MultimapAssertionsExamples {

	@Test
	public void testName() {
		// GIVEN
		Multimap<Integer, String> multimap = ArrayListMultimap.create();
		multimap.putAll(1, newArrayList("1", "1", "1"));
		multimap.putAll(2, newArrayList("2", "2", "2"));
		multimap.putAll(3, newArrayList("3", "3", "3"));
		multimap.putAll(4, newArrayList("4", "4"));
		multimap.putAll(5, newArrayList("5"));

		// THEN - assertj-core assertions
		assertThat(multimap.size()).isEqualTo(12);
		assertThat(multimap.keySet().size()).isEqualTo(5);
		assertThat(multimap.get(1)).containsOnly("1", "1", "1");
		assertThat(multimap.get(4)).containsOnly("4", "4");
		assertThat(multimap.get(5)).containsOnly("5");

		// THEN - assertj-guava assertions
		assertThat(multimap).hasSize(12)
		                    .contains(entry(1, "1"), entry(2, "2"), entry(3, "3"))
				            .containsAllEntriesOf(multimap);
	}

Can you try that ?

Closing this issue by lack of feedback.

Sorry for the late reply but yes, this works. I had no idea that it was legal to statically import the same method name from different classes inside the same file. Thanks for the head's up!

No worries.


a question about ffl value

Thanks for your good job!
recently i am apply it for my  work, i find its well for Image Reconstruction. but i am confuse for how big its value ? Generally speaking，for gan, we will have two loss. can you provide some experience for two loss? should i initialize two loss is equal?

The value of FFL should have been normalized, so it should be in a reasonable range. And yes, initializing two losses as equal/at the same order of magnitude is a good starting point. You can adjust their weights after that.


Prevent multiple Controls moving inside container

Fixes #30102
Unmovable nodes were removed from selection list... while iterating that list.

Needs a rebase on current master to fix CI.

Needs a rebase on current master to fix CI.

Thanks!

Cherry-picked for 3.2.3.


The Clonetype analysis with the Hashtag Oligomer Barcodes in it

Hello, I am currently trying to analyse the clonotype information from a pooled BCR sample. Here the DNA barcodes were used to differentiate the sample of origins from a single captured 5' VDJ scRNA-seq information (we used the 10x BCR kit), which contains a GEL, a CST and a BCR library. So is it possible to differentiate the sample origins by DNA barcode after running through the TRUST4?

I'm not familiar with the data format. Is the cell barcode sufficient to infer the sample ID, or is there any other field in the read corresponding to the sample id? Thank you.

Thanks for the answering. The GEL library carries the gene expression (GEX), BCR is the VDJ one, and CSP (not CST) is the feature barcode library carries both cell feature barcode and Hashtag barcode.
So the CSP library is specifically used for the demultiplexing, i.e. differentiating the sample IDs by Hashtag barcode. The cell barcode cannot be used for the sample ID classification. Thanks for the answering. The GEL library carries the gene expression (GEX), BCR is the VDJ one, and CSP (not CST) is the feature barcode library carries both cell feature barcode and Hashtag barcode.
So the CSP library is specifically used for the demultiplexing, i.e. differentiating the sample IDs by Hashtag barcode. The cell barcode cannot be used for the sample ID classification.

TRUST4 currently does not support this type of sample demultiplexing. I think the best way is to split the data into sample-wise files.
An alternative approach is to regard the cell barcode and hashtag barcode as the real cell barcode (--readFormat bc:x:x,bc:y:y, assuming they are on the same read). From the final result, you can use part of the barcode to tell the sampleID. Though you won't be able to conduct barcode error correction with whitelist using this approach. Hope this helps.

Thank you very much indeed. I have another question. Since our preliminary data after sequencing is massive, the raw data is separated into 4 files (i.e. GEX_S1_L001_R1_001.fq, R2.fq; GEX_S1_L002_R1_001.fq, R2.fq, etc.), can I place the running programme as the following:
./run-trust4  -1 GEX_S1_L001_R1_001.fastq.gz -2 Sample_S1_L001_R2_001.fastq.gz -f hg38_bcrtcr.fa --ref human_IMGT+C.fa -1 Sample_FB_S1_L001_R1_001.fastq.gz -2 Sample_FB_S1_L001_R2_001.fastq.gz -1 GEX_S1_L002_R1_001.fastq.gz -2 Sample_S1_L002_R2_001.fastq.gz -f hg38_bcrtcr.fa --ref human_IMGT+C.fa -1 Sample_FB_S1_L002_R1_001.fastq.gz -2 Sample_FB_S1_L002_R2_001.fastq.gz (repeating) -o output_folder
or are there having some alternatives required for the input?
Many thanks and good day.

Yes, you can use multiple -1, -2 to specify the files.
You may simplify the command if you know the patterns of the file names, such as the lane names. The file name can contain wildcards, and the input option can be something like
-1 GEX_S1_L00*_001.fastq.gz -2 GEX_S1_L*_001.fastq.gz

Appreciated for the answering, thank you very much.

Another little question, how long it usually takes to run through the programme with the data with size of 30GB?


inconsistent cli help information for db dump

This is just a minor inconsistency in the help description
Current Behavior
./bin/neo-go db
NAME:
   neo-go db - database manipulations

USAGE:
   neo-go db command [command options] [arguments...]

COMMANDS:
   dump     dump blocks (starting with block #1) to the file

Note how for the dump command it states starting with block #1
Showing the help for the dump command states that start from defaults to 0 instead of 1
./bin/neo-go db dump -h
NAME:
   neo-go db dump - dump blocks (starting with block #1) to the file

USAGE:
   neo-go db dump -o file [-s start] [-c count] [--config-path path] [-p/-m/-t] [--config-file file]

OPTIONS:
   ...
   --start value, -s value  block number to start from (default: 0) (default: 0)

Expected Behavior
I believe these two should be the same, whichever is the right one.
Your Environment

Version of the product used: v0.106.2

It starts from the genesis by default, thus, it's dump's usage should be adjusted.


Create separate core and rest modules

This PR creates separate browsermob-core and browsermob-rest modules, as discussed in PR #144. Since most files in the repo were moved into subdirectories, the changeset is huge. Here's a summary of the "meaty" changes for review:

Version has changed to 2.1.0-SNAPSHOT. There is now a separate 2.0 branch with the legacy architecture.
New browsermob-dist module: this is the module that actually builds the zip file (this is the recommended approach with multi-module builds).
Maven shade plugin: browsermob-dist uses shade to create a runnable fat jar, rather than using the appassembler plugin. The maven assembly plugin still creates the zip file, but the zip now only contains a few files (readme, javadoc and sources jars, scripts to run the app, and the single fat jar). This will give us more control over the creation of the jar.
browsermob-dist does not install the runnable jar into the maven repo; only the browsermob-core and browsermob-rest jars are installed.

As before, the "release" profile will create the zip file distributable (and now, the runnable fat jar).
The most interesting changes that could use some review are in the poms in each module, as well as the parent pom. @nite23 - could you take a look and let me know if you think this is a fair place to start with 2.1? If you spot any major deficiencies, I'll make the changes before merging. Otherwise, I'll merge and we can address any issues with additional PRs.
I'd like to get this major structural change merged fairly soon. Since we now have the stable 2.0 branch, master is going to be our development branch and won't be as stable as it was before the 2.0 release.

Great job! I like the big single jar solution. I think this can be merged, the only thing I'd improve are redundant dependencies... I moved them around a bit, and it seems that only dep that's currently shared between the modules is jUnit:
https://github.com/nite23/browsermob-proxy/commit/f4c3320f586dbbf946aa156a4db15f9b8b140db6

Thanks! There were some merge conflicts between the cleaned-up dependencies and some of my later commits, so I manually merged them in this commit: 98aadbb. Can you take a second look to make sure everything looks good?
One question -- I didn't see guice-multibindings in your changeset, but I wasn't sure if that was on purpose or not. I left it in, but I'll take it out if you meant to remove it. I honestly don't know if we have a runtime dependency on it or not. dependency:analyze says it's unused, but I'm not sure if it's used indirectly.
FYI -- in the two later commits I updated the slf4j version to the latest and replaced the transitive dependency on commons-logging from httpclient with slf4j.

@nite23 -- just added you as a collaborator on my repo so feel free to push any changes directly to the PR branch.

guice-multibindings and guice-servlet are pulled in by sitebricks, so it's not needed to declare them explicitly. But since we'll remove sitebricks soon, it's fine to leave them in the pom.
I added a slf4j binding so that we have some logging output when we run the tests.


Compilation

Oh no! I'm having an error compiling nanofetch.c with gcc:

Can you help me?

i didnt even starting on working on it, i currently have it just as placeholder until i will learn more of C
i will try work on it today


wallet and assests loading

When I try to inwstall the corptools for corps I am getting this issue?

https://i.imgur.com/FWQb6aD.png
But If i look with the admin user I can see things what am I doing wrong?

we talked about it in a pm we can close it


wait

why was this released?

Hi @huxtabl8, please see https://about.fb.com/news/2022/10/protecting-people-from-malicious-account-compromise-apps/ for more information.


Not able to access kubectl, fails with error Unable to connect to the server: x509: certificate is valid for <IP_ADDRESS>, <IP_ADDRESS> not Rancher Server IP

Rancher Server Setup

Rancher version: v2.5.8 and v2.5.9-rc4
Installation option (Docker install/Helm Chart): Docker install
Proxy/Cert Details: Rancher Self signed

Information about the Cluster

Kubernetes version: v1.19.8+k3s1
Cluster Type (Local/Downstream): Local

Describe the bug

When using the kubeconfig file from the rancher versions above, seeing an error and not able to use kubeconfig from local machine from performing any further activities on rancher server.

To Reproduce

On a linode/AWS instance, install rancher server versions either v2.5.8 or v2.5.9-rc4 via docker.
Grab the kubeconfig file from the local cluster.
Run the command kubectl get pods --kubeconfig kubeconfig.yaml

Result

Fails with the error Unable to connect to the server: x509: certificate is valid for <IP_ADDRESS>, <IP_ADDRESS>, not rancher_server_ip
This happens for any other kubectl command as well.

Expected Result
The command should not have failed and worked with the kubeconfig file provided for local cluster.
Screenshots

Additional context

If we create a downstream cluster [rke1 node driver 1 node all roles EC2] in the rancher server, the kubeconfig file from the local and the downstream clusters work fine.
Launch kubectl button in the UI works without any issues.
Related issue: https://github.com/rancher/rancher/issues/31784

Since the local cluster on a Docker install is not a true k8s cluster to actually deploy resources into, I wouldn't expect this kube config file to work to access the k3s cluster inside the docker install.

Related issue - https://github.com/rancher/rancher/issues/31784

closing as its a wont-fix


Not able to install pyjq 2.6, error in makefile

Hello,
On Ubuntu 24.04, using python3.10, all dependencies installed (flex, bison (3.0 or newer), libtool, make, automake and autoconf)
No other topics covering this issue found.
commands tried:
pip install pyjq
pip install git+https://github.com/doloopwhile/pyjq.git
both give the same result:
`error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [201 lines of output]
/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/config/expand.py:124: SetuptoolsWarning: File '/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470
599a9877911c11d40/CHANGELOG.md' cannot be found
return '\n'.join(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
copying pyjq.py -> build/lib.linux-x86_64-cpython-310
running build_ext
Refactored /tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/gperf_unfold_key_conv.py
Files that were modified:
/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/gperf_unfold_key_conv.py
Refactored /tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/gperf_fold_key_conv.py
Files that were modified:
/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/gperf_fold_key_conv.py
Refactored /tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/make_unicode_property_data.py
Files that were modified:
/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/make_unicode_property_data.py
Refactored /tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/make_unicode_fold_data.py
Files that were modified:
/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/make_unicode_fold_data.py
Refactored /tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/make_unicode_egcb_data.py
Files that were modified:
/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/dependencies/onig-6.9.0/src/make_unicode_egcb_data.py
./configure: line 613: !defined: event not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking for strings.h... (cached) no
checking limits.h usability... no
checking limits.h presence... yes
configure: WARNING: limits.h: present but cannot be compiled
configure: WARNING: limits.h:     check for missing prerequisite headers?
configure: WARNING: limits.h: see the Autoconf documentation
configure: WARNING: limits.h:     section "Present But Cannot Be Compiled"
configure: WARNING: limits.h: proceeding with the compiler's result
checking for limits.h... no
checking sys/time.h usability... no
checking sys/time.h presence... yes
configure: WARNING: sys/time.h: present but cannot be compiled
configure: WARNING: sys/time.h:     check for missing prerequisite headers?
configure: WARNING: sys/time.h: see the Autoconf documentation
configure: WARNING: sys/time.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... no
checking for unistd.h... (cached) no
checking sys/times.h usability... no
checking sys/times.h presence... yes
configure: WARNING: sys/times.h: present but cannot be compiled
configure: WARNING: sys/times.h:     check for missing prerequisite headers?
configure: WARNING: sys/times.h: see the Autoconf documentation
configure: WARNING: sys/times.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/times.h: proceeding with the compiler's result
checking for sys/times.h... no
checking size of int... 0
checking size of short... 0
checking size of long... 0
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for size_t... no
checking for working alloca.h... no
checking for alloca... yes
checking for working memcmp... no
checking for prototypes... yes
checking for variable length prototypes and stdarg.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
/@[a-zA-Z_][a-zA-Z_0-9]*@/build_os='linux-gnu'
config.status: creating Makefile
sed: can't find label for jump to uild_os='linux-gnu''       config.status: creating src/Makefile       sed: can't find label for jump to uild_os='linux-gnu''
config.status: creating test/Makefile
sed: can't find label for jump to uild_os='linux-gnu''       config.status: creating sample/Makefile       sed: can't find label for jump to uild_os='linux-gnu''
config.status: creating onig-config
sed: can't find label for jump to `uild_os='linux-gnu''
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
make: *** No targets. Stop.
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/setup.py", line 113, in
setup(
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/init.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/command/bdist_wheel.py", line 384, in run
self.run_command("build")
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/samuel.texier/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/setup.py", line 31, in run
self._build_oniguruma()
File "/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/setup.py", line 45, in _build_oniguruma
self._build_lib(
File "/tmp/pip-install-t2o0ac92/pyjq_8f2f26d683cf470599a9877911c11d40/setup.py", line 89, in _build_lib
subprocess.check_call(command, cwd=lib_dir)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyjq
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyjq)`
Seems to come from a bad separator in sed, in the lines I put in bold.
$ sed --version

sed (GNU sed) 4.9

Why would I be getting this error, and how could I fix it?

Error comes from the oniguruma 6.9.0 dependency. trying to install it manually but cannot fix the error


Can this TMR F4PGA example designs?

I would like to TMR the various example designs in this repo:
https://github.com/chipsalliance/f4pga-examples
Is the current guide sufficient enough?

Yes, the guide should be sufficient to TMR example design from f4pga examples.

@AEW2015 have you had any issues? Can I close this issue?


About the object 3D AAR black screen and then flash back

Hello, now my program has a black screen and then crashes. The following is my problem report：

The following is my project file structure：

I suspect it is the problem with the AndroidManifest.xml file, the following is my file code：

And after the 3D update of the object, I feel that many things have changed, which makes it impossible to patrol the AAR program normally. If this problem can be solved, I would be very grateful.

In addition, the latest version of mediapipe I use

Hi @z7212819 , Can you share the complete crash report. And which step the issue is occurring . Thanks!

Hi @z7212819 , Can you share the complete crash report. And which step the issue is occurring . Thanks!

Thank you very much for replying to me, this is my complete report. The program crashed after I allowed the camera permission
log.txt

@sgowroji In addition, I also doubt whether it is the problem with the AAR file and the tflite file. Since the content of the internal frame has changed after the object 3D update, I also want to ask if you need to use the object 3D AAR package at present, you need What tflite file? Thank you!

Hi @z7212819  What solution are you trying?  Facemesh or other?

@sgowroji hello, I'm trying a solution for object detection3d


Add issue hyperlinks in the webhook of wechatwork

Add issue hyperlinks in the webhook of wechatwork

make L-G-T-M work


Updated scheduler with onboarding functionality

In general, I'm a bit concerned about this being a hybrid Python+JavaScript project. That gets especially confusing when you start thinking about how the CI/CD pipeline should build and test it.
Was it the non-linear solver that motivated the introduction of the second language?
With Alida on leave and this code (I assume) running in production anyway, I find ourselves in a somewhat awkward situation where the only reasonable way forward might be to accept the PR as is.
What do you think @juanfridano?

In general, I'm a bit concerned about this being a hybrid Python+JavaScript project. That gets especially confusing when you start thinking about how the CI/CD pipeline should build and test it.
Was it the non-linear solver that motivated the introduction of the second language?
With Alida on leave and this code (I assume) running in production anyway, I find ourselves in a somewhat awkward situation where the only reasonable way forward might be to accept the PR as is.
What do you think @juanfridano?

hey @pranasziaukas , well, the way I approach a PullRequest is I look into what the issue was (in this case update scheduler with onboarding functionality).
Once that is clear, I check for syntax, readability and see if I completely agree on what has been changed as part of implementing/fixing this issue.
Since JS has always been there I don't thing it is related to this PR and shouldn't have influence on accepting this PR.
If we want to change (or discuss changing) something else in the code, we could open a new issue and dedicate a PR to fixing/implementing that issue.
as Alida said, since this Support functionality will be deprecated in less than a year, we should properly evaluate have much resources we invest here.

Fair enough @juanfridano, I completely agree with your approach.
I think I got hypnotized by recent migrations going on, to the point where I didn't even realize this isn't a new repository (unlike meeting-scheduler and doughnut-scheduler).
Feel free to approve the PR as you see fit.

Yeah, I know what you mean @pranasziaukas ! I will implement sour suggestions and the ones from @gelbal tomorrow or on Monday probably, and after that approve it

Thanks for addressing Juan.


"Repository name 'KosmX's maven' is not valid for publication"

Describe the bug
Gradle won't let the mod mount from this repository because, "The supplied phased action failed with an exception.
A problem occurred configuring root project 'ddwas'.
Repository name 'KosmX's maven' is not valid for publication. Must match regex [A-Za-z0-9_-.]+."
To Reproduce
Steps to reproduce the behavior:

Add respective items to dependency blocks in format
Get error saying the repository is not valid

Expected behavior
The mod to mount into the dependencies
Setup config (minecraft, modloader, libraries):

Minecraft version: 1.19.2
Mod loader: Fabric 0.14.22
PlayerAnimator Library version: 1.0.2 (unmarked on api so I don't know if its the 1.19.2 one)
MC library version: fabric-api-0.76.0+1.19.2.jar

Full error log.
[{
"resource": "/c:/Users/username/Desktop/New folder/ddwas/build.gradle",
"owner": "generated_diagnostic_collection_name#3",
"code": "0",
"severity": 8,
"message": "The supplied phased action failed with an exception.\r\nA problem occurred configuring root project 'ddwas'.\r\nRepository name 'KosmX's maven' is not valid for publication. Must match regex [A-Za-z0-9_\-.]+.",
"source": "Java",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}]

Removing "KosmX's " from the name fixed it. Don't know why its in the mod integration text if it breaks it.


'chip8emulator' folder name does not match 'arduboychip8.ino'

The Arduino IDE requires that the outer folder name matches the main .ino file name:

Fixed by 4d88aa0


Change from CS IP to CSIP

Change CS IP to CSIP.
https://github.com/DILCISBoard/E-ARK-CSIP/pull/424
https://github.com/DILCISBoard/E-ARK-CSIP/issues/229#issuecomment-488402752
https://github.com/DILCISBoard/GroupDocumentation/issues/16

Closeable @PhillipTommerholt ?

It is consistent now :+1:  @carlwilson


introduce FreeMarker into materialstore

https://freemarker.apache.org/

I created a project

https://github.com/kazurayam/FreeMarker_tutorial

where I learned FreeMaker.

Introduced FreeMarker into the materialstore project to fix #122


Perlin tile generation

Changes:

Adds libnoise dependency.
Renames TilePartition* to TilePartitioner* and turns them into derived classes.
Adds wrapper classes for libnoise Modules:

ModuleGroup, which allocates map<shared_ptr<Module>> storage.
Reseedable, which groups a shared_ptr<Module> with a function object that reseeds all reseedable Module dependencies, and can build ModuleGroups using operators and functions.

Adds noise-based TilePartitioner with tests.
Adds AlphaCalculator class with static functions for converting a pixel's corner weights into alpha values that sum to 255.

Status:

Builds
Most tests pass
Borders don't match in output tiles (#38)
Noise modules not data-driven (#28)
Post-processing using AlphaCalculator is not customisable and is missing features (#37)

Transferring the repository to the organisation broke my ability to add commits to this PR, so I've moved it to #50.


chore: change title section 4 to polkadot api to client libraries

This pull request has been deployed to Vercel.

Latest commit:
29f1889

✅ Preview:
https://polkadot-bootcamp-f4nfdahby-openedu101.vercel.app

🔍 Inspect:
https://vercel.com/openedu101/polkadot-bootcamp/HqtMKJwFyw86CCXJnhFDexzZQF8B

View Workflow Logs


Text alignment with multiple lines is incorrect

Check the alignment Validation doc for details. Also, support auto width with multiple lines.

This is fairly close (about as accurate as before) with the most recent round of text optimization changes.


Multiple log messages

Hi!, I've installed your plugin but I had to disable it due to multiple log messages like those:
29/6/2021 18:25:16] [Termohigrómetro] Govee discovery stopped while Homebridge is running.
[29/6/2021 18:25:16] [Termohigrómetro] Restart Discovery
[29/6/2021 18:25:16] [Termohigrómetro] Govee discovery stopped while Homebridge is running.
[29/6/2021 18:25:16] [Termohigrómetro] Restart Discovery
scanStart
[29/6/2021 18:25:16] [Termohigrómetro] Govee Scan Started
scanStop
[29/6/2021 18:25:16] [Termohigrómetro] Govee Scan Stopped
[29/6/2021 18:25:16] [Termohigrómetro] Govee discovery stopped while Homebridge is running.
[29/6/2021 18:25:16] [Termohigrómetro] Restart Discovery
scanStart
[29/6/2021 18:25:16] [Termohigrómetro] Govee Scan Started
[29/6/2021 18:25:16] [Termohigrómetro] Govee discovery stopped while Homebridge is running.
[29/6/2021 18:25:16] [Termohigrómetro] Restart Discovery
scanStop
[29/6/2021 18:25:16] [Termohigrómetro] Govee Scan Stopped
[29/6/2021 18:25:16] [Termohigrómetro] Govee discovery stopped while Homebridge is
the plugin is in the last version (1.1.2) and the device is H5075.
Thanks in advance!

@kalety log messages you're getting indicate a compatibility issue with your BLE module or drivers.


Camera View Mirroring

Mirroring views from cameras will greatly help archers visualize and fix their movements, placement and shooting.

So easy to  implement. Completed, tested.


Cannot select multiple external stores and publish at once in publisher

Description:

When trying to select multiple external stores at once, it only publishes the API to one external store.
Steps to reproduce:

Add multiple external stores via carbon console.
Follow  https://apim.docs.wso2.com/en/latest/deploy-and-publish/publish-on-dev-portal/publish-to-multiple-external-api-stores/
Go to the publisher portal and create and publish an API.
Go to the External Dev Portal tab in the left menu and select multiple dev portals at once.
Click the save button you can see it only publish to one store and the tick only contains for one store after saving.

Affected Product Version:

APIM 4.1.0-alpha
Environment details (with versions):

OS:
Client:
Env (Docker/K8s):

As per @chashikajw 's observation, at any given time only one store will be displayed as ticked eventhough the api is published to multiple stores.
Hence marking this as "Priority/High"


chaintip is a bitcoin cash bounties bot that integrates directly into github

info is here
https://github.com/chaintip/bounties

@chaintip

0.0005 BCH| ~   0.52 USD has been tipped to this issue by @adangert.
To claim this bounty, get a pull request merged with @chaintip fixes #20 in the creation comment.

0 BCH| ~   0.00 USD has now been tipped to this issue.
To claim this bounty, get a pull request merged with @chaintip fixes #20 in the creation comment.


[Theme Request] Rosepine themes

https://github.com/rose-pine/rose-pine-theme

https://rosepinetheme.com/palette
Here is the well defined color palette
and here is the implementation example from VS Code and neovim -
https://github.com/rose-pine/vscode
https://github.com/rose-pine/neovim


How to allocate a vector or array in PSRAM

I have a ESP32-S3 WROOM board with 8MB of PSRAM.  How can I use the PSRAM for a vector or an array?

First make sure you read the esp-idf docu around PSRAM.
 Depending on that you can directly use normal rust methods to put things on the heap, though if you want a little bit more control over it you have to directly intercept here.

Thank you for the link to document.
So I added the following to sdkconfig.defaults
CONFIG_SPIRAM=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_SPEED_80M=y

and during bootup I see the following which tells me I have the 8MB PSRAM available for heap allocation
I (797) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator

I added the following to main to test PSRAM allocation
log::info!("========== Placing vector in PSRAM ==========");
    let mut large_vec: Vec<u32> = Vec::with_capacity(500 * 1024 / 4);

    for i in 0..(500 * 1024 / 4) {
        large_vec.push((i & 0xff) as u32);
    }

    log::info!("large vec size = {} bytes", large_vec.len() * 4);
    log::info!("large vec address = {:p}", large_vec.as_ptr());
    log::info!("large vec[..100] = {:?}", &large_vec[..100]);

And the results
I (889) std_psram_test: ========== Placing vector in PSRAM ==========
I (909) std_psram_test: large vec size = 512000 bytes
I (919) std_psram_test: large vec address = 0x3c070958
0x3c070958 - _ext_ram_bss_end
    at ??:??
I (919) std_psram_test: large vec[..100] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]

In ESP-IDF Programming Guide section "Support for External RAM" it states
During the ESP-IDF startup, external RAM is mapped into the data address space, starting at address 0x3D000000 (byte-accessible). The length of this region is the same as the SPI RAM size (up to the limit of 32 MB).

My question is why is the large_vec pointer address at 0x3c070958 instead of 0x3d000000 ?

First is maybe to try to understand the memory model of the data structure you are talking about. Maybe something like this helps. Also possible reading the source might help.
After that you should ask yourself, "do i ask the rust program really what i want to know" ? To me it looks like you are not asking the right question to your rust program, e.g you are not asking it to print the address of the allocated memory rather asking what address the pointer lives on.

OK I looked at the source at lines 312 to 322.  This seems to tell me that ptr holds the start address to the location where the vector is on the heap.  The function as_ptr states it returns a raw pointer to vectors buffer.
When I look at the log info printed to terminal it shows the following
I (910) std_psram_test: large vec ptr address = 0x3c070958
0x3c070958 - _ext_ram_bss_start
    at ??:??

So I assume the words 0x3c070958 - _ext_ram_bss_start means the vector is located in PSRAM.
For now I am going to assume the ESP-IDF documentation is not correct when it stated PSRAM starting address is 0x3D000000.
I will close this issue.


Error when trying to launch kmonad: Looking for unexisting file

user@fedora:~$ kmonad ~/Documents/GitHub/kmonad/keymap/tutorial.kbd
/bin/sh: line 1: /run/current-system/sw/bin/sleep: No such file or directory
kmonad: /dev/input/by-id/usb-04d9_daskeyboard-event-kbd: openFd: does not exist (No such file or directory)

Sleep binary exists in /usr/bin/sleep
user@fedora:~$ which sleep
/usr/bin/sleep

UPD:
user@fedora:~$ kmonad ~/Documents/GitHub/kmonad/keymap/tutorial.kbd -l debug
Opening KeySink
Registering Uinput device
Running UinputSink command: "/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt"
Opening KeySource
Closing KeySink
Unregistering Uinput device
/bin/sh: line 1: /run/current-system/sw/bin/sleep: No such file or directory
Closing Uinput device file
kmonad: /dev/input/by-id/usb-04d9_daskeyboard-event-kbd: openFd: does not exist (No such file or directory)


Model has 162M parameters, not 125M as expected

I added this to the code
model = DDP(model, device_ids=[ddp_local_rank])
raw_model = model.module # always contains the "raw" unwrapped model
trainable_params = sum(p.numel() for p in model.parameters() if p.requires_grad)
print0(f"number of parameters: {trainable_params}")

and it prints out:
number of parameters: 162201636

checking the math, it seems right
Embedding Layer:
  Total: 50,304 × 768 = 38,633,472
Transformer Blocks
  Block:
    - Attention:
        - LinearLayers: 4 × (768 × 768) = 2,359,296
        - Lambda: 1
        Total: 2,359,296 + 1 = 2,359,297
    - MLP:
        Total: 2 × (768 × 3,072) = 4,718,592
    - Lambdas: 2
    Total: 2,359,297 + 4,718,592 + 2 = 7,077,891
  Total: 12 × 7,077,891 = 84,934,692
LM-Head:
  Total: 768 × 50,304 = 38,633,472
Total: 38,633,472 + 84,934,692 + 38,633,472 = 162,201,636

The addition of a trainable lm_head rather than sharing the same weights as the embedding layer added an extra ~40M parameters led to this increase. In order to keep 125M parameters (to match) need to go down to ~7 layers (126.8M) or 6 layers (119.7M).
In an effort to see how much impact this has, I did a run (with the unet skips) and 6 layers for 5000 steps -> step_avg time is down to 93.53 ms (due to 6 layers). However, at equal time run (~8 min) it's not getting to the same loss / keeping up with the larger model.

From X:
https://x.com/kellerjordan0/status/1856501669510688968

True, they have 162M params, but 38M of that is embedding, of which only 768 params are active per token


Preload tiles into LDS to improve performance of pointwise transposes

Fixes #3172.

@kahmed10  there's some other failures in CI with this one.

Seems to be failing test_spacetodepth_example_cpu from ONNX backend. The test says CPU but the compiled program looks to be using the GPU...

@pfultz2  Looks like in CI its still failing but on pooling for the all targets build in jenkins.
] 354/382 Test #365: test_api_custom_op_gpu ....................................................***Exception: SegFault  1.84 sec

Is this related to your remove padding from pooling PR #3423 ? Looks like some failures themselves with pooling


Create 0000-01-02-g867.md

created a branch, created a file and made a commit, and opened a pull request

created a branch, created a file and made a commit, and opened a pull request


Add example workflow for deploying remote docker image

Related to  https://github.com/dokku/dokku/issues/4296
I totally get that this is a hack/workaround, but IMO it can be a useful reference for others.
If/once https://github.com/dokku/dokku/issues/4296  is shipped we can update this example to use the new git:from-image feature.

I was testing this out today and ran into an issue with the push succeeding but reporting a failure due to shallow clone. Any ideas?
 ! [remote rejected] 3b793800bd3d7eef55100691d23fb7e04ae8f840 -> master (shallow update not allowed)
Does this have to do with the git init ... stuff somehow?

The git:from-image was shipped so this should switch to that.

Oh I was not sure how to do that from Github Actions so I thought this was doing that. Looking at the docs the commands are dokku git:from-image, I didn't see anything that shows how to then push a new release using that? I couldn't wrap my head around how git push dokku@my.dokku.me:myapp.git would work with that command

This is now implemented via git:from-image documented here as of #21.


How to use .on() and .dropped() when using a group.

I had global event listeners before adopting a group limiter.
limiter.on('dropped', (dropped) => {
    console.warn("Dropped IC request", dropped)
})

debug && limiter.on('debug', function (message, data) {
    console.log(message, data)
})
``

Now with a group limiter, how do i use this event listeners?

If i create a listener per limiter, who do I clean them up when the linter is garbage collected from the group? (or are linters not gcd?)

const group = new Bottleneck.Group( ... )

const doStuff = (id) => {
  const limiter = group.key(id)

  limiter.removeAllListeners('dropped')
  limiter.on('dropped', (dropped) => {
    console.warn("Dropped IC request", dropped)
  })

  if (debug) {
    limiter.removeAllListeners('debug')
    limiter.on('debug', function (message, data) {
      console.log(message, data)
    })
  }
}

doStuff( ... )

The Group garbage collects limiters that haven't been used in over 5 minutes. It will automatically collect all the event listeners too.

Just to clarify my understanding, what is the importance of using limiter.removeAllListeners() before registering a new event handler?

Because those event handlers might have already been registered on that limiter. In v2.2.0 I plan on adding a better way to do this kind of thing.

I'm curious how removeAllListeners will work in a highly concurrent environment where a limiter within the group is used by multiple requests at the same time.

removeAllListeners, as well as triggering events within Bottleneck is 100% synchronous so it won't have surprising side effects.

Also, just wondering if the 5 minute gc timeout is configurable. I think it's a sane value, but in my case we will have potentially 1000 group keys so I'd like to make sure we are aggressive with gc.

Yes it's configurable. You can pass the timeout option when creating a Group or call group.updateSettings({ timeout: 60000 }) to update an existing group. Look for the updateSettings() section under Group in the Readme for more information.
1000 limiters is not a problem at all, limiters are tiny and you should be able to make tens or hundreds of thousands without a problem.

Thank you. I ran some stress tests today trying to break thus library anf wass pleasantly surprised by it's durability and predictability. Great job. We will be going to production with it.

That's wonderful to hear! I'll be releasing v2.2.0 very soon, it contains improvements that came out of your questions in this Issue. I'll let you know when it's available on npm!

Thanks @SGrondin that's great news for us :)

I've just released 2.2.0. You can now do:
const group = new Bottleneck.Group( ... )

group.on('created', (limiter, key) => {
  // Preparing a limiter for use.
  // The 'created' event is triggered only once per limiter

  limiter.on('dropped', (dropped) => {
    console.warn("Dropped IC request", dropped)
  })

  if (debug) {
    limiter.on('debug', function (message, data) {
      console.log(message, data)
    })
  }
})

Enjoy!

Great addition. That is nice and logical. Thanks for the great work


What's the state of this proposal?

https://github.com/mindeavor/es-pipeline-operator/issues/33 ?

Closed in favor of #33


⚠ Bofrost.at has degraded performance

In c35d5e9, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2058 ms

Resolved: Bofrost.at performance has improved in ae91191 after 8 minutes.


[Bug] Unit test fixture generation does not implicitly cast nested struct properties

Is this a new bug in dbt-bigquery?

[X] I believe this is a new bug in dbt-bigquery
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
Unit testing models is fine at row level. But when dbt tries to create a fixture for a nested struct, it does not safe cast all the missing properties. Even the nullable properties of any struct need to be inserted manually at the test in order to make it run without errors.
Expected Behavior
When compiling unit tests, dbt's fixture generation should create safe casted nulls recursively for every missing property of nested structs.
Steps To Reproduce

Create this GBQ table:

CREATE TABLE gbq_dataset.example_table(
	id INT NOT NULL,
	element_name VARCHAR(255),
	content ARRAY<STRUCT<name VARCHAR(255), description VARCHAR(255), date TIMESTAMP>>
	PRIMARY KEY (id)
);

Create this simple dbt model:

{{
    config(materialized='table')
}}

SELECT
	*
FROM {{ source('gbq_dataset', 'example_table') }}

Create this unit_test.yml:

unit_tests:
  - name: example_model_refresh
    model: example_model
    given:
      - input: source('gbq_dataset', 'example_table')
        rows:
          - {
               id: 1,
               element_name: 'test',
               content: ['struct("John" as name)']
            }
    expect:
      rows:
          - {
               id: 1,
               element_name: 'test',
               content: ['struct("John" as name)']
            }

The resulting compiled SQL will be like this:

/* {"app": "dbt", "dbt_version": "1.8.0b1", "profile_name": "gbq_project", "target_name": "dev", "node_id": "unit_test.gbq_project.example.example_model_refresh"} */

    create or replace table `gbq_project`.`gbq_dataset`.`example_model_refresh__dbt_tmp`

    OPTIONS(
      expiration_timestamp=TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 12 hour)
    )
    as (
      select * from (

with __dbt__cte__example_table as (

-- Fixture for example_table
select safe_cast(1 as NUMERIC) as id, safe_cast('test' as STRING) as element_name,
        (select array_agg(safe_cast(i as struct<`name` string, `description` string, `date` timestamp>)) from unnest([
                struct("John" as name)
        ]) i) as content
) SELECT
	*
FROM __dbt__cte__example_table
    ) as __dbt_sbq
    where false and current_timestamp() = current_timestamp()
    limit 0

    );

The error below is shown:
Invalid cast from STRUCT<name STRING> to STRUCT<name STRING, description STRING, date TIMESTAMP> at [23:37]

Relevant log output
No response
Environment
- OS: macOS Sonoma 14.4.1
- Python: 3.12.2
- dbt-core: v1.8.0-b1
- dbt-bigquery: v1.8.0-b2

Additional Context
No response

Thanks for reporting this @edudosaara !
After getting insights from @MichelleArk, we believe we should probably document this as a known limitation, and I've opened https://github.com/dbt-labs/docs.getdbt.com/issues/5307 as a result.
All fields in a BigQuery struct need to be specified in a unit test -- it's not currently possible to use only a subset of columns in a struct.
But we agree that we'd like to support this.
To support this, it would probably take writing some struct-specific handling of missing fields in the safe_cast method.
Workaround
Include all the fields in a BigQuery struct within the unit test.


ResponseEntity mapping and decorator

Same as for RequestEntity

It is implemented by apitte/negotiation. Probably is better let it be, where is it now.


DOC: examples for special functions related to neg. binomial distribution

Reference issue
#7168
What does this implement/fix?
Examples for:
special.nbdtr
special.nbdtrc
special.nbdtri
special.nbdtrin
special.nbdtrik
Find the rendered docs here!

@j-bowhay Since you started to have a look, are you interested in doing the review?

Doesn't look right to me.
negative binomial:
k is random variable
n, p are parameters
e.g. cdf(k ; n, p)
AFAICS:
nbdtrik is the quantile function, inverse of cdf wrt k
npdtri is the inverse of cdf with respect to parameter p
e.g. pre-boost code used nbdtrik in ppf method
https://github.com/scipy/scipy/blame/v1.6.0/scipy/stats/_discrete_distns.py#L296

@melissawm : friendly ping, I think this is ready to go in :)

General question about nbdtr and friends: will these cephes based functions at some point removed/deprecated if the distributions anyway use boost?

(a comment from 3000 feet): IMO it would be  nice project to track down duplication and come up with a plan: either deprecate and remove or reimplement old names using new implementations or something. It's frankly a trifle strange to carry three separate erf implementations.

I fixed the wrong description found by @josef-pkt .
I guess that while the functions are not used by stats anymore they could be replaced by the Boost functions in future but still be available, so better to have the also documented.

IMO it would be nice project to track down duplication and come up with a plan: either deprecate and remove or reimplement old names using new implementations or something. It's frankly a trifle strange to carry three separate erf implementations.

Don't do it as long as boost still needs to fix corner cases.
statsmodels is using some scipy.special functions to avoid problems with boost versions in scipy.stats
Another problem is that the rootfinding functions (for parameters of the distribution) do not roundtrip if they are based on two different numerical approximation. Although that needed only relaxed asserts in statsmodels unit tests.
a bit related: some functions support different dtypes
e.g. norm._cdf in special does not support complex, erf does, AFAIR
I don't know about negbin in special and stats.
statsmodels does not use it much and I have not seen any problems in what we use.


Theme: no way to change log's dark blue text?

Using the Style Configurator I have switched to Deep Black, which matches what I use in Notepad++.
But I can't find any way to tweak it to get a readable log view.
This is what it looks like now:

Is there any way I can get that dark bllue color set to a different color?

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."


fix: SlugRelatedConvertedField should not convert None values

In which case it happen ? What it return ?
Can you had an unit test for that ?

In case of the related field being null, for example on a convert_type=str it converts None to "None"

I added a fix to the proto generation allowing SlugRelatedField to be used with a different source
Tests incoming

Tests are ok @AMontagu


document stage:add

A few questions regarding documentation:

How should we approach documenting dvc stage add? Duplicate most of the stuffs?
Should we remove dvc run or duplicate contents?
How about adding a deprecation warning in the docs for dvc run?

Related: https://github.com/iterative/dvc/pull/5350

I would keep for now both + note in the dvc stages add that it's available since 2.0
after the release, let's get rid of dvc run (and hide it in DVC itself)

Yeah both for now and I can worry about phasing out run later. Let's just make a separate issue for that please. I'll add both to the #2026 epic. Just please confirm stage add is officially part of the 2.0 release (I don't see it in https://github.com/iterative/dvc/issues/5367).

I don't see it in iterative/dvc#5367

Maybe it's part of what "Run" refers to?

@jorgeorpinel Good callout! It was hidden under low-level issues in iterative/dvc#5367, but it's now a separate checklist item.

OK. Added this to the docs epic.


[add-resource] New Plugin: Shortcode Modal

I've created a small plugin that allows people to easily display modal popups from some shortcodes.
GitHub page: https://github.com/marshmn/grav-plugin-shortcode-modal
Demo: https://demos.crazedbytes.net/shortcode-modal
I'd like to submit this for inclusion in GPM please.

Added to GPM.


Pipeline

Description
Adding github actions pipeline to run automated code validation on PRs
Fixes #3
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X ] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update

How Has This Been Tested?
this PR is the testing ground
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

JE suis pas sur de comprendre comment ça valide le lint et les tests? Il y a pas de fichier de pre-commit associé?

Je suis pas sur de comprendre comment ça valide le lint et les tests? Il y a pas de fichier de pre-commit associé?
Aussi dans ton pipflie la tâche test n'a rien donc aucun test n'est roulé?

J'attendais de merge ta PR #1


Spike: Get a steer on the priority between mobile v desktop

As a team we want to get input from key internal stakeholders to help decide which we start build for first - desktop browser wallet or mobile browser wallet - the assumption is that we want both ultimately, so it's not one or the other, just which one we focus on first

[x] Biz Dev and growth (Ramsey, Wayne, Lewis)
[x] Community (Daigan, Dan, Chris)
[x] Perception / Marketing (Nissa)
[x] General console direction (Matt & Dex)
[ ] Understanding of technical implications / size / complexity of the work for each direction (Emil, Botond)
[ ] Gather inputs / preferences for Ramsey and Barney to make the final call

Ramsey, Wayne, Lewis - In the diary Tues 8th PM
Matt & Dex - In the diary Tues 8th PM
Daigan, Dan and Nissa (Chris away) - In the diary Weds 9th PM

The conclusion of the spike from Biz Dev and Growth, Community, Perception and Console and Token leads is that we would prioritise:
Desktop wallet browser extension on Chrome
https://miro.com/app/board/uXjVPUiQ2AE=/?moveToWidget=3458764538233116176&cot=14


Removes the always empty first entry of the visitor overview

(the graph always have a start point at zero)

1. Why is this change necessary?
The "Visitors online" statistics on the dashboard always shows the first entry in the graph with zero visitors.
Example of the current JSON result (data shortened):
"data":{"customers":[…],"visitors":[[],{"timestamp":1606518000,"date":"28.11.2020","visitors":"3066"},…],"currentUsers":"12"}
Explanation: First entry of Visitors is an empty array and not an valid object.
2. What does this change do, exactly?
The controller method was adapted so that the first entry - the empty array - is no longer generated.
Example of the corrected JSON result (data shortened):
"data":{"customers":[…],"visitors":[{"timestamp":1606518000,"date":"28.11.2020","visitors":"3066"},…],"currentUsers":"12"}
3. Describe each step to reproduce the issue or behaviour.
Activate the dashboard widget "Visitors online". Regardless of whether the shop had visitors or not, the first point is always displayed with zero hits.
4. Please link to the relevant issues (if any).
/
5. Which documentation changes (if any) need to be made because of this PR?
I haven't found any part of the documentation that needs to be adjusted.
6. Checklist

[ ] I have written tests and verified that they fail without my change
[ ] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

7. Remarks

I couldn't find a suitable ticket in the tracker.
I have no idea what "I have squashed any insignificant commits" means.
I didn't write a test for the one-liner, but I tested in my shops and a clean shopware installation, with no problems.
I have not made an entry in upgrade.md.
I tried to follow the coding guidelines.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-26038
Please use this issue to track the state of your pull request.

Thanks for your Contribution! 💙


sync-exec; 1 sync-exec vulnerability found in package-lock.json

npm list sync-exec
este@ /Users/steida/dev/este-typescript
└─┬<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └─┬<EMAIL_ADDRESS>      └──<EMAIL_ADDRESS>
Should not be used imho.

There is a regression in windows for npm-run (https://github.com/prisma/prisma/pull/3517). We can upgrade this after this one is merged https://github.com/timoxley/npm-run/pull/21
Or break the build for windows temporarily. Can you please confirm what the vulnerability is exactly and does it also affect CLI tools?

I think it's not severe, because it's for local web development, but I am not an expert. I would wait, this issue can help the others meanwhile.

The regression is still around.  Any ETA on fixing this?
$ npm list sync-exec
<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └─┬<EMAIL_ADDRESS>      └──<EMAIL_ADDRESS>


Prediction of iRT values

Hi,
as I understand, the normalized retention time that is given by DeepRTplus is not the same as the indexed retention time (iRTs).
It would be great if DeepRTplus could predict iRT values as well, as iRT values are a standard today in terms of normalized retention times. Just a thought...
Best,
Marc

Good suggestion. The output retention time of DeepRT is determined by the training data one uses, and here is one dataset from the paper that is normalized by the iRT Kit, so I think if one uses this data to train DeepRT, what is given is exactly the normalized iRT value.


"Live Share: Sign In" command not recognized.

Issue Type: Bug
I have installed VS Live Share. When I try sign in with the command "Live Share: Sign In", VSC is not identifying the command. I also see a notification on the bottom right on required dependencies not installed for Live Share to work.
Extension version: 0.3.295
VS Code version: Code 1.24.1 (24f62626b222e9a8313213fb64b10d741a326288, 2018-06-13T17:51:32.889Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: disabled_softwarevideo_decode: enabledvideo_encode: enabledvpx_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
7.75GB (1.58GB free)

Process Argv
C:\Program Files\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Closing this issue as resolved. Please re-open it if you continue to encounter any problems. Thanks!


Add support for react fragments

Hi,
Do you think it would be possible to add support for react fragment short syntax (<> </>)?

There's probably going to be a few scenarios to handle. For now, I've pushed an experimental branch, react-fragment-support. With this example:
class Columns extends React.Component {
  render() {
    return (
      <>
        Hello
        World
      </>
    );
  }
}

Going in the opening brackets, entering insert mode with i and typing foobar ought to change the closing tag as well.
One problem is that this doesn't work when entering insert mode with a. This seems to be a general problem, so something I need to take a look at.
What other cases do you think should be handled? I'm thinking that moving from a named component to an "anonymous" one makes sense, so maybe dt> should also remove the closing tag. Does this make sense and can you think of other scenarios? How do you usually change fragments with this short syntax?

Well done for your work!
The two use cases are:

jsx tag -> fragment
fragment -> jsx tag

So I believe adding dt> to remove the closing tag would be nice to have

I've added support for deletion with d to the branch -- it should also work for stuff like dw, di> etc. Really, all d motions that change the tag. The logic is slightly different from what the plugin usually does, so please try it out for a while, to see if there's any issues. The tests are passing, but a lot of things could go wrong that I haven't thought of :).

Great. I'll start to use it and I'll let you know if I find any bug!

I found one small bug. If there is no tag between the fragment, changing the opening fragment to a named tagged doesn't change the closing fragment.
It works fine if there's already an element between the fragments, and changing the closing fragment to an named has the expected effect.
There's not many use cases in React where you would only return a fragment without anything inside. But I use some shortcuts to generate empty react components, like this:
function MyComponent() {
   return (
       <>

       </>
   )
}

Changing the name of fragments without children would make sense in this case

Good catch, I see that one of my regexes wasn't quite working the way I expected it to work -- I've pushed a fix.

I haven't had any problem since you pushed the fix. I think you can merge!


[Suggestion] If you enable github pages, you can host the demos directly from the repo.

It's a few clicks to set up...
I did it here: https://github.com/manthrax/THREE-CSGMesh
https://pages.github.com/

The reason I haven't done so is to avoid loading any meshes into the repo, first they can be quite large. Plus there are a few things I use that are copyrighted, so I dont want this project to get in trouble by distributing that content. I setup a separate repo on my personal account to hold the mesh data that people need to download to get some of the demo's working. if I get a complaint or it gets taken down its no big deal.
At some point l really need to find good free opensource models I can use to replace some of the copyrighted stuff, plus find a way to load them in externally.
But my priority for the github pages is to find a good & easy setup to generate a documentation site so people can look up the API of all the objects.

Ahh gotcha. Makes sense. Could you make the demos just using skeletons, or maybe using a mixamo  rig?

Maybe this week I'll setup a new repo called ossos_demo and try to get as many examples & demos working there without any copywritten content. From there I have to freedom to trash it & restart it without polluting the ossos repo.

you can use git submodule


refactor: make collections release ready

This PR resolves []
Description
Makes collection ready for release.
After checking in with Jordan Huelskamp we decided to remove the header image from the collection header to avoid duplication (change hidden behind a FF) and to move description back to the header.
Now artworks is the default tab.

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

make collections release ready - gkartalis

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against 8e09797aa668b27c2c4068789298327e4a080f47


fixed "BadRequest: timestamp too old" error

fix: Pushing entry fails if timestamp nanoseconds should have a leading zero

fixed unit tests

@SerIgel
A new version with your changes has now been published nuget.org. Once again, thanks for your contribution.


Retrieve auto-imported component / function names

Describe the feature
Hi, I'm not sure if this is a feature request or just a question, but I didn't find any related issues / docs.
Context:
I have an ESLint configuration and it contains rules no-undef and vue/no-undef-components that report undeclared functions/variables/components.

Nuxt automatically imports many things and I like it, I don't want to import them explicitly.
This is slightly related issue, but I don't need to import them explicitly, I need an option to retrieve a names of all auto-imported components/functions to declare them as global in .eslintrc file.
My current workaround is define them manually and declare as global like that:

Although this is a working solution, there are some limitations:

It needs to be filled manually
It doesn't update automatically if I register a new module that adds a global component (such as @nuxt/image) or new composables (such as @vueuse/nuxt)
It doesn't update if I set custom dirs to import in nuxt.config.ts via imports.dirs and create a new file inside it.
It doesn't update if new release of Vue/Nuxt includes a new features

So, a lot of manual work every time something was changed.
This can be done using custom module, but I believe it should be done by Nuxt itself.
Feature request:
Expose an auto-imported functions / components names to allow import them and mark as global in .eslintrc

Additional info
I know it's recommended to disable no-undef for TypeScript at all, but currently, as far I know, there is no robust way to separate <script lang="ts"> and <script> in ESLint confgurations for .vue files.
Also Nuxt isn't only TypeScript framework. and global components still needs to be configured
Additional information

[X] Would you be willing to help implement this feature?
[X] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

We discussed this and think a good solution would be to write a file with components metadata based on setting an option in nuxt.config (maybe components.generateMetadata). However, note that we wouldn't recommend using eslint without TypeScript integration as there are likely to be other issues as well if it is not aware of the full Nuxt TS environment.

I don't know the relationship between nuxt and this plugin here https://github.com/antfu/unplugin-auto-import
But if we add this config below on nuxt import configs will solve the globals issues
  eslintrc: {
    enabled: false, // If we set this true is going to generate a file with all eslint globals
    filepath: './.eslintrc-auto-import.json',
    globalsPropValue: true,
  },


Include documentation about how to set both custom messages

@larrymjordan recently introduced custom message for both errors, can we document this in the readme ?

@larrymjordan would you be available to do this one ?

sure, i would be.

:+1: covered by #18 thanks @larrymjordan


Seamless JS script inline not working

Seamless version 0.8.0 (latest on PyPI).
I'm trying to derive the Page class like this:
from pathlib import Path

from seamless.components import Page
from seamless.html import Script

HERE = Path(__file__).parent.resolve()

with open(HERE / "seamless.js") as sjs:
  SEAMLESS_JS = sjs.read()

class MyPage(Page):
  def head(self):
    yield from super().head()
    yield Script()(SEAMLESS_JS)

When using the MyPage class, server side callbacks (such as Button(on_click=)) don't work.
However, if I pass the script with src and with defer, everything works fine:
yield Script(src=str("/seamless.js"), defer=True)

But this requires that I either have a StaticFiles middleware or have a dedicated route just for /seamless.js.
I suspect it's because the seamless JS script transforms seamless elements right when it's loaded rather than waiting for the entire page to load.
Therefore, I think it might be a good idea to put in the JS script that it'll only transform the seamless elements after the entire document is loaded.

Since you put the script in the head element, the code will run before the content is loaded. The Seamless instance should be created after the content is loaded. You can either put the script in the bottom of the body or you can create the instance after the DOMContentLoaded is fired.

Okay, I found a few solutions.
One is to have the script inline and add another script that only creates the Seamless instance after the document finished loading.
<script>
// Seamless index.js content here
</script>

<script>
document.addEventListener("DOMContentLoaded", () => {
  new Seamless.default();
});
</script>

Another option is to use the latest version from jsdelivr with defer.
<script
<EMAIL_ADDRESS>  defer>
</script>


the new protobuf protocol should have good performance now

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
For discussion:
We want to get rid of the "extra" docsum fetching protocol.  From the code it looks like the default is to use the new protobuf protocol always, but I don't know if some customers override these defaults, and (if so) if there's any performance gain to get from it.
@baldersheim please review
@havardpe

Merging now to see if any performance tests pick it up.


(BKR-702) added platform-specific tag confines

failures unrelated to change

@puppetlabs-jenkins retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/2264/
Test FAILed.

@puppetlabs-jenkins retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/2268/
Test PASSed.

ready for a look @puppetlabs/beaker!
/cc @joshcooper @LuvCurves

:+1:

:+1:


Ready for use?

First, thanks for creating this plugin. It's a great idea to be able to throw a simple URL into a post and have it turn into a proper embed. WordPress solves this problem nicely already, and it's great to have something similar in Gatsby.
Is the plugin ready for use? I saw something in another thread about it being ready for alpha in a week or two (which was ~4 weeks ago I think). Is it ready for testing now?
I saw the issue around caching in #25. I didn't understand if that issue is a show stopper or not. Did you find a workaround? Anything I could do to help out?

Hi, thanks for your interest.
It is ready for testing, but I am awaiting a fix for this bug https://github.com/gatsbyjs/gatsby/issues/8788 meaning you have to use a gatsby version between 2.0.0 and 2.0.17. Not above.
To help out right now would be to test it and report back if you have any problems.

Aha, I feared that the Gatsby issue might be a blocker. I think I'm already running a later version. :-( I've posted a follow up on that issue to see where it's at, maybe I can help out there to get it moving.


Add an asMethodName helper for Darwin codegen.

Codecov Report

Merging #1154 (f493fd0) into master (cca76eb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1154   +/-   ##
=======================================
  Coverage   65.16%   65.16%
=======================================
  Files         170      170
  Lines       18232    18232
  Branches     3927     3927
=======================================
  Hits        11881    11881
  Misses       6351     6351


chore: neutral naming for synthetics

What does this pull request do?
Neutral naming
Requires https://github.com/elastic/elastic-package/pull/652

:grey_exclamation: Build Aborted

Either there was a build timeout or someone aborted the build.

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-01-24T14:12:32.865+0000

Duration: 28 min 4 sec

Commit: deac38b1d8f52bf2a290ca01b0e29abf8f903b85

Test stats :test_tube:

Test
Results

Failed
0

Passed
142

Skipped
2

Total
144

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.


Is it possible to search with prefixes?

Hello!
First of all, great project. It works really well. However, I have a use case in which I need to search phrases with the last word partially spelled out. For example, I want "search with pref" to match "Is it possible to search with prefixes". I tried using a BooleanQuery to combine a PhraseQuery on the first n-1 terms and a RegexQuery(".*{}.*") on the last term (with OR). But that doesn't enforce that the regex term is right after the phrase result terms. I was hoping scoring to do something with that, but the results have all a score of 2.
Any ideas?
Thanks!

There's nothing off the shelf, but in general it should be feasible.
If you want to implement it, I would start from phrase_query.


Tracking branch for fixing props

We've received a little help from our friends ^_^
https://github.com/pedronauck/docz/issues/777#issuecomment-488740538

No breaking changes; just refactoring and bumping docz version so that automatic prop docs are generated 🎉


In case we want to use an object not a class

What exactly does this patch do?
Do you have an example of something that doesn't work without it?

If i give it just an object doesn't work because has no prototype:
var MyManager = { foo : function() { } };
eventEmitter.inject(MyManager);

Fair enough. Could you add a unit test?

The tests pushed

Great, merging. Thanks a lot!

Released<EMAIL_ADDRESS>


Bug in overflow detection when parsing integers

                    // multiply last value by ten and add the new digit
                    auto temp = value * 10 + *curptr - '0';

                    // test for overflow
                    if (temp < value || temp > max)
                    {
                        // overflow
                        type = value_t::number_float;
                    }

The temp < value above will not detect overflow for some values, as we're not just adding a small value, but also multiplying by 10, so this may overflow couple of times over and end-up satisfying temp >= value. As for temp > max - it looks to me that it will never happen unless the width of temp is greater than that of max
Try round-tripping<PHONE_NUMBER>63385964490

Merged #390.


Bug Menu with SkQuery

Hello, I found a problem to correct, when I create a menu and I'm creative and I open the menu and quit the menu quickly, it gives me an error and in addition it gives me the menu items (not everything and some items).
Here I wanted to tell you the problem by hoping that it will not be complicated to correct it...
Version Spigot: 1.16.4
Version Skript: 2.5.3
Version SkQuery: 4.1.4
List of plugins: Skript, SkQuery, Skungee, SkRayfall, SkBee and Skellett
Bug report: https://pastebin.com/UMCuatFf
Code: https://pastebin.com/SrUaGPND

The error happens because you're formatting a slot that is greater than the inventory size.

The error happens because you're formatting a slot that is greater than the inventory size.


Xgboost binary format compatibility

In #1215, changes to the xgboost binary format break integration with the shap library and lead users to downgrade xgboost or create other hack solutions.
Xgboost makes no promises about the consistency of its binary format, except that it may save and load its own models, so this is likely to occur again in future xgboost releases.
I propose that shap migrates to the newer json based serialisation format that has better compatibility guarantees: https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html (cc the author of this feature @trivialfis)
After migration I propose adding shap tests to xgboost CI in order to prevent this from our end.

I think this would be great. Currently, there are some new features that are not usable due to using the old binary format, for example categorical features (see #2662 )

This seems even more important given that Xgboost plans to drop support from old binary format (see: here and here ).
It seems that SHAP used JSON before but it was reverted by @slundberg  here due to conversion issues. Maybe the newer UBJSON format of Xgboost can help here?

Resolved via #3345


Referencing illuminate form of code base

Ticket: add_post_method
Purpose of Change:
Description of Change:
Tags:
Conflicts Resolved:

:+1:


Data Table Pagination Props page-count is always undefined

TuSimple/naive-ui version (版本)
2.16.2
Vue version (Vue 版本)
3.2.2
Browser and its version (浏览器及其版本)
any
System and its version (系统及其版本)
any
Node version (Node 版本)
any
Reappearance link (重现链接)
https://codesandbox.io/s/sad-bash-ply87?file=/src/App.vue
Reappearance steps (重现步骤)
1.set the pagination prop for data table
2.set the page-count prop for pagination,like
{
page:1,
pageCount:100
}
3.the pagination component display only one page
Expected results (期望的结果)
fix the bug
Actual results (实际的结果)
show all the pages if the pageCount prop is set to the data table pagination prop
Remarks (补充说明)
在data-table组件里给pagination设置pageCount总页数,实际渲染出来的页码永远只有第1页

I check the source code of data-table，seems the problem is caused by this part，you see the pageCount is always undefined：
file：use-table-data.ts
line：342-345，
code：
pageCount:
mergedItemCountRef.value === undefined
? mergedPageCountRef.value
: undefined,

If you want pageCount to take effect, then you need to set the value of pageSize, otherwise the default is 10, and in non-remote, table will calculate the length of data by default for paging calculation. like this

If you want pageCount to take effect, then you need to set the value of pageSize, otherwise the default is 10, and in non-remote, table will calculate the length of data by default for paging calculation. like this

Thanks for your answer!I understand that the data table pagination will be effected by both the data length and page size,however,please consider the situation,when we fetch data from the server with pagination parameters ,that means,the whole data length should be a huge number,even over than 100000 [ just an example  :) ],so the server will only send back the current page data which length will be 10 (if the pagination parameter page-size is 10 ),so in this situation,let the data length control the page count is not reasonable, so the page count prop of pagination should take in charge of page count control.
In a word ,if the prop page count is provided,this prop should be in the first priority.

If you want pageCount to take effect, then you need to set the value of pageSize, otherwise the default is 10, and in non-remote, table will calculate the length of data by default for paging calculation. like this

Thanks for your reply!I understand that if I need to control the data table pagination without auto calculating page count the prop remote = true should be set.Sorry for missing the remote prop in the document.


Missing Beat Worker in Procfile

What happened?
When deploying the app to Production in Heroku, the Periodic Tasks are not being run as per the schedule.
In the Admin panel for Periodic Tasks, you can create a Task, and manually run it by selecting it and run it using the interface. However the Task will not automatically run as per the schedule selected.
The procfile for the worker right now indicates:
worker: celery worker --app=config.celery_app --loglevel=info
This worker will only execute a task, will not schedule it, since it requires either a beat worker or add the flag -B to the celery worker.
The procfile for the worker should be then*:
worker: celery worker --app=config.celery_app --loglevel=info -B

It would be better to set up a separate worker for beat, but it consumes a worker, and only 2 are free in the free account of Heroku.
For a paid account it would be better to set it up as:
worker: celery worker --app=config.celery_app --loglevel=info
beat: celery --app=config.celery_app beat

What should've happened instead?
The expected behaviour would be the Task running as per the schedule once it is set up and the starting date is reached
Steps to reproduce
The log of Heroku shows how the worker is waiting for the task, but it doesn't take it from the schedule.
$ heroku logs -t -p worker

2020-04-07T12:45:19.266417+00:00 app[worker.1]: -------------- celery@dbb720c1-db2e-42ad-bfde-690a78d49cea v4.4.0 (cliffs)
2020-04-07T12:45:19.266418+00:00 app[worker.1]: --- ***** -----
2020-04-07T12:45:19.266418+00:00 app[worker.1]: -- ******* ---- Linux-4.4.0-1062-aws-x86_64-with-debian-buster-sid 2020-04-07 12:45:19
2020-04-07T12:45:19.266418+00:00 app[worker.1]: - *** --- * ---
2020-04-07T12:45:19.266419+00:00 app[worker.1]: - ** ---------- [config]
2020-04-07T12:45:19.266423+00:00 app[worker.1]: - ** ---------- .> app:         test_project:0x7f84a9ccfd90
2020-04-07T12:45:19.266424+00:00 app[worker.1]: - ** ---------- .> transport:   redis://redistogo:**@pike.redistogo.com:10773//
2020-04-07T12:45:19.266424+00:00 app[worker.1]: - ** ---------- .> results:     redis://redistogo:**@pike.redistogo.com:10773/
2020-04-07T12:45:19.266425+00:00 app[worker.1]: - *** --- * --- .> concurrency: 8 (prefork)
2020-04-07T12:45:19.266425+00:00 app[worker.1]: -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
2020-04-07T12:45:19.266425+00:00 app[worker.1]: --- ***** -----
2020-04-07T12:45:19.266426+00:00 app[worker.1]: -------------- [queues]
2020-04-07T12:45:19.266426+00:00 app[worker.1]: .> celery           exchange=celery(direct) key=celery
2020-04-07T12:45:19.266426+00:00 app[worker.1]:
2020-04-07T12:45:19.266426+00:00 app[worker.1]:
2020-04-07T12:45:19.266427+00:00 app[worker.1]: [tasks]
2020-04-07T12:45:19.266427+00:00 app[worker.1]: . test_project.users.tasks.get_users_count
2020-04-07T12:45:19.266424+00:00 app[worker.1]: - ** ---------- .> results:     redis://redistogo:**@pike.redistogo.com:10773/
2020-04-07T12:45:19.266425+00:00 app[worker.1]: - *** --- * --- .> concurrency: 8 (prefork)
2020-04-07T12:45:19.266425+00:00 app[worker.1]: -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
2020-04-07T12:45:19.266425+00:00 app[worker.1]: --- ***** -----
2020-04-07T12:45:19.266426+00:00 app[worker.1]: -------------- [queues]
2020-04-07T12:45:19.266426+00:00 app[worker.1]: .> celery           exchange=celery(direct) key=celery
2020-04-07T12:45:19.266426+00:00 app[worker.1]:
2020-04-07T12:45:19.266426+00:00 app[worker.1]:
2020-04-07T12:45:19.266427+00:00 app[worker.1]: [tasks]
2020-04-07T12:45:19.266427+00:00 app[worker.1]: . test_project.users.tasks.get_users_count
2020-04-07T12:45:19.266427+00:00 app[worker.1]:
2020-04-07T12:45:20.494100+00:00 app[worker.1]: [2020-04-07 12:45:20,492: INFO/MainProcess] Connected to redis://redistogo:**@pike.redistogo.com:10773//
2020-04-07T12:45:20.534098+00:00 app[worker.1]: [2020-04-07 12:45:20,533: INFO/MainProcess] mingle: searching for neighbors
2020-04-07T12:45:21.626434+00:00 app[worker.1]: [2020-04-07 12:45:21,626: INFO/MainProcess] mingle: all alone
2020-04-07T12:45:21.782799+00:00 app[worker.1]: [2020-04-07 12:45:21,782: INFO/MainProcess] celery@dbb720c1-db2e-42ad-bfde-690a78d49cea ready.

When did you generate the project? It was missing for a while, but we recently fixed it (on the 3rd of March):
https://github.com/pydanny/cookiecutter-django/blob/3d4f530eca43f5b53d6c08217db1db5f9f006820/{{cookiecutter.project_slug}}/Procfile#L5

I generated the projects some months ago! So it is solved! :)
Just one comment.
With a separate line for the best worker it is required 3 workers to run an app in Heroku. However there are only 3 free.
There is an alternative using one single celery worker adding the flag -B.
The pro file would be like these:
worker: celery worker --app=config.celery_app --loglevel=info -B
Thank you for your answer!

AFAIK, it's not recommended to run the celery beat like this on production.
One may be ok to run it on the worker process while they're experimenting, but the Heroku setup we generate is meant to be production ready, so we should stick with the current setup, even though it's not running in the free tier.
Thanks for the clarifications, closing this as there is no action on our end.


(WIP)(BOLT-907) Add ruby task helper library

This adds a new task helper library. It wraps task content in a run() function which parses the task input, returns errors for unhandled exceptions, outputs JSON, and makes testing tasks easier.

This is going to need spec tests and some gems/rake setup to be able to ship as a module.

Ready for re-review

Pinging @nicklewis and @donoghuc

I rewrote my floaty task to use the helper and this is what I came up with:
#!/usr/bin/env ruby

require_relative '../../ruby_task_helper/lib/task_helper'
require 'open3'

class FloatyTask < TaskHelper
  def task(platform: nil, count: 1, **kwargs)
    stdout, stderr, status = Open3.capture3('floaty', 'get', "#{platform}=#{count}", '--json')

    if status != 0
      raise TaskHelper::Error.new("Failed to execute floaty: #{stderr}", 'execution-error', exitcode: status.exitstatus)
    end

    nodes = Array(JSON.parse(stdout)[platform])
    {nodes: nodes}
  end
end

if __FILE__ == $0
  FloatyTask.run
end

Woo! That seems like approximately what we want?


Increment build number (fixes #1)

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

Oh, please use a fork when working on feedstocks! You may have just inadvertently pushed a package with your changes.

I've hit rerun on azure.

Oh, please use a fork when working on feedstocks! You may have just inadvertently pushed a package with your changes.

 I'm sorry, I thought of changing branches and the PR but not the fork

Pretty sure we've all done this :)

Ok. @chrisburr on the chat said that it might have been a behind-the-scenes errors. Does your rerun should bypass that?

I hope so


How to make a smooth kernel in Convolution Neural Networks?

Hello everyone,
My datasets is MNIST, I used the CNN algorithm to practice ML.
And I found the reference tutorial, page 6 and 7.

I guess the default kernel is all '1' instances in a matrix. How to make the smoothly kernel like above slide.
This is the MXNet code with R.
mx.symbol.Convolution(data=data, kernel=c(5,5), num_filter=20)

Best,
Salmon.

you can init the kernel of convolution manually. And keep it invariant during the train.

@zhangchen-qinyinghua  thanks for your reply. How could I set the initial kernel in MXNet? I didn't find it in document.

In python, I think it should be write in this way but I don't test yet. This is just a pseudo code.
# real param
data_nd = ...
w_np = np.ones((3, 3)).reshape((1, 1, 3, 3))
w_nd = mx.nd.array(w_np)
# symbol
data = mx.sym.Variable("data")
weight = mx.sym.Variable("weight")
conv = mx.symbol.Convolution(data=data, weight=weight, no_bias=True, kernel=(3,3), num_filter=1, num_group=3)
# note cudnn doesn't support group
# alternative: use mx.sym.SplitChannel
# bind
executor = conv.bind(ctx=mx.cpu(), args={"data":data_nd, "weight": w_nd}, args_grad=None, reqs=None)


Add pdal to comparisons

Closes #23

Includes some additional fixups:

Adds download script for laz files
Adds a requirements file for comparison dependencies
Does some minor, non-functional cleanups to the comparisons (e.g. removing unused assignments)

I ran the comparisons locally, and my times were much slower than was is currently contained in the README, so I'm guessing that the comparisons were originally run on some heavier metal than my little laptop. As such, I have not updated the table, but will leave that to ~@evetion~ @hugoledoux .
Here's a couple of the benchmarks from a local run:

library
random_10k
random_50k
dem.tiff
LAZ_2M
LAZ_33M

startinpy
0.038
0.447
1.040
9.243
151.183

triangle
0.011
0.039
0.371
1.910
37.363

pdal
0.009
0.031
0.166
3.233
85.006

@gadomski Did you mean to ping me? I'm missing the context here.

I had never realised that PDAL contains a Delaunay triangulator, and that the code is Delaunator written in CPP. Many thanks for pointing this out!
So you editor makes a lot of small changes to my files, so I took the pdal function and added it to my script. And I cleaned, sorry it was indeed a small mess with old imports and no download and no requirements.txt.
Now it's okay, and I pushed to master.
Your computer is indeed slower than mine: what do OS do you use actually? I'm on macOS, M3 Pro and 36GB of RAM.
The results I obtained are somewhat the same proportions as yours, except the GeoTIFF files I get nearly 30s and you get 0.166s... I checked the code, and I don't see what is wrong or what could happen. Any ideas?

@gadomski Did you mean to ping me? I'm missing the context here.

Nope, wrong @, many apologies.

So you editor makes a lot of small changes to my files

Apologies for that, that's my fault.

Now it's okay, and I pushed to master.

Ok, I'll close this PR as Overcome By Events.

what OS do you use actually? I'm on macOS, M3 Pro and 36GB of RAM.

Mac, 2 GHz Quad-Core Intel Core i5, 16GB RAM ... so smol :-).

GeoTIFF files I get nearly 30s and you get 0.166s... I checked the code, and I don't see what is wrong or what could happen. Any ideas?

That is surprising, and I don't have any immediate thoughts, though I can hopefully take a look today.


UriStat is not working with pinpoint-hbase2-collector-boot-2.5.2.jar

What version of pinpoint are you using?
pinpoint-hbase2-collector-boot-2.5.2.jar
Describe the bug
uriStat is not working
What did you do to trigger the bug?
Steps to reproduce, for example:

I installed both kafka and pinot, and finished creating topics and tables.
Collector takes no action after receiving uristat information. (does EmptyAgentUriStatService)

Expected behavior
Increase kafka offset
Screenshots
N/A
Logs
pinpoint-collector.log
08-02 07:52:17.017 [           main] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner   : Identified candidate component class: URL [jar:file:/software/pinpoint/collector/package/pinpoint-hbase2-collector-boot-2.5.2_origin.jar!/BOOT-INF/lib/pinpoint-collector-2.5.2.jar!/com/navercorp/pinpoint/collector/service/EmptyAgentUriStatService.class]

...

08-02 07:52:22.022 [           main] DEBUG o.s.b.f.s.DefaultListableBeanFactory     : Creating shared instance of singleton bean 'emptyAgentUriStatService'
08-02 07:52:22.022 [           main] DEBUG o.s.b.f.s.DefaultListableBeanFactory     : Autowiring by type from bean name 'agentUriMetricHandler' via constructor to bean named 'collectorConfiguration'
08-02 07:52:22.022 [           main] DEBUG o.s.b.f.s.DefaultListableBeanFactory     : Autowiring by type from bean name 'agentUriMetricHandler' via constructor to bean named 'grpcAgentUriStatMapper'
08-02 07:52:22.022 [           main] DEBUG o.s.b.f.s.DefaultListableBeanFactory     : Autowiring by type from bean name 'agentUriMetricHandler' via constructor to bean named 'emptyAgentUriStatService'

...

   EmptyAgentUriStatService matched:
      - @ConditionalOnMissingBean (types: com.navercorp.pinpoint.collector.service.AgentUriStatService ignored: com.navercorp.pinpoint.collector.service.EmptyAgentUriStatService; SearchStrategy: all) did not find any beans (OnBeanCondition)

...

08-02 07:52:37.037 [pcStat-Worker-2] DEBUG c.n.p.c.s.EmptyAgentUriStatService       : save AgentUriStatBo{serviceName='', applicationName=dev_myAgent, agentId='dev_myAgent_02', bucketVersion=0, eachUriStatBoList=[EachUriStatBo{, uri='/api/v1/aaa/bbb/ccc/ddd/eee', totalHistogram=UriStatHistogram{total=19, max=8, timestampHistogram=[3, 0, 0, 0, 0, 0, 0, 0]}, failedHistogram=null}]}

Additional context
The rest of my settings are below.
start.sh
#!/usr/bin/env bash
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-<IP_ADDRESS>.8-2.el7_9.x86_64
export PATH=$JAVA_HOME/bin:$PATH

nohup java \
-Xms2G -Xmx2G -XX:+UseG1GC \
-Dpinpoint.collector.type=BASIC \
-Dpinpoint.collector.config.location=/software/pinpoint/collector/bin/pinpoint-collector.properties \
-Dlogging.file.path=/logs/pinpoint/collector \
-Dlogging.config=file:/software/pinpoint/collector/bin/log4j2.xml \
-jar /software/pinpoint/collector/server --pinpoint.collector.type=BASIC 1> /dev/null 2>&1 &

PS=`ps -ef | grep pinpoint\/collector | grep -v grep`
echo "${PS}"

software/pinpoint/collector/bin/pinpoint-collector.properties
server.port=18081

pinpoint.zookeeper.address=localhost:2181
pinpoint.collector.type=BASIC
pinpoint.metric.kafka.bootstrap.servers=localhost:19092

collector.scatter.serverside-scan=v2
collector.stat.uri=true

kafka.uri.topic=url-stat

Installation was done according to this manual.
https://pinpoint-apm.gitbook.io/pinpoint/v/v2.5.2/documents/uri_statistics

I built uristat and metric-module with hbase2 version and succeeded in running them.
I want you to include the jar for running the hbase2 version including the uristat function at the time of release.


proof: Avoid all reallocations

This change introduces pre-allocation into the Proof generation types, thereby
reducing the total number of slice allocations to one. A new helper for computing
the compact range size compact.RangeSize is introduced, and the signature of
the previous compact.RangeNodes now requires providing a slice to append the
result to.

I recommend reviewing commit by commit.

Codecov Report

Merging #23 (bb31107) into main (f40960a) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   96.36%   96.44%   +0.08%
==========================================
  Files           6        6
  Lines         385      394       +9
==========================================
+ Hits          371      380       +9
  Misses         12       12
  Partials        2        2

Impacted Files
Coverage Δ

compact/nodes.go
78.57% <100.00%> (+1.64%)
:arrow_up:

compact/range.go
100.00% <100.00%> (ø)

proof/proof.go
97.14% <100.00%> (+0.20%)
: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 cfdaeb1...bb31107. Read the comment docs.


Glide not cropping or scaling image

Hi @trntv ,
I have an image that is 1280 x 300 but I want to crop and use only the leftmost 400 pixels and retain the same height so that the final image becomes 400 x 300 without distortion so I setup the Glide URL as follows but the dimensions didn't change at all, what am I doing wrong?
        $imageUrl = Yii::$app->glide->createSignedUrl([
            'glide/index',
            'path' => $model->image_path,
            'w' => 400,
            'h' => 300,
            'fit' => 'fill'
        ], true);

I also tried 'fit' => 'crop', none worked
Thanks for your help.
Adam

Hi @trntv
I can confirm that this works. It took a while to figure out glide configuration relative to how my webserver / environment is setup. Thanks