How can I prepare the inputfile ?

Now,I have some sequence that annotated by rasttk,I want to use this software to cluster my phages ,but I don't know how to prepare the inputfile,my dir is like this :
$ll ./testinputdit
P1.fasta  P2.fasta
$less P1.fasta

P1
ATCTCCTAAACAGCACGTTTTGTTAATGACAGGCGTAATTTTAGCATTGTGCAACGCATAAAAAAAGGCCCGATACTAAAAAACCGTACCGAGCCAAAACCAATGGAGATAAT
$phamcluster -g testinputdir ./testoutdir
=======================
0: runtime parameters
=======================
infile:     testinput
outdir:     testoutdir/phamclust_21_Nov_2023
debug:      False
subcluster: True
remove tmp: False
sub dist:   0.4
sub link:   single
clu dist:   0.75
clu link:   average
nr dist:    0.25
nr link:    complete
metric:     peq
cpus:       40
====================
1: parsing genomes
====================
Traceback (most recent call last):
File "~bin/phamclust", line 8, in
sys.exit(main())
File "~/site-packages/phamclust/main.py", line 211, in main
genomes = load_genomes_from_fasta_dir(infile)
File "~/site-packages/phamclust/main.py", line 80, in load_genomes_from_fasta_dir
genomes[name].load(f)
File "~/site-packages/phamclust/genome.py", line 74, in load
key, value = field.split("=")
ValueError: not enough values to unpack (expected 2, got 1)
I always get this error,please help me .
Thank you very much!

Hello and thank you for your interest in using PhamClust!
I see two issues with your input files - the first is that your FASTA files appear to contain nucleotide sequences, whereas PhamClust requires that FASTA inputs be protein sequences (i.e., the genes encoded by your genomes). The second issue is that your FASTA headers are not structured in a way that PhamClust will be able to utilize, as the gene orthology information is not present. See the README.md for this repository for how the FASTA headers should be structured.
I'm assuming that RASTtk provides either a FASTA amino acid or GenBank flat file output for the annotations. If this is the case, I'll recommend you use PhaMMseqs to define gene phamilies. You should invoke PhaMMseqs like this:
phammseqs /path/to/genome/annotation/fasta/or/gbk/files -o /path/to/outdir -p

Including the -p is important because it will create a file called strain_genes.tsv which PhamClust uses as its preferred input format.
I'm happy to provide further assistance as needed; please let me know how this goes!

It worked well,Mr.Gauthier!
I fellow your step to generate the strain_genes.tsv and I ran through the process very smoothly, thank you again for your prompt response and good luck with your research!
here is part of my result :
$ls phamcluster/phamclust_22_Nov_2023/
40c31f606878e4f11f2ff0e12dfeaba5.tmp  cluster_1  cluster_2  peq_heatmap.html  phamclust.log  singletons

It worked well,Mr.Gauthier!
I fellow your step to generate the strain_genes.tsv and I ran through the process very smoothly, thank you again for your prompt response and good luck with your research!
here is part of my result :
$ls phamcluster/phamclust_22_Nov_2023/
40c31f606878e4f11f2ff0e12dfeaba5.tmp cluster_1 cluster_2 peq_heatmap.html phamclust.log singletons
| |
cppyqz
|
|
@.***
|
---- Replied Message ----
| From | Christian @.> |
| Date | 11/21/2023 20:25 |
| To | @.> |
| Cc | @.> ,
@.> |
| Subject | Re: [chg60/phamclust] How can I prepare the inputfile ? (Issue #2) |
Hello and thank you for your interest in using PhamClust!
I see two issues with your input files - the first is that your FASTA files appear to contain nucleotide sequences, whereas PhamClust requires that FASTA inputs be protein sequences (i.e., the genes encoded by your genomes). The second issue is that your FASTA headers are not structured in a way that PhamClust will be able to utilize, as the gene orthology information is not present. See the README.md for this repository for how the FASTA headers should be structured.
I'm assuming that RASTtk provides either a FASTA amino acid or GenBank flat file output for the annotations. If this is the case, I'll recommend you use PhaMMseqs to define gene phamilies. You should invoke PhaMMseqs like this:
phammseqs /path/to/genome/annotation/fasta/or/gbk/files -o /path/to/outdir -p
Including the -p is important because it will create a file called strain_genes.tsv which PhamClust uses as its preferred input format.
I'm happy to provide further assistance as needed; please let me know how this goes!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

I'm delighted to hear that you were able to get it working successfully, and I hope you find the output from PhamClust useful to your research!


Almost no LaTeX keywords are being highlighted

I just found this theme, it's amazing, a lot better than your competitors Gruvbox Theme (he misses like most of the UI themeing) however I noticed yours doesn't really highlight LaTeX, see screenshot below of a dummy file.

In any case awesome work!
PS: Is it possible to get the colortest script used in the screenshots? Looks neat

Thanks @nicentra.

PS: Is it possible to get the colortest script used in the screenshots? Looks neat

I can't remember which script I used for the screenshot, but there're similar ones out there, for instance: https://github.com/pablopunk/colortest
Back on the theme.
Would you be able to contribute to this theme for LaTeX? I'm not using it so not sure if I know what to customise.
I you want to contribute, you can make the theme work to your liking for starter.
There's a few options for contributing:

Do what you do currently with the setting for tokenColoCustomizations, then post them here and I can put them into the theme
Pull the repo locally and edit the json files in themes folder. Customizations here would need to be defined for all 6 variants

In both options, you can use the following the shape for the rule:
{
  "name": "<description of what the rule is for, eg. LaTeX string>",
  "scope": [
    "source.latex <selector, eg. string.double>",
    "source.latex <another selector>"
  ],
  "settings": {
    "foreground": "#<color code>"
  }
},

you can get a selector by running a vscode command (Ctrl + Shift + P) > Developer: Inspect TM Scopes and click on the code that you want to highlight.
you can get the color code in colors.txt in root folder of this repo

Please let me know if you're keen and need any support.

Hey @jdinhify I can certainly try, though admittedly I don't have a lot of time rn since I actually found this loophole because I am currently writting my bachelor thesis. However with the Developer Inspect it should go a lot faster. Do you have any color guide? e.g. Functions = this color, variables = this color, keywords = that, parameters = this?

I don't really have a color guide, just do what you see fit your taste I think. I think generally there are some common things like green for string, yellow for function, red for keywords, blue for parameters, but they're probably not the same for every language atm.
What I usually do is to pull the repo into ~/.vscode/extensions folder, that way it'll automatically appear in your extension list. Now that you'll actually have 2 gruvbox themes in your list, you can solve the confusion by either:

remove the gruvbox extension before pulling the repo
or change the extension name in package.json to have a different name, such as adding the suffix  - dev to the theme
After that, you can change the corresponding json of the variant and reload the window to see the effect

Also, if you decide to do that, please create a file in the code-examples folder for LaTeX language for easier preview.
Thanks @nicentra , let me know if you have any issue


JAVA-18116 Review log statements for projects - Week 7 - 2023

Hi @anastasiosioannidis ,
I have update the PR with all changes that i found necessary. Please  have a look and let me know i f everything is OK.
Thanks
Joseph


Optimize Python solutions for B and C

Optimized by factors 3 and 10 respectively (on my benchmark case, but it can vary of course).
Explanation:

the function voyelle re-creates a list every time it's called whereas we could just create it once. Additionally, sets are a better structure to test whether an element belongs to a collection. In that case it's a constant operation anyway, but for an arbitrary size, the linear cost of going through a list would make a huge change compared to the constant cost of searching in a hash set
pop at arbitrary positions of an array in Python is very inefficient because it requires shifting the whole array. Simply using a counter instead of popping is much faster. The other changes in this one are just refactoring to avoid a few useless checks

Interestingly, I tried changing palindrome to check only the first half vs second half (the current version being redundant) but it wasn't faster.

Much better this way, thanks !


Remove the init time cleanup of namespace files

Removing this as this may cause problems when
multiple instances are  running.
Signed-off-by: Jana Radhakrishnan<EMAIL_ADDRESS>

LGTM


Variable byte integer deserializing incorrect

The algorithm used for deserializing a variable byte integer is not correct and can result in improper calculations for variable byte integers above 128.

Fixed in https://github.com/quartiq/minimq/pull/22


Geolocation instead of area/city

An area can easily be mistaken for a nearby area by human mistake or ambiguity for the administrator or developer installing this system at a location. If the location of the vaccination site was specified as geolocation it would solve several issues: The encoding of city names, the ambiguity for the implementer, and it would result in less data to be encoded.
There are reverse geolocation lookups that turn a given geolocation into an area.

The location in the coupon is not a reference to where the issuer is. But what is the scope of the coupon itself. In the demo, the coupon is for Boston residents, for instance.
We don't store the location of the service (it's just not relevant to the vaccination journey).

Locations like "Springfield" or "Athens" - In my area "Sumiyoshi" are more than ambiguous that may be understood by some people differently. If it is just a index in a local lookup (that does not need to be globally known: Why not replace it with a simple small-int? What can providers gain as value from the area?


Missing dependency on Java 6 runtime.

When starting PHPStorm for the first time after installation, it requests that the legacy Java 6 runtime be installed. Could this be added as a dependency, please?
Thanks,
Ross

:+1:

Deprecated in favour of brewcask and Boxen's in built support for
homebrew/brewcask.


Changing MQTT_CLIENT_ID may overwrite SSID

modules/config.c lacks any length checks. As sysCfg.device_id is copied after sysCfg.ssid, device_id may actually overwrite ssid.
I accidentally changed MQTT_CLIENT_ID to to be exactly 16 characters after expanding the format string, thus the terminating \0 became the first character of the ssid.

I was remove config module in develop branch, and will merge into the master soon.


Update Kubernetes to 1.27

What this PR does / why we need it?:

Does this PR introduce a user-facing change?

[ ] User guide
[ ] CHANGELOG.md

Which issue(s) this PR fixes:

Fixes #

https://book.kubebuilder.io/migration/manually_migration_guide_gov3_to_gov4


[BUG]Using chatbot.py to deploy robin-7b-v2-delta，occured NotImplementedError: Cannot copy out of meta tensor; no data!

Describe the bug
Using chatbot.py to deploy robin-7b-v2-delta，occured NotImplementedError: Cannot copy out of meta tensor; no data!
To Reproduce
Steps to reproduce the behavior:
./scripts/run_chatbot.sh output_models/robin-7b-v2-delta/
Error Msg
(lmflow) root@cuda:/opt/LMFlow# ./scripts/run_chatbot.sh output_models/robin-7b-v2-delta/
[2023-06-02 04:55:12,018] [WARNING] [runner.py:186:fetch_hostfile] Unable to find hostfile, will proceed with training with local resources only.
Detected CUDA_VISIBLE_DEVICES=0: setting --include=localhost:0
[2023-06-02 04:55:12,060] [INFO] [runner.py:550:main] cmd = /root/miniconda3/envs/lmflow/bin/python -u -m deepspeed.launcher.launch --world_info=eyJsb2NhbGhvc3QiOiBbMF19 --master_addr=<IP_ADDRESS> --master_port=29500 --enable_each_rank_log=None examples/chatbot.py --deepspeed configs/ds_config_chatbot.json --model_name_or_path output_models/robin-7b-v2-delta/
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.9.6-1+cuda11.3
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NV_LIBNCCL_DEV_PACKAGE_VERSION=2.9.6-1
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NCCL_VERSION=2.9.6-1
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NV_LIBNCCL_PACKAGE=libnccl2=2.9.6-1+cuda11.3
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NV_LIBNCCL_PACKAGE_NAME=libnccl2
[2023-06-02 04:55:14,724] [INFO] [launch.py:135:main] 0 NV_LIBNCCL_PACKAGE_VERSION=2.9.6-1
[2023-06-02 04:55:14,724] [INFO] [launch.py:142:main] WORLD INFO DICT: {'localhost': [0]}
[2023-06-02 04:55:14,724] [INFO] [launch.py:148:main] nnodes=1, num_local_procs=1, node_rank=0
[2023-06-02 04:55:14,724] [INFO] [launch.py:161:main] global_rank_mapping=defaultdict(<class 'list'>, {'localhost': [0]})
[2023-06-02 04:55:14,724] [INFO] [launch.py:162:main] dist_world_size=1
[2023-06-02 04:55:14,724] [INFO] [launch.py:164:main] Setting CUDA_VISIBLE_DEVICES=0
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
bin /root/miniconda3/envs/lmflow/lib/python3.9/site-packages/bitsandbytes/libbitsandbytes_cuda113.so
/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/bitsandbytes/cuda_setup/main.py:145: UserWarning: /root/miniconda3/envs/lmflow did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths...
warn(msg)
CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so
CUDA SETUP: Highest compute capability among GPUs detected: 8.6
CUDA SETUP: Detected CUDA version 113
CUDA SETUP: Loading binary /root/miniconda3/envs/lmflow/lib/python3.9/site-packages/bitsandbytes/libbitsandbytes_cuda113.so...
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████| 2/2 [00:41<00:00, 20.51s/it]
Traceback (most recent call last):
File "/opt/LMFlow/examples/chatbot.py", line 161, in
main()
File "/opt/LMFlow/examples/chatbot.py", line 71, in main
model = AutoModel.get_model(
File "/opt/LMFlow/src/lmflow/models/auto_model.py", line 16, in get_model
return HFDecoderModel(model_args, *args, **kwargs)
File "/opt/LMFlow/src/lmflow/models/hf_decoder_model.py", line 306, in init
self.ds_engine = deepspeed.initialize(model=self.backend_model, config_params=ds_config)[0]
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/deepspeed/init.py", line 125, in initialize
engine = DeepSpeedEngine(args=args,
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/deepspeed/runtime/engine.py", line 297, in init
self._configure_distributed_model(model)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/deepspeed/runtime/engine.py", line 1146, in _configure_distributed_model
self.module.to(self.device)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/transformers/modeling_utils.py", line 1861, in to
return super().to(*args, **kwargs)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1145, in to
return self._apply(convert)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
[Previous line repeated 2 more times]
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/torch/nn/modules/module.py", line 820, in _apply
param_applied = fn(param)
File "/root/miniconda3/envs/lmflow/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1143, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
NotImplementedError: Cannot copy out of meta tensor; no data!
[2023-06-02 04:56:19,840] [INFO] [launch.py:318:sigkill_handler] Killing subprocess 2694
[2023-06-02 04:56:19,841] [ERROR] [launch.py:324:sigkill_handler] ['/root/miniconda3/envs/lmflow/bin/python', '-u', 'examples/chatbot.py', '--local_rank=0', '--deepspeed', 'configs/ds_config_chatbot.json', '--model_name_or_path', 'output_models/robin-7b-v2-delta/'] exits with return code = 1

Thanks for your interest in LMFlow! It is highly probably that the problem was caused by RAM optimize offloading. You may refer to the solution of this issue.
Also, robin-7b-v2-delta is a model diff instead of model itself. To obtain the full model, you may use the merge script provided in this section. Hope that can solve your problem. Thanks 😄

This method has been really helpful. Thanks!


Strict mode

Hi guys, we're using imagesloaded adding these lines of code at the beginning:
(function($) {
'use strict';
CODE
}(jQuery))
But when we use them (to work in strict mode) we obtain many undefined errors.
How can we fix it?
Thanks
br0k3n

Hi there, can you provide what kind of errors you are seeing?

Sure, here's the first:
Uncaught TypeError: undefined is not a function       imagesloaded.pkgd.min.js?ver=4.1:684
and at this line there is:
ImagesLoaded.prototype = new EventEmitter();
Thanks so much

Can you provide a live URL? If you are using imagesloaded.pkgd.min.js then EventEmitter should be available.

Sure:
http://goo.gl/UpCOQx
Thanks :)

Thanks. Looks like your version of imagesloaded.pkgd.min.js has adding the (function($){...})(jQuery), which is setting this to be jQuery. This is causing the error. I recommend using the original version of imagesloaded.pkgd.js rather than this modification.


[Extensions] Fix timeout error when adding a document to an index with extension running

Signed-off-by: Ryan Bogan<EMAIL_ADDRESS>Description
Fixes a timeout exception that would occur when attempting to add a document to an index while an extension is running.
Issues Resolved
https://github.com/opensearch-project/OpenSearch/issues/5999
Check List

[X] New functionality includes testing.

[X] All tests pass

[X] New functionality has been documented.

[X] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff
[X] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #6275 (b2a0d44) into main (dfe5d2b) will increase coverage by 0.28%.
The diff coverage is 0.00%.

:exclamation: Current head b2a0d44 differs from pull request most recent head 0baf855. Consider uploading reports for the commit 0baf855 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##               main    #6275      +/-   ##
============================================
+ Coverage     70.62%   70.90%   +0.28%
- Complexity    58786    58917     +131
============================================
  Files          4789     4780       -9
  Lines        281788   281381     -407
  Branches      40669    40636      -33
============================================
+ Hits         199007   199510     +503
+ Misses        66412    65473     -939
- Partials      16369    16398      +29

Impacted Files
Coverage Δ

...a/org/opensearch/extensions/ExtensionsManager.java
47.08% <0.00%> (-3.47%)
:arrow_down:

...rch/test/junit/listeners/ReproduceInfoPrinter.java
9.52% <0.00%> (-68.26%)
:arrow_down:

...r/src/main/java/org/opensearch/http/HttpUtils.java
16.66% <0.00%> (-50.00%)
:arrow_down:

.../org/opensearch/client/indices/AnalyzeRequest.java
31.00% <0.00%> (-45.00%)
:arrow_down:

...opensearch/persistent/PersistentTasksExecutor.java
22.22% <0.00%> (-44.45%)
:arrow_down:

...ensearch/discovery/InitializeExtensionRequest.java
0.00% <0.00%> (-40.00%)
:arrow_down:

.../admin/cluster/reroute/ClusterRerouteResponse.java
60.00% <0.00%> (-40.00%)
:arrow_down:

...luster/routing/allocation/RoutingExplanations.java
62.06% <0.00%> (-37.94%)
:arrow_down:

...cluster/coordination/PublishClusterStateStats.java
33.33% <0.00%> (-37.51%)
:arrow_down:

.../opensearch/client/indices/CloseIndexResponse.java
56.25% <0.00%> (-35.00%)
:arrow_down:

... and 518 more

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


Land Ownership

Here is the first draft of the land ownership data, with some of my comments added in. Let me know what you think!

Are you intending to have parcels to the landownership branch?

Are you intending to have parcels to the landownership branch?

It was intentional, yes, but that was before I realized one cannot make pull requests off individual files, it seems to need to be for the whole branch (if I'm not mistaken--Git is still somewhat new to me). I've since created a new branch for Parcels and opened a pull request for it. @steveoh

Git is still somewhat new to me

Check out jakes ugic presentation!


BUG: OAuth2 Authorization Code Flow fails for intermediate redirects with an auth code

I have checked the following:

[X] I use the newest version of bruno.
[X] I've searched existing issues and found nothing related to my issue.

Describe the bug
On similar lines as #1778, the authorization flow fails when there is a multi-step authorization, and one of the redirect URLs also contains code as a query parameter.
My example scenario where this happened:
Auth server: Keycloak using OIDC, backed by Google accounts as an ID provider
On successful auth, Keycloak sends an intermediate redirect to the following URL (Note the code= at the end):
https://<keycloak URL>/realms/<realm>/broker/google/endpoint?state=<state>&code=<code>&...

Since this URL has code as a query param but the URL is not the expected callback URL, Bruno throws the following error:
Error occurred in handler for 'send-collection-oauth2-request': Error: Invalid Callback Url: {url}
    at onWindowRedirect (/Users/dakshin/projects/personal/bruno/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js:37:18)
    at EventEmitter.willRedirectListener (/Users/dakshin/projects/personal/bruno/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js:78:7)
    at EventEmitter.emit (node:events:527:28)

.bru file to reproduce the bug
No response
Screenshots/Live demo link

This has been released in v1.19.0


fix: type hint for get_component_by_purl is incorrect

Signed-off-by: gruebel<EMAIL_ADDRESS>
adjusted the type hint for get_component_by_purl and added a test for it 🙂
changed the list/filter expression to use a list comprehension, which is almost 2x faster in this case 🚀

@madpah we need to triage this one.
was the typing and the method description wrong, or did we forget the string cast?
DO we have downsteam users we can ask how they use this functionality right now?
How do you want  to have this method implmented in the upcoming #262 ?

yeap, we are using it in checkov
https://github.com/bridgecrewio/checkov/blob/2fce14ee65f4e6143c2a510e3219b9957ee5a50f/checkov/common/output/cyclonedx.py#L106-L110
and actually your suggested change would break our implementation. So, I think I did the correct thing by adjusting the type hint instead of changing the code to be aligned with the current type hint.

yeap, we are using it in checkov https://github.com/bridgecrewio/checkov/blob/2fce14ee65f4e6143c2a510e3219b9957ee5a50f/checkov/common/output/cyclonedx.py#L106-L110 and actually your suggested change would break our implementation. So, I think I did the correct thing by adjusting the type hint instead of changing the code to be aligned with the current type hint.

In python the typing is optional and has no meaning for the runtime.
Fixing the typing and docs, while leaving the implementation untouched - this should be the least code-breaking change (downstream).
Even though I would argue that it is a breaking change from architectural/design perspective.
But in the end the usage counts for python.

In python the typing is optional and has no meaning for the runtime. Fixing the typing and docs, while leaving the implementation untouched - this should be the least code-breaking change (downstream).
Even though I would argue that it is a breaking change from architectural/design perspective. But in the end the usage counts for python.

that's correct. if it was differently intended, then you should probably put it into v4 release branch 🙂

hey @jkowalleck any plan on merging my change 🙂

re: https://github.com/CycloneDX/cyclonedx-python-lib/pull/310#issuecomment-1327225765
@madpah asked for a dev-stop until #262 was done. it seams like this takes longer than expected.
we will see how to get this very PR integrated.

I'm happy to merge this - from my checks, get_component_by_purl doesn't appear to be used internally by this library, or the cyclonedx-python app - and this is clearly a typing error.

Thanks @gruebel and @jkowalleck !


Couldn't find the option for exporting HTML

I have purchased the Mediainfo from AppStore, I couldn't find the option for exporting file information to html table. What should I do?

We didn't expect that the HTML output would be useful to export, but this is something we can easily add.

If possible, please add csv and sheet options too. its there in Windows but not in Mac OS.


Custom view event

Is it possible to set custom view on MSEventCell?
I would like to add background image, buttons and multiple labels on MSEventCell.

Yes, absolutely,
you just need to inhert MSEventCell and then inhert weekViewas well,
in your custom weekView just add the following
-(void)setupSupplementaryViewClasses{
    [super setupSupplementaryViewClasses];
    self.eventCellClass                 = YourNewCellClass.class;
}

Just forgot to say, that you should use https://github.com/BadChoice/RVCalendarWeekView that is the current version, sinde mscollectionviewcalendarlayout seems deperecated


No animation, no actions, nothing

Built sample app, everything works. Implemented custom item and other classes from https://github.com/davideas/FlexibleAdapter/wiki/5.x-|-Setting-Up. No effect. All items are displayed, but no animations, no actions, nothing works. Am I dumb or what?
`public class ComplexJobFragment extends Fragment {
@BindView(R.id.estimate_recycler_view) RecyclerView estimate;

public ComplexJobFragment(){}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {

    View rootView = inflater.inflate(R.layout.complex_order_fragment, container,
            false);
    ButterKnife.bind(this, rootView);

    List<IFlexible>  myItems = getDatabaseList();
    FlexibleAdapter<IFlexible> adapter = new FlexibleAdapter<>(myItems);//Experimenting NEW features (v5.0.0)
    adapter.setAnimationOnScrolling(true)
            .setAnimationOnReverseScrolling(true)
            .setAnimationInterpolator(new DecelerateInterpolator())
            .setAnimationInitialDelay(500L)
            .setAnimationDelay(150L)
            .setAnimationEntryStep(true);
    estimate.setItemViewCacheSize(0);//Setting ViewCache to 0 (default=2) will animate items better while scrolling down+up with LinearLayout
    estimate.setHasFixedSize(true);//Size of RV will not change
    estimate.setLayoutManager(new SmoothScrollLinearLayoutManager(getActivity()));
    estimate.setAdapter(adapter);
    adapter.setLongPressDragEnabled(true);
//    estimate.setItemAnimator(new DefaultItemAnimator());

    return rootView;
}

public List<IFlexible> getDatabaseList() {
    List<IFlexible> list = new ArrayList<>();
    list.add(new EstimateItem("1", "Hello"));
    list.add(new EstimateItem("2", "World"));
    list.add(new EstimateItem("3", "World"));
    list.add(new EstimateItem("4", "World"));
    list.add(new EstimateItem("5", "World"));
    list.add(new EstimateItem("6", "World"));
    list.add(new EstimateItem("7", "World"));
    list.add(new EstimateItem("1", "Hello"));
    list.add(new EstimateItem("2", "World"));
    list.add(new EstimateItem("3", "World"));
    list.add(new EstimateItem("4", "World"));
    list.add(new EstimateItem("5", "World"));
    list.add(new EstimateItem("6", "World"));
    list.add(new EstimateItem("7", "World"));
    list.add(new EstimateItem("1", "Hello"));
    list.add(new EstimateItem("2", "World"));
    list.add(new EstimateItem("3", "World"));
    list.add(new EstimateItem("4", "World"));
    list.add(new EstimateItem("5", "World"));
    list.add(new EstimateItem("6", "World"));
    list.add(new EstimateItem("7", "World"));

    return list;
}

}`

Now, animation need do with each item by implement AnimatedViewHolder for the holder. It is complex. I don't need special effects.

Hello, it's not more complicated than before. Now, the 2 types of animations as well separated, as I explained in the new WikiPage Adapter Animations, the wiki page is not completed (few time), but it's more than enough to understand how they work.

Scroll animations is part of the normal flow, the new method scrollAnimators() of FlexibleViewHolder deprecates the getAnimators() of the FlexibleAdapter, as before activation it not sufficient, it should be also implemented to set which animation you want. Read carefully the methods documentation in the Wiki page. Note: To have the scroll animation you need to initialize the adapter with a non-empty list in the constructor (as @bloodcarter is doing).
The Item Animation is instead executed when item is notified, therefore nothing to do with loading/scrolling, so I created the AnimatedViewHolder, that is optional. DefaultItemAnimator is the default from Android and doesn't extend the new FlexibleItemAnimator.

@bloodcarter, the id of EstimateItem is repetitive, you might have problems, depends how you implemented the equals method of the item.
You missed also setAnimationOnScrolling() activation.

@davideas No, take a closer look. I'm calling setAnimationOnScrolling(true). I understood how sample app works, but it's VERY complex, is there some more simple tutorial out there? It's kinda tricky to learn all this stuff from your wiki. Where should I learn about AnimatedViewHolder, etc.??? And also you don't use it in your sample app. Instead, you override scrollAnimators(). I'm confused! :)

@bloodcarter, sorry, I missed it in your code :-)
However, you got the point that, you need to add which Animator will be executed.
For the rest, you are right that the demo is complex, but I am not going to change it, not soon. Maybe the wiki page for the demoApp might help you, please go to read it.
I preferred to use fragments instead of multiple activities, so many things are in common.
The AnimatedViewHolder is used. You can also learn it a little, from the Wiki page and from the javadoc in the classes. The Item Animator classes are not part of the library, only the base class FlexibleItemAnimator.
If you need specific help, you can write here.

@bloodcarter, need more help?

@davideas Yes, but not now, I implemented adapter without bells and whistles for now and will go back to it a bit later.  Thanks.


Functional Interactives Implementation

Adds functional implementations of:

Insert code
Draggable statement completion
Draggable statement ordering

Interactives do not currently display data from server.  Each interactive displays data from a hard coded data set.

Rebased and did code review feedback.
Now going to implement draggable ordering on left column only and replace given line of code.

I am adding to the Asana some notes regarding naming to follow. This will be added in the next Read implementation of the backend.

Sounds good, also I was able to test draggable ordering successfully after npm install. 🚢


python script not working: weasy.py

python script not working: weasy.py

Hello,
Sorry for the late response.
This python script is based on Python2. Try and let me know.


removing default initializers

Codecov Report

Merging #36 into master will decrease coverage by 1.47%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
- Coverage      55%   53.52%   -1.48%
==========================================
  Files          13       13
  Lines         360      355       -5
==========================================
- Hits          198      190       -8
- Misses        162      165       +3

Impacted Files
Coverage Δ

Sources/JSON/JSONRepresentable.swift
0% <ø> (-69.24%)
:arrow_down:

Tests/JSONTests/JSONConvertibleTests.swift
100% <100%> (ø)
:arrow_up:

Sources/JSON/JSONContext.swift
16.66% <0%> (-50%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd50e36...7fb44f2. Read the comment docs.


Redirect Whitehall images and attachments

Supersedes the spike in #1509.
Todo:

[ ] Write a MigrateAssets class with a call method, similar to the Import class (see https://github.com/alphagov/content-publisher/pull/1509/commits/572889b6605120e583ec1485f2295419dfa9f3f5 for inspiration, albeit in the wrong place)
[ ] Write a migrate_assets(whitehall_import_record) method in WhitehallImporter, so we can call the two areas of code from the same place, in sequence
[ ] Write validator to ensure only one of FileAttachment::Revision / Image::Revision is associated with the WhitehallImportedAsset record

Trello card: https://trello.com/c/DMpTECux/1232-handle-redirecting-and-removing-old-assets-as-part-of-whitehall-migration

Oh another thing. I think I might have said this to you already, but just in case I haven't.
The one-to-one mapping between a WhitehallImport and a document isn't going to be sufficient once we have translations since a single Whitehall document will create multiple Content Publisher ones. This isn't going to be a problem for us now since we explicitly don't allow multiple languages and I think changing this mapping will be just one of many changes needed. But in case you weren't aware I thought I'd make sure you knew so it's not a surprise when that problem comes around.

Just had a skim through this PR and to add to Kevins point, I've copied your AddDocumentRefToWhitehallImports migration and belongs_to ... in the WhitehallDocument model with adjustments from Kevins suggestions which means I can continue with my work with only the migration filename being different between our branches!
I also noticed you may wan't to rebase against master as lib/whitehall_importer.rb for example is missing some recently updated code! 😄

Just letting you know @ChrisBAshton, you may want to do a rebase against master again as -> https://github.com/alphagov/content-publisher/pull/1535 has been merged which includes the code mine and this PR shared but with a few slight differences, apologies! 😭

Closed in favour of #1568.


Update Reviewers/Approvers for localized READMEs

Description

Update Reviewers/Approvers for localized READMEs

FYI: https://www.kubernetes.dev/docs/guide/owners/#filters
Issue
Closes: #47762

/assign seokho-son a-mccarthy reylejano

I agree with this change but would like insight from others
/lgtm
cc @seokho-son @a-mccarthy @divya-mohan0209 @natalisucks

/hold
ref. https://github.com/kubernetes/website/issues/47762#issuecomment-2330809842

Thank you, everyone!
While many of us agree on transferring ownership of the localized README to the l10n team, it seems there’s still some room for discussion regarding where to place the file.
Any thought, everyone?

Thanks @divya-mohan0209 for your kind comment :)

This is behavior that I've observed and the experience could be different for other localisation owners.

As an Approver of Japanese l10n, let me comment. IMO, Many contributors (to Japanese content) refer to the Japanese README or https://kubernetes.io/ja/docs/contribute/localization/.
(This is because I ask contributors to refer to this page when I create good first issues.)
Anyway, I also think it’s better to move the localized README to contents/<language-name> rather than keeping it in the root, and I would like to make that change in this PR.
I also think Divya’s approach is excellent. However, not all localization teams are necessarily active, so I don’t know when Once point number 2 is completed will be achieved.
This change doesn’t take away ownership from the l10n teams, but rather gives it to them, so I think a simple announcement will suffice.
Any thought, @divya-mohan0209 @seokho-son everyone?

@Okabe-Junya Thanks for the response. It'd be good to socialize this in the SIG Docs Localization channel and the upcoming localisation meeting by adding it as an agenda item. This has been conveyed in the Slack thread

Here are my thoughts for now:

The primary purpose of the README-.md files is not to provide a guide for localization in each language, but rather to translate the README.md itself for contributors who have difficulty reading it in English. (However, it could be helpful to include a link to the actual localization guide page in the final section. The last section of README-ko.md is written this way.)

README-.md seems useful for contributors familiar with GitHub. That said, since there's no need for too many files in the repository root, it would be better if README.md simply linked to the respective language-specific README-.md files, allowing users to navigate easily. (This link already exists.)

How to move: Rather than having localization contributors handle this individually, it would be better to move everything at once in this PR and make an announcement to the localization teams/channel. This would prevent delays in the transition process. Regarding documentation, it would be great if this PR could also include modifications to the section at https://kubernetes.io/docs/contribute/localization/#add-a-localized-readme-file (updating the file location).

Where to move: I also prefer moving it to content/<language-code>.

These are my current thoughts, and as @divya-mohan0209 mentioned, we can decide based on feedback from the localization channel as prompted by the message from @Okabe-Junya . :)

/area localization

Thank you all for your responses!
I completely agree with Son - I would like to move it to content/<language> and complete it within this PR.
However, it seems that this move requires a bit of caution (Thank you, Tim, for your insight based on your extensive experience; do you think there are any better dirs to move it to? Or it’s better to keep it at the root as it is?).
Once some concerns are resolved and we get the community’s consensus - as Divya mentioned, this will be a topic for the next SIG Docs l10n monthly meeting - it will be time to move this PR forward! Thanks!

Sure, We need to test effect of putting README.md in the content/<language> (if we have a consensus on moving the files) :)
Thanks @sftim

We are ready to move forward with this PR!!
Recently, during the SIG Docs Localization Subproject monthly meeting, we decided to move l10n READMEs to content/<language>/README.md.
FYI: https://docs.google.com/document/d/1NwO1AN8Ea2zlK8uAdaDAKf1-LZDAFvSewIfrKqfl5No/edit?usp=sharing
A huge thank you to @seokho-son  and everyone who has supported the progress of this PR!
It looks like CI and Netlify build preview are working well too, so please take another look :)
Thanks!

cc @reylejano @divya-mohan0209

/unhold

/approve

/lgtm

Thank you all for your kind and wonderful support, I really appreciate it!


Make PersisterImpl Download Segment Info Files from Object Store Concurrently or in Parallel

In #24588 I had created the initial implementation of the persister to read and write Segment Info Files, the Catalog, and Parquet data to the Object Store. However, one flaw is that we download the Segment Info Files one at a time as seen here:
https://github.com/influxdata/influxdb/blob/001a2a6653c6e3a7b6e074b07893bf63431a80dd/influxdb3_write/src/persister.rs#L187-L190
If the network is slow this could really slow down any time we need to acquire the segment data.
In the PR I had tried to make it concurrent and while the code in theory should have been successful this was thwarted by the lifetimes created with the #[async_trait] proc macro. Getting it to use Rayon's par_iter() method also did not work. While async fn in traits is now stable it has it's own issues as well that were hard to untangle with the codebase at this time.
This is a known bottleneck currently and so to make sure we keep track of it I've opened up this issue to keep track of it and to keep track of any progress made addressing it.

Although things have changed a fair bit since this was opened - we now have snapshots instead of segments - we are still loading the snapshot files in sequence here: https://github.com/influxdata/influxdb/blob/35e29d14087b26a8433c8c24240cb5c2cb494d18/influxdb3_write/src/persister.rs#L231-L234

This is definitely something we'll want to do. We'll also want to fetch WAL files in parallel as well. Maybe we should create an epic around optimizing startup time?

I created an epic here: https://github.com/influxdata/influxdb/issues/25533


Test/Bug: when asking about overview calendar for a specific day, it shows another day

When user asks about a [day/Friday], the bot asks to clarify which upcoming Friday. Then by selecting the right Friday, the next Monday is shown.
The bot should just show the calendar for that selected day
(I know this probably is happening due to the Monday display when a user asks for week/month - please look into that)

@Quirinevwm - I wasn't able to repro this. Can you try again and let me know if this is still happening for you?

@lauren-mills in general I would like to think that we only show Friday's in the future (so not the 6th), so that by coincidence would mean today (Friday the 13th). If we are not completely sure I'd rather show Friday (today) and next week.
I'm not getting any response back:

I'm publishing a change now that removes the options that are in the past so hopefully that helps resolve.

Changes are published, so try it out and let me know or close the issue if it works for you now

I tried for friday, and now I can't get overview of day to work:

I think this may be resolved now. I tried each of these utterances and they worked for me now.

@lauren-mills yes almost all of them are working as they should!
All the logic is in place and happens!!

what's on my calendar -> today and shows suggestive action for tomorrow
happening tomorrow -> suggestive action next day ;)
on Friday -> shows my upcoming Friday next week (perfecto no need to pick from a previous date)

Only thing that does not route nicely is - "when is my next meeting" "What is my next meeting"
Then I think we are all set for the dogfood


Cross species mockup

Need a mockup for workshop to show how cross species linkages might work in the ontology, this should integrate discussions with @jeremymiller.
Plan:

[x] Workshop 1 (review of ontology) - provide an example of this link
[x] Workshop 2 (use cases) - add a cross species parent term in the ontology side bar to see how it links

I've mocked up an example here: https://docs.google.com/document/d/1f3O-kMXc7JYgBrtRwmktnnIVtBHXxEzE3YmoJRbmy-A/edit
would like review on it @dosumis

This looks good to me.  The only think I'm not sure about it the parent classes for "L5 IT_2 primary motor cortex glutamatergic neuron (Mammalia)".  It seems weird that there would be a higher-resolution parent in the mammalian ontology (L5 IT_2) than in the mouse ontology (L5 IT).  That said, I understand why this is the case and don't have a better way to do it, so maybe worth some discussion at the workshop!


Feature Request: Show "Disabled" labels for disabled plugins

I like to track my disable plugin (looking for new feature, bugs) via plugin update tracker.
Somehow, I can't remember which one is disable or which one I currently enable. so I want to request this... add disabled label like beta version label.

This has been implemented, thanks for the feature request


audio not works with rpi3

Hi,
audio playback seem not works on rpi3 developer 0.7.

My device Raspi 3.
Build from your last  commit: 6508e1a7b8c118920d2afff4e3788ec36dec9b98
I can hear TTS voice , but
a2dp playback  hear nothing.
Not works on rpi3
Please support, Thanks.
@devunwired @mangini

Finally,  I find what up.
On Raspi 3.
It seem like only support  BluetoothProfile.A2DP , not A2DP_SINK_PROFILE.
So disable fun private void setupBTProfiles() on A2dpSinkActivity  //setupBTProfiles();
Music come out !!!

Finally, I find what up.
On Raspi 3.
It seem like only support BluetoothProfile.A2DP , not A2DP_SINK_PROFILE.
So disable fun private void setupBTProfiles() on A2dpSinkActivity //setupBTProfiles();
Music come out !!!

I tested on rasp3 but still not work  no audio come out

Hi,
audio playback seem not works on rpi3 developer 0.7.

hello
i have same problem
audio playback not works on rpi3


fix folder button being in wrong location in Create project from database dialog

This inputbox and button were added in December in https://github.com/microsoft/azuredatastudio/pull/13842. addItem() for a flexContainer used to add the item last, but something must have changed in the last month to change that so the folder button got added first instead of last. I fixed this here by inserting the folder button at the correct index instead.
before:

fixed:

you used my screenshot :)

Hmm, this shouldn't be the case. We use addItem in lots of places and none of the others seem to have this issue.
Could you look into whether we're setting the right index with the current code? https://github.com/microsoft/azuredatastudio/blob/main/src/sql/workbench/api/common/extHostModelView.ts#L751

I think it is because the addItem is executed first and then item in the withItems().
your change will fix this particular issue but I'd prefer to find the root cause and fix it. let me know if you need help.

Pull Request Test Coverage Report for Build 548897265

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 43.524%

Totals

Change from base Build 548769595:
0.003%

Covered Lines:
24935

Relevant Lines:
52482

💛  - Coveralls

@Charles-Gagnon since no index is passed in, the config gets pushed to the itemConfigs and is the second one, which is expected.
I tried debugging a bit more and saw that addToContainer() gets called to add the folder button before the flexContainer that contains this button is added, so not sure if that's related. @alanrenmsft some help with this would be great :)


Unused endpoint to send a single email

In 2019 we added an endpoint to send a single email: https://github.com/alphagov/email-alert-api/pull/935.
I suspect the endpoint is unused, and leaving it is just a source of confusion, especially since we have other means to send bespoke email, which seem to be more popular in practice.

@thomasleese @1pretz1 do you know if this endpoint is used anywhere? If it is, we could allude to it in the API doc.

Ah, good point @benthorner. I've double checked that the endpoint is unused by searching locally for any uses of the helper method which didn't bring back any relevant results so I think it's safe to delete 👍

Ah, good point @benthorner. I've double checked that the endpoint is unused by searching locally for any uses of the helper method which didn't bring back any relevant results so I think it's safe to delete 👍

Great! Time to say 👋 then:

https://github.com/alphagov/gds-api-adapters/pull/1020
https://github.com/alphagov/email-alert-api/pull/1543

Great! Time to say 👋 then:

https://github.com/alphagov/gds-api-adapters/pull/1020
https://github.com/alphagov/email-alert-api/pull/1543


[Relay][Frontend][ONNX] operator support: ConstantOfShape

Following issue #3544 and discussion at tvm forum, I add the implementation of ConstantOfShape operator for frontend/onnx.py

Hi @soiferj
Thanks for the prompt reply.
The current work is stuck with an intractable issue, I don't know why the onnx grpah loses its x input after relay.build and this causes the error in runtime as below.
I would appreciate if you could help me identify any possible errors/bugs, many thanks.
/Users/root/tvm/python/tvm/relay/frontend/onnx.py:1354: UserWarning: Node () has input size 1 not in range [min=0, max=0].
==> Context: Bad node spec: input: "x" output: "y" op_type: "Constant" attribute { name: "value" t { dims: 1 data_type: 6 int32_data: 2 name: "value" } type: TENSOR }  warnings.warn(str(e))

[13:09:06] /Users/root/tvm/src/runtime/graph/graph_runtime.cc:98: Warning: cannot find "x" among input
Traceback (most recent call last):

  File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 1384, in <module>
    test_constantofshape()

  File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 1334, in test_constantofshape
    test_constantofshape_with_input_shape()

  File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 1328, in test_constantofshape_with_input_shape
    tvm_out = get_tvm_output(model, x, target, ctx, (3, 4, 5))

  File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 66, in get_tvm_output
    m.set_input(input_names, tvm.nd.array(input_data.astype(input_data.dtype)))

  File "/Users/root/tvm/python/tvm/contrib/graph_runtime.py", line 149, in set_input
    self._get_input(key).copyfrom(value)

  File "/Users/root/tvm/python/tvm/_ffi/_ctypes/function.py", line 210, in __call__
    raise get_last_ffi_error()

tvm._ffi.base.TVMError: Traceback (most recent call last):
  [bt] (4) 5   ???                                 0x00007fff5a8d7f20 0x0 +<PHONE_NUMBER>10592
  [bt] (3) 4   _ctypes.cpython-37m-darwin.so       0x0000000105c0135f ffi_call_unix64 + 79
  [bt] (2) 3   libtvm.dylib                        0x000000011ddf89f8 TVMFuncCall + 72
  [bt] (1) 2   libtvm.dylib                        0x000000011de3d8c2 std::__1::__function::__func<tvm::runtime::GraphRuntime::GetFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<tvm::runtime::ModuleNode> const&)::$_7, std::__1::allocator<tvm::runtime::GraphRuntime::GetFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<tvm::runtime::ModuleNode> const&)::$_7>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 450
  [bt] (0) 1   libtvm.dylib                        0x000000011d41b7f9 dmlc::LogMessageFatal::~LogMessageFatal() + 57
  File "/Users/root/tvm/src/runtime/graph/graph_runtime.cc", line 450
TVMError: Check failed: in_idx >= 0 (-1 vs. 0) :

The input onnx graph:
ir_version: 5
producer_name: "ConstantOfShape_test"
graph {
  node {
    input: "x"
    output: "y"
    op_type: "Constant"
    attribute {
      name: "value"
      t {
        dims: 1
        data_type: 6
        int32_data: 2
        name: "value"
      }
      type: TENSOR
    }
  }
  node {
    input: "y"
    output: "z"
    op_type: "ConstantOfShape"
    attribute {
      name: "value"
      t {
        dims: 3
        data_type: 7
        int64_data: 3
        int64_data: 4
        int64_data: 5
        name: "value"
      }
      type: TENSOR
    }
  }
  name: "ConstantOfShape_test"
  input {
    name: "x"
    type {
      tensor_type {
        elem_type: 7
        shape {
          dim {
            dim_value: 1
          }
        }
      }
    }
  }
  output {
    name: "z"
    type {
      tensor_type {
        elem_type: 6
        shape {
          dim {
            dim_value: 3
          }
          dim {
            dim_value: 4
          }
          dim {
            dim_value: 5
          }
        }
      }
    }
  }
}
opset_import {
  version: 10
}

The ouput graph_json by relay.build:
{
  "nodes": [
    {
      "op": "null",
      "name": "p0",
      "inputs": []
    },
    {
      "op": "tvm_op",
      "name": "fused_tile",
      "attrs": {
        "func_name": "fused_tile",
        "flatten_data": "0",
        "num_inputs": "1",
        "num_outputs": "1"
      },
      "inputs": [
        [
          0,
          0,
          0
        ]
      ]
    }
  ],
  "arg_nodes": [0],
  "heads": [
    [
      1,
      0,
      0
    ]
  ],
  "attrs": {
    "dltype": [
      "list_str",
      [
        "int32",
        "int32"
      ]
    ],
    "storage_id": [
      "list_int",
      [0, 1]
    ],
    "shape": [
      "list_shape",
      [
        [1],
        [3, 4, 5]
      ]
    ]
  },
  "node_row_ptr": [0, 1, 2]
}

Just wanted to note that I implemented this op in parallel and have it included in PR #4197. There are few differences in our implementations and I'm open to removing my take on it if we decide this version is better.
Key differences are I use full instead of tile and I don't special case when initially parsing the nodes to extract inputs. Instead I use the infer_value function.

Just wanted to note that I implemented this op in parallel and have it included in PR #4197. There are few differences in our implementations and I'm open to removing my take on it if we decide this version is better.
Key differences are I use full instead of tile and I don't special case when initially parsing the nodes to extract inputs. Using full requires a static shape instead of a dynamic one so I use infer_value to convert the input. The trade-off is that my implementation is likely a little slower to convert but will be faster during inference.

Hi @jwfromm
Thanks for the notification.
I think we might need to invite the reviewers to discuss the differences and trade-off.

I would like to close this PR due to the miss operation of pushing.


Added go back button to find_quotes

I added a go back button to find_quotes, an exit button to search, and a message when no matches are found in order to fix #3

Awesome! Merging! :+1:
Closes #3


Make autodiscover better

Hi! Three things:

The autodiscover example does not compile.
Please follow, as with all things related to naming, the general conventions. In this case: git branch naming conventions, see this answer on stackoverflow.com, and git commit message format conventions, see (again) here.
Provide a short description in the PR, explaining what is in the PR.


Any snippet to change color of all decompiled functions?

Having marked "decompiled functions" with that default light green over the time, it makes text unreadable with a dark skin.
Does anyone have a small Python script to change the color of all decompiled functions at once?
I'm trying to write one together right now.

This should probably do, unless someone has a better solution (would be interesting to include this with a skin, but since it requires modifying the database... meh):
for seg_ea in Segments():
    for func_ea in Functions(SegStart(seg_ea), SegEnd(seg_ea)):
        func = idaapi.get_func(func_ea)
        if func.color == 0xEEFFF0:  # Old decompiled color here (BGR)
            func.color = 0x223525  # New decompiled color here (BGR)


Pickle on a BinaryLabels object does not save the values parameter

When using pickle to save a BinaryLabels object, the values field from get_values()  does not get saved and becomes null when the object is loaded using pickle. The labels are saved properly, but not the values parameter.
import pickle
import numpy as np
from modshogun import BinaryLabels

y = np.ones(10)
y = BinaryLabels(y)

print("Binary labels values BEFORE pickling the object")
print(y.get_values())

with open('labels.pkl', 'wb') as output:
    pickle.dump(y, output, pickle.HIGHEST_PROTOCOL)

with open('./labels.pkl', 'rb') as f:
    data = pickle.load(f)

print("Binary labels values AFTER pickling the object")
#print(data.get_labels())
print(data.get_values())

The output is the following:

Binary labels values BEFORE pickling the object
[ 1.  1.  1.  1.  1.  1.  1.  1.  1.  1.]
Binary labels values AFTER loading the pickled object
[]

The solution is to add a line like
SG_ADD(m_current_values, ...
to CLabels::init()
Wanna go ahead with this @olinguyen ?

Hi @karlnapf and @olinguyen, I create a pr in  https://github.com/shogun-toolbox/shogun/pull/3857. And the things has been fixed like:

MacBook-Pro-2:build mikeling$ python test.python
Binary labels values BEFORE pickling the object
[ 1.  1.  1.  1.  1.  1.  1.  1.  1.  1.]
Binary labels values AFTER pickling the object
[ 1.  1.  1.  1.  1.  1.  1.  1.  1.  1.]

Nice!

it can be closed it's fixed and it's in develop branch


add support for 'union' symbols

Bug/issue #, if applicable: rdar://119722462
Summary
Clang's upcoming C++ support changed how C unions are represented in the symbol graph by giving them their own union symbol kind. This PR adds support for dedicated union symbols.
Dependencies
None
Testing
See instructions on the Swift-DocC PR (forthcoming)
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[ n/a ] Added tests (symbol kind round-trip encoding is already tested in SymbolKindTests.testKindIdentifierRoundTrip)
[x] Ran the ./bin/test script and it succeeded
[ n/a ] Updated documentation if necessary

@swift-ci Please test

@swift-ci Please test


The AIO Postgres image does not play nicely with official nextcloud image -> Db users are different

AIO postgres assigns all priviledges to "oc_$POSTGRES_USER" in case of recovering from a dump, whereas the nextcloud image uses the default oc_admin user.
https://github.com/nextcloud/all-in-one/blob/main/Containers/postgresql/start.sh

https://github.com/nextcloud/all-in-one/pull/218/


acceptance test for buggy filterBy without @each

This is a straight copy from the ember twiddle. If you want the template or controller cleaned up just ask.
Hope this is enough to find the bug.

Did you change anything on the composing-class-computed branch? It seems to work on this test, while it did not work in my real world application.

I just made another change, and switched this PR to the branch. Looks like it's working now.

The fix isn't good enough quality yet, so feel free to pin to the branch in the meantime.

I'll patiently wait for the fix then. The @each fix will do untill then.


Incorrect descriptions for Azure Local Gateway field

In the description for the fields in the local network gateway its described as:
Address Space refers to the address ranges for the network that this local network represents. You can add multiple address space ranges. Make sure that the ranges you specify here do not overlap with ranges of other networks that you want to connect to. Azure will route the address range that you specify to the on-premises VPN device IP address.
I think that should say "remote network represents". If you were to follow Microsoft's advice on this, you enter the local azure network, then in the next step, when you create the connection it throws an error saying that the address space overlaps!

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

ID: 57cbce6b-e48b-c199-7071-865a2a6422f0
Version Independent ID: 06320049-4747-cd1f-564a-36f3a6f5b004
Content: Connect on-premises network to Azure virtual network: Site-to-Site VPN: Portal - Azure VPN Gateway
Content Source: articles/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal.md
Service: vpn-gateway
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@james-martin-engineer , thank you for your feedback. We'll review this and get back shortly.

@james-martin-engineer , We have assigned this issue to the respective content author for updating the doc accordingly.
@cherylmc , could you please review the suggestion and update the sentence in sub-step 3 of step 3 (Create the local network gateway) as below:
Address Space refers to the address ranges for the network that your on-premises network represents.

Hi! Thanks for your feedback. This isn't quite right. I'll look at wording again, but it's called a "local network". Meaning, local to you. That's why there is a local network gateway (rather than calling it a remote network gateway). Anyway, I'll take a doc bug to take a look at this. #please-close.


Add gpt-4-0125-preview to model list

Add the new model, as OpenAI has just announced.

gpt-4-turbo-preview 呢..


faster softplus needed

Currently, we are getting 0.1 ms for softplus. We need something around 0.01 ms. Maybe fusing is needed. It would be helpful if it supported sharded mode as well.
To Reproduce
we are using ttnn.softplus(delta_t, parameter1=1.0, parameter2=20.0, memory_config=ttnn.L1_MEMORY_CONFIG)
where delta_t is of datatype ttnn.bfloat16 and of shape 1,1,32,5120
@kpaigwar @esmalTT

@yugaoTT or @eyonland , is this a ttnn thing or an op-writer thing? (triage question)..

looks like softplus is a implemented using a bunch od unary ops connected together. Might need a new implementation to fuse all ops into one kernel

ok. let me put this into the fused queue since new implementation needs to be planned.


Index into ADR tenant

The Catalog object needs to be able to index into ADR tenant. Symphony Catalog is a platform-neutral index with a graph engine on top. It shall be able to index into ADR and present ADR assets as part of the overall information graph.

@Haishi2016 Hi Haishi, what does ADR refer to? Is it Advanced Data Residency in Microsoft 365? What do we want to achieve with this issue?


Is it still used in Production?

The doc says you have been using that in Prod for the last 2 years, is it still the case? I'm curious because the commit history seems very light.

Yes, still used in production. Not much changes because it works for what we need.


lefse doesn't work with python 3

When trying to install in a conda environment:
:~$ conda install -c biobakery lefse
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - lefse -> python[version='>=2.7,<2.8.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.31=0
  - feature:|@/linux-64::__glibc==2.31=0

Your installed version is: 2.31

I saw that the code on GitHub was recently updated to work with python 3 but this doesn't seem to work.
Any idea how to resolve this ?
Thanks,
Rudy

I think you could create an environment specifically with python 2.7 and then install LEfse. I hope it helps.
conda create -n thelefse python=2.7
conda install -c biobakery lefse

The error was as follows in terms of me:
`Specifications:

lefse -> python[version='2.7.*|<3|>=3.7|>=2.7,<2.8.0a0']

Your python: python=3.6`
Thank you for your solution @drelo , I installed it by changing the python version to 3.7. It works!


No o11y demo logs shown in Splunk Cloud

Hi, I don't see logs using the user in the docs mentioned in Slack: https://splunk.slack.com/archives/CTVAQCM6Z/p1694628416643729
See screenshots below:

Wrong repository!


Remove Page.get_static_site_paths

Fixes #8535

Thanks @yass19.
Please update the tests!

Merged in 0221457a67ec977e4158121fe81c6d9511e92b7d


[Rolemaster Unified Official] Update rolls and fixes for some calculations

[x] The pull request title clearly contains the name of the sheet I am editing.

[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).

[x] The pull request makes changes to files in only one sub-folder.

[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

[x] I have followed the Character Sheets Standards when building this sheet.

[x] I have authorization from the game's publisher to make this an official sheet on Roll20 with their name attached.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Fix bug in parseIntDefault to return the default if passed a 0
Add test for parseIntDefault
Roll buttons updated

The die rolls with a modifier.
The (skill) number rolls natural.

Fix a layout issue on safari (I hope)

Character Sheet Info Roll20 Internal Use only.


ValueError: axes don't match array in prediction of S1 unit at 7-synthseg+.py

Thank you for sharing synthseg.
To predict by S1 unit in synthseg+, I'm working on 7-synthseg+.py for training S1 and on 4-predict.py for prediction,
however, it returns "ValueError: axes don't match array". Here is the way the error is reproduced.
Environment: requirements_python3.6.txt

Prepare image/lanel dataset by running scripts/tutorials/1-generation_visualisation.py

cd Synthseg/scripts/tutorials/
python 1-generation_visualisation.py

Train the S1 unit by the part of 7-synthseg+.py as below. This ran and saved the model weight as "scripts/tutorials/outputs_tutorial_7/training_s1/dice_001.h5".

from SynthSeg.training import training as training_s1

# ------------------ segmenter S1
labels_dir_s1 = '../../data/training_label_maps'
path_generation_labels = '../../data/labels_classes_priors/generation_labels.npy'
path_generation_classes = '../../data/labels_classes_priors/generation_classes.npy'
path_segmentation_labels_s1 = '../../data/tutorial_7/segmentation_labels_s1.npy'
model_dir_s1 = './outputs_tutorial_7/training_s1'

training_s1(labels_dir=labels_dir_s1,
            model_dir=model_dir_s1,
            generation_labels=path_generation_labels,
            segmentation_labels=None,
            n_neutral_labels=18,
            generation_classes=path_generation_classes,
            target_res=1,
            output_shape=160,
            prior_distributions='uniform',
            prior_means=[0, 255],
            prior_stds=[0, 50],
            randomise_res=True,
            dice_epochs=1,
            steps_per_epoch=1000,)

Predict with trained S1 model by following code based on 4-predict.py

from SynthSeg.predict import predict

path_images = './outputs_tutorial_1/image.nii.gz'
path_segm = './outputs_tutorial_7/predicted_segmentations-S1'
path_posteriors = './outputs_tutorial_7/predicted_segmentations-S1'
path_vol = './outputs_tutorial_7/predicted_information/volumes.csv'
path_model = './outputs_tutorial_7/training_s1/dice_001.h5'
path_segmentation_labels = '../../data/tutorial_7/segmentation_labels_s1.npy'
path_segmentation_names = '../../data/labels_classes_priors/synthseg_segmentation_names.npy'
cropping = 192
target_res = 1.
path_resampled = './outputs_tutorial_7/predicted_information'
flip = True
n_neutral_labels = 18
sigma_smoothing = 0.5
topology_classes = '../../data/labels_classes_priors/synthseg_topological_classes.npy'
keep_biggest_component = True
n_levels = 5
nb_conv_per_level = 2
conv_size = 3
unet_feat_count = 24
activation = 'elu'
feat_multiplier = 2
gt_folder = None
compute_distances = True

predict(path_images,
        path_segm,
        path_model,
        path_segmentation_labels,
        n_neutral_labels=n_neutral_labels,
        path_posteriors=path_posteriors,
        path_resampled=path_resampled,
        path_volumes=path_vol,
        names_segmentation=path_segmentation_names,
        cropping=cropping,
        target_res=target_res,
        flip=flip,
        topology_classes=topology_classes,
        sigma_smoothing=sigma_smoothing,
        keep_biggest_component=keep_biggest_component,
        n_levels=n_levels,
        nb_conv_per_level=nb_conv_per_level,
        conv_size=conv_size,
        unet_feat_count=unet_feat_count,
        feat_multiplier=feat_multiplier,
        activation=activation,
        gt_folder=gt_folder,
        compute_distances=compute_distances)

This eventually returns the following "ValueError: axes don't match array" error.

Traceback (most recent call last):
  File "4-prediction-S1.py", line 137, in <module>
    predict(path_images,
  File "/home/ubuntu/SynthSeg/SynthSeg/predict.py", line 157, in predict
    net = build_model(path_model=path_model,
  File "/home/ubuntu/SynthSeg/SynthSeg/predict.py", line 467, in build_model
    net.load_weights(path_model, by_name=True)
  File "/home/ubuntu/SynthSeg/synthseg_env/lib/python3.8/site-packages/keras/engine/saving.py", line 492, in load_wrapper
    return load_function(*args, **kwargs)
  File "/home/ubuntu/SynthSeg/synthseg_env/lib/python3.8/site-packages/keras/engine/network.py", line 1225, in load_weights
    saving.load_weights_from_hdf5_group_by_name(
  File "/home/ubuntu/SynthSeg/synthseg_env/lib/python3.8/site-packages/keras/engine/saving.py", line 1289, in load_weights_from_hdf5_group_by_name
    weight_values = preprocess_weights_for_loading(
  File "/home/ubuntu/SynthSeg/synthseg_env/lib/python3.8/site-packages/keras/engine/saving.py", line 980, in preprocess_weights_for_loading
    weights[0] = np.transpose(weights[0], (3, 2, 0, 1))
  File "<__array_function__ internals>", line 5, in transpose
  File "/home/ubuntu/SynthSeg/synthseg_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 651, in transpose
    return _wrapfunc(a, 'transpose', axes)
  File "/home/ubuntu/SynthSeg/synthseg_env/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 61, in _wrapfunc
    return bound(*args, **kwds)
ValueError: axes don't match array

Hi,
so if you want to use the predict function on the trained S1, then you would need to adapt it a bit, because th default parameters are set to work for the distributed version of SynthSeg, which differs from S1 mainly  by the set of predicted labels.
Everything is explained in the docstring of predict.py, but here's how you should modify your script.
First, you should change n_neutral_labels from 18 to None, because here we only have 5 labels, and all of them correspond to non-sided regions (ie, they are not restricted to either left or right hemisphere).
Then, you should get rid of path_segmentation_names, and topology_classes (ie set them to None), because 1) you won;t need these, and 2) these specific numpy arrays were designed for a network that segments 30 or so labels, not 5.
let me know if this works :)

Thanks! It worked!
Because I used the not-fully-trained S1 (by dice_epochs=1 and steps_per_epoch=10) to check,
the prediction returns the label "Left-Cerebral-Exterior" in whole pixels :)
For now it seems working and I'll try the prediction in the well-trained S1 later.

Glad to know it works!
More generally, please note that tutorial 7 is just here to explain how synthseg+ was trained. The 20 training maps given under /data/training_label_maps/ are not enough to train robust S1 and S2, and the three examples under /data/tutorial_7 are far from enough to train a good denoiser D.
To obtain good networks, you would have to train on your own data.


Prevent console.log's in production

Quick and minor fix to prevent 121 messages showing up in production.
Wraps all console.log's with a simple function that enables debugging mode.
In production, always should stand as
var debug = false

Out of curiosity, why 121 messages showing up is a problem?

Not a life-changing PR indeed, but it bugs me to have that :)
Blame my OCD tendencies, I guess 😉


Update emoji image

@lfbrock sorry the file extension needs to be capitalized or else github treats it as a different image rather than a replacement of the original

@esethna thanks, should be fixed now

+1


Instructions for building on Cygwin (if possible)

Kakoune itself supports running on Cygwin, but it isn't clear whether kak-lsp is expected to work there also or not. When I tried to build it, I got:

error log

Cloning into 'kak-lsp'...
  Installing kak-lsp v12.2.1-snapshot (C:\cygwin64\home\chris\Code\builds\configuration\kak\plugins\kak-lsp)
    Updating crates.io index
 Downloading crates ...
  Downloaded dirs-sys-next v0.1.2
  Downloaded ryu v1.0.9
  Downloaded version_check v0.9.4
  Downloaded trackable_derive v1.0.0
  Downloaded rand_chacha v0.3.1
  Downloaded str_indices v0.3.2
  Downloaded slog-stdlog v4.1.1
  Downloaded slog-term v2.9.0
  Downloaded winapi v0.3.9
  Downloaded time-macros v0.2.4
  Downloaded semver-parser v0.10.2
  Downloaded rustversion v1.0.6
  Downloaded rle-decode-fast v1.0.3
  Downloaded ropey v1.4.1
  Downloaded tinyvec_macros v0.1.0
  Downloaded serde v1.0.136
  Downloaded take_mut v0.2.2
  Downloaded strsim v0.8.0
  Downloaded slog-async v2.7.0
  Downloaded slab v0.4.5
  Downloaded textwrap v0.11.0
  Downloaded thread_local v1.1.4
  Downloaded time v0.1.43
  Downloaded unindent v0.1.8
  Downloaded whoami v1.2.1
  Downloaded tinyvec v1.5.1
  Downloaded unicode-xid v0.2.2
  Downloaded widestring v0.4.3
  Downloaded unicode-bidi v0.3.7
  Downloaded serde_json v1.0.79
  Downloaded url v2.2.2
  Downloaded aho-corasick v0.7.18
  Downloaded trackable v1.2.0
  Downloaded regex-syntax v0.6.25
  Downloaded daemonize v0.4.1
  Downloaded enum_primitive v0.1.1
  Downloaded rand v0.8.5
  Downloaded lsp-types v0.92.1
  Downloaded indoc v1.0.4
  Downloaded dirs v2.0.2
  Downloaded diffs v0.4.1
  Downloaded dirs-sys v0.3.7
  Downloaded boxfnonce v0.1.1
  Downloaded arc-swap v1.5.0
  Downloaded libflate_lz77 v1.1.0
  Downloaded jsonrpc-core v18.0.0
  Downloaded glob v0.3.0
  Downloaded quote v1.0.17
  Downloaded syn v1.0.90
  Downloaded num-traits v0.1.43
  Downloaded serde_derive v1.0.136
  Downloaded windows-acl v0.3.0
  Downloaded libc v0.2.121
  Downloaded rand_core v0.6.3
  Downloaded regex v1.5.5
  Downloaded pin-project-lite v0.2.8
  Downloaded num-traits v0.2.14
  Downloaded ppv-lite86 v0.2.16
  Downloaded once_cell v1.10.0
  Downloaded libflate v1.2.0
  Downloaded getrandom v0.2.6
  Downloaded getopts v0.2.21
  Downloaded clap v2.34.0
  Downloaded pin-utils v0.1.0
  Downloaded pest v2.1.3
  Downloaded percent-encoding v2.1.0
  Downloaded num-integer v0.1.44
  Downloaded memoffset v0.6.5
  Downloaded memchr v2.4.1
  Downloaded matches v0.1.9
  Downloaded log v0.4.16
  Downloaded lazy_static v1.4.0
  Downloaded itoa v1.0.1
  Downloaded itertools v0.10.3
  Downloaded idna v0.2.3
  Downloaded futures-util v0.3.21
  Downloaded futures-task v0.3.21
  Downloaded futures-sink v0.3.21
  Downloaded futures-macro v0.3.21
  Downloaded futures-io v0.3.21
  Downloaded futures-executor v0.3.21
  Downloaded futures-core v0.3.21
  Downloaded futures-channel v0.3.21
  Downloaded futures v0.3.21
  Downloaded form_urlencoded v1.0.1
  Downloaded field-offset v0.3.4
  Downloaded either v1.6.1
  Downloaded dirs-next v2.0.0
  Downloaded crossbeam-utils v0.8.8
  Downloaded crossbeam-channel v0.5.4
  Downloaded crc32fast v1.3.2
  Downloaded chrono v0.4.19
  Downloaded cfg-if v1.0.0
  Downloaded cfg-if v0.1.10
  Downloaded bitflags v1.3.2
  Downloaded autocfg v1.1.0
  Downloaded atty v0.2.14
  Downloaded unicode-normalization v0.1.19
  Downloaded time v0.3.9
  Downloaded pulldown-cmark v0.8.0
  Downloaded toml v0.5.8
  Downloaded sloggers v2.1.1
  Downloaded ucd-trie v0.1.3
  Downloaded vec_map v0.8.2
  Downloaded slog-kvfilter v0.7.0
  Downloaded serde_repr v0.1.7
  Downloaded unicode-width v0.1.9
  Downloaded unicase v2.6.0
  Downloaded slog-scope v4.4.0
  Downloaded term v0.7.0
  Downloaded slog v2.7.0
  Downloaded smallvec v1.8.0
  Downloaded proc-macro2 v1.0.36
  Downloaded semver v0.11.0
  Downloaded rustc_version v0.3.3
  Downloaded adler32 v1.2.0
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.90
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling winapi v0.3.9
   Compiling memchr v2.4.1
   Compiling ucd-trie v0.1.3
   Compiling serde_derive v1.0.136
   Compiling serde v1.0.136
   Compiling slog v2.7.0
   Compiling libc v0.2.121
   Compiling futures-core v0.3.21
   Compiling itoa v1.0.1
   Compiling lazy_static v1.4.0
   Compiling futures-channel v0.3.21
   Compiling futures-task v0.3.21
   Compiling rustversion v1.0.6
   Compiling tinyvec_macros v0.1.0
   Compiling log v0.4.16
   Compiling crossbeam-utils v0.8.8
   Compiling futures-util v0.3.21
   Compiling futures-sink v0.3.21
   Compiling futures-io v0.3.21
   Compiling unicode-width v0.1.9
   Compiling serde_json v1.0.79
   Compiling once_cell v1.10.0
   Compiling pin-utils v0.1.0
   Compiling slab v0.4.5
   Compiling crc32fast v1.3.2
   Compiling matches v0.1.9
   Compiling pin-project-lite v0.2.8
   Compiling version_check v0.9.4
   Compiling bitflags v1.3.2
   Compiling ryu v1.0.9
   Compiling arc-swap v1.5.0
   Compiling rle-decode-fast v1.0.3
   Compiling unicode-bidi v0.3.7
   Compiling percent-encoding v2.1.0
   Compiling regex-syntax v0.6.25
   Compiling time-macros v0.2.4
   Compiling slog-async v2.7.0
   Compiling widestring v0.4.3
   Compiling take_mut v0.2.2
   Compiling pulldown-cmark v0.8.0
   Compiling adler32 v1.2.0
   Compiling ppv-lite86 v0.2.16
   Compiling unindent v0.1.8
   Compiling boxfnonce v0.1.1
   Compiling strsim v0.8.0
   Compiling cfg-if v0.1.10
   Compiling str_indices v0.3.2
   Compiling vec_map v0.8.2
   Compiling smallvec v1.8.0
   Compiling either v1.6.1
   Compiling diffs v0.4.1
   Compiling whoami v1.2.1
   Compiling glob v0.3.0
   Compiling getrandom v0.2.6
   Compiling pest v2.1.3
   Compiling num-traits v0.2.14
   Compiling memoffset v0.6.5
   Compiling num-integer v0.1.44
   Compiling tinyvec v1.5.1
   Compiling getopts v0.2.21
   Compiling textwrap v0.11.0
   Compiling thread_local v1.1.4
   Compiling libflate_lz77 v1.1.0
   Compiling form_urlencoded v1.0.1
   Compiling unicase v2.6.0
   Compiling indoc v1.0.4
   Compiling ropey v1.4.1
   Compiling itertools v0.10.3
   Compiling rand_core v0.6.3
   Compiling semver-parser v0.10.2
   Compiling time v0.3.9
   Compiling unicode-normalization v0.1.19
   Compiling rand_chacha v0.3.1
   Compiling aho-corasick v0.7.18
   Compiling quote v1.0.17
   Compiling daemonize v0.4.1
error[E0433]: failed to resolve: could not find `unix` in `os`
  --> C:\Users\chris\.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:58:14
   |
58 | use std::os::unix::ffi::OsStringExt;
   |              ^^^^ could not find `unix` in `os`
error[E0433]: failed to resolve: could not find unix in os
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:59:14
|
59 | use std::os::unix::io::AsRawFd;
|              ^^^^ could not find unix in os
Compiling slog-scope v4.4.0
error[E0432]: unresolved imports libc::fork, libc::ftruncate, libc::setgid, libc::setsid, libc::setuid, libc::umask, libc::LOCK_EX, libc::LOCK_NB
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:65:25
|
65 |     c_int, close, dup2, fork, ftruncate, getpid, open, setgid, setsid, setuid, umask, write,
|                         ^^^^  ^^^^^^^^^                ^^^^^^  ^^^^^^  ^^^^^^  ^^^^^ no umask in the root
|                         |     |                        |       |       |
|                         |     |                        |       |       no setuid in the root
|                         |     |                        |       no setsid in the root
|                         |     |                        no setgid in the root
|                         |     no ftruncate in the root
|                         no fork in the root
66 |     LOCK_EX, LOCK_NB,
|     ^^^^^^^  ^^^^^^^ no LOCK_NB in the root
|     |
|     no LOCK_EX in the root
|
help: a similar name exists in the module
|
65 |     c_int, close, dup2, fork, strncat, getpid, open, setgid, setsid, setuid, umask, write,
|                               ~~~~~~~
help: a similar name exists in the module
|
65 |     c_int, close, dup2, fork, ftruncate, getpid, open, getpid, setsid, setuid, umask, write,
|                                                        ~~~~~~
help: a similar name exists in the module
|
65 |     c_int, close, dup2, fork, ftruncate, getpid, open, setgid, getpid, setuid, umask, write,
|                                                                ~~~~~~
help: a similar name exists in the module
|
65 |     c_int, close, dup2, fork, ftruncate, getpid, open, setgid, setsid, getpid, umask, write,
|                                                                        ~~~~~~
error[E0432]: unresolved imports libc::gid_t, libc::mode_t, libc::uid_t
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:68:16
|
68 | pub use libc::{gid_t, mode_t, uid_t};
|                ^^^^^  ^^^^^^  ^^^^^ no uid_t in the root
|                |      |
|                |      no mode_t in the root
|                no gid_t in the root
error[E0412]: cannot find type uid_t in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:18:19
|
18 |     pw_uid: libc::uid_t,
|                   ^^^^^ not found in libc
error[E0412]: cannot find type gid_t in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:19:19
|
19 |     pw_gid: libc::gid_t,
|                   ^^^^^ not found in libc
error[E0412]: cannot find type gid_t in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:30:19
|
30 |     gr_gid: libc::gid_t,
|                   ^^^^^ not found in libc
error[E0412]: cannot find type gid_t in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:41:63
|
41 | pub unsafe fn get_gid_by_name(name: &CString) -> Optionlibc::gid_t {
|                                                               ^^^^^ not found in libc
error[E0412]: cannot find type uid_t in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:51:63
|
51 | pub unsafe fn get_uid_by_name(name: &CString) -> Optionlibc::uid_t {
|                                                               ^^^^^ not found in libc
error[E0425]: cannot find value STDIN_FILENO in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:466:25
|
466 |     process_stdio(libc::STDIN_FILENO, stdin)?;
|                         ^^^^^^^^^^^^ not found in libc
error[E0425]: cannot find value STDOUT_FILENO in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:467:25
|
467 |     process_stdio(libc::STDOUT_FILENO, stdout)?;
|                         ^^^^^^^^^^^^^ not found in libc
error[E0425]: cannot find value STDERR_FILENO in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:468:25
|
468 |     process_stdio(libc::STDERR_FILENO, stderr)?;
|                         ^^^^^^^^^^^^^ not found in libc
error[E0425]: cannot find function chown in crate libc
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:527:15
|
527 |         libc::chown(path_c.as_ptr(), uid, gid),
|               ^^^^^ not found in libc
Compiling crossbeam-channel v0.5.4
error[E0283]: type annotations needed
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:177:10
|
177 | impl<'a> From<&'a str> for User {
|          ^^^^^^^^^^^^^ cannot infer type for enum User
|
note: multiple impls satisfying User: From<&'a str> found
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:177:1
|
177 | impl<'a> From<&'a str> for User {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
183 | impl From<uid_t> for User {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0283]: type annotations needed
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:196:10
|
196 | impl<'a> From<&'a str> for Group {
|          ^^^^^^^^^^^^^ cannot infer type for enum Group
|
note: multiple impls satisfying Group: From<&'a str> found
--> C:\Users\chris.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:196:1
|
196 | impl<'a> From<&'a str> for Group {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
202 | impl From<gid_t> for Group {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0283, E0412, E0425, E0432, E0433.
For more information about an error, try rustc --explain E0283.
error: could not compile daemonize due to 15 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile kak-lsp v12.2.1-snapshot (C:\cygwin64\home\chris\Code\builds\configuration\kak\plugins\kak-lsp), intermediate artifacts can be found at C:\cygwin64\home\chris\Code\builds\configuration\kak\plugins\kak-lsp\target
DONE

If this just isn't supported, that's totally fine. I do think it would be good to document that somewhere in the README though. Thanks!

Sure, lemme dust off my windows box.
If it's just about daemonize then a fix should be straighforward. We only use it to spawn the long-lived controller process.

I can't be sure that's the only problem, but I hope it is. Thank you for looking into it!

Ok for cygwin we'd need to

replace unix sockets (see UnixStream) with another IPC mechanism (TCP?) on windows
daemonize can probably just be dropped on windows
replace/drop missing libc functions (these should be easy)

mkstemp
mkfifo
umask

We should probably support cygwin, though I wonder if anyone would use that (does it have an advantage over WSL?).
I think READMEs usually only list supported platforms, because there are many more unsupported ones. Though a small note about prominent unsupported ones like Cygwin won't hurt.

 I work on a desktop application in Go that targets Linux, macOS, and Windows. I do most of my development work from Linux in Kakoune, where support is great. However, sometimes I need to write code that is platform-specific for any of the three platforms. On macOS, kakoune still works great. On Windows, I can run kak in WSL, but I encounter problems:

constant problems with trying to share a directory between WSL and the windows host system (I need to compile for Windows, after all, which is best done outside of WSL)
gopls initializes for Linux because WSL is Linux, meaning that I fight a mostly-useless LSP integration when working on the Windows platform code.

I decided to try Cygwin because Go can properly target GOOS=windows there, but Kakoune supports it as a runtime. I also think that I'll have fewer problems with git directory state this way.
One can certainly argue that this is a problem with gopls, as it doesn't seem to support running for GOOS values other than the current OS, but I'd also need to configure a cross-compiler toolchain for native code within WSL, which is a second huge pain.
So... If Cygwin were supported, it would benefit me when having to write code that actually targets Windows, as I don't need to cross-compile said code from within WSL. However, it certainly sounds like it's work for y'all, and I'm not in a position to help other than to test. If you decide the cost/benefit isn't worth it, I'd be happy for it to be documented anywhere. I searched the entire repo for references to Cygwin before opening this issue, and I couldn't find anything definitive about its support.

thanks, that sounds like a good use case.
Adding (at least hacky) Cygwin support shouldn't be much work, I'll get access to my windows machine soon (my VM is too slow).

constant problems with trying to share a directory between WSL and the windows host system

I'd keep everything in WSL and only place the output binary somewhere windows can access

One can certainly argue that this is a problem with gopls, as it doesn't seem to support running for GOOS values other than the current OS,

After some random initial failures, at least build tags seem to work fine for me on Linux:
$ cat foo_linux.go
//go:build linux

package main

func foo() {
}
$ cat foo_windows.go
//go:build windows

package main

func foo() {
}
$ cat main.go
package main

func main() {
	foo()
}
$ GOOS=windows kak main.go
# lsp-definition will jump to the windows version

but I'd also need to configure a cross-compiler toolchain for native code within WSL,

you mean for non-Go code? Go cross compilation should be pretty simple

thanks, that sounds like a good use case. Adding (at least hacky) Cygwin support shouldn't be much work, I'll get access to my windows machine soon (my VM is too slow).

constant problems with trying to share a directory between WSL and the windows host system

I'd keep everything in WSL and only place the output binary somewhere windows can access

I failed to add that this project has C dependencies because it directly interfaces with Windows APIs. Because of that, I need to compile Go, C, and C++. Cross-compiling from within WSL is a big pain, hence my desire to work outside of it.

One can certainly argue that this is a problem with gopls, as it doesn't seem to support running for GOOS values other than the current OS,

Today I learned that gopls honors GOOS. I couldn't find any documentation about that at all. Perhaps I just didn't look in the right places?
Anyway, I'd still need to get a functional cross-compilation toolchain within WSL for running gopls with GOOS=windows to actually work. For projects without native dependencies, the situation is much easier. :D
Thanks for the thorough investigation on this!

Ok I got kak-lsp+gopls running on, see the cygwin branch.
(Some workarounds are pretty dirty and I disabled some features on windows for now.)
On my Windows, it is unusably slow (while plain kak is fine). Can you test if it's fast enough for you?
If not, there's a pretty easy way to speed things up, see https://github.com/kak-lsp/kak-lsp/issues/553 or https://github.com/tomKPZ/pykak/.
To give some figures: on my linux system echo nop | kak -p session takes 2.8 milliseconds whereas on the windows VM it's > 100 milliseconds.
BTW to run kak directly from a git worktree, we need to enable symlink support windows and git.
I used choco to install most packages via cygwin, so for example choco install gcc-g++ --source=cygwin. Also cygwin-devel is required for glibc headers. For rust/go I used the official installers. Rust requires installing Visual Studio, rustup has pretty nice instructions.

I'll give this a shot on Monday. Thank you!

Sorry, I haven't been able to try this yet. I think I will have a good chance tomorrow morning though.

Okay, running with kak-lsp enabled is unusably slow. With windows in which lsp is enabled open, there's multi-second latency on every keystroke. I'm not sure how to productively time the various background interactions though.
In cygwin I get this from your timing example:
$ time (echo nop | kak -p ses)

real    0m0.029s
user    0m0.000s
sys     0m0.015s

So I think non-virtualized windows is an order or magnitude slower than linux, but not so bad as your VM.

BTW to run kak directly from a git worktree, we need to enable symlink support windows and git.

I'm not certain that I understand what you mean about running directly from a worktree. Can you elaborate?

Alright. Maybe the overhead comes from spawning shell and kak processes, we can try to get rid of that

I'm not certain that I understand what you mean about running directly from a worktree. Can you elaborate?

If you run /path/to/kakoune/src/kak (in lieu of installing it with make install)

If you run /path/to/kakoune/src/kak (in lieu of installing it with make install)

I did install it, but I also enabled symlinks. Hopefully it's a nonissue. :D

improving cygwin performance (by removing shell calls) is still on the roadmap but it's a large change, I need to set aside time for that

I would sincerely appreciate the work if you chose to do it, but I'm also only one person asking for this. I understand if it's not a priority. :D

but I'm also only one person asking for this.

actually it seems that slowness to start a sh process is also an issue on macOS.
That has been fixed in latest master for the kak -> kak-lsp direction. With the default config are no more shell calls in hooks.
There are still kak -p processes but those are async so should not block the UI.
In future we can also get rid of those by writing to Kakoune's socket directly but that should probably be accompanied by some compatibility check.
I didn't test it yet on Windows but things might just be working fine now.

Nevermind I saw that the changes in the cygwin branch still need to be merged.
I can do that, it shouldn't take much time; maybe LMK if you'd still use this

If LSP worked in Cygwin without staggering performance penalties, I would use it in a heartbeat. I'm still very much interested.


Fix metrics for all MGMN tests

After https://github.com/NVIDIA/JAX-Toolbox/pull/509 was merged, the metrics were broken since there was an unexpected number of hyphens. This obtains the job name more robustly by splitting on the GITHUB_RUN_ID, which all experiment dirs should have.
This also introduces --output_json_path to be more explicit

Moved to draft as I am debugging why rosetta tests aren't finding metric artifacts

Found the issue with rosetta-t5x, turns out it was still using v3 actions. I also found that we need to add size_guidance to the TB api, otherwise we can have failures b/c TB tries to be efficient and not load all events


Restrict 3389 access in examples.

[Enter feedback here]
Noticed on the examples given for building the networks it shows the NSG's as allowing 3389 (RDP) from the internet.  Shouldn't this be removed since this would be inviting attacks to these VM's?  At a minimum there should be an NSG/Firewall rule where 3389 is only allowed from known locations..

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

ID: 1c9b64f0-1508-b8ff-09a9-794c5c783b1d
Version Independent ID: f475ac4f-fc06-0d9a-014f-8fbfde849c12
Content: Azure DMZ Example – Build a Simple DMZ with NSGs
Content Source: articles/virtual-network/virtual-networks-dmz-nsg.md
Service: virtual-network
GitHub Login: @tracsman
Microsoft Alias: jonor

@bodowney Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Only Microsoft employees can close issues or pull requests via commenting in this repo.

#please-close

Only Microsoft employees can close issues or pull requests via commenting in this repo.

Content no longer exists #please-close


[Pagination]: Option to generate <a> instead of <button>

Description
The <UPagination generates <button> elements and attaches an on-click event handler to update the page v-model.
One shortcoming with the is that when you nuxt generate, the Nitro crawler does not see the pagination links and can't follow them, leading to only the first page being generated (or at least that's my understanding). I think that would be same issue with Google bots not being able to identify pagination links.
The feature I am requesting is to add a prop or a few props that work together to add the functionality to generate <a>s instead of <button>s with corresponding pathname or query params.
Now, there are 2 ways I can think someone would implement pagination in the URL.

query params: /category/catname?page=4
pathname: /category/catname/4

Thought?
Additional context
No response

I think it would be nice to migrate from <button to <a for all cases but the <UButton would need the correct href.

Possible solution could be to expose a slot with props to give control to the user on how they want to render the links.

@benjamincanac I noticed that UButton supports the link mode by default. I want to create a PR for this issue to add more properties support for UButton in Pagination. Like doing it as follows:
<UPagination
  v-model="page"
  :page-count="5"
  :total="items.length"
  :link="{
    to: (page) => `/category/catname?page=${page}`
    _target="_self"
  }" />


Container::withPooledConnection doesn't release connection when closure throws

Title should say it all.
possible fix: append
.catchMap {
          error in
          try self.releasePooledConnection(conn, to: database)
          throw error
        }

This was fixed in #25, thanks!