feat:  Allow tasks to redefine their triggers by returning a trigger

What type of pull request is this?

[x] Non-breaking code change
[ ] Breaking code change
[ ] Documentation change/addition
[ ] Tests change

Description
It's incredibly niche, but it'd make my life a lot easier.
This allows a task to return a Replacement Trigger, allowing tasks to dynamically adjust themselves based on load or external influences.
This definitely needs to get documented somewhere, but that's for the docs branch.
Changes

Checks the return type of tasks, and if it's a Trigger, replace the existing one.

Checklist

[x] I've formatted my code with Black
[x] I've ensured my code works on Python 3.10.x
[x] I've tested my code

This is targeting master. Are you sure that's what you wanted?

It is not. But I can't retarget in the mobile app

done


Export (.epub) function isnt allowing for chapter control.

When exporting an epub, the program will not only export the one chapter.
It will always export the entire project.
Replicated on windows 7 & 10.

Thanks, I'll look into it.  The export needs an overhaul.

This is fixed in the upcoming version 2.5.


⚠ Fortnite has degraded performance

In 89ef486, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1702 ms

Resolved: Fortnite performance has improved in d997cda.


After adding social networking to portfolio it should redirect to user's page

After adding other profiles to freecodecamp portfolio it should redirect to user's page.
But it is redirecting to waypoint-learn-what-to-do-if-you-get-stuck

I am not able to replicate this.
From my experience, it seems to be re-directing back to the last page I was on before going into my Account to add/update profiles.

Closing this as stale. Please feel free to comment to re-open.


Move npm to yarn

Here is why we should move: https://circleci.com/blog/why-are-developers-moving-to-yarn/

Status Network Token already did: https://github.com/status-im/status-network-token
Speeds up Travis CI testing by 2x.


Created Metrics job

Create openshift manifest for Metrics job or cronjob #269

Can we convert this to a draft? The implementation should include the resources to build the image itself and to deploy it. Happy to sync on this if there is any confusion here.

@Gregory-Pereira can you please elaborate, on the implementation of which you are talking about? I will make the changes and update the PR.

Applogies for the late response, I would love to help explain this! Particularly what I am reffering to is that this implementation is theoretical at this point, see code:
            image: your-image:tag
            command: ["/bin/sh", "-c", "your-metrics-command"]

We dont currently have the image for gathering the metrics, we will need to create a container image that will do this for us. In addition to this, its typically considered best practice to include other manifests to properly scope the permissions of the job / cronjob in the form of a serviceAccount, Role or clusterRole, and roleBinding or clusterRoleBinding (however if you want we can always implement this in later PRs, and run the job with permissions attributed to the native default SA that runs all default workloads. So to recap, we need to:

Create the container image via a containerfile that we will run in the openshift cluster to send these metrics somewhere
Create the CI workflow that will publish this container image to our GHCR.io and Quay.io registries
Move the metrics cronjob that you implemented to the correct path. I believe this should be the QA manifests deployment path, since we deploy production and we do not expect users to do this themselves, we don't need to collect deployment metrics there - those metrics will be built into the TS code (see issue). However A strong arguement could also be made to move these to the base manfiests so they get applied in both prod or QA even if it is a little overkill.
(OPTIONAL) Create a Service account for the job, and accurately scoped RBAC. On Openshift, there are some settings you have to check if that cluster has telemetry enabled otherwise its illegal to send those metrics. These checks plus RBAC have been configured into the securesign's segment backup job which is why I suggested going this direction, but any implementation that checks for those values is fine by me.

I know there is a lot here, but this is meant as background context to help. We can start piece by piece, and perhaps I should move this to an epic and break it down into more granular pieces. I will consult @vishnoianil and @nerdalert on scoping this accurately

Actually lets hold on the segment implementation. I would like to have the metrics from deployment and the metrics from the UI code (#281) go to the same place. Ill talk with Oleg and figure out which service we want to go with.

Im creating the base metrics deployment in #391, so we can pick this up as soon as that merges.

@Gregory-Pereira yes I am interested.


Build isa-l.h for windows, fix zlib wbits issue

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender


Want to add CODE_OF_CONDUCT.md

I want to add this and also want to add contributors profiles into main README.md file, if you want.
@aaryan2134 do you want this?

I don't think this is necessary currently.
If you want you can work on Code of Conduct

Ok then I will add the CODE of Conduct file

If anyone else is willing to do this let me know here


Avoid use of jQuery and interpret some responses as success

This was a change that came out of the revert of #261
@parhamin2010 does this code look familiar to you? Should it be merged into the oc-10 branch?
Which issue does it fix?

It has fix related to response showing from reva side when we accept invitation

OK, but then we should probably cherry-pick this commit it into main?

I tried to avoid cherry-pick based on this PR:
https://github.com/pondersource/nc-sciencemesh/pull/261
Everything looks good except sciencemesh advance settings that I previosly did here:
https://github.com/pondersource/nc-sciencemesh/issues/240
I just need to find a way to manage this on OC/NC cause the core codes are different.


Rename 'type' parameter to fix masking built-in function name

Related Issue(s)

Fix  issue #44

Description of Changes

Rename the parameter type in models.get_embeddings() to type_

My bad! I just notice the documentation needs to be updated for this as well http://docs.ampligraph.org/en/latest/examples.html#get-the-embeddings I just updated it now. But not sure how to rebuild the docs.

Hi iamaziz, thank you for the commit.
The get_embeddings() method will be used regularly and calling the parameter type_ may be a bit confusing.
Instead embedding_type might better explain the parameter.

Sphinx is used to generate the documentation. If you want to update your local documentation you can navigate to the doc directory and type

make html

This will regenerate the documentation and place it in the

docs/_build/html

directory.
Once the pull request is merged the official documentation will be updated automatically by the Jenkins server.

Hey, thanks for doc instructions. Yea perhaps embedding_type makes more sense :), should I go ahead and update the PR to embedding_type?

That would be great :)

Sure thing, here you go.

Looks good.


feature request: start from vcf

Hi Brad,
We're starting to feel some storage constraints through our usage of bcbio. We'd like to be able to reannotate the resulting vcf files using the bcbio framework, but without having to keep all of the other intermediate files around.
Would it be possible to let the pipeline start from vcf files and perform just the annotations?
Thanks
M

Matthias;
We currently have some support for this, using vrn_file instead of files in the input configuration. Here's an example from the tests of including a pre-built VCF in a validation:
https://github.com/chapmanb/bcbio-nextgen/blob/a6676f45cafbe9f0ca24ce798a61c27ede36a36c/tests/data/automated/run_info-bam.yaml#L11
I don't use this extensively so am not sure if it does everything you need but that would be the best place to get started. I'd like to expand this to support pre-built gVCF inclusion in joint calling workflows, so let us know if you run into issues.

Allright, sounds great! Happy to hear there's already some support. We're starting from pre-built GVCF's so it'd be a huge help if this would work.
I'll give it a shot and get back to you if I run into any issues.
Cheers and thanks for the foresight.
M

Hi Brad,
I've finally come around to testing this feature (better late than never I suppose).
So here's the case. I've got some gvcf's from previous runs, which I'm now trying to combine into one multisample gemini db.
I'd like to get bcbio to

take the gvcf's and perform joint calling per batch
reannotate the joint vcf
create a gemini db

To do this, I'm using the following config with bcbio v1.0.9:
fc_name: family1
upload:
  dir: ../final
globals:
  analysis_regions: /genomes/Hsapiens/hg38/regions/RefSeqExomeAndPanels_20171003.bed
  coverage_regions: /genomes/Hsapiens/hg38/regions/RefSeqExomeAndPanels_20171003.bed
resources:
  tmp:
    dir: /tmp/bcbio
details:
  - analysis: variant2
    genome_build: hg38
    description: D1712121
    vrn_file: ../input/D1712121-gatk-haplotype.vcf.gz
    metadata:
      batch: family1
    algorithm:
      variant_regions: analysis_regions
      jointcaller: gatk-haplotype-joint
      effects: vep
      effects_transcripts: all
      vcfanno: [eog,dbscsnv,dbnsfp]
      tools_on:
        - vep_splicesite_annotations
  - analysis: variant2
    genome_build: hg38
    description: D1611710
    vrn_file: ../input/D1611710-gatk-haplotype.vcf.gz
    metadata:
      batch: family1
    algorithm:
      variant_regions: analysis_regions
      jointcaller: gatk-haplotype-joint
      effects: vep
      effects_transcripts: all
      vcfanno: [eog,dbscsnv,dbnsfp]
      tools_on:
        - vep_splicesite_annotations
  - analysis: variant2
    genome_build: hg38
    description: D1712122
    vrn_file: ../input/D1712122-gatk-haplotype.vcf.gz
    metadata:
      batch: family1
    algorithm:
      variant_regions: analysis_regions
      jointcaller: gatk-haplotype-joint
      effects: vep
      effects_transcripts: all
      vcfanno: [eog,dbscsnv,dbnsfp]
      tools_on:
        - vep_splicesite_annotations

This does work, but there's no joint calling, no db's are created, and no results ,except some QC, is copied to the final directory.
Do you have any pointers on how to get where I want to be?
Thanks a lot
M

Matthias;
Thanks for following up on this. It looks like you did everything right in terms of configuration, I just haven't had a chance to work on gVCF inputs and joint calling as part of bcbio yet, so this seems like the expected outcome right now. In terms of pointers, are you looking to develop the features or hoping that we already had that in place? I'd like to try to work on this as part of the CWL transition, which is happening right now, but this would come after some other CWL features we need to add like ensemble calling and full RNA-seq support with variant calling. Hope this helps some with letting you know the current status and priorities, and thanks for pushing for this.

Hi Brad,
Thanks for the update!
I'd be happy to help develop the needed features, as this is becoming something crucial for us, fast. If you can point me in the right direction, I'll try to make time.
Thanks again
M

Hi Brad!
Any more updates on this? As I said, I'd love to help implement this.
Cheers
M

Matthias;
Sorry to be slow in getting back with you. I've been struggling to make time to run through and identify the necessary changes. I really appreciate your willingness to help and hope to have more time after the BOSC/GCC conference finishes next week. I'll definitely follow up and hope this works okay with your needs. Thanks again for the patience.

Hi Brad,
Thanks for the reply. Sadly, I won't be able to make it to BOSC this year, otherwise I would've loved to meet up. A direct colleague of mine is attending however. Would you be interested in having a small birds of a feather meeting to discuss some features and the future of bcbio? I think there'll be a huge benefit to having a talk IRL.
@tomiles, your thoughts on this?
Cheers
M

Matthias and Tom;
Thanks for this. We made great progress during the CoFest and I believe having this working cleanly in the latest development version. It should now use the input gVCFs as specified previously and run joint calling on them, producing a combined VCF with annotations. Your configuration from before would remain identical, this just fixes logic in bcbio itself which skipped joint calling for this case and now will correctly enable it.
Please let us know if you run into any issues and happy to work more. Thanks again for the push to make this happen and all the feedback and testing.

Hi Brad,
I just ran a test on a trio, starting from GVCF. Joint calling seems to work nicely. However, we're still missing the rest of the steps. There's only VEP annotation, but no vcfanno and no gemini . Also, it seems like bcbio only uploads the first sample from the config, skipping al the others.
content of the final dir are:
2018-07-02_Proband_16.10218:
bcbio-nextgen-commands.log  data_versions.csv  multiqc                                                 Proband_16_10218-gatk-haplotype-joint-annotated.vcf.gz.tbi  project-summary.yaml
bcbio-nextgen.log           metadata.csv       Proband_16_10218-gatk-haplotype-joint-annotated.vcf.gz  programs.txt

D1712121:
qc

While the Trio vcf header does include all three samples:
##GATKCommandLine=<ID=GenotypeGVCFs,CommandLine="GenotypeGVCFs  --output /user/scratch/gent/gvo000/gvo00082/vsc41443/bcbio/tmpUPLMpf/Proband_16_10218-chr1_0_248956422.vcf.gz --use-new-qual-calculator true --variant gendb:///kyukon/data/gent/gvo000/gvo00082/vsc41443/GVCF_test/Proband_16.10218/work/joint/gatk-haplotype-joint/Proband_16_10218/chr1/Proband_16_10218-chr1_0_248956422_genomicsdb --intervals chr1:1-248956422 --reference /kyukon/data/gent/gvo000/gvo00082/vsc41443/bcbio/genomes/Hsapiens/hg38/seq/hg38.fa  --annotate-with-num-discovered-alleles false --heterozygosity 0.001 --indel-heterozygosity 1.25E-4 --heterozygosity-stdev 0.01 --standard-min-confidence-threshold-for-calling 10.0 --max-alternate-alleles 6 --max-genotype-count 1024 --sample-ploidy 2 --annotation-group StandardAnnotation --disable-tool-default-annotations false --only-output-calls-starting-in-intervals false --interval-set-rule UNION --interval-padding 0 --interval-exclusion-padding 0 --interval-merging-rule ALL --read-validation-stringency SILENT --seconds-between-progress-updates 10.0 --disable-sequence-dictionary-validation false --create-output-bam-index true --create-output-bam-md5 false --create-output-variant-index true --create-output-variant-md5 false --lenient false --add-output-sam-program-record true --add-output-vcf-command-line true --cloud-prefetch-buffer 40 --cloud-index-prefetch-buffer -1 --disable-bam-index-caching false --help false --version false --showHidden false --verbosity INFO --QUIET false --use-jdk-deflater false --use-jdk-inflater false --gcs-max-retries 20 --disable-tool-default-read-filters false",Version=<IP_ADDRESS>,Date="July 2, 2018 8:50:57 AM CEST">
##reference=file:///home/galaxy/bcbio/genomes/Hsapiens/hg38/seq/hg38.fa
##source=GenomicsDBImport
##source=GenotypeGVCFs
##VEP="v92" time="2018-07-02 17:21:54" cache="/kyukon/data/gent/gvo000/gvo00082/vsc41443/bcbio/genomes/Hsapiens/hg38/vep/homo_sapiens_merged/92_GRCh38" ensembl=92.98e8548 ensembl-io=92.39280bd ensembl-funcgen=92.cd2ca86 ensembl-variation=92.77a06cf 1000genomes="phase3" COSMIC="83" ClinVar="201802" ESP="V2-SSA137" HGMD-PUBLIC="20174" assembly="GRCh38.p12" dbSNP="150" gencode="GENCODE 28" genebuild="2014-07" gnomAD="170228" polyphen="2.2.2" refseq="2018-02-20 13:24:28 - GCF_000001405.37_GRCh38.p11_genomic.gff" regbuild="16" sift="sift5.2.2"
##LoF=Loss-of-function annotation (HC = High Confidence; LC = Low Confidence)
##LoF_filter=Reason for LoF not being HC
##LoF_flags=Possible warning flags for LoF
##LoF_info=Info used for LoF annotation
##MaxEntScan_alt=MaxEntScan alternate sequence score
##MaxEntScan_diff=MaxEntScan score difference
##MaxEntScan_ref=MaxEntScan reference sequence score
##SpliceRegion=SpliceRegion predictions
##bcftools_viewVersion=1.8+htslib-1.8
##bcftools_viewCommand=view -h Proband_16_10218-gatk-haplotype-joint-annotated.vcf.gz; Date=Tue Jul  3 08:11:00 2018
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  D1611710        D1712121        D1712122

Matthias;
Thanks much for testing this out. Tackling the issues you mentioned:

I just pushed a fix so we'll apply vcfanno and GEMINI annotations to these inputs now.
The output for a trio should be a single joint called batch with all 3 samples, so what you're seeing is the expected VCF. The other major output of this should be the MultiQC report which is primarily based on this combined VCF. What other outputs are we missing that you wanted to see?
We haven't yet tackled CWL for this but can do next. Thanks for pushing, I wanted to be sure you had the expected functionality for old style runs before testing with CWL.

Thanks again for the testing and feedback.

Hi Brad,
Thanks! I'll run some more tests right away.
As for the 'missing' data. Since I'm running a trio analysis, I supposed there ought to be a directory for each sample, in addition to the 'project' dir with the combined vcf. As it stands now, there's a directory with QC for only one out of three samples for some reason.
Thanks for all the work.
Cheers
M

Matthias;
Thanks for following up. Since you don't have input BAM files there isn't much else that gets generated per sample. We can do some minimal QC on the joint called VCF, which is attached to one of the samples and that's the output you're seeing. So that's expected behavior, and please let us know if anything appears to be missing from the outputs. I'll work on CWL support for this and any other issues you identify. Thanks again.

Hi Brad,
I'm pleased to report annotation works like a charm!
Thanks a lot for this!
On another note, I have a question about the annotation pipeline as a whole.
I noticed bcbio runs VEP right after the joint calling, and again during the gemini step.
This seems to me as a waste of resources. I'm aware there are differences between the vcf files used for gemini and the output from GATK, but would it be possible to check if this is necessary?
Is it possible to build in a check to see if gemini/vcfanno is required and then skip the VEP annotation right after genotyping in favor of VEP annotation after decomposition?
I could see this shave of a significant amount of analysis time for the complete pipeline.
Thanks again
M

Matthias;
Thanks for checking this and reporting back, I'm glad to hear it's working as expected.
For the VEP double runs, this is a tricky problem I'm not sure how to best handle. There are downsides to both the standard VCF representation and the decomposed one used for GEMINI annotation and researchers often prefer one over the other so we prepare both and make them available for downstream usage. As a result we do end up having to annotate twice for each of the representations. Essentially we want users to be able to pick up either file depending on their needs.
Are you happy only using the decomposed GEMINI VCF, or also take advantage of the original VCF?
I've been thinking about turning off GEMINI as the default and preferring just a non-normalized vcfanno output unless users ask for it. Then you'd typically avoid the extra work unless you explicitly ask for a GEMINI database generated. Would this approach work for you?
I'm curious to hear from other users as well who might have a preference about standard versus normalized VCFs.
Thanks for starting this discussion.


cleanup jobs if coordinator node disconnects

In order to prevent leaks of passive contexts (like FetchContext) which
don't "finish" by themselves

a JobRequest streaming test would be nice, otherwise ack

[Current coverage][cc-pull] is 87.67%

Merging [#3516][cc-pull] into [master][cc-base-branch] will increase coverage by +7.86%

@@             master      #3516   diff @@
==========================================
  Files          1168       1169      +1
  Lines         36093      39604   +3511
  Methods           0          0
  Messages          0          0
  Branches       6253       6454    +201
==========================================
+ Hits          28805      34722   +5917
+ Misses         5001       4767    -234
+ Partials       2287        115   -2172

2 files in ...n/java/io/crate/jobs were modified. more

Misses +1
Partials -11
Hits +16

3 files in ...c/main/java/io/crate were modified. more

Misses -2
Partials -8
Hits +16

3 files (not in diff) in ...in/java/io/crate/udc were modified. more

Misses -2
Partials -5
Hits +11

3 files (not in diff) in ...icsearch/action/bulk were modified. more

Misses -9
Partials -24
Hits +45

1 files (not in diff) in ...elasticsearch/action were modified. more

Misses -5
Partials -16
Hits +29

1 files (not in diff) in ...va/org/elasticsearch were modified. more

Partials -7
Hits +11

2 files (not in diff) in ...io/crate/rest/action were modified. more

Misses -4
Partials -5
Hits +12

2 files (not in diff) in ...te/planner/statement were modified. more

Partials -6
Hits +52

4 files (not in diff) in ...r/projection/builder were modified. more

Misses +3
Partials -2
Hits +8

11 files (not in diff) in ...e/planner/projection were modified. more

Misses -36
Partials -53
Hits +94

Powered by Codecov. Last updated by [0a81935...36708a3][cc-compare]
[cc-base-branch]: https://codecov.io/gh/crate/crate/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/crate/crate/compare/0a81935b1621e5ddeab9c6d388e5b1e36f9abeb2...36708a32d9ab285e1b4f63dfce6ae5fb03faa76d
[cc-pull]: https://codecov.io/gh/crate/crate/pull/3516?src=pr

lgtm


Add Web Skills to sc. All-in-one, ch. Manuals/Howtos/Tutorials

Web Skills is a visual overview of useful skills to learn as a web developer. It is useful for people who just started learning about web development and for people who have been in the field for years and want to learn new things.
It fits to the All-in-one section in chapter Manuals/Howtos/Tutorials but can be moved to other sections if necessary.

Web Skills is a visual overview of useful skills to learn as a web developer. It is useful for people who just started learning about web development and for people who have been in the field for years and want to learn new things.
It fits to the All-in-one section in chapter Manuals/Howtos/Tutorials but can be moved to other sections if necessary.


#1500 fix javadoc build

See #1500
Fixes javadoc build in some environments
Signed-off-by: Nigel Jones<EMAIL_ADDRESS>

This works with jdk, but fails on build machine where maven itself is running using jre
Withdrawing PR to investigate this other scenario.


Add accountId in createAccount

Thanks to @kilic for reasoning this.
We should add accountID in CreateAccount. The toIndex says which position in the state tree that we are creating an account. And the accountID says which position in the public key tree that has the public key to the owner of the account.
struct CreateAccount {
        uint256 toIndex;
->    uint256 accountID;   <-
        uint256 tokenType;
        bytes signature;
    }

I think its actually toIndex and stateID

Fixed in #96, we have both accountID and stateID


LOGIN PAGE

@yash982000 @mksharma1 @vanieka-sharma  I want to create login page as given in picture of yours or any improved one.
Please assign this task to me. I would love to contribute in this page.

@ANSHIKA1806 That task is assigned to someone else as per the FCFS rule. You may have to wait until we get any result from that assignee or I would say you must start with posting some more ideas in the Open to Ideas thread.
I have some other designs for pages as well. Let me know if you can do some complex pages involving inside features of this project.

@ANSHIKA1806 If you are open to working on other screens, let me know, I have some designs ready. Login/Sign-Up has been assigned to another person based on first come first serve.


node error

bro idk how to add lavalink nodes can you send code example with working lavalink server please bro
its so confusing

to add node
lava.add({
  name: "unique name for the node"
  url: "lavalink server url",
  password: "lavalink server password",
  secure: false // whether the server allow secure protocol
})

where lava is your lava instance
example with the usual localhost
lava.add({
  name: "lavalink-node-1",
  url: "localhost:2333",
  password: "youshallnotpass",
  secure: false
})

and in the bot ready event (if you use discord.js), the lava instance need to be initialized
client.once("ready", () => lava.init(client.user.id))

raw event also need to be listened to get the voice state and voice server payload
client.on("raw", d => lava.updateVoiceData(d))

thank you so much

ready.js  Events Loaded Successfullly
Error: Cannot find module '/home/container/node_modules/lavacoffee/dist/utils/constants'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15)
    at resolveExports (node:internal/modules/cjs/loader:482:14)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/container/commands/Music/pause.js:9:26)
    at Module._compile (node:internal/modules/cjs/loader:1101:14) {
  code: 'MODULE_NOT_FOUND',
  path: '/home/container/node_modules/lavacoffee/package.json'
}```

fix this please

when i add new song song will pause next song not playing

when i add new song song will pause next song not playing

any code of your play command?

when i add new song song will pause next song not playing

any code of your play command?

const { Command } = require("reconlx");
const ee = require("../../settings/embed.json");
const config = require("../../settings/config.json");
const manager = require("../../handlers/Lavalink/player");
const emoji = require("../../settings/emoji.json");
const { MessageEmbed } = require("discord.js");
const { LoadTypes } = require("lavacoffee/dist/utils");

module.exports = new Command({
  // options
  name: "play",
  description: `Play Your Fav Song`,
  userPermissions: ["CONNECT"],
  botPermissions: ["CONNECT"],
  category: "Music",
  cooldown: 10,
  options: [
    {
      name: "song",
      description: "give song name or url",
      type: "STRING",
      required: true,
    },
  ],
  // command start
  run: async ({ client, interaction, args, prefix }) => {
    // Code
    let quary = interaction.options.getString("song");
    let botchannel = interaction.guild.me.voice.channel;
    let { channel } = interaction.member.voice;
    if (!channel) {
      return client.embed(
        interaction,
        `${emoji.ERROR} You Need To Join Voice Channel`
      );
    } else if (channel.userLimit !== 0 && channel.full) {
      return client.embed(
        interaction,
        `${emoji.ERROR} Your Voice Channel is Full , i can't Join`
      );
    } else if (botchannel && !botchannel.equals(channel)) {
      return client.embed(
        interaction,
        `You Need to Join ${botchannel} To Listen Song With Me..`
      );
    } else if (interaction.guild.me.voice.serverMute === true) {
      return client.embed(
        interaction,
        `${emoji.ERROR} Sorry, I can't join voice channel , i am muted`
      );
    } else {
      let player = await manager.players.get(interaction.guild.id);
      if (!player) {
        player = await manager.create({
          guildID: interaction.guild.id,
          selfDeaf: true,
          selfMute: false,
          voiceID: channel.id,
          volume: 100,
          metadata: {
            text: interaction.channel,
            voice: channel,
          },
        });
      }

      if (player.voiceState != "Connected") await player.connect();

      await manager
        .search({ query: quary }, interaction.user)
        .then(async (res) => {
          console.log("1");

          switch (res.loadType) {
            case LoadTypes.LoadFailed:
              {
                console.log(`load failed`);
                if (!player.queue.current) player.destroy();
                return client.embed(
                  interaction,
                  `${emoji.ERROR} Search Failed Reason :- \`${res.error.message}\``
                );
              }
              break;
            case LoadTypes.NoMatches:
              {
                console.log(`no match`);
                if (!player.queue.current) player.destroy();
                return client.embed(
                  interaction,
                  `${emoji.ERROR} No Result Found For \`${quary}\``
                );
              }
              break;
            case LoadTypes.SearchResult:
              {
                console.log(`resiilt`);
                let track = res.tracks[0];
                await player.queue.add(track);
                interaction.followUp({
                  embeds: [
                    new MessageEmbed()
                      .setColor(ee.color)
                      .setAuthor({
                        name: `Added to Queue`,
                        iconURL: track.displayThumbnail(),
                        url: track.url,
                      })
                      .setDescription(
                        ` ${emoji.show_queue} [\`${track.title}\`](${track.url}) \n\n Added By: ${track.requester} | Duration: ❯ \`${track.duration}\` | Position In Queue: \`${player.position}\``
                      )
                      .setFooter({
                        text: ee.footertext,
                        iconURL: ee.footericon,
                      }),
                  ],
                });
                if (!player.queue.current) {
                  player.play({}).catch((e) => {});
                }
              }
              break;
            case LoadTypes.TrackLoaded:
              {
                console.log(`loadeds`);

                let track = res.tracks[0];
                await player.queue.add(track);
                interaction.followUp({
                  embeds: [
                    new MessageEmbed()
                      .setColor(ee.color)
                      .setAuthor({
                        name: `Added to Queue`,
                        iconURL: track.displayThumbnail(),
                        url: track.url,
                      })
                      .setDescription(
                        ` ${emoji.show_queue} [\`${track.title}\`](${track.url}) \n\n Added By: ${track.requester} | Duration: ❯ \`${track.duration}\` | Position In Queue: \`${player.position}\``
                      )
                      .setFooter({
                        text: ee.footertext,
                        iconURL: ee.footericon,
                      }),
                  ],
                });
                if (!player.queue.current) {
                  player.play({}).catch((e) => {});
                }
              }
              break;
            case LoadTypes.PlaylistLoaded:
              {
                let playlist = res.playlist;
                await player.queue.add(res.tracks);
                interaction.followUp({
                  embeds: [
                    new MessageEmbed()
                      .setColor(ee.color)
                      .setAuthor({
                        name: `Playlist Added to Queue`,
                        iconURL: playlist.selectedTrack.displayThumbnail(),
                        url: playlist.selectedTrack.url,
                      })
                      .setDescription(
                        ` ${emoji.show_queue} [\`${playlist.name}\`](${playlist.selectedTrack.url}) \n\n Added By: ${playlist.selectedTrack.requester} | Duration: ❯ \`${playlist.duration}\` | Songs : \`${res.tracks.length}\``
                      )
                      .setFooter({
                        text: ee.footertext,
                        iconURL: ee.footericon,
                      }),
                  ],
                });
                if (
                  !player.queue.currentr &&
                  player.queue.totalSize === res.tracks.length
                ) {
                  player.play({}).catch((e) => {});
                }
              }
              break;
            default:
              {
                console.log(`haha`);
              }
              break;
          }
        });
    }
  },
});

when i add new song song will pause next song not playing

any code of your play command?

const { Command } = require("reconlx");
const ee = require("../../settings/embed.json");
const config = require("../../settings/config.json");
const manager = require("../../handlers/Lavalink/player");
const emoji = require("../../settings/emoji.json");
const { MessageEmbed } = require("discord.js");
const { LoadTypes } = require("lavacoffee/dist/utils");

module.exports = new Command({
  // options
  name: "play",
  description: `Play Your Fav Song`,
  userPermissions: ["CONNECT"],
  botPermissions: ["CONNECT"],
  category: "Music",
  cooldown: 10,
  options: [
    {
      name: "song",
      description: "give song name or url",
      type: "STRING",
      required: true,
    },
  ],
  // command start
  run: async ({ client, interaction, args, prefix }) => {
    // Code
    let quary = interaction.options.getString("song");
    let botchannel = interaction.guild.me.voice.channel;
    let { channel } = interaction.member.voice;
    if (!channel) {
      return client.embed(
        interaction,
        `${emoji.ERROR} You Need To Join Voice Channel`
      );
    } else if (channel.userLimit !== 0 && channel.full) {
      return client.embed(
        interaction,
        `${emoji.ERROR} Your Voice Channel is Full , i can't Join`
      );
    } else if (botchannel && !botchannel.equals(channel)) {
      return client.embed(
        interaction,
        `You Need to Join ${botchannel} To Listen Song With Me..`
      );
    } else if (interaction.guild.me.voice.serverMute === true) {
      return client.embed(
        interaction,
        `${emoji.ERROR} Sorry, I can't join voice channel , i am muted`
      );
    } else {
      let player = await manager.players.get(interaction.guild.id);
      if (!player) {
        player = await manager.create({
          guildID: interaction.guild.id,
          selfDeaf: true,
          selfMute: false,
          voiceID: channel.id,
          volume: 100,
          metadata: {
            text: interaction.channel,
            voice: channel,
          },
        });
      }

      if (player.voiceState != "Connected") await player.connect();

      await manager
        .search({ query: quary }, interaction.user)
        .then(async (res) => {
          console.log("1");

          switch (res.loadType) {
            case LoadTypes.LoadFailed:
              {
                console.log(`load failed`);
                if (!player.queue.current) player.destroy();
                return client.embed(
                  interaction,
                  `${emoji.ERROR} Search Failed Reason :- \`${res.error.message}\``
                );
              }
              break;
            case LoadTypes.NoMatches:
              {
                console.log(`no match`);
                if (!player.queue.current) player.destroy();
                return client.embed(
                  interaction,
                  `${emoji.ERROR} No Result Found For \`${quary}\``
                );
              }
              break;
            case LoadTypes.SearchResult:
              {
                console.log(`resiilt`);
                let track = res.tracks[0];
                await player.queue.add(track);
                interaction.followUp({
                  embeds: [
                    new MessageEmbed()
                      .setColor(ee.color)
                      .setAuthor({
                        name: `Added to Queue`,
                        iconURL: track.displayThumbnail(),
                        url: track.url,
                      })
                      .setDescription(
                        ` ${emoji.show_queue} [\`${track.title}\`](${track.url}) \n\n Added By: ${track.requester} | Duration: ❯ \`${track.duration}\` | Position In Queue: \`${player.position}\``
                      )
                      .setFooter({
                        text: ee.footertext,
                        iconURL: ee.footericon,
                      }),
                  ],
                });
                if (!player.queue.current) {
                  player.play({}).catch((e) => {});
                }
              }
              break;
            case LoadTypes.TrackLoaded:
              {
                console.log(`loadeds`);

                let track = res.tracks[0];
                await player.queue.add(track);
                interaction.followUp({
                  embeds: [
                    new MessageEmbed()
                      .setColor(ee.color)
                      .setAuthor({
                        name: `Added to Queue`,
                        iconURL: track.displayThumbnail(),
                        url: track.url,
                      })
                      .setDescription(
                        ` ${emoji.show_queue} [\`${track.title}\`](${track.url}) \n\n Added By: ${track.requester} | Duration: ❯ \`${track.duration}\` | Position In Queue: \`${player.position}\``
                      )
                      .setFooter({
                        text: ee.footertext,
                        iconURL: ee.footericon,
                      }),
                  ],
                });
                if (!player.queue.current) {
                  player.play({}).catch((e) => {});
                }
              }
              break;
            case LoadTypes.PlaylistLoaded:
              {
                let playlist = res.playlist;
                await player.queue.add(res.tracks);
                interaction.followUp({
                  embeds: [
                    new MessageEmbed()
                      .setColor(ee.color)
                      .setAuthor({
                        name: `Playlist Added to Queue`,
                        iconURL: playlist.selectedTrack.displayThumbnail(),
                        url: playlist.selectedTrack.url,
                      })
                      .setDescription(
                        ` ${emoji.show_queue} [\`${playlist.name}\`](${playlist.selectedTrack.url}) \n\n Added By: ${playlist.selectedTrack.requester} | Duration: ❯ \`${playlist.duration}\` | Songs : \`${res.tracks.length}\``
                      )
                      .setFooter({
                        text: ee.footertext,
                        iconURL: ee.footericon,
                      }),
                  ],
                });
                if (
                  !player.queue.currentr &&
                  player.queue.totalSize === res.tracks.length
                ) {
                  player.play({}).catch((e) => {});
                }
              }
              break;
            default:
              {
                console.log(`haha`);
              }
              break;
          }
        });
    }
  },
});

!player.queue.currentr
what's with the extra r

you can look on my bot for example using lavacoffee Music Bot

but when i skip song nextt songg not playing
can you make discord server for support
my server https://discord.gg/RRmCm7VBzE

but when i skip song nextt songg not playing
can you make discord server for support
my server https://discord.gg/RRmCm7VBzE

unfortunately, i didn't have a plan for discord server yet, sorry
so when you use skip command then next song won't play?
any code how you construct the lava instance and the skip code?

lava manager code
const { CoffeeLava } = require("lavacoffee");
const client = require("../../index");

let manager = new CoffeeLava({
  balanceLoad: "lavalink",
  send: (id, p) => {
    let guild = client.guilds.cache.get(id);
    guild.shard.send(p);
  },
  // autoPlay: false,
  // autoReplay: true,
  // autoResume: true,
  // clientName: "op",
});
module.exports = manager;

events code
const { Client } = require("discord.js");
const manager = require("./player");

/**
 *
 * @param {Client} client
 */
module.exports = async (client) => {
  await manager.add({
    name: "lavalink-node-1",
    url: "lava.link:80",
    password: "lava123",
    secure: false,
    retryDelay: Infinity,
  });
  client.once("ready", async () => {
    manager.init(client.user.id);
  });
  client.on("raw", (d) => manager.updateVoiceData(d));

  manager.on("nodeConnect", async (node) => {
    console.log(`Node Connected to ${node.options.name}`);
  });

  manager.on("nodeCreate", async (node) => {
    console.log(`Node Created ${node.options.name}`);
  });

  manager.on("nodeDestroy", async (node) => {
    console.log(`Node Destroyed ${node.options.name}`);
  });

  manager.on("nodeDisconnect", async (node) => {
    console.log(`Node Disconnected ${node.options.name}`);
  });

  manager.on("nodeError", async (node, error) => {
    console.log(`Node Error ${error.message}`);
  });

  manager.on("nodeReconnect", async (node) => {
    console.log(`Node Recconcting ${node.options.name}`);
  });

  manager.on("trackStart", async (player, track) => {
    let channell = await player.get("text");
    channell?.send(`Playing ${track.title}`);
  });

  manager.on("playerDestroy", async (player) => {
    let channell = await player.get("text");
    channell?.send(`Someone disconnected me form Voice Channel`);
  });
};

skipp cmd
const { Command } = require("reconlx");
const ee = require("../../settings/embed.json");
const config = require("../../settings/config.json");
const manager = require("../../handlers/Lavalink/player");
const emoji = require("../../settings/emoji.json");
const { MessageEmbed } = require("discord.js");
const { check_dj } = require("../../handlers/functions");

module.exports = new Command({
  // options
  name: "skip",
  description: `skip current song`,
  userPermissions: ["CONNECT"],
  botPermissions: ["CONNECT"],
  category: "Music",
  cooldown: 10,
  // command start
  run: async ({ client, interaction, args, prefix }) => {
    // Code
    let botchannel = interaction.guild.me.voice.channel;
    let player = await manager.players.get(interaction.guild.id);

    let { channel } = interaction.member.voice;
    if (!channel) {
      return client.embed(
        interaction,
        `${emoji.ERROR} You Need To Join Voice Channel`
      );
    } else if (channel.userLimit !== 0 && channel.full) {
      return client.embed(
        interaction,
        `${emoji.ERROR} Your Voice Channel is Full , i can't Join`
      );
    } else if (botchannel && !botchannel.equals(channel)) {
      return client.embed(
        interaction,
        `You Need to Join ${botchannel} To Listen Song With Me..`
      );
    } else if (interaction.guild.me.voice.serverMute === true) {
      return client.embed(
        interaction,
        `${emoji.ERROR} Sorry, I can't join voice channel , i am muted`
      );
    } else if (check_dj(client, interaction.member, player.queue.current)) {
      return client.embed(
        interaction,
        `${emoji.ERROR} You are not DJ and also you are not song requester..`
      );
    } else {
      await player.stop();
      return client.embed(
        interaction,
        ` ${emoji.skip_track}  Song Skiped by ${interaction.user.tag}`
      );
    }
  },
});

you can join my server for help me https://discord.gg/RRmCm7VBzE
i am youtube i will promote your package

code looks good to me, weird to see why it won't play the next song when skipping current song for you

as you can see in image above,
it successfully play the next song after skip, so i cant really reproduce it
i might try to join your server later

but when i skip song socketclosed event fire
why ?

but when i skip song socketclosed event fire
why ?

huh, is the bot disconnected from voice channel?

but when i skip song socketclosed event fire
why ?

huh, is the bot disconnected from voice channel?

no

hmm, that's werd

hmm, that's weird

i got fix
i will make a example bot in js
can you add ?

hmm, that's weird

i got fix i will make a example bot in js can you add ?

that's good then 👍, may i see the example code?

wait i am coding

here is exmaple music bot

https://github.com/kabirsingh2004/lavacoffee-music-bot
filters not working please check

explain not working

you have player.setFilters([]) in clear command instead of player.setFilters({})
not sure if that's your problem

no respond since 🤔

can you join server we can talk easilly about package
https://discord.com/invite/PcUVWApWN3


Failing unit tests involving jest.resetAllMocks and requiring some RN components from within mocks

Description
Bit of a niche one: We see failing unit tests after upgrading 0.72.10 --> 0.73.4:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

    Check the render method of `ForwardRef(Switch)`.

Real-world manifestation occurs in tests calling jest.resetAllMocks() with a setup using v1 reanimated mock https://github.com/software-mansion/react-native-reanimated/blob/main/mock.js
Some info from debugging:
a) the mock requires Image from 'react-native' (among other things but Image causes the issue)
b) the test calls jest.resetAllMocks()
c) @testing-library/react-native renders Switch with react-test-renderer in each test which blows up here: https://github.com/callstack/react-native-testing-library/blob/main/src/helpers/host-component-names.tsx#L37
(There may be other (mocked) components affected by the issue)
See reduced test case in this commit https://github.com/stevoland/RNTest/commit/9841d46ce0c03cde9749c36ddd58a8b2bb96930a
Our workaround is to first get a reference to Switch in the setupFiles https://github.com/stevoland/RNTest/blob/9841d46ce0c03cde9749c36ddd58a8b2bb96930a/jest-setup.js#L2 (Possibly relevant that this has to be a require and not an import statement)
Thanks
Steps to reproduce
git clone https://github.com/stevoland/RNTest
yarn install
yarn test
React Native Version
0.73.4
Affected Platforms
Other (please specify)
Output of npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 14.1
  CPU: (12) arm64 Apple M2 Pro
  Memory: 99.78 MB / 32.00 GB
  Shell:
    version: 3.2.57
    path: /bin/bash
Binaries:
  Node:
    version: 18.18.0
    path: ~/.nvm/versions/node/v18.18.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.nvm/versions/node/v18.18.0/bin/yarn
  npm:
    version: 9.8.1
    path: ~/.nvm/versions/node/v18.18.0/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.11.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2021.1 AI-211.7628.21.2111.8309675
  Xcode:
    version: 15.0/15A240d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 15.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs
FAIL  __tests__/boom.test.tsx
  ● Console

    console.error
      Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

      Check the render method of `ForwardRef(Switch)`.
          at disabled (/Users/stephen.collings/workspace/react-native-repro/RNTest/node_modules/react-native/Libraries/Components/Switch/Switch.js:141:5)

      16 |
      17 | it('doesnt blow up', () => {
    > 18 |   create(<Switch />);
         |         ^
      19 | });
      20 |

      at printWarning (node_modules/react/cjs/react-jsx-runtime.development.js:87:30)
      at error (node_modules/react/cjs/react-jsx-runtime.development.js:61:7)
      at jsxWithValidation (node_modules/react/cjs/react-jsx-runtime.development.js:1244:7)
      at jsxWithValidationDynamic (node_modules/react/cjs/react-jsx-runtime.development.js:1301:12)
      at Switch (node_modules/react-native/Libraries/Components/Switch/Switch.js:244:7)
      at renderWithHooks (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6351:18)
      at updateForwardRef (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9150:20)
      at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:11361:16)
      at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15811:12)
      at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15745:5)
      at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15717:7)
      at performSyncWorkOnRoot (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15422:20)
      at flushSyncCallbacks (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2597:22)
      at flushSyncCallbacksOnlyInLegacyMode (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2576:5)
      at scheduleUpdateOnFiber (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:14910:7)
      at updateContainer (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:17770:5)
      at create (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:18510:3)
      at Object.<anonymous> (__tests__/boom.test.tsx:18:9)

Reproducer
https://github.com/stevoland/RNTest/tree/jest-reset-switch-repro
Screenshots and Videos
No response

Bump, seeing similar issues

Just experienced the same issue after upgrading react-native from 0.72.12 to 0.73.8
Here are some other versions I'm using. Hope it should help for the investigation
"@testing-library/jest-native": "5.4.3",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "12.4.4",
"babel-jest": "29.7.0",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-junit": "13.0.0",
"react-test-renderer": "18.2.0",

Just experienced the same issue after upgrading react-native from 0.72.12 to 0.73.8
Here are some other versions I'm using. Hope it should help for the investigation
"@testing-library/jest-native": "5.4.3",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "12.4.4",
"babel-jest": "29.7.0",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-junit": "13.0.0",
"react-test-renderer": "18.2.0",

I was able to fix this type of issue with migration jest.resetAllMocks to jest.clearAllMocks

I'm also running into this and greatly appreciate y'all mentioning the workaround of popping the below into the jest-setup.ts as that worked around it for us. Switching from reset to clear didn't make any difference for us though.
const { Switch } = require('react-native');

🙇


WOODPECKER_GITEA_URL doesn't work

Component
server, web-ui
Describe the bug
It seems like the WOODPECKER_GITEA_URL Environment variable doesn't work.
no matter what i do, it still uses try.gitea.io and doesn't use codeberg.org
System Info
**all of the tokens are edited and revoked**

version: '3.3'
services:
  woodpecker-server:
    image: woodpeckerci/woodpecker-server:latest
    ports:
      - <IP_ADDRESS>:9002:8000
    volumes:
      - ./woodpecker:/var/lib/woodpecker/
    environment:
      - 'WOODPECKER_OPEN=true'
      - 'WOODPECKER_HOST=https://cd.website.com'
      - 'WOODPECKER_GITEA=true'
      - 'WOODPECKER_GITEA_URL=https://codeberg.org'
      - 'WOODPECKER_GITEA_CLIENT=f25c3624-684b-4d87-a6n5-324gbfe45db'
      - 'WOODPECKER_GITEA_SECRET=oxdVysOA3vWSdghmADusdawasdesd0Qjul'
      - 'WOODPECKER_AGENT_SECRET=1a22c276b2adda5333fd9640c5363cf4a8cdcf624108e4c1f679e9d69fb4047b'

  woodpecker-agent:
    image: woodpeckerci/woodpecker-agent:latest
    command: agent
    restart: always
    depends_on:
      - woodpecker-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WOODPECKER_SERVER=woodpecker-server:9000
      - 'WOODPECKER_AGENT_SECRET=1a22c276b2adda5333fd9640c5363cf4a8cdcf624108e4c1f679e9d69fb4047b'
      - WOODPECKER_BACKEND=docker

Additional context
this is an error that shows up for the agent, however i'm not sure if it has anything to do with this problem
woodpecker-agent_1   | {"level":"error","error":"rpc error: code = Unavailable desc = closing transport due to: connection error: desc = \"error reading from server: EOF\", received prior goaway: code: ENHANCE_YOUR_CALM, debug data: \"too_many_pings\"","time":"2021-11-26T22:08:15Z","message":"grpc error: done(): code: Unavailable: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = \"error reading from server: EOF\", received prior goaway: code: ENHANCE_YOUR_CALM, debug data: \"too_many_pings\""}

Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A join our Discord Chat Server.

ah, classic chromium cache.


Callback Function Parameters

I am attempting to pass some parameter to a function I defined and am feeding to the callback parameter in the SplashRequest object: yield SplashRequest(response.urljoin(state_link), callback=self.parse_state, args={'wait': 1})
As per this StackOverflow page, scrapy defines a meta field that scrapy-splash doesn't also have. I wasn't able to find any information on a similar field on the documentation.
Is there a way to pass parameters to a callback function in scrapy-splash?

Did you get how to do that?


Change copyright

This is a fix for #8 : I removed codehaus' copyright notice and replaced with auto-generated copyright notice using maven-license-plugin.

@fluentfuture Are you ok with those copyright changes?

Looks great! Deliver it!


Suggestion to add this plugin to JMeter Plugin Repository

Thanks for this great plugin. Could you please publish this in the official JMeter-Plugins repository? It will reach the masses and help in automation and containers.
Thanks!

Hi @QAInsights,
Thanks for your suggestion, I am completing the basic features and testing them for many diverse projects.
Once I get the results as expected, I also plan to publish it to the official JMeter-Plugins repository.
Thanks again for the suggestion.
Best Regards.


wavetable synthesis

Would be great to revisit ideas/goals for wavetable synthesis that came up in #1 – just cloned repo and tried to implement synth function from line 210 of maxim.js – but it hasn't yet produced a sound, then found another technique but no luck yet...
Both techniques are a few years old and research shows that maybe this should be done via an AudioWorkletNode ?
Anyone with more experience in this realm have an idea how custom wavetables could be implemented to the existing p5.sound oscillator function?
Here's my attempt:

wavesynth.js
wavesynth example

Nevermind! Just figured out about setPeriodicWave (which may have also been part of the _polysynth example) – but will now try proposing a solution for implementing a custom oscillator type with setWaveTable() functions.

Should this be closed?

@MichaelPaulukonis - No need to close it just yet – over the summer I got this working– but was stuck at trying to keep two signals in perfect phase. Nevertheless I'll download the latest p5.sound and reimplement what I started for a PR that should be useful to someone wanting custom wavetables.


Mentions include email addresses  Fixes #1029

Fixes #1029.
Earlier, if someone had an email address in the caption, those were provided as mentions in the Post.mentions attribute. With this update to the regular expression, email addresses are no longer ingested.
This change is complete, and no need for updates in documentation as the attribute should work as before. Ready to be merged.

I had no idea, but that seems like a reasonable edit then!

Thanks!


WIP: ES volume integral

TODO

[ ] Reduce memory allocations by making the volume integral kernels work on one element to support element-wise temporary caches (ref)
[x] Add weak_form_kernel! (ref, implemented in #469)
[x] Introduce a new volume integral type (implemented in #469)
[x] 1D version (implemented in #469)

@ranocha Thanks for the update... I have to say, though, I'd very much like to find a better name for the new struct once we have figured out whether we want this in Trixi permanently or not...

As a second note, I'd like to say that I am not yet sure we should implement such a flexible comparison machinery unless we have more than one application for it... Otherwise, I'd prefer to just implement a special case and then extend it to the current form once we actually do have more than one (or even more than two) different versions to compare...

I have to say, though, I'd very much like to find a better name for the new struct once we have figured out whether we want this in Trixi permanently or not...

That's why I added # TODO: This needs a better name... :sweat_smile:


iPhone 12 Pro sizes

I don't think iPhone 12 Pro has a corresponding link generated. I believe the resolution is 2,532 x 1,170.
I was under the impression the scraping tool would have caught this but is there a static place in this repo that requires it?
Thanks for this amazing tool!

Hey @samselikoff! Thanks for opening the issue. Unfortunately, Apple did not update their dev site in a timely manner  yet, which is the data source where scraping happens.
Considering Apple's delay on updating it's own site, I now think it might be better to maintain this specs manually and ditch the scraping part.

Gotcha. In the meantime is there an escape hatch , a way to add individual devices?

On Nov 18, 2020, at 1:46 AM, Önder Ceylan<EMAIL_ADDRESS>wrote:

Hey @samselikoff! Thanks for opening the issue. Unfortunately, Apple did not update their dev site in a timely manner yet, which is the data source where scraping happens.
Considering Apple's delay on updating it's own site, I now think it might be better to maintain this specs manually and ditch the scraping part.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Awesome - nice work man!! Thank you!

On Nov 30, 2020, at 4:42 PM, Önder Ceylan<EMAIL_ADDRESS>wrote:

🎉 This issue has been resolved in version 4.0.0 🎉
The release is available on:
npm package (@latest dist-tag)
GitHub release
Your semantic-release bot 📦🚀
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks for contributing @samselikoff! 😊


Smaller font size and limited width with truncation for lang dropdown

Fix for https://github.com/wagtail/guide/issues/192

Perfect! TY!


Introduce a protocol with default implementation so reusable views like UITableViewCells don't need to hardcode a reusable identifier

Add a new file WithReusableIdentifier.swift:
protocol WithReusableIdentifier {
	static var reusableIdentifier: String { get }
}

extension WithReusableIdentifier {
	static var reusableIdentifier: String {
		String(describing: self)
	}
}

extension UITableViewCell: WithReusableIdentifier {
}

and replace something like AddHideTokensCell.identifier with AddHideTokensCell.reusableIdentifier where UITableViews and UICollectionViews are used so we end up with:
tableView.register(AddHideTokensCell.self, forCellReuseIdentifier: AddHideTokensCell.reusableIdentifier)

And we can remove lines like:
static let identifier = "AddHideTokensCell"

There might be cases where we use more than 1 identifier for a cell class within a table/collection view. I can't remember if there's any of those. If so, just keep those as it is.
We could have abstracted it more to become:
tableView.register(AddHideTokensCell.self)

But it seems to be too much magic..

@hboon Ok, Greate improvement!
i also will add UITableView help function for dequeue cells, to reduce and make code clearer
func dequeueCell<T>(indexPath: IndexPath) -> T where T: WithReusableIdentifier {
        return dequeueReusableCell(withReuseIdentifier: T.reusableIdentifier, for: indexPath) as! T
}

@vladyslav-iosdev Ok, sounds good. Probably for UICollectionView too. We just have to be careful not to create too much magic and form our own dialects.

@vladyslav-iosdev Ok, sounds good. Probably for UICollectionView too. We just have to be careful not to create too much magic and form our own dialects.

Its a gonna magic ;)


Server reflection support

Can we get a status update on this?

@a11r - I'd be willing to move this to GA (along with any dependencies of it - including grpc-tool).

(We should submit the spec to the repository before Beta however).

Reassigning: @a11r is taking over the care and feeding of this document.

The specification of the design is now done. Implementation is still pending and will be a blocker for GA. Switching the milestone from Beta to GA.

@iamqizhao is server reflection something that is planned for gRPC-Go? :)

Ping! This was set to be in GA but silently removed. No update for a year. Could we have an update please?

Update from the mailinglist:

The alpha version of server reflection has been provided in C++ and Go. Its interface is defined in reflection.proto. To enable reflection in a C++ server,  we need to link the reflection library to the binary like this. We also provide a descriptor database that could be used in client side to fetch server protos.

Server reflection in other languages may come later. A server reflection example in C++ will be added shortly.

C++ Server Reflection tutorial: https://github.com/grpc/grpc/blob/master/doc/server_reflection_tutorial.md

@y-zeng - I am assuming this can be closed.

C++ server reflection is done. Wrapped language server reflection can be tracked in #2565 (python),  #2566 (C#), #2567 (Ruby), #2568 (Node).


npm package list download fails with npm 4.2 in VS2017

Expected Behavior
npm can add packages
Actual Behavior
npm "install new packages" dialog fails

NTVS Version: 1.3.50316.00
Visual Studio Version: 15.1
Node.js Version: 7.9.0

Steps to Reproduce

Download "current" (not LTS) version of node/npm (7.9.0/4.2.0)
Install VS2017 Community Edition
Create a new Blank NodeJS javascript web application
Select "Install new npm packages"
Observe error in dialog, and outut window shows the following:

Registry url: https://registry.npmjs.org/
Your package catalog database needs to be upgraded. Please wait while we execute a full refresh.
Deleting C:\Users\user\AppData\Local\Microsoft\Node.js Tools\NpmCache
Path to npm: C:\Program Files\nodejs\npm.cmd
Downloading package cache to C:\Users\user\AppData\Local\Microsoft\Node.js Tools\NpmCache\all_packages.json
Downloading list of packages from https://registry.npmjs.org/-/all
Download complete - updating database
Reading 0 bytes from C:\Users\user\AppData\Local\Microsoft\Node.js Tools\NpmCache\all_packages.json (4/30/2017 6:43:49 PM)
Newtonsoft.Json.JsonException: Unexpected JSON token at start of NPM catalog data

Note that command line npm is functional, and adding packages there does result in them showing in the project tree UI under npm

This has nothing to do with the 'npm' version, as NTVS goes directly to the npm web endpoint. Unfortunately this has been sporadic of late (you can find other recent issues in this repo for similar bugs that refer to the NPM issue). The bottom line is that NPM is deprecating that API, and aren't investing in it. We already have code changes in the pipeline to replace this code and use newer NPM endpoints (see https://github.com/Microsoft/nodejstools/pull/1501 ).

Thanks Bill, hopefully that PR can goes in soon, the current experience is not good...


Automatic generating folder, %proj_dir%project_test\chat_history\history.sqlite

Type: Bug
Reference: https://ibb.co/Jnnr0JB

Every time i delete this, it gets re created after few minutes.
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 2904)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.93GB (6.50GB free)

Process Argv
--crash-reporter-id 0f6373bd-2fb9-43e4-a014-0b763f88d342

Screen Reader
no

VM
0%

Extensions (39)

Extension
Author (truncated)
Version

vscode-m3u
af4
1.0.0

bootstrap5-vscode
Anb
0.4.2

vscode-color
ans
0.4.5

vscode-django
bat
1.10.0

markdown-preview-github-styles
bie
2.0.2

vscode-styled-jsx
bla
2.1.1

vscode-tailwindcss
bra
0.10.0

simple-react-snippets
bur
1.2.7

npm-intellisense
chr
1.4.4

path-intellisense
chr
2.8.4

regex
chr
0.4.0

xml
Dot
2.5.1

es7-react-js-snippets
dsz
4.4.3

gitlens
eam
14.2.1

vscode-html-css
ecm
1.13.1

prettier-vscode
esb
10.1.0

auto-close-tag
for
0.5.14

live-sass
gle
6.1.1

vscode-drf
hlr
0.1.0

vscode-todo-highlight
jgc
2.0.8

vscode-language-babel
mgm
0.0.39

dotenv
mik
1.0.1

isort
ms-
2023.10.1

python
ms-
2023.14.0

vscode-pylance
ms-
2023.8.40

remote-wsl
ms-
0.81.0

sublime-keybindings
ms-
4.0.10

vscode-typescript-next
ms-
5.3.20230829

autodocstring
njp
0.6.1

explorer-exclude
Pet
1.3.2

material-icon-theme
PKi
4.30.1

vscode-scss-formatter
sib
3.0.0

vscode-fileutils
sle
3.10.3

sourcery
sou
1.8.0

vscode-standard
sta
2.1.3

autoimport
ste
1.5.4

open-in-browser
tec
2.0.0

vscode-djaneiro
the
1.4.2

errorlens
use
3.13.0

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30792227
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
2e4cg342:30602488
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30804715
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
synctok:30821570
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015cf:30823818

/confirmPlease

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.
Happy Coding!

Hey everyone,
I faced a similar issue with the automatic generation of the %proj_dir%project_test\chat_history\history.sqlite folder and file in VS Code. After some investigation, I discovered that the problem was caused by the latest update to the Sourcery extension (Release 1.8.0). In the changelog for this release, it's mentioned that they made improvements to the Sourcery Coding Assistant, including changes to output for recipes, code search, and local SQLite database storage for chat history.
To resolve this issue, I downgraded the Sourcery extension to the older version 1.7.0, and that did the trick for me. If you're also facing this problem, you might want to consider downgrading until the issue is resolved in a future update.
For more details, you can check out the changelog for Sourcery: Sourcery Changelog
Hope this helps!

/causedByExtension

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


Submit to asset library

Issue description
Submit to assetlibrary.

Steps to reproduce
Cannot find IREE in the asset library.
Minimal reproduction project (For SDK or engine issues)
N/A
Using a released version?
v0.0.01
What OS? Any other relevant information? (iree.gd revision, System information)
Windows, Nvidia


SolidusI18n error with solidus v2.0.0

I see forrowing error at Admin-Settings with solidus v2.0.0.
when I remove a line "gem 'solidus_i18n'" from Gemfile, I don't see this error.
NameError in Spree::Admin::GeneralSettings#edit

Showing /var/www/solidus/backend/app/views/spree/admin/general_settings/edit.html.erb where line #71 raised:

uninitialized constant SolidusI18n::LocaleHelper::Locale

Extracted source (around line #18):
16 # this project. solidusio/solidus now has those keys.
17 def all_locales_options
18 Locale.all.map { |locale| locale_presentation(locale) }.push(['English (EN)', :en])
19 end
20
21 private

If you use Rails5, you should set autoloading is enable.
config/environments/production.rb
config.enable_dependency_loading = true
I also had the same problem, but was resolved with this.
As another method, you can also create a Locale class in the initializer. However, you need to set a reference destination locales folder.
I am not familiar with Rails, I do not know how may I send what kind of patch. Although the LocaleHelper in the app folder below is loaded, you will need to resolve the phenomenon in which the Locale is not loaded in the following lib folder.

thanks.
I'm using Rails5.
I'v resolved with your first method.

It's better to solve this probrem without setting config.enable_dependency_loading = true.
I couldn't anderstand Takashi-U's second method.
Can anyone solve?

@useiichi could you please try use the path from #78 in your app?

thanks for tvdeyen.
but, I could'nt fix this probrem with your path from #78.
this error still occur.


Handle Time at query_obj generation time

As opposed to within the connector itself.

Coverage increased (+0.07%) to 69.34% when pulling 15aac332c1dee5b469b0e4140a95ebf04afe9bca on mistercrunch:handle_time into 5278b53218187992a089ed734ce90daf9551d44c on apache:master.

Coverage increased (+0.07%) to 69.34% when pulling 15aac332c1dee5b469b0e4140a95ebf04afe9bca on mistercrunch:handle_time into 5278b53218187992a089ed734ce90daf9551d44c on apache:master.

Coverage increased (+0.07%) to 69.34% when pulling 15aac332c1dee5b469b0e4140a95ebf04afe9bca on mistercrunch:handle_time into 5278b53218187992a089ed734ce90daf9551d44c on apache:master.

Coverage increased (+0.07%) to 69.34% when pulling 3586300ef17daa57412e41a67380e566c947c234 on mistercrunch:handle_time into 5278b53218187992a089ed734ce90daf9551d44c on apache:master.


UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 2: invalid start byte

we are getting same error when connecting to IBM DB2 database, and tried the mentioned solution does not work in our env, while creating connection object getting this issue.
Traceback (most recent call last):
File "test_as400.py", line 10, in
cnxn=pyodbc.connect(n)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 2: invalid start byte
Python: 3.6 64 bit
pyodbc: 4.0.27
OS: "RHEL 7.7/Linux"
DB: as400 i series DB2 database
driver: db2 for i Access Client Solutions
Could you please have a look into the issue for DB2 connection and update your findings would be really appreciated.

What is the locale/character encoding of the connection string?

character encoding of connection string is utf-8
and server locale setting is en_US.UTF-8

Could you post an ODBC trace? That will help determine where exactly that 0xa0 byte is coming from.

Hi All,
we replicated the issue in a new server environment where
installed pyodbc in python3.6 using pip install and everything works file,  different database API AS400, Teradata works fine.
After that uninstalled pyodbc using pip
and manually installed pyodbc using
setup.py build
setup.py install
and system broke, pyodbc throwing illegal encoding error, and sometime throws error in unrecognizable characters,
and, after that

Uninstalled manual built pyodbc using python setup.py install --record files.txt and xargs rm -rf < files.txt,
Installed using pip nothing works.

Is there any library binding with linux kernel when running install build, not sure, as pyodbc breaks after manual install.
Os version : RHEL 7
Hypervisor VM
pyodbc version 4.0.30
Traceback (most recent call last):
File "/usr/local/lib/python3.6/encodings/utf_16_le.py", line 16, in decode
return codecs.utf_16_le_decode(input, errors, True)
UnicodeDecodeError: 'utf-16-le' codec can't decode bytes in position 208-209: illegal encoding
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
SystemError: <class 'pyodbc.Error'> returned a result with an error set
Traceback (most recent call last):
cnxn=pyodbc.connect(n)

pyodbc.InterfaceError: ('IM002', '[IM002] 䑛瑡䑡物捥嵴佛䉄⁃楬嵢䐠楲敶\u2072慍慮敧\u2072敍獳条\u2065楦敬渠瑯映畯摮\u202e汐慥敳挠敨正映牯琠敨瘠污敵漠\u2066湉瑳污䑬物椠\u206e潹牵漠扤\u2e63湩\u2e69툀\uea9b(SQLDriverConnect)')

Could you post an ODBC trace? That will help determine where exactly that 0xa0 byte is coming from.

Code is not generating any odbc trace, we tried to generate that,
I think it not invoking the odbc call, before even odbc driver manager call it’s complaining.

You can strace the Python to see if it is getting to the DM - if it is, you should see it open the odbcinst.ini and/or odbc.ini files.
Does the connection string contain non-ASCII characters?

Thanks for the suggestion, we traced out the strace file and identified the issue with the odbc config where the driver file name needs to be mentioned exclusively and now driver is called.
character encoding='latin-1' is working with numeric data,
however string data is still coming with different encoding
like below when writing column header descriptions using writer method.
"塆佐⍌
could you please suggest which encoding should work universally with numeric and strings data type connecting with as400 database ?

Asian characters where you don't expect them are usually a sign of data in a narrow encoding like UTF-8, CP1252, etc. being interpreted as UTF-16.

Could you please explain this a little bit more elaborated ? so are you saying that string data stored in as400 tables can't expressed in UTF-8 encoding ? we haven't seen this kind of behavior in python3.4 with pyodbc 3.0.4.

@v-chojas
could you please further update on this ?
I am stuck here.
actually pyodbc is not parsing the sql text being passed to the driver program and in python 3.6 layer could see implicitly modulename: utf_16_le decode method is being called which is not the case in another server where pyodbc functions properly with various db drivers.
test_as400_36.py(30): print(cnxn)
<pyodbc.Connection object at 0x7f8668593618>
test_as400_36.py(32): curr=cnxn.cursor()
test_as400_36.py(36): '''
test_as400_36.py(37): params=("FXLCCN")
test_as400_36.py(40): curr.execute(sql)
--- modulename: utf_16_le, funcname: decode
utf_16_le.py(16):     return codecs.utf_16_le_decode(input, errors, True)
--- modulename: trace, funcname: _unsettrace

@v-chojas
if you need I can provide you the entire mtrace log to take a look.
Thanks and Regards,
Sukanta

@paulsuk1982 - Can you do a simple SELECT 1 AS FXLCCN? (I don't know if DB2 supports SELECT without FROM.)
Perhaps @kadler might have some insights on this.

@paulsuk1982 - Can you do a simple SELECT 1 AS FXLCCN? (I don't know if DB2 supports SELECT without FROM.)

Db2 does not allow this - you would have to use the dummy table eg. SELECT 1 AS FXLCCN FROM SYSIBM.SYSDUMMY1 or  use values VALUES(1).
@paulsuk1982 You say you're using the IBM i Access driver, but the message is coming from DataDirect and there's some disconnect that it doesn't speak UTF-16:
echo '䑛瑡䑡物捥嵴佛䉄⁃楬嵢䐠楲敶慍慮敧敍獳条楦敬渠瑯映畯摮汐慥敳 挠敨正映牯琠敨瘠污敵漠湉瑳污䑬物椠潹牵漠扤'  | iconv -f UTF-8 -t UTF-16 | hexdump -C
00000000  ff fe 5b 44 61 74 61 44  69 72 65 63 74 5d 5b 4f  |..[DataDirect][O|
00000010  44 42 43 20 6c 69 62 5d  20 44 72 69 76 65 4d 61  |DBC lib] DriveMa|
00000020  6e 61 67 65 4d 65 73 73  61 67 66 69 6c 65 20 6e  |nageMessagfile n|
00000030  6f 74 20 66 6f 75 6e 64  50 6c 65 61 73 65 20 63  |ot foundPlease c|
00000040  68 65 63 6b 20 66 6f 72  20 74 68 65 20 76 61 6c  |heck for the val|
00000050  75 65 20 6f 49 6e 73 74  61 6c 6c 44 69 72 20 69  |ue oInstallDir i|
00000060  79 6f 75 72 20 6f 64 62  0a 00                    |your odb..|

I'm pretty sure you have something messed up in your setup. I'd make sure that pyodbc is linked to unixODBC and nothing else is injecting DataDirect in there via LD_PRELOAD or something.

@kadler
Thanks for the update, it’s suspected that characterset conversion is having issue through driver manger,
Appreciate your help in converting the characters into UTF-16 using iconv utility which I was not aware.
Actually we installed teradata driver before in this system, so might be that is causing issue still libraries are linked,
Will look into further and will update.
But this is great help.

Related: #847

@gordthompson
thanks for sharing the link of another similar issue that has been resolved #847
we are hitting the same issue. Nice catch.
below the ldd output on the pyodbc so file.
`
ldd /home/pyadmin/.local/lib/python3.6/site-packages/pyodbc.cpython-36m-x86_64-linux-gnu.so
linux-vdso.so.1 =>  (0x00007ffe2d7ed000)
libodbc.so => /lib64/libodbc.so (0x00007f6112a16000)
libpython3.6m.so.rh-python36-1.0 => /opt/rh/rh-python36/root/usr/lib64/libpython3.6m.so.rh-python36-1.0 (0x00007f61124ef000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f61121e8000)
libm.so.6 => /lib64/libm.so.6 (0x00007f6111ee6000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f6111cd0000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6111ab4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f61116e6000)
librt.so.1 => /lib64/librt.so.1 (0x00007f61114de000)
libodbcinst.so => /lib64/libodbcinst.so (0x00007f61112af000)
libddicu27.so => /lib64/libddicu27.so (0x00007f61103b8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f61101b4000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f610ffb1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6112ee5000)
lrwxrwxrwx. 1 root root 47 Dec 24  2018 /lib64/libodbcinst.so -> /opt/teradata/client/15.10/lib64/libodbcinst.so
lrwxrwxrwx. 1 root root 43 Dec 24  2018 /lib64/libodbc.so -> /opt/teradata/client/15.10/lib64/libodbc.so
lrwxrwxrwx. 1 root root 46 Dec 24  2018 /lib64/libddicu27.so -> /opt/teradata/client/15.10/lib64/libddicu27.so
`
in my case its symlink which is pointing to the teradata so files.
if I rename /lib64/libodbcinst.so, /lib64/libodbc.so and /lib64/libddicu27.so code breaks
`
python3.6
Python 3.6.9 (default, Sep 11 2019, 16:40:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import pyodbc
Traceback (most recent call last):
File "", line 1, in
ImportError: libodbc.so: cannot open shared object file: No such file or directory

`
Even uninstall/reinstall pyodbc does not help, do we need to uninstall teradata packages those are installed ?
or how to approach ?

thanks for all your help,
issue is resolved after rebuilding pyodbc with correct unixODBC libodbc.so file, so thanks for all your help, we can close this issue.
thanks @gordthompson for relating this issue to Related: #847, which helped in identifying the issue.

thanks for all your help,
issue is resolved after rebuilding pyodbc with correct unixODBC libodbc.so file, so thanks for all your help, we can close this issue.
thanks @gordthompson for relating this issue to Related: #847, which helped in identifying the issue.

Good to close this issue.

Good to close this issue.

Good to close this issue.

Good to close this issue.

Hi, am installing klipper on a Gen L boad and come up with this error:- Decode Error:
'utf-8' codec can't decode byte 0xa0 in position 72: invalid start byte. Please convert your config files to utf-8!
Have been searching the net for answers, the story above is about the closest, so i checked my config files for cockroaches, or anything else that might have jumped in uninvited, to no avail.
Don't really understand the jargon above, so if someone could help that would be great.

What ODBC driver are you using? It doesn't sound like your question is related to pyODBC?

started writing to "printer.cfg" line by line
1 # See the example.cfg file for a description of available parameters.  :- This line worked file
2 #      :- this line pulled the error
File contence
See the example.cfg file for a description of available parameters.
#
[stepper_x]
step_pin: ar54
dir_pin: !ar55
enable_pin: !ar38
microsteps: 16
rotation_distance: 40
#step_distance: .0125
endstop_pin: ^ar3
position_endstop: 0
position_max: 235
homing_speed: 50
homing_retract_dist: 0
#
[tmc2130 stepper_x]
uart_pin: ar40
microsteps: 16
rotation_distance: 40
interpolate: True
run_current: 0.760
sense_resistor: 0.110
stealthchop_threshold: 100

[stepper_y]
step_pin: ar60
dir_pin: !ar61
enable_pin: !ar56
microsteps: 16
rotation_distance: 40
#step_distance: .0125
endstop_pin: ^ar14
position_endstop: 0
position_max: 235
homing_speed: 50
homing_retract_dist: 0
#
[tmc2130 stepper_y]
uart_pin: ar59
microsteps: 16
rotation_distance: 40
interpolate: True
run_current: 0.760
sense_resistor: 0.110
stealthchop_threshold: 100

[stepper_z]
step_pin: ar46
dir_pin: ar48
enable_pin: !ar62
microsteps: 16
rotation_distance: 40
#step_distance: .0025
endstop_pin:probe:z_virtual_endstop
position_max: 250
position_min: -1

[tmc2130 stepper_z]
uart_pin: ar44
microsteps: 16
rotation_distance: 40
interpolate: True
run_current: 0.760
sense_resistor: 0.110
stealthchop_threshold: 5
#
[extruder]
max_extrude_only_distance: 100.0
step_pin: ar26
dir_pin: !ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 40
#step_distance: 0.010526
nozzle_diameter: 0.400
filament_diameter: 1.750
pressure_advance: 0.060
pressure_advance_lookahead_time: 0.010
heater_pin: ar10
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog13
Pin for filiment runout
#control: pid
tuned for stock hardware with 200 degree Celsius target
#pid_Kp: 21.527
#pid_Ki: 1.063
#pid_Kd: 108.982
min_temp: 0
max_temp: 250

[heater_fan my_nozzle_fan]
pin: ar7
heater: extruder
heater_temp: 50.0

[tmc2130 stepper_extruder]
uart_pin: ar44
microsteps: 16
rotation_distance: 40
interpolate: True
run_current: 0.900
sense_resistor: 0.110
stealthchop_threshold: 0

[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
control: pid
tuned for stock hardware with 50 degree Celsius target
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
#
[fan]
pin: ar9
#       /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
pin_map: arduino
#
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
#
[display]
lcd_type: st7920
cs_pin: ar27
sclk_pin: ar25
sid_pin: ar29
encoder_pins: ^ar23, ^ar17
click_pin: ^!ar35
#
[board_pins]
aliases:
# Common EXP1 header found on many "all-in-one" ramps clones
EXP1_1=ar37, EXP1_3=ar17, EXP1_5=ar23, EXP1_7=ar27, EXP1_9=,
EXP1_2=ar35, EXP1_4=ar16, EXP1_6=ar25, EXP1_8=ar29, EXP1_10=<5V>,
# EXP2 header
EXP2_1=ar50, EXP2_3=ar31, EXP2_5=ar33, EXP2_7=ar49, EXP2_9=,
EXP2_2=ar52, EXP2_4=ar53, EXP2_6=ar51, EXP2_8=ar41, EXP2_10=
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"
# Note, some boards wire: EXP2_8=, EXP2_10=ar41
#
[bltouch]
sensor_pin: ^ar18
control_pin: ar11
x_offset: -45
y_offset: -10
z_offset: 1.6
pin_move_time: 0.4
#
[bed_mesh]
speed: 80
horizontal_move_z: 5
min_point: 90, 20
max_point: 235, 235
probe_count: 3,3
fade_start: 1.0
mesh_pps: 2,2
#
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE

[safe_z_home]
home_xy_position: 155,120
speed: 80.0
z_hop: 10.0
z_hop_speed: 10.0
#
## <---------------------- SAVE_CONFIG ---------------------->
## DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
##
## [extruder]
## control = pid
## pid_kp = 30.662
## pid_ki = 2.350
## pid_kd = 100.035
seems to be a syntax problem?

That clearly has absolutely nothing to do with pyODBC nor even ODBC, so this is the wrong place to ask.

where do  go for help with this

thanks heaps for your help

thanks for all your help, issue is resolved after rebuilding pyodbc with correct unixODBC libodbc.so file, so thanks for all your help, we can close this issue.
thanks @gordthompson for relating this issue to Related: #847, which helped in identifying the issue.

Can you tell what is the resolution?


escaped parameters fail to generate the correct url path when a base path is present.

If a path parameter needs to be escaped the runtime code generates an invalid path.
BasePath = "/foo"
Path = "/v1/{param}"
I suggest adding a transport to the HTTP client that dumps the request.
import openapiclient "github.com/go-openapi/runtime/client"
c := generatedClient.New(
		openapiclient.NewWithClient("localhost", "/foo", []string{"http"}, http.DefaultClient),
		nil,
)

// all of the following fail.
// passing in a raw string will invoke an invalid path: /foo/v1/param/value
c.ResourceMethod((&ResourceMethodParameters{}).WithParam("param/value"))
// passing in an escaped string will invoke an invalid path: /foo/v1/param/value
c.ResourceMethod((&ResourceMethodParameters{}).WithParam(url.PathEscape("param/value")))

These fail because of the runtime/client's interaction with URL.
The http client uses URL.EscapedPath() to determine what path to use.
func (u *URL) EscapedPath() string {
	if u.RawPath != "" && validEncodedPath(u.RawPath) {
		p, err := unescape(u.RawPath, encodePath)
		if err == nil && p == u.Path {
			return u.RawPath
		}
	}
	if u.Path == "*" {
		return "*" // don't escape (Issue 11202)
	}
	return escape(u.Path, encodePath)
}

client.Runtime.Submit has the following code:
func (r *Runtime) Submit(operation *runtime.ClientOperation) (interface{}, error) {
        // ...
	if req.URL.Path != "" && req.URL.Path != "/" && req.URL.Path[len(req.URL.Path)-1] == '/' {
		reinstateSlash = true
	}
	req.URL.Path = path.Join(r.BasePath, req.URL.Path)
	if reinstateSlash {
		req.URL.Path = req.URL.Path + "/"
	}
        // ...
}

setting req.URL.Path = path.Join(r.BasePath, req.URL.Path) causes url.EscapedPath() to return
req.URL.Path unescaped, since escape(u.Path, encodePath) only escapes the ?, it assumes the fragments have already been properly escaped.
the fix is to properly set both the RawPath and the Path in the submit function.
	req.URL.Path = path.Join(r.BasePath, req.URL.Path)
        req.URL.RawPath = path.Join(r.BasePath, req.URL.RawPath)

I also believe that func (r *request) BuildHTTP(...) (*http.Request, error) { should properly escape the path parameters, but that breaks current behaviour.
	// create http request
	path := r.pathPattern
	for k, v := range r.pathParams {
		log.Println("replacing", "{"+k+"}", "with", v, "in", path)
		path = strings.Replace(path, "{"+k+"}", url.PathEscape(v), -1)
	}

Environment
swagger version: master, d507f49829bea7a9c1cc313e80de65bae4a9a6bc
go version: 1.8.1
OS: linux

Verified today the status of this long standing issue... :)
OK so this works just fine.
c.ResourceMethod((&ResourceMethodParameters{}).WithParam("param/value")) will automatically escape the parameter and I could not see any issue with routing.
On the server side, the param is properly unescaped.
Preparing a PR that adds this interesting test to exercise the full rountrip with all runtime dependencies.


Remove more characteristic 2 complications

There's fix for a use after free in here, the rest is straightforward.
Checklist
Thank you for your contribution. Please answer the following:

[x] I acknowledge that I am authorized to submit this code under
the terms of the Apache License
[ ] All new public APIs are documented
[ ] All new public functions have tests
[ ] All new public functions have fuzzing tests

where was the use-after-free?

It's right at the top, fixed in https://github.com/quictls/quictls/pull/177/commits/7f8ac72e39b1afc5c1f68740e7a0cb1c777e0433:
https://github.com/quictls/quictls/blob/4dbf2200e0ba7dd4301ddf1b16ec7260390d3ef2/crypto/ec/ec_asn1.c#L197-L204
If the field type is set to a nid without corresponding obj (since all methods are built-in and have a field type of NID_X9_62_prime_field, this isn't really possible), the goto err leaves a freed pointer in ret->p.other, making either the caller perform a double free in the cleanup path after
https://github.com/quictls/quictls/blob/4dbf2200e0ba7dd4301ddf1b16ec7260390d3ef2/crypto/ec/ec_asn1.c#L339-L341
or the caller of EC_GROUP_get_ecparameters() will receive a freed pointer in params->p.other and will then likely perform a double free when freeing params in its cleanup path.

Yes, forgot to mention that. Thanks, merged.


Jenkins 2.7.2 LTS

Highlights:

Update to the latest LTS version - Jenkins 2.7.2
Update almost all plugins, including JobDSL
Rewritten ADOP Sonar init script, as for Jenkins 2 they requires newer version of SonarQube plugin and in newer version they have changed the way how it works with global configuration.
Tested on Java and Chef cartridges

New plugins: (to fully support "Jenkins Pipeline")

CloudBees Docker Pipeline
CloudBees Bitbucket Branch Source
GitHub Organization Folder

JobDSL:
It works fine and in a smart way, so we can easily migrate old code to support latest version of plugin. And i just realized that because we have fully synced cartridges in already running ADOP stacks, it would not affect those already running ADOP stacks even if we would change everything in content of cartridges, but in case of this https://github.com/Accenture/adop-platform-management/issues/16 - it would, but i think it's more exceptional case rather than rule...
Processing DSL script environment_provisioning.groovy
Warning: (environment_provisioning.groovy, line 29) injectPasswords is deprecated
Warning: (environment_provisioning.groovy, line 119) injectPasswords is deprecated
Warning: (environment_provisioning.groovy, line 171) injectPasswords is deprecated

Subscribed :+1:

Looks good. This would go in the next release of ADOP so happy to merge it.


Ensure VoltageScale remains frozen from Pwr::freeze() to Rcc::freeze()

This ensures that the VoltageScale configured by Pwr::freeze() cannot be changed when it is passed to Rcc::freeze(), while still allowing access to the VoltageScale value.
See https://github.com/stm32-rs/stm32h7xx-hal/pull/139#discussion_r494572457
This is a breaking change.

Looks good, thanks. Agreed that the enum can #[derive(Copy, Clone, PartialEq)] now, and the rename to pwrcfg makes sense.
bors r+


Remove Express

Description
Merges into the Release Branch.
Removes Express in favor of Node http.
Looking for feedback on the implementation.

Decided not to make the breaking change now.


How to add class to html table generated by

Function sheet_to_html allows to generate raw html table. I want to add to them some classes or override their template in elastic way? How to do this using this function?
For example instead

...

I asking about: how to generate

    ...

to prevent table stick out frame. Example: Responsive tables:

https://www.w3schools.com/bootstrap4/bootstrap_tables.asp

Now I have
HTML

JavaScript
const html = XLSX.utils.sheet_to_html(ws, {editable: true});
document.getElementById('out').innerHTML = html;
document.getElementById('out table').classList.add("table");

If it is best way please close this issue. It you know better, please comment.

This is a horrible hack and eventually will be fixed, but you could set the id:
const html = XLSX.utils.sheet_to_html(ws, {editable: true, id: 'newid" class="newclass'});

The reason this hack works is because the function doesn't attr-escape the id: https://github.com/SheetJS/js-xlsx/blob/master/bits/79_html.js#L87


[NEW]: Binance Bridge hacked for $570m

Date
2022-10-6
Description
An attacker was able to manipulate the proof for a transaction and forge a valid request for binance bridge to pay them two million BnB (worth around $570 million). This happened in two separate transactions (each of 1m BnB) so obviously was a repeatable exploit and could’ve been way worse. Binance froze the whole chain to stop the funds from all being transferred so ~only~ $100m seems for sure unrecoverable. Good root cause analysis by samczsun I think.
Links
https://mobile.twitter.com/samczsun/status/1578167198203289600
https://www.reddit.com/r/bnbchainofficial/comments/xxjkpy/temporary_pause_of_bsc/
https://www.coindesk.com/business/2022/10/06/binance-linked-bnb-price-falls-close-to-4-on-hack-rumors/
Agreement

[X] I irrevocably agree to release my contribution under the CC-BY 3.0 License

Attribution name
No response
Personal link
No response

Already published.


Regression testing and readability additions for reward curve log2

A set of changes to the log2 function in the pallet-staking-reward-curve module.
Changes

Add 5 regression tests to check and verify the boundaries of the log2 function
Readability changes:

Pulled taylor_term closure out of the log2 function
Add a pow2! macro
Add doc comments to clarify code intent

Additional Info

This PR does not change log2 behaviour

Thanks for the clarification on log2(q/p) == -log2(p/q), that makes a lot more sense! I will update asap

maybe merge master, and also you can change Label when you think it is ready for review again after comments are addressed

Yeah, please merge master.

I don't think I am right to review this PR. Unfamiliar with the math here, would need to look into it better.
That being said, a sanity review of the code looks fine.
I think a test which verifies a range of numbers from the min to max threshold of this function would be nice to see.

I don't think I am right to review this PR. Unfamiliar with the math here, would need to look into it better.
That being said, a sanity review of the code looks fine.
I think a test which verifies a range of numbers from the min to max threshold of this function would be nice to see.

Does it needs 2 reviewer ? I'm the original writer, and approved, I guess second review should be about substrate 2.0, this code is fine it only adds doc.
also there is already a test for this:
#[test]
fn test_log() {
	let div = 1_000;
	for p in 0..=div {
		for q in 1..=p {
			let p: u32 = (1_000_000 as u64 * p as u64 / div as u64).try_into().unwrap();
			let q: u32 = (1_000_000 as u64 * q as u64 / div as u64).try_into().unwrap();

			let res = - (log2(p, q) as i64);
			let expected = ((q as f64 / p as f64).log(2.0) * 1_000_000 as f64).round() as i64;
			assert!((res - expected).abs() <= 6);
		}
	}
}


[Improve] Apply clang-tidy check in CI

It's better to apply the clang-tidy check in CI to discover some problems in the code.

Could you assign this issue to me? The existing code has many problems so that clang-tidy checks cannot pass. And accidentally I found a bug (https://github.com/apache/pulsar-client-cpp/issues/202) from the clang-tidy check.


fix url

Cadl Ranch Contribution Checklist:

[ ] I have written a scenario spec
[ ] I have meaningful @scenario names. Someone can look at the list of scenarios and understand what I'm covering.
[ ] I have written a mock API
[ ] I have used @scenarioDocs for extra scenario description and to tell people how to pass my mock api check.

i moved property right under type bc it's technically a type and i didn't want to make it too embedded


New audio source: Aimp

Hi!
Would it be possible to add Aimp player as the audio source?
For anybody unfamiliar with this player, please refer to the relevant Wikipedia article.
While searching if AudioBand already supports it I found at least couple of toolbar-based control/player apps mentioned for it (one was originally used for winamp, the other developed for Aimp specificaly). Aimp should have fairly well describe documentation and proper mechanisms to be controlled and queried by an outside application, I believe.
Thank you very much in advance for taking this into consideration! :)

To follow up on my previous message with some potentially helpful details.
Aimp maintains a decent SDK for plugin development and integration with the external applications.
SDK source is provided as C++ header file set and Delphi units.
Aimp DotNet SDK proxy library also exist and is kept up to date but not by the original team.
Hopefully this can speed up the process of deciding to introduce or not Aimp audio source into the AudioBand project. :)

This player looks nice, I didn't know it. Will give it a try.
I don't know about the maintener of this project (@dsafa ), but looks like this project is kinda abandoned. The issues are pilling up and the pull requests are not being accepted. So, with that in mind, I find very hard that someone will implement this audio source for you.
But, if you are willing to, the docs are very clear and concise, you could try to implement it by yourself, and them share it with us! The docs are here:

The maintainer made an issue with the explanation of the delay.
Hopefully he will start again soon.

+1, i would really like this to happen as i use aimp a lot


nixos: Don't exit with an error in the activation script

Exiting with an error in the activation script causes the whole script to fail and system boot thus fails with a kernel panic. Since the point of exiting with an error is mainly to make the systemd service fail, let's do it only when the script runs as a service.
Fixes #77

Superseded by #85