Kindlegen no longer available for download

It looks like kindlegen is no longer available for download and is replaced with Kindle Previewer. I don't see anything about this on the wiki or recent issues so I'm guessing this change from them is recent - what should I do instead?

I just used the wayback machine to pull the file from here: https://web.archive.org/web/20190817070956/https://www.amazon.com/gp/feature.html?docId=1000765211
kindlegen_win32_v2_9.zip
This is v2.9 of kindlegen, you need to take the kindlegen.exe from inside and use that. Hope this helps

The file wasn't even on web archive for Linux. If anyone is looking for it, I've got it from an old hard drive.
I've uploaded it here : https://archive.org/details/kindlegen

I created a docker image setted up for kcc. Actually I don't know for sure how to run gui applications in a docker container. So basically I use the kcc CLI  (kindlegen already on the image). If some one got iterested here is the image: https://hub.docker.com/r/wesleympg/kindle-comic-converter-cli
Creating a container and attaching:
$ docker run -ti --name kcc-cli -v <pathToYourComicsDir>:/comics wesleympg/kindle-comic-converter-cli /bin/bash

The you need to enter in the comics dir and convert:
$ cd comics
$ kcc-c2e (or kcc-cli) <options> *

* means all the files and directories in the current directorie. You might just convert one file as well. See the CLI usage and be happy :D

i'm gonna just use calibre...

Kindle Previewer also allows mass convertion
`USAGE:
kindlepreviewer  <-command(s)> [-option(s)]
kindlepreviewer -update
input
Specify the input file name here when processing a single file, or the
input folder when processing multiple files.
-command(s)
Include at least one of the commands specified below.
-option(s)
Choose any of options specified below (optional).
-update
Download and install the latest software update for Kindle Previewer.
COMMANDS:
-convert
Create a KPF file in the specified output path, or a Mobi file when the
book does not support Enhanced Typesetting. Use the Enhanced Typesetting
compatible KPF file to open the book on Kindle Previewer's graphical
user interface without reconverting it.
-showpreview
Open the converted book in Kindle Previewer's graphical user interface.
This will first convert the book, and then open it for preview.
-log
Use this option to generate only the log files for validation without
generating a KPF or a Mobi file.
-qualitychecks
Use this option (beta) to validate external links, internal links, and
footnotes in your books.
OPTIONS:
-output
Path to the output folder. Use this option to specify a preferred path
to store output file(s) instead of the default path (input folder).
-locale
Specify your preferred locale. Use this option to set the language for
conversion log messages and the Kindle Previewer user interface.
Supported locales are en : English, de : German, fr : French,
it : Italian, es : Spanish, zh : Chinese, ja : Japanese,
pt : Portuguese, nl : Dutch.
EXAMPLES:
kindlepreviewer inputfile.epub -convert
kindlepreviewer inputfolder/  -convert -output outputfolder/
kindlepreviewer inputfile.epub -showpreview
kindlepreviewer inputfolder/ -log`
So it should be possible to add support of kindle previewer to kcc :)

What about manga/comics mode? Does the tool support it?
-------- Original Message --------
On Oct 21, 2020, 21:13, Grauen wrote:

Kindle Previewer also allows mass convertion
`USAGE:
kindlepreviewer <-command(s)> [-option(s)]
kindlepreviewer -update
input
Specify the input file name here when processing a single file, or the
input folder when processing multiple files.
-command(s)
Include at least one of the commands specified below.
-option(s)
Choose any of options specified below (optional).
-update
Download and install the latest software update for Kindle Previewer.
COMMANDS:
-convert
Create a KPF file in the specified output path, or a Mobi file when the
book does not support Enhanced Typesetting. Use the Enhanced Typesetting
compatible KPF file to open the book on Kindle Previewer's graphical
user interface without reconverting it.
-showpreview
Open the converted book in Kindle Previewer's graphical user interface.
This will first convert the book, and then open it for preview.
-log
Use this option to generate only the log files for validation without
generating a KPF or a Mobi file.
-qualitychecks
Use this option (beta) to validate external links, internal links, and
footnotes in your books.
OPTIONS:
-output
Path to the output folder. Use this option to specify a preferred path
to store output file(s) instead of the default path (input folder).
-locale
Specify your preferred locale. Use this option to set the language for
conversion log messages and the Kindle Previewer user interface.
Supported locales are en : English, de : German, fr : French,
it : Italian, es : Spanish, zh : Chinese, ja : Japanese,
pt : Portuguese, nl : Dutch.
EXAMPLES:
kindlepreviewer inputfile.epub -convert
kindlepreviewer inputfolder/ -convert -output outputfolder/
kindlepreviewer inputfile.epub -showpreview
kindlepreviewer inputfolder/ -log`
So it should be possible to add support of kindle previewer to kcc :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

@Nomeji ,
What exactly does "manga mode" mean?
I converted my input file to epub using kcc.
After that I converted the epub using Kindle Previewer.  I just converted it via cli without any further configuration:
 kindlepreviewer . -convert  -output .
The result looks splendid on my kindle. Also you have to swipe from left to right, like you would read a real manga. Quality looks great and loading times are quite fast. So this is exactly what I need.
But no, you cannot pass any "manga" or "comic" parameter with kindle preview. However - I'm satisfied with the result and supporting Kindle Preview would be better than relying on deprecated software and archive.org as primary download source .

For my Kindle model, manga/comics mode remove margins (usually used to diplay page count). This is the most usefull since the screen is very small. Even removing the slightest margin can improve image size a lot since it scale better. It's clearly a must have.
The other "not very usefull" feature is that it allow to zoom on different sections of the page. kcc allow to configure 4 zoom split or 2 zoom split options.
-------- Original Message --------
On Oct 21, 2020, 23:17, Grauen wrote:

@Nomeji ,
What exactly does "manga mode" mean?
I converted my input file to epub using kcc.
After that I converted the epub using Kindle Previewer. I just converted it via cli without any further configuration:
kindlepreviewer . -convert -output .
The result looks splendid on my kindle. Also you have to swipe from left to right, like you would read a real manga. Quality looks great and loading times are quite fast. So this is exactly what I need.
But no, you cannot pass any "manga" or "comic" parameter with kindle preview. However - I'm satisfied with the result and supporting Kindle Preview would be better than relying on deprecated software and archive.org as primary download source .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@Nomeji my output files look perfectly cropped. When I doubletab the screen, it switches to 'split zoom'. Why don't you just give it a try yourself?
Kindlegen is gone. You should definitely consider  supporting Kindle Previewer.

I just used the wayback machine to pull the file from here: https://web.archive.org/web/20190817070956/https://www.amazon.com/gp/feature.html?docId=1000765211
kindlegen_win32_v2_9.zip
This is v2.9 of kindlegen, you need to take the kindlegen.exe from inside and use that. Hope this helps

It can be found in "Amazon Kindle Previewer 3 Folder\lib\fc\bin" too but using the Wayback Machine is the fastest way to get it since no installation is needed.

After seeing that people said it's installed with Amazon Kindle Previewer and I noticed you don't even have to install it. I just opened KindlePreviewerInstaller.exe with 7-zip and extracted it from KindlePreviewerInstaller.exe\lib\fc\bin\

kindlegen.exe for windows version from 11/18/2021

closing this
many answers have been given and the README has been adapted.
I will create another issue to manage kindle previewer


Fix ahk wasd script

Problem: If you try to toggle between camera mods with caps lock it will not work if you are already holding any wasd key
This fixes that

All functionality was moved from AHK to DLL, so this has become obsolete.
Still, thank you for contributing!


elevation fill issue with scene

See https://ptb.discord.com/channels/@me/1029764820947452014/1029764884134629486

Fixed in v0.3.3.


fix border-color bug

Fixes https://github.com/mblode/marx/issues/29

Can you prep this PR as a 2.0.8 bugfix release?


Inverse text normalization of numbers etc.

The restorer in speechbox is very good at restoring punctuation and capitalization in sentences without spelled out numbers.
However, for CTC based ASR approaches like Wav2Vec2, numbers are spelled out as the vocabulary usually only contains alphabetical characters. In order to use the restorer on the output of a Wav2Vec2 model, one would therefore need to first do inverse normalization of numericals using e.g. language specific FSTs.
I wonder whether it is possible to use the output of Whisper (which is already alphanumerical) within this method to simultaneously do inverse normalization as well as punctuation and capitalization, thereby creating a universal post-processor for CTC models, which supports all languages included in Whisper.
Here are some examples (in Danish), using the Whisper-medium multilingual model:
An audio clip saying the words:
seksogtres tusind fem hundrede og enoghalvfjerds (66.571)
produces the following output with the restorer:
SEKSOGTRES TUSIND' FEM HUNDREDE OG enoghalvfjerds
otteogtres tusind tre hundrede og toogtyve (68.322)
becomes:
Otteogtres-tusind-trehundredeog-toogtyve
How feasible is it to have ITN as a first step in the method?

I haven't tried using ITN in combination with the punctuation restorer yet


kernel: sched: do not abort a thread that's already dead.

For SMP case, if a thread is already dead/terminated, because
e.g. thread exits, and other cores want to terminate this thread,
z_sched_abort just returns and no need to do further work, e.g.
raise an ipi interrupt as the target thread is already dead.
It's an optimization, especially for SMP case.
What's more, have we ever considered the cases of multi k_thread_abort/k_thread_create on the same
thread?
Signed-off-by: Wayne Ren<EMAIL_ADDRESS>

What's more, have we ever considered the cases of multi k_thread_abort/k_thread_create on the same thread?

But are simultaneous racing thread aborts really a case we want to optimize for?

I think if it happens we might crash if it's the same thread object. There's even a note in the code as such.
https://github.com/zephyrproject-rtos/zephyr/issues/21511


Add Config System

It would be good to have config system for the model. This should specify stuff around model shapes/sizes, microbatch size, hyperparams, and anything we'd want stored in the Weights and Biases config for a run.

Considering this as an option for composable YAML configs.
https://github.com/facebookresearch/hydra
Would also be nice if there's a straightforward way to turn the config into one for Weights and Biases as well.

Working on adding this on the hydra branch.


ability to pass context to serialization (pydantic#7143)

Change Summary
As described and discussed in pydantic#7143, it would make sense to be able to pass a context object to .model_dump()/.model_dump_json() in order to dynamically update the serialization behavior during runtime.
This PR is my attempt at implementing this feature. This is my first time with Rust, so you should be wary about it :).
I tested this implementation with (an accordingly-modified) pydantic and everything seemed to work.
Related issue number
pydantic#7143
The pydantic side of the change is very light, I have a commit ready for it in case this PR gets merged.
Checklist

[x] Unit tests for the changes exist
[x] Documentation reflects the changes where applicable
[x] Pydantic tests pass with this pydantic-core (except for expected changes)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @adriangb

CodSpeed Performance Report
Merging #1215 will degrade performances by 22.47%
Comparing ornariece:serialization-context (e1e6bc7) with main (a98b8b0)
Summary
❌ 2 regressions ✅ 146 untouched benchmarks

⚠ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown
Benchmark 	main ornariece:serialization-context 	Change
❌ 	test_core_future_str 	31.8 µs 	39.4 µs 	-19.38%
❌ 	test_core_future 	29.2 µs 	37.6 µs 	-22.47%

I think this is an artefact? Those tests only involve validation, and I only touched the serialization... or so I think.

as for the pypy3.9 test failing, i honestly have too little experience with Rust to have a clue as to why

please review

as for the pypy3.9 test failing, i honestly have too little experience with Rust to have a clue as to why

This is sadly just PyPy flakiness which nobody can get to the bottom of, see it all over this place in https://github.com/PyO3/pyo3/issues/3766

awesome, thank you! i'm gonna submit a PR for pydantic now 👍

the PR is ready, i'll wait until the new pydantic-core release to submit it to pydantic @davidhewitt

It might be worth opening the PR anyway, even if it doesn't build yet, so that we can remember this needs to go into pydantic 2.7.


[terra-form-select] Allow users to disable options in native-select

Summary
Allow users to disable options in native-select

Closes #3283
Deployment Link

https://terra-core-native-diabl-o7sl1h.herokuapp.com
Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

Looks good, though probably need some additional jest tests to verify this is getting mapped correctly.

Looks good, though probably need some additional jest tests to verify this is getting mapped correctly.

Added jest test 8188448

default value for disabled in options is none at present can it be set to false since it is a boolean type having default value will add value to it's usage.

Since it has changes in UI I think we might need WDIO test as well to validate disabled style across the themes.

default value for disabled in options is none at present can it be set to false since it is a boolean type having default value will add value to it's usage.

Done e1933a6

Since it has changes in UI I think we might need WDIO test as well to validate disabled style across the themes.

As discussed offline, no wdio has been added

I think it'd be worth adding an example to the dev-site doc so we can manually validate this is working as well.

I think it'd be worth adding an example to the dev-site doc so we can manually validate this is working as well.

I think it'd be worth adding an example to the dev-site doc so we can manually validate this is working as well.

Example Added 5905e32

I think it'd be worth adding an example to the dev-site doc so we can manually validate this is working as well.

Example Added 5905e32

This has been functionally reviewed and looks good.

This has been functionally reviewed and looks good.


Add and apply style configuration for code formatter Clang-Format.

Style is based on style 'Microsoft' which has the greatest resemblance with Allman indentation style, from the available predefined styles.
The style configuration can be applied by clang-format (part of LLVM) using common IDE's. For example Microsoft Visual Studio Code and Eclipse CDT support to invoke clang-format with a configurable style configuration file.
To format all files using a UNIX shell, this line can be used:
find . -iname '*.h' -o  -iname '*.hpp' -o -iname '*.c' -o -iname '*.cpp' -o -iname '*.ino' | xargs clang-format -i --style=file --fallback-style=none --verbose

Also this adds a GitHub Action which does automatically check if the style format is matched.

btw. I found a VSCode extension that lets you format your current open file in according to the .clang-format specs with only a keybord shortcut: Ctrl + Alt + F

It basically overrides the builtin formatter with the clang-format call.
Clang-Format

Nice! For me it worked already "out of the box", as I had the C/C++
Extension already installed. The default settings use the style
configuration file already.
https://code.visualstudio.com/docs/cpp/cpp-ide
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools


Add KML as a supported mimetype FORMAT

Description
KML is a Google-developed and OGC-compliant container for vector and raster data (http://www.opengeospatial.org/standards/kml/). In defining my own WPS processes, I've been relying on the FORMATS entries as well as manually defining KML. It would be great if this format was added to the list by default.
Additional Information

fixed by PR #424.


Resolution is low

I build the application according  to the guide, but the resolution is so low.
by the way, my phone is xiaomi10, and the resolution of my phone is 1920*1080p.
Any solution? pls!

Hey, currently the resolution is 224x224
you can change it as follows

resize the input image to 224x224(model's input-size), predict and get the 224x224 background mask
resize both(input image and background mask) to original size(can be anything, say 1920*1080)
background replacement done same as now

Hey, currently the resolution is 224x224
you can change it as follows

resize the input image to 224x224(model's input-size), predict and get the 224x224 background mask
resize both(input image and background mask) to original size(can be anything, say 1920*1080)
background replacement can be done same as now

Hey, currently the resolution is 224x224
you can change it as follows

resize the input image to 224x224(model's input-size), predict and get the 224x224 background mask
resize both(input image and background mask) to original size(can be anything, say 1920*1080)
background replacement can be done same as now

thankkkkk u! i have solved the problem!
but now i meet a new trouble, i want change the background picture realtime without switching a new activity in android. could u give me some advice?

Hey, currently the resolution is 224x224
you can change it as follows

resize the input image to 224x224(model's input-size), predict and get the 224x224 background mask
resize both(input image and background mask) to original size(can be anything, say 1920*1080)
background replacement can be done same as now

thankkkkk u! i have solved the problem!
but now i meet a new trouble, i want change the background picture realtime without switching a new activity in android. could u give me some advice?

its like i put a button and when i press it, a new background picture will show. it seems i have to add or modify the calculator.

Yaa, you can actually do this by creating a new input stream which will decide the background image.
Current I have hard-coded the background image here
Let's consider you have a int mapping of these names for now like 1:buildings.png, 2:cloulds.png etc ( alternatively you could also  add a image input stream instead )
So you would have to

write a small data handler class for this the main activity java file which will send a int input packet on every frame, the button listener logic you can write as you want,
in the background_masking_calculator you would have to accept the input stream and decide the image name from the mapping you would maintain
declare this input stream in the graph as well and pass it as input to the background masking node

Here's a example which would help you with this, here we wanted to send the R, G, B values dynamically from the app UI (similar to your use case), it has the streams declared and stream packets sent from java side to the graph and utilized by the calculator

Hey, currently the resolution is 224x224
you can change it as follows

resize the input image to 224x224(model's input-size), predict and get the 224x224 background mask
resize both(input image and background mask) to original size(can be anything, say 1920*1080)
background replacement can be done same as now

thankkkkk u! i have solved the problem!
but now i meet a new trouble, i want change the background picture realtime without switching a new activity in android. could u give me some advice?

hi, how did y sovle the problem of low resolution ?

@SwatiModi, Can you share the full repo for the Hair Color using Slider (https://github.com/google/mediapipe/issues/420) as I am having adding the ColorSliderCalculator.cc object. Thanks.
EPTION: ExternalTextureConverter
01-11 20:52:37.352  8544  9546 E AndroidRuntime: Process: com.google.mediapipe.apps.hairsegmentationgpu, PID: 8544
01-11 20:52:37.352  8544  9546 E AndroidRuntime: com.google.mediapipe.framework.MediaPipeException: unknown: ValidatedGraphConfig Initialization failed.
01-11 20:52:37.352  8544  9546 E AndroidRuntime: No registered object with name: ColorSliderCalculator; Unable to find Calculator "ColorSliderCalculator"
01-11 20:52:37.352  8544  9546 E AndroidRuntime: RecolorCalculator::GetContract failed to validate:
01-11 20:52:37.352  8544  9546 E AndroidRuntime: For input streams ValidatePacketTypeSet failed:
01-11 20:52:37.352  8544  9546 E AndroidRuntime: Tag "RGB_OUT" index 0 was not expected.
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.framework.Graph.nativeStartRunningGraph(Native Method)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.framework.Graph.startRunningGraph(Graph.java:324)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.components.FrameProcessor.startGraph(FrameProcessor.java:553)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.components.FrameProcessor.maybeAcceptNewFrame(FrameProcessor.java:421)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.components.FrameProcessor.onNewFrame(FrameProcessor.java:439)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.renderNext(ExternalTextureConverter.java:403)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.lambda$onFrameAvailable$0$ExternalTextureConverter$RenderThread(ExternalTextureConverter.java:338)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.components.ExternalTextureConverter$RenderThread$$Lambda$0.run(Unknown Source:4)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:938)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:246)
01-11 20:52:37.352  8544  9546 E AndroidRuntime: 	at com.google.mediapipe.glutil.GlThread.run(GlThread.java:141)


Fixes issue with dynamically created array of pointers with cffi

The helm_values_files is meant to be an array of pointers. Those pointers are references to strings which are helm values files to use in the golang code. As of now, I've gotten lucky that the bytes weren't freed any faster. I noticed that once I hit a string over 96 bytes that I was getting errors in the golang code saying it couldn't find the file which seems to no longer be properly encoded.
valueFiles: [/tmp/tmps8j31sc8.helm_values.yml /tmp/tmp8lbavsth.kapitan/compiled/monitoring-prd/helm_values_files_prometheus_new_and_this/commo�]
From golang!!!!!
valueFiles: [/tmp/tmps8j31sc8.helm_values.yml /tmp/tmp8lbavsth.kapitan/compiled/monitoring-prd/helm_values_files_prometheus_new_and_this/commo� /tmp/tmp8lbavsth.kapitan/compiled/monitoring-prd/helm_values_files_prometheus_new_and_this/common.yml]
Compile pool terminated
Unknown (Non-Kapitan) Error occurred
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/src/kapitan/targets.py", line 448, in compile_target
    input_compiler.compile_obj(comp_obj, ext_vars, **kwargs)
  File "/src/kapitan/inputs/base.py", line 53, in compile_obj
    self.compile_input_path(input_path, comp_obj, ext_vars, **kwargs)
  File "/src/kapitan/inputs/base.py", line 75, in compile_input_path
    **kwargs,
  File "/src/kapitan/inputs/helm/__init__.py", line 98, in compile_file
    **self.helm_params,
  File "/src/kapitan/inputs/helm/__init__.py", line 190, in render_chart
    return error_message.decode("utf-8")  # empty if no error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 101: invalid start byte
"""

Because the array of pointers in being dynamically created, I used the recommendation from the cffi docs and created a dict to hold pointer references so the data is not prematurely garbage collected.

Interesting find! Thank you.


Redis cluster configuration

Hello,
Just like this stackoverflow question :
http://stackoverflow.com/questions/28309671/configuring-highly-available-redis-cluster-in-laravel
I am trying to setup a redis cluster (at least a redis replication system : first I wanted to setup something with redis sentinel, some packages already exists like this one https://github.com/Sparkcentral/PSRedis/issues but they use Predis and I am using Phpredis for performance).
I tried to find some information about how to configure the database.php correctly for redis cluster without success and was wondering if you'd have some tips. If I add more redis servers, how Laravel will pick the right one ? how will it balance writes/reads between masters/slaves ?
One more thing, do you know where would be a good place to implement that kind of logic and to autopromote a slave when the master is down ?
Thank you

Sorry, we don't provide support on GitHub. I'd recommend you try our forums. I'm sure someone can help you out there. :)

No problem, I understand but it was the kind of question similar to https://github.com/laravel/framework/issues/5 for mysql which draw some attention so as I did not find precise documentation about the redis configuration (which I believe could be complemented in a certain way), I thought it was still relevant to ask.
Anyway thanks and direction the forums.

@trompx I know this issue is pretty old, but this was one of the first results that I came across when searching for information about using Sentinel with Laravel. I'll leave a reply here for anyone who finds this issue looking for the same information:
I just wrote a Laravel package that help to configure Laravel for master-slave replicated Sentinel setups using the functionality now included in the Predis client library. The code is pretty simple, so we could consider merging this into future Laravel releases for native replication support one we collect some extended experience testing it in the field on production servers.


What is VNode?

VNode is segment data is lost but we know should have a node there. Most because the oap don't have enough power.


no return comment __construct

We prefer to always put the return annotation in order to differentiate between actually returning nothing, and just forgetting to document the return type.

return type does not match
A number of parameters, their names or types  (if any) in PHPDoc comment do not match the respective function or method declaration.
but https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#715-return
[functions and methods without a return value: the @return tag MAY be omitted here, in which case an interpreter MUST interpret this as if @return void is provided.]

The return type does match. That function has do return statement, so it doesn't return anything.
I'm not sure what you mean by quoting those docs? They don't back up your point?

Locking since this discussion isn't useful.


Astral Sorcery - Mekanism crash conflict

after updating both mods, a crash ocurred
astral_sorcery_-_mekanism_crash.txt

That's an AS issue


Train Pointpillar on NuSences dataset?

Hello,
I want to train Pointpillar on NuSences Dataset. Does anyone have the config?
Thanks.

https://github.com/open-mmlab/OpenPCDet/blob/master/tools/cfgs/nuscenes_models/cbgs_pp_multihead.yaml


Associate Organization and Project in Quarterdeck

Scope of changes
Adds an endpoint for Tenant to associate an organization and a project in Quarterdeck so that Quarterdeck can securely issue APIKeys for a project, verifying that the project belongs to the Organization in the claims of the requester.
Fixes SC-13077
Type of change

[x] new feature
[ ] bug fix
[ ] documentation
[ ] testing
[ ] technical debt
[ ] other (describe)

Acceptance criteria
Is there anything Tenant needs other than what's here?
Are these utilities usable for Tenant and does it close the security hole?
Author checklist

[ ] I have manually tested the change and/or added automation in the form of unit tests or integration tests
[ ]  I have updated the dependencies list
[ ]  I have recompiled and included new protocol buffers to reflect changes I made
[ ]  I have added new test fixtures as needed to support added tests
[ ]  Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
[ ]  I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

[ ] Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

@pdeziel created SC-13122 to follow on from this story for tenant integration.


Suggestion: SRI-hashes for content integrity APIs like download_file

Consider the following parameter to the download_file call:
ctx.actions.download_file(sha1 = "deadbeef")

The sha1 attribute has been superseded by attributes like sha256, but remains for backwards compatibility. In the future, there could be other hashes like blake3. But this is awkward because every single rule that wants to mention a content hash has to have every possible hash option exposed in its interface, which is a lot of plumbing for nothing.
Many tools suffer from this problem; for instance Nix had a similar design for a long time. However, recently, Subresource Integrity ("SRI") in browsers, and now more recently Nix, instead use a "self describing" hash scheme that attaches the name of the hash algorithm directly to a base64-encoded copy of the hash. So, the above example would look more like this, in a hand-wavy way:
ctx.actions.download_file(hash = "sha1-" + base64enc([0xde,0xad,0xbe,0xef]))

That is, every function that checks content integrity simply takes a generic hash parameter, and the name is instead embedded into the literal directly, followed by the bytes of the hash as a base64-encoded string. This means that supporting new hash algorithms is centralized completely inside the implementation of download_file and does not need to be reflected inside Starlark at all. The algorithm which consists of "split on - and decode base64 into bytes" is simple enough to not meaningfully increase the chance of errors in the implementation.
I suggest that this is implemented for all buck2-core functions that (currently) take sha1 or sha256 parameters. I'd like this to be used in my own Prelude, for instance.
Note that this only needs to be implemented in the core buck2 executable in a few key spots; all existing APIs that are exposed from buck2-prelude can be ported to use this core API without breaking any client code (assuming a base64 encoding builtin.)

This API means you can't provide both a sha1 and a blake3 hash, which can be useful to allow the download file to hit the right fast path regardless of whether your Buck2 is working with sha1 or blake3.
Is there anything stopping you from writing a wrapper that does this transformation in the Starlark layer?
How come the move to base64 rather than hex? Generally hashes are always written in hex from what I've seen.

Hrm, that's an interesting sounding feature, but I'm not sure I understand it. Is the idea you just provide both hashes and try to race both of them against each other to get the first winner, once the file is downloaded? I would assume that with CPU/thread parallelization, BLAKE3 would just be the best choice in ~all cases where the files aren't extremely, ridiculously tiny, right? Like would SHA1 ever beat BLAKE3 on any non-tiny input? Even then SHA1 might still lose.
But even then, you could of course just have multiple hashes for that as a list, right? e.g. hashes = [ "blake3-...", "sha1-..." ] is the interface? Do these existing functions take a blake3 parameter, already? If they don't, this seems like a perfect example of the "add a new parameter to 20 separate things for a new hash function" thing I mentioned.
Also, from a forwards/backwards compatibility standpoint, I think the usage of the SRI version is actually better for users? Consider these two API calls, compared:
ctx.actions.download_file(sha1 = "...", blake4 = "...")
# versus
ctx.actions.download_file(hashes = [ "sha1-...", "blake4-..." ])

Let's say there's a version of buck2 that adds support for a hypothetical blake4. The first example will not work unless your version of buck2 supports the blake4 parameter to download_file, it will immediately error during analysis. While in the second example, the implementation of download_file itself can decide which hash to use, based on what it supports, making it more forwards and backwards compatible during a migration for your users. Don't support Blake4? Use SHA1. Once all your users are migrated, you can delete (or leave) the old hash.

Is there anything stopping you from writing a wrapper that does this transformation in the Starlark layer?

No, I don't think there's anything preventing it (well, except base64 functions in Starlark, I think?), but it would just be nice because other people have to write rules too, so they'll get exposed to stuff like download_file anyway that use the existing API, no matter if I have wrappers or not.

How come the move to base64 rather than hex? Generally hashes are always written in hex from what I've seen.

Size optimization, I guess? The W3C spec doesn't actually justify the base64 decision, but that's my best guess — a 50% increase in information-per character; base64's 6-bits versus hexadecimal's 4-bits.

Just a nit I realized now and should have said earlier: if we did do this, we'd probably want to add a buck2 download command that could download some file from a given URL and then give you the SRI hashes for it, e.g.
$ buck2 download --hashes=sha1,blake3 https://githubusercontent.com/...
Downloading $URL...

Blake3 SRI hash: blake3-...
SHA-1 SRI hash: sha1-...

This is because if a user wants to add a hash for a file, typical tools like sha1sum or blake3sum won't work without extra piping shennanigans, or running an action and having it fail, and copying the good hash out of the error message.

I think we have a feature where if the RE system is set to SHA1, we can check if the download is already in the RE server, and skip the download. That only works if you have the RE system being the same hash.
I like following standards. I don't love that basically everyone generates hex values easily, and then these are base64. It means that it is probably worse for many users in a practical sense.

I'd be interested in what people at Meta do in this example I'm about to give, but in practice my workflow looks like this, basically 100% of the time:

I write an instance of a rule like http_download
I give a parameter sha256 = ""
I run buck2 build
It fails loudly, and copy the expected hash of the file from the error message
Run buck2 build, now it works

This is identical to what I do when using/writing Nix code. In other words, the format of the hash doesn't matter in practice, actually; I simply use the hash the tool returns to me, "Trust-on-first-use" style. It is pretty much never more efficient for me to manually download + run a separate hashing tool. So, if it was base62, base64, base38, it would all be the same at the end of the day. (I have another bug to file about the error messages too, but that's for another time.)

We have plenty of things that automatically generate hashes, e.g. the Reindeer tool for Rust dependencies. It's those which would be inconvenienced by base64 (although it's not the end of the world, they could be adapted). I'll ask around internally - SRI does seem like a reasonable direction to go though.

Ah, yeah, I forgot about Reindeer and other tools. FWIW, Nix still allows the old-style hashes it used, along with SRI hashes, and doesn't throw warnings or anything like that because — yeah, in practice you're basically chained to backwards compatibility here forever, and it's not the end of the world to support both APIs. So a third option is just "live with it forever" I guess, which works for us.

I think SRI is pretty annoying, entirely because the special characters in base64 making it hard to double-click select them, which is about the only thing you ever have to do with a hash. The spec does seem to allow for extensions though. So better than nothing.
My more important comment is this:
I am testing a little Buck version of Aspect's rules_js, and buckifying anything with NPM is horrifically slow because of having to query NPM's API for the shasum (i.e. SHA-1), as the sha512-... SRI hashes stored in all Node lockfile formats can't be used. In comparison to the 30 to 120 second install times for the kibana benchmark on https://blog.aspect.build/rulesjs-npm-benchmarks, I'm already up to 15 minutes and it's only queried 15% the 4400 hashes. These are cached with an sqlite database, of course. But still. 100 minutes projected! And I will probably exhaust the rate limiter at some point, or maybe the serial nature of the python script here is going to save me from that.
So whatever format you want to encode them in, I think Buck needs to support more hash algorithms.

Couple of notes about using SRI, regardless:

Bazel's http_file rule calls the attribute integrity = "sha512-...", which matches e.g. HTML <script src="..." integrity="..."> tags.
The spec for SRI says you MAY use other algorithms: https://www.w3.org/TR/SRI/#cryptographic-hash-functions
It also encodes multiple hash alternatives as just a string with multiple whitespace separated SRI hashes: https://www.w3.org/TR/SRI/#agility -> integrity="sha256-... sha512-...".
The spec for Content-Security-Policy's SRI hashes, on the other hand, hardcodes sha256/sha384/sha512. But this isn't CSP.
Blake3 has been proposed for CSP https://github.com/w3c/webappsec-subresource-integrity/issues/104 but the standard probably won't evolve until browsers move on it and choose a prefix themselves.


develop story to match Amelia's work in https://cdaote.slack.com/archives/C04B67G0AHM/p1703107969648439?thread_ts=1703105978.854049&cid=C04B67G0AHM

Overcome by events.


[SC] Enable MultiSig Scripts through the AllowedScriptTypesRule.

The implementation of AllowedScriptTypesRule is complete, but we need to test for MultiSig addresses, and ensure that it is flexible enough to be used for the sidechains implementation.

Get some empirical idea about how much time will be consumed, what we need the block time to be, and thus where to go next

Basically there is a Multisig Standard Template, I believe this should be enough to support for federation Multisig (up to 15 signers)

@dangershony Note my comments previously on #2356 as we currently use P2SH for the federation cross chain transfers. My understanding of the PoA feature is that it is transfer-agnostic and leaves the transfers up to other code (in this case the federation gateway feature).


new(blog): Falco 0.32.2 release post

What type of PR is this?
/kind content
Any specific area of the project related to this PR?
/area blog
What this PR does / why we need it:
Add a blog entry to announce the new Falco 0.32.2 release.
Which issue(s) this PR fixes:
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Andreagit97
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval by writing /assign @leogr in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: bfe59dd3adb5fb2f2122e1dc0c6c87088fc3c893


Feature/system property configuration

Modified StreamFlow model objects to accept property overrides in the form of Java system properties.  Each property is no backed by an overridable system property value such as "-Dserver.port=9090"

Feature has been tested heavily in development environments


Add require-types-at-top rule to ESLint/Flow config

https://github.com/gajus/eslint-plugin-flowtype/commit/74bcb8c13c601c2cbc30cfd91b0e374ac32cd146

This issue was moved to vital-software/eslint-config#2


Smarter windows intstall script

See comment thread here. https://github.com/ARMmbed/yotta/pull/132#issuecomment-88221954

Todo:

silent install of dependencies
check for existence of dependencies before downloading
...?

@sg- @autopulated  we should probably schedule this for review soon for the public beta?

PRs welcome :)
My view on this is that the current instructions are sufficient, even though there could be fewer steps. I think that clearly explaining to people what the dependencies are and where they are installed is something that most people appreciate even if they have to manually perform a number of steps.
So yea: easier is always good, but what we have is OK.

https://github.com/ARMmbed/yotta_windows_installer Thank you @BlackstoneEngineering This is a great 0.01 :)

Correction: heres an update https://github.com/ARMmbed/yotta_windows_installer/releases/tag/v0.1.0

resolved by #431 :tada: :balloon:


Animation: Added Whoosh-In animation effect

Summary
This PR adds the Whoosh In animation effect to our animation library.
Relevant Technical Choices
I decided to re-create the whoosh-in effect by combining 3 of our existing animation parts: move, fade, and zoom.  It might have been cleaner to simply create a separate set of keyframes, but I think it was fun to compose the effect and it's a good proof-of-concept when we might want to do composition in the future that can't so easily be created with one set of keyframes.
User-facing changes
None.
Testing Instructions
1.) Go to our Storybook: "Animations -> Effects -> Whoosh-In"
2.) Flipped between both pages and notice that the whoosh looks good in both 🎉
Fixes #3426
Screenshots

This is definitely whooshing! Love that these are getting established in storybook first.
The end placement of the red square is different for custom vs amp though (i only mention it because in your example they are in the same spot) - I tested in chrome.

As long as the custom one places things where it should, I'm good with it :D


Feature request: LlaVa and advanced RAG integration

Hey. I love the project. However one thing that is missing here, as well as in pretty much all other open RAG projects are advanced features which would lift RAG to a new level:

LLaVA
Many documents contain a mixture of content types, including text, tables, and images. Current level of RAG often fails with tables, diagramms and especially images. Therefore, missing out on a lot of valueable information in PDFs and Powerpoint slides.
LLaVA is the open source attempt to offer something like GPT-4V(ision).
Project page, Langchain RAG implementation cookbook

Advanced RAG enhancements:

Self Querying Retrieval
Parent Document Retriever
Hybird Search
Contextual Compressors & Filters
HyDE
...
Sam Witteveen has great ressources about each of those.

Already present:

HYDE: Can activate on CLI or UI.
Self Querying Retrieval: Already present with SEARCH agent, but as with all langchain agent stuff it's fragile even after many of my own improvements, esp. for open source.

Planned:

LLaVa: https://github.com/h2oai/h2ogpt/issues/774
Hybrid:  Requires multiple retrievers setup differently than h2ogpt is currently

Not planned:

Parent Document Retriever: Not particularly useful as chunking-expansion strategy, not main issue in RAG
Contextual Compressors & Filters: Not particularly useful as filtering strategy, not main issue in RAG

I watch most of his videos, and some really good ideas or demonstrations, but some of those approaches are not helping with the main problems in RAG that memGPT etc. solve

Thank you


Add fallback mechanism for EPS

Description
In case the startup check for the EPS fails, the EPS functions should do nothing and just return default values (probably zeros).

Blocked by #202 and #293


[CERT-TEST-FAILURE]-TC-WASHERCTRL-3.3 - Test failed

Feature Area
Area:Dishwashers
Test Case
TC-WASHERCTRL-3.3
Reproduction steps
All-clusters-app has to be enabled with below mentioned commands :

[ ] number-of-rinses

Bug prevalence
Everytime
GitHub hash of the SDK that was being used
d55f68526864b2986404d1da9c2ccd8b64735b6e - master
Platform
raspi
Anything else?
No response

These attributes are enabled by default in commit 6ddb4c1f5c
The problem should not exist now.

closing per @Rajashreekalmane's comments


Prompt Tokens for Image Chat

What is the issue?

Image Chat returns 1 for prompt tokens
OS
No response
GPU
No response
CPU
No response
Ollama version
No response

Is this same issue?
https://github.com/ollama/ollama/issues/3671
Someone created a PR on fix Llama.cpp, but llama.cpp folks abandoned the vision language models (hopefully temporarily?).

Closing for #3671


RHBRMS-2565: No data object has been opened message shown after opening data object

Hello @mcimbora would you mind review this PR.
The Domian editor needs basically to be ApplicationScoped
Thanks!

Hi @wmedvede I'm ok with the change.

Hello  @manstis  would you mind merge this PR?
It's complementary to the already merged into master
https://github.com/droolsjbpm/kie-wb-common/pull/450

Jenkins please retest this.

Jenkins retest this.


Patch 9

This Pull Request resolves Issue #4
Description:
In this Pull Request we have done the following additions/edits for the code:
Note: Delete all the text including this!

Make sure you replace #<IssueNumber> with the particular Issue that you are referencing with!
Make sure you describe the Issue properly and ask as many people as possible to review your Pull Request so that it can be merged as soon as possible!

done

@anumehaagrawal please review!

Are there any updates or should we close the PR?

PR closed due to inactivity


Support for FM_TL_OP1_CONTROL

As per warning issues from dmf2mlm:
WARNING: FM_TL_OP1_CONTROL effect conversion isn't implemented and will be ignored

Support for FM TL control has been added.


Packaging request: sway-borders

Project description
Fork of sway with some extra features, mainly related to borders.
Metadata

homepage URL:
source URL: https://github.com/fluix-dev/sway-borders
license: mit
platforms: linux

I don't think that this is good to package, as there hasn't been a stable release of this in nearly 2 years, and as the maintainer said here,

However, I just haven't been too happy with this fork. It... works (and I use it daily of course), but there's still some bugs and my intention is to redo most of the work in a way that also allows new features.
Therefore, I think it's better to wait this one out.

Closing since this appears to be a duplicate of:

#134334

Happy to reopen if there's a distinction I'm missing.


change type from Pubkey to String for QuoteConfig dexes & excludeDexes

The QuoteConfig struct used to get swap quote supports optional parameters like dexes & excludeDexes has type of Vec<Pubkey>, where the API supports names of dexes which is Vec<String>
References:

https://station.jup.ag/api-v6/get-quote
https://quote-api.jup.ag/v6/program-id-to-label

Examples:
Successful Quotes:
curl -L 'https://quote-api.jup.ag/v6/quote?inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=So11111111111111111111111111111111111111112&amount=1000000000&dexes=Orca%20V2' \
-H 'Accept: application/json'

curl -L 'https://quote-api.jup.ag/v6/quote?inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=So11111111111111111111111111111111111111112&amount=1000000000&excludeDexes=Orca%20V2' \
-H 'Accept: application/json'

Failed quotes with program id
curl -L 'https://quote-api.jup.ag/v6/quote?inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=So11111111111111111111111111111111111111112&amount=1000000000&excludeDexes=CTMAxxk34HjKWxQ3QLZK1HpaLXmBveao3ESePXbiyfzh' \
-H 'Accept: application/json'

@mvines please check the above!

Thanks for the PR! I took a look and wrote a different PR that I think might solve the issue that you're running into in more typesafe way: https://github.com/mvines/rust-jup-ag/pull/17
Please let me know what you think

@mvines Also the QuoteConfig fields of dexes and excludeDexes should be String, because the api is not accepting program ids of dexes.  I see. Thank you, will merge this PR and then adapt #17 to match as we need both fixes. Thanks!

v0.8.0 has now been published with this fix


Better dev experience

Things such as a proper readme, seeds, etc.

There is a readme, there are seeds. What more could you want?


Readme update

Added a link to the branch with classical Intel(R) DAAL.

@napetrov added the link to the other branch as well


[BUG] It is difficult to know what item I'm selecting on the "Action Menu"

Has this bug been raised before?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Description
When I open the "Action Menu" (I'm referring to the menu that you open with "/")  it would be nice to know what you are about to select.
Steps to Reproduce
For example:

I want to create a "Heading 3"
Press "/" to get the "Action Menu"
Press the arrow down but I'm not able to see what element I'm about to select.

Environment

Windows 11:
Browser: Chrome

Screenshots
Here if I press "enter" I will create a "Heading 3" but it is really hard to know.

Do you want to work on this issue?
No
If "yes" to above, please explain how you would technically implement this
No response

Hi @Lfrancos, thanks for reporting.
But the selected element is colored in background color (this is shown even in your screenshot)

Hi @Darginec05, happy to help with things that I see.
Are you saying that you are able to differentiate that I'm about to select Heading 3 instead of Heading 2 in that screen shot??

Hi @Darginec05 I'm looking at this from another screen and now I'm seeing it. It must be a problem with the other screen that I was using! sorry for the confusion. Thank you.

No problem 😊
Thanks


The model gpt-4-0314 does not exist

I'm getting this error and it seems I'm not alone.

The model gpt-4-0314 does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.

Do you have access to gpt-4-0613 and gpt-4, just not gpt-4-0314? You can check by first running:
export OPENAI_API_KEY='yourkey'
and then the following python:
import os
import openai

openai.api_key=os.getenv("OPENAI_API_KEY")
available_models = [x["id"] for x in openai.Model.list()["data"]]
print(sorted(available_models))

If you don't have any gpt-4 access, then it should be coming soon:

If you are just missing gpt-4-0314 then, then hopefully OpenAI will see my tweet and we can figure out why some people don't have access to that model...

No, I do not. Fwiw, it looks like the https://platform.openai.com/account/rate-limits page is also filtered to what's available on one's account. The end of July is so far away! 😏
ada
ada-code-search-code
ada-code-search-text
ada-search-document
ada-search-query
ada-similarity
babbage
babbage-code-search-code
babbage-code-search-text
babbage-search-document
babbage-search-query
babbage-similarity
code-davinci-edit-001
code-search-ada-code-001
code-search-ada-text-001
code-search-babbage-code-001
code-search-babbage-text-001
curie
curie-instruct-beta
curie-search-document
curie-search-query
curie-similarity
davinci
davinci-instruct-beta
davinci-search-document
davinci-search-query
davinci-similarity
gpt-3.5-turbo
gpt-3.5-turbo-0301
gpt-3.5-turbo-0613
gpt-3.5-turbo-16k
gpt-3.5-turbo-16k-0613
text-ada-001
text-babbage-001
text-curie-001
text-davinci-001
text-davinci-002
text-davinci-003
text-davinci-edit-001
text-embedding-ada-002
text-search-ada-doc-001
text-search-ada-query-001
text-search-babbage-doc-001
text-search-babbage-query-001
text-search-curie-doc-001
text-search-curie-query-001
text-search-davinci-doc-001
text-search-davinci-query-001
text-similarity-ada-001
text-similarity-babbage-001
text-similarity-curie-001
text-similarity-davinci-001
whisper-1

--- models-from-api     2023-07-26 17:59:21
+++ models-from-ui      2023-07-26 17:58:57
@@ -1,3 +1,4 @@
+DALL·E
 ada
 ada-code-search-code
 ada-code-search-text
@@ -38,6 +39,8 @@
 text-davinci-003
 text-davinci-edit-001
 text-embedding-ada-002
+text-moderation-latest
+text-moderation-stable
 text-search-ada-doc-001
 text-search-ada-query-001
 text-search-babbage-doc-001

Hopefully OpenAI grants access to everyone soon!
For now I've made it check at startup for access and tell the user: https://github.com/biobootloader/mentat/blob/2851d699cb14dea54ef97ef7dcef2ee47d8a32ad/mentat/llm_api.py#L80


DOC: Fix Issue #5396

The original issue was noted to be wrong 5 years ago. The correct formula was mentioned in the issue comments. I suggest fixing it to save someone like me from wasting five minutes wondering what's wrong in the future.

Reference issue
Closes https://github.com/scipy/scipy/issues/5396.
What does this implement/fix?

Additional information

Thanks @DrPiranoid, sorry for the wait. Merged.

Sorry for the post-review comment, but I think this makes the documentation less useful. The original docstring indicated that the (i, j) distance is in the (i, j) entry of the output array, which is returned in a condensed form. That is true.
If the reader is interested in what this condensed for is, the Notes a few lines down already help on this:
Notes
-----
See ``squareform`` for information on how to calculate the index of
this entry or to convert the condensed distance matrix to a
redundant square matrix.

I think including a complicated closed-form expression describing what "condensed" means obscures what this function actually does, which is to populate the (i, j) entry in a particular representation of a matrix.

The original docstring indicated that the (i, j) distance is in the (i, j) entry of the output array,

I would say that's already covered by the term "distance matrix", and the use of ij instead of i,j was confusing to some of the issue commenters.
How about if this part of the docstring was trimmed to just

Returns an array representing a condensed distance matrix.

Then expand the notes section to give a better description that doesn't just point to squareform


Enable tag_from_config plugin

This can be merged, but a new release would require a release of atomic-reactor containing the following changes: https://github.com/projectatomic/atomic-reactor/pull/515

LGTM

I think atomic-reactor won't fail when build json contains unknown plugin ... let me check.

Ok, it's not the case, whole build fails when unknown plugin is encountered.
I'd wait for a-r release and then merge it. Or we can enable the plugin conditionally based on osbs.conf. Ideas?

I think it's safe to merge, it's just the release that must be synchronized properly.

Agreed, its safe to merge (just to be sure we can make an interim release of atomic-reactor)

Alright, merged.


use as a plugin but compile only the icons that are used

actually i use the package as a plugin in NuxtJs like the doc says but this compiles all the icons even those that i'm not using
import Vue from 'vue';
import VueTablerIcons from 'vue-tabler-icons';

Vue.use(VueTablerIcons);

i know that the other aproach is import the icon that im going to use like this
<script>
    // MyComponent.vue
    import { BoldIcon } from 'vue-tabler-icons';

    export default {
        components: { BoldIcon },
    };
</script>

<template>
    <bold-icon />
</template>

but I would like to import only the icons I need into a single file and then that file add it to the vue instance, like fontAwesome does ... is that possible?

Yes, you can. For example, in your index.js where you do initialize the Vue application just import needed icons and register them globally.
import {BoldIcon, DashboardIcon} from 'vue-tabler-icons';

const app = new Vue();
app.component('BoldIcon', BoldIcon);
app.component('DashboardIcon', DashboardIcon);
// ...

well, register a plugin in Nuxt and it worked, thank you very much for responding quickly.
tabler-icons.js
import {
  TagIcon,
  BuildingIcon,
  PlantIcon
} from 'vue-tabler-icons'

import Vue from 'vue'
Vue.component('TagIcon', TagIcon)
Vue.component('BuildingIcon', BuildingIcon)
Vue.component('PlantIcon', PlantIcon)

nuxt.config.js
...
  plugins: [
    { src: '~/plugins/tabler-icons', mode: 'client' },
  ],


fix: block sync on mocha on main

Closes https://github.com/celestiaorg/celestia-app/issues/3840
Forward port of https://github.com/celestiaorg/celestia-app/pull/3843
Testing
I can state sync and block sync on Arabica and Mocha
./scripts/arabica.sh
./scripts/arabica-block-sync.sh
./scripts/mocha.sh
./scripts/mocha-block-sync.sh

Moving to draft. Discussion w/ @cmwaters :

Delete the Mocha genesis file from this PR
Add a unit test with a genesis file that is broken in the same way as the Mocha genesis file
Create an issue to track adding a end to end test that starts a testapp with the Mocha genesis file and verifies that the app can get to block 1.


[Export, 3.x] Instead of removing unsupported options, hide it.

Version of #57072 for 3.x

Thanks!


.timestamp are unsupported [Beta]

Line 115 Row+Parseing.swift
case .timestamp: throw MySQLError(.unsupported, source: .capture())

Fixed in #131


[RTC-456] Add peerless room purge

Acknowledging the stipulations set forth:

[x] I hereby confirm that a Pull Request involving updates to the Software Development Kit (SDK) has been smoothly merged, currently awaits processing, or is otherwise deemed unnecessary in this context.
[x] I also affirm that another Pull Request, specifically addressing updates to the documentation body (commonly referred to as 'docs'), has either been successfully incorporated, is in the process of review, or is considered superfluous under the prevailing circumstances.

Bumped Elixir to 1.15 because we use Map.intersect which was added in that version


Explore using RAG in ChatCraft

As we start to consider adding the ability to attach files to a chat (see #325), we're going to run into cases where the context window of the chat is not enough to fit everything we have.  Consider a PDF of a paper, or a zip file with a bunch of files and code that you want to ask questions about.
RAG (Retrieval Augmentation Generation) is a way to use a large piece of context (e.g., a big document, a database, etc.) to "retrieve" relevant chunks of context, then include those along with your prompt.  For example, if I had a zip file of a source code project, I might only need to include 5 or 6 chunks of code with my question vs. the whole thing.  RAG techniques allow you to find chunks of text that are similar to what you are talking about within a larger document/database.
I was reminded of this reading Twitter today:

It's possible to generate embeddings in a browser (free), or have OpenAI ($$$) do it for you:

https://js.langchain.com/docs/integrations/text_embedding/tensorflow
https://developers.google.com/mediapipe/solutions/text/text_embedder/web_js
https://hub.superlinked.com/vector-embeddings-in-the-browser
https://platform.openai.com/docs/guides/embeddings

RAG probably isn't the main way we'd use ChatCraft; but given that we have a database of all chats, and the ability to include files, we should probably explore whether we can leverage this for our use cases.

I would actually start with RAG for code. Eg teach chatcraft to use code indexers ala https://tabby.tabbyml.com/docs/configuration/
The search/embedding makes more sense to me as an external web service for chatcraft to invoke.

Looking at the tabby code, it seems like they run a server on port 8080, and they have an agent JS lib at https://github.com/TabbyML/tabby/tree/main/clients/tabby-agent.  Maybe we could use that?
We'd have to include a way to point ChatCraft at a server running somewhere (local docker container, remote...) via settings or something.
Someone should investigate if this is doable and worth doing.

I'd be willing to work on parts of this

I would like to try contributing to this

try to use built in openAI


Building on Arch Linux: fatal error: SDL.h: No such file or directory

This is what I am getting when trying to build on Arch Linux:
$ make
[  1%] Automatic MOC and UIC for target STATIC
[  1%] Built target STATIC_autogen
Consolidate compiler generated dependencies of target STATIC
[  2%] Built target STATIC
[  3%] Automatic MOC and UIC for target FaceCam
[  3%] Built target FaceCam_autogen
[  3%] Building CXX object CMakeFiles/FaceCam.dir/FaceCam_autogen/mocs_compilation.cpp.o
In file included from /home/jose/tmp/facecam/build/FaceCam_autogen/MXUWEOXILK/moc_mainwindow.cpp:10,
                 from /home/jose/tmp/facecam/build/FaceCam_autogen/mocs_compilation.cpp:5:
/home/jose/tmp/facecam/build/FaceCam_autogen/MXUWEOXILK/../../../src/gui/mainwindow.h:14:10: fatal error: SDL.h: No such file or directory
   14 | #include <SDL.h>
      |          ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/FaceCam.dir/build.make:127: CMakeFiles/FaceCam.dir/FaceCam_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:131: CMakeFiles/FaceCam.dir/all] Error 2

You should install sdl2 first. libsdl2-dev

Sorry, should've mentioned that in the original post. SDL2 (and all other dependencies) is already installed.
$ pacman -Q sdl2
sdl2 2.0.14-1

Arch Linux does not separate package to binary and includes.
$ pacman -Ql sdl2 | grep SDL.h
sdl2 /usr/include/SDL2/SDL.h
sdl2 /usr/include/SDL2/SDL_haptic.h
sdl2 /usr/include/SDL2/SDL_hints.h

And SDL.h truly exists on the system:
/usr/include/SDL2/SDL.h

You can try to add include folder by adding this to CMakeLists.txt:
include_directories(/usr/include)

Hope that can help others.


link the sepal documentation with this

this is the current documentation https://docs.sepal.io/en/latest/cookbook/area_estimation.html#calculating-above-ground-biomass-and-change

fixed with f4dd43db3187ba88f79ddd9f4e0812ef1921c3d5


Add ability to customise the docs link

Can currently set the link for filing a support issue.
Need to add ability to configure link for documentation.
This will need a new backend setting.

This is covered in https://github.com/rancher/dashboard/issues/6493

I have verified that in the UI for v2.7.0-rc8, the Docs link on the Home page will navigate the user to the v2.6 Rancher Docs Home Page correctly. Therefore I am closing this ticket as Done.

Reopening for additional validations

I have verified that in the UI for v2.7.0-rc8, when adding a new Custom Link on the Global Settings > Home Links page, the  the link text appears correctly on the Home page , and the URL link will navigate the user to the correct URL. Therefore I am closing this ticket as Done.


BikeWatch: Violation Detection & Penalty Estimation

Description
BikeWatch is a web application that analyzes images from cloud storage to identify the number of riders and check for helmet usage. If violations are detected, it captures the number plate, retrieves user details, calculates the penalty, and sends an email notification to the users.
Motivation
Ensuring the continuous accuracy and reliability of our models is crucial for maintaining the quality of our service. By monitoring performance metrics and alerting administrators of significant changes, we can promptly address issues and maintain model integrity.
Key Metrics to Monitor
Accuracy
Precision
Recall
F1-score
AUC-ROC
RMSE
MAE
Expected Outcome
A robust system to track and visualize model performance.
Immediate alerts to administrators when performance degrades beyond acceptable thresholds.
Historical performance data for analysis and improvement.
@sanjay-kv I would love to work on this issue can you please assign this to me under GSSOC'24 label and make it level 3

I see you duplicated the file in ML capsule as well. only contribute same issue in one repo.

I will remove from there
Can you remove that duplicate label


Is Monit vulnerable to MITM?

Using SMTP server, either over SSL/TLS on port 465, or STARTTLS on port 587, messages go through even though there is no trusted CA for the mail server certificate.
This seems to indicate that the certificate/peer is not being validated.  Making it vulnerable to MITM.  Is this the case?  Or am I missing something?
Monit Secure Connection is enabled.  Packet capture bares this out.

Yes, the SSL certificate verification is disabled by default. See Monit SSL Options.
I'll add these options to the General Settings.
@fichtner should we enable the verification by default?

My philosophy would be for default secure so that it is required to make a conscious choice to be less secure.
Maybe a verify peer checkbox along side the secure connection enable checkbox.
Thanks
P.S.  Will Monit be using OpenSSL/LibreSSL or Certify?  Think OpenSSL/LibreSSL is more flexible for self signed certs frequently used with private mail servers.

Agree with default to on as it's easily turned off after update if required. We'll add this to the release notes. Monit follows ports crypto so that's OpenSSL or LibreSSL indeed.

thanks guys!


Creating Audio Sprites

Hello,
I would like support for audio sprites. Basically loading one long file that contains many sound effects that I can label and set the start and end values of.
This can be defined during the constructor as follows:
sprite: {
'labelName': [0, 500]
}
where the first number represents the offset  and the second number represents the end value.
This is good for loading large amounts of sound effects for games, hacking soundfonts, making lists of sound effects, loading speech clips, and doing anything where there will be a lot of repetitive playing of many sound effects.
howlerJS has an implantation of this for reference.
Thanks,

Here is a link describing the pros and cons of audio sprites and an implementation:
https://www.createjs.com/docs/soundjs/classes/AudioSprite.html

Audio sprites should now work in 4.1.1. Thanks for the suggestion.


Column Width Not Uniform

Tried using the CellTemplate in the DataGrid.  Some rows of data resulted in a width longer than others.  Unfortunately the header nor the other rows adjusted their widths in the same column to be the same.  Is there a way to set this up so the data in the same column has the same width for every row?  If not, it wou

Did you use 'auto' as column width? That's not possible in this implementation. You should use '', '2', '3*' etc for relative columnwidths or '100', '200', etc for absolute column widths (in pixels).

I did use Auto - ok excellent, I'll try that out and respond with my findings - thank you!

Ok cool - I tried it and it works as designed.  Unfortunately I've really been looking for the "Auto" implementation somewhere combined with a custom CellTemplate, and just haven't been able to find it yet.  Any plans on supporting Auto in the future, or know of an implementation out there?  I don't really even care if it is a DataGrid or not - I just need the ability to list out items where all the columns share a max width value in UWP apps.

Yeah, I was looking for an auto-width solution as well, but I couldn't find it. I don't know why it's implemented like this. They could have used a multi-row gridview, but I'm just a newby and not one of the developers of MyToolkit, so I am sure that Rico and his fellow programmers had a good reason to implement it as it is :)
However, if you don't need a dynamic number of rows you could just use a normal GridView.

Yeah, I need a dynamic number of rows.  Right now I'm implementing a Grid, and within the grid, each column has a list view with listviewitems having a constant height.  it isn't perfect, but it gets the job done.

Hi everyone.
I think the main problem with Auto is that the width cannot be calculated without rendering all rows, and this would be a performance killer. This is why only star and fixed with is supported. The DataGrid is very old (originally implemented for Windows 8 Preview) and was designed just for read-only access.
To support more scenarios (edit, auto-column, dynamic columns, brushes, etc.) more work is needed. However I have many open-source projects and currently MyToolkit is not on top of my prio list because most requests are feature requests and not bugs...
If someone has the time to improve the DataGrid control, please submit PRs and I'll merge them if they do not break existing code. If I have the time, I will gladly look into improving the DataGrid as it is an important missing piece in UWP apps...


Samples are Well Out of Date

The samples are so far out of date, as to be of no value. The date of the article is old as well.

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

ID: 08b04e33-be5f-f9de-e034-a83d2e9a5e18
Version Independent ID: 71611fc5-c00d-380c-fa2a-e0ec98c47bba
Content: Azure Active Directory Code Samples | Microsoft Docs
Content Source: articles/active-directory/develop/active-directory-code-samples.md
Service: active-directory
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@laultman Thanks for reporting! I have assigned the issue to the content author to investigate and update as appropriate.

@amanarneja assign this issue to me @mtillman.

@laultman Thanks for your feedback. We're working on updating this page with revised and reworked samples. We have this work on our back log. Look for an update coming in mid to late April.

#please-close


A panic on Quickstart

Hello! I just started following "Quickstart" on the developer website
https://docs.lightspark.com/lightspark-sdk/quickstart?language=go#initializing-the-client-library
In this step
client.LoadNodeSigningKey(nodeId, *services.NewSigningKeyLoaderFromNodeIdAndPassword(nodeId, nodePassword))

I get
panic: interface conversion: interface {} is nil, not map[string]interface {}

This panic happened here
https://github.com/lightsparkdev/go-sdk/blob/main/services/signing_key_loader.go#L106
If this step is successful, I think I can get "With these steps completed, you're now set up to start using Lightspark Connect in your application." but it seems not the case yet. Did I do it incorrectly? Or could there be a nicer error messages than just "panic." Thank you

Hey @kangkyu can you share the rest of your snippet?  Can you also double check that you're using the right node id and api credentials?
As a more complete example, you could take a look at the sample code in https://github.com/lightsparkdev/go-sdk/blob/main/examples/example.go and verify that you aren't missing anything.

I see, seems it doesn't happen in the correct setup. I thought I followed the Quickstart directions as it says. Let me carefully try again. Thank you!

I'll take a look at the quickstart and verify that we're not missing anything


[native_assets_builder] Lock the build directory

Partially addresses:

https://github.com/dart-lang/native/issues/1319

Progress:

[ ] multiple invocations in the same Dart process   -> not entirely sure how to achieve this.
[x] multiple invocations in different Dart processes -> covered by tests
[x] it should keep working if any of these processes is abruptly terminated -> covered by tests

I'd also like to use the implementation of Directory.exclusive inside build hooks to address

https://github.com/dart-lang/native/issues/1379

So we need to find a place to let that function live. package:native_assets_cli doesn't seem the right place. Maybe a new package in dart-lang/tools?

@lrhn Could you please review Directory.exclusive. Does the implementation make sense? (I probably broke some variants? What about zones?)

@mkustermann @lrhn Any suggestions on how to address exclusivity within the Dart process? Within an isolate we can achieve this with a global variable. But within an isolate group we'd need dart:concurrent most likely. And in between isolate groups in the same Dart VM, I have no idea. Any suggestions? 🙂

coverage: 90.671%. remained the same
when pulling df9303d99508a20f7cba727465833d717c25af0e on concurrency
into c29934818741ff99a5d8b67637b3144bfa7eb0ec on main.

The zones are fine. Everything happens in the same zone where exclusive is called.

Greatly appreciated @mkustermann !


Hessian-vector product fails with pure_callback

Description
I have to calculate the hessian-vector product of a forward pass that calls an external solver.
I was looking into pure_callback() to handle this. From my understanding, pure_callback + custom_jvp should allow this behavior. In order to test this, I have made the following code:
import numpy as np
import jax.numpy as jnp
from jax import grad

def f_external(x):
    # The function deliberately uses numpy functions
    # to simulate an external function outside JAX
    y = -(x + np.sin(x)) * np.exp(-x**2.0)
    return np.array(y).reshape(x.shape).astype(x.dtype)

@jax.custom_jvp
def forward_with_callback(x):
    # As per docs
    result_shape = jax.ShapeDtypeStruct(x.shape, x.dtype)
    value = jax.pure_callback(f_external, result_shape, x)
    return value

@forward_with_callback.defjvp
def forward_with_callback_jvp(primals, tangents):
    x, = primals
    x_dot, = tangents
    primal_out = f_external(x)
    tangent_out = np.exp(-x**2) * (2 * x**2 + 2 * x * np.sin(x) - np.cos(x) - 1)
    return primal_out, tangent_out*x_dot
##################### Time to test this ######################

x = jnp.array([1.0])
# forward_with_callback(x) ------------------------ works well

def wrapper(x):
    # To return a scalar value for grad
    return forward_with_callback(x)[0]

# grad(wrapper)(x) -------------------------------- works well as well

v = jnp.array([1.5])

# THIS FAILS
grad(lambda x: jnp.vdot(grad(wrapper)(x), v))(x)

The error shown is as follows:
TracerArrayConversionError: The numpy.ndarray conversion method __array__() was called on the JAX Tracer object Tracedwith with
  primal = Array([1.], dtype=float64)
  tangent = Tracedwith with
    pval = (ShapedArray(float64[1]), None)
    recipe = LambdaBinding()
See https://jax.readthedocs.io/en/latest/errors.html#jax.errors.TracerArrayConversionError

What jax/jaxlib version are you using?
0.4.12
Which accelerator(s) are you using?
CPU
Additional system info
Python version: 3.11, Ubuntu 22.04 LTS
NVIDIA GPU info
No response

The problem is this line:
primal_out = f_external(x)

Your custom JVP is calling f_external, which is not a valid JAX function. You should call forward_with_callback there instead.

Thanks a lot!. @jakevdp
This clears it up. So in summary, the jvp (and vjp) rules should be written in JAX or should use callback functions which themselves have custom_jvps (or vjps)


corrupt timezone file for Hawaii, HST.

If you create a user and then select for Timezone [UTC-10:00] Hawaii, then the Forum web pages will be blank.  This is still not fixed.  I think this is a corrupt timezone file for Hawaii, HST.

Yes, I have been locked out of my account as I selected the Hawaii time zone by accident! I get PHP errors. Please fix!

I verified this no longer occurs.


fix(NODE-6469): pool is cleared before connection checkin on error

Description
What is changing?
Incorporate test changes from https://github.com/mongodb/specifications/pull/1690.
Additionally, we now always clear the pool after failing to establish a connection before any other error handling logic.
Is there new documentation needed for these changes?
What is the motivation for this change?

Release Highlight

ConnectionClosedEvents always follow PoolClearedEvents
When Connection Monitoring and Pooling events are listened for, ConnectionClosedEvents are now always emitted after PoolClearEvents.

Double check the following

[ ] Ran npm run check:lint script
[ ] Self-review completed using the steps outlined here
[ ] PR title follows the correct format: type(NODE-xxxx)[!]: description

Example: feat(NODE-1234)!: rewriting everything in coffeescript

[ ] Changes are covered by tests
[ ] New TODOs have a related JIRA ticket

NODE-5230 was resolved in this PR


 Expose isFirst and isLast variables?

Description
The new exposed API for autoplay is incomplete. For cases in which there are more items than pages, we need to check if the scroll reached the end. My solution is to expose isFirst and isLast. In the example below there are 6 items and 5 pages.

Not sure to understand, you already have the currentPage and the pages which makes it easy to determine if it's the end. Also, the prev and next methods change the page, it has nothing to do with items.


Quickstart of React example failed in start script

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Fastify version
3.29.0
Plugin version
No response
Node.js version
16.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.6.2
Description
I tried to use the QuickStart example with React, I've followed the steps as per the docs:

create a folder
install all dependencies
create a app.mjs file according with the snippet
create a index.jsx file in views folder

When I run the command "node app.mjs" I have the following response:
❯ node app.mjs
file:///Users/lucasbittencurt/www/ssr-vite/app.mjs:9
await app.vite.commands()
               ^

TypeError: app.vite.commands is not a function
    at file:///Users/lucasbittencurt/www/ssr-vite/app.mjs:9:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)```

### Steps to Reproduce

Follow the quickstart for React with node version 16.x

### Expected Behavior

Expected to run a Fastify server correctly.

Seeing the same issue here!

Guys, new release will be out with updated docs and examples this weekend!

Will keep this thread open until the announcement :)

Closing this as the React examples in v3 release are all working now!


DBMain and various other refactors

Overview of changes:

DBMain now has some nested classes defining "layers" within the system for sub-components that need to be brought up together. This should make dependencies more explicit.
Debug loggers are now instantiated in the outermost scope of all executables since they need to be brought up before any parts of the system, and down after any parts of the system. That means it can't be DBMain's job. This could be DBMain's job if you have a dummy handle object to the loggers, but then you need special case logic to avoid redundant calls depending on if you're in a Google Benchmark, Google Test, or Terrier itself.
LargeDataTableBenchmarkObject takes the MetricsManager instead of MetricsThread to simplify the dependency. Also removed some random PR population code that just slows it down. We don't do correctness testing in the benchmarks so true randomness isn't needed.
DBMain now has a Builder that should yell at you if you request an invalid configuration. It also has a set of reasonable (for tests) defaults. Some scenarios will need to override these, while the real system uses the SettingsManager.
Fix #604. The test logger is gone. The global one is now common_logger. I wanted to get rid of it entirely, but there are some debug logging statements from stuff in the common folder and wasn't sure what to do with that.
Refactored a lot of tests and some benchmarks to use the new DBMain builder. Benchmarks could still be refactored further, but because the life cycle of the BlockStore is now tied to a DBMain instance rather than the life of the benchmark, I noticed a benchmark regression because the BlockStore was no longer "warmed up" after the first iteration. I reverted most of the benchmarks for that reason. Someone can tackle reasoning about that in a later PR.
Refactored a lot of components of the system to take ManagedPointer or std::unique_ptr for their dependencies to make ownership (or lack of) explicit.
Remove some hardcoded settings from settings.h.
Added methods to start and stop GC for GarbageCollectorThread since some tests expect this behavior. This class will likely go away in the future with #593 anyway.
Moved the parameter map ownership to the SettingsManager rather than leaving it in DBMain. Previously there was a dependency back to DBMain from the SettingsManager which created circular dependencies if you wanted DBMain to own the SettingsManager.
Removed dependency between SettingsManager and Optimizer.

For the review I'm mostly interested in feedback on the DBMain class itself: is it documented enough, is it usable, etc. The rest of the massive diff is mostly related to refactoring tests for ManagedPointer or the new DBMain class. Functionally all the tests are identical, and since they pass CI (actually more reliably now that the races on shutting down sub-components should be resolved) I'm not that concerned about going over the tests too closely.

Will merge in the AM.


Flaky test case: TransactionDataManagerTest

java.lang.AssertionError
at org.apache.rocketmq.proxy.service.transaction.TransactionDataManagerTest.testWaitTransactionDataClear(TransactionDataManagerTest.java:114)
TransactionDataManagerTest.testWaitTransactionDataClear:114
https://github.com/apache/rocketmq/actions/runs/3382741348/jobs/5617967358

In fact, I also have questions, some cases local install successful, but running github ci will report errors.


[Tabs] Transition between tab content

Animate change tab content

Sorry for the late reply, to give an update on this: since the migration to radix-vue (that more easily integrates transitions) in #1289 I will experiment with this once v3 gets released

Very nice looking forward to this change 😄


Compatibility with python notebook

When I use Chatgpt, got the code, click copy, it cause the python notebook to duplicate the cell instead of copying or pasting the code generated with chatgpt. ctrl+c no longer work after that, as each time i presses those buttons, it clone the cells instead. i've since disable the extension.

The ctrl+c event handler is on the vs-code side, not on the extension side. There are known issues with copying text from the sidebar using context menu or ctrl+c.
I just tested on a jupyter notebook, Copy code works fine and copies the correct lines. There is an open issue on the VS-Code side, hopefully it will get resolved soon: https://github.com/microsoft/vscode/issues/141080
This is how I copied the code and it worked pasting inside a notebook:

Thanks. I'll close this.


Add Locust support for authentication

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [X] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Please modify locustfile.py to handle a web app where authentication is required (i.e. AZURE_USE_AUTHENTICATION=true and AZURE_ENABLE_UNAUTHENTICATED_ACCESS=false).
I attempted to use GitHub Copilot to add this feature but it doesn't work and I'm a bit over my head.

I haven't got this working yet, but this is what I've attempted so far - sharing in case it helps. The token fetching isn't working for me yet unfortunately.
import json
import logging
import os
import random
import subprocess
import time

from azure.identity import AzureDeveloperCliCredential
from dotenv import load_dotenv
from locust import HttpUser, between, task

def load_azd_env():
    """Get path to current azd env file and load file using python-dotenv"""
    result = subprocess.run("azd env list -o json", shell=True, capture_output=True, text=True)
    if result.returncode != 0:
        raise Exception("Error loading azd env")
    env_json = json.loads(result.stdout)
    env_file_path = None
    for entry in env_json:
        if entry["IsDefault"]:
            env_file_path = entry["DotEnvPath"]
    if not env_file_path:
        raise Exception("No default azd env file found")
    logging.info(f"Loading azd env from {env_file_path}")
    load_dotenv(env_file_path, override=True)

class ChatUser(HttpUser):
    wait_time = between(5, 20)

    @task
    def ask_question(self):
        load_azd_env()
        token = AzureDeveloperCliCredential().get_token(f"api://{os.environ['AZURE_SERVER_APP_ID']}/access_as_user", tenant_id=os.getenv('AZURE_AUTH_TENANT_ID', os.getenv('AZURE_TENANT_ID')))

        self.client.get("/",
                        headers={"Authorization": f"Bearer {token.token}"})


Could you please provide the model pretrained on  Howto100M dataset?

Hello, thanks for sharing your work. It's very inspiring. I don't have enough GPUs to pre-train the model on Howto100M. Could you please provide it？That will help me a lot to study your work.

Hi @sqiangcao99,
Thank you for your interest.  As our paper discussed, the pretrain is time-consuming. Our current pretrained weight has no significant advantage after finetuning (see Table 7 in the paper). So we have no plan to release the pretrained weight recently. Thanks.
Duplicate of #5


Merge to live!

Adding missing workbook events and anchors
Missed links

Docs Build status updates of commit 4de4441:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-events.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Remove Gemnasium badge

Summary
Gemnasium has been closed.

Gemnasium has been acquired by GitLab in January 2018. Since May 15, 2018, the services provided by Gemnasium are no longer available.

The Gemnasium badge displayed on the Readme shows:

Let's remove it.
Details

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] I've added tests for my code
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Hi @orien,
Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾
In return for this generous offer we hope you will:

✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
ℹ Don't feel obliged to help, just do what you can if you have the time and the energy.
🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber


ERROR compiling rviz_ogre_vendor: Could NOT find Patch (missing: Patch_EXECUTABLE)

compile ROS2 galactic in windows 10
however I got the following error for rviz_ogre_vendor
content in stdout_stderr.log is given as follows,
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.29.30139.0
-- The CXX compiler identification is MSVC 19.29.30139.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ament_cmake: 1.1.5 (C:/dev/ros2_galactic/install/share/ament_cmake/cmake)
-- Found PythonInterp: C:/Python38/python.exe (found suitable version "3.8.3", minimum required is "3")
-- Using PYTHON_EXECUTABLE: C:/Python38/python.exe
CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Patch (missing: Patch_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPatch.cmake:70 (find_package_handle_standard_args)
CMakeLists.txt:157 (find_package)
CMakeLists.txt:214 (build_ogre)
-- Configuring incomplete, errors occurred!
See also "C:/dev/ros2_galactic/build/rviz_ogre_vendor/CMakeFiles/CMakeOutput.log".

Is Git installed on your system? CMake is not able to find the patch executable, so it could also be that it is installed in an unexpected location.
I would suggest asking this kind of question on ROS answers, but I found the someone running into the same problem without an answer: https://answers.ros.org/question/383548/could-not-find-patch-missing-patch_executable-rviz_ogre_vendor/

No response in over two weeks, so I'm going to close this out.  If you are still running into problems, please feel free to supply the requested information and reopen.


feat: Added Android download link to footer on desktop

https://artsyproduct.atlassian.net/browse/GRO-340
Before

After

Didn't notice CI failure and merged PR, that's my bad. I needed to merge this PR to update tests here https://github.com/artsy/force/pull/7671
This is the reason of failure

I've fixed it in https://github.com/artsy/force/pull/7671 so once it's merged everything should be fine.

@anastasiapyzhik - after a git push, will want to wait ~30 seconds to see all of our CI jobs running, and github will block one from merging if there's an error. However, if you git push and then the button us green for a sec. We'll want to avoid that and make sure that all checks look like this:

@damassi sorry for that. I'll be more attentive from now on

OMG I totally made this mistake yesterday on a Gravity PR! 😂

I've done it a lot... Thinking like "wow, someone really fixed our CI time!" Only to then realized that it was only warming up


Make the wildcard functionality consistent inside the operator application

As a user of the operator app, I want to have consistent wildcard functionality in order to get the expected results for a filter
Acceptance criteria

“*”, for 0 or more characters and “?” for exactly one character are the only wildcard characters in the Operator app (so “%” and “_” are no longer interpreted as wildcard characters).

An “*” is not automatically appended to the filter criteria.

Wildcards are not allowed when using a comma-separated list or multiple lines for the “Device IDs” field.

This applies to the following pages in the Operator app:

Device search

SonarQube analysis reported 2 issues

 2 minor

Watch the comments in this conversation to review them.
1 extra issue
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 DeviceManagementService.java#: Replace all tab characters in this file by sequences of white-spaces.

SonarQube analysis reported 1 issue

 1 minor

Watch the comments in this conversation to review them.

SonarQube analysis reported 1 issue

 1 major

Watch the comments in this conversation to review them.


Possibility to Set App Password

Is your feature request related to a problem? Please describe.
It isn't possible to create an App Password for end user. Currently it's possible to retrieve and remove app password only (cmdlets: Get-GSUserASP & Remove-GSUserASP).
Describe the solution you'd like
The possibility to set an APP Password for end user. To be honest, I don't know if Google expose an API call.
Thank you,
Luca

Hey Luca - Google does not expose a Create method for ASP's unfortunately. The only available methods are Delete, Get and List: https://developers.google.com/admin-sdk/directory/v1/reference/asps


Added for in map loop

Added to TestForLoop
Added to TestInterrupts

Also would be great to be able to do syntax like a = {"b": 1}; for key, value in a { //do something }, just need help with the syntax part.

Thanks. Could you please add simple test into anko/t/06-for.ank?

Welcome.
I was thinking that maybe we could remove the anko/t testing scripts in the future if we could add all the needed tests into the Go tests?

Oh yes, would like to move the testing and the examples into Go test examples, so they show up in the docs.
Like:
https://godoc.org/github.com/mattn/anko/vm#ex-package--VmComparisonOperators

Cool. filed new issue. https://github.com/mattn/anko/issues/117

In the mean time, could this PR be merged?

Thank you


fast_add_function removed in PHP 8.3, use add_function

Quote from UPGRADING.INTERNALS of PHP 8.3:

The fast_add_function() has been removed, use add_function() that will
call the static inline add_function_fast() instead.

To be on the safe side the patch only replaces fast_add_function() by add_function() in PHP 8.3+
Tested while building PHP 8.3.0 Alpha 1 on Windows.

Top. Thanks


bug fix for Polyline.xy_crossings()

Codecov Report
Base: 78.85% // Head: 78.84% // Decreases project coverage by -0.01% :warning:

Coverage data is based on head (2b99efa) compared to base (f751c2c).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #579      +/-   ##
==========================================
- Coverage   78.85%   78.84%   -0.02%
==========================================
  Files         178      178
  Lines       29815    29819       +4
==========================================
  Hits        23511    23511
- Misses       6304     6308       +4

Impacted Files
Coverage Δ

resqpy/lines/_polyline.py
84.77% <0.00%> (-0.78%)
:arrow_down:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Store gene, interval and sub_lmp string in an object

I'm planning to use a struct data structure to hold this PanNodePtr, Interval and string. Any alternative suggestions?

Is this "replacing" what is currently the elements that make up the read overlap coordinates vector?

No - this is additional. So we would have the ReadCoordinate and the GeneIntervalInfo, and could store a pair of them corresponding to each read which overlaps a given gene interval. A vector (or something else) of these pairs would be retained in memory until we have processed all genes. Then we can run the "save_read_strings_to_denovo_assemble" (or rename to something better) on the whole collection (pangraph) rather than on a per gene basis

Added in commit 1489e62dbb73f464f5164ff896de9f12016b5ce6


Check for res.headersSent

@lukeed

Again, what's the purpose for this?

You don't have to ping me, haha. It's my repo so I get the notifications already 😀

Apologies for the ping 😄
It's in the response.headersSent spec so I figured it should be included.

Haha no worries, just trying to save you some typing~
I gave this a couple of different spins to test it out. While it mostly had no effect, it does actually prevent this scenario:
polka()
  .use((req, res, next) => {
    // write the head first
    res.writeHead(201, { 'x-hello': 'world' });
  })
  .get('/', (req, res) => {
    res.end('done'); // never reaches
  });

While this is generally pretty weird, I have seen this setup in the past. And, more seriously, a response still requires to be finished somewhere along the pipeline.
Also, if we add a next() call beneath the writeHead in this PR (as we should), we'll throw an Error immediately because we're effectively iterating the middleware loop by two counts. Writing this in the current master behaves as expected.
I'll do some more reading in the morning, but I'm 99% sure we need to continue tracking by the res.finished value only, simply because the Server itself is also waiting on that in order for a response stream to be closed & considered successful.

You my friend are very good! I was unaware you could even call end after writeHead . Thanks for the review! =]

Hahaha why thank you~! For a long time I thought it was the only way to write headers & a status code 😆