Add Article translations infrastructure

[ ] Add language select to Article admin form
[ ] List of languages should be pulled from list config/locales/*.ymlfiles at boot time
[ ] Add name: English, etc to all config/locales/*.yml files
[ ] Articles get their own slug (in their own language)
[ ] Article translations should all link to each other in the Article footer

[ ] First iteration can be all non-EN translations linked to the EN translation of an Article
[ ] Preferred: an article can be written in any language and translated to any language, linked horizontally to each other. (That'd allow an article to be written and published in Spanish or German or whatever first, then translated to English whenever possible. That way there's less preference or primaryness of language.)

Upon further consideration, after conversation with @evanphx, I think that NOT having any lang bit in the URL is the way to go. Only using the session instead.
Let's talk more about this sometime in phone/vid and capture the decision to here.


Development

Fix bug when the fullscreen button is hidden with config hideIcons, toolbarButton is undefined

This PR is for merging the development branch into the master branch. This only occurs when there's a new release.

Not sure to understand.
Sorry, it's my first PR ever in github. I understood that I did not push the right way?
How can I share the small fix I made?

You'll need to fork this repository to your account, make the changes there, then merge your fork into the development branch of this repository.


Improving 'contact us' page

I want to improve the contact us page by adding more styling and fields and improving the UI.

I want to improve the contact us page by adding more styling and fields and improving the UI.

Kindly check the announcement in discussion tab.

Hello, everyone! 👋
I am temporarily pausing the acceptance of new Issues and Pull Requests as I focus on the server side of the project. During this period, my priority will be improving the backend, performance,
While I'm excited about the upcoming changes and enhancements, I kindly ask for your patience and understanding as I work behind the scenes.
Please stay tuned for updates—once this phase is complete, I'll reopen the repository for contributions and feedback.
Thank you for your support! 🙏


Code in init.py is not tracked

Create a project where there is some logic inside __init__.py file. Add a test for that logic. Run pytes_rts_init. Change the logic breaking the tests. Run pytest_rts -- notice that no tests are run. Looking into mapping.db one can notice that __init__.py is not in the src_file table.

Minimal example:
# setup.py
from setuptools import setup, find_packages
setup(
    name="example",
    version="0.0.1",
    packages=find_packages(),
)

# example/__init__.py
def one():
    return 1

# example/two.py
def two():
    return 2

# tests/test_one_two.py
from example import one
from example.two import two

def test_one():
    assert one() == 1

def test_two():
    assert two() == 2


OC-258_Migrate_microgrids_functionality_to_new_message_processing_solution

All is well.

All is well.

 All committers of the pull request should sign our Contributor License Agreement in order to get your pull request merged.1 out of 2 committers have signed the CLA.:white_check_mark: riannefijn:x: web-flow


Increases gen_server:call timeout to :infinity

Increases timeout from 5000ms to :infinity. In
environments with a low pool size, e.g. CI workers
and lesser powered laptops, test failures due to a
delay > 5000ms in checking out a worker from the
pool frequently occur. As ExUnit has a default max
time for a test case to complete (60_000ms), it
makes sense to avoid these failures by allowing
a test to block until a worker is checked back in
to the pool.

Looks good :tada:


Update PULL_REQUEST_TEMPLATE URL

I signed it

/assign @tengqm

Hello @baijunyao . Thanks for opening this pull request.
Would you verify that your CLA is signed? Thanks!
/check cla

/check-cla

I signed it

@kbhawkey  Thanks you very much, I signed it.

/approve

/lgtm


Fix: Added archived module

Context in Slack thread: https://redhat-internal.slack.com/archives/C04CUSD4JSG/p1726856912238529
The added module was archived in PR: https://github.com/redhat-developer/red-hat-developers-documentation-rhdh/pull/389

IMPORTANT: Do Not Merge - To be merged by Docs Team Only
Version(s):
1.2, 1.3
Issue:

Link to docs preview:
Find the link in the PR
Reviews:

[x] SME: @jerolimov
[x] Docs review: @themr0c

Additional information:

/cherry-pick 1.2.x

/cherrypick 1.3.x


M1 Mac: ModuleNotFoundError: No module named 'PIL' (I didn't forget conda activate invokeai.)

Describe your environment
M1 Mac

OS: MacOS
Python: [Anaconda/miniconda/miniforge/pyenv/other (explain)]
Commit: commit 94bad8555a8832eca01ed7da6797f65cf6bb9cfb (HEAD -> main, origin/main, origin/HEAD)

Describe the bug
When I run python scripts/dream.py I get this error:
python scripts/dream.py
Traceback (most recent call last):
File "/Users/MGeduld/code/InvokeAI/scripts/invoke.py", line 13, in
from ldm.invoke.readline import get_completer
File "/Users/MGeduld/code/InvokeAI/./ldm/invoke/readline.py", line 14, in
from ldm.invoke.args import Args
File "/Users/MGeduld/code/InvokeAI/./ldm/invoke/args.py", line 94, in
import ldm.invoke.pngwriter
File "/Users/MGeduld/code/InvokeAI/./ldm/invoke/pngwriter.py", line 12, in
from PIL import PngImagePlugin, Image
ModuleNotFoundError: No module named 'PIL'
Additional context

In a similar issue (for someone on Windows), comments suggested the user might have forgotten to activate the conda environment. I have definitely activated it. I see (invokeai) in my command prompt.
The web ai works for me.
I've tried manually running pip install pill and got this:

ERROR: Could not find a version that satisfies the requirement pil (from versions: none)
ERROR: No matching distribution found for pil

I've tried pip install pillow which got me this:

Requirement already satisfied: pillow in /opt/homebrew/Caskroom/miniforge/base/envs/invokeai/lib/python3.9/site-packages (9.2.0)

I also got this issue on Mac M1.
At first Invoke ran fine after following instructions. After stopping and going to run at a later time, I got the ModuleNotFoundError: No module named 'PIL' error.
Following online instructions I did pip install pillow, and now I am getting the error ModuleNotFoundError: No module named 'torch'.
It seems somethings not loading quite right, but I don't have enough Python experience to know what is going on.

Try running python scripts/invoke.py.
The name of the script has changed, and the dream.py that's in there is supposed to call invoke.py but isn't working right. This will be corrected in the next point release coming soon.

Is that supposed to open a GUI?
It starts a process running in the terminal, but I don't see a GUI appear:

python scripts/invoke.py

Initializing, be patient...

GFPGAN Initialized
CodeFormer Initialized
ESRGAN Initialized
Loading model from models/ldm/stable-diffusion-v1/model.ckpt
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
NOTE: Redirects are currently not supported in Windows or MacOs.
Using more accurate float32 precision
Model loaded in 12.50s
Setting Sampler to k_lms

Initialization done! Awaiting your command (-h for help, 'q' to quit)
invoke>

python scripts/invoke.py --web
Then open your browser and go to localhost:9090

Yes, as I wrote, I can use the browser version, but that doesn't include all the features. I especially want to use it for in and outpainting.
Is there now way to get the desktop GUI on M1s currently?

@lstein may answer more accurately but we're adding in/out painting to the web. As for desktop GUI, Idk if there's set plans or dates for it yet. I assume at some point it'll be done, though.

Thanks.

A week for inpainting and out painting, I think. We’re very close.


How do I use with the pro version?

How do I use with the pro version?
Thanks

Handsontable's is a different package and I don't think you can install it as 'handsontable'. So you would need to fork this repository and adjust the import path 'handsontable/dist/handsontable.full.js' that is used in several places. Also, the typings in handsontable.d.ts only reflect the free version, so if you use pro features, you may need to add the typings for those features to prevent TypeScript from throwing errors.
Does that help?

It might be worth contacting Handsoncode to see if they can think of a way to make both version accessible through the same module to prevent issues like that.

I was able to get the pro version working, by doing some minor changes to ng2-handsontable code, you can find the details here: https://github.com/saurabhajmera/ng2-handsontable. Also, I checked with handsontable about the typing file, it seems like, the pro version uses the same typings file as the the free version.


bazel test command broken because of Missing ROCM input files.

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04 tensorflow/tensorflow:devel-py3 container
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): source
TensorFlow version: commit ID 720b16121ea60d914f2d3df47e580e7e1e5542ae or latest master
Python version: Python 3.6.9
Installed using virtualenv? pip? conda?: Not installsed
Bazel version (if compiling from source): 1.2.1
GCC/Compiler version (if compiling from source): gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the problem
Unable to complete bazel test command because of missing rocm input files.
[eigen.log.zip](https://github.com/tensorflow/tensorflow/files/4135491/eigen.log.zip)

ERROR: missing input file '@local_config_rocm//rocm:rocm/include/hipcub/hipcub_version.hpp'
ERROR: missing input file '@local_config_rocm//rocm:rocm/include/rocprim/rocprim_version.hpp'
ERROR: /root/.cache/bazel/_bazel_root/104a68818e52204e40c368960e574528/external/local_config_rocm/rocm/BUILD:119:1: @local_config_rocm//rocm:rocprim: missing input file '@local_config_rocm//rocm:rocm/include/hipcub/hipcub_version.hpp'
ERROR: /root/.cache/bazel/_bazel_root/104a68818e52204e40c368960e574528/external/local_config_rocm/rocm/BUILD:119:1: @local_config_rocm//rocm:rocprim: missing input file '@local_config_rocm//rocm:rocm/include/rocprim/rocprim_version.hpp'
ERROR: /host/tensorflow/tensorflow/python/kernel_tests/BUILD:1222:1: Creating runfiles tree bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/summary_v1_ops_test.runfiles failed: build-runfiles failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/104a68818e52204e40c368960e574528/execroot/org_tensorflow && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PYTHON_BIN_PATH=/usr/local/bin/python \
    PYTHON_LIB_PATH=/usr/local/lib/python3.6/dist-packages \
    TF2_BEHAVIOR=1 \
    TF_CONFIGURE_IOS=0 \
    TF_ENABLE_XLA=1 \
  /root/.cache/bazel/_bazel_root/install/84defa6eb1e9416bf92d6f89ab2d4f31/build-runfiles bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/summary_v1_ops_test.runfiles_manifest bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/summary_v1_ops_test.runfiles): Process terminated by signal 15: Process terminated by signal 15
ERROR: /root/.cache/bazel/_bazel_root/104a68818e52204e40c368960e574528/external/local_config_rocm/rocm/BUILD:119:1 2 input file(s) do not exist```

These files do not exist in the bazel cache.

**Provide the exact sequence of commands / steps that you executed before running into the problem**

```$ docker pull tensorflow/tensorflow:devel-py3
$ git clone https://github.com/tensorflow/tensorflow
$ docker run -ti --rm -v $(pwd):/host tensorflow/tensorflow:devel-py3
# cd /host/tensorflow
# yes "" | python configure.py
# bazel --nosystem_rc --nohome_rc test --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=0 --copt=-march=haswell --copt=-mtune=broadwell --copt=-O3 --copt=-Wformat --copt=-Wformat-security --copt=-fstack-protector --copt=-fPIC --copt=-fpic --linkopt=-znoexecstack --linkopt=-zrelro --linkopt=-znow --linkopt=-fstack-protector --config=v2 --test_timeout 300,450,1200,3600 --test_env=KMP_BLOCKTIME=0 -s --cache_test_results=no --test_size_filters=small,medium,large,enormous -c opt -- //tensorflow/... -//tensorflow/compiler/... -//tensorflow/lite/... -//tensorflow/stream_executor/cuda/... -//tensorflow/python/autograph/pyct/... -//tensorflow/core/kernels:eigen_mkldnn_contraction_kernel_test```

**Any other info / logs**
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

log file attached

I can confirm this. I get this issue with with the latest tensorflow-rocm-upstream, into which tensorflow was last merged on Friday. After checking out the earlier commit @claynerobison pointed at, I do no longer see this error. I am not sure if this is the correct issue tracker, though. Pinging @whchung and @sunway513 for awareness.

This appears to be fixed by the commit 930c651.


SettingsPage: Use concise wording

@rinigus, I am unable to find the location of the transient messages, which are displayed while the repository is refreshed:

XXXX (appears too briefly for me to read it)
Refreshing Chum repository
Get list of packages
Get package details
YYYY (appears too briefly for me to read it)
Check for updates

Can you provide me with a pointer to the corresponding source file, please.
I would like to unify the wording here to (at least) always use the present tense: Currently it is a mix of continuous forms ("refreshing) and present tense ("check", "get").  While the continuous form would be technically correct, it is longer and does not add any real information.
If you prefer to always use the continuous form, please let me know, and I will unify the messages to that tense.  I don't really mind, but want it to be consistent.
If I only knew were these messages are.

Few messages are in src:
grep -r "//% " src

Continuous forms are more friendly for the translators. They make our work a bit less prone to the typical error of mixing up a menu command label "Do X" and an information message that might appear afterwards "Doing X".

It is often impossible to see the actual result before the maintainer builds and uploads an updated package, when all your errors get distributed to the users.

Few messages are in src:
grep -r "//% " src

Well, I did not have the source (repo) locally.
O.K., all are in chum.cpp, except for two in chumpackage.cpp ("Library" and "Development").
@dikonov commented:

Continuous forms are more friendly to the translators. They make our work a bit less prone to the typical error of mixing up a menu command label "Do X" and an information message that might appear afterwards "Doing X".

Well this not really the case here, these actions are carried out mostly automatically, hence there is no corresponding "menu command" "Do X" (well, there is a single one), which triggers the messages "Doing X" (ten, of which nine currently say "Do X").
Currently a single out of ten messages is in the continuous form, all others are in the present tense, thus the obvious way to consolidate them is to use the present tense.
Also note that the messages shall not become too long, the continuous form usually adds the three characters "ing".
Still, the continuous form is technically correct and hence I like it, when I put all practical consideration aside.  But OTOH these practical considerations are relevant.

@piggz and @rinigus do you have an opinion to share WRT this?

When I add those messages, I was trying to be correct in the sense of the form. I expect it would be handy when getting bug requests like "GUI got stuck in ...". Other than that, not much to add

Thus was a lot of C++ code for me to understand roughly, in order to enhance the comment and output strings correctly.  I hope to have achieved that, please check thoroughly, because at some places I was not sure what the original strings meant and what exactly the code does.
I also hope that the output strings are subjected to line-wrapping; if not, we will have to see in practice if they fit and may have to shorten some.

Thank you very much! In addition to user-visible messages, we also have code comments gone through! Merging

In chum:testing, the build has been bumped to include the corrected strings. Should be ready in few minutes

Thank you very much! In addition to user-visible messages, we also have code comments gone through! Merging

You are welcome.  Because some of the output strings were quite ambiguous for me, I had to read the comments thoroughly and partially had similar trouble with them.  So I tried to read the code (which I am bad at, if it is C++ or JavaScript), and enhanced comments and output strings to my understanding.  As this is a rather vague process, I asked you to do a thorough quality assurance of my changes, because you understand way better what the code really does.

In chum:testing, the build has been bumped to include the corrected strings. Should be ready in few minutes

Thank you that was very helpful to check and see that I missed two strings.  Now I remember that I wanted to return to these two later, but forgot to.  These are addressed in PR #112.


Segmentation fault when using uhd_siggen

When i run the following command I get this error
uhd_siggen -f100e+6
Segmentation fault (core dumped)
When I debug it I find
lime::ILimeSDRStreaming::StreamChannel::Write
argument samples is pointing to NULL.
gdb output
0x00007fffd9401715 in lime::ILimeSDRStreaming::StreamChannel::Write (this=0x7fffc0000be0, samples=0x0, count=1, meta=0x7fffd37fcf30, timeout_ms=1000)
at LimeSuite/src/protocols/ILimeSDRStreaming.cpp:413
413	            samplesShort[i] = samplesFloat[i]2047;
(gdb) backtrace
#0  0x00007fffd9401715 in lime::ILimeSDRStreaming::StreamChannel::Write (this=0x7fffc0000be0, samples=0x0, count=1, meta=0x7fffd37fcf30,
timeout_ms=1000) at LimeSuite/src/protocols/ILimeSDRStreaming.cpp:413
#1  0x00007fffd9400078 in lime::ILimeSDRStreaming::WriteStream (this=0x555556487190, streamID=140736414616544, buffs=0x0, length=1, timeout_ms=1000,
metadata=...) at LimeSuite/src/protocols/ILimeSDRStreaming.cpp:114
#2  0x00007fffd97d8a12 in SoapyLMS7::writeStream (this=0x55555649d660, stream=0x7fffc0000980, buffs=0x7fffc0000a10, numElems=1,
flags=@0x7fffd37fd028: 0, timeNs=150000000, timeoutUs=1000000) at LimeSuite/SoapyLMS7/Streaming.cpp:333
#3  0x00007fffe8f2fc01 in UHDSoapyTxStream::send(uhd::ref_vector<void const> const&, unsigned long, uhd::tx_metadata_t const&, double) ()
from /usr/local/lib64/uhd/modules/libsoapySupport.so
#4  0x00007fffefa63f68 in gr::uhd::usrp_sink_impl::start() () from /usr/local/lib64/libgnuradio-uhd-3.7.11.so.0.0.0
#5  0x00007fffeec842e2 in gr::block_executor::block_executor(boost::shared_ptrgr::block, int) ()
from /usr/local/lib64/libgnuradio-runtime-3.7.11.so.0.0.0
#6  0x00007fffeecd75b3 in gr::tpb_thread_body::tpb_thread_body(boost::shared_ptrgr::block, int) ()
from /usr/local/lib64/libgnuradio-runtime-3.7.11.so.0.0.0
#7  0x00007fffeecc9c82 in boost::detail::function::void_function_obj_invoker0<gr::thread::thread_body_wrappergr::tpb_container, void>::invoke(boost::detail::function::function_buffer&) () from /usr/local/lib64/libgnuradio-runtime-3.7.11.so.0.0.0
#8  0x00007fffeec6b832 in boost::detail::thread_data<boost::function0 >::run() () from /usr/local/lib64/libgnuradio-runtime-3.7.11.so.0.0.0
#9  0x00007fffed3d4146 in thread_proxy () from /lib64/libboost_thread.so.1.60.0
#10 0x00007ffff77e06ca in start_thread () from /lib64/libpthread.so.0
#11 0x00007ffff6e0af7f in clone () from /lib64/libc.so.6

bug on https://github.com/pothosware/SoapyUHD/blob/master/UHDSoapyDevice.cpp#L718
change to this code
if (nsamps_per_buff == 0) return 0;

Good find. some of the uhd apps use zero length submissions with end of burst flag to mark the end of burst. I think that I put that line there to pad out the zero length to support some hardware which could not handle the empty buffer submission. However, the buffers being passed in are null pointers, and we cannot index the first sample of a null pointer. I will remove this line. Its the job of the hardware drivers/ modules that support end of burst to deal with length zero appropriately.

Thanks for the fix


print_r

I am very interested in finding leftover print_r variables.
However, print_r() has two parameters. To capture the output of print_r() I use the return parameter. When this parameter is set to TRUE print_r() will return the information rather than print it. When I do this I am not using it for logging. I'm using it to create a string of output similar to how wp_json_encode could be used.
When I do:
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_print_r"/>

I exclude both cases.
My request is that the print_r rule be split into two separate rules. One for the echo version, another for the encode version. Something like:
WordPress.PHP.DevelopmentFunctions.error_log_print_r
WordPress.PHP.DevelopmentFunctions.error_log_print_r_return

(Better name welcome)
Thank you for your consideration.

Depending on how often you use this in your code, it might be a case where you should just whitelist those particular locations (this will become easier in PHPCS 3.2).
I also wonder why you need to use print_r() rather than switching to wp_json_encode().
All things considered, I doubt that this pattern is common enough that your request will be implemented; I suspect that in most cases print_r() is being used much the same way regardless of whether or not the second parameter is set to true. Of course, you are welcome to customize the sniff, and PRs are welcome. 😃
I'll leave this open for now at least, in case there is more interest. Maybe this pattern is more common than I think.

Close as won't fix. It's fine. Thanks for asking.

@connerbw Thanks for getting back to me.


Inference queues

This change is

Current dependencies on/for this PR:

main

PR #3347   👈

This comment was auto-generated by Graphite.


Manage active task(s)

[ ] store current task(s)
[ ] check progress of current task(s)
[ ] queue up new task(s)

Wrong repo :P


Backport "Use MirrorSource.reduce result for companionPath" to LTS

Backports #20207 to the LTS branch.
PR submitted by the release tooling.
[skip ci]

No regressions detected in the community build up to lts-20173.
Reference


Update README.md

Scan submitted to Checkmarx

Checkmarx SAST Scan Summary
Full Scan Details
Violation Summary

Severity
Count

High
4

Details

Lines
Severity
Category
File
Link

96 97
High
Reflected_XSS
core/authHandler.js
Checkmarx

23
High
Reflected_XSS
routes/app.js
Checkmarx

17
High
Reflected_XSS
routes/main.js
Checkmarx


Add new functions to the template engine

I wanna add some functions to the template engine and I want ask your feedback first:
I wanna add the below functions:

join: It gives a list and a string and joins the list with the string. Example: {{ ['a', 'b', 'c'] | join ',' }} to a,b,c.
toMillis, toSeconds and etc: It gives a human readable duration and converts it to milliseconds, seconds and etc. Example: {{ '1h' | toSeconds }} to 3600
toBytes: It gives a human readable size and converts it to bytes. Example: {{ '1 KB' | toBytes }} to 1024

First I wanted to add them into the sprig library, but unfortunately it seems not to be maintained anymore: https://github.com/Masterminds/sprig/issues/365

To note, join already exists: http://masterminds.github.io/sprig/string_slice.html

Thank you for your response. I saw that but its usage is not clean yet. I have a Kafka cluster and I wanna set its bootstrap-servers. here is my code:
{{- define "kafka.bootstrap.server" -}}
{{- .Values.kafka.hosts | join (printf ":%d," (.Values.kafka.port | int)) }}:{{ .Values.kafka.port }}
{{- end -}}

What is your idea about adding a new function named append that appends a string to each item of the slice?
With append function it will be:
{{- define "kafka.bootstrap.server" -}}
{{- .Values.kafka.hosts | append (printf ":%d" (.Values.kafka.port | int)) | join "," }}
{{- end -}}

Thank you for your response. I saw that but its usage is not clean yet. I have a Kafka cluster and I wanna set its bootstrap-servers. here is my code:
{{- define "kafka.bootstrap.server" -}}
{{- .Values.kafka.hosts | join (printf ":%d," (.Values.kafka.port | int)) }}:{{ .Values.kafka.port }}
{{- end -}}

What is your idea about adding a new function named append that appends a string to each item of the slice?
With append function it will be:
{{- define "kafka.bootstrap.server" -}}
{{- .Values.kafka.hosts | append (printf ":%d" (.Values.kafka.port | int)) | join "," }}
{{- end -}}

You mean like http://masterminds.github.io/sprig/lists.html#append-mustappend ?
Familiarize yourself with the sprig functions. There's a lot you can do with them.

Ah, in the go template language, you'll have to write a loop for that:
{{ $source := list "a" "b" "c" }}
{{ $dest := list }}
{{ range $source }}
{{ $dest = append $dest (printf "%s%s" . "d") }}
{{ end }}

helm-playground example

Each of these can be solved using named templates and that's probably the best way to handle this. Sprig is maintained, but is very resistant to adding new functions.
Here's an example of SI-to-bytes

@joejulian I know it is possible know. But this loop will be duplicated for all of the developers and it's a code smell.
Why I should write this loop and add some complexity for this simple problem?
This is my solution for the current helm:
{{- define "kafka.bootstrap.server" -}}
{{- range $i, $host := .Values.kafka.hosts }}
{{- if ne $i 0 }},{{ end }}
{{- $host }}:{{ $.Values.kafka.port }}
{{- end }}
{{- end -}}

And it will be after adding the mapAppend function:

@joejulian I disagree with this paradigm. In my opinion the template engine must be as simple as possible. After 3 years writing Ansible Roles and Helm Charts, I feel I am tied in the Go template engine. In Jinja we have all these functions and Ansible is extensible (Thanks for the python interpreter). But in Helm, this simple common problem must be solved with a loop (and in some cases a condition).
I disagree with one way for each problem. If we think so, we can do all the things with Assembly and Go, Java, Python and other high level languages are spurious. :D

Well feel free to open a PR. I'm just sharing what I know from past conversations with the maintainers.


Update FileSystemVectorStore.php

BREAKING CHANGE:
Default to __construct is now null for old behavior, the path can now fully be passed
Additional:
Also changed file_exists to is_readable as we need to open the file and not just make shure it exists
Fixes  #107

Thanks again @ATC-4K !


Plausible: Privacy & ToS engagement

https://www.notion.so/delv-tech/Privacy-ToS-engagement-112de4e806f38070aa1ff14291aaf746?pvs=4
related to #1529

[ ] Custom events for "Compliance info displayed" & "Compliance info accepted"

New plausible events: termsAndPrivacyAccept, termsAndPrivacyView


ram_train_eval.py

What is the 'arr _ 0 ' in line 19 of this file？

This is the key used to store all embeddings. You can also define your own key, just make sure to modify the code accordingly.


Not able to access the send option of postfix admin

Hey,
We have successfully configured the mail server and we are able to login, we are not able to send mails through this after setting up our domain. We cannot see the option of send email also please check the screenshot.
Another issue is we are using default aliases and sending email to our gmail account but we get an error of aliases lookup fails, can you please help what are we missing.
Error -
virtual_alias_maps map lookup problem for<EMAIL_ADDRESS>-- message not accepted, try again later
In case of additional information please let us know.

We cannot see the option of send email also please check the screenshot.

Because you can't an e-mail with this postfixadmin docker image, so i disabled this option :
https://github.com/postfixadmin/postfixadmin/blob/d2d066d13a848dd747c9bd16be5a7d33ac8a76d3/config.inc.php#L396-L398
https://github.com/hardware/postfixadmin/blob/7bccdcee621e6bf083099909aa4f6a97cc76c280/run.sh#L35


DTDCs no longer have an own data class

Starting with ABAP Platform 2208 DTDC does no longer have an own workbench data class but instead uses CL_BLUE_SOURCE_OBJECT_DATA directly.
In addition:
The field that carries the ABAP language version changed from ABAP_LANGUAGE_VERSION to ABAP_LANGU_VERSION in ABAP Platform 2208. So to make it work in both releases < and >= ABAP Platform 2208 we have to try to clear both versions of that field.
Fixes: #5477

@ThomasPloski can you help reviewing this PR?

I was able to successfully test it with the latest S4H release.

Thanks @ThomasPloski 👍


Remove 'see all button'

hi is it posible to hide the 'see all' button ?

I have this problem too.

See https://github.com/MailOnline/ImageViewer/issues/148


[Bug] Dark mode fixes

Background
Fixes UI to properly adapt to dark mode
Closes #304
Breaking Changes
Describe any breaking changes that this pull request will introduce.
iOS 16+ required
Meta

Tied to Version Release(s):

PR Checklist

[ ] CI runs clean? N/A
[x] Appropriate label has been added to this PR (i.e., Bug, Enhancement, etc.). Don't have label change access
[x] Documentation has been added to all open, and public scoped methods and properties.
[ ] Changelog has been updated
[ ] Tests have have been added to all new features. (not a requirement, but helpful)
[x] Image/GIFs have been added for all UI related changed.

Screenshots

@aaronbrethorst @halmueller Let me know if you're able to review this pull request, thank you!


Re-enable doxygen processing of the "Remote" directories.

Description
Disabled in #116 until sphinx based examples and potential self-referential links can be evaluated and fixed.
Expected information
A discussion is needed about what to require/expect/allow for doxygen generation from the remote modules.
Actual information
The desired behavior of doxygen wrapping of the remote modules is not clear.  If "generate documentation" is requested, which modules should be required?

I am currently in the process of adding all Remote modules that can be processed by Doxygen to the nightly Doxygen build.

@SimonRit RTK Added today and will hit tomorrow's dashboard / HTML if successful.

That would be awesome, thanks! Let me know if I need to clean it up a bit, the current RTK doxygen (compiled nightly) is here: http://www.openrtk.org/Doxygen/annotated.html.

Running into some problems getting CUDA setup on the build system -- punting with the RTK module for now since it already has great Doxygen builds.


Tiny update to improve readability.

Made a couple of sentences read better.

@martingbrown : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@martingbrown and @kengaderdus - I've made edits to help smooth out the grammar. Do they look OK to you?

#sign-off

Thanks, all.


Scripts to correctly format crime data

I thought I'd move this from my scratchpad to the repo. It could be refined, but does the job for now.
@longhotsummer

Cool.


Toil context manager follow-up

remove job.FileStore from file managing heading in documentation

stress that all file staging is on the leader, and make contents show file staging as a subsection

In the example code, call exportFile() after run()

Also add a test that tests exactly that sequence: import, run, export

Have the job create an output file and return its ID such that you can export the output file rather than the input file. That would be a much more realistic scenario.

Also, could you make sure in a test that staging is handled correctly when restarting workflows? We would not want to stage a file again. I suppose we need to also describe how restarts and staging interact in the documentation.


How does FastImage handle concurrent loading of the same image?

Hi all 👋
If my app mount two different FastImage components with the same source prop, will FastImage download the file two times?

Related to this question, when I load multiple instances of the same image, why do they load at different times (when first run)? Obviously, they load immediately when fetched from cache.
See this demo below and note the load times of these stars. There are technically 2 images, the orange star and the grey star.
https://user-images.githubusercontent.com/61172689/152685839-d0874f2e-53cd-43e4-93d4-69c1384be2f9.mp4


[DRAFT] Port to vello and winit

This PR tries to make Masonry work with Winit instead of druid_shell and Vello insteaf of Piet, while changing as little code as possible. It's very much a work in progress.
The general plan is to remove features that are too coupled with Vello/Winit to change seamlessly, document them here and when the PR is merged, create issues to explain what the plan is to re-introduce them.
Roadmap for this PR:

[x] Replace Piet with Vello and Parley

[X] Port paint methods of various widgets
[X] Port WidgetPod and PaintCtx
[X] Port test harness
[X] Port Label widget
[x] Port Image widget
Port TextBox widget

[ ] Replace druid_shell with Winit

[X] Write new architecture
[ ] Port test harness
[ ] Remove features too coupled to port

[ ] Port examples
[ ] Run cargo clippy

I've opened #57 to lay out a roadmap for text-handling, as per above.

Also, note to self: I need to add FontContext to GlobalPassCtx before this is merged.

I've pushed the first version of the Winit port. Very experimental.


Adding my contribution (Challenge #145)

A 2D maze where you can only see thanks to ray casting.
Demo: https://editor.p5js.org/SebastienR/sketches/2rGNT5FNS

❤

Amazing!


Head should probably generate an error on a directory without a trailing delimiter

Head should probably generate an error if provided a url.prefix that is a valid directory, but doesn't end in a trailing slash. This is to both match the behavior of other object stores, and because ListingTableUrl.list_all_files will just call head if it doesn't.

I don't think the trailing slash is relevant for the head call, but I agree it does look like head should return an error if called on a directory


Fix DepositManager

Due to the pressing deadline, we are letting a user register their public key via a direct call to the BLSAccountRegistry contract's register function.
This saves the effort to handle the on-chain token transfer logic.
We have to bring back DepositManager when we have time.

I think we still have DepositManager, its just that before it used to register public key and do a deposit, now there are 2 functions, one for registering a new account and one for doing a deposit. I think we should keep separate both the functions as they are now and just have one other utility function that does createAccountAndDeposit to have the flow as before.

Resolved in #245 and #246


copy text includes container id and should not

If you press the "copy" button, you get this:
docker create --name core-counter counter-image
cf01364df4539812684c64277f5363a8fb354ef4c90785dc0845769a6c5b0f8e
You should only get this:
docker create --name core-counter counter-image

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 4c7470d2-9a57-7654-e13a-4f912898f7aa
Version Independent ID: 58d57b81-4ca6-6536-8788-f212402b41a7
Content: Containerize an app with Docker tutorial - .NET
Content Source: docs/core/docker/build-container.md
Product: dotnet-fundamentals
Technology: dotnet-docker
GitHub Login: @IEvangelist
Microsoft Alias: dapine

Hi @pkellner,
The copy button, copies everything in the code fence. I understand your concern here, but this is really showing the output as well at the command. I suppose I could alter this, let me see what I can do. Thanks


Allow configuring of the ServiceProvider on DistributedApplicationBuilder

There is currently no way to configure the ServiceProvider on DistributedApplicationBuilder. Say I don't want to use MEDI, and I want to use a different DI provider. Or I want to be able to modify the ServiceProviderOptions used when building the service provider.
IHostApplicationBuilder has this method:
    /// <summary>
    /// Registers a <see cref="IServiceProviderFactory{TContainerBuilder}" /> instance to be used to create the <see cref="IServiceProvider" />.
    /// </summary>
    /// <param name="factory">The factory object that can create the <typeparamref name="TContainerBuilder"/> and <see cref="IServiceProvider"/>.</param>
    /// <param name="configure">
    /// A delegate used to configure the <typeparamref name="TContainerBuilder" />. This can be used to configure services using
    /// APIS specific to the <see cref="IServiceProviderFactory{TContainerBuilder}" /> implementation.
    /// </param>
    /// <typeparam name="TContainerBuilder">The type of builder provided by the <see cref="IServiceProviderFactory{TContainerBuilder}" />.</typeparam>
    /// <remarks>
    /// <para>
    /// The <see cref="IServiceProvider"/> is created when this builder is built and so the delegate provided
    /// by <paramref name="configure"/> will run after all other services have been registered.
    /// </para>
    /// <para>
    /// Multiple calls to <see cref="ConfigureContainer{TContainerBuilder}(IServiceProviderFactory{TContainerBuilder}, Action{TContainerBuilder})"/> will replace
    /// the previously stored <paramref name="factory"/> and <paramref name="configure"/> delegate.
    /// </para>
    /// </remarks>
    void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder>? configure = null) where TContainerBuilder : notnull

WebAssemblyHostBuilder and MauiAppBuilder both have similar methods (but doesn't implement IHostApplicationBuilder).
We should add the same method to DistributedApplicationBuilder.
cc @mitchdenny @davidfowl

The validate on build one is kind of interesting. The AppHost doesn't run in production contexts so its not like a resolution failure late in the apphost lifecycle is going to cause a live site issue for someone.

My overall view on this is that whilst this would allow validate on build to come into play to catch things on Build(...) - in practice its probably going to fail shortly after run anyway because of the way Aspire tends to work internally (anything that is going to be instantiated is going to be instantiated as part of Run() rather than being tied to a separate request).
In terms of supporting other containers ... I'm not sure I'd want to break into jail on that one.


Remove jackson-databind and jackson-annotations dependencies now coming from core

jackson-databind and jackson-annotations were added as api dependencies in server of opensearch core.  Therfore, all plugins now have these as transitive dependencies.  Plugins that currently consume these dependencies directly will break while building unless the direct dependencies are removed.  If your plugin does not consume jackson-databind or jackson-annotations directly, feel free to close the related issue in your plugin's repository.
Example of solution in security plugin: https://github.com/opensearch-project/security/pull/2325

there are no forced dependencies for jackson-databind or jackson-annotations in common-utils. hence closing this.


Nowa wersja

It looks like you are attempting to push a change to the template repository, for help with deploying your own website please start a new thread in the discussions.


Tokenscript generates web view for "Enter" action with a single word: none

As you can see in the screenshot, the webview has a single element with single value "none"

No longer an issue


A question about the actor_loss with behavior cloning.

Hi,
There is an alpha in the actor loss when we minimize the KL-divergence w.r.t. the Boltzmann policy:
policy_loss = (alpha*log_pi - q_new_actions).mean()

But why do we need an alpha when we try to minimize the KL-divergence w.r.t. the behavior policy?
policy_loss = (alpha*log_pi - log_probs).mean()

https://github.com/young-geng/JaxCQL/blob/2ab57924d4f977346e2589d18b6e2866af7234d6/JaxCQL/conservative_sac.py#L141

From my understanding there are two purposes of the entropy regularization in max ent RL. The first purpose is to improve exploration, and to achieve this you need to back up the entropy in the Bellman backup (--cql.backup_entropy option).  However in offline RL we don't need to explore at all, and this is exactly why we turn off that option by default. This brings us to the second purpose of max entropy, which is improve the policy optimization landscape. Entropy regularization prevents the policy action distribution from collapsing to a single point and this helps even in offline RL, since we need to query the policy's actions when computing next step value. This is the reason why we also have it when doing behavior cloning in the beginning.

Many thanks for your kind reply.


forgot this thing :stuck_out_tongue:

:white_check_mark: Build TimeHACK AppVeyor-227 completed (commit https://github.com/TimeHACKDevs/TimeHACK/commit/358f8601cd by @lempamo)


Missing 'user assignment' value from az ad sp create

Hi.
I am creating Service Principal using the az ad sp create command, and have run into an issue where I'm unable to change user assignment required value to true . It would be useful to have a one similar to powershell -AppRoleAssignmentRequired parameter to specify this.
Thanks

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
$ az --version

azure-cli (2.0.22)

acr (2.0.16)
acs (2.0.21)
advisor (0.1.0)
appservice (0.1.21)
backup (1.0.3)
batch (3.1.7)
batchai (0.1.3)
billing (0.1.6)
cdn (0.0.10)
cloud (2.0.10)
cognitiveservices (0.1.9)
command-modules-nspkg (2.0.1)
configure (2.0.12)
consumption (0.2.0)
container (0.1.14)
core (2.0.22)
cosmosdb (0.1.15)
dla (0.0.15)
dls (0.0.18)
eventgrid (0.1.5)
extension (0.0.6)
feedback (2.0.6)
find (0.2.7)
interactive (0.3.11)
iot (0.1.14)
keyvault (2.0.14)
lab (0.0.13)
monitor (0.0.13)
network (2.0.18)
nspkg (3.0.1)
profile (2.0.15)
rdbms (0.0.9)
redis (0.2.10)
reservations (0.1.0)
resource (2.0.19)
role (2.0.15)
servicefabric (0.0.6)
sql (2.0.16)
storage (2.0.20)
vm (2.0.19)

Python location '/usr/local/bin/python3.6'
Extensions directory '/Users/rpasupuleti/.azure/cliextensions'

Python (Darwin) 3.6.3 (default, Oct  4 2017, 06:09:38)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]

Legal docs and information: aka.ms/AzureCliLegal

I will wire up a generic updater for this

This will have to wait, as it requires api spec change

Be more specific, that the spec must be updated to support "service principal patch/update" which is missing right now.

https://github.com/Azure/azure-rest-api-specs/pull/5181 would  fix this, but we will see.


📃: Naive Bayes Algorithm from Scratch

🟢 Title : Naive Bayes Algorithm from Scratch
🟢 Tech stack : Python
🟢 Objective : To implement and understand Naive Bayes algorithm.
🟢 Summary : Understanding Naive Bayes algorithm

✅ Details to Include When Taking the Issue:
Name : Soham Shah

Happy Contributing! 🚀
Wishing you all the best on your open source journey😍.
Enjoy! 😎

Please assign me this issue.

Assigned


Fix %O modifier for thai_strftime()

This should close #436

Hello @bact! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file pythainlp/util/strftime.py:

Line 102:80: E501 line too long (81 > 79 characters)
Line 105:80: E501 line too long (82 > 79 characters)

Coverage increased (+0.008%) to 95.401% when pulling 0b56c170f15da5222991b658f4055d6ad5104dfd on fix-thai_strftime into 7f24af2d70b86adf347eb5edb6e6c7d1f862fe4b on dev.


[cleanup] use only one photo object containing {image:"...", source: "..."}

use only one photo object containing {image:"...", source: "..."}
instead of 2 separated object.
It's will be more efficient to iterate as one object with sub properties than 2 different objects

To be tested

What does the photoData property ?
It's this property that is recorded into firebase

Hint : Create an html form and use iron-form to manage the behaviour
https://github.com/PolymerElements/iron-form


Update UI on first confirmation of final transactions

With https://github.com/itchysats/itchysats/pull/1779, we unintentionally (but knowingly) stopped considering CETs, refund transactions and collaborative settlement transactions as final in the UI with 1 confirmation. Instead, we now require 3 confirmations to transition from "pending" to "close".
We may want to undo this change of behaviour in the UI by introducing intermediate XYZSeen CFD events.
Originally posted by @da-kami in https://github.com/itchysats/itchysats/pull/1779#discussion_r847986793

This project is unmaintained


Duplicate results in search

When searching for "apply" this is what the site returns:

The two "Stashing" links respectively point to:

http://git-scm.com/book/en/git-tools-stashing
http://git-scm.com/book/en/Git-Tools-Stashing

So the duplication appears to be due to capitalization of the paths. Not sure what's going on there. This only seems to happen with Book results.

When searching "refspec" : https://git-scm.com/search/results?search=refspec
First result : https://git-scm.com/book/en/Chapter-10-Git-Internals-The-Refspec
Link leads to https://git-scm.com/book/en/v2
Should lead to https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Seems that it is different from #403 but similar to #346 because:
Second link : https://git-scm.com/book/en/Git-Internals-The-Refspec
Leads correctly to : https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Screenshot


Click again to minimize an accordion

Hi, sorry if this is a dumb question but how do I make it so that when an accordion is expanded, I can click on that same accordion panel to close/contract that panel?

Component API: allowZeroExpanded : boolean [optional, default: false]

Seems like this was answered already, closing :)


missing 0.01 z62

I would love to see firmware for 0.01 z62 keyboard.
Turns out the manufacture's webpage no longer works, so getting software requires grepping redit and discord channel :(

I don't think it runs QMK, do you have links to a qmk firmware for this board?


Set TargetFrameworks solely to "netstandard2.0"

Changed the <TargetFrameworks> from netstandard2.0;net6.0 to just netstandard2.0. It shouldn't affect users since netstandard2.0 works with .NET 6.

https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/cross-platform-targeting


Dynamic relationships

Register and generate automatically all relationships for all resources.
  has_many :accounts, through: :hierarchies, class_name: 'Account', source: 'resource', source_type: 'Account'
  has_many :projects, through: :hierarchies, class_name: 'Project', source: 'resource', source_type: 'Project'
  has_many :memos, through: :hierarchies, class_name: 'Memo', source: 'resource', source_type: 'Memo'

It's not possible due to inheritance access


Error when setting a long string as the default value

I'm just curious about the following lines to control the length of the option's description:
https://github.com/jarro2783/cxxopts/blob/76717cb3dd23fe77ad5d8ba2b7479b3eecc719a1/include/cxxopts.hpp#L1861-L1864
I have a very long string as the default value, and error occurs then calling options.help():
libc++abi.dylib: terminating with uncaught exception of type std::length_error: basic_string
Abort trap: 6
So I change size_t{76} to size_t{120}. What's the risk of doing this?
Thanks!

I think this is the kind of bug @wykvictor was pointing out:
#include <iostream>
#include "cxxopts.hpp"

int main(int argc, char * argv[]) {

    cxxopts::Options parser = cxxopts::Options("Reproducible Bug");
    parser.add_options()
    ("h,help", "show this help message and exit")
    ("my-option", "description with long wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooord", cxxopts::value<int>());

    auto args = parser.parse(argc, argv);
    if (args.count("help"))
    {
        std::cout << parser.help() << std::endl;
        exit(0);
    }

    return 0;
}

which compiles, but throws a runtime error when executed with --help.

The issue should be named "Error for descriptions with long words".


LBL seemingly ignoring the 'INPUT_FILE' parameter

Hi Neil
(Summary for other people that might read this) I found a problem today with the new version of LBL. It seems to be ignoring the "INPUT_FILE" parameter and trying to load the wrong types of files (CCF and BIS files), which leads to LBL crashing when the file size doesn't match the expectation. This was not happening in the old version I was using. I'm using the exact same data, within the exact same folder structure.
HARPS_03_lbl.zip
Cheers
Alejandro

Okay your wrap file looks good - I'll look into this as its odd its not working

Okay this should be fixed in 0.64.013  - it was a problem with priority of the inputs, any input overridden by an instrument (INPUT_FILE is one of these set to "*.fits" in most cases) was taking precedence over user inputted variables - this shouldn't affect much else and will fix your problem!
Also I'm not sure why in your wrap file you are doing from lbl.lbl import lbl_wrap   it should be from lbl import lbl_wrap if you have installed lbl correctly.  (this looks like you are running the git files directly i.e. you are running the wrap file from above the github directory which you downloaded which is unwise)

Hi Neil
Thanks for checking this.
On the second question, the wrap files as created would only load from inside the dowloaded lbl directory (same place where the setup.py is). The installation process doesn't seem to have installed anything in any other place, and I cannot load it as a typical installed package. It created an empty folder in the home directory, and a "dist-info" directory with only a few text files (METADATA, entry points, etc.) inside the conda environment directory.
Cheers
Alejandro

Then something went very wrong. Could you send a copy of the command you are running to install and the printouts (starting from the conda create command)

I reinstalled with the newest version. Now everything seems to be working fine, and it loads as a regular module.

Okay good, I'll close this issue then!


Add a new pattern to match Traefik default accesslog in 'patterns.yml'

Hello, here is my pattern to match Traefik default accesslog.
Traefik have no access log by default, then you will need to use the argument --accesslog=true.

Thanks @nperron !


Add automatic type deduction for variable & constant declarations

Currently declaring a variable or constant take the form:
var x: type = val;
const y: type = val;

Allow variable and constant declarations to take the form:
var x = val;
const y = val;

where the typeof(x) and typeof(y) is automatically deduced as the typeof(val) similar to auto in C++.

Added in 2a573a6d815e8c9184655584a4947854ca002a1a.


correct documentation for version number data type

Addresses https://github.com/godotengine/godot-docs/issues/1422

Cherry-picked into 3.0.3.


Expose the diff from ComparisonResult

This exposes the diff percentage of a ComparisonResult, which will enable sub-classed LocalFileComparators to set a tolerance level for golden file testing.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Can anyone help me to understand how do we set diff tolerance levels for the golden test ? I am not sure how I will use these api in my tests.
Currently I’ve golden test matcher like this.
await expectLater(find.byType(MyTestWidget),
    matchesGoldenFile('my_test_widget.png'));

How do I set a diff tolerance level for this test ?
@Piinks

anyone?

Hi, may I know what is goldenFileKey?

Seems that the code above does not work for macos. The following works:
MyLocalFileComparator(
      Uri.file(path.join(path.fromUri((goldenFileComparator as LocalFileComparator).basedir), 'just_arbitrary_string.dart')));


High memory usage during "migration-RefCountSizeInc" on 1.17.4

Context
I'm migrating my nodes, they have a lot of pinned data, between 250GB and 300GB each one. The process crashes after short time because it used all the memory.
I've created a swap file of 10GB, but it shouldn't be required. An amount of ~11GB of memory is occupied in total.
Summary
Process allocate too much memory with a large data base.
Expected behavior
Memory should be better managed.
Actual behavior
Migration crashes because of out of memory.
Steps to reproduce
Try to migrate a node pinning a lot of data.

going forward. for these types of migrations, we need to take these edge cases into consideration.

In the meantime, any suggestions on how to migrate these large nodes?   I've looked at the code, and I suspect that if it actually gets into the Delete loop, the database will be completely messed up as some records will have the new larger size and the others will still be 8 bits.
Seems like the migration should have actually changed the keys like most other migrations do it.   Then a) the migration could restart, and b) the actual migration could be broken into smaller chunks that wouldn't exhaust memory.

My 193,744,000 chunk node took 7 minutes in the RefCountSizeInc migration and consumed 16GB of my 64GB swap file on a 64GB RAM machine.   But it survived!  Here's the bee_process_virtual_memory_bytes metrics graph.

phew! thanks for the good news.

@ldeffenb
a suggestion:
instead of generating the itemsToDelete list, the Put call can be made directly in the iterator call back.

may I close the issue?

may I close the issue?

If it's ok with you, I'll close it once I get my main node migrated.  My sharky archive failed and was just restarted, so it might be tomorrow before I can actually attempt it.

I considered shuffling the update to inside the loop, but wasn't sure a) if the query would continue to execute properly with concurrent updates to the queried items and b) what the recovery effects might be if the node failed during the loop.  But then again, if the node fails during the actual batched update loop, the localstore is hosed anyway since the old records are keyed the same as the new records, but have a different data length.

My largest pinning node has now migrated to 1.17.4.  It found 402510135 "itemsToDelete".  It took just under 4 minutes to build the list (I added an additional log) and consume 90% of the RAM in a 64GB machine along with occupying 30G of the 136G swap space.   Actually processing the list took another 52 minutes for a total of 56 minutes.
So the 1.17.4 migration can finish on large nodes, you just have to have enough RAM and swap space and be patient.


How to test on my own dataset?

I saw issue on Deflow that eval on custum dateset needs groud truth flow.
I'm very exciting that you have this self-supervised version of this model and wondering whether it is possible to inference scene flow using your pretrained weight on dataset: has frame point clouds, poses, and segmentation maybe, then producing flow results.

btw, is it possible to test on dataset that has no valid ground_mask available? Or is there a convenient way to compute ground_height.npy & se2.json on my aggregated point cloud (from all frames)?
thx in advance, :)

You can directly try this python package to get ground_mask: https://github.com/Kin-Zhang/linefit/tree/master

One more question, I noticed that in process_log, pose and car_frame_pc are input for model inference. What coordinate system is car_frame_pc established on, Can you explain it in detail? In each frame, is car_frame_pc ego-centric or is it based on a unified first moment as the origin (world coor)? What should I do if my data is in world coor?

I think it's fine for both, pc is ego-centric and you will save pose for the world coor, and the first pose can be the original world coor.

Hi, just want to confirm. In the scene flow task, is it assumed that: the vehicles (rigid body motion) are moving on the same horizontal plane? Because in the visualization I only see 2D motion angle, which does not seem to be able to handle the situation of height changes?
If I'm wrong, please explain in detail, thx very much!

The output is 3D vector which (fx,fy,fz) which is illustrated in the paper in the problem statement section I think.
The visualization is because that's more concise and easy to understand, you can check that in youtube presentation video there is an image showing a flow vector in a 3D way.

Let me know if you have further questions.


Composer require as make replacement question

Issue Type

Bug Report / Support Request

Summary
As I would want to use composer instead of make, I have some reqs I still have no solution for:

custom location: as an example, custom modules should go in /modules/custom.
I could achieve this by updating the type to drupal-custom-module in composer.json file in that module. But this should be nice to override in the projects drupal.composer.json. A possible different path in each project.

leave .git folder within module. I tried setting "preferred-install": "source" in the config in drupal.composer.json, but does not seem to work. Would be handy for development.

These both seem to be very Composer-specific, and besides allowing all custom modules to be in a place like modules/custom, I'm not sure how you'd do it any other way.
For the .git folders... that sounds like it might be a bug in Composer or a misconfiguration somewhere. I'd recommend asking on Drupal Answers, or maybe even in the Composer issue queue (or Drupal Composer Project template). But I'll leave this issue open for now in case anyone else has hit these things directly and has a better answer.

You can use https://github.com/Koodimonni/Composer-Dropin-Installer for moving some packages to other locations.

besides allowing all custom modules to be in a place like modules/custom, I'm not sure how you'd do it any other way.
My custom might be your contrib. If we publish to packagist, someone else will would a module to be winhin contrib, not custom.

I would classify a module as contrib as soon as it's moved to it's own repo and contributed to the public, regardless if it's packagist, d.o., or just github. custom/ are modules I edit directly, without pushing to any other repo.
I do get your point about semantics though :) But then the problem becomes, where do you draw the line? Should Jeff place Honeypot in custom/ because he built it? etc.
Anyways, I'll close this as your questions were partly answered and it's been 2 weeks without input. If you're still looking for support, I bet people on Drupal Answers have more ideas.


Fix misspelling in HTML CSS documentation.

"Bootstrap", not "Boostrap".

Automated message from Dropbox CLA bot
@brainwane, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @brainwane!


fix run-on sentence

This PR fixes a comma splice, replacing the comma with a semicolon.

@balena-ci rebase


Issue using FlowControlSettings and setting setMaxOutstandingElementCount = 1

Opening a new issue to debug the comment from user @dgrudenic in #17:
"We actually experienced same behavior mentioned in example above.
So if you have 3 subscribers on same subscription/topic and you want that each subscriber is processing 1 message at the time which is kind of standard point to point workflow it is not really possible with FlowControlSettings and setting setMaxOutstandingElementCount=1 because as soon as first subscriber gets message it will buffer more than 1 message.
Let me know if this is not the case and example above is actually working."
Originally posted by @dgrudenic-qumu in https://github.com/googleapis/java-pubsub/issues/17#issuecomment-806049560

@anguillanneuf The user comment above references some challenges they are having using flow control settings — the older ticket was a feature request so I opened a new issue instead of reopening the older ticket. The relevant example is in the original ticket.

if you have 3 subscribers on same subscription/topic and you want that each subscriber is processing 1 message at the time

@dgrudenic-qumu Setting max outstanding element count to 1 with 3 subscribers doesn't sound like a good case for StreamingPull. I would suggest using synchronous pull instead.
setMaxOutstandingElementCount=1 does not guarantee that there's exactly 1 message between the Pub/Sub service and your subscriber. The subscriber is responsible for 1) holding only one message in its memory 2) making sure that this message has its acknowledgement deadline extended and 3) returning further messages to the server. This subscriber, however, has no control over whether Pub/Sub will redeliver the returned messages to it over the other two subscribers that have open streaming connections too. It will be helpful to keep in mind that the gRPC buffer between Pub/Sub service and the subscriber is roughly 10 MiB, so up to that many messages can be delivered back and forth there.
To effectively load-balance across all your subscribers when the message load is small, or to achieve the goal of never starve a subscriber with a small load, I would recommend using synchronous pull. Here's an example,
https://github.com/googleapis/java-pubsub/blob/HEAD/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java


Added some cleanup to docs and removed retool

Ran my linter on the docs that were changed.
Standouts:

Changed the Go description to state that we support the latest 2 versions of Go
removed mentions of retool since it's a deprecated package
Some quick doc fixes on brew & bashrc
Removed glide

Question - do we need to add an example of adding protoc-gen-go && protoc-gen-twirp via go modules? Since they are command line dependencies/code generators I don't think they'd be going into a go module...

I'm cool with your linter, except for the bullet points updated from * to -. I mean, if it needs to be a dash then it needs to be, but I don't know why a linter would prefer that, everyone uses * right? (this may be a "tab vs spaces" war and I didn't know about it until now 🤣 )

I'm cool with your linter, except for the bullet points updated from * to -. I mean, if it needs to be a dash then it needs to be, but I don't know why a linter would prefer that, everyone uses * right? (this may be a "tab vs spaces" war and I didn't know about it until now 🤣 )

@marioizquierdo fixed 😃

@marioizquierdo fixed 😃


write tests for fundamental tasks

We need tests to catch regression on database, table and slice creation.

100 % true, @xrmx  could you please write down a list of the use cases the should be tested, it would be easier this way for others just pick a test case and implement it.

@xrmx, I would be down to help with this. What do you mean by regression exactly? What test cases did you have in mind?

@SalehHindi user can login, user can add a datasource, user can create a dashboard from that datasource, etc... When i opened this issue we had a bug where the link for creating a slice from a sql alchemy datasource was wrong and so users cannot create slices from there.

@SalehHindi e.g. #1795 would be the type of bugs we can avoid with proper tests


Kotlin: FunctionTypeUtils do not support Kotlin functions following functional bean definition approach

Describe the bug
I am trying to follow the reference documentation section about registering functions with the Functional Bean definition approach, but using Kotlin.
Probably I am doing something wrong, but I could not find a way to define the  FunctionRegistration#type either than using org.springframework.cloud.function.context.catalog.FunctionTypeUtils#functionType(), but seems it does not support Kotlin functions.
java.lang.IllegalArgumentException: Must be one of Supplier, Function, Consumer or FunctionRegistration. Was interface kotlin.jvm.functions.Function1
	at org.springframework.util.Assert.isTrue(Assert.java:122) ~[spring-core-6.0.9.jar:6.0.9]
	at org.springframework.cloud.function.context.catalog.FunctionTypeUtils.assertSupportedTypes(FunctionTypeUtils.java:536) ~[spring-cloud-function-context-4.0.3.jar:4.0.3]
	at org.springframework.cloud.function.context.catalog.FunctionTypeUtils.getInputType(FunctionTypeUtils.java:327) ~[spring-cloud-function-context-4.0.3.jar:4.0.3]
	at org.springframework.cloud.function.context.FunctionRegistration.type(FunctionRegistration.java:129) ~[spring-cloud-function-context-4.0.3.jar:4.0.3]
	at tech.aaregall.lab.AppFunctional.initialize(AppFunctional.kt:22) ~[main/:na]

Versions:

Spring Boot 3.1.0
Kotlin 1.8.21
JDK 17
Spring Cloud 2002.0.3 (spring-cloud-function-kotlin:4.0.3)

Sample
package tech.aaregall.lab

import org.springframework.boot.SpringBootConfiguration
import org.springframework.cloud.function.context.FunctionRegistration
import org.springframework.cloud.function.context.FunctionalSpringApplication
import org.springframework.cloud.function.context.catalog.FunctionTypeUtils
import org.springframework.context.ApplicationContextInitializer
import org.springframework.context.support.GenericApplicationContext

@SpringBootConfiguration
class AppFunctional : ApplicationContextInitializer<GenericApplicationContext> {

    fun uppercase(): (String) -> String {
        return { it.uppercase() }
    }

    override fun initialize(context: GenericApplicationContext) {
        context.registerBean("demo", FunctionRegistration::class.java,
            FunctionRegistration(uppercase())
                .type(FunctionTypeUtils.functionType(String::class.java, String::class.java))
        )
    }
}

fun main(args: Array<String>) {
    FunctionalSpringApplication.run(AppFunctional::class.java, *args)
}

plugins {
	id("org.springframework.boot")
	id("io.spring.dependency-management")
	kotlin("jvm")
	kotlin("plugin.spring")
}

repositories {
	mavenCentral()
}

dependencies {
	implementation("org.springframework.boot:spring-boot-starter-webflux")
	implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
	implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
	implementation("org.springframework.cloud:spring-cloud-function-web")
	implementation("org.springframework.cloud:spring-cloud-function-kotlin")
	testImplementation("org.springframework.boot:spring-boot-starter-test")
	testImplementation("io.projectreactor:reactor-test")
}

dependencyManagement {
	imports {
		mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
	}
}

The Java version works perfectly in the same project with the same approach + same dependencies.
package tech.aaregall.lab;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.cloud.function.context.FunctionRegistration;
import org.springframework.cloud.function.context.FunctionalSpringApplication;
import org.springframework.cloud.function.context.catalog.FunctionTypeUtils;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.support.GenericApplicationContext;

import java.util.function.Function;

@SpringBootConfiguration
public class AppFunctionalJavaVersion implements ApplicationContextInitializer<GenericApplicationContext> {

    public static void main(String[] args) {
        FunctionalSpringApplication.run(AppFunctionalJavaVersion.class, args);
    }

    public Function<String, String> uppercase() {
        return String::toUpperCase;
    }

    @Override
    public void initialize(GenericApplicationContext context) {
        context.registerBean("demo", FunctionRegistration.class,
                () -> new FunctionRegistration<>(uppercase())
                        .type(FunctionTypeUtils.functionType(String.class, String.class)));

    }
}

As far as I could test forking the project adding kotlin.Function as supported type in FunctionTypeUtils will not be enough in terms of developer experience.
I have a working approach but it requires to use org.springframework.cloud.function.context.config.KotlinLambdaToFunctionAutoConfiguration.KotlinFunctionWrapper  to build the target function, which is particularly ugly as it is a class intended for Spring Boot bean definition approach.
@SpringBootConfiguration
class DemoKotlinFunctionalApplication : ApplicationContextInitializer<GenericApplicationContext> {

	fun uppercase(): (String) -> String  = String::uppercase

	override fun initialize(context: GenericApplicationContext) {
		val target = KotlinLambdaToFunctionAutoConfiguration.KotlinFunctionWrapper(uppercase())
		target.setName("uppercase")
		target.setBeanFactory(context.beanFactory)

		context.registerBean("demo", FunctionRegistration::class.java, Supplier {
			FunctionRegistration(target)
				.type(FunctionTypeUtils.functionType(String::class.java, String::class.java))
		})
	}
}

fun main(args: Array<String>) {
	FunctionalSpringApplication.run(DemoKotlinFunctionalApplication::class.java, *args)
}

Maybe KotlinFunctionWrapper could be externalized somehownform the auto configuration class.
If you have any idea/insights I can open a PR .

Any update on this?
Because this became major issue in our project after upgrading to kotlin 2.x.x and I had to rewrite lots of beans to use java functional interface.
Versions:
spring boot 3.0.13
spring cloud dependencies 2022.0.5

Any update on this?
Because this became major issue in our project after upgrading to kotlin 2.x.x and I had to rewrite lots of beans to use java functional interface.
Versions:
spring boot 3.0.13
spring cloud dependencies 2022.0.5

As OP, I discarded the functional bean definition approach when using Kotlin due this.
Instead, I spent effort on generating GraalVM native images with traditional bean definition, as my need was a fast startup.

As OP, I discarded the functional bean definition approach when using Kotlin due this.
Instead, I spent effort on generating GraalVM native images with traditional bean definition, as my need was a fast startup.

Yeah, well, that's not very convenient in terms of interoperability between kotlin and java.
I'd expect to get FunctionTypeUtils fixed to be a kotlin-friendly as well.
Why/How did you find extending the condition not sufficient?

Even if kotlin.Function is added as a supported type, functional bean definition would still need to make use of SCF Boot Autoconfig internal classes, which is a bit contradictory for me.
I coincide that would be nice to see this refactored, although personally I don't plan to contribute any longer to this topic specifically., at least in the short term.


fix bug for ZookeeperRegistryCenter.persist with utf-8

Coverage remained the same at 91.131% when pulling 7bde7e573a551418194fd49e2a95f16007cf2647 on yangl:patch-1 into 44747e5aa753db9408d38a5afcb6e01b79b9e95f on dangdangdotcom:master.

thank you for code contribute


[CWS] use time unit in retry timeout

What does this PR do?
The default unit of time.Duration is nanosecond.
This PR adds a time unit in retry calls where a time.Duration parameter didn't have one, increasing the retry delay by a factor of 1000.

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/merge


Bugs with renaming chart from "Edit Chart Properties"

There are two bugs related to renaming a chart from the Edit Chart Properties modal.
Expected results
Changing chart title from "Edit Chart Properties" should

Update chart title on Explore page when saving
Keep chart in any dashboard it was added to and update the chart title accordingly

Actual results

It does not update the chart title on the Explore page
It unexpectedly removes the chart from dashboards with this chart

How to reproduce the bug

Add Chart to a Dashboard

Click on "Explore chart"

Click on "Edit Chart Properties"

Change the chart name and save

Unexpected behavior 1: the chart title does not change

Unexpected behavior 2: on the dashboard page, the chart could not be found

Environment

superset version:  GitHub master @ 513bf10a38e10f5dc69f1a93fe28478df4f0b32d
python version: python --version
node.js version: node -v
npm version: npm -v

Checklist

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Renaming chart from the "Save" button on the top-left of Explore page does not have these unexpected behaviors.

Duplicate of #10528


Unhealthy container

I'm not smart enough to resolve this. The container shows unhealthy and a dig into it shows
curl: (7) Failed to connect to <IP_ADDRESS> port 80 after 0 ms: Connection refused
I made the 8080 change (I point host 1977 -> Container 8080) but hasnt fixed :(
I miss my blinken.

Hey :)
I dont have a compose file. I started it with this
docker run --restart=always --name=starwars --detach -p 1977:8080 modem7/docker-starwars:latest
and now I manage it with Portainer.

Hmmm, that should definitely work.
I'll have a play with it and investigate what's occurring.
I'll keep you updated.

SOLVED. A complete purge of image and container and a rerun of the docker setup resolved this.
Weird. Thanks modem7 :D

SOLVED. A complete purge of image and container and a rerun of the docker setup resolved this.
Weird. Thanks modem7 :D

Any time dude!
Do you run watchtower as well? It's an easier way to keep things up to date if you're not!
Glad it's all resolved with minimal tinkering!


Advanced paste "Paste as plain text" doesn't work with Right Alt, works only with Left Alt

Microsoft PowerToys version
0.81.0
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
Advanced Paste
Steps to reproduce
Use default Win + Alt + V shortcut to "paste as plain text" using Right Alt.
PowerToysReport_2024-05-24-19-49-22.zip
✔ Expected Behavior
Plain text should be pasted.
❌ Actual Behavior
Nothing happens. To "paste as plain text" you have to use only Left Alt. The shortcut with Right Alt doesn't work.
Other Software
No response

I'm closing as a duplicate of https://github.com/microsoft/PowerToys/issues/25433


Term merge: mitotic recombination involved in replication fork processing GO:1903211 (into parent)

Term to be merged: Provide GO ID and term label

mitotic recombination involved in replication fork processing GO:1903211
Any mitotic recombination that is involved in replication fork processing. PMID:23093942
merge into
GO:1990426
mitotic recombination-dependent replication fork processing
Biological Process
Replication fork processing that includes recombination between DNA near the arrested fork and homologous sequences. Proteins involved in homologous recombination are required for replication restart. PMID:23093942
I don't see a difference? and it does not have any siblings.

Only PomBase annotations....

[ ] GO:1903221 regulation of mitotic recombination involved in replication fork processing -> change label to 'regulation of mitotic recombination-dependent replication fork processing'
[ ] GO:0120291 negative regulation of mitotic recombination involved in replication fork processing -> change label to 'positive regulation of mitotic recombination-dependent replication fork processing'

just checking
negative regulation of mitotic recombination involved in replication fork processing -> change label to 'positive regulation of mitotic recombination-dependent replication fork processing'


Fix #13: multiple definition of variables

Fix issue #13: multiple definition of variables preventing successful compilation

Great report and thank you for providing a proposed fix!
It's technically correct, but seeing as this is rather serious I'd like to see a more comprehensive solution.  E.g. mode -> icmp_mode, ande mode -> ospf_mode instead of commenting it out.

LOL, that was my first though as well, but I started second guessing myself when I saw the other shared variables with externs.
I'll make the change later today and get you another pull request.

Awesome, thank you!
Nemesis is a (restoration) work in progress. Trust that gut feeling :)

Btw, you can force-push to this branch if you like, GitHub updates and it's a little less work for you.

I see, I have not used git force-push, but I will look into that.
Please review the latest pull request, let me know if that meets the need.


Check clboss version

How do I know what version of clboss is executed with cln .
I tried clboss --version but I do not get the clboss version.

clboss --version should work.  If you are in the build directory with the clboss binary, then ./clboss --version will work.  For more accurate information, see the C-Lightning logs --- there should be an entry much like:
2022-04-25T11:52:01.526Z INFO    plugin-clboss: clboss 0.11E

Thanks.


{{simple-upload}} component without dropzone that provides fileQueue / progress

Hi,
Currently I have done my own component that creates a queue manually, essentially using private APIs I guess? My use case is that I need only simple file upload button without dropzone but currently only the dropzone provides queue property.

@raido it may be poor documentation, but you can do this quite easily:
{{#file-upload name="avatar" accept="image/*" onfileadd=(action 'upload')}}
  Upload
{{/file-upload}}

Yes, but this component does not yield queue object where I could get progress property.

Ok, that's a helper that you can use:
{{(get (file-queue named="avatar") 'progress')}}%

Oh, I some how missed that. Thanks!


NRPE check reports OK although there are errors

We have an issue where part of the backup fails, but the NRPE doesn't notice it and happily returns "OK". The problem is, that the code looks for the ERROR key in the output json, however, this is what we got:
$ cat /var/lib/jujubackupall/auto_backup_results.json
{
[... working backups ...]
  "errors": [
    {
      "controller": "foundations-maas",
      "model": "openstack",
      "app": "mysql-innodb-cluster",
      "charm": "mysql-innodb-cluster",
      "error_reason": "JujuTimeoutError: Task 'mysqldump' timed out (timeout=1800)."
    }
  ]
}

I wonder where this change comes from? juju? Anyway, should be an easy fix

@marcusboden was this working as expected in the past (as in, did results with partial errors as in your example get picked up by NRPE)? Because I read through the code and it seems this behaviour hasn't changed since December 2021.
What should the expected behaviour be? I'm guessing it should be a critical failure even if a single backup failed?
Technical info:

The output json is written to file from auto_backup.py in this repo.

The json is generated by the juju-backup-all backup process, including the errors key.
However, the output with the ERROR key is written directly by auto_backup.py in this repo, if the juju-backup-all backup process raises an exception.

This does not appear to be new behaviour, at least not since december 2021.

We may have missed that since 2021, to be honest. Thankfully, we only need the mysql backups in the worst case scenario, so it did not have any impact so far.
But seeing that we essentially missed this for quite some time, I think we should have this go full CRITICAL. It's a backup failure in a backup charm, so essentially the charm doesn't work anymore at that point.


fix: fixed side social icon

Description

Modified layout/BlogLayout.js

Related issue(s)

Fixes #588

@fmvilas  please review my PR 🙂

@Samridhi-98 Sorry for intervening in between, but I think that the social icon component can be made sticky too so as it is now. We just need to specify the length for which it is to be made sticky. It can be done easily as we have done on docs layout. The component is right now only on top.

@Samridhi-98 Sorry for intervening in between, but I think that the social icon component can be made sticky too so as it is now. We just need to specify the length for which it is to be made sticky. It can be done easily as we have done on docs layout. The component is only on top right now.

I am unable to locate the actual file of the socials from where it's calling inside BlogLayout.js .

Yeah, it would be awesome if we can make it sticky. Not sure how though, the HTML is injected by the AddThis plugin so we have little or no control over it.

AddThis pl

Exactly my point we don't have enough control over the code of socials we can either make it sticky all the way down to the bottom or we just make its position absolute. The latter one is a better approach as it doesn't glitch out.

@Samridhi-98 I think I can make it sticky because the HTML code is under some of the classes. Maybe in the next PR, I can handle it because of the same thing I have done on docs page. If you want to do it, you can still. It's just a matter of a few more classes to be handled in the tailwind.

@Samridhi-98 I think I can make it sticky because the HTML code is under some of the classes. Maybe in the next PR, I can handle it because of the same thing I have done on docs page. If you want to do it, you can still. It's just a matter of a few more classes to be handled in the tailwind.

In docs the sidebar is a component whereas here we are injecting HTML code using a plugin inside the component.
So, will you please elaborate on how will you fix it using tailwind inside styles?

I am not sure this will work or not. As I haven't done it myself. What's my plan is to have 2 HTML Injectables, one above and below. One for web and second for mobile. Using flex, it will be in web, and in mobile, it's already at best.

@Samridhi-98 I am not sure this will work or not. As I haven't done it myself. What's my plan is to make it flex with the  main section, and then making it sticky. It's right now at bottom, in that case, you won't be able to make it sticky then. While making it sticky, many properties given in its id will be changes regarding top and bottom attributes.

@akshatnema  I followed your suggestion and implemented flex in the parent component but still, it didn't work as we do not have enough control over the AddThis plugin either we can make it sticky throughout the page or not at all.
Kindly, look into the code section to have a better understanding of the problem. 🙂

@Samridhi-98 Ok, I think you can carry on with this. I will be soon working on this via codebase if your PR gets merged. It may take time for me, to implement it correctly but I will be working on it.

@Samridhi-98 Yepp, I looked into the code of BlogLayout. It seems like we have no control over it. It is because the inbuilt class given to that script is having z-index of 100020, which is huge and it can overflow on any component on our website. It is sure that we can't remove that plugin and even can't make it inside main section. The only thing we can do is to disappear it when we scroll down. Still, I think this approach of disappearing is not a good solution. While I coded it on my local system, it look something odd to me as well. It's good to make it position:absolute only, so that the plugin only gets stuck to above at desired place. If required, I am attaching a preview of the approach that I coded.
Brilliant Solution @Samridhi-98 :+1:
https://user-images.githubusercontent.com/76521428/152742490-7ce59b6d-1425-43c4-a387-6b5d8b3bc252.mp4


IGNITE-23630 Store catalog object IDs as varints

https://issues.apache.org/jira/browse/IGNITE-23630

Why don't just let DataOutput implementation take care of compressing numerics in writeInt/writeLong method?

Does it make sense to write updateToken as VarInt ? Can we be sure it never be a kind of timestamp or large value?

I'm not sure, I was looking at the current situation. Are there any known plans of switching tokens from revisions to something (probably, less suitable for varints)? I'm not sure whether we should stick to varints here, to be honest, as they are used scarcely. If you believe just long is safer, let me know, I will change it back.


What processing is involved in transposing a dataframe?

Sorry, I know this is more of a question (and maybe platform-specific) than anything else, so apologies if this is not the right venue.
Consider a large dataframe. Does transposing it trigger full re-allocation of the data in memory? And if so, why?

if you have a single dtype, answer it is completely free. However if you have multiple dtypes it is a new object. As by-definition you are merging dtypes
e.g. single dtyped
In [1]: df = DataFrame(np.random.randn(10,2))

In [2]: df.dtypes
Out[2]:
0    float64
1    float64
dtype: object

In [3]: df.T.dtypes
Out[3]:
0    float64
1    float64
2    float64
3    float64
4    float64
5    float64
6    float64
7    float64
8    float64
9    float64
dtype: object

In [4]: df.T.values.base
Out[4]:
array([[ 0.30803004, -0.94232737],
       [ 1.50955313, -0.4455662 ],
       [-0.64048623,  0.51302425],
       [-0.60639251, -0.08951738],
       [-0.24218155,  0.70858808],
       [ 1.77053805, -1.15665856],
       [-1.39496727, -0.08894274],
       [ 0.67712795, -0.82811405],
       [-2.17665089,  0.05097208],
       [ 0.5035121 ,  1.36882624]])

multi dtype.
In [5]: df = DataFrame(np.random.randn(10,2))

In [6]: df[2] = 'foo'

In [7]: df.dtypes
Out[7]:
0    float64
1    float64
2     object
dtype: object

In [8]: df.T.dtypes
Out[8]:
0    object
1    object
2    object
3    object
4    object
5    object
6    object
7    object
8    object
9    object
dtype: object

In [9]: df.T.head()
Out[9]:
          0         1         2        3         4          5         6         7         8         9
0 -0.365722   0.17518  0.139114 -1.21657  0.656086  -0.970256  0.120641  -2.25137  0.536124   1.44172
1  0.381983 -0.889984 -0.781044   0.9548  -0.87885 -0.0581726  -1.26884 -0.215398  -1.14487 -0.393557
2       foo       foo       foo      foo       foo        foo       foo       foo       foo       foo

A DataFrame is like a dict of Series (not exactly but for this purpose its close enough). When you transpose you are creating new Series that encompass a row. Since a Series is single-dtyped it has to accomodate all things in that row.

This IS implementation specific. But unless you have a back-end that accommodate BOTH column storage & row storage then this is quite difficult.


Exception thrown on "ionic serve" running 'before:serve' for the cutePuppyPics app

Running 'serve:before' gulp task before serve
[11:11:34] Starting 'clean'...
[11:11:34] Finished 'clean' after 29 ms
[11:11:34] Starting 'watch'...
[11:11:34] Starting 'sass'...
[11:11:34] Starting 'html'...
[11:11:34] Starting 'fonts'...
[11:11:34] Starting 'scripts'...
[11:11:34] Finished 'html' after 322 ms
[11:11:34] Finished 'scripts' after 378 ms
[11:11:34] Finished 'fonts' after 506 ms
[11:11:37] Finished 'sass' after 3.45 s
Caught exception:
Error: watch null UNKNOWN
at exports._errnoException (util.js:893:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1296:21)

Ionic version -> 2.0.0-beta.33
npm version -> 3.8.6
Cordova version -> 6.3.0
Node version -> 5.12.0
PD: app is running with no problem despite the exception.

I think this is caused due to npm failing to install fsevents on OS other than macOS. This is npm warn about failing to install fs events:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>
this info might help:
https://github.com/nodejs/node/issues/7858

I'm having the same error, and the link posted by @juanf9224 appears to be invalid, or at least I can't access it. What I'm getting on the console after 'ionic serve' is:
`Running 'serve:before' gulp task before serve
[14:05:55] Starting 'clean'...
[14:05:56] Finished 'clean' after 988 ms
[14:05:56] Starting 'watch'...
[14:05:56] Starting 'sass'...
[14:05:56] Starting 'html'...
[14:05:56] Starting 'fonts'...
[14:05:56] Starting 'scripts'...
[14:05:58] Finished 'html' after 1.75 s
[14:05:58] Finished 'scripts' after 2.17 s
[14:05:59] Finished 'fonts' after 2.41 s
[14:06:11] Finished 'sass' after 14 s
events.js:154
throw er; // Unhandled 'error' event
^
Error: watch null UNKNOWN
at exports._errnoException (util.js:893:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1296:21) `
The app runs (after many repetitions of the same error) but livereload doesn't seem to work.
For information, I'm on a Windows PC
Your system information:
Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
OS:
Node Version: v5.12.0

indeed, the link is dead @papotte , at last i was able to avoid this error, i was using a network drive for my projects and was getting that error, but then i moved them to my local drive and the issue disappeared, maybe it's a problem with the network drive and not ionic's or npm's.


Add option for custom dialer function

From https://github.com/bradfitz/gomemcache/pull/86, amended to fix merge conflicts and one stylistic comment.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: bboreham:x: themihaiYou have signed the CLA already but the status is still pending? Let us recheck it.