Extracting the eyes after landmark

Hello, so I've been playing around with the dlib shape predictor a bit and I wanted to take it further, I want to extract the images of the eyes (separatly) so after I can run them on another classifier to see if they are open or closed.
I tried several things but I cant extract the eyes images, does some1 know how to do it?
import sys
import os
import dlib
import glob
from skimage import io

if len(sys.argv) != 3:
    print(
        "Give the path to the trained shape predictor model as the first "
        "argument and then the directory containing the facial images.\n"
        "For example, if you are in the python_examples folder then "
        "execute this program by running:\n"
        "    ./face_landmark_detection.py shape_predictor_68_face_landmarks.dat ../examples/faces\n"
        "You can download a trained facial shape predictor from:\n"
        "    http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2")
    exit()

predictor_path = sys.argv[1]
faces_folder_path = sys.argv[2]

detector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor(predictor_path)
win = dlib.image_window()

for f in glob.glob(os.path.join(faces_folder_path, "*.jpg")):
    print("Processing file: {}".format(f))
    img = io.imread(f)

    win.clear_overlay()
    win.set_image(img)

    # Ask the detector to find the bounding boxes of each face. The 1 in the
    # second argument indicates that we should upsample the image 1 time. This
    # will make everything bigger and allow us to detect more faces.
    dets = detector(img, 1)
    print("Number of faces detected: {}".format(len(dets)))
    for k, d in enumerate(dets):
        print("Detection {}: Left: {} Top: {} Right: {} Bottom: {}".format(
            k, d.left(), d.top(), d.right(), d.bottom()))
        # Get the landmarks/parts for the face in box d.
        shape = predictor(img, d)
        print("Part 0: {}, Part 1: {} ...".format(shape.part(0),
                                                  shape.part(1)))
        # Draw the face landmarks on the screen.
        win.add_overlay(shape)

    win.add_overlay(dets)
    dlib.hit_enter_to_continue()

I dont know if this is the right place to ask such a thing, if not im sorry!!
Thank you

http://dlib.net/faq.html#Itdoesn'twork


gf build：add -v value into BuildInfo

1. What version of Go and system type/arch are you using?
go version go1.18.2 windows/amd64
2. What version of GoFrame are you using?
GoFrame Version: v2.0.6
3. Can this issue be re-produced with the latest release?
4. What did you do?
5. What did you expect to see?
希望在gf build的时候，将 -v 参数的值 加入到 BuildInfo中
这样可以避免在项目中再去硬编码 二进制文件版本信息
6. What did you see instead?

@czhao0378 可以考虑使用-r参数：


Kserve Sklearn arm64 image issue

/kind bug
What steps did you take and what happened:
I am facing issue in running inference service on my minikube for Kserve.
When trying to create my first inference service - https://kserve.github.io/website/0.10/get_started/first_isvc/#run-your-first-inferenceservice
I am getting below error
kubectl logs pod/sklearn-iris-new-predictor-default-00002-deployment-6ccd584j9mh -n kserve
Defaulted container "kserve-container" out of: kserve-container, queue-proxy
INFO:root:Copying contents of /mnt/models to local
ERROR:root:fail to locate model file for model sklearn-iris-new under dir /mnt/models,trying loading from model repository.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/sklearnserver/sklearnserver/main.py", line 42, in
kserve.ModelServer(registered_models=SKLearnModelRepository(args.model_dir)).start(
File "/sklearnserver/sklearnserver/sklearn_model_repository.py", line 24, in init
self.load_models()
File "/kserve/kserve/model_repository.py", line 37, in load_models
for name in os.listdir(self.models_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/models'
Any help would be appreciated.
What did you expect to happen: The inference service takes the pre loaded image from minikube and starts the serving
What's the InferenceService yaml:
[To help us debug please run kubectl get isvc $name -n $namespace -oyaml and paste the output]

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:
Istio Version: 1.17.2
Knative Version:
KServe Version: 1.10.0
Kubeflow version:
Cloud Environment: local
Minikube/Kind version: v1.30.1 on Darwin 13.4 (arm64)
Kubernetes version: (use kubectl version): v1.27.2
OS (e.g. from /etc/os-release): Darwin 13.4 (arm64)

Hello,
kserve v0.11.0
kind - kubernetes v1.25
I am still facing an issue.  - FileNotFoundError: [Errno 2] No such file or directory: '/mnt/models'
any solution/workaround?

I am also facing same issue. any resolution?

@nirmesh could you verify if the storage initilaizer init container injected and successfully downloaded the model from the logs ?

@sivanantha321 Where exactly i can check that?
I have tried below

@nirmesh May you re-upload the image of the pod?

Follow this - https://kserve.github.io/website/0.11/get_started/
I was able to unblock myself, and it worked for me

@Manindhar @nirmesh If you are running isvc in kserve namespace, the storage initializer won't be injected due to the webhook configurations. For now, try to run it in a namespace other than kserve.

@nirmesh It looks like you are getting a not a directory error. Can you check your folder structure and verify /mnt/models is indeed a directory ?

@sivanantha321 directory is present. can we connect on call ? i will share screen<EMAIL_ADDRESS>is my handle.

https://kserve.github.io/website/0.11/get_started/
I was able to unblock myself, and it worked for me

@nirmesh
I hit on this issue previously on my local kind cluster.
What document are you following?
Follow this -  https://kserve.github.io/website/0.11/get_started/
I was able to unblock myself, and it worked for me

@amacharya it works for me as well. My problem is i am getting that issue when i do that with pvc "https://kserve.github.io/website/0.8/modelserving/storage/pvc/pvc/#copy-model-to-pv" i am using here this model "https://github.com/kserve/modelmesh-minio-examples/raw/main/sklearn/mnist-svm.joblib" to test PVC concept

@kjoth Are you running the inference service in kserve namespace ?

@sivanantha321 directory is present. can we connect on call ? i will share screen<EMAIL_ADDRESS>is my handle.

I am I have been busy from last week. I will look into it in few days.


Add source account requirement to Event Permissions

Description
Committing a fix written by @bruceduhamel to address this issue which was committed to Zappa2 and merged  while Zappa was deprecated, but missed when Zappa was undeprecated.
Quoting from original pull request:

When granting permissions to invoke a lambda for an event source such as s3 object created, specify the SourceAccount to restrict access to the lambda function to strictly that account. This is a minor change to prevent public access to a lambda function.

GitHub Issues

https://github.com/zappa/Zappa/issues/1039

LGTM, but linting is failing.

Thanks, I ran black and it's fixed a couple of issues. I've made a new commit with the results.

Coverage increased (+0.007%) to 73.534% when pulling 75cf061d8ebc055ed4453c5dd97207945da4ad31 on anettleship:account_id into b5b80cf096227e4eb0feb1de5ff8097711d53c88 on zappa:master.


Export components

By exporting the NotificationGroup and Notification components the package becomes more flexible (user no longer has to use it as a plugin).

Awesome, thank you @Jimjam89!


No .so file found

HI,
i don't really understand how to i dynamically use this file.

I download the file, config nginx.conf to add the line
`load_module "/usr/lib64/nginx/modules/nginx-ct-master/ngx_http_ssl_ct_module.c";' (This is my pathway to the file as i can't find any .so file)

Then this line occured when i try to start nginx.
Sep 02 15:59:03 las2 nginx[26339]: nginx: [emerg] dlopen() "/usr/lib64/nginx/modules/nginx-ct-master/ngx_http_ssl_ct_module.c" failed (/usr/lib64/nginx/modules/nginx-ct-master/ngx_http_ssl_ct_module.c: invalid ELF header) in /etc/nginx/nginx.conf:8
Did i do something wrong ?
Nginx version is 1.13.4
Openssl version is OpenSSL 1.1.0f  25 May 2017
Centos 7
Thanks.

My Nginx Conf file.
`
user  nginx;
worker_processes  2;
error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;
load_module "/usr/lib64/nginx/modules/nginx-ct-master/ngx_http_ssl_ct_module.c";
load_module "/usr/lib64/nginx/modules/nginx-ct-master/ngx_ssl_ct_module.c";
events {
worker_connections  4096;
multi_accept on;
}
http {
include       /etc/nginx/mime.types;
default_type  application/octet-stream;
log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  /var/log/nginx/access.log  main;
sendfile        on;
#tcp_nopush     on;

keepalive_timeout  65;

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;

include /etc/nginx/conf.d/*.conf;
load_module modules/ngx_ssl_ct_module.c;
include /etc/nginx/sites-enabled/*.conf;
server_names_hash_bucket_size 64;

}
`

You need to compile nginx yourself to use the module (even if you use the dynamic module - nginx doesn't support out of tree builds of dynamic modules yet).
There should be plenty of guidance on how to do this on the Internet - e.g. https://www.vultr.com/docs/how-to-compile-nginx-from-source-on-centos-7 is the first one listed in Google for CentOS 7.
You'll need to add --add-module=/path/to/nginx-ct or --add-dynamic-module=/path/to/nginx-ct to the end of the ./configure command.


Overfitting occurs when training transformer

Hello, recently I am training specvqgan with a small data set (only 2000 10s audio and video pairs), and when I use the pre-trained model for fine-tuning, the codebook results are very good. But when I used the vas pre-trained model to fine-tune the transformer, serious overfitting occurred. val/loss began to rise after falling to 2.71. When I changed the parameter dropout in first_stage_permuter_config (tried 0.3 and 0.6), It has no impact on the val/loss of the model. May I ask which parameters in the transformer.yaml file should I modify to alleviate overfitting?

hi. i don't have any specific advice for you here. you can study the ways that are usually used to combat overfitting in machine learning.
at the same time, i don't think using such high values of dropout would help.
the transformer is gpt-2 (300M) which is a lot of parameters for your dataset, tbh. maybe you can try smaller variants of gpt-2


Blank

Looks like your image didn't get uploaded, if you could upload it again that would be great.

The same problem occurred in my system Ubuntu 22.04. The program was blank after startup.
You can refer to this issue: https://github.com/tauri-apps/tauri/issues/5143
The solution is to set the environment variable WEBKIT_DISABLE_COMPOSITING_MODE=1 in your system


Add Testnets support

Changes:

Add base code for testnet in templates
Add chiado and denver testnets

Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Other (please describe):

Testing
Requires testing

[x] Yes
[ ] No

In case you checked yes, did you write tests?

[ ] Yes
[x] No

Codecov Report

Merging #82 (0cb04fd) into develop (f68a9d9) will increase coverage by 0.16%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #82      +/-   ##
===========================================
+ Coverage    84.55%   84.72%   +0.16%
===========================================
  Files           31       31
  Lines         1800     1820      +20
===========================================
+ Hits          1522     1542      +20
  Misses         224      224
  Partials        54       54

Flag
Coverage Δ

unittests
84.72% <100.00%> (+0.16%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

configs/init.go
100.00% <100.00%> (ø)

internal/pkg/generate/generate_scripts.go
96.19% <100.00%> (+0.31%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Carrying over TODO items from daily journal files located in another folder

I save daily journal files in separate yearly/monthly folders (e.g., ~/org/journal/2021/02), instead of a single folder. To automatically create new journal files in the correct year/month folder, I have created a function that updates the org-journal-file-format variable with the current year and month, like so:
(defun my/get-org-journal-date-path ()
(let ((current-year (format-time-string "%Y"))
(current-month (format-time-string "%m")))
(concat current-year "/" current-month "/")))
(setq org-journal-dir "~/org/journal/")
(setq org-journal-file-format (concat (my/get-org-journal-date-path) "%Y-%m-%d.org"))
TODO items seem to carryover as expected when the previous journal file is in the same folder as the new file, but not when in different folders. For example, if the previous day's journal file was from 2021/01/31 (i.e., ~/org/journal/2021/01/2021-01-31.org), the TODOs will not carry over to a journal file created on 2021/02/01 (i.e., ~/org/journal/2021/02/2021-02-01.org).
I suspect that the carryover function depends on the path in the org-journal-file-format variable. Is there a better way to automatically create daily journal files in a year/month folder structure, but still retain carryover functionality?

Does it work when you set org-journal-file-format to "%Y/%m/%Y-%m-%d.org"? If this doesn't work either, than the carryover functionality is bogus.

Actually, yes, that does work. Thanks!
I suppose I overcomplicated it by adding the custom function instead of simply using %Y and %m in the path.
Thank you again for your reply and resolution, @cslux.

That happens sometimes 🙂


Fix broken link

Just browsing around looking for swift examples, found that this link was broken :+1:

Thanks!


Unit Testing

Create unit tests for stability of website. Possibly look into CICD setup as well (not high prio).

Anish and Brigit: Focus on creating testing for their currently worked on feature
Eva: Creating tests for grammar and react tsx. Setup CICD after we have some more tests for features


DeprecationWarning: the imp module is deprecated

healthcheck/init.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

Due to this issue, it looks like adding HealthCheck to a Flask app causes pytest to fail by default when running with the latest version of Python (i.e. without doing any further customization of pytest configuration).
> env FLASK_ENV=test pytest
=============================================== test session starts ================================================
platform darwin -- Python 3.9.0, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /Users/jab/src/myapp, configfile: setup.cfg, testpaths: tests
plugins: cov-2.10.1
collected 0 items / 1 error

====================================================== ERRORS ======================================================
________________________________________ ERROR collecting tests/test_app.py ________________________________________
tests/test_app.py:1: in <module>
    from app import app
src/app.py:3: in <module>
    import _healthcheck
src/_healthcheck.py:1: in <module>
    from healthcheck import HealthCheck
.venv/lib/python3.9/site-packages/healthcheck/__init__.py:1: in <module>
    import imp
/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/imp.py:31: in <module>
    warnings.warn("the imp module is deprecated in favour of importlib; "
E   DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
============================================= short test summary info ==============================================
ERROR tests/test_app.py - DeprecationWarning: the imp module is deprecated in favour of importlib; see the module...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================= 1 error in 0.72s =================================================

I take that back, just realized this project was actually configuring pytest to turn DeprecationWarnings into errors. Deleting these comments. Sorry for the noise and (as I meant to say before), thanks for the great work on HealthCheck!

Would you accept a PR to fix this?


Check if job is due to run in main process

See #45
[x] Adds ScheduleChecker class for determining if a job is due to run
[x] Uses ScheduleChecker in BackgroundJob::shouldRun()
[x] Moves use of ScheduleChecker to main process (Jobby::run())
NB this pull request relies on changes made in #61

Now ready for your comments @hellogerard  :smiley:
Point for discussion - if ScheduleChecker::isDue() is being checked in Jobby::run(), does it also need to be checked in BackgroundJob::shouldRun()?

Thanks for all your work on this PR and the other. Released jobby 3.1.0!

@hellogerard My pleasure. What do you think about the fact that the schedule is now checked in Jobby::run() and in BackgroundJob::shouldRun()? Should we remove the check from the background task on the basis that it won't run in the first place if it's not due?

@garethellis36 Ah, sorry, I missed this.
On one hand, it never hurts to have redundancy. OTOH, I like DRY and SRP, so I think we should take it out. Why not sneak it into #63?

I created a new PR for it - see #64


I failed to execute MVND on MAC

mvnd-0.7.1-linux-amd64 that is my installed ,when I execute MVND ,show me "cannot execute binary file"

mvnd-0.7.1-linux-amd64 that is my installed ,when I execute MVND ,show me "cannot execute binary file"

What's the output of uname -a on your platform ?

Darwin aolifu-2.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64

I know, I should use this package 'mvnd-0.7.1-darwin-amd64'


[WIP] hot module reload support for webpack5

WIP
Summary
Localizes hot module replacement modules for webpack5, so that a localized application still functions with hot reload mode.
Help please
I made changes to the built NPM package, tested, and use it every day. Our setup is vue 3/vuetify 3/vue-loader. I need some guideance setting up natural test cases and building. The repo tests don't seem to reflect how to integrate this into a project?
I will slowly work on getting the below items correct, but assistance with setup would be a quicker way to get this published if you wish to have it.

Need help setting up build

npm run build doesnt create any output that is like the content of node_modules. Just 2 minified files
pnpm seems to be involved in the setup, and isn't quite working right on my system (windows + cygwin). I will look into getting this right
Your linting throws alot of warnings unrelated to what I've added, I'm guessing these aren't required to pass things?

natural test environment?

My particular stack is vue 3, vuetify 3, vue-loader, and custom webpack plugin that at runtime determines which JS resource to load.
I'm not sure what a typical test setup would be for this plugin otherwise. It seems that something must be done in the code to choose the localized version at runtime.
Share test setup?

Is webpack 4 relevant here?

For our project, only webpack 5 is relevant. The submitted code does not affect a webpack4 setup.
Help me set up a webpack 4 test setup and I'll make it work!

Changes

for everything below, if not webpack 5, default actions are taken, no new functionality
process modules that contain placeholders and also if tagged as a hotmodule replacement
options set a hmrLocale that should be used for localizing HMR updates.
if hmr module, update the asset instead of delete/recreate asset.
if hmr module and nothing to update in the module, dont continue or emit anything (would cause infinite loop)

Thanks for the draft PR to let me know your intentions. I haven't actually tried with this HMR so glad you're working on it.
Since linting & building all happens on GitHub Actions Linux, you can take a look at those environments for reference to debug. Linting warnings can be ignored but no errors allowed (this will be caught by CI or lint-hook hook).
I'm not sure if I understand your testing questions. Have you tried running pnpm dev?
I think the highest value task right now is adding failing tests. We'll need tests to make sure this behavior is working anyway, but if there are failing test cases, it would make it easier for me or others to collaborate with you.

I'll definitely check out the tests and github actions!
What I really could use is a sample project setup using this plugin that's not the same as ours. Something you test it with. Maybe I should be looking at webpack i18n plugin for an example since its based on this?

Just fyi, currently working on releasing this in a github repo for now. Haven't had alot of chances to work on this.

I did manage to publish it!
https://github.com/ShoryuKyzan/webpack-localize-assets-plugin/blob/shoryukyzan/hot-module-reload/README.md
From looking at the tests you've defined, it seems like they don't cover this kind of thing.
I see unit tests for contenthash and stuff like that. Not really sure how to generate a test tbh. I would probably have to look at unit tests for webpack itself to find the bits that do hot module reload.


Prompting Text in Minecraft Environment

Hi there!
I'm working on Malmo tasks that can be solved by human players but also by AI.
To make the environment more human-friendly i would like to prompt instructions and feedback on screen while the game is running. The text should appear in the game environment and should be adjustable in size and position.
I couldnt find a feature that enables me to do this. If it already exists i would be very thankful for hints.
If not please regard this as a feature request.
Best,
Henry

I improvised a solution using chat commands, however i am still looking for a more elegant way to provide feedback and instructions to the player...
Any ideas?

Hi @EnricoDelPiero,
the chat commands are a good Minecraft-based solution. For cases where we need more control over the human player interaction, we use a custom GUI. Here's an example: https://github.com/Microsoft/malmo/blob/master/Malmo/samples/Python_examples/human_action.py. Another example is the one we used for the Malmo Collaborative AI challenge: https://github.com/Microsoft/malmo-challenge/tree/master/ai_challenge/pig_chase
Best,
Katja


Loading Audio

..brought to you by a frustrating day reinstalling my Ubuntu partition.
For the moment, I think we just worry about loading WAV and MP3 - Brian's said that librosa can deal with both of them.
I feel like we want to do analysis = amen.load('some_audio_file.wav').  Does this generate all analyses that are possible?  Or do we do something like:
audio = amen.load('some_audio_file')
audio.get_analysis('pitches')
audio.get_time_slices('beats') # this needs a better name
audio['pitches'].at(audio.beats)
# do something with beats and pitch analysis

The former has the advantage of being simple - even people who don't know what they're looking for can get analysis data with a single line of code.  The latter has the advantage of being faster, more modular, and more specific.
Or, maybe we generate some basic things when we do amen.load (beats, pitches, etc?) - but if you want, say, some black-magic timbre analysis, you can run `audio.get_analysis('black_magic_timbre')

I never want to have to tell amen what it needs to analyze. I think it should figure it out on its own and do it as lazily as possible. So you just do analysis = amen.load('whatever.mp3') and the first time you ask for analysis['pitches'].at(analysis.beats) it does those analyses.

I think it should figure it out on its own and do it as lazily as possible.

Once the audio's decoded and in memory, most of the analysis should be fast (ie, near linear time).  I think it would be simplest all around to just have amen.load call out to a big beefy analysis routine that constructs all the feature and timing objects up front.

Got it.  So to combine these, we make amen.load do a whole set of basic analyses, but when we call analysis['crazy_expensive_timbre_analysis'], it goes out and gets that crazy analysis.  Sound OK?

Sure.
More generally, we've been planning to have a core set of Feature implementations that can change and/or grow later on in subsequent versions.  Does it also make sense to generally make this dynamic?
For instance, say I write an analyzer that can find all the cowbells in a song.  We could probably just add a new Feature object to the FeatureCollection as needed, if it acts as a dict-like, and then have it go on its merry way.

I approve!

Also thing that we've got this - re-open if you disagree.


pytest 5.1.2 breaks tests on windonws appveyor CI

workaround was to pin to pytest==5.1.1 (https://github.com/fonttools/fonttools/pull/1721)
we need to understand why tests were failing when using latest pytest 5.1.2 on Windows, or revert the version pinning if/when upstream issue is fixed

Outdated?

@behdad thanks for going through the old issues and cleaning things up along the way!


Update sample code on index page (rsocket-core 1.0.1) and fix forum link

Thanks for the PR @haal.
The website was recently updated to include a number of changes, including those you suggested here. Please see #24.
I'll close this for now, but please do let us know if anything was missed or needs further updating.

Thanks for the PR @haal.
The website was recently updated to include a number of changes, including those you suggested here. Please see #24.
I'll close this for now, but please do let us know if anything was missed or needs further updating.


Proposal:Add ShowHeader enum property to NavigationView

Proposal: Add ShowHeader enum property to NavigationView

Summary
Currently, it is not possible to entirely get rid of the Header of NavigationView. Setting AlwayShowHeader to false still shows the header in Small mode.
It would make sense if Visibility is controlled by an enum, such as shown below
enum ShowHeader {Always,Mode1,Mode2,Never}

 <winui:NavigationView
        x:Name="navigationView"
        Background="{ThemeResource SystemControlBackgroundAltHighBrush}"
        IsBackButtonVisible="Visible"
        IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
        IsSettingsVisible="True"
        ShowHeader="Never"
        SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}">

Also
navigationView.ShowHeader = Mode1|Mode2;

Rationale

If the context is clear it is should not be forced upon the developer to show header in compact mode.
The option of re-templating is also not a good option and best avoided

Scope

Capability
Priority

This proposal will allow developers to control visibility of the header according to application need
Must

Important Notes

Open Questions

@harvinders, thank you for opening this proposal. Unfortunately, there's a fundamental problem with hamburger button and content overlap in Minimal mode, and a header is the best solution we came up with for getting around this problem.
The hamburger itself is just a small square button in the top left corner of the app window. Typically, app content is allowed to scroll vertically. Here's an example of a Xaml Controls Gallery screen if it didn't have a header:

Here's what the same screen might look like when scrolled:

The back and hamburger buttons are floating over the content, obscuring some of the area in a strange way. By having a header, we're able to draw a clean dividing line that the content scrolls underneath.

All this is to say that the header area serves a purpose and is necessary to ensure a reasonable user experience in Minimal mode.


NPE in GraphvizV8Engine during initialization fail

Hi.
While I was setting up my project, I started getting this NPE:
Exception in thread "main" java.lang.NullPointerException
	at guru.nidi.graphviz.engine.GraphvizV8Engine.release(GraphvizV8Engine.java:38)
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.initTask(AbstractGraphvizEngine.java:46)
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.init(AbstractGraphvizEngine.java:34)
	at guru.nidi.graphviz.engine.Graphviz.doUseEngine(Graphviz.java:82)
	at guru.nidi.graphviz.engine.Graphviz.lambda$doUseEngine$15(Graphviz.java:82)
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.initTask(AbstractGraphvizEngine.java:47)
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.init(AbstractGraphvizEngine.java:34)
	at guru.nidi.graphviz.engine.Graphviz.doUseEngine(Graphviz.java:82)
	at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:74)
	at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:55)
	at guru.nidi.graphviz.engine.Graphviz.useDefaultEngines(Graphviz.java:47)
	at guru.nidi.graphviz.engine.Graphviz.getEngine(Graphviz.java:88)
	at guru.nidi.graphviz.engine.Graphviz.execute(Graphviz.java:170)
	at guru.nidi.graphviz.engine.Renderer.toImage(Renderer.java:68)
	at guru.nidi.graphviz.engine.Renderer.toFile(Renderer.java:46)

The issue: GraphvizV8Engine.message is null
messages is not set because GraphvizV8Engine.doInit is crashing with java.lang.UnsatisfiedLinkError: Could not load J2V8 library.  While the latter exception tells me something is wrong with my setup, the former felt like a bug which forced me to debug into the library.
A null check ought to be enough for everyone. Thank you.

I suspect you're using an old version, I could not reproduce the issue. Can you try with 0.8.0?

Doh, you are correct. Don't know why, someone decided to use version 0.2 :p


After release chore

We should also backport this into 0.11.x branch.

Maybe, we should add 0.11.12 to the list of documented versions. https://github.com/com-lihaoyi/mill/blob/81505da3aa6c6f5746d98310199ce4a94110b3d4/build.sc#L48-L51


IPyWidget functional flake tests failing on and off

Here is a selection from 5 days of runs. Pretty much never the same failures two days in a row, Mac never fails and only sometimes Linux.

We can just move to just Mac only if they are consistently passing. Not likely we'll go back and work on these for Windows/Linux only

When changing this, make this only apply for the CI machine as devs will need to run them.

Going to disable ipywidget tests with jupyter server

Validated. No widget failures on most recent test runs.


code-review-morning-stand-up-team-thursday

Good work so far. Kindly stick to the div's or section where necessary. Use header and nav tags on the navigation.

Great work @Iptysam, The portfolio looks good on mobile just improve the padding such that it may be well centered.
Thank you, Happy coding.


Inline picker clips subviews

overflow: hidden should be added only during transition

Released in 3.0.2.


ISessionAffinityPolicy should be async

What should we add or change to make your life better?
FindAffinitizedDestinations and AffinitizeResponse could use async overloads to allow for external data store affinity lookups, or other operations like checking the body. These could be added in a non-breaking way as Default Interface Methods that call the sync APIs.
Why is this important to you?
Example: David had to read the response body to get an identifier. He was also unable to use IDistributedCache.
https://github.com/davidfowl/SmartLoadBalancer/blob/1d43229daf09f836aabf7a78ce31658a207cf53b/Yarp.Ingress/SignalRSessionAffinity.cs

Triage: Reasonable thing to do, given it can be done in non-breaking way.

So I was finally able to try this out and hit a problem. It seems like I need to use the SuppressBody on the ResponseTransformContext, but that isn't accessible in AffinitizeResponseAsync (I'm trying to write a response to affinitize the signalr connection).


Fix explain bad indent when showing operatorMem.

Word operatorMem is added by GPDB, it shows bad indent when explain.
set gp_resqueue_print_operator_memory_limits=on;
explain(costs off) select count(*) from test_hj_spill;
                                 QUERY PLAN
----------------------------------------------------------------------------
 Finalize AggregateoperatorMem: 100 kB

       ->  Gather Motion 3:1  (slice1; segments: 3)operatorMem: 100 kB

                 ->  Partial AggregateoperatorMem: 100 kB

                           ->  Seq Scan on test_hj_spilloperatorMem: 100 kB

This is introduced by UPSTREAM commit<PHONE_NUMBER> which tried to resolve explain indent of parallel query.
Add indent manually for CBDB's additional operatorMem.
Authored-by: Zhang Mingli<EMAIL_ADDRESS>

fix #ISSUE_Number

Change logs
Describe your change clearly, including what problem is being solved or what feature is being added.
If it has some breaking backward or forward compatibility, please clary.
Why are the changes needed?
Describe why the changes are necessary.
Does this PR introduce any user-facing change?
If yes, please clarify the previous behavior and the change this PR proposes.
How was this patch tested?
Please detail how the changes were tested, including manual tests and any relevant unit or integration tests.
Contributor's Checklist
Here are some reminders and checklists before/when submitting your pull request, please check them:

[ ] Make sure your Pull Request has a clear title and commit message. You can take git-commit template as a reference.
[ ] Sign the Contributor License Agreement as prompted for your first-time contribution(One-time setup).
[ ] Learn the coding contribution guide, including our code conventions, workflow and more.
[ ] List your communication in the GitHub Issues or Discussions (if has or needed).
[ ] Document changes.
[ ] Add tests for the change
[ ] Pass make installcheck
[ ] Pass make -C src/test installcheck-cbdb-parallel
[ ] Feel free to request cloudberrydb/dev team for review and approval when your PR is ready🥳

This is same as #288 and revert by #289 because some diffs when using ORCA.
This pr fixes those.


Locally saving augmented images

I might have missed something in the documentation, or just don't have enough understanding of Python, but I was wondering if there is a way to save augmented images to a local folder on your PC. I am working on a project where I need to pull images, augment them, then resave them for future use and I was just wondering if that's possible.

imgaug returns images as numpy arrays. Any library that saves numpy image arrays is suitable. imageio or cv2 are common choices. This should work:
import numpy as np
import imageio
from imgaug import augmenters as iaa

# random example image
image = np.random.randint(0, 255, size=(64, 64, 3)).astype(np.uint8)

# augment 16 times the example image
images_aug = iaa.Affine(rotate=(-45, 45)).augment_images([image] * 16)

# iterate over every example image and save it to 0.jpg, 1.jpg, 2.jpg, ...
for i, image_aug in enumerate(images_aug):
    imageio.imwrite("%d.jpg" % (i,), image_aug)

I tried using this code, and while it works properly with a random image, it does not work with an image that I pull locally.

This image show the code I am using, along with the local image I pulled and all of the pictures that were saved. As you can see they are saved into little slivers of images and not anything useful. As a note I originally tried imageio.imwrite instead of cv2.imwrite but the results were exactly the same.

Change the line
images_aug = iaa.Affine(rotate=(-45, 45)).augment_images([image[0]]*10)

to
images_aug = iaa.Affine(rotate=(-45, 45)).augment_images(images)

and try again. Should work then.

I am using this code and the augmented images look fine on Jupyter, but I am getting the same flat images, and hundreds of copies saved locally:
path = 'C:\\path to folder containing folders of images'

ia.seed(2)

seq = iaa.Sequential([
    iaa.Fliplr(0.5),
    iaa.Crop(percent=(0, 0.1)),
    iaa.Affine(rotate=(-25,25))
], random_order=True)

for folder in os.listdir(path):
    for i in os.listdir(path + '\\' + folder):
        img = imageio.imread(path + '\\' + folder + '\\' + i)
        print('Original:')
        ia.imshow(img)
        img_aug = seq.augment_image(img)
        print('Augmented:')
        ia.imshow(img_aug)
for im, im_aug in enumerate(img_aug):
    imageio.imwrite(os.path.join(path, path + '\\' + folder + '\\' + folder + "%06d.png" % (im,)), im_aug)

I have my code as .augment_image(img) because when I use augment_images(img)  plural my images are returned as black in Jupyter.

You are iterating over enumerate(img_aug), which is not a list of augmented images, but only the one last image that you loaded in your loop (i.e. you are saving each row of the last image as its own image).
Something like that should work:
path = 'C:\\path to folder containing folders of images'

ia.seed(2)

seq = iaa.Sequential([
    iaa.Fliplr(0.5),
    iaa.Crop(percent=(0, 0.1)),
    iaa.Affine(rotate=(-25,25))
], random_order=True)

for folder in os.listdir(path):
    i = 0
    for fname in os.listdir(path + '\\' + folder):
        img = imageio.imread(path + '\\' + folder + '\\' + fname)
        print('Original:')
        ia.imshow(img)
        img_aug = seq.augment_image(img)
        print('Augmented:')
        ia.imshow(img_aug)

        imageio.imwrite(os.path.join(path, path + '\\' + folder + '\\' + folder + "%06d.png" % (i,)), img_aug)
        i += 1

That worked, thanks!

How can I download the augmented images generated in the imgaug pipeline?

To specify the path in your local computer or colab.
for i, image_aug in enumerate(newimg):     imageio.imwrite(os.path.join(path, "%08d.jpg" % (i,)), image_aug)


protoc-gen-letmegrpc does not support subtypes as repeated

I just tried to use the default addressbook.proto example. The function buildRepeatedKeyword_PhoneNumber_phones is generated, but where it's used, it want's to call buildRepeatedKeyword__phones. I just started looking into the problem, but I assume the getMessage in form.go seems to have a problem with subtypes. I will check if I can fix it in little time. If not, I will have to just drop my tests of letmegrpc, since this is already the second problem I found in less than an hour and I don't want to get from one problem into the next.

Fair enough.  Yes it is probably to do with sub messages.
Letmegrpc is some of the worst code I have ever wrote, but unfortunately it works well for the use cases I and others have and I never use sub messages, oneof or windows.
It working for the use cases we had makes motivating a rewrite quite hard.
I would love to be paid to rewrite this in Elm or Purescript and using gRPC reflection, so dynamically generate the form in the frontend in a type safe language, without the possibility of null pointer exceptions.
But unfortunately at the moment I am not even a user of protobufs :(

Ok, thanks for the info. I'm dropping my test and will just write a C# client since it's fast than fixing this :) I also have a lot of the reflection stuff done, since I use it in a configuration tool. So upgrading that to also have client functionality should be the fastest option. I will still leave this issue open, just in case someone else stumples upon it.

As someone who has done this before, I really recommend doing this all in the frontend.  You don't need a backend to generate a gRPC GUI.


AutomationAccounts_ListBySubscriptionId should have nextLink in pageable extension

This is a hot fix to the swagger. ListBySubscriptionId should also be pageable

No modification for Ruby

No modification for NodeJS

No modification for Python


Umbra Spec Writing

See: https://hackmd.io/kyejT9oJTNC3hf9C_ONy0A

Closing this in favor of the EIP we are currently working on


RidigBody2D in Character Mode stucks at tiles corners and between 2 tiles (regression since 3.0.2)

Godot version:
3.0.2 and 3.0.3
OS/device including version:
Linux Mint 19 x64
Issue description:
In my title map platformer hero get stuck on titles corners and between them :(
I use RigidBody in Character Mode.
The code and title in previous version works fine.

Steps to reproduce:
Just run project and try to move hero using left, right and up (jump) arrows
Minimal reproduction project:
Platfromer 2D.zip

The code and title in previous version works fine.

What previous version exactly? As I understand it the issue is reproducible in both 3.0.2 and 3.0.3?

@akien-mga  it works correctly 3.0.0 and 3.0.1. Yes, issue is reproducible in both 3.0.2 and 3.0.3.

couple things:
this was over 150mb in download for a zip, please try to reduce example projects
second:
player's collision ship was scaled
third:
	if y > 0 and ray.is_colliding():
		$AnimationTreePlayer.oneshot_node_start("land")

removing this inside _process fixed everything. bug is related to oneshot_node_start

Thanks @girng , I will try reduce size and fix scale

@girng I comment out this to lines and result is the same :(

@jeremi360 try a capsule shape instead of a rectangle for player body  collision

I change collision shape to capsule and now it's working

@jeremi360 glad you got it fixed sir!


Model checkpoints

Hi, very interesting work! I was wondering when we can access model checkpoints. Thank you !

Hi @halikhani , thank you for your interest in our work! We are currently cleaning and gathering everything to release and will update you once it is ready!

Thanks a lot! actually I was able to fine-tune the model, but there is a big gap between the results I got and the results provided in the paper. What kind of scaling did you use since as far as I know, the range for metrics like METEOR is 0-1 and for CIDEr is 0-10. I assume all the numbers in your evaluation section for these metrics are multiplied by 100 from the original metrics. Please let me know if my assumption is correct. Thank you!

Hi @halikhani , thank you for asking! Yes, for the metric we scale it by 100 just for the purpose for demonstrating the result. Thank you very much!

@halikhani  can u please share ur trained model for testing of the inference on google drive or onedrive it would be helpful @YuanJianhao508  when can we expect the pretrained models


build: add dependency on sil-llvm-gen for tests

sil-llvm-gen/alloc.sil uses this tool during tests, but was missing a
dependency.  ninja -t clean; ninja check-swift would fail as a result.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test and merge

@swift-ci please test Linux Platform

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 375bbd06aef6c2d7a12fe02a884ec78cfa90f029
Test requested by - @compnerd

@swift-ci please test linux platform

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 375bbd06aef6c2d7a12fe02a884ec78cfa90f029
Test requested by - @compnerd

Just an FYI, I am talking with Jordan about making some changes here. But given that this is needed to unblock you... I am going to merge this!


Spotless groovy

It should be a better option for groovy

also git ignored files are actually not ignored during the groovy formatting

also git ignored files are actually not ignored during the groovy formatting


No .exe artifacts for 0.5.0 and 0.6.0 releases.

There are no .exe files at the https://github.com/containers/libhvee/releases page for the above versions.

ive been adding them on new releases ... do you want me to go back and build these as well ?

No, that's fine.
I don't know what had happened; I can see them now, but definetely there was no .exe but for 0.4 version when I opened this.
I suppose you can /close if you wish. Could I suggest to use github actions for this instead of doing it manual, if there's anything else in place already?

how about that? I changed the title and we can take your suggestion.


Beat saber's sword incorrectly angled

Maybe around 30 degrees tilted too high.
I used beat Saber from steam.
Maybe add controller offset option?
Other people suggested to use openvr input emulator offset but that plugin hasn't been updated for years and I can't get the offset to work .
Workaround : Physically rotate the controller 180 degrees so the trigger become on your thumb. Grip it that way. The swords will be good

With the latest ev8 from this fork? The 30° offset was fixed a long time ago with the first release.

Yeah, the it's same with relive vr.
The touch controllers itself are fine tho as the swords in the beat Saber quest demo are angled properly.
Any diagnostics I can look at?

I just checked the controller in beat saber. I don't see any issue with ev8. Sticks are aligned with the controller handle

Hi again Jack.
Tried on a different computer with different hardware (now its running on gtx 1660)
Same issue, the swords are angled too high.
Could I ask for a feature request? (add angle correction/offset box in ALVR)

The swords are not supposed to align with oculus quest handle but with its upper handle. I'll add a pic after I finish taking a bath

jack, sorry! turns out it was my fault

I misunderstood the angle of "grab" in oculus quest
Beat Saber on Steam VR have incorrect scale (everything looks waaaay too big)

after I fixed my mindset of the "correct" angle (thanks to your picture) and holding the controller lower (grabbing the handle, no thumbs on the sticks), my brain accepted the angle.
after i set IPD offset manually thru http://localhost:27062/console/index.html with this command "settings steamvr.ipdOffset 0.0060"
its even better now.
so for those feeling weird with beat saber's swords, try doing those 2 tings. ALVR already works good.


Add moderator modal should clear its text fields after use.

When I click the add moderator and input some text, if I cancel and click add moderator again the add moderators modal text fields should be empty.

Done :D

Closed.


New Theme : Bigspring Hugo Startup Theme

Theme submission
Please make sure that you have read the theme submission guidelines before submitting a theme. The guidelines provide all relevant information and requirements that have to be fulfilled before the submission. We strongly suggest that you test your theme with the Hugo Themes Build Script before submitting the theme for review. If a submission does not meet the criteria mentioned in the README it will be closed. You may re-submit once you fix the problems with your submission. However, please note that we have limited resources and can not provide help for general web development issues. For Hugo support questions please refer to the dedicated support forum.
Please tick the relevant boxes for your theme in the checklist below:
**Link to my theme repository:https://github.com/themefisher/bigspring-hugo-startup-theme
I made sure that...

[x] the repository contains a good README.md describing my theme
[x] an open source license has been added to LICENSE.md
[x] all metadata have been added to theme.toml
[x] screenshots have been added in the images/ folder with the required dimensions
[x] in case I'm using a customized demo via the exampleSite folder that

[x] https://example.com is set as base url in exampleSite/config.{toml, yaml, json} to avoid the abuse of unused domains
[x] I tested that my theme's demo works with the content directory of gohugoio/HugoBasicExample

[x] I tested my theme against the gohugoio/HugoBasicExample

[x] I've checked the developer tools' console in my browser for error messages

[x] in case my theme is using Hugo Pipes features like toCSS and PostCSS that I have committed the /resources directory with all generated assets, for my theme to work in the basic version of Hugo

N.B. By submitting a theme to the Hugo Themes Showcase you understand that you need to maintain your theme. If a theme demo breaks and remains broken then at some point it will be removed from the list without prior warning. If you no longer wish to maintain a theme please let us know.
New themes will usually be promoted on Hugo's official Twitter account. If you would like to be mentioned in the tweet please add your Twitter username to this submission.
**Link to my Twitter account (optional): http://twitter.com/themefisher
Feel free to ask questions. We're glad to help.

Hello Mehedi,
thanks for your / Themefisher's continuous contributions to the Hugo community 👍
While starting the review I noticed that the screenshots at images/ are saved JPEG, not PNG. Please convert the images, otherwise the build script can't find them.
cc: @somratpro

Hey @digitalcraftsman
Thanks for your quick reply, I am very sorry about it. I replaced those images.

Thanks for fixing the images. Your theme is already live on Hugo's theme site and has been promoted on Hugo's official Twitter account.

Good to see our themes in the Hugo directory. So the list is now 19 templates and its growing. May be you know we changed all our themes licenses , and all of them now released under MIT license. Here is the announcement https://discourse.gohugo.io/t/themefisher-s-hugo-themes-are-now-licensed-under-mit/28528 .
I have a question when we release a new theme can we post it as an announcement in the Hugo forum?

I have a question when we release a new theme can we post it as an announcement in the Hugo forum?

There's a dedicated announcement section in the forum that could be used. But I've not been active in the forum for a while, so you might want to contact a forum moderator for futher questions.


Tabs are not displayed in the order in which I created them

Good day,
Sorry to bother but I am trying out your project, which is great by the way, within a Laravel 5.3 project but I am having an issue with the tabs component.
I have added three tabs
<tabset v-if="contentVisible" transition="slideOut">
	<tab>

			Details

'Details' tab content section

	</tab>
	<tab v-if="data.downloads.length !== 0">

			Downloads

'Downloads' tab content section

	</tab>
	<tab v-if="data.images.length !== 0" :on-selected='gallerySelected'>

			Gallery

'Gallery' tab content section

	</tab>
</tabset>

However, when displayed within a browser the 'Details' tab is displayed as the third tab instead of as the first tab.
Any assistance would be truly greatful.
As a side note, using bootstrap directly the tab ordering works as expected.

Please note that for now as I needed to have the tabs ordered, I changed the components in the following way.

I have added a required 'order' property to the 'tab' component

props: {
	header: {
		type: String
	},
	disabled: {
		type: Boolean,
		default: false
	},
	onSelected: {
		type: Function,
		default: function _default() {}
	},
	order: {
		type: Number,
		required: true
	}
}

Within the 'tabset' component I have changed the 'registerTab' function to use the 'order' property when setting the tabs 'id' and in order to insert the tab into the correct place within the 'tabs' array

registerTab: function registerTab(tab) {
	tab.id = tab.order;
	tab.active = tab.order === 0;

	this.tabs.splice(tab.order, 0, tab);
}

I will remove this modification once I have heard from you.
Thanks

I'm not sure that an order should be required here. The tabs should be registered in the order specified, however I'm relying on the DOM and VueJS to handle that. What probably needs to happen is that instead of the current tab registration mechanism, I need to have the tabset walk it's children, and collect the tabs that way. I was trying to be a bit clever, and it bit me.
I can walk you through what would need to be done, and then take a PR. There's a lot of cleanup this project needs, to be honest, and I'm not actively using it anymore, so it's fallen by the wayside. I apologize about that.

For posterity, the current tab mechanism is this:
A tab registers itself with the tabset, at compile time:
https://github.com/Morgul/vueboot/blob/master/src/tabs/tab.vue#L47
The tabset pushes the tabs into it's internal list in the order register is called:
https://github.com/Morgul/vueboot/blob/master/src/tabs/tabset.vue#L79
This should probably be the tabset generating the list by checking the names of it's children components, via: http://v1.vuejs.org/api/#vm-children.


Discourage mixing CJS and ES6 module syntax in docs

Experience has shown that it is easy to fall into a trap like this:
// a.js
module.exports = function foo () {};

// b.js
import a from './a.js'; // error, no default member found in a
a.foo();

Much code has been written like this and it used to work in Webpack 2 beta, which only exacerbates the problem of spec-incompliant code like above. Webpack's doc seems to advertise the ability to mix and match different module syntax without mentioning gotchas. I suggest that Webpack should actively discourage this practice when possible, and point people to tools such as eslint-plugin-import to help fix their code.

Can you move this to the doc repo? Thanks.

That a.js actually is still supposed to work AFAIK...
It should only break if there is an import or export in the same file. Since it's very unlikely a user would use both export and module.exports in the same file, it's more likely to happen if there's an import and module.exports exporting.
I wonder if there's a way to make module / exports be ReferenceError, but only in the module parse goal...


First attempt at guidelines for reviewing pull requests

LGTM. It's always hard to judge how strict to be with respect to code quality vs. encouraging contributions (e.g. asking someone to re-work a PR vs. merging straight away and then tidying up), but this looks like a good set of guidelines. I like @ashander's idea of including linters as part of the tests, but it's also easy to turn people off by being too strict about this, and it can be a non-productive time sink if done wrong (for example, if I am not mistaken the IPython folks don't strictly enforce pep8 for precisely this reason). Anyway, just some brainstorming. The PR itself looks good to me.


[Snyk-dev] Security upgrade alpine from 3.17 to 3.18.2

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile

We recommend upgrading to alpine:3.18.2, as this image has only 2 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

371
Improper Authentication SNYK-ALPINE317-OPENSSL-5776809
No Known Exploit

371
Improper Authentication SNYK-ALPINE317-OPENSSL-5776809
No Known Exploit

371
CVE-2023-3446 SNYK-ALPINE317-OPENSSL-5788365
No Known Exploit

371
CVE-2023-3446 SNYK-ALPINE317-OPENSSL-5788365
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

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


Plugin no longer loading

Hi, it's been working for years. now it will not launch with homebridge.
here are the logs.
Could anyone help me with this?
thank you very much.

I have the same problem an could use some help.


Install: Fix rpm-ostree service

When starting init-yggd service, need to run after the flotta-agent,
the service that creates the user.
This is needed because flotta user id need to be part of the
device-worker env variables.
Signed-off-by: Eloy Coto<EMAIL_ADDRESS>

/lgtm

/lgtm


2 async query in the transaction assertion: while handler is still: waiting

We has 2 async query in the transaction and one should throw error.
Example:
return request.transaction(on: .mysql) { (connect) -> Future<SuccessResponse> in

  let userFuture : Future<Void> = UserEntity.find(updateUserId, on: connect).map { entity in
    throw Abort(.forbidden, reason: "You have not access")
  }

  let userPersonalFuture : Future<Void> = UserPersonalEntity.find(currentUser.userId, on: connect).map {}

  return [userFuture, userPersonalFuture].flattern(on: connect).map {
    return SuccessResponse()
  }

}

That generated:
Fatal error: Attempting to call `send(...)` while handler is still: callback(NIO.EventLoopPromise<()>(futureResult: NIO.EventLoopFuture<()>), (Function)).: file /.build/checkouts/mysql/Sources/MySQL/Connection/MySQLConnection.swift, line 81

If would removed request.transaction and use request without connect then it works is fine

A limitation of MySQL 3.0 is that you must wait for the previous request to complete before sending another. Like this:
return asyncThingOne().flatMap {
    return asyncThingTwo()
}

This limitation will be lifted in the next version.


Add explicit function return type

It seems like this rule used to be enabled by some recommended rulesets in eslint v4, but is no longer in v5 (or is no longer an error).
We can discuss if we might want to set some options (see docs).
Additionally, I am not sure how this would affect React apps, but for Angular I would like to enable this rule. @kristijanbambir and @isBatak do you think we should enable this for React apps as well, or should I move the rule to Angular-specific config?

This rule should be there for React apps as well. @isBatak do you see any issues with this?

I don't think we need this rule, TS is smart enough to infer the return type.
This tsconfig flag is better option https://www.typescriptlang.org/tsconfig#strictFunctionTypes

I think it's still worth having this rule. For example, if you have a function like this:
export function getResult() {
  return 42;
}

The inferred return type will be number.
If someone changes it to this:
export function getResult() {
  if (some_condition) {
    return;
  }
  return 42;
}

then the return type becomes number | undefined.
Or this:
export function getResult() {
  return '42';
}

then the return type becomes `string`.

These changes of the inferred typed might not be wanted because they change the public interface of the method.

Yes, there will probably be compilation errors in some other places in the codebase where the function is used, but ideally I would like the errors to stop in this function. These types of changes might not even be caught in other places in the codebase if strictNullChecks tsc flag is not enabled or if there is some type casting happening or if `any` is used somewhere.

If there is a change to the public interface of a method, I want us to be explicit about it instead of inferring the new type and rely on compilation errors in other places of the codebase.

These types of changes might not even be caught in other places in the codebase if strictNullChecks tsc flag is not enabled

Well we should fix that issue and force devs to enable this feature.

or if there is some type casting happening or if any is used somewhere

If any is used somewhere then return type will not help.
no-explicit-any rule could help here https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-explicit-any.md
Long story short, I would not recommend enabling this for React projects.
Resons:

This works just fine

const getNumber = () => 24;
const getString = () => '24';
const getResult = (condition: boolean) => {
  if (condition == true) {
    return;
  }
  return 42;
}

const addOne = (value: number) => value + 1;

addOne(getNumber());
addOne(getString()); <-- this will show an error
addOne(getResult(true)); <-- this will show an error

https://www.typescriptlang.org/play?ssl=14&ssc=25&pln=1&pc=1#code/MYewdgzgLgBA5gUygOQK4FsBGCBOMC8MAFAJQEB8MATACwDcAUKJLIlAMpQ4CWYcBxMvkoByWiMbNo8JACUEEVABtYhIswAm3KN3AAuGJhAglCAIZghlAN4MYMbgDNim7brAFCXVAjK379jhIqDhgjPYAvnYwQVAhHjRUjFFM4NJmGhoA8mAIAkQAbmZKPgZgGNg4VjBFJXkA1DAAjIwMGdm5RGxoWLikJIztOQhdSJw8fP2DmcOjUPKKKkTevgNAA

Return types clutter the code and increases cognitive load (it's harder to read the code)

Let's agree to disagree and enable this for Angular projects and not for React projects.


Arguments to path.join must be strings

Unless I return path (such as below) I get a string concatenation error.
.pipe rename( (path) ->
  path.dirname = path.dirname
  path
)

From my own debugging it appears that obj(parsedPath) isn't returning anything at index.js:30 but I'm not sure why.

https://github.com/hparra/gulp-rename/commit/7cb3edc3bc192f8fc3bc95b1a5701867bd011874


SliverMainAxisGroup does not support Tab key navigation properly

Steps to reproduce

Create  a SliverMainAxisGroup inside a CustomScrollView.
Let the first item in the SliverMainAxisGroup be a SliverAppBar, or any other widget that is not focusable.
Add a list of focusable widgets that is so long that it does not fit on the screen.
Run the app and use the Tab key to navigate the list of focusable items.
When the focus is on the last visible item, a press on the Tab key moves the focus outside the screen and the item that receives focus is not scrolled into view.

If the SliverMainAxisGroup only contains focusable items the scrolling works. It is only when there is a widget that is not focusable before the focusable items that it stops working.
Expected results
When using the SliverMainAxisGroup with a combination of focusable and not focusable widgets in a list that is so long that it does not fit on the screen, the Tab key navigation should work properly so that the first item that is not visible is scrolled into view when it receives focus.
Actual results
The first not visible item is not scrolled into view when it receives focus.
Code sample
Working SliverMainAxisGroup: https://dartpad.dev/?id=1cc6b53cd6eaa26a41d3e1b1afd9e30e
SliverMainAxisGroup with problem: https://dartpad.dev/?id=f1b663f6dd9fdd7fcef32c78f043d215
Screenshots or Video

 Video demonstration
Working SliverMainAxisGroup:
https://github.com/flutter/flutter/assets/146726107/4420f832-ab46-4379-b2b5-ffc657d985ed
SliverMainAxisGroup with problem:
https://github.com/flutter/flutter/assets/146726107/eebcc419-3c16-443b-a3b6-793605dc65f9

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

Hi @ehhkaan
I'm not quite sure I understand the issue completely. But looking at your demo video, do you mean the 10th item is not displayed and pushed up completely?

If it's the issue, it seems to be fixed on the latest master channel as I don't see it occurring anymore:
https://github.com/flutter/flutter/assets/104349824/6fae59b5-f94c-4351-aee3-19faa6674752

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.19.2 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (5 days ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 122.0.6261.94

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.20.0-17.0.pre.94, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.20.0-17.0.pre.94 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a431dee5c9 (51 minutes ago), 2024-03-05 21:27:24 -0500
    • Engine revision effcf97a1f
    • Dart version 3.4.0 (build 3.4.0-190.0.dev)
    • DevTools version 2.33.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
    • iPhone (mobile)  • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.8 19H370
    • macOS (desktop)  • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome                                   • web-javascript • Google Chrome 122.0.6261.94

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Please switch to master channel and confirm this.

Hi @huycozy,
That is precisely what I mean, and I have also now verified that the issue is gone when I switch to the master channel.
Thank you for your help in finding this!
BR
Henrik


Cert-manager should reconcile expired certificate on resume from system sleep

This bug occurred during local development where a short lived (1 day) Certificate was deemed Ready and not expired after resuming from a laptop sleep state. On resume no new CertificateRequest was made and the certificate was expired.
We were testing on a k3d on a laptop but I am testing reproduction on a GCP VM suspend.
!!Note that this is in draft until i confirm reproduction
Expected behaviour:
Expect any skipped reconciliation due to sleep state to occur on resume from sleep ensuring there is no inconsistent certificate.
Steps to reproduce the bug:

Make a VM with kind/docker
Install cert-manager
Make a self signed CA using this manifest
Make a 1 hour Certificate , used this simple one:

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: cert-1-hour
  namespace: sandbox
spec:
  isCA: false
  dnsNames:
    - cert-1-hour.local
  privateKey:
    algorithm: RSA
    rotationPolicy: Always
  duration: 1h
  secretName: cert-1-hour
  issuerRef:
    name: my-ca-issuer
    kind: Issuer

take kind log
Pause the VM for an hour
Resume after 1 hour, see the Certificate is "frozen" due to it missing its renewal time, even the 10 hour fixed mechanism to check doesn't catch it so this cert would never renew.

Anything else we need to know?:
Although this is not realistic to happen in prod it can catch people out in development or when trialling cert-manager in their laptops, it doesn't look good when expired certs are not renewed.
Environment details::

Kubernetes version: 1.26.0

Cloud-provider/provisioner: k3d/kind (any)

cert-manager version: (1.12.0)

Install method: e.g. helm/static manifests
helm
/kind bug

Certificate status 1 minute before the pause:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"cert-manager.io/v1","kind":"Certificate","metadata":{"annotations":{},"name":"cert-1-hour","namespace":"sandbox"},"spec":{"dnsNames":["cert-1-hour.local"],"duration":"1h","isCA":false,"issuerRef":{"kind":"Issuer","name":"my-ca-issuer"},"privateKey":{"algorithm":"RSA","rotationPolicy":"Always"},"secretName":"cert-1-hour"}}
  creationTimestamp: "2023-09-12T22:09:03Z"
  generation: 1
  name: cert-1-hour
  namespace: sandbox
  resourceVersion: "9984"
  uid: e9483177-933b-4629-8522-c8c65e9d2f2e
spec:
  dnsNames:
  - cert-1-hour.local
  duration: 1h0m0s
  issuerRef:
    kind: Issuer
    name: my-ca-issuer
  privateKey:
    algorithm: RSA
    rotationPolicy: Always
  secretName: cert-1-hour
status:
  conditions:
  - lastTransitionTime: "2023-09-12T22:09:47Z"
    message: Certificate is up to date and has not expired
    observedGeneration: 1
    reason: Ready
    status: "True"
    type: Ready
  notAfter: "2023-09-12T23:09:47Z"
  notBefore: "2023-09-12T22:09:47Z"
  renewalTime: "2023-09-12T22:49:47Z"
  revision: 1

next day (September 13th) the status has not changed:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"cert-manager.io/v1","kind":"Certificate","metadata":{"annotations":{},"name":"cert-1-hour","namespace":"sandbox"},"spec":{"dnsNames":["cert-1-hour.local"],"duration":"1h","isCA":false,"issuerRef":{"kind":"Issuer","name":"my-ca-issuer"},"privateKey":{"algorithm":"RSA","rotationPolicy":"Always"},"secretName":"cert-1-hour"}}
  creationTimestamp: "2023-09-12T22:09:03Z"
  generation: 1
  name: cert-1-hour
  namespace: sandbox
  resourceVersion: "9984"
  uid: e9483177-933b-4629-8522-c8c65e9d2f2e
spec:
  dnsNames:
  - cert-1-hour.local
  duration: 1h0m0s
  issuerRef:
    kind: Issuer
    name: my-ca-issuer
  privateKey:
    algorithm: RSA
    rotationPolicy: Always
  secretName: cert-1-hour
status:
  conditions:
  - lastTransitionTime: "2023-09-12T22:09:47Z"
    message: Certificate is up to date and has not expired
    observedGeneration: 1
    reason: Ready
    status: "True"
    type: Ready
  notAfter: "2023-09-12T23:09:47Z"
  notBefore: "2023-09-12T22:09:47Z"
  renewalTime: "2023-09-12T22:49:47Z"
  revision: 1

And we have an expired cert in the secret:
-----BEGIN CERTIFICATE-----
MIICRzCCAeygAwIBAgIQWfrtmpfzTV/t0BNcnfvDmzAKBggqhkjOPQQDAjAbMRkw
FwYDVQQDExBteS1zZWxmc2lnbmVkLWNhMB4XDTIzMDkxMjIyMDk0N1oXDTIzMDkx
MjIzMDk0N1owADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKGH1Koo
rtp6sQNjZaqBuVrrJ6LwN7pj2nTchxtXYBlUvNmsI4L28+r3sGEcWaenQdM3ptmT
3eX97Zk5GrxYKZlOP3UXeDAHZUUAqK29nSitljllGY/tyXXH2Hac6NbsB54xgdd0
NCvyWptEcKq6F2Bk1r1o+NtI8BsZk5y7P+25428bQIiWcaZ00faCY3vzixrJcXN/
q9uqlObhFb01KE+WUiN1aiHZVfEgosKzp0Aq/ZX2BjrtRBDLIt+lF6Pq7RCnKtkE
vz+Y54D85sd2UjUCQafSWHVfRdpSIyV9TYO+HiEI4CER1x7tCaUwXZvibD9dgWbK
efUfSsSic4w2bq8CAwEAAaNiMGAwDgYDVR0PAQH/BAQDAgWgMAwGA1UdEwEB/wQC
MAAwHwYDVR0jBBgwFoAU0r06b+DqtP1Psn1wsE/FT+IvFp4wHwYDVR0RAQH/BBUw
E4IRY2VydC0xLWhvdXIubG9jYWwwCgYIKoZIzj0EAwIDSQAwRgIhAN1kTBa88btG
DVD7RI25fWOl82VyuhUJXp5Z4C54pD3ZAiEA8UTvMlhOY17aU5PDhQOFRACw8ogD
krIseTXeMmcRtRM=
-----END CERTIFICATE-----

Since it is a core go timer issue, i checked some popular go projects where time is critical, it It looks like they are mitigating something similar in cockroachdb:
https://github.com/cockroachdb/cockroach/issues/25109
https://github.com/cockroachdb/cockroach/pull/23744/files

We've re-ran the test with this PR https://github.com/cert-manager/cert-manager/pull/6328/files
The approach of clock skew detection and liveness probe causing a restart worked in this scenario so it would be a way forward.


Ensure smt2 comments are associated with accessors

Hi,
I noticed an issue recently where accessor comment annotations may end up no longer associated with the correct accessor in Yosys's SMT2 output. For example:
The following module:
module top (
    input in,
    output out
);
wire in_n;
assign in_n = in + 1'b1;
assign out = ~in_n;
endmodule

When compiled with the following command:
yosys -p 'read_verilog example.v' -p 'prep -flatten -top top -nordff' -p 'write_smt2 out.smt2'
Gives output like so:
; SMT-LIBv2 description generated by Yosys 0.9+3491 (git sha1 87b9ee33, clang 11.0.3 -fPIC -Os)
; yosys-smt2-module top
(declare-sort |top_s| 0)
(declare-fun |top_is| (|top_s|) Bool)
; yosys-smt2-input in 1
(declare-fun |top#0| (|top_s|) Bool) ; \in
(define-fun |top_n in| ((state |top_s|)) Bool (|top#0| state))
; yosys-smt2-output out 1
(define-fun |top#1| ((state |top_s|)) (_ BitVec 1) (bvadd (ite (|top#0| state) #b1 #b0) #b1)) ; \in_n
(define-fun |top#2| ((state |top_s|)) (_ BitVec 1) (bvnot (|top#1| state))) ; \out
(define-fun |top_n out| ((state |top_s|)) Bool (= ((_ extract 0 0) (|top#2| state)) #b1))
(define-fun |top_a| ((state |top_s|)) Bool true)
(define-fun |top_u| ((state |top_s|)) Bool true)
(define-fun |top_i| ((state |top_s|)) Bool true)
(define-fun |top_h| ((state |top_s|)) Bool true)
(define-fun |top_t| ((state |top_s|) (next_state |top_s|)) Bool true) ; end of module top
; yosys-smt2-topmod top
; end of yosys output

This seems wrong to me - the comment annotation for out precedes a completely different signal, and even the comment annotation for in is above the function with a numbered name, not the accessor with the nice name.
I discovered the problem is that the functions get_bool and get_bv that return a reference to a signal (which are used to generate the body of these accessor functions) may also export cells themselves. This pushes additional strings onto the decls vector in between the comment and the actual accessor.
This patch solves the problem by not pushing the comment write away, and precomputing the sig_bool or sig_bv return value before pushing the accessor function. This way, the comment and the accessor function are guaranteed to be pushed together, with the right relative ordering. With this patch, the output from above turns into:
; SMT-LIBv2 description generated by Yosys 0.9+3491 (git sha1 87b9ee33, clang 11.0.3 -fPIC -Os)
; yosys-smt2-module top
(declare-sort |top_s| 0)
(declare-fun |top_is| (|top_s|) Bool)
(declare-fun |top#0| (|top_s|) Bool) ; \in
; yosys-smt2-input in 1
(define-fun |top_n in| ((state |top_s|)) Bool (|top#0| state))
(define-fun |top#1| ((state |top_s|)) (_ BitVec 1) (bvadd (ite (|top#0| state) #b1 #b0) #b1)) ; \in_n
(define-fun |top#2| ((state |top_s|)) (_ BitVec 1) (bvnot (|top#1| state))) ; \out
; yosys-smt2-output out 1
(define-fun |top_n out| ((state |top_s|)) Bool (= ((_ extract 0 0) (|top#2| state)) #b1))
(define-fun |top_a| ((state |top_s|)) Bool true)
(define-fun |top_u| ((state |top_s|)) Bool true)
(define-fun |top_i| ((state |top_s|)) Bool true)
(define-fun |top_h| ((state |top_s|)) Bool true)
(define-fun |top_t| ((state |top_s|) (next_state |top_s|)) Bool true) ; end of module top
; yosys-smt2-topmod top
; end of yosys output

One note: I wasn't able to test this patch on any example design using write_smt2 with the -nobv flag. Every time I call the backend with this flag, I get an error message stating that basic cell types ($add, $not, $dff, etc.) are not defined.
Thanks in advance for taking a look! If you have any feedback on a better way to tackle this issue, I'd be happy to adjust the PR accordingly.

Thanks for taking a look - I just fixed the commit to use a vector instead of a C-style array!
I also noticed that my original commit broke the case where there are more than one comment annotation on an accessor, but I fixed that up as well (by populating a vector of all relevant comments and inserting those, rather than a single string).


Current Operations (Single Display) item has issues

Current Operations (Single Display) (Operations View) owned by Demonstration: 10b05c86371f46568a1623dbacec8f86

[ ] No Description
[ ] No Summary
[ ] No Credits
Open in Browser, opens, interacting with app... a little. Again, not sure what I should be doing here, or what I can do here.

Had several Connectivity Issues:
Operations Dashboard can no longer access some resources used by the operation view. Please check your network connection or contact the publisher Demo Demonstration.
x Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: da440349938947d8815e4fe4e963429f

Could not access service. Either the service is not available, has been deleted, or it does not support secured access (HTTPS/SSL).

Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: 61ab5eedba644d6c812d6a849615b4b3

Could not access service. Either the service is not available, has been deleted, or it does not support secured access (HTTPS/SSL).

Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: d26c502c8e204403ab409cb4de312797

Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: e7eb02ad70b145fa9d8d40396f9a9a6f

Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: dd75b088db8448bb81be7d0c39c31f22

Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: 258362e7168f4d279e405446f1dae16d

Could not access item. Either you do not have access to the item or it has been deleted. Operations Dashboard used the service url instead.
Item id: ac61ccc9ba8c4ed8a60557ac7105fc6c

Item or service could not be accessed when opening the map.
/8453829fc1e64ac49d30459833fcf086
Comment

@mfunk For items owned by Demonstration, we really aren't worried about the description, credits and summary. The only error I receive when I open this operations view is "The following data sources are not accessible", this ops view references the service Military/AirC2_MilitaryAirTracks/MapServer which has to be published manually by users. Instructions for publishing this service are being written and will be provided in the Ops Server release, therefore this service will exist at some point on a deployed Ops Server, so I will close this issue. Thank you.


secure-boot: add block diagram

Signed-off-by: Jorge Ramirez-Ortiz<EMAIL_ADDRESS>

Docs for cd095d89e40d5b7b61975906cffff97cdff4a69e are browesable at: https://ci.foundries.io/projects/fio-docs/builds/414/docs/artifacts/html/index.html

Docs for ce27c329dea1445d16aeaea7ef6729565b730ba3 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/415/docs/artifacts/html/index.html

Minor thing, LMP should be "Linux microPlatform".
Also RPMB gets used via U-Boot and Linux, but not sure if there is an easy way to show that here.
But looking great, thanks for putting this together.

yeah I wasnt sure if doing the loop via uboot/linux for rpmb would obscure things ...I'll try

Docs for c64531a065559d6d4824bdb43b14901994437359 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/417/docs/artifacts/html/index.html

Docs for 296d640d8600e39fec70d7f447cf7f699876bfc7 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/418/docs/artifacts/html/index.html

Docs for 1bbfb32f677e6ad28ae6af10b3d85afdf1e242f4 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/419/docs/artifacts/html/index.html

Docs for d8fdd38f40555ed2366aefcdfa7607164a1d4847 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/420/docs/artifacts/html/index.html


Added language system

Added language system
still in testing

I marked some issues I found.
For the future, please don't reformat the whole project. It makes this pr incredibly hard to read, and I now have to reformat everything after this is getting merged... I will definitely need to implement styling guidelines.

I will try to fix this

You still haven't fixed the flower pot thing

You still haven't fixed the flower pot thing

thanks for reminding, i'll fix it soon

I marked some issues I found.
For the future, please don't reformat the whole project. It makes this pr incredibly hard to read, and I now have to reformat everything after this is getting merged... I will definitely need to implement styling guidelines.

I think I know the reason because this is turned on

I think it should look a lot more normal now

I'll go ahead and fix it's formatting issues

Can this be merged? Is it tested and done?

Can this be merged? Is it tested and done?

still testing

Okay. Just comment when you are done

Now the problem: if there is any error in language.yml, it will show strange text.

Now the problem: if there is any error in language.yml, it will show strange text.

What do you mean? Can you show an example? (In game and of the language config)

I'm going to test again tomorrow (today) because it's 1:30am for me now.

Oh, okay. ✨Timezones ✨

If I comment out some text:

will

Now the problem: if there is any error in language.yml, it will show strange text.

What do you mean? Can you show an example? (In game and of the language config)

If you don't think this is important, then it's done.
I'll try to rewrite this after the merge.

Can this be merged now?

Can this be merged now?

Okay, it should be fine now


Error in dev-server since version 3.12.3 when behind proxy

Environment

Operating System: Linux
Node Version:     v20.13.1
Nuxt Version:     3.12.3
CLI Version:      3.12.0
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      modules, i18n, ssr, compatibilityDate
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
Because this issue occurs when behind a reverse proxy, I could not reproduce this in stackblitz or codesandbox.
I build a simple Docker Compose repo to reproduce the issue:
https://github.com/HendrikJan/nuxt-with-apache-issue
Reproduce:
See the README of the above repository or do the following steps:

Start Docker Compose: docker compose up
Get into the container: docker compose exec mynode bash
In the container run: npm run dev
Open the browser on http://localhost:4000 and see the error in the console

Describe the bug
After starting the server with npm run dev, the first time you open http://localhost:4000, the page doesn't load and you get an error in your browser console.
The second and subsequent times you open the browser (or another browser) the page loads and the error disappears.
Additional context
The problem only exists when running through a reverse proxy (Apache in this case).
The problem also only exists when loading modules (@nuxtjs/i18n in this case).
Logs
Errors in the Firefox console:
[Vue warn]: Unhandled error during execution of render function
  at <Default ref=Ref< undefined > >
  at <LayoutLoader key="default" layoutProps=

and
Uncaught (in promise) TypeError: currentRenderingInstance is null

Errors in the Chromium console:
[Vue warn]: Unhandled error during execution of render function
  at <Default ref=Ref< undefined > >
  at <LayoutLoader key="default" layoutProps= Object name="default" >
  at <NuxtLayoutProvider layoutProps= Object key="default" name="default"  ... >
  at <NuxtLayout>
  at <App key=4 >
  at <NuxtRoot>

and
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE')
    at renderSlot (runtime-core.esm-bundler.js?v=4b6dd004:2083:32)
    at Proxy._sfc_render (default.vue:4:5)
    at renderComponentRoot (runtime-core.esm-bundler.js?v=3bed71f0:886:16)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js?v=3bed71f0:5123:46)
    at ReactiveEffect.run (reactivity.esm-bundler.js?v=3bed71f0:150:19)
    at instance.update (runtime-core.esm-bundler.js?v=3bed71f0:5254:17)
    at setupRenderEffect (runtime-core.esm-bundler.js?v=3bed71f0:5264:5)
    at mountComponent (runtime-core.esm-bundler.js?v=3bed71f0:5032:7)
    at processComponent (runtime-core.esm-bundler.js?v=3bed71f0:4986:9)
    at patch (runtime-core.esm-bundler.js?v=3bed71f0:4456:11)

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE') looks like duplicate vue package versions. See https://github.com/vuejs/core/issues/4344#issuecomment-899064501


DuplicateNumberDetection

https://github.com/mission-peace/interview/blob/master/src/com/interview/array/DuplicateNumberDetection.java
What if the numbers in the are bigger than the size of the array? It results in array out of bounds exception.

Mentioned in the comments -
Given an array of size n + 1 with elements from 1 to n.
So here for this algorithm to work this is the constraint that elements can not be bigger than the max index of the  array. Otherwise clearly its going to throw out of bounds exception.


Bugfix 1.2.3

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


Storybook mocking not working

React version: 16.13.0
Concurrent mode: I don't think so
rest-hooks 4.5.6, @rest-hooks/test 1.0.15
Describe the bug
I try to follow the example on https://resthooks.io/docs/guides/storybook. As already described in #storybook, I get

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.

Adding <Suspense> leads me to a state where always the fallback is rendered. Changing the selected knob value results in the following error:
TypeError: Cannot read property 'listUrl' of undefined
    at eval (eval at result (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:140614:17), <anonymous>:1:34)
    at getFetchKey (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:140615:18)
    at http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:2517:17
    at Array.reduce (<anonymous>)
    at mockInitialState (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:2508:29)
    at MockProvider (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:2600:17)
    at renderWithHooks (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:93979:18)
    at updateFunctionComponent (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:96212:20)
    at beginWork (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:97797:16)
    at HTMLUnknownElement.callCallback (http://localhost:9009/vendors~main.11082f74550b145b3892.bundle.js:79342:14)

To Reproduce
My `fixtures.ts looks like this:
import BloggerResource from 'models/BloggerResource';
import ProductResource from 'models/ProductResource';

export default {
  full: [
    {
      request: BloggerResource.listShape(),
      params: { maxResults: 10 },
      result: [
        {
          id: 5,
          profileName: 'yao_yao',
          products: [],
        },
        {
          id: 23,
          profileName: 'miss_summer',
          products: [5],
        },
      ],
    },
    {
      request: ProductResource.listShape(),
      params: { maxResults: 10 },
      result: [
        {
          id: 5,
          reference: '007H223',
          name: 'Schmuckes Top',
          description: 'Ein ganz tolles Top, ein top Top sogar.',
          shortDescription: 'Tiptop Top',
          quantity: 1,
          price: 14.99,
          imageUrls: [''],
          blogger: 23,
        },
      ],
    },
  ],
  empty: [
    {
      request: BloggerResource.listShape(),
      params: { maxResults: 10 },
      result: [],
    },
    {
      request: ProductResource.listShape(),
      params: { maxResults: 10 },
      result: [],
    },
  ],
  loading: [],
};

Expected behavior
Story should work as intended.
Additional context

There is also this error message in the browser console:

Follow instructions: https://resthooks.io/docs/getting-started/installation#add-provider-at-top-level-component
(anonymous) @ context.js:7

I had to change one line from the example:
const defaultValue = fixtures.full
According to https://github.com/storybookjs/storybook/tree/master/addons/knobs section about select, that should be correct.

Thanks for the report. I'll see what I can do to help or fix the issues.
Can you provide your Resource definitions? I think there may be something related to the listUrl() you're seeing.
For these two: Add a <Suspense fallback=...> component and Follow instructions: https://resthooks.io/docs/getting-started/installation#add-provider-at-top-level-component it seems to not be picking up the provider context. One of the reasons this could be is that your hooks and MockProvider are not pulling from the same context. With that in mind, can you verify there's only one copy of rest-hooks installed by looking for entries in your yarn.lock or npm-lock.json files? Another thing I can think of is that there is an issue with commonjs builds, which we mostly only use in node. Do you know whether your storybook environment is configured to use es6 modules or not?

Thank you for the quick response, and for this nice project in general :)
My Resource definitions:
import { Resource } from 'rest-hooks';

import config from 'config';
import ProductResource from './ProductResource';

export default class BloggerResource extends Resource {
  readonly id: number | undefined = undefined;
  readonly profileName: string = '';
  readonly instagram: string = '';
  readonly description: string | null = '';
  readonly facebook: string | null = '';
  readonly youtube: string | null = '';
  readonly memberSince: string = '';
  readonly products: number[] = [];

  pk() {
    return this.id?.toString();
  }

  static urlRoot = `${config.api_root}/public/blogger`;

  static schema = {
    products: [ProductResource.asSchema()],
  };
}

ProductResource.schema = {
  blogger: BloggerResource.asSchema(),
};

import { Resource } from 'rest-hooks';

import config from 'config';

export default class ProductResource extends Resource {
  readonly id: number | undefined = undefined;
  readonly name: string = '';
  readonly reference: string = '';
  readonly description: string = '';
  readonly shortDescription: string = '';
  readonly price: number = 0;
  readonly quantity: number = 0;
  readonly imageUrls: string[] = [];
  readonly blogger: number | null = 0;

  pk() {
    return this.id?.toString();
  }

  static urlRoot = `${config.api_root}/public/product`;

  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  static schema: any;
}

I checked that there is only one version of rest-hooks in my yarn.lock.
My storybook configuration is the standard configuration with preset-create-react-app. I could not find out how to configure which module version to use. I found the following variation of the missing provider error in the browser console:
    at eval (eval at result (index.js:310), <anonymous>:1:34)
    at getFetchKey (index.js:311)
    at index.cjs.js:99
    at Array.reduce (<anonymous>)
    at mockInitialState (index.cjs.js:90)
    at MockProvider (index.cjs.js:182)
    at renderWithHooks (react-dom.development.js:14825)
    at updateFunctionComponent (react-dom.development.js:17058)
    at beginWork (react-dom.development.js:18643)
    at HTMLUnknownElement.callCallback (react-dom.development.js:188)
...

so it seems commonjs (index.cjs) is used?

For listUrl thing...can you also share the story itself? https://github.com/coinbase/rest-hooks/blob/master/packages/rest-hooks/src/resource/SimpleResource.ts#L136 seems to be the offending line, which means maybe you're passing your listShape method somewhere and calling that rather than having BloggerResource.listShape().
const BloggerListShape = BloggerResource.listShape;
BloggerListShape() // will throw, because 'this' is undefined.

I'll look into the commonjs issue.

I created a minimal failing example story:
``
import React from 'react';
import StoryRouter from 'storybook-react-router';
import withReduxStore from 'stories/withReduxStore';
import withRestHooks from 'stories/withRestHooks';
import BloggerResource from 'models/BloggerResource';
import { useResource } from 'rest-hooks';
export default { title: 'BloggerList', decorators: [withRestHooks] };
export const BloggerList = () => {
const bloggers = useResource(BloggerResource.listShape(), {});
return (
<>
{bloggers.map(b => (
{b.profileName}
))}
;
</>
);
};

withRestHooks.ts:

import React, { Suspense } from 'react';
import { MockProvider } from '@rest-hooks/test';
import { NetworkErrorBoundary } from 'rest-hooks';
import { select } from '@storybook/addon-knobs';
import fixtures from './fixtures';
const label = 'Data';
const defaultValue = fixtures.full;
const groupId = 'GROUP-ID1';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default (Story: any) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const results = select(label, fixtures, defaultValue, groupId);
return (

<Suspense fallback={Lade...}>

);
};

I tried it without decorator and it doesn't make any difference:

import React, { Suspense } from 'react';
import { useResource, NetworkErrorBoundary } from 'rest-hooks';
import { MockProvider } from '@rest-hooks/test';
import { select } from '@storybook/addon-knobs';
import BloggerResource from 'models/BloggerResource';
import fixtures from 'stories/fixtures';
const label = 'Data';
const defaultValue = fixtures.full;
const groupId = 'GROUP-ID1';
export default { title: 'BloggerList (no decorator)' };
const BloggerList = () => {
const bloggers = useResource(BloggerResource.listShape(), {});
return (
<>
{bloggers.map(b => (
{b.profileName}
))}
</>
);
};
export const WrappedBloggerList = () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const results = select(label, fixtures, defaultValue, groupId);
return (

<Suspense fallback={Lade...}>

);
};

Found the problem - your params are mismatched on your fixtures with your usage. you'll need { maxResults: 10 } as the second arg for it to work.
probably just want to change your fixture to have empty params {}

🤦♂ Everything works, no more errors. Thank you so much :D

Closing for now. Would love some ideas on how to detect these sorts of things and give helpful suggestions