Add a wiki

It would be nice to add a wiki with basic troubleshooting steps, a deeper dive into audio configurations (systemwide and librespot) and whatnot.

In the mean time this /etc/asound.conf has the instructions and means to configure the default ALSA audio device on a Raspberry Pi:
# /etc/asound.conf

###############################################################################

pcm.hqstereo20 {
    @args [
        SAMPLE_RATE FORMAT BUFFER_PERIODS
        BUFFER_PERIOD_TIME VOL_MIN_DB
        VOL_MAX_DB VOL_RESOLUTION VOL_NAME
    ]
    # Sampling rate in Hz:
    # 44100, 48000, 88200, 96000...
    # Defaults to 44.1 kHz (CD Quality).
    @args.SAMPLE_RATE {
        type integer
        default 44100
    }
    # Format:
    # S16_LE, S24_LE, S24_3LE, S32_LE...
    # Defaults to S16_LE (CD Quality).
    @args.FORMAT {
        type string
        default S16_LE
    }
    # Periods per buffer.
    @args.BUFFER_PERIODS {
        type integer
        default 4
    }
    # Period size in time.
    # Defaults to 125ms (0.125 sec).
    # BUFFER_PERIODS * BUFFER_PERIOD_TIME = buffer time/size
    @args.BUFFER_PERIOD_TIME {
        type integer
        default 125000
    }
    # Minimal dB value of the software volume control.
    @args.VOL_MIN_DB {
        type real
        default -51.0
    }
    # Maximal dB value of the software volume control.
    @args.VOL_MAX_DB {
        type real
        default 0.0
    }
    # How many steps between min and max volume.
    @args.VOL_RESOLUTION {
        type integer
        default 256
    }
    # The name of the software volume control.
    # If your card does not have hardware volume control
    # naming it PCM will cause most apps that use alsa volume
    # to use the software volume control.
    @args.VOL_NAME {
        type string
        default Softvol
    }
    type plug
    slave {
        channels 2
        rate $SAMPLE_RATE
        format $FORMAT
        pcm {
            type softvol
            min_dB $VOL_MIN_DB
            max_dB $VOL_MAX_DB
            resolution $VOL_RESOLUTION
            control {
                name $VOL_NAME
                card {
                    @func refer
                    name defaults.ctl.card
                }
            }
            slave {
                format $FORMAT
                pcm {
                    type dmix
                    ipc_key 1024
                    ipc_perm 0660
                    ipc_gid audio
                    slowptr true
                    hw_ptr_alignment roundup
                    slave {
                        pcm {
                            type hw
                            card {
                                @func refer
                                name defaults.pcm.card
                            }
                            device {
                                @func refer
                                name defaults.pcm.device
                            }
                            subdevice {
                                @func refer
                                name defaults.pcm.subdevice
                            }
                            channels 2
                            rate $SAMPLE_RATE
                            format $FORMAT
                        }
                        channels 2
                        period_size 0
                        buffer_size 0
                        buffer_time 0
                        period_time $BUFFER_PERIOD_TIME
                        periods $BUFFER_PERIODS
                        rate $SAMPLE_RATE
                        format $FORMAT
                    }
                    bindings {
                        0 0
                        1 1
                    }
                }
            }
        }
    }
}

###############################################################################

# Find your sound card:
# aplay -l

# Find your card's supported format(s) and sampling rate(s) While no other audio is being played:
# aplay -Dhw:<card #>,<device #> --dump-hw-params /usr/share/sounds/alsa/Front_Right.wav
# For example:
# aplay -Dhw:0,0 --dump-hw-params /usr/share/sounds/alsa/Front_Right.wav

# The output should look something like this if the card and device combination is correct:

# ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
# FORMAT:  S16_LE S24_LE S32_LE
# SUBFORMAT:  STD
# SAMPLE_BITS: [16 32]
# FRAME_BITS: [32 64]
# CHANNELS: 2
# RATE: [8000 192000]
# ...

# The above card supports formats S16_LE, S24_LE, and S32_LE, at up to a sampling rate of 192000.

# Check to see if your sound card has hardware volume controls.
# amixer -c<card #> scontrols
# For example:
# amixer -c0 scontrols

# The output should look something like this if your card has hardware volume control:
# Simple mixer control 'PCM',0
# ...

# Change to the card number or name that you want to be the default control card.
# Default: 0
defaults.ctl.card 0

# Change to the card number or name that you want to be the default playback card.
# It should usually be the same as defaults.ctl.card.
# Default: 0
defaults.pcm.card 0

# Change to the device number that you want to be the default device on the default card.
# 0 or 1 is usually the correct device number.
# Default: 0
defaults.pcm.device 0

# Change to the subdevice number that you want to be the default subdevice on the default device.
# Should rarely need to be changed.
# Default: -1
defaults.pcm.subdevice -1

# To install high quality samplerate converters on Debian based systems:
# sudo apt install -y --no-install-recommends libasound2-plugins

# To list available rate_converter's:
# echo "$(ls /usr/lib/*/alsa-lib | grep "libasound_module_rate_")" | sed -e "s/^libasound_module_rate_//" -e "s/.so$//"

# Uncomment and replace speexrate_medium with the rate_converter of your choice.
# defaults.pcm.rate_converter speexrate_medium

# Once everything is configure close and save this file and test with:
# speaker-test -c2 -l1

# While audio is playing you can verify your settings with:
# cat /proc/asound/card*/pcm*p/sub*/hw_params

pcm.!default {
    type plug
    # Optional args:
    # SAMPLE_RATE: default: 44100
    # FORMAT: default: S16_LE
    # BUFFER_PERIODS: default: 4
    # BUFFER_PERIOD_TIME: default: 125000
    # VOL_MIN_DB: default: -51.0
    # VOL_MAX_DB: default: 0.0
    # VOL_RESOLUTION: default: 256
    # VOL_NAME: default: Softvol

    # Example:
    # hifiberry dac+ zero on a pi zero.
    # slave.pcm "hqstereo20:FORMAT=S32_LE,BUFFER_PERIOD_TIME=250000,VOL_MIN_DB=-48.0,VOL_NAME=PCM"

    slave.pcm "hqstereo20"
}

###############################################################################

ctl.!default {
    type hw
    card {
        @func refer
        name defaults.ctl.card
    }
}

Following the steps in the above ``/etc/asound.conf``` (correctly) should solve and answer about 99.9% of all sound issues and questions for basic stereo sound cards.

Explanation of my example hifiberry dac+ zero on a pi zero settings:
I use raspotify on a pi zero with a hifiberry dac+ zero hat.
The hifiberry dac+ zero hat supports up to S32_LE at 192k but lacks hardware volume control.
Librespot outputs S16_LE at 44.1k. Any volume reduction throws away bits, so for higher quality volume control it's better to use a hardware control. But since the hifiberry dac+ zero hat lacks hardware volume control we can fake it with the softvol ALSA plugin and up the bit depth to 32bit (not to be confused with upsampling) which allows us to lower the volume by 48dB before we have to start throwing bits away. (32 bit ALSA software volume control is actually more like 24bit as 8 bits are used for saturation). If we name the control PCM programs will use it as the default "hardware" volume control.
For the Pi Zero I've also increased the buffer to 1 sec as it seems to preform better.

Done.


Potential issue with stack splat in exec16 from *RUN

N.B. Is there a stack splat in misc.asm within _exec16 by not setting sp
to some value before call.is? Not for $B0000 loading, but for say
$A0000 loading, as it might need a temp save, set sp, fix splat,
do stuff, put stack back, ret.lis. It would likely be with some recusion
and an almost at the limit 16 bit binary, assuming a high memory stack.
Check splat in mos.c function mos_cmdRUN before exec16?
I mean a $B0000 is likely fine, but a potential future issue. Not really a bug yet.

#9 FIX Perhaps a ld.sis sp, 0 or ld.sis sp, $8000 before the CALL.IS (DE): RET
based on the A segment being $0B to prevent global (SPL) clobber by the two byte (SPS) write of call.is?
This maximizes expected global size with confirmed max 32kB *plugin including stack, while making a logical aligned 64 kB segment except in $B0000. cp $0B: jr z, ....
Yes I assume the IX to SP restore is a stack frame thing.

I'll double check - the stacks * should * be set up with sensible defaults but that doesn't necessarily mean I've covered all the bases.


Update AUTHORS.rst

As per https://github.com/svaarala/duktape-wiki/pull/216#issuecomment-487740848

You should actually be on the first list (= actual repo contributions). I think I accidentally said you should be on the second (= bug reports and such without repo contributions). Could you fix and squash?

Hi, just wanted to remind that you should be on the first list (not the second).

Sorry, changed and rebased!

Thanks!


New PR to test SignCLA at 2020-05-13 11:07:11.271066017 -0700 PDT m=+3.151167165

Body of PR

unsigned-fail-staging: test succeeded


How can I add more languages fonts to export pdf option in ui-grid?

Sorry, it's not clear what you're asking.  If you mean more languages to the i18n, then you would submit a PR for additional languages, the files are in the src/js/i18n folder.  If you mean controlling the font selected by the pdf, then you need to use the font configuration options of pdfMake.

Closing: solution proposed that should resolve the issue, no further comments for 2 weeks, assuming solution has resolved issue.


authentification + ACL

authenticate user and be able to limit access to users
the spplicatgion shoudl includ auth and ACL
usng Ion_auth and ACL
implementation of ACL and ion auth to resolve this matter

Auth works perfectly with ion_auth, now accès level control should implemented  to finish with this security level

Simplement a good way to restrict menu and navigations

Auth merged with ACL


Fixed #33212 -- Match Set-Cookie parsing RFC when parsing Cookie header.

https://code.djangoproject.com/ticket/33212

closing for now. needs django-developers discussion.

@collinanderson Where I can follow how this discussion is going? I've stumbled this problem when trying to use Path to scope my application with sessions.

@FernandoKGA if you need to access the first cookie value rather than the last with the same name, I'd suggest creating a middleware that manually re-creates a request.COOKIE dictionary based on request.headers.get('cookie', ''). You could probably base it off of Django's 10-ish-lines of cookie parsing code, and then just make sure to only use the first cookie rather than the last cookie.
If Django were to change, I'd suggest using a MultiValueDict, similar to request.GET/request.POST, where you can call request.GET.getlist('key') to get all of the values for the same key. MultiValueDict.get() already defaults to using the last value, so it should be backward-compatible.
I'm not in a position right now to make this change myself, but feel free to start a django-developers discussion and ping me about it if you want. I don't think MultiValueDict would be that hard of a change to make if you wanted to create a pull request.
However I'd also personally recommend changing your cookie names to have a unique prefix to scope your application rather than replying on Path (because if only one cookie is sent you don't know what path it goes to). Scoping by domain is even better but probably harder.


Improve shellcheck aspect

Forward stderr to the report stdout in shellcheck aspect, and exit early when no files provided.
stderr to report
When calling shellcheck without input files the exitCode is 3, and a message like the following is shown
No files specified.

Usage: shellcheck [OPTIONS...] FILES...
  -a                  --check-sourced            Include warnings from sourced files
  -C[WHEN]            --color[=WHEN]             Use color (auto, always, never)
  -i CODE1,CODE2..    --include=CODE1,CODE2..    Consider only given types of warnings
  -e CODE1,CODE2..    --exclude=CODE1,CODE2..    Exclude types of warnings
                      --extended-analysis=bool   Perform dataflow analysis (default true)
  -f FORMAT           --format=FORMAT            Output format (checkstyle, diff, gcc, json, json1, quiet, tty)
                      --list-optional            List checks disabled by default
                      --norc                     Don't look for .shellcheckrc files
                      --rcfile=RCFILE            Prefer the specified configuration file over searching for one
  -o check1,check2..  --enable=check1,check2..   List of optional checks to enable (or 'all')
  -P SOURCEPATHS      --source-path=SOURCEPATHS  Specify path when looking for sourced files ("SCRIPTDIR" for script's dir)
  -s SHELLNAME        --shell=SHELLNAME          Specify dialect (sh, bash, dash, ksh, busybox)
  -S SEVERITY         --severity=SEVERITY        Minimum severity of errors to consider (error, warning, info, style)
  -V                  --version                  Print version information
  -W NUM              --wiki-link-count=NUM      The number of wiki links to show, when applicable
  -x                  --external-sources         Allow 'source' outside of FILES
                      --help                     Show this usage summary and exit

When executed through the shellcheck aspect, the output was swallowed, and the reports were empty.
In addition to this, I think we should exit early successfully if no files are provided. This happens when all files in sh_library are generated.
exit early when no files provided
There is no need to call shellcheck with an empty list of files. When a sh_binary only contains generated files we will hit this, and it should exit successfully.

I will open separate PRs.


Plugin nodes not working?

Any idea if this is possible?  I'd love to make a script utilizing controlnet in the workflow, however running the script generator produces an error:
Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable\ComfyUI\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 333, in <module>
    main(input, queue_size)
  File "D:\ComfyUI_windows_portable\ComfyUI\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 324, in main
    load_order = determine_load_order(prompt)
  File "D:\ComfyUI_windows_portable\ComfyUI\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 112, in determine_load_order
    class_def = NODE_CLASS_MAPPINGS[data[key]['class_type']]()
KeyError: 'OpenposePreprocessor'

Awesome!   Tested out without plugins and it works!
The one in particular I'm trying to get to work is:
https://github.com/Fannovel16/comfy_controlnet_preprocessors
But another really popular one is this:
https://github.com/ltdrdata/ComfyUI-Impact-Pack

Hey @joshnajera, I just pushed support for custom nodes and tested with the Impact Action Pack and SergeSDXL. Update the extension and let me know if you run into any issues with custom nodes.


[BUG] setShowId is not triggering queryResult: isLoading, isError on useShow

Describe the bug
When trying to change viewing record with setShowId, isLoading and isError are not triggered.
Steps To Reproduce
const { queryResult, setShowId } = useShow();
const { isLoading } = queryResult;

if (isLoading) {
    return (
        <Loader />
    )
}

After calling
setShowId(3)

nothing happens until resource is fetched succesfully. If request is bad, isError isn't triggered either.
Expected behavior
To be able to use isLoading to show loading screen or isError to catch error.
Packages

@refinedev/core

Additional Context
No response

Hey @beg1c
isLoading is false initially, before the query mounts. And then it becomes true when query is mounted (Not necessarily fetch. It might be disabled.). Once isLoading is true, it never goes back to false. Unlike isFetching.
For isErrror, could you provide a minimal reproducible example?


Get Image as bytes?

Right now, looks like there is no way to get the image as an array of bytes (&[u8]). And since I'm not going to store the image into a file, but instead return the image from a HTTP request, I really need that. Would be nice to have something like image.to_bytes() or image.as_bytes().
Right now I'm getting the bytes by encoding to the same format the image already is, like this:
let mut bytes = Vec::new();
self.image.encode(self.format, &mut bytes).unwrap();

But of course this is allocating more memory that shouldn't be needed.

Actually I found an approach for this, it's a bit hacky tho.
image.data.iter().map(|p| p.as_bytes().as_slice()).collect::<&[u8]>()

i did not test it hehe


Add view and frontend

A basic frontend with a Bootstrap base.
For now it is not decided yet if we will do parts with some modern Js lib like vue, alpine, etc.. At least we start with HTML screens to mockup the needs.

Some work have been done on 0.5.0 and some more will come with 0.6.0. Actually no modern js library is needed yet.


Added documetation on function return types.

#903

I'm going to merge this but it does need a small change, that is that it is only a "compilation error" if the return value is known at compile time.  This probably needs to be expanded.


add public folder, routes, utils, server and package.json

Due to the size of the scripts and assets, these will be added later.

Already added


Anaconda environments listed as 'base'

Type: Bug

Behaviour
Most of the conda environments in the automatic environment detection are listed as 'base' even though they show the correct path to the environment.
The VSCode terminal then only activates the actual conda base environment in the console.
Environments work correctly in independent terminals.
Steps to reproduce:

Open VSCode
Open command palette
Run the command Python: Select Interpreter

Diagnostic data

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2024.12.3
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.22631
Modes:

Python version (& distribution if applicable, e.g. Anaconda): 3.11.8
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
Value of the python.languageServer setting: Default

User Settings

languageServer: "Pylance"

testing
• unittestArgs: "<placeholder>"
• unittestEnabled: true

Installed Extensions

Extension Name
Extension Id
Version

autoDocstring - Python Docstring Generator
njpwerner.autodocstring
0.6.1

Black Formatter
ms-python.black-formatter
2024.3.12071014

Dev Containers
ms-vscode-remote.remote-containers
0.381.0

Docker
ms-azuretools.vscode-docker
1.29.2

Even Better TOML
tamasfe.even-better-toml
0.19.2

Excel Viewer
GrapeCity.gc-excelviewer
4.2.60

Git History
donjayamanne.githistory
0.6.20

Git Project Manager
felipecaputo.git-project-manager
1.8.2

GitHub Copilot
GitHub.copilot
1.223.0

GitHub Copilot Chat
GitHub.copilot-chat
0.18.2

GitHub Theme
GitHub.github-vscode-theme
6.3.4

GitLens — Git supercharged
eamodio.gitlens
15.3.0

H5Web
h5web.vscode-h5web
0.1.6

JavaScript Debugger
ms-vscode.js-debug
1.92.0

JavaScript Debugger Companion Extension
ms-vscode.js-debug-companion
1.1.3

Jupyter
ms-toolsai.jupyter
2024.7.0

Jupyter Cell Tags
ms-toolsai.vscode-jupyter-cell-tags
0.1.9

Jupyter Keymap
ms-toolsai.jupyter-keymap
1.1.2

Jupyter Notebook Renderers
ms-toolsai.jupyter-renderers
1.0.19

Jupyter Slide Show
ms-toolsai.vscode-jupyter-slideshow
0.1.6

markdownlint
DavidAnson.vscode-markdownlint
0.55.0

Pylance
ms-python.vscode-pylance
2024.8.101

Python
ms-python.python
2024.12.3

Python Debugger
ms-python.debugpy
2024.11.2024081401

Python Environment Manager
donjayamanne.python-environment-manager
1.2.4

Remote - SSH
ms-vscode-remote.remote-ssh
0.113.1

Remote - SSH: Editing Configuration Files
ms-vscode-remote.remote-ssh-edit
0.86.0

Remote - Tunnels
ms-vscode.remote-server
1.5.2

Remote Development
ms-vscode-remote.vscode-remote-extensionpack
0.25.0

Remote Explorer
ms-vscode.remote-explorer
0.4.3

Ruff
charliermarsh.ruff
2024.40.0

Table Visualizer for JavaScript Profiles
ms-vscode.vscode-js-profile-table
1.0.9

vscode-pdf
tomoki1207.pdf
1.2.2

WSL
ms-vscode-remote.remote-wsl
0.88.2

System Info

Item
Value

CPUs
12th Gen Intel(R) Core(TM) i7-12700H (20 x 2688)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
15.69GB (4.05GB free)

Process Argv
--crash-reporter-id c259a226-0570-43d2-8380-de3aa8b15c8e

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
bdiig495:31013172
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-c:31111717
nativeloc1:31118318
wkspc-ranged-c:31118571
pme_test_t:31118333

Hello @Flottrant Thank you for filing this issue.
Are you able to add:
 "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"],

in your settings.json and see if you can repro the same problem?

Hello @anthonykim1,
the issue seems to have disapeared completely after switching to version 2024.10.0 and back.
However, the same was not true for any version newwer than 2024.10.0.

@Flottrant Hello, when you search your setting and search 'native locator', is that set to native or js?

It is set to js

Setting it to native reproduced the issue.
This was with the "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"] line added to the settings.json.

Hi,
I'm having the same issue with the latest versions of vscode and this extension. It seems like a regression. I have set to native and js and get the same results (although not sure if one time choice of native causes this issue to persist).
Please look into the issue of all anaconda environments being called "base", thank you!

@karthiknadig I think you would have better context of how conda environments get differentiated in the select interpreter listing.

We did a bunch of fixes for this recently so this should be addressed, if that is not the case please file a new bug with the logs from Output > Python locator, and screen shot of the interpreters list where envs are incorrectly marked as base


Update nf-mfidl-imfsensorprofile-addblockedcontrol.md to correctly document its return value

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


about justints

hi peter
about justints:
-- the shortcut for opening files isn't working on linux (maybe ctrl-o)? i think it works on win/mac...
-- the shortcut for saving is working (ctrl-s), but always saving with "output.texte" as name; could you change for something incremental like date&time? i tried change grax.h line 425 but dont know how to make date&time work...
-- is there a way to make it work on 48000 samplerate also? it works here just with 44100...
-- maybe it could work in quadraphonic? 4 outputs instead of 2?  :D
thx in advance

Hey Igor,
thanks for the ideas!
I will see about it when i can...

hi peter
about justints:
-- the shortcut for opening files isn't working on linux (maybe ctrl-o)? i
think it works on win/mac...
-- the shortcut for saving is working (ctrl-s), but always saving with
"output.texte" as name; could you change for something incremental like
date&time? i tried change grax.h line 425 but dont know how to make
date&time work...
-- is there a way to make it work on 48000 samplerate also? it works here
just with 44100...
-- maybe it could work in quadraphonic? 4 outputs instead of 2?  :D
thx in advance
--
Reply to this email directly or view it on GitHub:
https://github.com/pblasser/shbobo/issues/14
You are receiving this because you are subscribed to this thread.
Message ID: @.***>

--
www.ciat-lonbarde.net


GIT Dataset Repo in Azure Devops

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Steps to Reproduce (for bugs)

create a new task
try to set the repositories https link as dataset repository URL (format<EMAIL_ADDRESS>
(alternatively also tried the same with ssh and different ways writing it)
In comparison via cli its possible to deploy it directly, similar to this
Expected Behaviour
Task can be created and repo added as target for labeling
Current Behaviour
Error:
Error: Repository status check failed. Traceback (most recent call last):
File "/home/django/cvat/apps/dataset_repo/dataset_repo.py", line 220, in init_repos
   self._rep = git.Repo(self._cwd)
File "/opt/venv/lib/python3.10/site-packages/git/repo/base.py", line 210, in __init__
  raise NoSuchPathError(epath)
git.exc.NoSuchPathError: /home/django/data/tasks/149/artifacts/repos
...
raise Exception("Git repository URL does not satisfy pattern")
Exception: Git repository URL does not satisfy pattern
Your Environment

CVAT-Version: 2.6
Docker version Docker 24.0.5
Operating System: Linux

This feature was removed in #6904 as outdated.
Please, consider using cloud storages instead.


Execution Domain

Issues from execution-domain

[ ] Maybe script_access_type and script properities can be tied together (#26)
[ ] script.uri
URI values require regex
[x] pipeline_version should not be required (is listed as required in schema)
(maybe it is not necessary here)
[x]  platform maybe not needed in this domain

In general, this domain needs more refinement

[x] domain_prerequisites should be renamed (maybe "data_endpoint")
domain_prerequisites.name should also be renamed
regex for domain_prerequisites.url
[x] env_parameters should a simple dictionary of a list of dictionaries
Should avoid saying "Environmental parameters" --> should be environment variables

@HadleyKing in regards to 98c53dc resolving extra-validation-items-execution-domain.md:

env_parameters should a simple dictionary of a list of dictionaries Should avoid saying "Environmental parameters" --> should be environment variables

It looks like the idea was to change this:
"env_parameters": [{
    "key": "HOSTTYPE",
    "value" : "x86_64-linux"
}]

to this:
"environment_variables": {
    "HOSTTYPE": "x86_64-linux",
    "EDITOR": "vim",
    "FOO_BAR": "baz_quox"
}

@corburn
ok. How would that look in the schema? I was unsure of how to implement that.

@corburn

Issues from execution-domain

[ ]  Maybe script_access_type and script properities can be tied together (#26)

I was also trying to implement some sort of enum or oneOf for the script field to accommodate the possibility of two different types (e.g. uri or text) and referencing them as #definition, but could not get it to work. I think that would allow us to combine these fields into one. It would also solve the bullet below too... I think.

[ ]  script.uri
URI values require regex

@HadleyKing
environment_variables schema:
    "environment_variables": {
      "type": "object",
      "description": "Environmental parameters that are useful to configure the execution environment on the target platform.",
      "patternProperties": {
        "^[a-zA-Z_]+[a-zA-Z0-9_]*$": {
          "type": "string"
        }
      }
    }

The regex is based on the following:

http://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap08.html
Environment variable names used by the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase letters, digits, and the '_' (underscore) from the characters defined in Portable Character Set and do not begin with a digit. Other characters may be permitted by an implementation; applications shall tolerate the presence of such names. Uppercase and lowercase letters shall retain their unique identities and shall not be folded together. The name space of environment variable names containing lowercase letters is reserved for applications. Applications can define any environment variables with names from this name space without modifying the behavior of the standard utilities.
Note:
Other applications may have difficulty dealing with environment variable names that start with a digit. For this reason, use of such names is not recommended anywhere.

script and script_access_type
I would drop script_access_type and define script simply as a URI:
https://tools.ietf.org/html/rfc8089
file://path/to/rfc8089.txt


Update index.md

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

You ignored a list of requirements including "My pull request has a descriptive title (not a vague title like Update index.md)". Descriptive titles and good explanations of changes are necessary for a well maintained codebase. Free Code Camp is choosing to relax some of its requirements to help people reach their Hacktoberfest goals, but this PR would normally be rejected. In the future, please help repository maintainers by providing useful titles and do not ignore contributing guidelines or requirements.

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.

@swetaprajapati Expanding on what @co16353sidak has stated above.  You must properly cite a source when using verbiage directly from it.  See the Attributions sections of our Styling Guide.

As there has been no response from your end for a while, we are closing this PR.
Feel free to request this PR to be reopened or create a new PR, if you still wish to make the changes you originally added plus any additional change requests asked of you.  Also, remember to update your fork, so you have the latest version of master in case it has changed significantly.
Happy Coding!


Benchmark stops with PointOutOfBoundsException

I tried to run the benchmark script with the defaults to measure #2973. Unfortunately, the benchmark script stops with an exception for the master( tested with 328e3d2 ).
benchmark/benchmark.sh

4 - big map, outdoor: node-based CH + landmarks (edge- & node-based for LM)
2024-04-17 11:11:35.162 [main] INFO  c.g.routing.lm.LMPreparationHandler - Loaded built-in landmark splitting collection from jar:file:/home/tbutz/Entwicklung/repos/graphhopper/tools/target/graphhopper-tools-9.0-SNAPSHOT-jar-with-dependencies.jar!/com/graphhopper/routing/lm/map.geo.json
2024-04-17 11:11:35.169 [main] INFO  com.graphhopper.GraphHopper - version 9.0|2024-04-17T09:09:22Z (9,21,6,5,2,9)
2024-04-17 11:11:35.362 [main] INFO  com.graphhopper.GraphHopper - No custom areas are used, custom_areas.directory not given
2024-04-17 11:11:35.365 [main] INFO  com.graphhopper.GraphHopper - No country rules available
2024-04-17 11:11:35.365 [main] INFO  com.graphhopper.GraphHopper - start creating graph from core/files/andorra.osm.pbf
2024-04-17 11:11:35.385 [main] INFO  com.graphhopper.GraphHopper - using foot|RAM_STORE|2D|no_turn_cost|nodes:9,edges:21,geometry:6,location_index:5,string_index:2,nodesCH:0,shortcuts:9, memory:totalMB:19627, usedMB:820
2024-04-17 11:11:35.396 [main] INFO  c.g.reader.osm.WaySegmentParser - Start reading OSM file: 'core/files/andorra.osm.pbf'
2024-04-17 11:11:35.396 [main] INFO  c.g.reader.osm.WaySegmentParser - pass1 - start
2024-04-17 11:11:35.489 [main] INFO  c.g.reader.osm.WaySegmentParser - pass1 - start reading OSM ways
2024-04-17 11:11:35.518 [main] INFO  c.g.reader.osm.WaySegmentParser - pass1 - start reading OSM relations
2024-04-17 11:11:35.523 [main] INFO  c.g.reader.osm.WaySegmentParser - pass1 - finished, processed ways: 2,725, accepted ways: 1,615, way nodes: 38,556, relations: 74, totalMB:19627, usedMB:1127
2024-04-17 11:11:35.524 [main] INFO  c.g.reader.osm.WaySegmentParser - pass1 - finished, took: 127,17ms
2024-04-17 11:11:35.526 [main] INFO  c.g.reader.osm.WaySegmentParser - Creating graph. Node count (pillar+tower): 38556, totalMB:19627, usedMB:1127
2024-04-17 11:11:35.526 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - start
2024-04-17 11:11:35.545 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - start reading OSM nodes
2024-04-17 11:11:35.601 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - start reading OSM ways
2024-04-17 11:11:35.735 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - start reading OSM relations
2024-04-17 11:11:35.736 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - finished, processed ways: 2,725, way nodes: 38,556, nodes with tags: 92, node tag capacity: 1,056,768, ignored barriers at junctions: 0
2024-04-17 11:11:35.737 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - finished, took: 210,53ms
2024-04-17 11:11:35.741 [main] INFO  c.g.reader.osm.WaySegmentParser - Finished reading OSM file. pass1: 0s,  pass2: 0s,  total: 0s
2024-04-17 11:11:35.741 [main] INFO  com.graphhopper.reader.osm.OSMReader - Finished reading OSM file: /home/tbutz/Entwicklung/repos/graphhopper/core/files/andorra.osm.pbf, nodes: 2,385, edges: 2,820, zero distance edges: 6
2024-04-17 11:11:35.747 [main] INFO  c.g.r.s.PrepareRoutingSubnetworks - Start marking subnetworks, prepare.min_network_size: 10000, threads: 1, nodes: 2,385, edges: 2,820, jobs: [profile_no_tc_subnetwork|com.graphhopper.routing.weighting.custom.CustomWeighting@61ce23ac], totalMB:19627, usedMB:1434
2024-04-17 11:11:35.792 [ForkJoinPool-1-worker-1] INFO  c.g.r.s.PrepareRoutingSubnetworks - profile_no_tc - Found 470 subnetworks (424 single edges and 46 components with more than one edge, total nodes: 5640), took: 0.028205588s
2024-04-17 11:11:35.802 [ForkJoinPool-1-worker-1] INFO  c.g.r.s.PrepareRoutingSubnetworks - profile_no_tc - Marked 469 subnetworks (biggest: 568 edges) -> 1 components(s) remain (smallest: 4414, biggest: 4414 edges), total marked edges: 401, took: 0.003553247s
2024-04-17 11:11:35.806 [main] INFO  c.g.r.s.PrepareRoutingSubnetworks - Finished finding and marking subnetworks for 1 jobs, took: 0.059996214s, totalMB:19627, usedMB:1537
2024-04-17 11:11:35.807 [main] INFO  com.graphhopper.GraphHopper - nodes: 2,385, edges: 2,820
2024-04-17 11:11:35.912 [main] INFO  c.g.storage.index.LocationIndexTree - location index created in 0.03969434s, size:4,766, leafs:1,132, precision:300, depth:4, checksum:597, entries:[16, 16, 4, 4], entriesPerLeaf:4.2102475
2024-04-17 11:11:35.917 [main] INFO  c.g.routing.lm.LMPreparationHandler - Creating LM preparations, totalMB:19627, usedMB:1844
2024-04-17 11:11:35.922 [ForkJoinPool-3-worker-1] INFO  c.g.routing.lm.LMPreparationHandler - 1/1 calling LM prepare.doWork for profile_no_tc ... (totalMB:19627, usedMB:1946)
2024-04-17 11:11:35.924 [profile_no_tc] INFO  c.g.routing.lm.PrepareLandmarks - Start calculating 16 landmarks, weighting:LM_BFS|custom|com.graphhopper.routing.weighting.custom.CustomWeighting@1a47fbb4, totalMB:19627, usedMB:1946
2024-04-17 11:11:36.102 [profile_no_tc] INFO  c.g.routing.lm.PrepareLandmarks - Calculated landmarks for 1 subnetworks, took:0s => { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.697066, 42.532062]},  "properties":{"node_index":1836,"subnetwork":1,"lm_index":0}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.4920728, 42.4845742]},  "properties":{"node_index":914,"subnetwork":1,"lm_index":1}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.6132318, 42.5538863]},  "properties":{"node_index":2262,"subnetwork":1,"lm_index":2}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.4798844, 42.5789323]},  "properties":{"node_index":1862,"subnetwork":1,"lm_index":3}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.6961725, 42.5317807]},  "properties":{"node_index":2154,"subnetwork":1,"lm_index":4}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.5089412, 42.619261]},  "properties":{"node_index":2086,"subnetwork":1,"lm_index":5}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.541352, 42.5078166]},  "properties":{"node_index":82,"subnetwork":1,"lm_index":6}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.6535302, 42.5809697]},  "properties":{"node_index":1911,"subnetwork":1,"lm_index":7}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.5295996, 42.5539542]},  "properties":{"node_index":2005,"subnetwork":1,"lm_index":8}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.5544609, 42.5174658]},  "properties":{"node_index":1267,"subnetwork":1,"lm_index":9}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.5955201, 42.5364987]},  "properties":{"node_index":2198,"subnetwork":1,"lm_index":10}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.6670917, 42.5873426]},  "properties":{"node_index":2356,"subnetwork":1,"lm_index":11}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.512272, 42.5018015]},  "properties":{"node_index":2169,"subnetwork":1,"lm_index":12}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.4423627, 42.5152544]},  "properties":{"node_index":2061,"subnetwork":1,"lm_index":13}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.7338324, 42.5422862]},  "properties":{"node_index":1834,"subnetwork":1,"lm_index":14}},{ "type": "Feature", "geometry": {"type": "Point", "coordinates": [1.5841182, 42.5366726]},  "properties":{"node_index":1476,"subnetwork":1,"lm_index":15}}]}, stored weights:16, nodes:2385, totalMB:19627, usedMB:1946
2024-04-17 11:11:36.102 [profile_no_tc] INFO  c.g.routing.lm.LMPreparationHandler - LM profile_no_tc finished totalMB:19627, usedMB:1946
2024-04-17 11:11:36.102 [main] INFO  c.g.routing.lm.LMPreparationHandler - Finished LM preparation, totalMB:19627, usedMB:1946
2024-04-17 11:11:36.107 [main] INFO  c.g.routing.ch.CHPreparationHandler - Creating CH preparations, totalMB:19627, usedMB:2049
2024-04-17 11:11:36.112 [main] INFO  c.g.routing.ch.CHPreparationHandler - 1/1 calling CH prepare.doWork for profile 'profile_no_tc' NODE_BASED ... (totalMB:19627, usedMB:2049)
2024-04-17 11:11:36.114 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - Creating CH prepare graph, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.118 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - Building CH prepare graph, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.123 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - Finished building CH prepare graph, took: 0.004892844s, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.125 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - Building initial queue of nodes to be contracted: 2385 nodes, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.140 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - Finished building queue, took: 0.015270958s, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.142 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:      2,385, shortcuts:          0, updates:  0, checked-nodes:          0, t(total):   0.03,  t(period):   0.01, t(lazy):   0.00, t(neighbor):   0.00, t(contr):   0.00, t(other) :   0.01, dijkstra-ratio:  25.34%, meanDegree: 1.18, dijkstras:      8,370, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.162 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:      1,910, shortcuts:          5, updates:  0, checked-nodes:        477, t(total):   0.05,  t(period):   0.01, t(lazy):   0.00, t(neighbor):   0.01, t(contr):   0.01, t(other) :   0.02, dijkstra-ratio:  26.95%, meanDegree: 1.00, dijkstras:      9,752, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.167 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:      1,433, shortcuts:          5, updates:  0, checked-nodes:        954, t(total):   0.05,  t(period):   0.01, t(lazy):   0.00, t(neighbor):   0.01, t(contr):   0.01, t(other) :   0.02, dijkstra-ratio:  26.90%, meanDegree: 1.00, dijkstras:     10,370, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.179 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:        956, shortcuts:         32, updates:  0, checked-nodes:      1,431, t(total):   0.06,  t(period):   0.01, t(lazy):   0.00, t(neighbor):   0.01, t(contr):   0.01, t(other) :   0.02, dijkstra-ratio:  27.65%, meanDegree: 1.94, dijkstras:     13,104, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.196 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:        481, shortcuts:        319, updates:  0, checked-nodes:      1,908, t(total):   0.08,  t(period):   0.01, t(lazy):   0.01, t(neighbor):   0.02, t(contr):   0.02, t(other) :   0.02, dijkstra-ratio:  29.75%, meanDegree: 2.23, dijkstras:     18,593, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.205 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:         34, shortcuts:        868, updates:  0, checked-nodes:      2,385, t(total):   0.09,  t(period):   0.01, t(lazy):   0.01, t(neighbor):   0.03, t(contr):   0.02, t(other) :   0.02, dijkstra-ratio:  32.15%, meanDegree: 2.66, dijkstras:     25,845, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.208 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - node, nodes:          0, shortcuts:        942, updates:  0, checked-nodes:      2,420, t(total):   0.09,  t(period):   0.01, t(lazy):   0.01, t(neighbor):   0.03, t(contr):   0.02, t(other) :   0.03, dijkstra-ratio:  31.64%, meanDegree: 0.92, dijkstras:     26,350, mem:        0MB, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.210 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - new shortcuts: 942, initSize:2,385, com.graphhopper.routing.weighting.custom.CustomWeighting@12d16b94, periodic:0, lazy:100, neighbor:100, t(total):   0.09,  t(period):   0.01, t(lazy):   0.01, t(neighbor):   0.03, t(contr):   0.02, t(other) :   0.03, dijkstra-ratio:  31.48%, lazy-overhead: 1%, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.210 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - shortcuts that exceed maximum weight: 0
2024-04-17 11:11:36.210 [profile_no_tc] INFO  c.g.r.c.PrepareContractionHierarchies - took: 0s, graph now - num edges: 2,820, num nodes: 2,385, num shortcuts: 942
2024-04-17 11:11:36.215 [main] INFO  c.g.routing.ch.CHPreparationHandler - Finished CH preparation, totalMB:19627, usedMB:2151
2024-04-17 11:11:36.221 [main] INFO  com.graphhopper.GraphHopper - flushing graph foot|RAM_STORE|2D|no_turn_cost|nodes:9,edges:21,geometry:6,location_index:5,string_index:2,nodesCH:0,shortcuts:9, details:edges: 2,820(1MB), nodes: 2,385(1MB), bounds: 1.4088716,1.8164837,42.4292405,42.6942662, name:(1MB), geo:53,180(1MB), totalMB:19627, usedMB:2151)
2024-04-17 11:11:36.227 [main] INFO  com.graphhopper.GraphHopper - flushed graph totalMB:19627, usedMB:2151)
2024-04-17 11:11:36.312 [main] INFO  com.graphhopper.tools.Measurement - unit_tests.out_edge_state_next: sum:0.055s, time/call:0.11µs, dummy: 1458144
2024-04-17 11:11:36.375 [main] INFO  com.graphhopper.tools.Measurement - unit_tests.all_edge_state_next: sum:0.049s, time/call:0.098µs, dummy: 1576267
2024-04-17 11:11:36.412 [main] INFO  com.graphhopper.tools.Measurement - unit_tests.get_edge_state: sum:0.029s, time/call:0.058µs, dummy: 938300673
2024-04-17 11:11:36.634 [main] INFO  com.graphhopper.tools.Measurement - location_index: sum:0.15s, time/call:0.015ms, dummy: 15539814
2024-04-17 11:11:36.983 [main] INFO  com.graphhopper.tools.Measurement - routingLM4: sum:0.218s, time/call:0.873ms, dummy: 189533
2024-04-17 11:11:37.018 [main] INFO  com.graphhopper.tools.Measurement - routingLM4_alt: sum:0.026s, time/call:2.578ms, dummy: 5784
2024-04-17 11:11:37.219 [main] INFO  com.graphhopper.tools.Measurement - routingLM8: sum:0.139s, time/call:0.555ms, dummy: 189533
2024-04-17 11:11:37.245 [main] INFO  com.graphhopper.tools.Measurement - routingLM8_alt: sum:0.022s, time/call:2.178ms, dummy: 5784
2024-04-17 11:11:37.363 [main] INFO  com.graphhopper.tools.Measurement - routingLM12: sum:0.084s, time/call:0.337ms, dummy: 189533
2024-04-17 11:11:37.379 [main] INFO  com.graphhopper.tools.Measurement - routingLM12_alt: sum:0.013s, time/call:1.306ms, dummy: 5784
2024-04-17 11:11:37.439 [main] INFO  com.graphhopper.tools.Measurement - unit_testsCH.get_edge_state: sum:0.029s, time/call:0.058µs, dummy:<PHONE_NUMBER>
2024-04-17 11:11:37.592 [main] INFO  com.graphhopper.tools.Measurement - unit_testsCH.out_edge_next: sum:0.114s, time/call:0.229µs, dummy: -1755963229
2024-04-17 11:11:37.750 [main] INFO  com.graphhopper.tools.Measurement - unit_testsCH.out_edge_get_weight: sum:0.115s, time/call:0.229µs, dummy:<PHONE_NUMBER>
2024-04-17 11:11:37.982 [main] ERROR com.graphhopper.tools.Measurement - Problem while measuring measurements/measurement-big-outdoor-gh
java.lang.RuntimeException: errors should NOT happen in Measurement! 42.6111343,1.4088715; 42.5679299,1.4886214 (Hints:{ch.disable=false, stall_on_demand=true, lm.disable=true, lm.active_landmarks=-1, instructions=true, way_point_max_distance=0}) => [com.graphhopper.util.exceptions.PointOutOfBoundsException: Point 0 is out of bounds: 42.6111343,1.4088715, the bounds are: 1.4088716,1.8164837,42.4292405,42.6942662]
        at com.graphhopper.tools.Measurement.lambda$measureRouting$10(Measurement.java:595)
        at com.graphhopper.util.MiniPerfTest.start(MiniPerfTest.java:46)
        at com.graphhopper.tools.Measurement.measureRouting(Measurement.java:539)
        at com.graphhopper.tools.Measurement.start(Measurement.java:233)
        at com.graphhopper.tools.Measurement.main(Measurement.java:84)

The first coordinate is just out of bounds. We do not use andorra in our tests and probably we should not provide this as default as andorra is not well suited for this automated test as the coverage has relative big holes for this small area.

Should we switch to an automated download instead or abort with a warning if no parameters have been passed?

For your tests can you try with e.g. bavaria?

:+1:

I'll draft a PR

I just changed the script to use leipzig.osm.pbf as default map, does this help? But maybe you don't really want to run all of benchmark.sh and just run the Measurement.java class a single time. It already aborts if no path to a map is given.


Make attention vector visible in rendering

Hi! Mr. eleurent. I'm interested in your social attention architecture work in intersection-v0. Now I design a new Attention network on my own and there is a interface of it to get the attention vector. I really want to know how to visualize the vector when rendering like your work result with lines of different width to represent attention between vehicles and ego vehicle in intersection_social_dqn.ipynb. Is there any interface or config setting about it?

Hi! No, there is no interface/config, but the visualisation code is here:
https://github.com/eleurent/rl-agents/blob/10b8e3060097c5f4c9bab9345f10bddf6f12297b/rl_agents/agents/deep_q_network/graphics.py#L55
It is not a great piece of code, especially one part is quite ugly: we need to map the attention tokens (rows of the observation) back to the vehicles in the original environment (so we can plot the lines), which requires undoing the observation normalisation to recover an unnormalised x/y location and find the closest vehicle in the scene... It would be much better to e.g. include the vehicle id in the observation or something like that.


[solidjs-pod] Add content for Courses

Closes #295
Type of change

[x] Content addition
[ ] Bug fix
[ ] Behavior change

Summary of change
Add courses for SolidJS

LGTM Is there a specific amount of courses you are expected to provide or this is the amount you could find?

There're not much courses on solidJS on the web but these ones are sufficient i would say


Backport 2.7: fix return code

Backport of #3705 in 2.7.

This is a trivial backport so I'm merging with one review.


Dartdevc throws when trying to parse syntactically incorrect two-way binding expression

Using

Dart VM version: 2.1.0 (Tue Nov 13 18:22:02 2018 +0100) on "windows_x64"
Angular 5.1

when dartdevc compiler encounters the following, syntactically invalid code (closing bracket of two-way binding is misplaced):
<material-toggle [label]="label" [(checked)="enabled"]></material-toggle>
it throws the following exception:
[SEVERE] angular on lib/src/admin/library_plan/components/library_plan_edit/library_plan_edit.dart (cached):
Unhandled exception in the AngularDart compiler!

Please report a bug: https://github.com/dart-lang/angular/issues/new
type 'ParsedBananaAst' is not a subtype of type 'EventAst'

Thanks for reporting!


Remove perfCounter.

Add cluster resource usage summary.

when does overall_status change? when is it green, red, etc?

@cppforlife : Thanks for having a look at my PR
Overall Status represents a ManagedEntityStatus .
gray | The status is unknown- Initially the alarms start with the Gray status.
green | The entity is OK and the cluster is healthy.
yellow | This is just a warning but potentially could lead to an alert (RED), but the cluster is still functional.
red | The cluster has a serious problem and this sets of an alert - VSAN issues.


onAddressChange not triggered in active aepp <-> wallet connection

see https://github.com/aeternity/aepp-boilerplate-react/issues/6#issuecomment-1642399461
confirmed by @CedrikNikita.
is this already fixed and just awaiting new release?

This has been fixed in the develop. New release shall fix this.

fixed #2209


Looks like monitors are not considered in stop document items

I used many monitors during some scans, but the stop document does not indicate there are additional data streams.  I am unsure if this is a bluesky documents problem or a databroker problem.
Version of bluesky is one of the latest releases.  Will follow up.

The implementation of monitors I used is:

Expected Behavior

Stop document reflects all data streams
Current Behavior

Stop document reflects on primary and baseline streams
Possible Solution

Steps to Reproduce (for bugs)

See above in the description

Note that I also tried to use the decorator, but this didn't work at all.  I had similiar trouble with the implemenation I used in following the documentation, so I don't know if the decorator didn't work because it is broken or I didn't figure out how to use it correctly.  Would be nice to get confirmation on this too!
Context

Your Environment

Thanks. @cryos and I also hit this issue recently but I may not have got around to creating an issue to track it. Should be simple to fix.

@danielballan , @cryos  have you ran into this issue recently?


Linter should only block editing because of new errors, not pre-existing ones

There is a small bug right now:
If a file in a cloned repo has existing linting errors, it will be impossible to edit other parts of it (the linter will complain about the broken parts).
Therefore, the linter should run before applying any changes and it should only block editing if new errors have been introduced. any existing errors should just lead to a warning, not a block.
thank you.
please tell me if I need to clarify

That makes sense. Shouldn't be hard to do. Except that all the commands are implemented in bash (guess they started simple, but are now getting more complicated), so it's probably gonna be a bit ugly.


Update ocm core setup on kind tests

The E2E tests running on kind are currently installing the OCM core (i.e. cluster-manager, klusterlet) using the very old release-2.4 branch from the stolostron/registration-operator repository. This branch lacks currently newer components and in particular the addon-manager and in turn we cannot test successfully the following PR that incorporates MCOA in MCO:

#1470

cc @philipgough

/test test-unit

/test test-e2e

/test e2e-kind

/test e2e-kind test-unit


Add OpenLiberty springboot app

Description

Add weblog-variant: spring-boot-openliberty
Fix CryptoExamples doCypher method
Marked as bug:

tests/test_telemetry.py::Test_Telemetry::test_app_started_sent_only_once
tests/test_telemetry.py::Test_Telemetry::test_seq_id
tests/appsec/test_traces.py::Test_AppSecEventSpanTags::test_header_collection
tests/appsec/waf/test_addresses.py::Test_BodyUrlEncoded::test_body_value
tests/appsec/waf/test_addresses.py::Test_ResponseStatus::test_basic
tests/appsec/waf/test_rules.py::Test_DiscoveryScan::test_security_scan
tests.appsec.waf.test_miscs.Test_404.test_404
tests.appsec.test_reports.Test_StatusCode.test_basic

Check list
Your PR is not ready to be reviewed? Please save it as a draft :pray:

[x] Follows the style guidelines of this project (See how to easily lint the code)
[x] CI is passing
[ ] There is at least one approval from code owners

Yes to all? Feel free to merge it whenever you want :heart:

don't mind about the performance test, it's not related

don't mind about the performance test, it's not related

Ok! so only the approval for the merge would be missing


Allow usage of ExternalAccountCredentials custom implementation

I'm trying to authenticate to GCP via Workload Identity Federation using Keycloak as OIDC provider. I created my own implementation extending from ExternalAccountCredentials in simillar fashion as IdentityPoolCredentials to meet my needs.
In case of Keycloak I need to override com.google.auth.oauth2.ExternalAccountCredentials#retrieveSubjectToken, but I'm getting ClassCastException  as method
com.google.auth.oauth2.ExternalAccountCredentials#buildImpersonatedCredentials is trying to cast sourceCredentials to IdentityPoolCredentials
It would be nice if there was a way to work around this and have posibility to use your own implementation.
I have considered doing some customization on Keycloack side, but this could be a potential security risk. The other alternative would be to create some temporary file with an access token, but this is another security risk
Attaching  IdentityPoolKeycloakCredentials for clarity.
IdentityPoolKeycloakCredentials.zip

Hi hynek5, #1336 provides a way to provide your own retrieveSubjectToken() implementation.

Added support for using a custom implementation to supply a subject token in https://github.com/googleapis/google-auth-library-java/pull/1336, released in v1.23.0.


📖Documentation: New documentation

Hi @hetulbhatt 👋🏼,
I‘d like to create a new documenation for your project. Just confirm with me if it's ok with you so I don't do any extra work
Best regards,
NH

@N3v1, I have made a slight change in README.md. I would suggest you to pull the latest change in your branch to avoid conflicts. I have attached the commit of my change below. Thanks.
commit: https://github.com/hetulbhatt/KeyFlow/pull/36/commits/536b1cbeea01fd359aba43f3027e6fb06c4da1cd#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5

Hi @hetulbhatt 👋,
I would recommend you, to create a LICENSE.md file.
To this project I'd recommend a MIT or GNU v3 license
Best regards
NH

Do you have any images or logos of your program @hetulbhatt? It would help me, if you would create a new folder named 'documentation' and in this documentation folder a new 'img' folder.
It would be helpful if you could answer ASAP
Thank you kindly 🙏 Best regards NH

Sorry for the delayed reply. The program is CLI based, so it does not have GUI, images of which can be attached. Plus I also have not created any logo for the same.

Hi @hetulbhatt 👋, I would recommend you, to create a LICENSE.md file.
To this project I'd recommend a MIT or GNU v3 license
Best regards NH

Let me look into the licensing part.

Hi @hetulbhatt 👋, I would recommend you, to create a LICENSE.md file.
To this project I'd recommend a MIT or GNU v3 license
Best regards NH

Let me look into the licensing part.

Added MIT License

I'll be working on this issue again from Friday @hetulbhatt


Maintenance: Deprecate tracing.base.BaseProvider

Why is this needed?
In PR #2342 we are providing a observability provider friendly tracing provider to deprecate the current X-Ray specific provider tracing.base.baseprovider and tracing.base.BaseSegment. This new provider solution will enable our customer to send traces to Third party observability provider with ease. After #2342 is merged, the current provider will no longer be used in Tracer.
Which area does this relate to?
Tracer
Solution
This Deprecation is straightforward. This provider class is mostly for internal purpose and X-ray only. If there are customers developing their own provider based on this base provider, they will be able to migrate to the new provider proposed in #2342 with few method/class name changes
Acknowledgment

[X] This request meets Powertools for AWS Lambda (Python) Tenets
[X] Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET

Thank you for opening this @roger-zhangg ! Adding tags to track it for Powertools v3

We won't deprecate those classes in V3. We will keep as is but instead we'll open doors to new providers.
We can plan to remove this in V4, but wee ned to plan this in advanced.


Closes #1441 Make the constructor public

This constructor is made public for use by other 'internal' components.

Closing to re-open. Looks like playing with status checks was a bad idea.


[ ] A wow feature

@imox2 Write a wow feature about us.

Wow feature
We all want icing on the cake. We have the best Graphics design and website design using the latest technologies.
write something like that
@imox2


#{combo:} not working with Rich Text combos

Bonjour,
Thank you for v6.0 !
On Windows 10 64bits it seems that #{combo:} do not work when the content is in rich text.
Here is a first example where both the combo and the linked one are defined as being rich text :

When defining the called combo as plain text and the linked one as rich text only html is displayed :

Best Regards !
Martin

Oups.
I must admit I did not test variables with rich text, so I' m not surprised it's buggy. I'll try to fix that in 6.1.

I implemented a fix for this issue. Here are some test builds:

Installer.
Portable Edition.

Bonsoir de Singapour !
Je viens de tester. Cela fonctionne.
Merci beaucoup !
Best Regards,
Martin

Thanks for the feedback. I'll release v6.1 soon.
Bonne journée!


Syntax should be with "" and no spaces, like this: .\altpgen.exe -project:"C:\Users\lohndorf\Documents\AL\OP160TableProxy" -packagecachepath:"C:\Users\lohndorf\Documents\AL\OP160TableProxy.alpackages" -serviceuri:"https://pfctest.crm11.dynamics.com/ -entities:pfc_JobApplicant" -baseid:50106 -tabletype:CDS

[Enter feedback here]

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

ID: 9c207282-cbc6-4192-8c68-93833d882079
Version Independent ID: d6ae70c2-0f8d-17b6-58e2-59d008049389
Content: AL Table Proxy Generator - Business Central
Content Source: dev-itpro/developer/devenv-al-table-proxy-generator.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for catching this. Will be fixed with the next doc refresh.


Go back to 'Settings' after deleting workspace

Details
We should navigate back to the Settings screen where we started after you delete a workspace.
Fixed Issues

$ GH_LINK
Tests / QA Steps

Delete a workspace and verify you are brought back to "Settings"

PR Review Checklist

Contributor (PR Author) Checklist

[x] I made sure to pull main before submitting my PR for review
[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I clearly indicated the environment tests should be run in (Staging vs Production)

[x] I wrote testing steps that cover success & fail scenarios (if applicable)
[ ] I ran the tests & they passed on all platforms
[ ] I included screenshots or videos for tests on all platforms
[x] I verified there are no console errors related to changes in this PR
[x] I followed proper code patterns (see Reviewing the code)

[ ] I added comments when the code was not self explanatory
[ ] I put all copy / text shown in the product in all src/languages/* files (if applicable)
[ ] I followed proper naming convention for platform-specific files (if applicable)
[ ] I followed style guidelines (in Styling.md) for all style edits I made

[x] I followed the guidelines as stated in the Review Guidelines

PR Reviewer Checklist

[x] I verified the Author pulled main before submitting the PR
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the testing environment is mentioned in the test steps

[x] I verified testing steps cover success & fail scenarios (if applicable)
[ ] I verified tests pass on all platforms & I tested again on all platforms
[ ] I checked that screenshots or videos are included for tests on all platforms
[x] I verified there are no console errors related to changes in this PR
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified comments were added when the code was not self explanatory
[x] I verified any copy / text shown in the product was added in all src/languages/* files (if applicable)
[x] I verified proper naming convention for platform-specific files was followed (if applicable)
[x] I verified style guidelines were followed

[x] I verified that this PR follows the guidelines as stated in the Review Guidelines

Tested On

[x] Web
[ ] Mobile Web
[ ] Desktop
[ ] iOS
[ ] Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

Awesome, thanks @PauloGasparSv and for complete testing! I was actually wondering if this change needed to be tested on all platforms since it's a very simple change and we are using a standard library function that should work across the board no matter what.

🚀 Deployed to staging by @PauloGasparSv in version: 1.1.42-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by @chiragsalian in version: 1.1.42-6 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Update wharfie to 0.5.3

Fixes #11

This is mixing multiple concerns, like upgrading Go.
Please split it into multiple PRs. A single PR with 585 changed files is impossible to review.

Done

Also the copyright header needs to be a year range: initial-year - current-year. That would be 2022 - 2023 for Elemental.

Also the copyright header needs to be a year range: initial-year - current-year. That would be 2022 - 2023 for Elemental.

Good catch, I fixed it for crdbuild now.. hopefully we will only need to do it for modified files in the future.

I added #327 for the copyright stuff instead.. waiting to rebase on that when merged

I'm still not overly happy about the number of changes but I fear it won't get smaller disappointed

I agree, maybe we should look into setting up renovate to not have these huge bumps.


Everything is deleted after , and sometimes the toast() function works, sometimes not

I have my vue app setup and I followed the instructions, but even if I just copy-paste the first example, the button is not there, and even if it is there (explained in next section), on click it says Uncaught TypeError: toast is not a function . Am I possibly missing something?
When I add the  to my root, nothing happens, but if I register it as a component ( app.component('Toaster', Toaster); ), the toaster shows up, but my entire content is just disappeared (even the "give me a toast" button provided)
Noticed that if I put the  before anything, they disappear, but if I put it after anything, they will not disappear. It's like it deletes everything that comes after it.
Example:

I will show up

    <Toaster />

I will NOT show up

I'm using Vue 3.
I'm not sure what decides if the toast method works or not, but if I can get more info, I'll include it. My main problem/concern is the "everything disappears after " part.

Could you please share a working reproduction somewhere like stackblitz?

I think I managed to replicate the problem after about 2 hours.
https://stackblitz.com/edit/vitejs-vite-tzbeke?file=index.html,src%2Fmain.js&terminal=dev
Here you can see that "hello" shows up, test and test 2 doesn't, and then hello 3 shows up again.
I had to play around to match my local, but I got it :D
Hope it will be any useful, even if I messed something up and that's the reason why it's not working as intended.

@idk-floppy This is a vue package and component so you can't just add it straight into html. You need to register the components within vue's app. -> https://stackblitz.com/edit/vitejs-vite-cieu4q?file=src%2FApp.vue,index.html,src%2Fmain.js&terminal=dev

I did register it as a component, and put it inside the div that the app is mounted to.
app.component, app.mount, and then the toaster component is inside the mounted div, so it is registered as a global component.
Thank you for your help!


python310Packages.aiomysensors: init at 0.3.0

Description of changes
Library to connect to MySensors gateways
https://github.com/MartinHjelmare/aiomysensors

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 186029 run on x86_64-linux 1

2 packages built:

python310Packages.aiomysensors
python39Packages.aiomysensors


test_ima_verification.py: Switch from sha1 to sha256

I have found out that in keylime-tests we were running upstream tests incorrectly, as a result some test scripts were not executed.
This is now fixed with https://github.com/RedHat-SP-Security/keylime-tests/pull/246/ but on C9S two tests in test_ima_verification.py are failing because sha1 is not considered secure for RSA signatures.
Please, switch to sha256 so we can run this test in CI for C9S.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Run test_ima_verification.py
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 00:10:40 ] :: [  BEGIN   ] :: Running 'sed -i 's#context =.*#context = test_ima_verification.py#' /var/tmp/limeLib/coverage/coveragerc'
:: [ 00:10:40 ] :: [   PASS   ] :: Command 'sed -i 's#context =.*#context = test_ima_verification.py#' /var/tmp/limeLib/coverage/coveragerc' (Expected 0, got 0)
:: [ 00:10:40 ] :: [  BEGIN   ] :: Running '/usr/local/bin/coverage run -m unittest /tmp/tmp.rEWmleoUWx/test/test_ima_verification.py -v'
/usr/local/lib64/python3.9/site-packages/coverage/inorout.py:497: CoverageWarning: Already imported a file that will be measured: /usr/local/bin/coverage (already-imported)
  self.warn(msg, slug="already-imported")
test_ima_buf_verification (test_ima_verification.TestIMAVerification)
The verification of ima-buf entries supporting keys loaded onto keyrings ... Reading configuration from ['/etc/keylime/logging.conf']
2022-11-22 00:10:41.581 - keylime.file_signatures - DEBUG - Extracted keyidv2 from cert: 0x2cb6058c
2022-11-22 00:10:41.582 - keylime.file_signatures - DEBUG - Added key with keyid: 0x2cb6058c
ok
test_iterative_attestation (test_ima_verification.TestIMAVerification)
Test that the resulting pcr value is as expected by subsequently feeding a measurement list. ... 2022-11-22 00:10:41.582 - keylime.ima - DEBUG - Found match at linenum 1
2022-11-22 00:10:41.583 - keylime.ima - DEBUG - Found match at linenum 1
2022-11-22 00:10:41.583 - keylime.ima - DEBUG - Found match at linenum 1
ok
test_measurment_verification (test_ima_verification.TestIMAVerification)
Test IMA measurement list verification ... 2022-11-22 00:10:41.583 - keylime.ima - WARNING - No boot_aggregate value found in allowlist, adding an empty one
2022-11-22 00:10:41.584 - keylime.ima - WARNING - Hashes for file boot_aggregate don't match e4cb9f5709c88376b5fc3743cd88e76b9aae8f3d992d845678de5215edb31216 not in ['0000000000000000000000000000000000000000', '0000000000000000000000000000000000000000000000000000000000000000']
2022-11-22 00:10:41.585 - keylime.ima - WARNING - File not found in allowlist: /lib/modules/5.4.48-openpower1/kernel/drivers/usb/common/usb-common.ko
2022-11-22 00:10:41.585 - keylime.ima - WARNING - File not found in allowlist: /lib/modules/5.4.48-openpower1/kernel/drivers/gpu/drm/drm_panel_orientation_quirks.ko
2022-11-22 00:10:41.585 - keylime.ima - ERROR - IMA ERRORS: Some entries couldn't be validated. Number of failures in modes: ImaSig 3.
ok
test_mixed_verfication (test_ima_verification.TestIMAVerification)
Test verification using allowlist and keys ... 2022-11-22 00:10:41.585 - keylime.ima - WARNING - No boot_aggregate value found in allowlist, adding an empty one
2022-11-22 00:10:41.588 - keylime.file_signatures - DEBUG - Added key with keyid: 0xf3452d23
2022-11-22 00:10:41.593 - keylime.file_signatures - DEBUG - Added key with keyid: 0x531f4025
ERROR
test_read_allowlist (test_ima_verification.TestIMAVerification)
Test reading and processing of the IMA allow-list ... 2022-11-22 00:10:41.596 - keylime.ima - DEBUG - Loading allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt
2022-11-22 00:10:41.597 - keylime.ima - DEBUG - Loaded allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt with checksum 6b010e359bbcebafb9b3e5010c302c94d29e249f86ae6293339506041aeebd41
2022-11-22 00:10:41.597 - keylime.ima - DEBUG - Allowlist did not have a checksum provided, will add calculated checksum to bundle
2022-11-22 00:10:41.597 - keylime.ima - DEBUG - Converting legacy allowlist format to JSON
2022-11-22 00:10:41.597 - keylime.ima - DEBUG - Loading allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Loaded allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt with checksum 6b010e359bbcebafb9b3e5010c302c94d29e249f86ae6293339506041aeebd41
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Allowlist passed checksum validation
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Converting legacy allowlist format to JSON
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Loading allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Loaded allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt with checksum 6b010e359bbcebafb9b3e5010c302c94d29e249f86ae6293339506041aeebd41
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Loading allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt
2022-11-22 00:10:41.598 - keylime.ima - DEBUG - Loading signature (/tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.sig) and key (/tmp/tmp.rEWmleoUWx/test/data/gpg-sig.pub) and checking against allowlist (/tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt)
2022-11-22 00:10:41.621 - keylime.signing - DEBUG - Importing GPG key
2022-11-22 00:10:41.643 - keylime.ima - DEBUG - Allowlist passed signature verification
2022-11-22 00:10:41.643 - keylime.ima - DEBUG - Loaded allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt with checksum 6b010e359bbcebafb9b3e5010c302c94d29e249f86ae6293339506041aeebd41
2022-11-22 00:10:41.643 - keylime.ima - DEBUG - Allowlist did not have a checksum provided, will add calculated checksum to bundle
2022-11-22 00:10:41.649 - keylime.signing - DEBUG - Importing GPG key
2022-11-22 00:10:41.669 - keylime.ima - INFO - Allowlist signature validation passed.
2022-11-22 00:10:41.669 - keylime.ima - DEBUG - Converting legacy allowlist format to JSON
2022-11-22 00:10:41.670 - keylime.ima - DEBUG - Loading allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt
2022-11-22 00:10:41.670 - keylime.ima - DEBUG - Loading signature (/tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-bad.sig) and key (/tmp/tmp.rEWmleoUWx/test/data/gpg-sig.pub) and checking against allowlist (/tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt)
2022-11-22 00:10:41.676 - keylime.signing - DEBUG - Importing GPG key
2022-11-22 00:10:41.696 - keylime.signing - WARNING - Unable to verify signature: 86FD996E85DD86A5F599B4532D41CC62EE157581: No public key
2022-11-22 00:10:41.702 - keylime.signing - DEBUG - Importing GPG key
2022-11-22 00:10:41.721 - keylime.signing - WARNING - Unable to verify signature: 86FD996E85DD86A5F599B4532D41CC62EE157581: No public key
2022-11-22 00:10:41.722 - keylime.ima - DEBUG - Loading allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt
2022-11-22 00:10:41.722 - keylime.ima - DEBUG - Loading signature (/tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.sig) and key (/tmp/tmp.rEWmleoUWx/test/data/gpg-sig.pub) and checking against allowlist (/tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt)
2022-11-22 00:10:41.727 - keylime.signing - DEBUG - Importing GPG key
2022-11-22 00:10:41.747 - keylime.ima - DEBUG - Allowlist passed signature verification
2022-11-22 00:10:41.747 - keylime.ima - DEBUG - Loaded allowlist from /tmp/tmp.rEWmleoUWx/test/data/ima-allowlist-short.txt with checksum 6b010e359bbcebafb9b3e5010c302c94d29e249f86ae6293339506041aeebd41
2022-11-22 00:10:41.747 - keylime.ima - DEBUG - Allowlist passed checksum validation
2022-11-22 00:10:41.753 - keylime.signing - DEBUG - Importing GPG key
2022-11-22 00:10:41.774 - keylime.ima - INFO - Allowlist signature validation passed.
2022-11-22 00:10:41.774 - keylime.ima - DEBUG - Converting legacy allowlist format to JSON
ok
test_signature_verification (test_ima_verification.TestIMAVerification)
Test the signature verification ... 2022-11-22 00:10:41.776 - keylime.file_signatures - WARNING - No key with id 0xf3452d23 available
2022-11-22 00:10:41.776 - keylime.ima - WARNING - signature for file /usr/bin/dd is not valid
2022-11-22 00:10:41.776 - keylime.file_signatures - WARNING - No key with id 0x531f4025 available
2022-11-22 00:10:41.777 - keylime.ima - WARNING - signature for file /usr/bin/zmore is not valid
2022-11-22 00:10:41.777 - keylime.ima - ERROR - IMA ERRORS: Some entries couldn't be validated. Number of failures in modes: ImaSig 2.
2022-11-22 00:10:41.778 - keylime.file_signatures - DEBUG - Added key with keyid: 0xf3452d23
ERROR

======================================================================
ERROR: test_mixed_verfication (test_ima_verification.TestIMAVerification)
Test verification using allowlist and keys
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/tmp.rEWmleoUWx/test/test_ima_verification.py", line 203, in test_mixed_verfication
    _, failure = ima.process_measurement_list(
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ima.py", line 391, in process_measurement_list
    running_hash, failure = _process_measurement_list(
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ima.py", line 339, in _process_measurement_list
    validation_failure = entry.invalid()
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ast.py", line 413, in invalid
    failure.merge(self.mode.is_data_valid(self._validator))
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ast.py", line 292, in is_data_valid
    return validator.get_validator(type(self))(self.digest, self.path, self.signature)
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ima.py", line 191, in _validate_ima_sig
    if not ima_keyrings.integrity_digsig_verify(signature.data, digest.hash, digest.algorithm):
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/file_signatures.py", line 356, in integrity_digsig_verify
    return self._asymmetric_verify(signature, filehash, filehash_type)
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/file_signatures.py", line 335, in _asymmetric_verify
    ImaKeyrings._verify(pubkey, signature[hdrlen:], filehash, hashfunc())
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/file_signatures.py", line 284, in _verify
    pubkey.verify(sig, filehash, padding.PKCS1v15(), Prehashed(hashfunc))
  File "/usr/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 571, in verify
    return _rsa_sig_verify(
  File "/usr/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 270, in _rsa_sig_verify
    pkey_ctx = _rsa_sig_setup(
  File "/usr/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 213, in _rsa_sig_setup
    raise UnsupportedAlgorithm(
cryptography.exceptions.UnsupportedAlgorithm: sha1 is not supported by this backend for RSA signing.

======================================================================
ERROR: test_signature_verification (test_ima_verification.TestIMAVerification)
Test the signature verification
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/tmp.rEWmleoUWx/test/test_ima_verification.py", line 128, in test_signature_verification
    _, failure = ima.process_measurement_list(AgentAttestState("1"), lines[0:1], ima_keyrings=keyrings)
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ima.py", line 391, in process_measurement_list
    running_hash, failure = _process_measurement_list(
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ima.py", line 339, in _process_measurement_list
    validation_failure = entry.invalid()
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ast.py", line 413, in invalid
    failure.merge(self.mode.is_data_valid(self._validator))
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ast.py", line 292, in is_data_valid
    return validator.get_validator(type(self))(self.digest, self.path, self.signature)
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/ima.py", line 191, in _validate_ima_sig
    if not ima_keyrings.integrity_digsig_verify(signature.data, digest.hash, digest.algorithm):
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/file_signatures.py", line 356, in integrity_digsig_verify
    return self._asymmetric_verify(signature, filehash, filehash_type)
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/file_signatures.py", line 335, in _asymmetric_verify
    ImaKeyrings._verify(pubkey, signature[hdrlen:], filehash, hashfunc())
  File "/usr/local/lib/python3.9/site-packages/keylime-6.5.2-py3.9.egg/keylime/ima/file_signatures.py", line 284, in _verify
    pubkey.verify(sig, filehash, padding.PKCS1v15(), Prehashed(hashfunc))
  File "/usr/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 571, in verify
    return _rsa_sig_verify(
  File "/usr/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 270, in _rsa_sig_verify
    pkey_ctx = _rsa_sig_setup(
  File "/usr/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/rsa.py", line 213, in _rsa_sig_setup
    raise UnsupportedAlgorithm(
cryptography.exceptions.UnsupportedAlgorithm: sha1 is not supported by this backend for RSA signing.

----------------------------------------------------------------------
Ran 6 tests in 0.215s

FAILED (errors=2)

@stefanberger Hi, is this something you would be easily fix? I am wondering how one can easily generate updated hashes and signatures for the IMA test.


SIMCOM SIM7600G-H PCIE module compatibility for LILYGO-T-SIMCAM

I have this LILYGO-T-SIMCAM Board
On the website it is recommended to use the PCIE SIMCOM module made by them, in my case, SIM7600G-H[H441-08].
However, it is not available to buy feasibly in my region, therefore, can I use this waveshare SIM7600G-H-PCIE module instead?
Thanks in advance!

LilyGo's PCIE boards are all powered by 4V. You need to check whether other PCIE Pins and voltages are the same.

Bought an mPCIe module from simcom. Works.


Set dr standby

This action will return the golddr cluster to standby mode when manually triggered.  It requires two inputs, the namespace and the tsc port number.  It checks that the gold patroni is active before allowing this to happen.
Found some errors in my bash scripts, fixing now

Found some errors in my bash scripts, fixing now


Remove stale JS-related code + Refactor + Improve comment.json support for added types

The JS-related things used to be useful for the JS language service in VS, but now it is not used anymore. This PR cleans up the code:

removed JS-related stuff
put all code in a single file TS.fsx
break things into smaller modules, making it more readable
code refactor in many places to improve speed

and also incorporated https://github.com/Microsoft/TSJS-lib-generator/pull/168 for the comment.json support for added types.

@mhegazy as this is a quite big change, it can go stale pretty fast. Please take a look if you have time, thanks!


screen flicker and noisy point

Hello I build and run the project on the PC chrome, and I found the screen flicker like the following pic ,I dont know why,anyone had the same issue?OR can anyone give me a direction of the solution to the issue,Thank you a lot

hey guys I have solved this probloms. the component called Camera in the unity ,Clear flags if we use the depth only. It will cause this flicker,so I have replaced it with solid color. And it acts correct.yeah~

you saved my life!!!!!! Thanks a lot!!!!!!


Add signup count to pitch page

Add "Join [signup_count] people doing this" as the CTA above the signup button on the bottom of the pitch page. Allow optimizely to target the CTA so we can show/hide the CTA with social count for testing.

Refs #4051

@mikefantini this is currently blocked by #4051

@sbsmith86 this should now be unblocked by #4320

Sweet! Thanks guys.

@mikefantini the work for this is on staging but you won't see in unless the proper classes have been added to the element. The count is set to be hidden by default. How do you go about testing this? Should I pass on the code Jeff will need for optimizely?

Closing. We are moving forward with this in #4364


Pass options verbatim

Any chance to get something like this:
quote(['echo', { op: '<' }, 'file']) to produce echo < file instead of echo \< file?
Basically a way to mark verbatim parts in the array and don't escape them.
Happy to open a PR!

I think this is a duplicate of #12—I think adding an unparse() method that has this behaviour would be nice, or adding an option to quote so you can do quote([], { escapeOperators: false }).


audit: use versioned_formula instead of formula.versioned_formula?

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

I think this is a bit easier to parse and more consistent with @new_formula, @core_tap, etc.

Thanks again @commitay!


Rework host post-processing for @ replacement and origin

Move host qualifying (@ and last host processing) into zonefile.rb and out of the grammar.
Replace class eval'd methods for qualifying host names with a single private method on Record.
This also fixes an issue when ORIGIN was set to "."

Bump for a review @craigw

Sorry @aeden for the delay.
Appreciate your work doing this - thank you. I'll take a look today with an aim to release a new version before the weekend :)

No worries, just wanted to make sure you saw it. 😄


How to keep kivy at the front

Software Versions

Python: 3.6.6
OS: Windows 10
Kivy: 1.11.1
Kivy installation method: Python -m pip install xxx

Describe the bug
Hello everyone, I wrote a PC-side application with kivy. The host is a dual-screen display. I set Window.fullscreen = True in the code. When the cursor moves to the secondary screen and clicks, kivy will be hidden. How to keep kivy at the front of screen and do not let it hide.
Thanks all

That's a platform specific thing, that might not even be enforcable on all of them, have a look at the win32/winxpgui and other modules like them to implement that on windows, this is outside of kivy's scope.


feat: support showing image for fastapi template

Will continue working on this in https://github.com/run-llama/create-llama


Missing documentation for window functions

Describe the bug
There is no documentation for window functions, and no python examples for window functions.
To Reproduce
Search for "window" in the docs (site2).
It's mentioned in passing:

A Java function listens for the sanitized-sentences topic, counts the number of times each word appears within a specified time window, and publishes the results to a results topic

(my emphasis)
In some CLI flags:
./docs/functions-cli.md:sliding-interval-count | The number of messages after which the window slides. |  |
./docs/functions-cli.md:sliding-interval-duration-ms | The time duration after which the window slides. |  |
./docs/functions-cli.md:window-length-count | The number of messages per window. |  |
./docs/functions-cli.md:window-length-duration-ms | The time duration of the window in milliseconds. | |

And in a reference to release notes:

Add Windowfunction interface to functions api #3324

Expected behavior
N/A
Screenshots
N/A
Desktop (please complete the following information):
N/A
Additional context
This functionality is really interesting to me, and I'd like to know (a) what it can do, and (b) if I can use it from python.
I'm particularly interested if it's possible to do e.g. a ten-minute rolling window, where I can add 1 to an internal counter for an event which enters the window, and remove 1 from a count when that event leaves the window, thus maintaining a running count.
It could be done without external support, but would require in-RAM buffering for all events over than 10 minute window - but buffering is what pulsar is for :-)
Externally I could maintain two readers: one at the current location and one at T-10 mins.  But that wouldn't work as a pulsar function AFAICS.

I got part of the answer from pulsar:
$ apache-pulsar-2.4.1/bin/pulsar-admin functions update --name womble --window-length-count 5 --sliding-interval-count 3
There is currently no support windowing in python

Reason: There is currently no support windowing in python

But I'd still like to see documentation for what windowing is supposed to do :-)

@candlerb Thank you very much for raising the issue. I'll look into the issue, and provide related docs soon.

But I'd still like to see documentation for what windowing is supposed to do :-)

Sorry, I missed this message.
@candlerb Currently, does not support window function in Python Function.
private static void doPythonChecks(FunctionConfig functionConfig) {
        if (functionConfig.getProcessingGuarantees() == FunctionConfig.ProcessingGuarantees.EFFECTIVELY_ONCE) {
            throw new RuntimeException("Effectively-once processing guarantees not yet supported in Python");
        }

        if (functionConfig.getWindowConfig() != null) {
            throw new IllegalArgumentException("There is currently no support windowing in python");
        }

        if (functionConfig.getMaxMessageRetries() != null && functionConfig.getMaxMessageRetries() >= 0) {
            throw new IllegalArgumentException("Message retries not yet supported in python");
        }
    }

@candlerb Currently, window function is supported in Java, not in Python.

Yep, I got that.  But I don't see any documentation for how it would work for a Java Pulsar Function either.

@srkukarni could you help add the related documentation?


Tags

Hi and thanks for the great resource! :)
I'd like to add that it would probably be of great help to have proper tags on the brushes, so they're also very easily accessible from the favorites circle menu (something like the modular brush set). I'd do it myself but the tagging system is broken in krita v3 and I don't wan't to install v2.9 just to create the tags (cause it has a lot of dependencies as I'm not using kde)...

Thank you for the feedback.
At the moment, I propose in the bundle a single tag 'deevad' with 10 brush on it for the right-click pop-up palette. And Krita create a auto-tag for the whole bundle 'deevad-v8'. But it's defintely a good idea to add more tags.
What specific bug have you with tags? (bug report URL?).

I didn't submit a bug report for the tags system cause I was asking about it in the IRC and the devs already know. I cannot assign brushes to tags or remove tags for that matter. I can only rename them and create new tags and that's pretty much it and it is kind of annoying cause I rely on the pop-up palette quite a bit :). But oh well, I really don't want to install krita 2.9 cause it has a lot of dependencies. I'll just wait for krita 3 to become stable and when the tag system will be fixed then I'll be able to modify as needed.

I'll just wait for krita 3
Release is next week! :) I couldn't see the bug here ( tag system had bug fix last week) , I hope it will be fixed on your future install as well.

I'm using the latest RC1 appimage but it still has this bug and I know boud and the guys know about the issues cause I've talked with them on the IRC, but yes, I hope it will be fixed in the stable release.

Well they sure didn't fix the bugs in the v3 release :) oh well...

I'm closing this issue as it's a todo for Krita-dev. Right now, tag system is too unstable to really play with. I keep all the brush with the tag 'deevad' only for quick way to isolate them. Thanks for the report again!


Mouse coordinates are off in fullscreen, MacOS

It seems the mouse coordinates are off when you go into fullscreen mode on macOS (Ventura 13.1). It gets it right for any resized window and for any scale_mode, except when I go fullscreen the mouse is not where it thinks. This doesn't seem to affect Windows users.
Fullscreen:

Non fullscreen (regardless of scale mode, aspect ratio or size)

code:
use minifb::*;

fn main() {
    let mut window = Window::new(
        "Fullscreen",
        800,
        500,
        WindowOptions {
            resize: true,
            scale_mode: ScaleMode::Center,
            ..WindowOptions::default()
        },
    )
    .unwrap();
    while window.is_open() && !window.is_key_down(Key::Escape) {
        assert_eq!(
            window.get_mouse_pos(MouseMode::Discard),
            window.get_unscaled_mouse_pos(MouseMode::Discard)
        );
        let (width, height) = window.get_size();
        let mut pixels = vec![0x00000000; width * height];
        // Paint the row and col of pixels that the mouse is hovering over
        window
            .get_mouse_pos(MouseMode::Discard)
            .map(|(mouse_x, mouse_y)| {
                for mouse_x in 0..width {
                    pixels[mouse_x as usize + mouse_y as usize * width] = 0x00FFFFFF;
                }
                for mouse_y in 0..height {
                    pixels[mouse_x as usize + mouse_y as usize * width] = 0x00FFFFFF;
                }
            });
        window.update_with_buffer(&pixels, width, height).unwrap();
    }
}

On a possibly unrelated note, should this work after resizing?
assert_eq!(
            window.get_mouse_pos(MouseMode::Discard),
            window.get_unscaled_mouse_pos(MouseMode::Discard)
        );

Thanks for your time

Thanks for the report. My guess is that minifb needs to detect when the application enters fullscreen as I think it currently always includes the size of the titlebar currently.

This seems correct as I get the same behaviour with :
        WindowOptions {
            title: false,
            ..WindowOptions::default()
        }


[DateTimePicker] Fixed input validation

✅ Closes: #349

:tada: This PR is included in version 9.6.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Styling data needs to be standardized to be serialized for db, backend, frontend serialization

seek issues #19 and #31

Have gone with a very simple structure for now, and will store as single string in db:
pub struct Style {
    pub css: String,
}


batch-size of training ImageNet

Hello, the current code setting in ImageNet, I can only feed batch-size=16 one gpu for resnet50 model with ImageNet database, my gpu is V100, however, the same settings in my friends computer the batch-size=36.

I unfortunately don't know the differences between your and your friend's GPUs. However, note that for ImageNet training, we use https://github.com/alvinwan/nbdt-pytorch-image-models.

thank u for answering.


pulling manifest  Error

What is the issue?
pulling manifest
Error: pull model manifest: Get "https://ollama.com/token?nonce=KuhzAPbr727aW4zzdmUWPA&scope=repository%!A(MISSING)library%!F(MISSING)llama3%!A(MISSING)pull&service=ollama.com&ts=1714285350": read tcp <IP_ADDRESS>:60544-><IP_ADDRESS>:443: read: connection reset by peer
OS
macOS
GPU
Apple
CPU
Apple
Ollama version
ollama version is 0.1.32

我也出现同样的问题

Looks like a dup of #3504


Add Rusty Playdate (build system & API)

@sayhiben, could you please add my Playdate Build System & API in Rust.

Added - feel free to open PRs rather than issues; I check in on this repo periodically and accept most changes :)


srgbify can't convert this image, for some reason

When I try to convert the image in the attached ZIP, I get an error "cannot build transform". It would be good to understand what's going on and fix it.
practical-svg.png.zip

Here's the traceback:
Traceback (most recent call last):
  File "/private/var/folders/lp/1yl_g9ls2_g3l2tkmb6fpg0h0000gn/T/tmp.QxFezTSFZ4/.venv/lib/python3.12/site-packages/PIL/ImageCms.py", line 463, in profileToProfile
    transform = ImageCmsTransform(
                ^^^^^^^^^^^^^^^^^^
  File "/private/var/folders/lp/1yl_g9ls2_g3l2tkmb6fpg0h0000gn/T/tmp.QxFezTSFZ4/.venv/lib/python3.12/site-packages/PIL/ImageCms.py", line 306, in __init__
    self.transform = core.buildTransform(
                     ^^^^^^^^^^^^^^^^^^^^
ValueError: cannot build transform

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/alexwlchan/repos/scripts/images/srgbify.py", line 88, in <module>
    out_im = convert_image_to_srgb(im)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/alexwlchan/repos/scripts/images/srgbify.py", line 58, in convert_image_to_srgb
    return ImageCms.profileToProfile(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/var/folders/lp/1yl_g9ls2_g3l2tkmb6fpg0h0000gn/T/tmp.QxFezTSFZ4/.venv/lib/python3.12/site-packages/PIL/ImageCms.py", line 478, in profileToProfile
    raise PyCMSError(v) from v
PIL.ImageCms.PyCMSError: cannot build transform

That core.buildTransform() function called from ImageCms.py seems to be defined somewhere in a C library, so I can't debug it further.
I'm not going to investigate this further unless I see more images with this issue – Acorn was able to handle it fine for me.


dgcd and dgco are the same

Across several different fonts I don't see a difference between these two.
btw absolutely love your work on this project and the direction you took it from tristan's.

Oops.  Yeah, sorry, it looks like I commented out a line by accident while testing.  Fixed now.
I think at some point I'm going to have to refactor this more deeply so that decimal policy is entirely separate from whole number policy, because there are so many different permutations to conider otherwise.  For example, I notice that Wikipedia has a standard group of five digits for decimals and three for whole numbers.
But it's one of so many things to get around to...