broken link in elevation.yml

hey all, I found a 404 on the elevation documentation page when you try to click on the "edit on github" link.
I believe that a line in elevation.yml needs to be changed from
docs_base_url: https://github.com/valhalla/valhalla-docs/tree/matrix-help
to
docs_base_url: https://github.com/valhalla/valhalla-docs/blob/master/elevation/

Thanks!


InputFile is not defined

Hi,
How can we include "InputFile" to use the method InputFile.byUrl('URL', 'image.jpg')?
Many thanks,
Yuri

@yuri92
Fixed that!

hi
how can i include it!?
Error: Cannot find module './InputFile'
TypeError: Cannot read property 'byFilePath' of undefined
ReferenceError: InputFile is not defined
thanks a lot


Revert "Banner research panel"

Reverts alphagov/frontend#3445 to remove the banner on /bank-holidays
The sign ups are more than enough on the linked to studies.
See also https://github.com/alphagov/collections/pull/3111
Trello

@hannako  Oh damn didn't spot that - ok I'll rework this. Thanks!


chore(deps): update common-dev-assets digest to a356bb7

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
23f7cc7 -> a356bb7

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

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

GitHub release
v3.1.2

Your semantic-release bot :package::rocket:


[UPDATE] pull.md -> merge pull.md & pullAll.md.

Description

Resolves #244

remove pullAll and update pull to work with any amount of values or an array, so we have a more general-use-case function without cluttering the list.

pull
Mutates the original array to filter out the values specified.
Use Array.filter() and Array.includes() to pull out the values that are not needed.
Use Array.length = 0 to mutate the passed in array by resetting it's length to zero and Array.push() to re-populate it with only the pulled values.
(For a snippet that does not mutate the original array see without)
const pull = (arr, ...args) => {
  let pulled = arr.filter((v, i) => !args.toString().split(',').includes(v));
  arr.length = 0; pulled.forEach(v => arr.push(v));
};

// let myArray1 = ['a', 'b', 'c', 'a', 'b', 'c'];
// pull(myArray1, 'a', 'c');
// console.log(myArray1) -> [ 'b', 'b' ]

// let myArray2 = ['a', 'b', 'c', 'a', 'b', 'c'];
// pull(myArray2, ['a', 'c']);
// console.log(myArray2) -> [ 'b', 'b' ]

Types of changes

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

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have checked that there isn't any PR doing the same
[x] I have read the CONTRIBUTING document.

No problem. Decided to update this snippet. Too hacky 😭 😞


Nutils for offline use

In https://github.com/precice/vm/pull/71, I removed Nutils as tutorials now install it on first run.
However, we still sometimes need to run Nutils in offline environments (e.g., a course during a conference, in a remote room, with strange Wi-Fi access, if at all).
Maybe having a default Nutils installation isn't a bad idea after all.

Are there really cases, where we have no internet? We then probably have more problems :D
Isn't there a way to cache things from PyPI without installing?
Having user-wide installations of Python packages will anyway be discouraged eventually, so what we have right now sounds more sustainable to me.

The main case I think is that externals come to a conference in Stuttgart. Is there guest wlwn there?

Let's ignore this for now and reopen if we see an actual issue in the wild.


initial setting

Hello I am struggling to make it work, I'm using XDK, and imported the repository and added the script:
function video(){
var videoUrl = "rtsp://streaming.xxxxxx.com.br:1935/xxxx/xxxxx";
// Just play a video
window.plugins.streamingMedia.playVideo(videoUrl);
// Play a video with callbacks
var options = {
successCallback: function() {
alert("Video was closed without error.");
},
errorCallback: function(errMsg) {
alert("Error! " + errMsg);
}
};
window.plugins.streamingMedia.playVideo(videoUrl, options);
}
but nothing happens .. Anyone know what else left to do?

Did you get this working - our team is also facing this same issue...


An error was reported when I installed pstools

dear author: i've installed g++ and zlib, but an error was reported when I installed pstools:
/home/miniconda3/bin/x86_64-conda-linux-gnu-c++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/miniconda3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/miniconda3/include  -c -o hic_switch_error.o hic_switch_error.cpp
hic_switch_error.cpp: In function 'void get_switch_error(pldat_t*, bseq_file_t*, bseq_file_t*, std::map<std::__cxx11::basic_string, std::__cxx11::basic_string >)':
hic_switch_error.cpp:538:31: error: unable to find string literal operator 'operator""PRIu64' with 'const char [13]', 'long unsigned int' arguments
printf("Switch at %"PRIu64"\n", condensed_counting[p].first);
^~~~
hic_switch_error.cpp:541:33: error: unable to find string literal operator 'operator""PRIu64' with 'const char [15]', 'long unsigned int' arguments
printf("Unswitch at %"PRIu64"\n", condensed_counting[p].first);
^~~~
hic_switch_error.cpp:564:31: error: unable to find string literal operator 'operator""PRIu64' with 'const char [15]', 'long unsigned int' arguments
printf("Unswitched: %"PRIu64"\n", total_vars - hamming_distance);
^~~~
hic_switch_error.cpp:565:29: error: unable to find string literal operator 'operator""PRIu64' with 'const char [13]', 'long unsigned int' arguments
printf("Switched: %"PRIu64"\n", hamming_distance);
^~~~
hic_switch_error.cpp:567:40: error: unable to find string literal operator 'operator""PRIu64' with 'const char [38]', 'long unsigned int' arguments
printf("Switch error number: %"PRIu64", rate: %.4f%%\n", switch_error_count, ((double) switch_error_count)/ (condensed_counting.size()-1) * 100);
^~~~~~~~~~~~~~~~~~
hic_switch_error.cpp:595:40: error: unable to find string literal operator 'operator""PRIu64' with 'const char [25]', 'long unsigned int' arguments
printf("Overall total length: %"PRIu64"\n",overall_total_length);
^~~~
hic_switch_error.cpp:596:40: error: unable to find string literal operator 'operator""PRIu64' with 'const char [24]', 'long unsigned int' arguments
printf("\nOverall Unswitched: %"PRIu64"\n", overall_total_vars - overall_hamming_distance);
^~~~
hic_switch_error.cpp:597:36: error: unable to find string literal operator 'operator""PRIu64' with 'const char [21]', 'long unsigned int' arguments
printf("Overall Switched: %"PRIu64"\n", overall_hamming_distance);
^~~~
hic_switch_error.cpp:599:47: error: unable to find string literal operator 'operator""PRIu64' with 'const char [46]', 'long unsigned int' arguments
printf("Overall Switch error number: %"PRIu64", rate: %.4f%%\n", overall_switch_error_count, ((double) overall_switch_error_count)/ overall_potiential_switch_count * 100);
^~~~~~~~~~~~~~~~~~
make: *** [: hic_switch_error.o] Error 1

Please see https://github.com/shilpagarg/DipAsm/issues/16.

Please see https://github.com/shilpagarg/DipAsm/issues/16.


Adding Taproot descriptors to core

Hi,
This is part of the code i've been working on as part of the residency,
Adding output descriptors to sipa's taproot branch.
Still missing some more unit tests and a bunch of functional tests (thinking of writing some descriptor generator for the tests)
Any kind of review is more than welcome as this PR can't be opened directly to core anytime soon (at the very least taproot should be merged if not even activated)
In general the descriptors look something like this:
tap(INTERNAL_KEY, {pk(KEY1),{{pk(KEY3),pk(KEY3)},pkh(KEY2)}})
Concrete example:
tap(KwXyp3nhG2ezACSj4fj1fSPVXeArbcGhbj7QSJ3Ka9tkQrE18gPH,{pk(L47CwsA9469CtukSyzC3QM3X4Gdqa5VE116C8WYzdx4BwW13bXZ8),pkh(L2tcd8jiG6j66M2GLCXDmwqsJTJW9NhGopovksyaFwQxz3gkFjxk)})

tap(031e34802508ce0bbabb71935832c92129c6df82143a924d731c43362495111319,{pk(023e93f827793706dffdca946b64842f69c336c8dd78f32d716ee7e77dfe119418),pkh(02e72a44840fccb573427d9a65d7ff137a1d83df576cfdfaad2f6ebdf56c3c24d5)})

P.S. Currently this does not support signing as adding signing support now will require a lot of changes to wallet format(saving merkle paths etc.) which will be way way easier with #16528 (native descriptors) so i'll wait for that to get merged.

Sipa has updated the taproot branch based on your rebase. Do you want to rebase this PR on the taproot branch here: https://github.com/ChaincodeResidency/bitcoin/tree/taproot ?


Proof of Concept - Playwright

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines
[x] tests are included
[x] documentation is changed or added

Description of change
Proof of concept for Playwright test harness integration into uPortal-start.
Initial round of tests focus on an upcoming feature in uPortal, the portal-list api.
Near team goals:

Align on overall Playwright integration Gradle tasks / flow
Ensure tests are repeatable and can be run in parallel
Install Playwright and run tests as part of the PR and main branch CI flows

Error showing in CI right now is also happening on master, and appears to be unrelated to these changes
Caused by: org.gradle.api.UncheckedIOException: java.io.IOException: Unable to delete file 'D:\a\uPortal-start\uPortal-start\.gradle\tomcat\logs\catalina.2022-06-13.log'

https://github.com/uPortal-Project/uPortal-start/runs/6866142583?check_suite_focus=true#step:8:381

Is this at a point where we could add part (or all of this) to continuous integration (GitHub actions)?

Not yet, since the portlet-list API has not yet been merged into the main branch of uPortal.

Not yet, since the portlet-list API has not yet been merged into the main branch of uPortal.

The tsc, type-coverage, and eslint steps are generic enough for that to not matter? 🤔
But I take your point that we can't run playwright itself on the (unmerged) API yet.

Not yet, since the portlet-list API has not yet been merged into the main branch of uPortal.

The tsc, type-coverage, and eslint steps are generic enough for that to not matter? 🤔 But I take your point that we can't run playwright itself on the (unmerged) API yet.

Good point - Setting up the test harness has nothing to do with the unmerged APIs, so that's not a blocker.
We can also stand up a quick login / logout test so something is run.

This PR no longer is dependent on the portlet-lists api.  It has a small number of page (ux) and api tests.

merge conflict is now fixed.
I'll add playwrightRun into the CI flow.

hmm the tests are not finding the expected data.  taking a look...

Setting aside the effort to include playwright in the CI flow for now. Tracked via https://github.com/uPortal-Project/uPortal-start/issues/574 .


Drop Custom Device from Routing and Faulting name in System Explorer

Routing and Faulting Custom Device name needs to be abbreviated to Routing and Faulting in System Explorer tree.

Nevermind. I was loading a previously saved sys def. :p


amplitude-react-native depends upon React-Core, which does not define modules

Hi,
I'm receiving this error even after doing everything from the #46.

I've done all of these:
pod repo update && pod install pod install --repo update pod update amplitude-react-native && pod update Amplitude pod cache clean --all && pod install
When that didn't work, I deleted the Pods folder and Podfile.lock and then reinstalled them, but I'm still running into this same error.
If I try to set the use_modular_headers! in my Podfile, it breaks other packages. Do you have any idea how to fix this error?

Hey payucads.  This is caused by the version of react native not having native swift support.  I've seen this exact error and the solution does involve use_modular_headers, just needs to be turned off for certain pods.
I've laid out the solution here
Let me know if this is still causing you problems after trying what I've linked

@kelsonpw thank you buddy! you're a lifesaver 😄

@payucads not a problem at all!  It's important to me that people are able to use this library without talk much effort even if they have an older RN version.   Any chance you'd be willing to share what versions youre project is on?

@kelsonpw I'm on RN 0.63 but I'm getting the same error. I can't enable use_modular_module! globally because glog, Folly, and DoubleConversion are defined in require_relative '../node_modules/react-native/scripts/react_native_pods' now. Any idea why this is still happening on v0.63?


Issues on codon_usage_psite: "error in evaluating the argument 'x' in selecting a method for function 'subseq': subscript contains invalid names"

Hi everyone,
I am having issue trying to run codon_usage_psite function, similar to what some people experienced before:
Import genomic features from the file as a GRanges object ... OK
Prepare the 'metadata' data frame ... OK
Make the TxDb object ...
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'subseq': subscript contains invalid names

The code involved:
example <- codon_usage_psite(reads_psite_list, annotation = annotation_dt, sample = c(UNTREATED, TREATED), fastapath = PATH/TO/GENOME/FASTA, gtfpath = PATH/TO/GTF, fasta_genome = TRUE, refseq_sep = "|")
I used the human primary assembly fasta and gtf from GENCODE. I used the same reference for alignment with STAR, using --quantMode TranscriptomeSAM. I used the *Aligned.toTranscriptome.out.bam files to generate the reads_list, and eventually the reads_psite_list.
Could anyone please advise on how to troubleshoot this issue? Thank you so much in advance!
Best regards,
Theo

Hi Theo,
thank you for using riboWaltz.
As you mentioned, this seems to be a common bottleneck for many users.
Could you please paste here a couple of sequence names from the FASTA file as well as the first rows of the GTF, of one element of reads_psite_list and of annotation_dt? As usual, my guess is that the GTF and the FASTA file are not perfectly matching if we look at the names of the chromosomes/genes/transcripts.
This way I can try to figure out what is going on.
Best,
Fabio

Hi Fabio,
Thank you again for your help!
Some excerpts from the FASTA file:
$ cat GRCh38.primary_assembly.genome.fa | grep ">"
>chr1 1
>chr2 2
>chr3 3
...
>chrX X
>chrY Y
>chrM MT
>GL000008.2 GL000008.2
>GL000009.2 GL000009.2
>GL000194.1 GL000194.1
...

And some of the first rows of GTF:
$ head gencode.v43.primary_assembly.basic.annotation.gtf
chr1    HAVANA  gene    11869   14409   .       +       .       gene_id "ENSG00000290825.1"; gene_type "lncRNA"; gene_name "DDX11L2"; level 2; tag "overlaps_pseudogene";
chr1    HAVANA  transcript      11869   14409   .       +       .       gene_id "ENSG00000290825.1"; transcript_id "ENST00000456328.2"; gene_type "lncRNA"; gene_name "DDX11L2"; transcript_type "lncRNA"; transcript_name "DDX11L2-202"; level 2; transcript_support_level "1"; tag "basic"; tag "Ensembl_canonical"; havana_transcript "OTTHUMT00000362751.1";
chr1    HAVANA  exon    11869   12227   .       +       .       gene_id "ENSG00000290825.1"; transcript_id "ENST00000456328.2"; gene_type "lncRNA"; gene_name "DDX11L2"; transcript_type "lncRNA"; transcript_name "DDX11L2-202"; exon_number 1; exon_id "ENSE00002234944.1"; level 2; transcript_support_level "1"; tag "basic"; tag "Ensembl_canonical"; havana_transcript "OTTHUMT00000362751.1";
chr1    HAVANA  exon    12613   12721   .       +       .       gene_id "ENSG00000290825.1"; transcript_id "ENST00000456328.2"; gene_type "lncRNA"; gene_name "DDX11L2"; transcript_type "lncRNA"; transcript_name "DDX11L2-202"; exon_number 2; exon_id "ENSE00003582793.1"; level 2; transcript_support_level "1"; tag "basic"; tag "Ensembl_canonical"; havana_transcript "OTTHUMT00000362751.1";

Example of reads_psite_list$UNTREATED:
transcript end5 psite end3 length cds_start cds_stop psite_from_start psite_from_stop psite_region
1: ENST00000000233.10   19    31   46     28        89      631              -58            -600         5utr
2: ENST00000000233.10   31    42   57     27        89      631              -47            -589         5utr
3: ENST00000000233.10   39    50   67     29        89      631              -39            -581         5utr
4: ENST00000000233.10   64    76   88     25        89      631              -13            -555         5utr
5: ENST00000000233.10   75    87  107     33        89      631               -2            -544         5utr
...
And annotation_dt:
transcript l_tr l_utr5 l_cds l_utr3
1: ENST00000000233.10 1032     88   543    401
2:  ENST00000000412.8 2450    159   834   1457
3: ENST00000000442.11 2274    225  1272    777
4:  ENST00000001008.6 3715    170  1380   2165
5:  ENST00000001146.7 4556     28  1539   2989
...
Hope this is helpful!
Best regards,
Theo

Hi Fabio,
The error seems to come from these lines in codon_usage_psite():
for (samp in sample) {
  if (!(gsub("site", "_site_codon", site) %in% colnames(data[[samp]]))) {
      if (site == "psite" & !("p_site_codon" %in% colnames(data[[samp]]))) {
        data[[samp]] <- data[[samp]][, `:=`(p_site_codon,
          as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],
            start = data[[samp]]$psite, end = data[[samp]]$psite +
              2)))]
      }
      if (site == "asite" & !("a_site_codon" %in% colnames(data[[samp]]))) {
        data[[samp]] <- data[[samp]][, `:=`(a_site_codon,
          as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],
            start = data[[samp]]$psite + 3, end = data[[samp]]$psite +
              5)))]
      }
      if (site == "esite" & !("e_site_codon" %in% colnames(data[[samp]]))) {
        data[[samp]] <- data[[samp]][, `:=`(e_site_codon,
          as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],
            start = data[[samp]]$psite - 3, end = data[[samp]]$psite -
              1)))]
      }
  }

When I did traceback(), this odd message comes up:

21: h(simpleError(msg, call))
20: .handleSimpleError(function (cond)
.Internal(C_tryCatchHelper(addr, 1L, cond)), "subscript contains invalid names",
base::quote(NULL))
19: stop(wmsg(...), call. = FALSE)
18: .subscript_error("subscript contains invalid ", what)
17: NSBS(i, x, exact = exact, strict.upper.bound = !allow.append,
allow.NAs = allow.NAs)
16: NSBS(i, x, exact = exact, strict.upper.bound = !allow.append,
allow.NAs = allow.NAs)
15: normalizeSingleBracketSubscript(i, x, as.NSBS = TRUE)
14: .nextMethod(x = x, i = i)
13: callNextMethod()
12: .dropUnusedPoolElts(callNextMethod())
11: extractROWS(x, i)
10: extractROWS(x, i)
9: subset_along_ROWS(x, i, drop = drop)
8: sequences[as.character(data[[samp]]$transcript)]
7: sequences[as.character(data[[samp]]$transcript)]
6: Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],
start = data[[samp]]$psite, end = data[[samp]]$psite + 2)
5: eval(jsub, SDenv, parent.frame())
4: eval(jsub, SDenv, parent.frame())
3: [.data.table(data[[samp]], , :=(p_site_codon, as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],
start = data[[samp]]$psite, end = data[[samp]]$psite + 2))))
2: data[[samp]][, :=(p_site_codon, as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],
start = data[[samp]]$psite, end = data[[samp]]$psite + 2)))]
1: codon_usage_psite(reads_psite_list, annotation = annotation_dt,
sample = c("Nterm_dep_rep1_RFP_Aligned.toTranscriptome.out",
"wt_dep_rep1_RFP_Aligned.toTranscriptome.out"), fastapath = "data/Try2/GRCh38.primary_assembly.genome.fa",
gtfpath = "data/Try2/gencode.v43.primary_assembly.basic.annotation.gtf",
fasta_genome = TRUE, refseq_sep = "|")

I hope that this can be helpful.. Thank you,
Theo

Hi Theo,
from your previous messages, I think (hope) you should be able to get rid of the error by running
example <- codon_usage_psite(reads_psite_list, annotation = annotation_dt, sample = c(UNTREATED, TREATED), fastapath = PATH/TO/GENOME/FASTA, gtfpath = PATH/TO/GTF, fasta_genome = TRUE, refseq_sep = " ")
As you can see, I set parameter refseq_sep , which was previously set to "|", to " " (blank space). The reason for this is that chromosomes are named "chr1 1", "chr2 2" etc. in your FASTA file and just "chr1", "chr2" etc. in your GTF. So to discard everything which is redundant in the FASTA file, you should split the string by blank space and than keep the first element (this is what refseq_sep is meant for).
Let me know if this might be the solution.
Best
Fabio

It works wonderfully, thank you!
The refseq_sep then refers to the fasta file instead of the gtf file.
Another question: is it possible to average out replicates and do a codon comparison, similar to having a nested list input in rlength_distr()? I'm trying to look at the code but unfortunately it is beyond me..
Thank you,
Theo

Hi Fabio! I'm getting the same error even though I supply the same FASTA/GTF as i used to construct the STAR database, which I then mapped using the -quantMode TranscriptomeSAM flag. I can successfully load the data into ribowaltz, calculate p-site offsets and metagene plot but I'm having issues with this particular function.
This is the command i use to generate the STAR db:
STAR --runMode genomeGenerate \ --runThreadN 16 \ --genomeDir /mnt/disks/disk_1/fly/Index/Fullindex/ \ --genomeFastaFiles /mnt/disks/disk_1/fly/Index/Drosophila_melanogaster.BDGP6.46.dna.primary_assembly.fa \ --sjdbGTFfile /mnt/disks/disk_1/immagina/fly/Index/Drosophila_melanogaster.BDGP6.46.113.gtf
And this is what I'm running in R:
example_cu_barplot <- codon_usage_psite(   data = reads_psite_list,   annotation = annot_dt,   sample = "fly",   plot_style = "facet",   fastapath = "../data/databases/fly/Drosophila_melanogaster.BDGP6.46.dna.primary_assembly.fa",   gtfpath = "../data/databases/fly/Drosophila_melanogaster.BDGP6.46.113.gtf",   fasta_genome = TRUE, )
Which then produces the following error and traceback:
Import genomic features from the file as a GRanges object ... OK
Prepare the 'metadata' data frame ... OK
Make the TxDb object ... OK
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'subseq': subscript contains invalid names
21: h(simpleError(msg, call)) 20: .handleSimpleError(function (cond)      .Internal(C_tryCatchHelper(addr, 1L, cond)), "subscript contains invalid names",          base::quote(NULL)) 19: stop(wmsg(...), call. = FALSE) 18: .subscript_error("subscript contains invalid ", what) 17: NSBS(i, x, exact = exact, strict.upper.bound = !allow.append,          allow.NAs = allow.NAs) 16: NSBS(i, x, exact = exact, strict.upper.bound = !allow.append,          allow.NAs = allow.NAs) 15: normalizeSingleBracketSubscript(i, x, as.NSBS = TRUE) 14: .nextMethod(x = x, i = i) 13: callNextMethod() 12: .dropUnusedPoolElts(callNextMethod()) 11: extractROWS(x, i) 10: extractROWS(x, i) 9: subset_along_ROWS(x, i, drop = drop) 8: sequences[as.character(data[[samp]]$transcript)] 7: sequences[as.character(data[[samp]]$transcript)] 6: Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],         start = data[[samp]]$psite, end = data[[samp]]$psite + 2) 5: eval(jsub, SDenv, parent.frame()) 4: eval(jsub, SDenv, parent.frame()) 3: [.data.table(data[[samp]], , :=(p_site_codon, as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],         start = data[[samp]]$psite, end = data[[samp]]$psite + 2)))) 2: data[[samp]][, :=(p_site_codon, as.character(Biostrings::subseq(sequences[as.character(data[[samp]]$transcript)],         start = data[[samp]]$psite, end = data[[samp]]$psite + 2)))] 1: codon_usage_psite(data = reads_psite_list, annotation = annot_dt,         sample = "fly", plot_style = "facet", fastapath = "../data/databases/fly/Drosophila_melanogaster.BDGP6.46.dna.primary_assembly.fa",         gtfpath = "../data/databases/fly/Drosophila_melanogaster.BDGP6.46.113.gtf",         fasta_genome = TRUE, )
As you can see, I'm using the same gtf/fasta combo for the alignment and for this function in RiboWaltz but still get the error.
Any help would be appreciated!

Hi Angelo,
did you try to play with the refseq_sep parameter?
It is aimed at discarding everything which is redundant in the name of the genes in the FASTA file. This is achieved by splitting the name string by blank space or other characters and keeping the first element (what usually is reported in the GTF, even if it is derived from the same repository).
Check the discussion above or similar issues for additional details.
Let me know if this might be the solution.
Best
Fabio


Latest pypi needed

I noticed that the main branch has already depend on the latest fsspec, but the release version was still 2023.8.0.

There was a 2023.12.0 release on December.


[Dx9] Incorrect clipping when the destination texture width is not a multiple of the tile size

For example, when the destination texture has a size of (536, 720), artifacts can be seen near the right edge. Not a case for Dx11.

The original Rust repo has got the same issue.


Support booleans, numbers, dates as parameters

Currently, methods like .set/.replace/.delete either take a string or a Term.
It would be nice if they also supported true, false, numbers, and dates.
Numbers might be tricky as it is not clear what datatype to cast them to. Booleans are easy.

For reference, I also needed similar behaviour recently, which is why I implemented this: https://github.com/rubensworks/rdf-literal.js
Only the date-like datatypes are not supported yet.
The other way around (converting Term to primitive) may also be useful here.

Sweet. @rubensworks Any plans of handling the Turtle-/SPARQL-encoding of literals as well?
I had forgotten how much work this was (https://github.com/RubenVerborgh/LDflex/commit/d386880c0377e11375a23660d5087b3bfdb00ba6).

Not sure if rdf-literal would be the best place for that. As it handles the translation between JS primitives and RDFJS terms, but what you need in d386880c0377e11375a23660d5087b3bfdb00ba6 is translation between RDFJS terms and Turtle/SPARQL terms. Perhaps rdf-string would be a better place to implement this encoding (no plans for this, but could make an issue).

Related: #38


tensorflow 2.0 tf.data cache

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): NO
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
TensorFlow installed from (source or binary): Binary pip3
TensorFlow version (use command below):  2.0.0.dev20190523
Python version: 3.5
CUDA/cuDNN version: 10/7
GPU model and memory: Titan V 12GB

Describe the current behavior
Whenever using dataset.cache("tmp_disk_file"), memory keeps increasing even though I save them into a disk file.
Describe the expected behavior
No memory usage difference with and without cache to disk.
Code to reproduce the issue
I don't have a code to regenerate the exact issue, but here is a pipeline sample.
list_of_tfrecords = [filename1, filename2, filename3]
# construct_dataset will form a pipeline to process data,
# at the end of the pipeline, cache that pipeline for file
list_of_datasets_to_cache = [construct_dataset(filename) for filename in list_of_tfrecords]
train_dataset = tf.data.experimental.sample_from_datasets(list_of_datasets_to_cache)

Note: the reason I'm doing this is I have a very expensive pipeline, I want to speed up the second epoch. There's better way doing this, but I want to do it this way because I'm doing cross-validation, and if I cache by forming a pipeline with all files, then I can't reuse the cache (I'm going to change to different folds next epoch - i.e. new dataset).

Will it be possible for you to present a minimal code snippet that can replicate the issue. This will help not only to understand the issue more clearly but also to proceed faster. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


UUIDConverter supports strings without hyphens

fixes #2343

Checklist:

[x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
[ ] Add or update relevant docs, in the docs folder and in code.
[x] Add an entry in CHANGES.rst summarizing the change and linking to the issue.
[x] Add .. versionchanged:: entries in any relevant code docs.
[x] Run pre-commit hooks and fix any issues.
[x] Run pytest and tox, no tests failed.

See issue for close reason.

OK, thanks


feat: support COMMIT_EDITMSG

Is your feature request related to a problem? Please describe.
In the same vein as #146, but here specifically when something like e.g. pre-commit-hooks fail.
 That way, if an operation fails, you can recover the commitmessage.
Describe alternatives you've considered
I couldn't come up with any alternatives.
Additional context
https://git-scm.com/docs/git-commit/2.2.3#Documentation/git-commit.txt-codeGITDIRCOMMITEDITMSGcode

As I understand it, convco should read COMMIT_EDITMSG and if it exist and is valid, use it instead of prompting the user for input.

Hmm, I understood it as existing more as a place to store a commit message if a commit action failed, and that it would be overwritten by the next attempt at committing.

This file contains the commit message of a commit in progress. If git commit exits due to an error before creating a commit, any commit message that has been provided by the user (e.g., in an editor session) will be available in this file, but will be overwritten by the next invocation of git commit.

Indeed, when git uses an editor it will open and truncate the .git/COMMIT_EDITMSG file. When the editor has saved the file, git will read the contents to read the content as the commit message.
In order to continue with this message after a commit failed, you have to run:
git commit -e --file=$(git rev-parse --git-dir)/COMMIT_EDITMSG

Convco is not run as  an editor for git, but calls git with the conventional message. As a consequence the message is not saved when the pre-commit hook failed.

I see 2 solutions:

convco commit can be used as a git editor, but this needs to make it work with a file argument to edit:
GIT_EDITOR='convco commit' git commit --edit
hint: Waiting for your editor to close the file... error: unexpected argument '/../convco/.git/COMMIT_EDITMSG' found
Usage: convco commit [OPTIONS] [-- <EXTRA_ARGS>...]
For more information, try '--help'.
error: There was a problem with the editor 'convco commit'.
Please supply the message using either -m or -F option.

convco implements the logic to write the results to .git/COMMIT_EDITMSG or .git/convco_msg and then calls git commit. It can recover from this file if it removes the file on a successfull git commit, as git is not cleaning up this file.

Any preferences?

I think option two is better IMO, not sure whether .git/COMMIT_EDITMSG or .git/convco_msg is best thou.

I think both can work with .git/convco_msg as default backup file. If the file exists and is a valid commit message convco will ask to accept/edit/reject it. The file will be removed if git was run successfully, unless it is .git/COMMIT_EDITMSG where convco will not call git commit as git will read it's contents to make the commit.

@cafkafk would you mind to test/review #159 ? It is a bit hacked together but it does what it needs to do.

@cafkafk would you mind to test/review #159 ? It is a bit hacked together but it does what it needs to do.

Yes sure thing!


Got error - 1st argument: invalid spec for pid or port, while calling :erlang.trace.

If I turn flame on in LiveDashboard and send a request to my Phoenix app, it printed errors.

>>>pid:#PID<0.1082.0>
>>>tracer:#PID<0.1082.0> alive?:true
>>>self:#PID<0.1087.0> alive?:true process_info:[
  current_function: {Process, :info, 1},
  initial_call: {:proc_lib, :init_p, 5},
  status: :running,
  message_queue_len: 0,
  links: [#PID<0.1085.0>],
  dictionary: [
    "$ancestors": [#PID<0.1085.0>, #PID<0.642.0>, #PID<0.641.0>,
     MyWeb.Endpoint, Owp.Supervisor, #PID<0.475.0>],
    "$meck_call": {:cowboy_handler, :execute},
    "$initial_call": {:cowboy_stream_h, :request_process, 3}
  ],
  trap_exit: false,
  error_handler: :error_handler,
  priority: :normal,
  group_leader: #PID<0.474.0>,
  total_heap_size: 2208,
  heap_size: 1598,
  stack_size: 30,
  reductions: 408,
  garbage_collection: [
    max_heap_size: %{error_logger: true, kill: true, size: 0},
    min_bin_vheap_size: 46422,
    min_heap_size: 233,
    fullsweep_after: 65535,
    minor_gcs: 4
  ],
  suspending: []
]
[error] ** can only have one tracer per process

[error] Ranch protocol #PID<0.1087.0> of listener OwpWeb.Endpoint.HTTP (connection #PID<0.1085.0>, stream id 1) terminated
an exception was raised:
    ** (ArgumentError) errors were found at the given arguments:

  * 1st argument: invalid spec for pid or port

        :erlang.trace(#PID<0.1087.0>, true, [{:tracer, #PID<0.1087.0>}, :call, :return_to, :running, :arity, :timestamp])
        (flame_on 0.7.0) lib/flame_on/capture/mock_function.ex:12: FlameOn.Capture.MockFunction.start_if_not_started/1
        (flame_on 0.7.0) lib/flame_on/capture/mock_function.ex:27: anonymous fn/3 in FlameOn.Capture.MockFunction.generate/3

Added some log to /lib/flame_on/capture/trace.ex.
defmodule FlameOn.Capture.Trace do
  alias FlameOn.Capture.Server

  @flags [:call, :return_to, :running, :arity, :timestamp]
  def start_trace(tracer) do
    IO.puts ">>>tracer:#{inspect(tracer, limit: :infinity, pretty: true)} alive?:#{Process.alive?(tracer)}"
    match_spec = [{:_, [], [{:message, {{:cp, {:caller}}}}]}]
    :erlang.trace_pattern(:on_load, match_spec, [:local])
    :erlang.trace_pattern({:_, :_, :_}, match_spec, [:local])
    IO.puts ">>>self:#{inspect(self(), limit: :infinity, pretty: true)} alive?:#{Process.alive?(self())} process_info:#{inspect(Process.info(self()), limit: :infinity, pretty: true)}"
    :erlang.trace(self(), true, [{:tracer, self()} | @flags])
  end

  def stop_trace do
    :erlang.trace(self(), false, [:all])
    Server.stop_trace()
  end
end

It says that the pid is valid and why does it keep complaining that the first argument is not valid?

@hongseokyoon what version of Elixir/Erlang are you running?


Ensure design matrix columns meet new Nilearn criteria

Whats the problem?
Nilearn recently changed the requirements for design matrix column names in https://github.com/nilearn/nilearn/pull/3025 which disallowed strings containing only numbers and strings with / as column names.
Getting rid of the numbers is no problem, I prefer meaningful annotation names anyway.
However, I think its common in MNE to use names like tapping/left or response/right. See https://mne.tools/dev/auto_tutorials/epochs/40_autogenerate_metadata.html?highlight=hed#keeping-only-the-first-events-of-a-group
But nilearn now requires that the column names pass the following test:
'response/right'.isidentifier()
# False

'response_right'.isidentifier()
# True

See lines: https://github.com/nilearn/nilearn/blob/ab9c68e502c4b92695cd658f5839a8207fd5e07e/nilearn/glm/first_level/hemodynamic_models.py#L428-L436
Whats the fix?
This PR checks that our design matrix column names are compatible with nilearn, and if they are not then prepends a t_ to force them to be valid.
The problem
This PR also changes / to _ in each design matrix column name, but this is not then harmonious with the rest of MNE. Further, it means that in some places of my script I use tapping/left and other places I will need to use tapping_left. This solution doesn't seem great, what is a better alternative?

We now know that we can not use the / symbol in the design matrix. So I will try and write some sort of sanitisation approach as suggested by larsoner and will use ___ to equal /.


Add testing framework for CLI tools.

This copies the testing harness from https://github.com/google/shaderc
to allow testing CLI tools.  Most of the setup is identical to the one
in shaderc, with small changes for naming and formatting.
New features needed for SPIRV-Tools include:

A new PlaceHolder subclass for spirv shaders.  This place holder
calls spirv-as to convert assembly input into SPIRV bytecode. This is
required for most tools in SPIRV-Tools.
A minimal testing file for testing basic functionality of spirv-opt.

I only added a very simple test for spirv-opt.  The patch was getting
too big for code review.
This PR is motivated by the fix for #1778.  The fix for that bug
includes tests that go in test/tools/opt.

@antiagainst @dneto0 ping.
The PR now has all the tests I wanted to add to spirv-opt.  Tests caught a few inconsistencies in flag processing and bugs in pass naming.
I will now add a test for the fix to #1778, but I need this PR merged first.

Looks like the linux bots are validation failures now? @alan-baker any idea why this would suddenly break?
[ RUN      ] Dim/ValidateCapability.Capability/456
/tmpfs/src/github/SPIRV-Tools/test/val/val_capability_test.cpp:1647: Failure
Expected equality of these values:
ExpectedResult(GetParam())
Which is: 0
ValidateInstructions(env)
Which is: -13
target env: SPIR-V 1.3
test code:
OpCapability GroupNonUniformShuffleRelative
OpCapability ImageBasic OpCapability Kernel OpMemoryModel Logical OpenCL  OpEntryPoint Kernel %func "compute" %voidt = OpTypeVoid %imgt = OpTypeImage %voidt 2D 0 0 0 0 Unknown %void_f = OpTypeFunction %voidt %func   = OpFunction %voidt None %void_f %label  = OpLabel           OpReturn           OpFunctionEnd
error: 7: Operand 3 of TypeImage requires one of these capabilities: ImageMSArray
%3 = OpTypeImage %void 2D 0 0 0 0 Unknown

@antiagainst @dneto0 This PR now fixes #1778 and #1817.  It's ready to review.

Rebased, re-tested and pushed as 03000a3a384fabf97da22d709e45e860aba86be1.


Can't run pretrained model v2

i trained v2,
and tried to run it with baseline/run_pretrained_interactive.py
also tried reinstall numpy and cloudpickle
i got:
    baselines git:(master) ✗ python3 -m pip install numpy==1.25.0
    Collecting numpy==1.25.0
      Downloading numpy-1.25.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (5.6 kB)
    Downloading numpy-1.25.0-cp311-cp311-macosx_11_0_arm64.whl (14.0 MB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 2.5 MB/s eta 0:00:00
    Installing collected packages: numpy
      Attempting uninstall: numpy
        Found existing installation: numpy 2.1.3
        Uninstalling numpy-2.1.3:
          Successfully uninstalled numpy-2.1.3
    Successfully installed numpy-1.25.0
    ➜  baselines git:(master) ✗ python3 -m pip install --upgrade cloudpickle

    Requirement already satisfied: cloudpickle in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (2.2.1)
    Collecting cloudpickle
      Using cached cloudpickle-3.1.0-py3-none-any.whl.metadata (7.0 kB)
    Using cached cloudpickle-3.1.0-py3-none-any.whl (22 kB)
    Installing collected packages: cloudpickle
      Attempting uninstall: cloudpickle
        Found existing installation: cloudpickle 2.2.1
        Uninstalling cloudpickle-2.2.1:
          Successfully uninstalled cloudpickle-2.2.1
    Successfully installed cloudpickle-3.1.0
    ➜  baselines git:(master) ✗ python3 run_pretrained_interactive.py
    UserWarning: Using SDL2 binaries from pysdl2-dll 2.28.0
    7331     pyboy.pyboy                    WARNING  The emulation speed might not be accurate when speed-target is higher than 5

    loading checkpoint
    Traceback (most recent call last):
      File "/Users/???/Programing/Fun/PokemonRedExperiments/baselines/run_pretrained_interactive.py", line 47, in <module>
        model = PPO.load(file_name, env=env, custom_objects={'lr_schedule': 0, 'clip_range': 0})
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/stable_baselines3/common/base_class.py", line 679, in load
        data, params, pytorch_variables = load_from_zip_file(
                                          ^^^^^^^^^^^^^^^^^^^
      File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/stable_baselines3/common/save_util.py", line 421, in load_from_zip_file
        data = json_to_data(json_data, custom_objects=custom_objects)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/stable_baselines3/common/save_util.py", line 164, in json_to_data
        deserialized_object = cloudpickle.loads(base64_object)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ModuleNotFoundError: No module named 'numpy._core'
    7464     pyboy.pyboy                    INFO     ###########################
    7464     pyboy.pyboy                    INFO     # Emulator is turning off #
    7464     pyboy.pyboy                    INFO     ###########################

Hi!
It looks like you have an issue with your numpy installation.
Is there a reason you manually installed 1.25.0? the 2.1.2 as listed in requirements.txt is what I used.


Can't disable the Noise suppression

Due to default feature of ACS (noise cancellation or noise suppression) I can't transmit the other sounds at the receiver end.
Is there any way I can achieve this using the nugget source in my Xamarin application.
I need to transmit bit audio to ACS but the feature discards it as noise.

Hey, if its the phone that does the noise cancellation(seems probable), you might be able to achieve this by raw media access: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-raw-media-access?pivots=platform-web
Im not sure everything is exposed in the android bindings, since async methods here needs manual attention.
So if you want to give it a go, I recommend trying it out on ios, and if succesfull, port to android and just let me know if anything is missing and i will add it.

I can't access the Raw media using the nuget source into my Xamarin application for the both platform Android and iOS.
Can you add the audio effects provided by Microsoft to the NuGet package?

I have spoken to Microsoft support and they provided feedback as ACS having the default capabilities to reduce background noise.
He also added that, for such requirement in the video calling feature I need to manage "Audio Effects".

I've requirement to transmit the audio using digital stethoscope into the ACS module.

I can't access the Raw media using the nuget source into my Xamarin application for the both platform Android and iOS.
Can you add the audio effects provided by Microsoft to the NuGet package?
I have spoken to Microsoft support and they provided feedback as ACS having the default capabilities to reduce background noise. He also added that, for such requirement in the video calling feature I need to manage "Audio Effects".

I've requirement to transmit the audio using digital stethoscope into the ACS module.

Did you guys find something that helped me solve the problem?

Hey, did you check out OutgoingAudioOptions on the CallOption? It seems that has the possibility to turn off NoiseSuppressionMode via the OutgoingAudioFilters.
Have not tried this myself, but I assume it should work?
Strangely, this does not seem to be supported by group-calls...

I can't add the iOS nugget for MAUI app and it throws an below mention error.
Error		Could not find a part of the path 'C:\Users\admin.nuget\packages\laerdal.maui.azurecommunicationcalling.ios\<IP_ADDRESS>\lib\net8.0-ios17.2\Laerdal.Maui.AzureCommunicationCalling.iOS.resources\AzureCommunicationCalling.xcframework\ios-arm64\AzureCommunicationCalling.framework\ACSMetalRenderer.metallib'.
Can you update the similar structure for Xamarin nuget for now, because my app still in a development face and I plant to convert into the MAUI version once completing all views.

Sorry, but supporting Xamarin is not going to happen... Especially seeing as it is not even supported by Microsoft...
You should probably convert to maui asap, no matter which communication solution you end up using...

Can you help me to resolved the iOS nugget installing issue with the MAUI app which I mention above.
The issue comes with all stable versions available for the iOS platform.

Sure. Are you targetting net8.0-ios? I just tried with a clean maui-app and it install fine?

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-ios'">
  <PackageReference Include="Laerdal.Maui.AzureCommunicationCalling.iOS" Version="<IP_ADDRESS>" />
</ItemGroup>

I try to install the iOS version with creating new project with targeting to .net 8.0 and also tested the similar things with multiple system as well whose having different visual studio versions.
But having the same issue.
Can you please share the project you have created, so that I can load it here.

I checked on mac as well, but couldn't add the nugget source.
When do you plan to release a new version for the iOS platform?

Sorry, but I checked again, and it installs fine in a new project...
(Tested both rider and visual studio on mac...)
Is your project targeting net8.0-ios ?
You are doing "new project" -> "maui" or "ios" ?
Sure you are up to date on xcode versions? (I think you need xcode 15 and ios sdk 17)

Yes I checked with creating the new MAUI project target to .net 8.0 and also I've the xcode 15.4 installed in mac.
Please check the attached file.
https://github.com/user-attachments/assets/74177c36-2eaf-4458-9a60-c3ccc01bc2e5
Can you please share your project so can I load it here and see whether it's working or not.

Hi. your video is from windows... I dont have access to any windows machines.. I just did new project like you did, but on a mac...

Tried to add the nugget source from Mac and its added successfully but when loading same project in windows it throws an error like " nugget doesn't exist."

I need to work on windows because of my app also support the Android version and it doesn't properly work in mac.
Is their any way I can add the nugget source on the windows machine or can you provide me the nugget source file so I can add it locally.

Ok, good. Its confirmed then, this is an issue with filenames that are too long for windows to handle...
I will fix this for the next release, but might take some time.
You will need to get your solution to compile on a mac if you want it released in the appstore?

Can you please share the approximate time when you are going to release the new version?

Have you guys made any plan for releasing the new version for iOS platform?
Currently my app already developed using the Xamarin.Forms and only I can convert if its working fine for the MAUI version with my requirement.
That would be great if you can provide the approximate time for new release.

Hey @tompi, still waiting for the latest release on the iOS.

Sorry about this, has been swamped in other work, will try to make en effort to compile a version without the long path problem. I assume the beta line is best for your use?


[5.8] Add some Relations, BelongsToOne, BelongsToThrough, HasOneThrough, MorhpToOne

This relations has been come up for wanted feature in this repo issue.

HasOneThrough
BelongsToThrough

If someone is looking for these relationships then
https://github.com/staudenmeir/belongs-to-through
https://github.com/ankurk91/laravel-eloquent-relationships

does no one continue this PR ? The BelongsToOne is somewhat useful for me right now.

BelongsToOne is absolutely nuts!
It MUST be in the framework core!


Database Rollback in one scenario

I am using btm as the Global transaction manager, I have one scenario where I have to rollback the database operation explicitly using rollback() method. when I do that it's erroring out saying can't rollback a resource enlisted in a global transaction. this is logical and I accept that. But is there any way I could get database connection alone which is enlisted in a global transaction to rollback? I have got the database connection using Connection conn = DataSourceUtils.getConnection(myDataSource);

is there any way I could get database connection alone which is enlisted in a global transaction to rollback?

By definition, no. And by implementation too: once the DB and its JDBC driver have given up control of a transaction's lifecycle, there's no way back. And even if you could, you'd just potentially mess up the transaction's atomicity.
You have no choice but to rework your logic.


Cannot run filesystem tasks

When I use the following config.json:
{
  "access_codes": [
    "bob",
    "alice"
  ],
  "task_duration_in_seconds": 30,
  "tasks": [
    {
      "task_id": "1",
      "type": "filesystem",
      "description": "Create a file named `hello.txt` in `~/dir1/dir2`.",
      "initial_filesystem": {
        "dir1": {
          "file.txt": {
            "ATTR_name": "file.txt"
          },
          "dir2": {}
        }
      },
      "goal": {
        "dir1": {
          "file.txt": {
            "ATTR_name": "file.txt"
          },
          "dir2": {
            "hello.txt": {
              "ATTR_name": "hello.txt"
            }
          }
        }
      }
    }
  ]
}

I get the following exception caused by dict_2_disk:
[30/Dec/2016 09:56:04] "GET /user_login?access_code=a-b&check_existing_session=true HTTP/1.1" 200 78
Internal Server Error: /a-b-study_session-1/task-1
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 39, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/vagrant/tellina_task_interface/website/views.py", line 52, in g
    return f(request, *args, task_session=task_session, **kwargs)
  File "/home/vagrant/tellina_task_interface/website/views.py", line 162, in get_current_task
    pathlib.Path('/{}/home'.format(container.filesystem_name)))
  File "/home/vagrant/tellina_task_interface/website/filesystem.py", line 224, in dict_2_disk
    status = dict_2_disk(subtree, path)
  File "/home/vagrant/tellina_task_interface/website/filesystem.py", line 167, in dict_2_disk
    if is_file(subtree):
  File "/home/vagrant/tellina_task_interface/website/filesystem.py", line 113, in is_file
    return list(node.keys())[0].startswith(attr_format(""))
IndexError: list index out of range

Work around committed.

This issue has resurfaced at the commit https://github.com/TellinaTool/tellina_task_interface/tree/e2f0bad4e64cf62cab9c976cbf6ed6afd773e209
with the following config.json:
{
  "access_codes": [
    "bob",
    "alice"
  ],
  "task_duration_in_seconds": 30,
  "tasks": [
    {
      "task_id": "1",
      "type": "filesystem",
      "description": "Create a file named `hello.txt` in `~/dir1/dir2`.",
      "initial_filesystem": {
        "dir1": {
          "file.txt": {
            "ATTR_name": "file.txt"
          },
          "dir2": {}
        }
      },
      "goal": {
        "dir1": {
          "file.txt": {
            "ATTR_name": "file.txt"
          },
          "dir2": {
            "hello.txt": {
              "ATTR_name": "hello.txt"
            }
          }
        }
      }
    }
  ]
}

@kvu787 File system implementation is refactored. This should have been resolved.


SMS Code Never Received

Hi the sms code is never received do you know what could be causing this?

Hi the sms code is never received do you know what could be causing this?

Can yu provide more context please? How many Threads do you use, maybe some screenshots etc. Sometimes discord just not send the confirmation code. You should try it again using a VPN or another Account.

Yo, i updated the code a lot since you created this issue, please try it again with the new version of the code :)

Yo, i updated the code a lot since you created this issue, please try it again with the new version of the code :)

yea it doesnt seem to be working at all now

Yo, i updated the code a lot since you created this issue, please try it again with the new version of the code :)

yea it doesnt seem to be working at all now

You should try to redownload the whole project because i edited more files than just main.py if you have issues with it you need to provide me with more details liek the error you got etc. sadly i can't solve a issue i don't know about.

Yo, i updated the code a lot since you created this issue, please try it again with the new version of the code :)

yea it doesnt seem to be working at all now

You should try to redownload the whole project because i edited more files than just main.py if you have issues with it you need to provide me with more details liek the error you got etc. sadly i can't solve a issue i don't know about.

Ok so the first problem is below, but im able to fix it by copying the original python file. But then there is another problem which is below this one.
Exception in thread Thread-1 (verify):
Traceback (most recent call last):
File "C:\Users\elija\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\elija\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\elija\OneDrive\Desktop\discord-phone-verifier-main (2)\discord-phone-verifier-main\main.py", line 23, in verify
host_name, port, username, password = proxy_split[0], proxy_split[1], proxy_split[2], proxy_split[3]
IndexError: list index out of range
The other problem is below after it checks if the token is valid which it is, and after it orders the phone number it says this.
Exception in thread Thread-1 (verify):
Traceback (most recent call last):
File "C:\Users\elija\OneDrive\Desktop\discord-phone-verifier-main (2)\discord-phone-verifier-main\main.py", line 60, in verify
if check_token.json()["message"] == "401: Unauthorized":
KeyError: 'message'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\elija\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\elija\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\elija\OneDrive\Desktop\discord-phone-verifier-main (2)\discord-phone-verifier-main\main.py", line 85, in verify
lock.acquire()
NameError: name 'lock' is not defined

Okay so there is actually only one error which i've messed up. i will solve this in the next code update. This error being that lock is not definied in the scope.
The other proxy error is because you formatted the proxies wrong. In the current public release proxies need to be formatted like this: ip:port:user:pass however, in the next code update i add support for ip:port proxies.

Closing due to some inactivity.


413 Request entity too large

I am using tusd in my project for file uploading using tus-js-client.
It's working fine for small size file upload. Less than 1MB file upload without an error but when I try to upload a 2MB file it gives following error:
Error: tus: unexpected response while uploading chunk, originated from the request. response text: 413 Request Entity Too Large

Is there any configuration to control upload limit? or something else?

tusd has the -max-size flag to control the maximum allowed upload size (see https://github.com/tus/tusd#running-tusd). However, by default this flag is disabled, meaning not limit is imposed.
Could it be that you are running a proxy which also restricts the upload size?

I fixed this issue by increasing the upload limit in Nginx.
Thanks.

@azharmalik3 @Acconut  Good morning, we are facing the same issue. I tried changing the client_max_body_size in multiple places for nginx but still same issue. Do you have any other suggestion?

@mraslam Did you correctly set the -max-size option for tusd? Besides configuring tusd and nginx, I don't have any other suggestion right now.


x/pkgsite:I can not believe it so fantastic algorithm but compile error

What is the URL of the page with the issue?
no
What is your user agent?
no
Screenshot
no
What did you do?
wite a func code:
kk := func(n int) int {
if n > 0 {
return n + kk(n-1)
} else {
return 0
}
}
fmt.Println(prema(kk(10)))
What did you see happen?
go:428:16: undefined: kk
I can not believe it that it can not compile pass.
What did you expect to see?
fix this

Yeah this is not allowed, if you want a recursive function define a real function instead of a lambda.


Github action for spellcheck

What happens when there are correct words that are detected as wrong?
  I hadn't figured out the best practices here... maybe, unless you only run CI on master branch + PRs, there isn't anything to do because when you first push a branch, it doesn't know if it's a pull request or not.  Someday I'll investigate, but if you do first that's great.  (don't let this delay the PR).

@rkdarst

What happens when there are correct words that are detected as wrong?

I think we can open an issue on: https://github.com/client9/misspell/issues?q=false+positive
I put to run on both push and Pull Request because I assumed people adding commits would want to know if their changes introduced mistakes. but then again we are doing pull requests in order to submit changes so I would think the most logical option here would be just doing the check on push. No need to check again on Pull Request.
My two cents on the whole debate: there are some checks that makes sense to be done on every push such as unit-tests, style guide checks (e.g. python PEP8 &PEP257 or bash style guides https://github.com/koalaman/shellcheck ) the kind of checks that don't take long to run and produce immediate results
Some on Pull Request such as integration tests and checks that take longer and require a lot of moving parts.
There are other events as well (https://help.github.com/en/actions/reference/events-that-trigger-workflows) but there is a long discussion there and usually it boils down to the automation workflow one wants to build (code style checks, doing testing, releases, pushing tags, pushing documentation etc.).


Window opacity causes black screen on Catalina beta 2

after setting
yabai -m config window_opacity               on
yabai -m config active_window_opacity        1.0
yabai -m config normal_window_opacity        0.90

I was left with a blank black screen until removing the lines from my config in safe mode. I'm not sure where to find log files or anything else that could be helpful so if you would like any more information let me know!

Could you repost this in #22
I'd like to keep all Catalina related in one issue, so that people can test / confirm and update if something was fixed in a later Catalina version. There is always a possibility that Apple has introduced bugs in their OS at this early stage.
I personally won't be running Catalina until the GM Version is released publicly, as I don't want to run it on my main machine.


0000-template.md: Encourage discussion of maintanence

Add some points to encourage RFCs to discuss how a proposal impacts the
ease of reading, understanding, and maintaining Rust code, not just the
ease of writing it.
Inspired by many recent discussions on proposed language features.
cc @rust-lang/lang

Thanks, I think this is a great addition.

This does not constitute a change in policy right, just a reminder to authors?
The changes in the text look super great to me 💯.

@Centril I don't think this is a change to policy, no, just some encouragement to cover this point in RFC text.

I think one of related points is to invite more industrial users to voice their opinion and concern. They are the main proponents for language adoption, and they have more experience in using the language in production.

Just a fun quotes from Yaron Minsky's Effective ML talk:
"Whenever there is a difference of opinion between [the writer of code and the reader of code], the readers are always right and the writers are always wrong." -
I'm not criticizing recent ergonomics features here, like default binding modes might make auditing the logic's correctness easier.  I just like the sentiment overall.  :)  In fact, another couple fun quotes from his Caml Trading talk:
"You basically cannot pay people enough to code review dull [boiler plate] code. .. We've tried." -
"Any [mental tools] that let you offload [the informal proofs involved in reading code] is a huge win"

I'm a bit concerned that the templates are becoming a kind of laundry list. I'm a bit concerned because complex templates are a bit of a barrier to entry and often don't apply to all teams (e.g., does this apply to a "policy RFC"?).
Furthermore, people can simply delete these points, and then it's as if they never existed — when really what we want is to ensure that the discussion takes these points into account.
I have an alternate proposal. Instead of putting this text in the template, where it can be deleted or overwhelming, maybe we should make a "review-guidelines" directory on the repository with "per team" advice. So e.g. the lang team could include this (and other) considerations. We can then add advice encouraging reviewers -- both team members and non-team members alike -- review the RFC with respect to these criteria (in addition to their general thoughts).

@nikomatsakis I can absolutely agree that an excessively busy template could do as much harm as good. I would certainly be happy to edit the templates in more detail, and perhaps attempt to streamline them somewhat in ways that reflect how people tend to describe proposed changes in practice.
However, I do think part of this change ("Does the proposed change make Rust code easier or harder to read, understand, and maintain?") applies to any kind of change, library and language alike. The "If this is a language change" bit is perhaps more awkward. I think I could find a way to make it fit better, though.
Does that seem plausible?

@nikomatsakis Any progress on this?
Identify the different subtypes would be a start. Do there exists efforts on that?
Bot-processing could also be used.
Ideally the status would be labeled as well (experiments, abandoned, active) with a infrequent ping for update status of the author(when no discussion takes place).

I had completely forgotten about this. I don't really have a strong opinion one way or the other I suppose. =)

I would vote to merge. I think this change applies well to itself.

I would vote to merge. I think this change applies well to itself.


fix: init reduce

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Is there a way to pass in raw data instead of a URI?

When creating a hologram, is it possible to pass in raw buffer data (such as uint8 array, base64 string) instead of a URI? Looking to dynamically create a video to play on the device.

Hi Edyhah,
currently Bridge can load data from either a url, or a file path.

You can use the legacy HoloPlay Service endpoint, demonstrated here: https://codesandbox.io/s/detect-a-looking-glass-l5o9d?from-embed using the HoloPlayCore.JS library
however this only works for images and is much slower than passing a url/uri in.

Thanks. What about a mediastream object? I'm trying to stream an image stream to the looking glass programmatically without using looking glass studio

right now the legacy endpoint only supports images, you may be interesting in our webXR library which allows you to draw a canvas directly to the Looking Glass, this will allow for realtime approaches.
https://github.com/Looking-Glass/looking-glass-webxr


introduce delete processed records functionality in OutboxRepositories

Relates to #226

@magro I have to admit I currently don't really see the need for this self contained cleaner in the current approach 🤔  and would propose to continue this PR as is and introduce such a cleaner in a separate PR if needed

@danielrehmann And would it be possible to add this also for the older 1.X version? 🤔

@danielrehmann And would it be possible to add this also for the older 1.X version? 🤔

@hnrkdmsk I think it will be possible to cherry pick these changes from the last 1.X release and release a new 1.X version from a branch with minor changes to the actions configuration. But we should think about how to do this easily!

There's the main_1.x branch which already triggers the publish action. I.e. it's sufficient to backport changes to this branch, push a new 1.x version and release via sonatype.


Replace trivy with grype

Contributor Comments
This replaces trivy with grype.  There are numerous benefits:

Removes two writes to disk for each tag we publish every time we run CI, speeding it up.

Dramatically reduces the likelihood of the socket timeout issues we've been experiencing lately, causing false positive failures of our test suite.

Adds vuln scanning artifacts to each commit on a PR (for use during code review), each commit to main, and each release.  Previously we didn't retain scanning artifacts.

Provides a fast, efficient way to rescan a given docker image's components for vulnerabilities again in the future (i.e. if a critical vulnerability is discovered, all supported versions of easy_infra can be quickly scanned using grype and the SBOM that we already have from syft).

This emphasizes the importance of SBOMs, and sets us up for future VEX support as defined here and more briefly here

[x] This PR depends on https://github.com/SeisoLLC/easy_infra/pull/142

Pull Request Checklist
Thank you for submitting a contribution to easy_infra!
In order to streamline the review of your contribution we ask that you review and comply with the below requirements:

[X] Rebase your branch against the latest commit of the target branch
[X] If you are adding a dependency, please explain how it was chosen
[X] If manual testing is needed in order to validate the changes, provide a testing plan and the expected results
[X] If there is an issue associated with your Pull Request, align your PR
title with this documentation

@callmestu did you review all the code changes and this new approach?  Interested to hear if you have any questions or concerns

@JonZeolla OK, reviewed all changes. I can't say that I have a better way to do it right now. Glad to be an consulted party though.


fixes #2231 Router rewriteMethod property does not work with path prefix

A test case that covers one of the use case.
public class MethodRewriteRuleTest {

    @Test
    public void testMethodRewriteRule() {
        MethodRewriteRule methodRewriteRule = new MethodRewriteRule("/gateway/sit/service-request/{tracing-no}", "PUT", "PATCH");
        String requestPath = "/gateway/sit/service-request/123?version=1.1";
        Assert.assertTrue(StringUtils.matchPathToPattern(requestPath, methodRewriteRule.getRequestPath()));
        requestPath = "/gateway/sit/service-request?version=2";
        Assert.assertFalse(StringUtils.matchPathToPattern(requestPath, methodRewriteRule.getRequestPath()));
    }
}


provisioner: renew token doesn't work on the provisioner container

This is a bug of the ovirt-mini-api which affects the provisioner, as a long running service. (the flex driver is invoked and then tears down)
oVirt engine is holding the token as long as it is up and dump them if it restarts. This means that a client
such as the provisioner would get request failing without ever handling it, leaving it unusable untill the provisioner pod is restarted, and then it will negotiate for a new ticktet.
The handling should be straight forward, if identifying a non valid token response is a distinct error. In that case, simply tell the api to refetch a token.

I've encountered this in my oVirt/K8S pilot and would love for a graceful way to have the token be refreshed.

On Thu, 8 Mar 2018 at 20:54 Jeff Moody<EMAIL_ADDRESS>wrote:

I've encountered this in my oVirt/K8S pilot and would love for a graceful
way to have the token be refreshed.
—

This will be fixed this week.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rgolangh/ovirt-flexdriver/issues/7#issuecomment-371586650,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEwcHDlmkoEte1_AqSTWSKGm298VvKtaks5tcX57gaJpZM4R8VIf
.

 token doesn't auto renew on expiration or invalidation

A request with non-existing token is replying with 401 and with specific text:
 curl http://localhost:8080/ovirt-engine/api \
   -H "Accept: application/json" \
   -H "Authorization: Bearer NONEXISTINGTOKEN"  -v
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
> GET /ovirt-engine/api HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.55.1
> Accept: application/json
> Authorization: Bearer NONEXISTINGTOKEN
>
< HTTP/1.1 401 Unauthorized
< Connection: keep-alive
< WWW-Authenticate: Basic realm="RESTAPI"
< Content-Type: text/html;charset=UTF-8
< Content-Length: 137
< Date: Mon, 19 Mar 2018 09:14:49 GMT
<
* Connection #0 to host localhost left intact
<title>Error</title>invalid_grant: The provided authorization grant for the auth code has expired.


Mention PathPrefix matcher changes in V3 Migration Guide

What does this PR do?

Motivation

More

[ ] Added/updated tests
[x] Added/updated documentation

Additional Notes

Hello,
can you rever unrelated changes? thank you.


Prevent running standalone ECS tasks during deployment

What would you like to be added:
Prevent standalone ECS tasks from running at the deployment.
Adding a flag ECSApp.runAtDeployment to disable running at the deployment...?
Why is this needed:
There is the case;

Run a task at a certain time triggered by EventBridge.
The task should not be triggered at the deployment.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduled_tasks-eventbridge-scheduler.html

Current implementation;

Check if the service definition exists.
If not, Run the task.
code is here

Created a draft PR https://github.com/pipe-cd/pipecd/pull/4666. WDYT?


feat(runtime): Add series implementation for event recorder

Motivation
The current implementation of the event recorder just creates new events which is not enough for my event handling expectations.
Solution
I added a recorder implementation more similar to the one in client-go library. This implementation caches events in local and groups isomorphic events to increment series count on similar events.

Now all tests were passed but I forgot about DCO again...
You can review it when you have time and if more improvements are needed I will work on them. If not I have to squash all those commits and we can merge.

I fixed the issues with the tests and squashed all commits.


Fix config file initialization

When one starts Odilia for the first time, the configuration file isn't actually copied, therefore the program crashes.
I am sure this is due to a misunderstanding of xdg::BaseDirectories::place_config_file which, as its name implies, just makes sur the parent directory on which to place the file is present...

You're the best!


add meteor settings support to legacy

In relation to #25
Since it's really just a simple copy paste of your work on the 1.4 branch, thought I would save you the hassle (I needed it a bit quicker than next week anyway :) )
I've built, published and tested the image myself, it seems to be working fine.

Perfect; thanks!


Explanation on how velocity is used

So if I follow the most basic explanation of A*, it usually talks about finding a path from A to B on some grid/graph G.
I am completely lost where the velocity comes in here, how I should use it, and what I should set it to for the basic case of simply finding a path.
I assume it has something todo with declaring the cost of moving from P1 to P2, so that you optimise the path with the lowest cost (fastest path, etc), but what does that mean for finding a path, what does setting maximumVelocity actually do?

Also, the concept of distance being in meters is confusing.
Not all path finding scenarios translate to real world, namely in my board game, meters makes no sense, but generic "Units" would, but then velocity and the notion of time doesn't make much sense, either.
I guess in the general case all of these things should be set to 1?
Also, I assume the intent of Velocity is to declare how many units (meters) you can move in a single step, where I guess a single step is a second???

I am still not sure I follow what maxVelocity changes in the example between bike and car. Presumably the path is still the same? So I am lost to how one would use these.
I'd still think an example where all of these examples are translated to a simple board game would be helpful.
I also have a specific example I am trying to solve, to which I am not certain how I'd use the library.
I have a 100x100 game grid.
I have a unit, that can "teleport" up to 5 units of euclidean distance, in any, including diagonal direction, even if there are obstacles in the way, or if there even no walkable path.
Can this library be used for a problem like that?
As far as I understand, I could just generate nodes with for each point of the grid, and then from any node T I would connect it to any other node where distance is <5, with "speed limit" of 1, and do a find operation with maximum velocity of 1?
I guess the path will be right, but the rest will be some non-sense numbers, that I don't care about anyway?


how to do insert as select

i have table with struct like
type X struct {
  UUID string
  Project string
  ID int64
}

I know Project and UUID, and for ID i need to specify max(ID) where Project and UUID equal my values.
As i understand i need to use SQL method, but does not understand how to use it with insert statement.

It's not supported. You have to engine.Exec("insert into table1 select * from table2") to do that currently.

And I'm trying to send a PR https://github.com/go-xorm/builder/pull/39 to resolve this.

Thanks! Does it possible to insert only some columns? For example select uuid from table2 and insert as one value on table1 ?


Installation mkdocs serve : ModuleNotFoundError: No module named 'pymdownx'

Not sure if pebkac.
Not sure how to get the module.
Under admin console on windows 10 after installing python and restarting I get the following
//
D:\dev\GitHub\VertDocs>pip install --upgrade pip
Requirement already up-to-date: pip in d:\apps\python\python36\lib\site-packages
D:\dev\GitHub\VertDocs>pip install mkdocs
Requirement already satisfied: mkdocs in d:\apps\python\python36\lib\site-packages
Requirement already satisfied: tornado>=4.1 in d:\apps\python\python36\lib\site-packages (from mkdocs)
Requirement already satisfied: click>=3.3 in d:\apps\python\python36\lib\site-packages (from mkdocs)
Requirement already satisfied: Markdown>=2.3.1 in d:\apps\python\python36\lib\site-packages (from mkdocs)
Requirement already satisfied: PyYAML>=3.10 in d:\apps\python\python36\lib\site-packages (from mkdocs)
Requirement already satisfied: livereload>=2.5.1 in d:\apps\python\python36\lib\site-packages (from mkdocs)
Requirement already satisfied: Jinja2>=2.7.1 in d:\apps\python\python36\lib\site-packages (from mkdocs)
Requirement already satisfied: six in d:\apps\python\python36\lib\site-packages (from livereload>=2.5.1->mkdocs)
Requirement already satisfied: MarkupSafe>=0.23 in d:\apps\python\python36\lib\site-packages (from Jinja2>=2.7.1->mkdocs)
D:\dev\GitHub\VertDocs>mkdocs --version
mkdocs, version 0.17.2
D:\dev\GitHub\VertDocs>mkdocs serve
INFO    -  Building documentation...
Traceback (most recent call last):
File "d:\apps\python\python36\lib\site-packages\yaml\constructor.py", line 521, in find_python_name
import(module_name)
ModuleNotFoundError: No module named 'pymdownx'
//

Try running pip install pymdown-extensions

ha I just came back to post https://squidfunk.github.io/mkdocs-material/extensions/pymdown/
First python Install.
Thank you I appreciate the fast response.

Exceptional Response

Try running pip install pymdown-extensions

yeah，I run it,but it doesn't work and still print 'ImportError: No module named 'pymdownx''

Try pip install mkdocs-pymdownx-material-extras?


X Axis - Time interval API?

Hello,
First of all I just want to thank you for this incredibly useful library.
Secondly, I am having quite a bit of trouble figuring out how to specify the X-axis annotation. Some data has time correctly displayed ("8:05") and other times not (":05") and I was wondering if I could have greater control over which type is rendered, and how many to display at a time on the graph.
Thank you!

...specify the X-axis annotation

Do you mean axis tick values and format?
Yes this can be done. I've tried to mirror d3 api here, so you should have same flexibility. Sounds like you should be specifying your own tickFormat and ticks on the axis itself. The techanjs homepage uses axis.ticks to dynamically adjust how many ticks to show based on screensize.


add libhydrogen

deno-libhydrogen - a deno plugin 2 libhydrogen - the best thing in crypto libs since libsodium

Cool!
Happy to join in


failed to fetch italy.json

Hi everybody, after installing atraci on elementary os freya i couldn't play any song. The developer tools shows me this sentence:
[32024:0501/192216:INFO:CONSOLE(1)] ""This module is meant to be used by cli. If you want to use ytdl programmatically, visit https://github.com/fent/node-ytdl-core"", source: /tmp/.org.chromium.Chromium.h3zHpq/node_modules/ytdl/index.js (1)
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[32024:0501/192216:INFO:CONSOLE(1)] ""failed to fetch italy.json"", source: file:///tmp/.org.chromium.Chromium.h3zHpq/js/app.js (1)
how can i solve this problem?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I have the same with austria.json

And I with netherlands.json

if i'm not mistaken, ATRACI is no longer maintained project for some time now. Atraci project is dead.
Maybe if someone forked Atraci project and picked up from where original project left and start maintaining Atraci app, only this way Atraci is going to work again.
There is new simmilar project called Kaku, if anyone is interesting to try it. It's simmilar to Atraci app;
https://github.com/EragonJ/Kaku

I have same issue "india.json"


Add possibility to define custom readinessProbe

[ x] Chart version not bumped (the versions are all bumped and released at the same time)
[x ] README.md updated with any new values or changes

Since there is a known issue, where exec readinessProbes cause your cluster to get very high CPU usage (https://github.com/kubernetes/kubernetes/issues/82440) we need to use this chart with a custom readinessProbe to prevent our cluster from running out of CPU resources because of a readinessProbe.

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?


[Event Request] table 36 "Sales Header" - OnAfterDeleteSalesLines

New Event in the function DeleteSalesLines
local procedure DeleteSalesLines()
var
    ReservMgt: Codeunit "Reservation Management";
    IsHandled: Boolean;
begin
    OnBeforeDeleteSalesLines(SalesLine, IsHandled, Rec);
    if IsHandled then
        exit;

    if SalesLine.FindSet() then begin
        ReservMgt.DeleteDocumentReservation(DATABASE::"Sales Line", "Document Type".AsInteger(), "No.", GetHideValidationDialog);
        repeat
            SalesLine.SuspendStatusCheck(true);
            OnDeleteSalesLinesOnBeforeDeleteLine(SalesLine);
            SalesLine.Delete(true);
        until SalesLine.Next() = 0;
    end;

    OnAfterDeleteSalesLines(SalesLine, Rec);
end;

[IntegrationEvent(true, false)]
local procedure OnAfterDeleteSalesLines(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header");
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 41884.


Spams for windows

Is SPAMS supported by windows?

Can you make it  works on Windows?

If someone wants to give this a go, please feel free. To get started, would add a PR to drop this skip and perform a re-render.


Backport 143 plus 177 to 2.x

Description
Describe what this change achieves.
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
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.

Run actions/checkout@v3
Syncing repository: opensearch-project/OpenSearch-Dashboards
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/98e881c6-83ad-4b[52](https://github.com/opensearch-project/dashboards-search-relevance/actions/runs/5085876963/jobs/9140189791?pr=207#step:6:57)-b59a-857d139fb3b5' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/dashboards-search-relevance/dashboards-search-relevance/OpenSearch-Dashboards
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/backport-143-plus-177-to-2.x*:refs/remotes/origin/backport-143-plus-177-to-2.x* +refs/tags/backport-143-plus-177-to-2.x*:refs/tags/backport-143-plus-177-to-2.x*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 14 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/backport-143-plus-177-to-2.x*:refs/remotes/origin/backport-143-plus-177-to-2.x* +refs/tags/backport-143-plus-177-to-2.x*:refs/tags/backport-143-plus-177-to-2.x*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 16 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/backport-143-plus-177-to-2.x*:refs/remotes/origin/backport-143-plus-177-to-2.x* +refs/tags/backport-143-plus-177-to-2.x*:refs/tags/backport-143-plus-177-to-2.x*
  Error: The process '/usr/bin/git' failed with exit code 1

Same issue as https://github.com/opensearch-project/dashboards-search-relevance/pull/177#issuecomment-1563700398

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/2.x*:refs/remotes/origin/2.x* +refs/tags/2.x*:refs/tags/2.x*
This  succeeded because it's from pull_request not push


Question about GET_ALL_PLAYERS

Hi Daniel Song, first off, thank you very much for putting this wrapper together. It's very valuable to me. I am fairly new to Python and i'm trying to figure out how to get the output of this get_all_players(sport="nfl") to a more row/column view instead of what it outputs as now. Do you have any code or any guidance on how to manipulate this output to a more consumable format? Any advice would be much appreciated :)
players.csv

I figured it out - thanks again Daniel for the wrapper!


[5.2] Add when method to EloquentBuilder

There is when method in QueryBuilder that can be accessed by __call, but it would be cool if we could use it directly on EloquentBuilder.

Does falling back to the query builder one not work?

@taylorotwell I guess he would like to utilise some Eloquent builder method in the when closure, which can't be done with fallback to Query builder.

So it's about having the proper context. Only looking at the changelog, I nearly felt into the trap. Maybe it would be advisable to add a line of code documentation, so people don't want to remove this "code duplication" later?

Agreed. BTW, found that chunk method is also duplicated. Is there any sense of it?

@taylorotwell we should really have some simple test here that calls a method on the eloquent builder. That way, if someone comes up with the idea to remove this "duplication", it's easy to see a failing test because it can't call that method. Thoughts? I could put this together over the weekend if @n7olkachev doesn't.

Sure
On Fri, May 27, 2016 at 4:39 PM -0700, "Leo Sjöberg"<EMAIL_ADDRESS>wrote:
@taylorotwell we should really have some simple test here that calls a method on the eloquent builder. That way, if someone comes up with the idea to remove this "duplication", it's easy to see a failing test because it can't call that method. Thoughts? I could put this together over the weekend if @n7olkachev doesn't.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Testing ChatBot

Description:
Test and assess the ChatBot that was designed by Aarthif Nawaz (intern).
Related Issues:
https://github.com/wso2/docs-apim/issues/4222

Typo - "API Manager" has been spelt incorrectly on the sign in page.

After some time I was able to access the ChatBot, type in a question and get a reply. However, the answer had nothing to do with the question that I asked and it was linking off to the WSO2 Identity Server documentation as opposed to the API Manager documentation. For example, I would have expected the ChatBot to return a page like [1] when answering my question.
[1] https://apim.docs.wso2.com/en/latest/design/create-api/create-streaming-api/streaming-api-overview/

After some time I was able to access the ChatBot, type in a question and get a reply. However, the answer had nothing to do with the question that I asked and it was linking off to the WSO2 Identity Server documentation as opposed to the API Manager documentation. For example, I would have expected the ChatBot to return a page like [1] when answering my question.
[1] https://apim.docs.wso2.com/en/latest/design/create-api/create-streaming-api/streaming-api-overview/

Aarthif Nawaz replied as follows:
Because of the expired credentials of my cloud MySQL DB which caused you an error while accessing the chatbot. I had to revert back the git  changes to my earlier commit, and then you were able to access it. Unfortunately, the last commit had a mixture of the IS 5.9.0 + APIM 3.2.0 Documentation trained for the same user, which was causing you the mismatch of response. I have now updated the repo with the latest changes containing the APIM 4.0.0 documentation. You can now test the chatbot. Very sorry for the inconvenience caused.

The ChatBot answer looks like now it is picking up the correct URL to show the user, but the way in which the answer is given needs to be refined further from a grammatical point of view, because it looks like some sentences are just taken and thrown together.

The ChatBot answer looks like now it is picking up the correct URL to show the user, but the way in which the answer is given needs to be refined further from a grammatical point of view, because it looks like some sentences are just taken and thrown together.
Regarding the grammatical errors. I'm doing a work around it. As how it currently works is, based on the question asked it will return the response taken from the apim documentation. But I think it will be better if we could structure the text in a more appealing way. So will format the preprocessed text in a better way before returning a response.

Aarthif Nawaz replied as follows:
Regarding the grammatical errors. I'm doing a work around it. As how it currently works is, based on the question asked it will return the response taken from the apim documentation. But I think it will be better if we could structure the text in a more appealing way. So will format the preprocessed text in a better way before returning a response.

Aarthif, please let us know when you have finished making the latter mentioned refinements to the ChatBot application.
Reported on Jun 23, 2021

Aarthif Nawaz replied as follows:
I am very sorry for the delay caused as I had put the model to train to avoid conversational & grammatical errors. So for the refining of model i have used a pre trained BERT model that refines the sentence and sends it as a response. Please check the screenshot below and let me know. if it needs more refining. But it has improved quite a lot.

Jun 25, 2021
Had a discussed with Aarthif and pointed out areas where the search needs to be improved (Example 1&2). He mentioned that he is using a free Mongo DB with 1 GB but needs space of about 8GB to 10GB in order to improve the search results so that the bot will look at the content in the entire page as opposed on only the first paragraph.
Example 1

Example 2

Jun 25, 2021
Had a discussion with Sanjeewa, Lakindu, and Aarthif regarding the possibility of getting a larger MongoDB. Lakindu will check the possibility of getting a 4 or 5GB DB.

Jun 25, 2021
Sent a request for a 5GB MongoDB to digi-ops.
Email: Request for a MongoDB to test the ChatBot

Jun 28, 2021

A 5GB MongoDB has been created and Aarthif has been provided the details for testing purposes.
After 2 days, we need to get an update from Aarthif after he trains the ChatBot taking into account the content available in the full page using the new DB.

Jun 30, 2021

Aarthif's OpenStack instance has got terminated yesterday as the expiry date has been set to 14days.
Maheshika has provided him with a new instance.

Spotted a formatting issue in the ChatBot yesterday and reported it. Aarthif fixed it.

Aspects to be improved:

Punctuation is wrong.
It should not just throw loads of content at the user. It should provide basic info and then provide a link to read more information.

@sanjeewa-malalgoda , please note these comments when assigning the ChatBot to another SME for further iteration.


[SECURESIGN-687] fix(settings): sanitize URL

This PR addresses SECURESIGN-687.
Changes:

adds a composite validation check to the Rekor endpoint URL input, which is then used in the Settings component
adds check for the accepted protocols (currently only https)
adds check that URL is a valid URL, and additionally that it contains a dot
adds tests to cover the above scenarios

Whoops need to fix the edge case with the not being able to type if you erase the whole endpoint URL. This is where e2e tests would be very helpful, or visual testing with Storybook. And need to add more test coverage.

Updated error messages (and screenshots) to follow PatternFly best practices based on feedback from the UXD team.


Build failure: prismlauncher

Steps To Reproduce
Steps to reproduce the behavior:

build prismlauncher

Build log
nix log /nix/store/amvb4xl7q751jg1dq06vvd2jyyw0z0rl-prismlauncher-6.3.drv
https://gist.github.com/anna328p/4679835ad1a0268f646398b0f07f5432
Notable part:
CMake Warning (dev) at /nix/store/b6384n9wc85nvsvbx2xn4p18wajy1nyp-tomlplusplus-3.3.0/lib/cmake/tomlplusplus/tomlplusplusConfigVersion.cmake:45 (math):
  Unexpected character in expression at position 3: ,
  Unexpected character in expression at position 5: F
  Unexpected character in expression at position 6: a
  Unexpected character in expression at position 7: l
  Unexpected character in expression at position 8: s
  Unexpected character in expression at position 9: e

/nix/store/b6384n9wc85nvsvbx2xn4p18wajy1nyp-tomlplusplus-3.3.0/lib/cmake/tomlplusplus/tomlplusplusConfigVersion.cmake @ lines 43..48:
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "(8, False)")
  math(EXPR installedBits "(8, False) * 8")
  set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
  set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()

Looks like a cmake incompatibility??
Additional context
possibly connected to #217732?
Notify maintainers

@Minion3665 @Scrumplex
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-linux"
host os: Linux 6.1.23, NixOS, 23.05 (Stoat), 23.05.20230409.c5cf211
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.14.1
channels(root): "home-manager, musnix, nixos-22.05pre341370.4c5906c9489"
channels(anna): ""
nixpkgs: /nix/store/0xavn7sfcp6awxz7cwh65xmrchza2955-source

Can you try building it manually against the latest nixpkgs-unstable revision using nix build nixpkgs#prismlauncher?

This is really weird. Looks like something went and replace the first occurrence of 8 in the source files with (8, False) in tomlplusplus.
This is how it's supposed to look: https://github.com/marzer/tomlplusplus/blob/ad55bae8a11a6eee39e2292b01e95b529b105767/cmake/tomlplusplusConfigVersion.cmake.meson.in

Can you try building it manually against the latest nixpkgs-unstable revision using nix build nixpkgs#prismlauncher?

This was already built against the latest nixpkgs-unstable-small at the time, around an hour ago

https://github.com/NixOS/nixpkgs/blob/4dc5d47fd8d1b55eeb4a4326054e88a3418b90b1/pkgs/development/libraries/tomlplusplus/default.nix#L1..L29
this looks completely normal. what is going on?

I have done a bisection and it appears that the first bad commit was https://github.com/nixos/nixpkgs/commit/9a0754061262b3bd5bdc56ddb5dd971f9245b112

After bisecting Meson, this bug was introduced by https://github.com/mesonbuild/meson/commit/808d5934dd6c6a6c16f66e9dc51dae6e83e02cef and is still present in master.

@MaxHearnden #229528 has been merged, but do you think you could make a PR to master to have prismlauncher use its own overriden meson and another PR to staging to undo that change, so that way prismlauncher is at least fixed in the master branch sooner than a few weeks from now and when staging hits master, it won't have that temp fix anymore?
Thank you again!

do you think you could make a PR to master to have prismlauncher use its own overriden meson

Note that the package that's actually broken here is tomlplusplus.
But yes using a fixed version of Meson for this sounds like a good idea.


Using ComboBoxExt::set_model() doesn't accept None

This results in a compilation error like:
   Compiling gattii v0.9.0 (file:///home/susurrus/Projects/gattii)
error[E0282]: type annotations needed
    --> src/bin/gattii.rs:1168:47
     |
1168 |                             ui.ports_dropdown.set_model(None);
     |                                               ^^^^^^^^^ cannot infer type for `P`

error: aborting due to previous error

error: Could not compile `gattii`.

To learn more, run the command again with --verbose.

I'm not actually sure how to fix the syntax such that this will compile. Is there anyway to make this more ergonomic? For the C API, just passing NULL is sufficient, which is nice and clear.

Seems rust allow only using something like None::<&TreeModel> or separate typed variable

Yeah, None::<&gtk::TreeModel> worked. Thanks!
What do you think about adding a ComboBoxExt::clear_model() function so that this syntax can be avoided? I know it's not part of GTK+, but it might make sense for gtk-rs.

Not sure that clearing model needed often, IMHO in most cases it will be replaced with other model

Alright, then let's go ahead and close this issue.


Run with -S, --skip-string-normalization flag

This is a pretty nice package that has faster execution than blacken! I especially like that it's still being actively developed 😉
I'm trying to set some project-specific Black configs without using a pyproject.toml, so naturally I'd like to use .dir-locals.el. Specifically, I want to skip string normalization in some projects by running black -S. How can I do this with this package? I already tried setting python-black-command to "black -S" in .dir-locals.el, but this didn't seem to do it. Neither did setting python-black-extra-args to "-S". The following block is my .dir-locals.el and I tried toggling each of the lines.
(
 (python-black-command . "black -S")
 ;; (python-black-extra-args . "-S")
 )

Is this a configuration that's possible with this package, or am I misusing these variables?

the extra args variable seems the right place. it should be a list of strings, not a single string, though.

My .dir-locals.el looks like this now:
(
 (python-black-extra-args . '("-S"))
 )

but this didn't result in the expected change, and the package's autoformatting still normalizes strings 😦

Never mind, I got it to work with the following .dir-locals.el 🎉
(
 (python-mode . (
		 (python-black-extra-args . ("-S"))
		 )
	      )
 )


Fix infinite loop bug in mergeFacesAndHoles

When an element in containing_faces has a size greater than 1 the
while (unassigned) loop will never stop.
I don't know this algorithm and I'm not sure if this is the correct way of handling
this case, but it solves the infinite loop case.

The case was when using ifcplusplus to extract the geometry from an IFC file from a customer. Unfortunately, I could not find any notes saying which IFC file it was.

I am interested in this issue. I have observed infinite loops in carve sometimes, not sure if it is related to this. I tried the proposed fix and tested it with https://github.com/arnholm/angelcad-samples, but this proposed carve fix caused 2 samples to fail, so I think it is not 100% correct. PS. thank you for the carve library.