Initial virtio-gpu support for dmabuf memory

If crosvm is compiled with working minigbm support then allocations are in video memory and cannot be used with Wl_shm. However, if minigbm support is not compiled in (or doesn't support the host's hardware) then crosvm falls back to allocating host memory. Host memory can ONLY be used with Wl_shm. Therefore, try to detect which case it is and use the appropriate API. Currently only test.ml uses this, not the proxy itself.
I couldn't get this to work reliably. The scrolling pattern has lots of glitches, as if some pixels aren't making it to the video memory (needs a cache flush?). I tried adding some sync calls (DMA_BUF_SYNC_END, etc), but that didn't help, and crosvm keeps crashing with:
[ERROR:src/linux.rs:2460] vcpu hit unknown error: Bad address (os error 14)

(line number might be a bit out as I added some debug prints)

(the glitches can be fixed by using __builtin_ia32_clflush, but it still crashes)


Reactive

Wow this is huge - would you have any summary of the changes (I can't easily distill the ideas behind from commit messages and the change is so huge that I won't dive into the code diff :wink:)?

Wow this is huge - would you have any summary of the changes (I can't easily distill the ideas behind from commit messages and the change is so huge that I won't dive into the code diff 😉)?

Yeh that's my bad for developing on other branches and waiting way to long to merge into main. I had this thought that features needed to be finished before merging to main but I'm going to change my development process going forward.
To answer your question, there are a lot of changes and I'll be honest I'm not sure I can even tell you exactly what's new, but the main things are:

New layout system (morphorm)
More built-in widgets (there's still some bugs but there's an example for each widget)
A 'reactivity' system which uses lenses to bind to data
Some API changes (I think most things are roughly the same, there's now a WindowDescription passed to Application)
Improved examples showing how to use most of the widgets
A WIP editor example that lets you try out some of the styling properties (much more to add to this)

There's also a ton of bug fixes. If you haven't seen it yet there's a 'quick start' guide I've put together which is up-to-date with the newest changes to tuix. From this point on I'll be making smaller commits directly to main (unless it's a breaking change) and produce some sort of change log. Feel free to ask any questions about features and I'll try and get the docs sorted.

Ah, thanks! And btw. I don't think there is any need to change the development process. Neither there is any strong need for a change log (if so, then maybe comments for each GitHub releas might be the least-friction solution).
It's just about being a huge change at one point in time. It's overwhelming.
Generally though the mantra "release early, release often" holds even for commits to master, so maybe what you're proposing will be the way to go :wink:. IDK.


relay: disable keep alive conns, they interact poorly with suspension

I expect the DisableKeepAlives change to eliminate the EOF / conn reset errors.  Without those errors we would never have found the re-read request body error, which is explicitly addressed by the new GetBody code.
A few justifications for the other changes:

remove all http.Transport timeouts.  These are generally to prevent "bad" upstream servers, but I think up should try to be as invisible as possible, including not adding additional http timeouts.  We do not know how people will use Up. Maybe they want to use it for delayed Continue responses.
remove specific GetBody code, this is already handled by http.NewRequest
Tests show new behavior for disabling keep-alives

@tj @berzniz another promising change for the contentlength errors, TBH the DisableKeepAlives is probably the entire fix.

Also, the reason the GetBody caused the 'no content' bug previously, was because internally http.NewRequest was type switching on the io.Reader passed as the body to set the ContentLength.  ioutil.NopReader was hiding that.  So, content length appeared to be 0 for all the requests.

Thanks @skabbes 7 @tj! I'm running the new version and will report if it fixed the issues.


added the css changes

kindly share website link you deploy in github

What is the update @deepbeatz

I have given the pr request, do I need to do anything else?

kindly share website link you deploy in github. Have you seen this message ?

i have already given the pr as u can see @rko0211 , what else do i need to do?

i have already given the pr as u can see @rko0211 , what else do i need to do?

Kindly share the website link . Read the README. Md file carefully

https://deepbeatz.github.io/jgec-previous-year-question-paper/
link to deployed branch

Hey can you make the buttons better because i have seen that you  have  change the Background color and add a transition in the button, It can be better i think. Thank you.

the button color was blue before which was looking bad and so i changed it to the official colour of the website and changes a bit of the hover animation.

the button color was blue before which was looking bad and so i changed it to the official colour of the website and changes a bit of the hover animation.

First of all this color is not official color of the website , and second it can be better ..

What is your update @deepbeatz


fix playback for soundcloud

Instead of scraping HTML we can parse pure JSON from SC API https://github.com/Walkyst/lavaplayer-fork/commit/2af9ed9dfe9cf9692617d6ffd15e20627df9788a


MDC data updates

Exact clone of #352. Plan is to merge into mdc-dev branch so that we can start adding fixes.

Looks like an import statement in test_export needs to be updated

Since we're merging this into mdc-dev going to suggest we go ahead despite broken tests.
Both code and tests will have to change significantly with new ml4gw tools like LocalWhitener / Dataloader, so I dont think its worth reworking them now just to have to again shortly

@alecgunny @wbenoit26 Expecting these tests to pass and this should be ready for review.
Recall that this PR is a branch off of #352, which implements chunked data loading and local whitening.
On top of that PR, this branch

Removes the first psd_length seconds of data from each segment due to psd burn in. This is also accounted for in the timeslide waveforms generation.
Fixes a bug in the inference project where some shifts were failing if there was leftover data smaller than the batch_size
Standardizes nomenclature -  kernel_length refers to length of data in seconds seen by neural network,  psd_length refers to length of data in seconds used to create psd for whitening. kernel_length + fduration seconds of data are whitened before fduration / 2 seconds are cropped from each end.

Important things that to note:

We need to write new tests for the train project. It didn't make sense to write these now, since we will soon start using the ml4gw dataloader / whitener.
I rewrote the export tests for the new inference deployment but would love a second eye on them
I removed the "hacky" way I was implementing the MDC's version of the SD calculation. I think this should be discussed / implemented in @wbenoit26 PR #362 that is looking to refactor how we do priors.


[BUG] Retry configuration not working

Mage version
0.9.66
Describe the bug
I am testing a pipeline, which I had configured to retry 2 times if it fails. But I see that on failure it does not retry.
I have created a pipeline, with a very simple block:
@custom
def transform_custom(*args, **kwargs):
    raise Exception("error")
    return {}

with the following retry_config in the pipeline metadata ( I have tried in the blocks metadata as well):
retry_config:
  delay: 1
  max_delay: 0
  retries: 2

When it fails, I don’t see that it is retrying to execute the task again.
I was waiting for this pipeline to run again as I had specified the retry configugration

To reproduce

Create a pipeline
Create a very simple block that raises an error
Execute the pipeline

Expected behavior
I would expect that when it fails, it would have the same behavior as when I manually click on retry, that I can see another run of that pipeline in the UI, to identify that it has failed, but to know that it has been executed again.
Screenshots
No response
Operating system

Docker ( locally and k8s)

Additional context
No response

It's because you set the max_delay to 0.


Error when debugging connection

I am encountering this when I go to debug an ESP8266 which is currently failing to connect (which is on v0.10 firmware, so somewhat unexpected in of itself, will investigate further). Cheers.
Traceback:
Environment:

Request Method: GET
Request URL: http://<IP_ADDRESS>/devices/6/debug_connection/

Django Version: 1.11.11
Python Version: 3.5.3
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'app.apps.AppConfig',
 'firmware_flash.apps.AppConfig',
 'gravity.apps.GravityAppConfig',
 'constance',
 'constance.backends.database',
 'huey.contrib.djhuey']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "/home/fermentrack/fermentrack/app/decorators.py" in _wrapped_view
  27.                 return view_func(request, *args, **kwargs)

File "/home/fermentrack/fermentrack/app/views.py" in debug_connection
  831.             connection_check, version_check, version_string = connection_debug.test_telnet(hostname)

File "/home/fermentrack/fermentrack/app/connection_debug.py" in test_telnet
  29.     tn = telnetlib.Telnet(host=hostname, timeout=3)

File "/usr/lib/python3.5/telnetlib.py" in __init__
  218.             self.open(host, port, timeout)

File "/usr/lib/python3.5/telnetlib.py" in open
  234.         self.sock = socket.create_connection((host, port), timeout)

File "/usr/lib/python3.5/socket.py" in create_connection
  712.         raise err

File "/usr/lib/python3.5/socket.py" in create_connection
  703.             sock.connect(sa)

Exception Type: OSError at /devices/6/debug_connection/
Exception Value: [Errno 113] No route to host

FYI: I did a restart of the access point, waited a few minutes and ESP didn't reconnect. Then did a hard reset of the ESP8266, and it started talking to fermentrack again.

This has been happening again lately - have done restarts of both my esp8266 controller and the fermentrack server to no avail. The LCD on the controller indicates it is still doing what it's supposed to. I include the most recent traceback below.
I went to the admin settings and changed the last cached ip address to what the controller LCD showed during it's most recent boot (they were different), and that fixed everything. So perhaps there is a more graceful way to handle unexpectedly changed IP addresses of controllers here. For the future I'll just set some DHCP reservations for my controllers. May be good to have a recommendation for static IPs somewhere if it doesn't already exist.

Request Method: GET
Request URL: http://<IP_ADDRESS>/devices/2/debug_connection/

Django Version: 1.11.13
Python Version: 3.5.3
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'app.apps.AppConfig',
 'firmware_flash.apps.AppConfig',
 'gravity.apps.GravityAppConfig',
 'constance',
 'constance.backends.database',
 'huey.contrib.djhuey',
 'raven.contrib.django.raven_compat']
Installed Middleware:
['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware',
 'raven.contrib.django.middleware.SentryMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/fermentrack/venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "/home/fermentrack/fermentrack/app/decorators.py" in _wrapped_view
  27.                 return view_func(request, *args, **kwargs)

File "/home/fermentrack/fermentrack/app/views.py" in debug_connection
  900.             connection_check, version_check, version_string = connection_debug.test_telnet(hostname)

File "/home/fermentrack/fermentrack/app/connection_debug.py" in test_telnet
  29.     tn = telnetlib.Telnet(host=hostname, timeout=3)

File "/usr/lib/python3.5/telnetlib.py" in __init__
  218.             self.open(host, port, timeout)

File "/usr/lib/python3.5/telnetlib.py" in open
  234.         self.sock = socket.create_connection((host, port), timeout)

File "/usr/lib/python3.5/socket.py" in create_connection
  712.         raise err

File "/usr/lib/python3.5/socket.py" in create_connection
  703.             sock.connect(sa)

Exception Type: ConnectionRefusedError at /devices/2/debug_connection/
Exception Value: [Errno 111] Connection refused


Linking Error

I followed all the steps mentioned here but get this error while trying to run quic-main.cc  fatal error: ns3/quic-module.h: No such file or directory
. Can you please help here?

put the quic module(https://github.com/SoonyangZhang/quic-on-ns3/tree/main/quic ) under src and build. ns3 will auto generate ns3/quic-module.h. The put the main file (https://github.com/SoonyangZhang/quic-on-ns3/tree/main/scratch) to scratch folder in ns3 and run "./waf build" again.
Jon Snow, you know nothing about ns3!

Yes, thank you. I realised I was doing this in ns3.40, I changed to ns 3.33, it does start including it but now I am unable to link the lquiche_shared. I can echo the LD_LIBRARY_PATH and it shows correct value,I manually made the symbolic link to libquiche_shared.so  but still ld lquiche_shared --verbose does not find the link, any thoughts?

Download quiche in release page and build it. Readme tells you tips.
---Original---
From: "Jashanjot @.>
Date: Tue, Oct 24, 2023 22:46 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [SoonyangZhang/quic-on-ns3] Linking Error  (Issue #13)
Yes, thank you. I realised I was doing this in ns3.40, I changed to ns 3.33, it does start including it but now I am unable to link the lquiche_shared. I can echo the LD_LIBRARY_PATH and it shows correct value,I manually made the symbolic link to libquiche_shared.so  but still ld lquiche_shared --verbose does not find the link, any thoughts?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

I tried that too, It had some string overflow errors so I made the shared library changes in this repo https://github.com/bilibili/quiche and built it, I am able to generate the libquiche_shared.so in my build folder, just the linking does not work for me

ld: mode elf_x86_64
attempt to open /usr/local/lib/x86_64-linux-gnu/libquiche_shared.so failed
attempt to open /usr/local/lib/x86_64-linux-gnu/libquiche_shared.a failed
attempt to open /lib/x86_64-linux-gnu/libquiche_shared.so failed
attempt to open /lib/x86_64-linux-gnu/libquiche_shared.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libquiche_shared.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libquiche_shared.a failed
attempt to open /usr/lib/x86_64-linux-gnu64/libquiche_shared.so failed
attempt to open /usr/lib/x86_64-linux-gnu64/libquiche_shared.a failed
attempt to open /usr/local/lib64/libquiche_shared.so failed
attempt to open /usr/local/lib64/libquiche_shared.a failed
attempt to open /lib64/libquiche_shared.so failed
attempt to open /lib64/libquiche_shared.a failed
attempt to open /usr/lib64/libquiche_shared.so failed
attempt to open /usr/lib64/libquiche_shared.a failed
attempt to open /usr/local/lib/libquiche_shared.so failed
attempt to open /usr/local/lib/libquiche_shared.a failed
attempt to open /lib/libquiche_shared.so failed
attempt to open /lib/libquiche_shared.a failed
attempt to open /usr/lib/libquiche_shared.so failed
attempt to open /usr/lib/libquiche_shared.a failed
attempt to open /usr/x86_64-linux-gnu/lib64/libquiche_shared.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libquiche_shared.a failed
attempt to open /usr/x86_64-linux-gnu/lib/libquiche_shared.so failed
attempt to open /usr/x86_64-linux-gnu/lib/libquiche_shared.a failed
ld: cannot find -lquiche_shared: No such file or directory
attempt to open /usr/local/lib/x86_64-linux-gnu/libquiche_shared.so failed
attempt to open /usr/local/lib/x86_64-linux-gnu/quiche_shared.a failed
attempt to open /lib/x86_64-linux-gnu/libquiche_shared.so failed
attempt to open /lib/x86_64-linux-gnu/quiche_shared.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libquiche_shared.so failed
attempt to open /usr/lib/x86_64-linux-gnu/quiche_shared.a failed
attempt to open /usr/lib/x86_64-linux-gnu64/libquiche_shared.so failed
attempt to open /usr/lib/x86_64-linux-gnu64/quiche_shared.a failed
attempt to open /usr/local/lib64/libquiche_shared.so failed
attempt to open /usr/local/lib64/quiche_shared.a failed
attempt to open /lib64/libquiche_shared.so failed
attempt to open /lib64/quiche_shared.a failed
attempt to open /usr/lib64/libquiche_shared.so failed
attempt to open /usr/lib64/quiche_shared.a failed
attempt to open /usr/local/lib/libquiche_shared.so failed
attempt to open /usr/local/lib/quiche_shared.a failed
attempt to open /lib/libquiche_shared.so failed
attempt to open /lib/quiche_shared.a failed
attempt to open /usr/lib/libquiche_shared.so failed
attempt to open /usr/lib/quiche_shared.a failed
attempt to open /usr/x86_64-linux-gnu/lib64/libquiche_shared.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/quiche_shared.a failed
attempt to open /usr/x86_64-linux-gnu/lib/libquiche_shared.so failed
attempt to open /usr/x86_64-linux-gnu/lib/quiche_shared.a failed

https://github.com/SoonyangZhang/quic-on-ns3/releases/tag/quiche
download it and build  it.
Then following each tips on ReadMe. Ok?
You are not the first to build this repo. There is no such error for others.

The issue btw is with ubuntu 22.04 itself, works perfectly on ubuntu 20.04

glad to hear that.


OverflowError: cannot fit 'int' into an index-sized integer

Traceback (most recent call last):
File "jumpcutter.py", line 108, in
sampleRate, audioData = wavfile.read(TEMP_FOLDER+"/audio.wav")
File "C:\Users\Juan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\scipy\io\wavfile.py", line 305, in read
data = _read_data_chunk(fid, format_tag, channels, bit_depth,
File "C:\Users\Juan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\scipy\io\wavfile.py", line 129, in _read_data_chunk
data = numpy.frombuffer(fid.read(size), dtype=dtype)
OverflowError: cannot fit 'int' into an index-sized integer
Hi, I don't have much programming experience. If anyone can help me, I'd really appreciate it!!

How big is your video? scipy doesn't like audio that's bigger than 2 hours.

Thank you for responding
It is 35 minutes long, the video is in 1280 x 720 at 20 frames/s. After the message I have in the program folder a TEMP folder with the frames of the video, a 23 seconds .wav file and a text file called params.txt with the following:
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil      56. 31.100 / 56. 31.100
libavcodec     58. 54.100 / 58. 54.100
libavformat    58. 29.100 / 58. 29.100
libavdevice    58.  8.100 / 58.  8.100
libavfilter     7. 57.100 /  7. 57.100
libswscale      5.  5.100 /  5.  5.100
libswresample   3.  5.100 /  3.  5.100

@jux310 just being curious, have you specified the --frame_rate argument? 20FPS is not that common, and it might have caused the trouble. Also, the last line of your response:

TEMP/input.mp4: No such file or directory

have you got the file named input.mp4?

How big is your video? scipy doesn't like audio that's bigger than 2 hours.

I have the same error and my audio is 3h+ long, do you have any idea on how to fix it?


Inat::Obs class length

Responds to part of #2397 by fixing the ClassLength offense via:

responding to @mo-nathan's suggestion to eliminate a repetitive pattern, and
using end-less method definitions.

There is no manual test.

coverage: 93.453% (+0.007%) from 93.446%
when pulling e4582e84482e23d16795ee33c34fb780ef96065b on jdc-inat_obs-class-length
into 2e1fb69599b743e7946134a49f99fd7d6bec42b8 on main.

Replaced by #2418


[New game]: A word scramble game.

🎮 Game Request
Game logic and basic description
In this game, a word will be scrambled and the user has to guess the word using the given hint in a limited time period. If the user enters the correct word the notification pops as "correct answer", it the timer goes off, the notification pops as "times up" and displays the correct answer.
Point down the features
-Pop notification system

Timer
Hints
Easy to understand
Fun

Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@kunjgit please assign this issue to me.

Hey @medhacodes !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

/assign

Hello @medhacodes, Time's Uppp!⏰
Sorry for closing your issue!
But it's more than a week since we haven't received anything from your side 😢 .
Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥
All the best! 🚀
Happy Hacking! 💗

Hey @medhacodes ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


✨ AMI validation

Summary
Users will want to be able to validate AMI images on their AWS accounts. Setup a way to validate their AMIs

Resolved in #419


An assertion in the method compute_perm is not doing what it should do

At the following line, https://github.com/mdeff/cnn_graph/blob/master/lib/coarsening.py#L210, you have the assertion assert len(indices[0] == M), but this is always true, because indices[0] is not empty and indices[0] == M produces another list of the same size as indices[0], so len(indices[0] == M) is always greater than zero.

Thanks. It should be assert len(indices[0]) == M right?

@mdeff To be honest, I don't know. It's been a long time since I tried it.


Negative species counts

Diffusion and Diffusion_SplitFine events seem to result in negative species counts on fine mesh

I believe I fixed this. Was a result of firing events before updating system_state in NRM.

Now I'm getting negative species counts from Reaction_SplitCoarse.

There was an error in the computation of the rate in Reaction_SplitCoarse.


Add a general object pool using a bitmap to track object usage

Problem
Memory pools are used by lots of components. Currently we have ObjectPool in system layer, but it is bind to system layer. We may need a general purpose object pool.
Summary of Changes
Add a header only BitMapObjectPool class. The class provides 2 APIs New, Delete, same as global new and delete for ordinary applications.

FWIW, Google submitted a family of these types of allocators. See https://github.com/project-chip/connectedhomeip/files/5262597/nldatastructures.zip in https://github.com/project-chip/connectedhomeip/issues/2748.

FWIW, Google submitted a family of these allocators. See https://github.com/project-chip/connectedhomeip/files/5262597/nldatastructures.zip in #2748

I took a look at those - they seem to be void-typed (C-compatible). I believe this proposal is more C++ style.

@gerickson - what would you propose as a path forward? Thiking of adding this as-is,  wait for the nldatastructures and adapt a C++ wrapper on top or use the data structures only without C++-isms (c-style only) or something else?
Generally I would prefer C++ for maintainability, however name mangling and templating can explode flash usage. Do we need some analysis on how many of these pools we need to decide if C++ or C?

FWIW, Google submitted a family of these allocators. See https://github.com/project-chip/connectedhomeip/files/5262597/nldatastructures.zip in #2748

I took a look at those - they seem to be void-typed (C-compatible). I believe this proposal is more C++ style.

@gerickson - what would you propose as a path forward? Thinking of adding this as-is, wait for the nldatastructures and adapt a C++ wrapper on top, use the data structures only without C++-isms (c-style only) or something else?
Generally I would prefer C++ for maintainability, however name mangling and templating can explode flash usage. Do we need some analysis on how many of these pools we need to decide if C++ or C?

The first instance of nlDataStructures were C++-heavy, "type safe", templated implementations. The explosion in flash usage made that approach untenable and the realization that you see today was the result.

@andy31415 @gerickson still debating?

I have a quick audit, current implementation doesn't expose any symbol or name into final binary. After link, all symbol will be resolved, and no RTTI or exception info is generated for the BitMapPool class. So it shouldn't increase flash usage.
For DEBUG build, assert will capture __FUNCTION__ where several strings are captured. But when build with NDEBUG there will be no extra overhead.

I have a quick audit, current implementation doesn't expose any symbol or name into final binary. After link, all symbol will be resolved, and no RTTI or exception info is generated for the BitMapPool class. So it shouldn't increase flash usage.
For DEBUG build, assert will capture __FUNCTION__ where several strings are captured. But when build with NDEBUG there will be no extra overhead.

I believe template code will only be instantiated when the code is used. If the current implementation just defines the template, it would not be part of the binary. I expect TestPool to have a single instantiation for the structure.
My understanding from the comments from Grant is that weave started off with C++ but it turned out to be flash-expensive hence the C-only implementation. So our choices seem to be:

use C-only
use C++ and arguing that 'there will be few types of pools and even then the code in the template is small enough to not make a material difference'

I would personally lean towards the C-only in this case, since if weave tried it and failed I am not sure we can argue that CHIP has a chance to do better. I would like to learn from the past.

I used godbolt.org to try out if it explodes (wanted the proof really) and we have:
int* add1(chip::BitMapObjectPool<int, 10> &p) {
    int* v = p.New();
    if (v == nullptr) {
        return nullptr;
    }
    *v = 123;
    return v;
}

void remove1(chip::BitMapObjectPool<int, 10> &p, int* v) {
    p.Delete(v);
}

int* add2(chip::BitMapObjectPool<int, 10> &p) {
    int* v = p.New();
    if (v == nullptr) {
        return nullptr;
    }
    *v = 123;
    return v;
}

void remove2(chip::BitMapObjectPool<int, 10> &p, int* v) {
    p.Delete(v);
}

results in 94 lines of assembly and changing add2/remove2 to use 20 instead of 10 for sizes results in 174 lines of assembly.
We can try to work around things, like making size not be part of the main template (have a non-template base class), however generally this does seem expensive if we will add a lot of memory pools.

I have a quick audit, current implementation doesn't expose any symbol or name into final binary. After link, all symbol will be resolved, and no RTTI or exception info is generated for the BitMapPool class. So it shouldn't increase flash usage.
For DEBUG build, assert will capture __FUNCTION__ where several strings are captured. But when build with NDEBUG there will be no extra overhead.

I believe template code will only be instantiated when the code is used. If the current implementation just defines the template, it would not be part of the binary. I expect TestPool to have a single instantiation for the structure.
My understanding from the comments from Grant is that weave started off with C++ but it turned out to be flash-expensive hence the C-only implementation. So our choices seem to be:

use C-only
use C++ and arguing that 'there will be few types of pools and even then the code in the template is small enough to not make a material difference'

I would personally lean towards the C-only in this case, since if weave tried it and failed I am not sure we can argue that CHIP has a chance to do better. I would like to learn from the past.

In truth the implementation was a bit of hybrid, rather than being purely C-only. Call it "C+", perhaps. ;-) But, yes, when we starting instantiating those templated allocators around the stack and system, the costs starting adding up quickly.

Tried out the NL-datastructures + and adapter for C++: https://godbolt.org/z/YdPhfs
nldatastructures have higher overhead to start with apparently, however adapters only increase the cost marginally (then again, my adapter does not really call proper constructors/destructors).
I would propose to use nldatastructures and add adapters and then remove adapters if they are high cost. Removing an adapter should be trivial as opposed to replacing an entire bitmap class.

This is a great reason, I'll port nldatastructures allocate instead. And make it more C++ style to improve readibility.
Closing this one.


ARROW-424: [C++] Make ReadAt, Write HDFS functions threadsafe

This also fixes the HDFS test suite to actually use libhdfs3 (it was not by accident)

+1


IDEA plugin: $MODULE_DIR$ macro behavior change & deprecation

IntelliJ IDEA 2018.1.4 changed the behavior of the $MODULE_DIR$ macro & deprecated it, providing 2 replacement macros: $MODULE_WORKING_DIR$ & $MODULE_IML_DIR$.
The IDEA plugin should be updated as necessary.
Per the 2018.1.4 release announcement:

Previously, the $MODULE_DIR$ variable always pointed to the directory containing .iml files.
However, projects imported from Gradle have the .iml file in the .idea directory.
The .idea directory normally shouldn’t be used as the working directory for running tests, as this can cause test failures. In order to avoid test failures in such cases, we now point the $MODULE_DIR$ variable to the module’s content root in case the .iml file is located in the .idea directory.
To avoid further misunderstanding, the $MODULE_DIR$ macro is deprecated.
We’ve introduced 2 new macros:
$MODULE_WORKING_DIR$ for module content directory.
$MODULE_IML_DIR$ for directory containing the .iml file.

We can't just change this, as it would be a breaking change for older IDEA versions. So we'd have to add an option to the plugin. I don't think that's worth it, as you are much better off using IDEA's importer instead of running gradle idea. There now is the idea-ext plugin, which extends the idea DSL to configure almost any detail of IDEA's importer.
@nskvortsov Can you keep that old variable around for some more time so users who still use gradle idea are not broken?

Note there is also a problem with MODULE_WORKING_DIR not working in run configurations: https://youtrack.jetbrains.com/issue/IDEA-194910


Dockerize Joomla

Your PR includes commits, which do not belong to Joomla. Please clean them and merge all Joomla's commit into one commit.
Thanks


chore: Disable fetching Universe Domain from MDS

See b/349488459 for more info.

I believe after discussion, this was done in https://github.com/googleapis/sdk-platform-java/pull/3272 instead.


"(BUG) keyToProtobuf: unsupported key type: Ed25519PublicKey" while executing a TokenCreateTransaction in a React Native app

The error "(BUG) keyToProtobuf: unsupported key type: Ed25519PublicKey" is thrown while attempting to execute a TokenCreateTransaction in a React Native app.
Additionally, in order to get the app to start cleanly, I had to explicitly add the following dependencies to my project due errors similar to this one:

error: Error: Unable to resolve module @stablelib/utf8 from<EMAIL_ADDRESS>@stablelib/utf8 could not be found within the project.

Additional dependencies:
"@improbable-eng/grpc-web": "^0.14.0",
"@stablelib/base64": "^1.0.1",
"@stablelib/hex": "^1.0.1",
"@stablelib/hmac": "^1.0.1",
"@stablelib/pbkdf2": "^1.0.1",
"@stablelib/sha256": "^1.0.1",
"@stablelib/sha384": "^1.0.1",
"@stablelib/utf8": "^1.0.1",
"google-protobuf": "^3.17.3",

Here's the code used to create the token transaction:
const privateKeyHex = jsonConfig.privateKey;
const privateKey:Ed25519PrivateKey = Ed25519PrivateKey.fromString(privateKeyHex);
const operatorPublicKey:PublicKey = privateKey.publicKey;

try {
    transactionResponse = await new TokenCreateTransaction()
        .setTokenName(name)
        .setTokenSymbol(symbol)
        .setMaxTransactionFee(maxTransactionFeeHbar)
        .setDecimals(decimalsBigNumber.toNumber())
        .setInitialSupply(initialSupplyBigNumber.toNumber())
        .setTreasuryAccountId(jsonConfig.accountId)
        .setAdminKey(operatorPublicKey)
        .setFreezeKey(operatorPublicKey)
        .setWipeKey(operatorPublicKey)
        .setKycKey(operatorPublicKey)
        .setSupplyKey(operatorPublicKey)
        .setFreezeDefault(false)
        .execute(client);
}
catch(err) {
    throw err;
}

I'm a bit confused, are you using the v1 SDK somehow? v2 SDK does not have Ed25519PrivateKey we've replaced that with Privatekey

Hey Daniel,
I could not figure out how to get the expected keypair using PrivateKey, and fortunately for me the Ed25519PrivateKey still worked with the right import statement. I can confirm I am using only the following with a clean install:

"@hashgraph/sdk": "^2.0.22",

The version using Ed25519PrivateKey will give me a public key (using derive2(0)) that matches the one the Ledger Nano provides. The new API does not as far as I have been able to tell. Please tell me if I am missing something or doing something incorrectly. I am not sure yet whether it's a mistake on my part or a bug in the SDK.
Here's an example:

mnemonic: tray trust alert balance rubber seat own use critic protect crucial license

I used this import:
import {Ed25519PrivateKey} from "@hashgraph/sdk/lib/crypto/Ed25519PrivateKey";
This method gives me the public key f3aec5b29a666a80c42652bc8528e2e831ba54fa0053aa39e4d9bd242ef281fc (which is what I expect and matches my previous golang implementation and will match what the Nano gives:
export async function mnemonicToPublicKey(mnemonic:string, passphrase = "") {
    const m:any = await Mnemonic.fromString(mnemonic);
    let pk:Ed25519PrivateKey = await Ed25519PrivateKey.fromMnemonic(m, passphrase);
    pk = await pk.derive2(0);
    const rawPublicKey:string = Buffer.from(pk.publicKey.toBytes()).toString('hex');
    console.log('rawPublicKey: ', rawPublicKey) //prints f3aec5b29a666a80c42652bc8528e2e831ba54fa0053aa39e4d9bd242ef281fc
    return rawPublicKey;
}

This version gives me an entire different public key:
export async function mnemonicToPublicKeyINCORRECT(mnemonic, passphrase = "") {
    const m:Mnemonic = await Mnemonic.fromString(mnemonic);
    const pk:PrivateKey = await m.toPrivateKey(passphrase);
    const schemePk:PrivateKey = await pk.derive(0);
    const rawPublicKey:string = Buffer.from(schemePk.publicKey.toBytes()).toString('hex');
    console.log('rawPublicKey: ', rawPublicKey) //prints: 63f8ca3239d20b93e2c3ad212e966736636654d63ce136a4219f2a7016008104
    return rawPublicKey;
}

I would love to know what I am doing wrong with the latter version.

Have you tried derive(0xFF)? I'll add a test for this, but this might be a place where a certain index needs to be provided for derive() to produce the same key.
Going to hijack this issue to test this.

@robkainz Did some quick testing, it's not obvious and we should really clear up the documentation, but to produce the same key in v2 you need to use PrivateKey.derive(-1). Unfortunately, I do not remember exactly why this is the case.

@danielakhterov Thank you for the quick response and suggested solution. I will try this and hopefully it will work, but just for the record, index 0 worked as expected for v2.1.3 of the API for the golang SDK. Ideally, IMHO, "derive(0)" would behave the same across all Hedera SDKs and because it doesn't, it means I now need to provide more extensive unit tests for this (and possibly other Hedera SDK keypair-related functionality?) that honestly should be outside the scope of my application development and should be handled by the SDK unit test suite instead. I personally think better care should be taken such that the interfaces to critical, keypair-related math functions are implemented uniformly across all Hedera SDKs to help inspire confidence to those developers, like myself, who have now used 3 or more Hedera SDKs.
 func MnemonicToPublicKey(mnemonic string, passphrase string) (string, error) {
 	m, err := hedera.MnemonicFromString(mnemonic)
 	if err!=nil {
 		return "", err
 	}
 	pk, err := hedera.PrivateKeyFromMnemonic(m, passphrase)
 	if err!=nil {
 		return "", err
 	}

	pk, err = pk.Derive(0)
	if err!=nil {
		return "", err
	}

 	raw := pk.PublicKey().Bytes()
 	rawEncoded := hex.EncodeToString(raw)
 	return rawEncoded, nil
 }

You're absolutely right. This is an area we could and should improve on. I completely agree that an index of 0 working on one SDK, but requires index of -1 in another is sub-optimal to say the least.

Hey @danielakhterov ,
I'm afraid your fix did not work. I modified my function to use the index -1 as you suggested, but I am still not getting the correct public key for this mnemonic phrase. Please re-open this defect.
export async function mnemonicToPublicKey(mnemonic, passphrase = "") {
    const m:Mnemonic = await Mnemonic.fromString(mnemonic);
    const pk:PrivateKey = await m.toPrivateKey(passphrase);
    const schemePk:PrivateKey = await pk.derive(-1);
    const rawPublicKey:string = Buffer.from(schemePk.publicKey.toBytes()).toString('hex');
    console.log('rawPublicKey: ', rawPublicKey)
    return rawPublicKey;
}

Here is the output I got:

[Mon Jun 28 2021 07:55:06.311]  LOG      rawPublicKey:  6ab342c5ef89b275477d99c56554076d1eb293605fb65b2b3d11fed02d48f047

The expected value for derive(0) is:

f3aec5b29a666a80c42652bc8528e2e831ba54fa0053aa39e4d9bd242ef281fc

for the mnemonic:

tray trust alert balance rubber seat own use critic protect crucial license


fix close-pull-request.yml failed

Description
fix #7141

Add permission
use GitHub CLI

Tested: https://github.com/totoprayogo1916/github-playground/pull/3
Checklist:

[x] Securely signed commits

Can you also update the following?

https://github.com/codeigniter4/CodeIgniter4/blob/develop/admin/framework/.github/workflows/close-pull-request.yml
https://github.com/codeigniter4/CodeIgniter4/blob/develop/admin/userguide/.github/workflows/close-pull-request.yml


can not run

This dependency was not found:

/Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx in multi<EMAIL_ADDRESS>./.docz/app/index.jsx, mult
i webpack-hot-client/client?6731d2ca-ad60-4d8d-9f75-d5d276c34a2f<EMAIL_ADDRESS>./.docz/app/index.jsx

To install it, you can run: npm install --save /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx

it throw an error when i delete .docz

I would recommend:
rm -rf .docz node_modules

Then npm install or yarn install and retry.
For these types of issues, please always include node version, npm/yarn version, and the verbose output of running docz.

I forgot it，sorry.
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>It works before I use indexHtml: './src/docz.html' ,but after ，the page is blank , so i delete .docz and use yarn docz dev ,  npm throw an error
 ERROR  Failed to compile with 2 errors
This dependency was not found:

* /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx in multi<EMAIL_ADDRESS>./.docz/app/index.jsx, mult
i webpack-hot-client/client?ef3d54ff-4c71-46b5-be0d-7e0806c2b5cc<EMAIL_ADDRESS>./.docz/app/index.jsx

To install it, you can run: npm install --save /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx

Hey guys, try to delete your node_modules and install it again. Then, re run the docz, can be happening because the last release 🙏

@pedronauck I've tried (I also removed .docz) folder - the problem still occurs

@krzysztofzuraw which version do you're using?

I've just updated to the newest - 0.12.12 and it fixed the issue - thank you 👏


Summary Reports - Feature request

Feature Request

Periodic communications
Outlier detection

Background

When using Prometheus Operator to monitor my cluster, I need to spot patterns
Anti Patterns and Effective Patterns
As the Budgeting personnel for a Kubernetes clusters, I need following

Prometheus graphs + Alert Manager alerts (Silenced/critical)

Cadence needs to be configurable

Daily
Weekly
Monthly

/feature-request

The Prometheus Operator project is about managing the lifecycle of Prometheus and Alertmanager servers. What you are looking for is a feature set that can be built around this, but is out of scope for this project.


Compile errors on Android target

Overview
When switching to Android for example, DictationInputManager.cs shows 3 errors in Unity:
CS0103	The name 'dictationRecognizer' does not exist in the current context
...
Expected Behavior
No errors to enable multiplatform development
Actual Behavior
3 errors, in DictationInputManager.cs, line 210 - 216
Steps to reproduce
Just import the MRT-Unity and the MRT-Unity-Sample project. Switch to Android
I fixed it by surrounding the method body with #if UNITY_WSA || UNITY_STANDALONE_WIN and a yield break; in the #else case.
Unity Editor Version
2018.1
Mixed Reality Toolkit Release Version
2<IP_ADDRESS>

This sounds like the issue that was resolved in https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/2275

Yes this sounds great. Sorry for inconvenience I searched for DictationInputManager only but not for the method name

No worries! Thanks for filing the issue!


use_global_score  use_dustbin

Are the results in the paper based on whether use_global_score and use_dustbin are true?

No, both of them are set to False.


Started working on BankAccount, UserManager, & User Class

I'm going to approve this so that we can hand it off to Derek to work on with his own branch. 🙂


Is there a reason err isn't triggered for non-200 responses?

I've expected err to be true if response.statusCode !== 200, but that's not the case with this library. So my error check lines tend to look like this:
if (err || response.statusCode !== 200) return done(new Error('Error updating case'))

Which is actually too long of a line for some readability standards, so it ends up taking up 3 lines:
if (err || response.statusCode !== 200) {
  return done(new Error('Error updating case'))
}

Is there a reason that err doesn't have anything to do with response.statusCode?

There sure is.
Simply put - xhr is implementing a subset of https://github.com/request/request api and request works that way.
There's also reasoning behind it - your http request was successful and all information is transfered without errors. The server responded and then closed connection (or not) as expected.
I know it's surprising at first because of how influential jquery was all those years, but for actual http request an error is when connection fails or breaks. Everything else is your http request working correctly, but the application may return a status code that describes status of the operation requested, not the http exchange.

Thanks for the background, makes sense.


Arrow not displaying head on second slide

I have a the following code in my slides.md file. But on the second slide it just shows the arrow line without the head. Am I doing something wrong?
---
theme: default
background: ''
class: 'text-center'
highlighter: shiki
info: |
  ## Slides
---

# Site1
<arrow x1="550" y1="150" x2="630" y2="200" color="#564" width="3" arrowSize="1" />

---

# Site2
<arrow x1="30" y1="160" x2="90" y2="220" color="#564" width="3" arrowSize="1" />

---

"dependencies": {
    "@slidev/cli": "^0.10.2",
    "@slidev/theme-default": "*",
    "@slidev/theme-seriph": "*"
  }

Works great 👍
Thank you


Dev se styles

Believe all changes in this branch were moved or dropped. Just closing out branch.

closing/archiving branch


Example of data transfer from server to client

@clbond First of all, thanks for this great repo ! It's the first SSR solution which works as advertised. Great work 👍
I am using on-demand SSR solution using Express. Its working great. I am trying to find a way to transfer some data from Express res.locals object to client through index.html, on page load. So, I can avoid an ajax call.
Is there an example, I can refer, where this might be possible ? Any help is greatly appreciated

This is described in detail in the readme. You just call ApplicationBuilder::stateReader and give it your state reader class. Read this: https://github.com/clbond/angular-ssr#state-transfer-from-server-to-client


android has posix_memalign for API 16+ since NDK r10d

See: http://developer.android.com/ndk/downloads/revision_history.html

@alexcrichton could you have a look?

Neat thanks! I'll merge this with a few others to land in one go (CI failures are spurious)

To link things up, landed in https://github.com/rust-lang-nursery/libc/pull/134


Update compileSdkVersion to fix android:attr/lStar not found

Pull request #1773 exists but was not merged for more than a month due to some configuration mistakes concerned by cla-bot, making #1774 unsolved for long.
This pull request includes exactly the same things of what #1773 included, aiming to speed up the merging of this important update, so that the "android:attr/lStar not found" error can be fixed when using Flutter SDK 3.24.

Is any update here ?

For those, who are looking for quick solution:
Add the following to the root-level android/build.gradle file:
subprojects {
    afterEvaluate { project ->
        if (project.hasProperty("android")) {
            project.android {
                compileSdkVersion = 31
            }
        }
    }
}

Make flutter clean

@cla-bot check

Can you approve the workflows? Thank you. @nirinchev

Pull request #1773 exists but was not merged for more than a month due to some configuration mistakes concerned by cla-bot, making #1774 unsolved for long.
This pull request includes exactly the same things of what #1773 included, aiming to speed up the merging of this important update, so that the "android:attr/lStar not found" error can be fixed when using Flutter SDK 3.24.

i have change my package realm to your github url, but still not working. i have issue and error like this
`Unhandled exception:
PathNotFoundException: Creation failed, path = '/Users/laptop/.pub-cache/git/realm-dart-f0b9af27f7b6fa913c45f720107975ceb7a82887/packages/realm/android/src/main/cpp/lib' (OS Error: No such file or directory, errno = 2)
#0      _checkForErrorResponse (dart:io/common.dart:55:9)
#1      _Directory.create. (dart:io/directory_impl.dart:109:9)

#2      InstallCommand.downloadAndExtractBinaries (package:realm_dart/src/cli/install/install_command.dart:76:7)

#3      InstallCommand.run (package:realm_dart/src/cli/install/install_command.dart:154:5)

#4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':realm:downloadRealmBinaries'.

Process 'command '/Users/legoas/fvm/versions/stable/bin/dart'' finished with non-zero exit value 255

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 22s
Error: Gradle task assembleDebug failed with exit code 1`

I think "OS Error: No such file or directory" is probably fault on your computer's side, and flutter clean and redo your task might help. But I'm not sure, it might be some other faults I had never seen. If you're willing to solve this before the official merge, I think the best way is to use the workaround from @Den-creator rather than pulling from my branch. Best regard.

For those, who are looking for quick solution:
Add the following to the root-level android/build.gradle file:
subprojects {
    afterEvaluate { project ->
        if (project.hasProperty("android")) {
            project.android {
                compileSdkVersion = 31
            }
        }
    }
}

Make flutter clean

Thank you for the configuration
The name of the project I specified used version 31 most, and it was finally compiled.(Specify that the mob library uses 31 SDK)
buildscript {
    ext.kotlin_version = '1.8.0'
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://mvn.mob.com/android"
        }
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "com.mob.sdk:MobSDK2:+"
        classpath 'com.google.gms:google-services:4.3.14'
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://mvn.mob.com/android" }
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}

subprojects {
    afterEvaluate { project ->
        if (project.hasProperty("android")) {
            project.android {
                // Specify that the mob library uses 31 SDK
                if (project.name.contains("mob")) {
                    compileSdkVersion 31
                    buildToolsVersion "31.0.0"
                } else {
                    compileSdkVersion 34
                    buildToolsVersion "34.0.0"
                }
            }
        }
    }
}

subprojects {
    project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}


⚠ Bofrost.lu has degraded performance

In 73caf08, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2286 ms

Resolved: Bofrost.lu performance has improved in ee20f7a after 1 hour, 50 minutes.


Content: Key Word Cipher

Description
Add the article for Key Word Cipher. Use the following structure:

Introduction
Explanation
Algorithm
Code
Sample I/O
Complexity Analysis

@HarshCasper, please assign this issue to me under gssoc21.


Implement KingfisherIntegration

Hi,
Here is a network integration for Kingfisher (http://onevcat.github.io/Kingfisher) !
I hope this is useful to you.

Thanks for the feedback. I'll make those changes.

Going to merge and make these changes.

Awesome, thanks!  Sorry I didn't get back to this in time.


The use of synchronised Accounts from AD

Hi there, can you please clarify whether this functionality works with accounts that have been synchronised to Azure AD from an on-premise AD via Azure AD Connect? I would like to manage the groups internally on our AD and then synchronise the membership up. So far I have been able to set the object but no users seem to pick up the rights...

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

ID: 4cd7a703-534a-5fbd-6470-5d29bf512fd2
Version Independent ID: 4f70ed16-6a1c-c0be-3c5e-d56e1b7c7275
Content: Configure group settings using PowerShell in Azure Active Directory
Content Source: articles/active-directory/users-groups-roles/groups-settings-cmdlets.md
Service: active-directory
GitHub Login: @curtand
Microsoft Alias: curtand

Sorry I should clarify I am trying to use a Synchronised Security group from AD.

@robfinney I would request you to open ,a new MSDN forum post to get assistance on your scenario. Community will help address your query. Please refer to below link to MSDN forum to ask new question - https://social.msdn.microsoft.com/Forums/azure/en-US/newthread?category=windowsazureplatform&forum=WindowsAzureAD&prof=required
Please refer the open MSDN thread here and I will make user that you are been helped in MSDN.

@robfinney We will now proceed to close this thread. As already suggested, please refer the open MSDN thread here and I will make user that you are been helped in MSDN.


Make the highlights a bit lighter in dark mode

Clear and concise description of the problem
I love the theme, but wish the selections of item were a bit brighter so I could tell I was actually selecting an item.
Suggested solution
Make the highlight or selection a bit brighter in dark mode.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

1： Under the dark theme, highlight more prominently when selected
[](https://github.com/antfu/vscode-theme-vitesse/pull/29)

In dark mode I could barely see the background color I was selecting, which made it hard to know what I was choosing.

I agree, I love this theme, but it is really tough to see what file is currently selected in the navigation bar.
And thanks for creating this! I really enjoy it.


SNMP configuration is ignoring the cidrs and ignore_list settings

Hello all,
i just noticed, that the ktranslate for the snmp discovery is not respecting the cidrs and the ignore_list attributes.
It seems to do the snmp discovery in the full network and does not care about my CIDRs I have listed there.
Example:
discovery:
  cidrs:
  - <IP_ADDRESS>/32
  - <IP_ADDRESS>/32
  ignore_list:
  - <IP_ADDRESS>
  - <IP_ADDRESS>
  - <IP_ADDRESS>
  check_all_ips: false

I do see in the docker logs, that snmp is using an ignored host: KTranslate Client SNMP: Running SNMP for <HOSTNAME> on <IP_ADDRESS>
I'm using the latest version of kentik's ktranslate docker image v2.
Any help is very appreciated.

Would it be possible to get logs which look like this from your discovery process?
2023-05-22T09:54:42.345 ktranslate/ [Info] KTranslate Discovering SNMP devices on <IP_ADDRESS>/32.
2023-05-22T09:54:45.354 ktranslate/ [Info] KTranslate Starting to check 1 ips in <IP_ADDRESS>/32
...
2023-05-22T09:54:48.372 ktranslate/ [Info] KTranslate 1/1) Host found at <IP_ADDRESS>, Manufacturer: , Name:  -- now attempting checking snmp connectivity

Anything which has the Discovering SNMP or Starting to check strings. Also any lines like Host found at
This config above looks like it should work for you and it is working for me so we'll need to dive in more.

@i3149 thx for the reply. I managed it to get it to work to completely whipe the config and restart with a fresh setup.
Now I see only the expected devices showing up in the logs.

@wuetz -- weird -- if it happens again please open this back up. Thanks for reporting!

HI, This is a follow up to https://github.com/kentik/ktranslate/issues/567
We are still seeing icmp metrics (below) with the incorrect dynamic tag values for the following metrics
We're using the latest version of kentik's ktranslate docker image v2. and snmpwalk shows the correct value for the dynamic tags
kentik.ping.AvgRttMs
kentik.ping.MaxRttMs
kentik.ping.MinRttMs
kentik.ping.PacketLossPct
kentik.ping.PacketsRecv
kentik.ping.PacketsSent
kentik.ping.StdDevRtt


Improve quality, add services enabling/disabling variable

Hi,
i submitted a PR (see https://github.com/oxedions/bluebanquise/pull/31) containing the following changes :
Major changes :

Add boolean to disable all services (HA)
Implement tags + tag uniformisation (package, template, service)
Implement handlers

Minor changes :

Use new package module syntax (using list in name instead of loops)
Replace some "with_X" by loop
Minor fixes

The issue https://github.com/oxedions/bluebanquise/issues/19 can also be updated (contribution guidelines should be updated before closing)

Dear @bouriquet15
Many thanks.
Could you also add a way to disable services start/restart/stop ? So absolutely no services managements.
If you need, I can do it on my side.
Ox

Hey,
PR updated with service state handling + some minor fixes

Hello,
Many thanks.
Reviewed, and ok.

And release 1.1.1 is out ;-)
Many thanks. I hope github will add you as contributor automatically, we will see soon.


adding angular2-chat-app example

This has been moved to https://github.com/rethinkdb/horizon/pull/436


[BGP Control Plane] - k8s followups

This pull-request addresses the Kubernetes related follow up items in: #19376
BGP Control Plane Followups: Conditionally load CRDs, tune back relist interval for shared informers, server side filter nodes.

@aanm I removed the resync interval by making it 0, I believe that's how I tell the constructor "don't resync" but correct me if I'm wrong.

/test

I guess the file should be renamed to pkg/k8s/apis/cilium.io/v2alpha1/bgp_types.go instead of pkg/k8s/apis/cilium.io/v2alpha1/bgpp_types.go?
bgpp_types.go is "BGP Policy" types, bgpp is the abbreviation in the k8s cli.

/test

It's currently failing with known flakes. Merging


Slides : lockSwipes() blocks slideNext()

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Currently, calling the method lockSwipes() disable the possibility for the user to swipe from one slide to the other.
The issue is that it disables to programmaticallyswipe to another slide with slideNext().
Expected behavior:
The method locSwipes() should only block user interaction, not slide change from code.
Steps to reproduce:
Here is a plunker that shows the issue : http://plnkr.co/edit/t2On2LcYIrTSQQQRw7D1?p=preview
Related code:
See the plunker above.
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.2
Xcode version: Not installed

I've found a workaround until these methods are correctly implemented.
The swager doc mentions the css class "swiper-no-swiping" to use to disable user manual swiping.
It works if we had it directly on the .
Could be nice to mention it in Ionic docs since it can be usefull in quite a lot of case (especially if yo use page wide slides AND a side menu).

Any word on this?

I am actually experiencing this too. Might have to settle for something in the range of the .slideTo instead of .slideNext if this isn't fixed. Lets see if that will work instead,

Apparently you could do unlock -> swipe -> lock in your code. Seems to be the only way this can work.

As stated before, just add the class "swiper-no-swiping" to the <ion-slide> element instead of using the lockSwipes() method.
This class will disable manual swiping from user and still allow you to use slideTo/slideNext methods to programmaticaly change slides.

I tried the unlock -> slideNext() -> lock pattern and it doesn't appear to work as expected.  Unlock works, but after locking then unlocking, slideNext() doesn't seem to work ever again.  I'll try the swiper-no-swiping approach next.

Using <ion-slide class="swiper-no-swiping">  worked perfectly as a workaround.
The  .lockSwipes(true) also disables Autoplay.

This is still an issue in v3.3

Same Question here!!
how can we call this:

Oh, no reason to thumbs down @soumak77 comment.
It's useful to know that this is still an issue not fixed by another ticket fix, still at v3.3, 3 sub-versions later.
Seems that the Ionic Components are becoming bigger and more complex to maintain along the Ionic core project itself.

@danielehrhardt this is from the swiper documentation. It explains that that property allows you to set the "swiper-no-swiping" class if set to true (default). I'm not really sure why this needs a fix the workaround seems to be exactly how to accomplish this according to swipers docs. However, maybe Ionic should update their docs to say that this is how to handle it.

@jgerstle This issue does need a fix because adding manually a css class is NOT a good practice in this case.
This css class comes from a third-party library whose version is not set by the user, so if Ionic choose to upgrade swiper version and this change this class, it could break our application without us knowing.
As you just said, there is a workaround.
A proper API shouldn't need a workaround.


[Bug]: Tests are broken --experimental_split_coverage_postprocessing

What happened?
With bazel 6.1.0, run a test with code coverage with RBE and flags:

--remote_download_minimal
--experimental_split_coverage_postprocessing
--experimental_fetch_all_coverage_outputs
And see an error like

EDIT: This bug is reproducible locally, with the above flags
FATAL: the entry_point '$BAZEL_OUTPUT_BASE/sandbox/linux-sandbox/17885/execroot/$REPO_NAME/bazel-out/k8-fastbuild/bin/...TARGET_PATH.../../aspect_rules_js/js/private/coverage/coverage.js' not found in runfiles

Version
Development (host) and target OS/architectures:
Output of bazel --version: 6.1.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
3530bb64176cdbd54fec772bda646a76a6249655
How to reproduce
No response
Any other information?
No response

Looks like @thesayyn likely knows this the best, https://github.com/aspect-build/rules_js/pull/238

I think its this line here,
https://github.com/aspect-build/rules_js/blob/809ce7f1c52bc6eb55afcec94bcf97acc1f8cdb1/js/private/js_binary.bzl#L461-L463
I think that by using --experimental_split_coverage_postprocessing that Bazel allows the custom lcov_merger binary to handled properly. At action-time, I see the coverage.js in the merger.runfiles tree, but not in the test.runfiles tree.

I am able to workaround the issue by conditionally selecting the proper runfiles tree after the shared runfiles code picks the wrong one. I don't think this is the right solution, but it does fix the issue and allow for use with/without experimental_split_coverage_postprocessing.
01-fix-coverage-split-action-issue-965.patch


Issue 29 calculation electronic ground state energy for  H2

I hope you enjoy this work about a molecular calculation using hierarqcal

Hey @andresulea this is great! I really like the thorough explanation and notebook as a whole. I'm thinking of merging ideas from both this and the other PR by Gopal-Dahale into one notebook to function as a tutorial.
Unfortunately I will be awarding the bounty to Gopal-Dahale, he was first to submit a PR and the way he uses the masking primitive showcases a part of the package that I've been meaning to elaborate on more. Don't worry though, I'll see if I can make a plan to reward you for the work here, as it is a valuable contribution to the package (I hope there's more in the future also ;)).
I'll bounce some ideas of you when I start merging the two notebooks, but for the time being thanks!

Hey @matt-lourens  I'm glad you liked it. I kept working on this project to improve the precision of the results and I got it with fewer qubits. I think these new results would help you build a better notebook you have in mind. I will explain how I got it: instead of using the Jordan-Wigner transformation to obtain the qubit operator , it is better to use the parity transformation. What is necessary is that the circuit must be modified since with this transformation only 2 qubits are used. I attached the circuit that I proposed that I also built using hierarqcal and the result. If you like, I could also do a new PR of this notebook with these new modifications, I have no problem.


[UI] Ensure a consistent experience across browsers and OS

As a PM, I want to ensure we have a consistence experience across browsers and operating systems
So that the users have a seamlessly experience
Acceptance Criteria

Conduct a thorough testing on the most used browsers and OS ( check dashboard telemetry for most used browsers)
Depending on findings, triage and work on fixes.

Moving to the next milestone as we improve our testing coverage & automation

When resizing the screen, the Query Runner and Response sections do not resize properly

#1561 This was on all browsers and has been fixed

Sidebar grey color is not consistent through out the whole sidebar length. This is intermittent in all browsers

Resizing the request section makes the response section overflow to the rest of the page


Instructor Page: Testing issues

Enrolled students not incrementing.

Closing it as we ll raise individual issues.


Added randomized version of quicksort

I am closing this pull request. The current directory structure has been changed. Fork the new repo with the new directory structure. Insert the files in the new directory structure along with the appropriate readme's. Then create a new Pull Request.


test: Test mods for labeler [do not merge]

This is just to test the updated labeler config file after the v5 change.
What is the purpose of the change

Add a description of the overall background and high level changes that this PR introduces

N/A
Testing and Verifying
N/A - verifying the labeler works properly now that it is in main.
Documentation and Release Note

[ ] Does this pull request introduce a new feature or user-facing behavior changes?
[ ] Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

[ ] Specification (x/{module}/README.md)
[ ] Osmosis documentation site
[ ] Code comments?
[x] N/A

It works!


Running Run-ALValidation from another container fails on New-BCContainer with error "Error trying to establish session, retrying in 5 seconds"

We switched to using containerized Azure DevOps agents and since that, running Run-ALValidation fails on New-BCContainer step with error "Error trying to establish session, retrying in 5 seconds".
After the research, I have found, that there is one step missing when filesOnly switch is combined with running the script inside container, because it will never run configuration for winrm because this.
Bare script to run inside container which lead to the problem:
    $password = 'randompassword'
    Write-Host "admin/$password"
    $credential= (New-Object pscredential 'admin', (ConvertTo-SecureString -String $password -AsPlainText -Force))

    $Parameters = @{
        "accept_eula" = $true
        "accept_insiderEula" = $true
        "containerName" = 'Test'
        "artifactUrl" = 'https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.2.20227.21047/cz'
        "useGenericImage" = 'mcr.microsoft.com/businesscentral:ltsc2022-dev'
        "Credential" = $credential
        "auth" = 'UserPassword'
        "updateHosts" = $true
        "vsixFile" = 'https://ms-dynamics-smb.gallerycdn.vsassets.io/extensions/ms-dynamics-smb/al/13.0.1027618/1716970921654/Microsoft.VisualStudio.Services.VSIXPackage'
        "EnableTaskScheduler" = $true
        "AssignPremiumPlan" = $true
        "MemoryLimit" = '16GB'
        "FilesOnly" = $true
    }

    New-BcContainer @parameters

Output of the script:
admin/randompassword
BcContainerHelper is version 6.0.17
BcContainerHelper is running as administrator
HyperV is Enabled
Host is Microsoft Windows Server 2022 Standard - 10.0.20348.2461
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 26.1.3
Docker Server Version is 26.1.3
Removing Session BCFdkr-agent6
Removing container BCFdkr-agent6
Removing entries from hosts
Removing BCFdkr-agent6 from container hosts file
Removing BCFdkr-agent6-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\BCFdkr-agent6
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2022-dev
Creating Container BCFdkr-agent6
Style: sandbox
Multitenant: Yes
Version: 24.2.20227.21047
Platform: 24.0.20984.0
Generic Tag: <IP_ADDRESS>-dev
Container OS Version: 10.0.20348.2527 (ltsc2022)
Host OS Version: 10.0.20348.2461 (ltsc2022)
WARNING: Container and host OS build is 20348 or above, defaulting to process isolation. If you encounter issues, you could try to install HyperV.
Using process isolation
Using locale cs-CZ
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\BCFdkr-agent6\Microsoft.VisualStudio.Services.VSIXPackage.vsix
Additional Parameters:
--expose 5986
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\BCFdkr-agent6\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- HelperFunctions.ps1
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container BCFdkr-agent6 from image mcr.microsoft.com/businesscentral:ltsc2022-dev
5f3a30569c167eb32d4247662641907b0d5cebbceb6b8b82861c8d069b24f32a
Waiting for container BCFdkr-agent6 to be ready
Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.2.20227.21047/cz
Using installer from C:\Run\240
Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\24.2.20227.21047\cz, platformArtifactPath=c:\dl\sandbox\24.2.20227.21047\p
latform, databasePath=c:\dl\sandbox\24.2.20227.21047\cz\BusinessCentral-CZ.bak, licenseFilePath=c:\dl\sandbox\24.2.20227.21047\cz\Cronus.bclicense, rebootContainer=True
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\24.2.20227.21047\platform\ServiceTier\Program Files
c:\dl\sandbox\24.2.20227.21047\platform\ServiceTier\System64Folder
Copying Web Client Files
c:\dl\sandbox\24.2.20227.21047\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\24.2.20227.21047\platform
c:\dl\sandbox\24.2.20227.21047\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\24.2.20227.21047\cz\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\24.2.20227.21047\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\24.2.20227.21047\cz\Extensions
Copying Applications
C:\dl\sandbox\24.2.20227.21047\platform\Applications
Copying Applications.CZ
C:\dl\sandbox\24.2.20227.21047\cz\Applications.CZ
Copying dependencies
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 8 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from BCFdkr-agent6
Cleanup old dotnet core assemblies

Then, when you try to connect/run script on the container (or anything what is getting the container session):
Get-BcContainerSession -containerName Test

will lead to this error:
New-PSSession : [Test] Connecting to remote server Test failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is
enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.17\ContainerHandling\Get-NavContainerSession.ps1:80 char:32
+ ...  $Session = New-PSSession -ConnectionUri "https://$($containerName):5 ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed

I was able to track the source of the problem to this line: https://github.com/microsoft/navcontainerhelper/blob/b2410696c2c9ce68b63f3ef1a65c0c09d0c58ed1/ContainerHandling/New-NavContainer.ps1#L1591

Because we are inside container, when this runs, this code will be executed and will fill the code into my\additionalsetup.ps1 file. But it will be not executed because we have filesOnly switch, which will prevent running navstart.ps1 which runs inside the my\additionalsetup.ps1. This lead to error because right after the new-bccontainer there is invoke-scriptinbccontainer (which runs get-bccontianersession inside). See https://github.com/microsoft/navcontainerhelper/blob/b2410696c2c9ce68b63f3ef1a65c0c09d0c58ed1/AppHandling/Run-AlValidation.ps1#L286
I can do workaround but I do not know how to fix the code, because I do not know the context why the code is written like that.
 Docker might not be started, not installed or not running Windows Containers. If Docker Desktop is already installed, open the system tray, right-click on the Docker icon, and select 'Switch to Windows containers...'
2024-06-19T12:50:23.6943572Z Docker Client Version is 26.1.4
2024-06-19T12:50:23.6961217Z Docker Server Version is 26.1.3
2024-06-19T12:50:24.2928896Z Removing Desktop shortcuts
2024-06-19T12:50:24.8439265Z Fetching all docker images
2024-06-19T12:50:25.0041355Z Fetching all docker volumes
2024-06-19T12:50:25.5052778Z Using image mcr.microsoft.com/businesscentral:ltsc2022-dev
2024-06-19T12:50:26.1204979Z Creating Container BCAppsdkr-agent2
2024-06-19T12:50:26.1216772Z Style: sandbox
2024-06-19T12:50:26.1228344Z Multitenant: Yes
2024-06-19T12:50:26.1243407Z Version: 24.2.20227.20970
2024-06-19T12:50:26.1257731Z Platform: 24.0.20957.0
2024-06-19T12:50:26.1275412Z Generic Tag: <IP_ADDRESS>-dev
2024-06-19T12:50:26.1328125Z Container OS Version: 10.0.20348.2527 (ltsc2022)
2024-06-19T12:50:26.1339807Z Host OS Version: 10.0.20348.2461 (ltsc2022)
2024-06-19T12:50:26.1582268Z WARNING: Container and host OS build is 20348 or above, defaulting to process isolation. If you encounter issues, you could try to install HyperV.
2024-06-19T12:50:26.1593558Z Using process isolation
2024-06-19T12:50:26.1624579Z Using locale cs-CZ
2024-06-19T12:50:26.1674683Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2024-06-19T12:50:26.2314177Z Downloading C:\ProgramData\BcContainerHelper\Extensions\BCAppsdkr-agent2\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2024-06-19T12:50:54.2817304Z Additional Parameters:
2024-06-19T12:50:54.2842198Z --env customNavSettings=EnableTaskScheduler=True
2024-06-19T12:50:54.2852669Z Files in C:\ProgramData\BcContainerHelper\Extensions\BCAppsdkr-agent2\my:
2024-06-19T12:50:54.2912477Z - AdditionalOutput.ps1
2024-06-19T12:50:54.2924485Z - AdditionalSetup.ps1
2024-06-19T12:50:54.2939959Z - HelperFunctions.ps1
2024-06-19T12:50:54.2951799Z - MainLoop.ps1
2024-06-19T12:50:54.2966826Z - SetupVariables.ps1
2024-06-19T12:50:54.2980357Z - updatehosts.ps1
2024-06-19T12:50:54.2993783Z Creating container BCAppsdkr-agent2 from image mcr.microsoft.com/businesscentral:ltsc2022-dev
2024-06-19T12:50:54.6004601Z b4d099c486c22216cbb578dda679a2c2418e93dfe9d4d5a77e12462f299e7d76
2024-06-19T12:50:57.4400264Z Waiting for container BCAppsdkr-agent2 to be ready
2024-06-19T12:51:01.0433263Z Adding BCAPPSDKR-AGENT to hosts file
2024-06-19T12:51:01.0434161Z Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.2.20227.20970/cz
2024-06-19T12:51:02.1734076Z Using installer from C:\Run\240
2024-06-19T12:51:02.1735669Z Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\24.2.20227.20970\cz, platformArtifactPath=c:\dl\sandbox\24.2.20227.20970\platform, databasePath=c:\dl\sandbox\24.2.20227.20970\cz\BusinessCentral-CZ.bak, licenseFilePath=c:\dl\sandbox\24.2.20227.20970\cz\Cronus.bclicense, rebootContainer=True
2024-06-19T12:51:02.1736406Z Installing from artifacts
2024-06-19T12:51:02.1736640Z Copying Service Tier Files
2024-06-19T12:51:03.3732754Z c:\dl\sandbox\24.2.20227.20970\platform\ServiceTier\Program Files
2024-06-19T12:51:03.3733565Z c:\dl\sandbox\24.2.20227.20970\platform\ServiceTier\System64Folder
2024-06-19T12:51:03.3733883Z Copying Web Client Files
2024-06-19T12:51:05.7211311Z c:\dl\sandbox\24.2.20227.20970\platform\WebClient\Microsoft Dynamics NAV
2024-06-19T12:51:05.7211778Z Copying ModernDev Files
2024-06-19T12:51:05.7212021Z c:\dl\sandbox\24.2.20227.20970\platform
2024-06-19T12:51:05.7212362Z c:\dl\sandbox\24.2.20227.20970\platform\ModernDev\program files\Microsoft Dynamics NAV
2024-06-19T12:51:05.7212656Z Copying additional files
2024-06-19T12:51:05.7212897Z Copying ConfigurationPackages
2024-06-19T12:51:05.7214425Z C:\dl\sandbox\24.2.20227.20970\cz\ConfigurationPackages
2024-06-19T12:51:05.7214782Z Copying Test Assemblies
2024-06-19T12:51:05.7215050Z C:\dl\sandbox\24.2.20227.20970\platform\Test Assemblies
2024-06-19T12:51:05.7215308Z Copying Extensions
2024-06-19T12:51:05.7215573Z C:\dl\sandbox\24.2.20227.20970\cz\Extensions
2024-06-19T12:51:05.7217331Z Copying Applications
2024-06-19T12:51:06.9813203Z C:\dl\sandbox\24.2.20227.20970\platform\Applications
2024-06-19T12:51:06.9814209Z Copying Applications.CZ
2024-06-19T12:51:06.9814473Z C:\dl\sandbox\24.2.20227.20970\cz\Applications.CZ
2024-06-19T12:51:06.9814970Z Copying dependencies
2024-06-19T12:51:06.9815204Z Importing PowerShell Modules
2024-06-19T12:51:06.9815613Z Skipping restore of Cronus database
2024-06-19T12:51:06.9816234Z Modifying Business Central Service Tier Config File for Docker
2024-06-19T12:51:06.9816828Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2024-06-19T12:51:06.9817050Z Installation took 6 seconds
2024-06-19T12:51:06.9817259Z Installation complete
2024-06-19T12:51:06.9820716Z Ready for connections!
2024-06-19T12:51:28.6263510Z Error trying to establish session, retrying in 5 seconds
2024-06-19T12:51:55.2733368Z New-BcContainer Telemetry Correlation Id: 9bf12152-3b03-4321-a2e4-947e9f8c6905
2024-06-19T12:51:55.3544239Z Unexpected error while validating app. Error is: Connecting to remote server BCAppsdkr-agent2 failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet.  Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet.  Verify that the specified computer name is valid, that
2024-06-19T12:51:58.5696621Z the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows
2024-06-19T12:51:58.5697038Z access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote
2024-06-19T12:51:58.5697417Z computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
2024-06-19T12:51:58.5698536Z At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.19\AppHandling\Run-AlValidation.ps1:547 char:5
2024-06-19T12:51:58.5700354Z +     throw ($validationResult -join "`n")
2024-06-19T12:51:58.5700603Z +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-06-19T12:51:58.5700919Z     + CategoryInfo          : OperationStopped: (Unexpected erro...ing Help topic.:String) [], RuntimeException
2024-06-19T12:51:58.5701354Z     + FullyQualifiedErrorId : Unexpected error while validating app. Error is: Connecting to remote server BCAppsdkr-a
2024-06-19T12:51:58.5701732Z    gent2 failed with the following error message : WinRM cannot complete the operation. Verify that the specified com
2024-06-19T12:51:58.5702122Z   puter name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM
2024-06-19T12:51:58.5702487Z   service is enabled and allows access from this computer. By default, the WinRM firewall exception for public prof
2024-06-19T12:51:58.5702859Z iles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Tr
2024-06-19T12:51:58.5703167Z oubleshooting Help topic.

Workaround for now is to run my\additionalsetup.ps1 e.g. through custom my\servicesettings.ps1 because this is runned from navinstall.ps1 which is running even for filesOnly container.

Hmm, it seems more complicated. When I resolved the problem with connection, I have problem with another code running in the get-bccontainersession failing on error:
Cannot find path 'C:\Program Files\Microsoft Dynamics NAV' because it does not exist.
    + CategoryInfo          : ObjectNotFound: (C:\Program Files\Microsoft Dynamics NAV:String) [Get-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Because it is running script "prompt.ps1"

navinstall runs with $filesOnly set to true - I will just copy the files around and not actually perform the install - but it should copy the files to C:\Program Files\Microsoft Dynamics NAV - so this folder should exist.

Ok, I did new research and there are the differences when running from outside container and from within container
In both cases, this script was used to try to create the container:
$password = 'randompassword'
Write-Host "admin/$password"
$credential= (New-Object pscredential 'admin', (ConvertTo-SecureString -String $password -AsPlainText -Force))

$Parameters = @{
    "accept_eula" = $true
    "accept_insiderEula" = $true
    "containerName" = 'test'
    "artifactUrl" = 'https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.2.20227.21047/cz'
    "useGenericImage" = 'mcr.microsoft.com/businesscentral:ltsc2022-dev'
    "Credential" = $credential
    "auth" = 'UserPassword'
    "updateHosts" = $true
    "vsixFile" = 'https://ms-dynamics-smb.gallerycdn.vsassets.io/extensions/ms-dynamics-smb/al/13.0.1027618/1716970921654/Microsoft.VisualStudio.Services.VSIXPackage'
    "EnableTaskScheduler" = $true
    "AssignPremiumPlan" = $true
    "MemoryLimit" = '16GB'
    "FilesOnly" = $true
}

New-BcContainer @parameters

The container used to run the script from within container was created by this script:
#creating the container
docker run -t -d -h 'testcontainer' --name 'testcontainer' -v "\\.\pipe\docker_engine:\\.\pipe\docker_engine" -v "c:\bcartifacts.cache:c:\bcartifacts.cache" -v "c:\programdata\BcContainerHelper:c:\programdata\BcContainerHelper" mcr.microsoft.com/dotnet/runtime:8.0.5-windowsservercore-ltsc2022

#Preparing the container
#Run in the container after connecting through enter-pssession -ContainerId xxxxx -RunAsAdministrator:
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
choco install docker-cli --no-progress
choco install 7zip --no-progress; `

Install-PackageProvider -Name NuGet -MinimumVersion <IP_ADDRESS> -Force -WarningAction Ignore
Install-Module powershellget -force
Install-Module bccontainerhelper -force

Output of the script running from the host (and finishing ok):
admin/randompassword
BcContainerHelper version 6.0.19
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.20348.2400
BcContainerHelper is version 6.0.19
BcContainerHelper is running as administrator
HyperV is Enabled
Host is Microsoft Windows Server 2022 Standard - 10.0.20348.2461
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 26.1.3
Docker Server Version is 26.1.3
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2022-dev
Creating Container test
Style: sandbox
Multitenant: Yes
Version: 24.2.20227.21047
Platform: 24.0.20984.0
Generic Tag: <IP_ADDRESS>-dev
Container OS Version: 10.0.20348.2527 (ltsc2022)
Host OS Version: 10.0.20348.2461 (ltsc2022)
WARNING: Container and host OS build is 20348 or above, defaulting to process isolation. If you encounter issues, you could try to install HyperV.
Using process isolation
Using locale cs-CZ
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\test\Microsoft.VisualStudio.Services.VSIXPackage.vsix
Additional Parameters:
--expose 5986
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\test\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- HelperFunctions.ps1
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container test from image mcr.microsoft.com/businesscentral:ltsc2022-dev
6494874dda4b370ac072c4b4345d88168fc19ab19bc980970fef0227efffaaa5
Waiting for container test to be ready
Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.2.20227.21047/cz
Using installer from C:\Run\240
Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\24.2.20227.21047\cz, platformArtifactPath=c:\dl\sandbox\24.2.20227.21047\p
latform, databasePath=c:\dl\sandbox\24.2.20227.21047\cz\BusinessCentral-CZ.bak, licenseFilePath=c:\dl\sandbox\24.2.20227.21047\cz\Cronus.bclicense, rebootContainer=True
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\24.2.20227.21047\platform\ServiceTier\Program Files
c:\dl\sandbox\24.2.20227.21047\platform\ServiceTier\System64Folder
Copying Web Client Files
c:\dl\sandbox\24.2.20227.21047\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\24.2.20227.21047\platform
c:\dl\sandbox\24.2.20227.21047\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\24.2.20227.21047\cz\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\24.2.20227.21047\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\24.2.20227.21047\cz\Extensions
Copying Applications
C:\dl\sandbox\24.2.20227.21047\platform\Applications
Copying Applications.CZ
C:\dl\sandbox\24.2.20227.21047\cz\Applications.CZ
Copying dependencies
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 8 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from test
Cleanup old dotnet core assemblies

Output of the script running from within container:
admin/randompassword
BcContainerHelper version 6.0.19
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.20348.2400
BcContainerHelper is version 6.0.19
BcContainerHelper is running as administrator
HyperV is DisabledWithPayloadRemoved
BcContainerHelper is running inside a Container
Host is Microsoft Windows Server 2022 Datacenter - 10.0.20348.2461
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Dockerd process not found. Docker might not be started, not installed or not running Windows Containers. If Docker Desktop is already installed, open the system tray, right-click on the Docker icon, and select 'Switch to Windows containers...'
Docker Client Version is 27.0.3
Docker Server Version is 26.1.3
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2022-dev
Creating Container test
Style: sandbox
Multitenant: Yes
Version: 24.2.20227.21047
Platform: 24.0.20984.0
Generic Tag: <IP_ADDRESS>-dev
Container OS Version: 10.0.20348.2527 (ltsc2022)
Host OS Version: 10.0.20348.2461 (ltsc2022)
WARNING: Container and host OS build is 20348 or above, defaulting to process isolation. If you encounter issues, you could try to install HyperV.
Using process isolation
Using locale cs-CZ
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\test\Microsoft.VisualStudio.Services.VSIXPackage.vsix
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\test\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- HelperFunctions.ps1
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container test from image mcr.microsoft.com/businesscentral:ltsc2022-dev
f9ab5ba41fa3796d928cd10e0f4b3beec584912b6dce15e793e7cf606ee4b6f9
Waiting for container test to be ready
Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.2.20227.21047/cz
Using installer from C:\Run\240
Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\24.2.20227.21047\cz, platformArtifactPath=c:\dl\sandbox\24.2.20227.21047\p
latform, databasePath=c:\dl\sandbox\24.2.20227.21047\cz\BusinessCentral-CZ.bak, licenseFilePath=c:\dl\sandbox\24.2.20227.21047\cz\Cronus.bclicense, rebootContainer=True
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\24.2.20227.21047\platform\ServiceTier\Program Files
c:\dl\sandbox\24.2.20227.21047\platform\ServiceTier\System64Folder
Copying Web Client Files
c:\dl\sandbox\24.2.20227.21047\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\24.2.20227.21047\platform
c:\dl\sandbox\24.2.20227.21047\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\24.2.20227.21047\cz\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\24.2.20227.21047\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\24.2.20227.21047\cz\Extensions
Copying Applications
C:\dl\sandbox\24.2.20227.21047\platform\Applications
Copying Applications.CZ
C:\dl\sandbox\24.2.20227.21047\cz\Applications.CZ
Copying dependencies
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 9 seconds
Installation complete
Ready for connections!
Error trying to establish session, retrying in 5 seconds
New-BcContainer Telemetry Correlation Id: c890ed9e-b718-4c18-b76d-284b9ced6c75
Connecting to remote server test failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from
this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed

Based on the analysis of the output, the exact point where the script fails when running from within container, is this line:

I am not sure, if there is problem that the container is not set correctly to be able to connect to it from within another container or it is set differently because it was created from within container, because e.g. content of script my\AdditionalSetup.ps1 are different for both containers. But I think this script was not triggered at all during the startup (I do not see the output of it in the output of the script).

Ok, after few days of research, I have found the original source of the problem. This is the  result:
Problems:

when inside container, new-pssession -containerid xxx cannot be used, thus get-bccontainersession have special case, which uses winrm in case when called from within container.
when using FilesOnly container (which is the case of run-alvalidation), the start.ps1 script is called only, not navstart.ps1.
New-bccontainer is creating file c:\run\my\AdditionalSetup.ps1 with code for setup the winrm access to the container
AdditionalSetup.ps1 is called from navinstall.ps1 script inside the container
run-alvalidation is by default calling code to create the container and just after to call script inside it to disable progress bar (see code under this list of problems). This needs to get the container session using get-bccontainersession
Because only start.ps1 is called and not navstart.ps1, the AdditionalSetup.ps1 was not triggered yet, thus the winrm in the container is not set and thus the get-bccontainersession fails to get the session using winrm.
Overriding start.ps1 leads to situation, that original start.ps1 code is not triggered, because if there is override, only the override is triggered. If I try run original code (c:\run\start.ps1) from override, never-ending loop is created.

Code to create the container inside run-alvalidation:
    $NewBcContainer = { Param([Hashtable]$parameters) New-BcContainer @parameters; Invoke-ScriptInBcContainer $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' } }

Workaround:
Because there is no simple way how to pass new parameter directly to new-bccontainer command inside the run-alvalidation, only way without change in the code is to use the parameter -NewBcContainer to override the process of creating the container. We can use the MyScripts to pass this modified script block to add necessary workaround code:
{
              Param([Hashtable]$parameters)
              $parameters += @{
               "MyScripts" = @(@{'start.ps1'='. c:\run\HelperFunctions.ps1;. c:\run\SetupVariables.ps1;. c:\run\my\additionalsetup.ps1;remove-item "c:\run\my\start.ps1" -force;. (Join-Path $runPath $MyInvocation.MyCommand.Name)'})
              }
              New-BcContainer @parameters
              Invoke-ScriptInBcContainer $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue'}
}

Solution:
It is hard to say what is wrong in the module, if it is the act, that additionalsetup.ps1 is called from navinstall.ps1 and not from install.ps1, or the fact, that the winrm is set through the my\additonalsetup.ps1 script at all. This is why I am unable to create some PR to fix this, because I do not know what to fix. It is rather question of rethinking how the process is working at all, because this bug have impact to all situations, when someone is trying to create FileOnly container from within container.


The product's name should be visible properly in quick view.

Bagisto Version: Master
Steps To reproduce--
1. Log in as an admin.
2. Create a new product with a name like Men's.
3. Visit the shop.
4. Search the created product.
5. Try to quick view the product.
Expected result: The product's name should be visible properly in quick view.
Actual result: The product's name is not visible properly in quick view if the product's name is like Men's.  Please find the screenshot Here

@Sanjaybhattwebkul Can I work on it?

@JunaidJaved248
Working on it.