Add OAreport, OAsupport

@JosephMcArthur Still a WIP but I’ve added you as a reviewer if you wanted to check out the copy bits I added first.

Then let's go with their in both places. Thanks again!
Joseph McArthur
Assistant Director: Right to Research Coalition http://righttoresearch.org
Director / Founder: Open Access Button http://openaccessbutton.org
Twitter: @Mcarthur_Joe https://twitter.com/Mcarthur_Joe
Skype: joseph_mcarthur
On Mon, Jul 26, 2021 at 6:02 PM, Sophy @.***> wrote:

@.**** commented on this pull request.
In src/_data/products.json
https://github.com/oaworks/oa-works/pull/122#discussion_r676786675:

 "embed": "

Avoid paywalls, request research
Enter an article’s URL, DOI, Title, or Citation

",

 "colour": "chartreuse",

 "featured": true

},

{

"logo": "",

"name": "OAreport",

"url": "https://oa.report",

"label": "Open Access reporting",

"tagline": "Put OA policies into practice in minutes, not months.",

"cta": "Sign up for updates",

"description": "OAreport translates policy to impact by helping libraries and funder discover papers covered by your policy, analyze if and how papers comply, and unlock individual papers and systemic changes.",

Well the correct way would be "their policy" of course (as suggested
here). What’s on the OAreport website is grammatically incorrect.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/oaworks/oa-works/pull/122#discussion_r676786675, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFZMZ2H5DZVOY7HLF5T7QTTZWILLANCNFSM5BAFXHAA
.


make a table for your books section

Fixed the nav alaignment issue and if any more changes is required please let me know.please review my PR #74  @SauravMukherjee44

made the table for books section.please review my PR #74 @SauravMukherjee44

Could you host your repo on GitHub pages and share the link below.

Could you host your repo on GitHub pages and share the link below.

https://tanwi1234.github.io/Aec-Library-Website/

Hey, Everything is alright just do fetch upstream once, Update your repo and resolve conflicts.
And rename tanwi.html to index.html.
For any help, you can reach out to me : https://sauravmukherjee.bio.link/

Hey, @tanwi1234 Everything is alright just do fetch upstream once, Update your repo and resolve conflicts. And rename tanwi.html to index.html.
For any help, you can reach out to me: https://sauravmukherjee.bio.link/

after doing fetch upstream index file is not working. what to do now?


Nanopore variant calling stats may be inflated due to duplicate variants from ARTIC pipeline

There's an unresolved issue with the ARTIC pipeline where variants present in both pools may not be merged/deduplicated properly (see https://github.com/artic-network/fieldbioinformatics/issues/53 and https://github.com/will-rowe/artic-tools/issues/3), which may result in inflated numbers of variants found in these samples with BCFTools and reported in the viralrecon MultiQC report.
For example, in some samples I tested, the following variant calls are duplicated in the <sample>.pass.vcf.gz:
MN908947.3	28881	.	G	A	14025.3	PASS	TotalReads=985;SupportFraction=0.95057;SupportFractionByStrand=0.924196,0.976891;BaseCalledReadsWithVariant=902;BaseCalledFraction=0.902;AlleleCount=1;StrandSupport=37,11,455,482;StrandFisherTest=40;SOR=0.203982;RefContext=CAGTAGGGGAA;Pool=nCoV-2019_1	GT	1
MN908947.3	28881	.	G	A	14657.3	PASS	TotalReads=962;SupportFraction=0.946487;SupportFractionByStrand=0.910959,0.981867;BaseCalledReadsWithVariant=894;BaseCalledFraction=0.919753;AlleleCount=1;StrandSupport=43,9,437,473;StrandFisherTest=65;SOR=0.199358;RefContext=CAGTAGGGGAA;Pool=nCoV-2019_2	GT	1
MN908947.3	28882	.	G	A	14025.3	PASS	TotalReads=985;SupportFraction=0.870563;SupportFractionByStrand=0.780772,0.960173;BaseCalledReadsWithVariant=880;BaseCalledFraction=0.88;AlleleCount=1;StrandSupport=108,20,384,473;StrandFisherTest=176;SOR=0.440152;RefContext=AGTAGGGGAAC;Pool=nCoV-2019_1	GT	1
MN908947.3	28882	.	G	A	14657.3	PASS	TotalReads=962;SupportFraction=0.86984;SupportFractionByStrand=0.774981,0.964305;BaseCalledReadsWithVariant=864;BaseCalledFraction=0.888889;AlleleCount=1;StrandSupport=108,17,372,465;StrandFisherTest=191;SOR=0.462109;RefContext=AGTAGGGGAAC;Pool=nCoV-2019_2	GT	1
MN908947.3	28883	.	G	C	14025.3	PASS	TotalReads=985;SupportFraction=0.973349;SupportFractionByStrand=0.984946,0.961775;BaseCalledReadsWithVariant=884;BaseCalledFraction=0.884;AlleleCount=1;StrandSupport=7,19,485,474;StrandFisherTest=14;SOR=0.20202;RefContext=GTAGGGGAACT;Pool=nCoV-2019_1	GT	1
MN908947.3	28883	.	G	C	14657.3	PASS	TotalReads=962;SupportFraction=0.967308;SupportFractionByStrand=0.976838,0.957817;BaseCalledReadsWithVariant=885;BaseCalledFraction=0.910494;AlleleCount=1;StrandSupport=11,20,469,462;StrandFisherTest=8;SOR=0.303134;RefContext=GTAGGGGAACT;Pool=nCoV-2019_2	GT	1

The ARTIC pipeline handles variant calling for each PCR pool separately and then merges the VCF files, by default, with artic_vcf_merge, which doesn't appear to do any deduplication of variants (see fieldbioinformatics/artic/vcf_merge.py.
If ARTIC is run with --strict, then artic-tools v0.2.6 (which artic_minion v1.2.1 uses) keeps all copies of duplicate variants encountered as well:
https://github.com/will-rowe/artic-tools/blob/98532314bc2345ed64e3c8864e2a1b22b47b794f/artic/vcfCheck.cpp#L167
Although the code has changed in artic-tools v0.3.0 compared to v0.2.6:
https://github.com/will-rowe/artic-tools/compare/v0.2.6...v0.3.0#diff-df805cd5df2f5f2218fd8b5ba16f89171028315340e591b941f6fe135e7cf8d9L167

artic-tools v0.3.0 also keeps the duplicate variant calls and logs that the variant was found in an amplicon overlap region:
[12:29:37] [artic-tools::check_vcf] variant at pos 28881: G->A
[12:29:37] [artic-tools::check_vcf]     located within an amplicon overlap region
[12:29:37] [artic-tools::check_vcf] variant at pos 28881: G->A
[12:29:37] [artic-tools::check_vcf]     located within an amplicon overlap region
[12:29:37] [artic-tools::check_vcf] variant at pos 28882: G->A
[12:29:37] [artic-tools::check_vcf]     located within an amplicon overlap region
[12:29:37] [artic-tools::check_vcf] variant at pos 28882: G->A
[12:29:37] [artic-tools::check_vcf]     located within an amplicon overlap region
[12:29:37] [artic-tools::check_vcf] variant at pos 28883: G->C
[12:29:37] [artic-tools::check_vcf]     located within an amplicon overlap region
[12:29:37] [artic-tools::check_vcf] variant at pos 28883: G->C
[12:29:37] [artic-tools::check_vcf]     located within an amplicon overlap region

Possible solution
One possible solution would be to add a process and script to keep only the first duplicate variant called by the ARTIC pipeline.

Hi @peterk87! Hope you are well and Happy New Year! Prepping for another release soon. I think we would need to write a small Python script or the likes to deduplicate the VCF file. I wonder whether we need to prioritise keeping one variant over another based on the entries in the final column? Are there any existing tools that allow you dededuplicate VCF files 🤔 Will take a look.
Also, be great if you have a full VCF file handy I could use to test this as generated from the pipeline.

This would be worth testing:
https://github.com/vcflib/vcflib/blob/master/doc/vcfuniq.md

Ok. This will be fixed in https://github.com/nf-core/viralrecon/pull/252 and a new file called <sample>.pass.unique.vcf.gz will be written to the results directory. All downstream processes will use the de-duplicated VCF file which will also fix the reporting.
I ended up wiring in a module for vcfuniq/vcfuniq which worked just fine.

Thanks @drpatelh ! This will be great for future analyses. vcflib looks very useful.


Errors should say so

Compare:
src\Idea.hs:8:1: Warning:
    The import of `Control.Arrow' is redundant

And:
src\Idea.hs:8:8:
    Could not find module `Control.ArrowX'
    Perhaps you meant Control.Arrow (from base-<IP_ADDRESS>)
    Use -v to see a list of the files searched for.

Would be nice if the second said Error explicitly, as suggested in #59 by @rvion.

Thanks to the pretty printing, actually figuring where the Error should be inserted is pretty tricky. I agree it's inconsistent, but I think raising a ticket for GHC itself is the right place to raise it, if people still want it fixing.


TypeScript with TurboRepo (monorepo) not able to resolve paths

Bug Report
I am on a monorepo using TurboRepo for managing it. However only until recently when the build was finished I tried to run and it threw me the following.
Error: Cannot find module '~database/utils'
... extra logs

Now ~database/utils is actually present in my path aliases in tsconfig.json and tsconfig.build.json one being used in development and the other in compilation.
💻 Code
tsconfig.json
{
  "extends": "tsconfig/base.json",
  "include": ["./src/**/*.ts", "./test/**/*.ts", "jest-setup-integration.ts", "./migrate.ts", "./environment.d.ts"],
  "exclude": ["./turbo", "./coverage"],
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "~src/*": ["./src/*"],
      "~types/*": ["./src/types/*"],
      "~database/*": ["./src/db/*"],
    }
  },
}

tsconfig.build.json
{
  "extends": "tsconfig/base.json",
  "include": ["./src/**/*.ts", "./environment.d.ts"],
  "exclude": ["./turbo", "./coverage"],
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "./dist",
    "rootDir": "./src",
    "module": "CommonJS",
    "paths": {
      "~src/*": ["./src/*"],
      "~types/*": ["./src/types/*"],
      "~database/*": ["./src/db/*"],
    }
  },
}

Now these try to extend the base config which is this.
base.json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Default",
  "compilerOptions": {
    "composite": false,
    "target": "ESNext",
    "declaration": true,
    "declarationMap": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "inlineSources": false,
    "isolatedModules": true,
    "moduleResolution": "node",
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "preserveWatchOutput": true,
    "skipLibCheck": true,
    "strict": true
  },
  "exclude": ["node_modules"]
}

Just to be really sure I tried to look at the code generated by TypeScript and weirdly enough it never really mapped the aliases to the correct paths.
index.ts - original file
import { dbConnection } from '~/database/instance';

console.log(dbConnection);

index.js - generated file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const instance_1 = require("~/database/instance");
console.log(instance_1.dbConnection);

🔎 Search Terms

Module Aliases
Monorepo
TurboRepo

⏯ Playground Link
Since this uses TurboRepo I don't think I can make it work on a playground however I created a small repo trying to replicate this.
Here is the repository: https://github.com/frostzt/ts-repro
🙁 Actual behavior
Right now the db connection import:
index.ts - original file
import { dbConnection } from '~/database/instance';

console.log(dbConnection);

Is as it was not module mapping applied
index.js - generated file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const instance_1 = require("~/database/instance");
console.log(instance_1.dbConnection);

🙂 Expected behavior
I wanted this:
index.ts - original file
import { dbConnection } from '~/database/instance';

console.log(dbConnection);

To change into this:
index.js - generated file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const instance_1 = require("./src/db/instance");
console.log(instance_1.dbConnection);

looking into the mapping and its use,  "~database/*": ["./src/db/*"] vs from '~/database/instance'; there is a / diff, is it intentional?
I was facing a similar case when I was working on merging 7 React apps into Turborepo monorepos, and was troubled by the fact that tsconfig/.eslintrc could not reflect in real-time when I made changes to them, so I built this small extension to monitor those config files and restart TypeScript / ESLint servers Automatically. Hope it helps.
https://marketplace.visualstudio.com/items?itemName=neotan.vscode-auto-restart-typescript-eslint-servers

Hey thanks for the reply @neotan actually no it was not intentional but a typo I have updated that. Also the repo I have given is the one that should be correct. And yes I actually have already restarted by TS and ESLint servers several times but makes no difference!

I wanted this: ... To change into this:

The paths option does not (and never has) changed import paths. It's there (like every other module option) to solve the reverse problem of how to tell TS where to find definitions/source for a remapping that occurs at runtime.

Once again I’ll point to this misleading text in the FAQ:

In this case, you can tell the TypeScript file resolver to support a number of custom prefixes to find code. This pattern can be used to avoid long relative paths within your codebase.

Um… no it can’t.  Not just by using paths in a tsconfig anyway.

Yep. #51267

Thanks a lot @RyanCavanaugh and @fatcerberus tbh yeah from the docs I thought it was the other way around. Now it makes sense.


Move to Python 3.7

The table below shows that Python 3.6 is not developed anymore and that Python 3.8 is coming soon, which suggests GDL should be moving to Python 3.7.

Python
Initial release
Last bugfix release
Last security release
Comments

3.6
End 2016
December 2018
Planned end 2021

3.7
Mid 2018
Planned mid 2020
Planned mid 2023
Interesting features w/r to 3.6

3.8
Planned Fall 2019
Not planned yet
Not planned yet

However, there are potential blockers :

On the PyTorch home page, the highlighted Python version in the "QUICK START LOCALLY" section is 3.6 (as of July 2019).  This does not mean that 3.7 is not supported (it is possible to select 3.7), but not defaulting to 3.7 rings a bell that maybe there are things that still work better with 3.6.
Versions of GDAL prior to 2.4 did not run on Python 3.7 (in our experience).

CI uses Python 3.7.
Fixed in #112


Prevent video links in comments for low level channels

stub
q: what happens on desktop?

@seanyesmunt will flesh out and hand to @infinite-persistence

@infinite-persistence I updated this issue. Let me know if you have any questions.


Split framework struct

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
related to #1924
Special notes for your reviewer:

Rename Framework to ModelFormat on InferenceService CR
Rename Framework to SupportedModelFormat on ClusterServingRuntime CR as it can contain more fields like AutoSelect configuration flags.

Release note:

@pvaneck @yuzisun I updated the PR with recommended struct names. Can you please review the changes?

thanks @Suresh-Nakkeran !
/lgtm
/approve


Allow joinWithCassandraTable() to work with solr_query predicate by tran...

...sforming partition key predicate into token-based predicate
Right now, everytime I use a where clause containing a solr_query predicate, I got an com.datastax.driver.core.exceptions.InvalidQueryException: CQL Solr queries do not support partition key bounds.
The fix would be to transform the join on partition key partitionKey = :partitionKey into token(partitionKey) = token(:partitionKey) so that it works.
It is necessary also to add an ALLOW FILTERING clause when we have a join with clustering column, for example:
WHERE token(partitionKey) = token(:partitionKey)  AND clustering1 = :clustering1 ALLOW FILTERING
,or when we have a non-empty WHERE clause (2nd index for example):
WHERE token(partitionKey) = token(:partitionKey)  AND myIndex = :myIndex ALLOW FILTERING

This was fixed in DSE 4.7 and Spark connector does not need any changes.


MC1.15 version 0.4.2 - crash in ExtractorAttachment

Crash with error on (marked here) line in ExtractorAttachment.java
        TileEntity tile = pipe.getWorld().getTileEntity(destinationPos);    // here
        if (tile == null) {
            return;
        }

Error log: https://hastebin.com/avoraduqaz.properties
This is not isolated but a repeated issue on the line mentioned.   Do you have some suggestion for a patch?
Let me know if you need more information.
Environment:
Ubuntu Linux, Java-8, dedicated server.
List of mods in crash-report.

1.15 is not supported.

1.15 is not supported.

Also note that watchdog crashes don't give a good indication of the cause of the crash, they just print the current stack frame.

Also note that watchdog crashes don't give a good indication of the cause of the crash, they just print the current stack frame.

OK.  Fair enough.  Thanks for taking a look.

OK.  Fair enough.  Thanks for taking a look.


Setup linter and Github Actions to lint every commit and PR

https://github.com/Tele-Bots/CovidBot/commit/7fdfb22cee233958800b07178d57eaa475a13712


technical limitation to bc length?

Hey!
thanks for a very flexible tool!!!
i am trying to use salmon alevin for the analysis of combinatorially indexed data.
unfortunately i am getting the error:
[alevinLog] [error] Barcode length was not in the required length range [1, 31].
it seems that there is a technical limitation to the barcode length?
https://github.com/COMBINE-lab/alevin-fry/blob/master/src/convert.rs#L226
i am running salmon v1.10.2 with:
--read-geometry 2[1-end] \
--umi-geometry 1[75-85] \
--bc-geometry 1[1-10,33-48,57-72]  \

if i provide a shorter geometry- there is no problem (eg. --bc-geometry 1[1-10,33-48])
both reads are of sufficient length...
thank you for your help!

Thanks a lot for your reply!
the experiment is a split-pool screen, and the summarization needed likely does not require the sophistication build in into salmon. just trying out var options :-)
at the end processing was done similar to https://github.com/CGATOxford/UMI-tools/blob/master/doc/Single_cell_tutorial.md using umi_tools extract (with a lot of Cs :-) ), followed by bowtie2, followed by samtools --remove-tag XS, featureCounts, and umi_tools count to summarize per-cell.
thanks a lot for your advise, and to the COMBINE-lab for developing and permanently adapting so many great tools for the community!


Is it possible to upgrade caddyserver?

Issue description
caddy is currently at release 0.11.0 while 0.10.12.
Is there a reason that caddy wasn't upgraded?
I don't mind doing it myself, I just don't get how to get the sha256 hash from a release (it doesn't seem to match the git commit hash).

update the version in /foo/nixpkgs/.../default.nix and modify one or more characters in the sha256
run nix-env -f /foo/nixpkgs -i package or nixos-rebuild -I nixpkgs=/foo/nixpkgs test, depending on how you want to install this package
now it should complain about a sha256 mismatch and you just need to copy the new sha256 into default.nix
have fun

Hi @allowthere. Looks like the above answers your question.
For more information, please check out the nixpkgs manual sections on creating packages and reviewing package updates. If the update was successful, please consider submitting a pull request.
If that's satisfactory, can we close this issue? Thanks.

@allowthere this package was updated for 18.09 so please close this issue.


seems stuck on maintenance mode

after enabling maintenance mode to update wallet, it seems findblock is stuck on maintenance mode. I've tried to force run all crons with -f, but only this one remains stuck.

Also, is it normal for everything to be checked as both "active" and "disabled" at the same time??
To be super clear - maintenance mode is not currently enabled on my pool

Have you disabled maintenance mode and checked the log file for errors?

Yes maintenance mode is disabled. the Log says:
2017-09-19 12:34:01 - CRIT --> Unable to start cronjob: Cron is already active in database: findblock_active is 1, please force run with -f once ensured it' not running
I went to the sql database, changed from 1 to 0 for disabled and ran with -f....no luck. Same error.

Have you disabled all cron processing before trying this out? Maybe it did start up in the meantime and the real error is something else? It's doubly strange because the status in the monitoring is not updated at all so it could be having issues someplace else.
Try removing all references to this cron in your monitoring table. That way we are sure it's clean. And disable crons, then run just find block itself and check for error output.
I am guessing there is an RPC issue that find block can't handle after the wallet upgrade which may be the root cause. You'll have to do some digging on your end to see why this upgrade started causing issues.

Could you clarify what you mean when you say "remove all references to this cron in your monitoring table"?

Check your database, there is a monitoring table - remove all entries for findblock_* in there. You will still have to disable the cron completely and manually check runtime for it, since I assume there is a different issue here caused by the wallet upgrade.

Great, got it. I will keep you posted. Thanks for the prompt reply!
On Sep 19, 2017 9:22 AM, "Sebastian Grewe"<EMAIL_ADDRESS>wrote:

Check your database, there is a monitoring table - remove all entries for
findblock_* in there. You will still have to disable the cron completely
and manually check runtime for it, since I assume there is a different
issue here caused by the wallet upgrade.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MPOS/php-mpos/issues/2596#issuecomment-330537232, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AciWl9fbkqCML7x2aWWCqat8pSaBs9mPks5sj8AigaJpZM4PbVcl
.

Would it make sense that I'm getting this error because the pool has not
found a block yet?
PHP Fatal error:  Uncaught exception 'Exception' with message 'RPC
call did not return 200: HTTP error: 500 - JSON Response: [-8] Invalid
blockhash' in /root/mpos/include/lib/jsonRPCClient.php:120
Stack trace:
#0 /root/mpos/cronjobs/findblock.php(35):
jsonRPCClient->__call('listsinceblock', Array)
#1 /root/mpos/cronjobs/findblock.php(35): BitcoinWrapper->listsinceblock('')
#2 {main}
thrown in /root/mpos/include/lib/jsonRPCClient.php on line 120
On Tue, Sep 19, 2017 at 9:25 AM, Tim Higgins<EMAIL_ADDRESS>wrote:

Great, got it. I will keep you posted. Thanks for the prompt reply!
On Sep 19, 2017 9:22 AM, "Sebastian Grewe"<EMAIL_ADDRESS>wrote:

Check your database, there is a monitoring table - remove all entries for
findblock_* in there. You will still have to disable the cron completely
and manually check runtime for it, since I assume there is a different
issue here caused by the wallet upgrade.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MPOS/php-mpos/issues/2596#issuecomment-330537232,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AciWl9fbkqCML7x2aWWCqat8pSaBs9mPks5sj8AigaJpZM4PbVcl
.

Yes but mPOS seems to have blocks in its table and tried to fetch all new transactions since then. If this was a hard reset of the coin you should create a new pool so MPOS is aware of that.

Or your coin simply can't handle an empty blockhash, which seems to be the reason here. In any case it's not something MPOS works around, so either check with the coin developers how they had this case in mind or "hack" a way around it.


sentry django integration: Incorrect request name is returned in transaction_context in the Dynamic Tracing

I am using django:2.2 and sentry-sdk:latest
The function of dynamic tracing is:
def traces_sampler(sampling_context):
    name = sampling_context["transaction_context"]["name"]
    if "/api/articles" in name:
        return 0.5
    else:
        # Default sample rate
        return 0

sentry_sdk.init(
    dsn="....",
    integrations=[DjangoIntegration()],
    traces_sampler=traces_sampler,
)

According to documentation I am expecting human readable transaction_context name to be returned  in sampling_context
Expected:
"transaction_context": {  "name": <string>  # human-readable identifier, like "GET /users" }
Actual:
"transaction_context": {  "name":  "generic WSGI request" }
According to this I am not able to sort request transactions ...
Is there is any way how to fix this?

Yes, this is a known issue. Instead we should show examples where the request URL is accessed.
The unfortunate issues is that a transaction ideally should start before routing takes place. With how the SDK currently works that means the sampling decision has to be made before routing.

Yes, this is a known issue. Instead we should show examples where the request URL is accessed.
The unfortunate issues is that a transaction ideally should start before routing takes place. With how the SDK currently works that means the sampling decision has to be made before routing.

@lobsterkatie I'm assigning you since you probably know best what we are supposed to recommend here

@lobsterkatie I'm assigning you since you probably know best what we are supposed to recommend here

You can get the original URL from the wsgi_environ entry in the sampling context, and then either decide on that directly or run it through the resolver. We actually just started doing that as well.

You can get the original URL from the wsgi_environ entry in the sampling context, and then either decide on that directly or run it through the resolver. We actually just started doing that as well.

need to fix docs then

need to fix docs then

Perhaps one generic caveat that the sampling context is captured before the transaction starts, or change the example for "name" to something else. Not entirely sure.
(see link in OP)

Perhaps one generic caveat that the sampling context is captured before the transaction starts, or change the example for "name" to something else. Not entirely sure.
(see link in OP)

Ah, yes. That code snippet was ported over from JS, where name is human readable... Didn't catch that that wouldn't be true for Python. I'll update.

Ah, yes. That code snippet was ported over from JS, where name is human readable... Didn't catch that that wouldn't be true for Python. I'll update.


how to convert tensoflow/lite pretrained model to 8 bit quantized model used in ACL?

As in the title,  how to convert tensoflow/lite pretrained model to 8 bit quantized model used in ACL?
I try searching in the web, but not much information attained. Are there a example conversion script like tensorflow_data_extractor.py to do this?
Thanks.

Hello @liwei46,
No, at the moment we don't have a conversion script like the tensorflow_data_extractor.py.
Process should be straight forward like the tensorflow extractor, you should save your weights into separate files and re-create the TFLite model using ACL, either through the graph API or directly using ACL primitives. Feel free to contribute if you manage to create such a script.
Or you can use ARMNN which provides a TFLite parser.

Hello @GeorgeARM,
Thanks for the  reply.  I have more questions below:

Is the operation of ACL qasymm8 same as tensorflow lite?
Is so, we only need to dump the parameters for each layer similar as the normal tensorflow model?
and there are min/max/scale values in float point format, and zero_point in integer in tensorflow lite models, does ACL use these min/max/scale values?
what is the format of ACL qasymm8 parameter file look like? are there a document describing this?

Regards,
liwei

Hi @liwei46,

Yes, QASYMM8 datatype is a uint8_t with scale and offset defined somewhere, like tensorflow.
Once you have the parameters, if they are float you have to define a scale and offset and quantitize them so that they can have a value between 0 and 255.
Please find here the definition of  Quantization Info
You can just define a tensor with datatype QASYMM8 and the QuantizationInfo you want. The send the tensor in the layer you want. Obviously the layer has to support it, in the comments in the header files you can check if a layer support QASYMM8 or not

Thanks,
Manuel

Closing for inactivity, feel free to reopen otherwise


Add JMX Port and JMX Options to client configuration

Is your feature request related to a problem? Please describe.
I've build a small demo application which generates data, pushes them into Kafka and consumes them to store the messages in a database. The goal was to do performance tests with this sample application using Prometheus and Grafana dashboard. However, I were not able to access the producer and consumer metrics, only the ones of the broker which is running as a docker container. The problem was that with kafkajs there neither is an option to specify a JMX Port nor JMX Options. The metrics which should be accessible can be found here.
Describe the solution you'd like
Therefore, I'd suggest to add the properties JMX Port and JMX Options to the client configuration in order to be able to expose the Kafka client metrics. Otherwise, I'd have to switch to implementing my application with Java as it offers to run a Javaagent which scrapes the desired metrics.

Thank you for your response. Unfortunately, I'm not able to find an instrumentation event which gives information on the average commit latency of the consumers as well as the average request latency of the producers. Am I missing them?

You'll have to be more specific about what it is you're looking for. Are you talking about the total request time for OFFSET_COMMIT requests as well as the total request time for any request made by a producer? Should time spent in a queue count or just the time over the wire? Latency usually refers to the time between a packet being sent and having been received and processed on the other end, but for that you'd be looking at NodeJS metrics rather than KafkaJS metrics.
What I'm guessing you're looking for is the REQUEST event from either the consumer or producer namespaces. https://kafka.js.org/docs/instrumentation-events#a-name-admin-a-admin The duration field tells you the total time from when the action was initiated to when it was completed. pendingDuration is time spent in a queue before actually being sent. apiName tells you what protocol request the event refers to.


received WStrings messages from FastRTPS incorrect

Bug report
Required Info:

Operating System:

macOS

Installation type:

source

Version or commit hash:

master branch after merging the WStrings test: https://github.com/ros2/rosidl/issues/388#issuecomment-513290450

DDS implementation:

FastRTPS publishing, Connext 5.3.1 subscribing

Client library (if applicable):

any

Steps to reproduce issue
Enable the test which publishes a WStrings message with non-ASCII characters using FastRTPS and subscribes using Connext by removing the following condition which skips the test atm: https://github.com/ros2/system_tests/pull/377/commits/49cdb2f57a557590a59ed6680a8682cd48571f71#diff-02dc43db6f966560e7ee414c298df21eR193
Expected behavior
The test passes as it does with all other cross-vendor combinations.
Actual behavior
The test fails because the message returned by Connext doesn't match the expectation. The members which have default values with non-ASCII values are not terminated correctly. E.g. the value of the wstring_value_default2 member doesn't end after 12 characters but is actually 19 characters long including the value of the following member wstring_value_default3.
Additional information
The test passes in all other variations:

all platforms: FastRTPS -> FastRTPS, Connext -> Connext, Connext -> FastRTPS
FastRTPS -> Connext when the subscriber side is not running on macOS

@neil-rti Maybe you can provide some feedback if this is a known issue.

Closing, since with Foxy now being End-of-Life, this repository is no longer used.


Allow Syncing BelongsToMany With Different Pivot Values

consider a payload with a list of subjects with their respective teacher_id to be synced in a many-to-many relationship with a class
The relationship looks like this
  // App/Models/ClassModel.php

  public function subjects()
  {
    return $this->belongsToMany(Subject::class, 'class_subject', 'class_id')->withPivot('teacher_id');
  }

The payload looks like this
{
    "class_subjects":[
         {
            "teacher_id": 1,
            "subject_id": 16
          },{
            "teacher_id": 7,
            "subject_id": 4
          }
      ]
}

With the syncWithPivotValues() we can't achieve this because it syncs all ids with one particular pivot value.
now with method syncWithManyPivotValues() we can sync all subject_ids with their respective pivot value (teacher_id)
How to?
The subject id will have to be extracted from the payload to a separate array leaving the payload with only the teacher_id still with key-value pairs
these key-value pairs will be synced together with the subject id in the same position, meaning subject_id 16 will sync with pivot value of teacher_id 1.
All you have to do is transform the initial payload and call the syncWithManyPivotValues() method.
the final form of the payload will be like this

$subject_ids = [16,4];
$payload = [
    ['teacher_id' => 1],
    ['teacher_id' => 7],

];

//syncing values

$class->subjects()->syncWithManyPivotValues($subject_ids, $payload);

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


ensure that isAuthorized() returns LOGIN_AUTHENTICATION_REQUIRED if s…

…ession was not in a logged in state

Hey, I see that you closed this but didn't merge it! Anyway, I looked at the code since you assigned me and it looks good! Nice catch on the loginResult being null when it's called before a login is done.


SignOutAsync should take [] of AuthenticationSchemes

A user has to specify SignOut per authentication scheme as follows https://github.com/aspnet/Templates/blob/dev/src/Rules/StarterWeb/OrganizationalAuth/Single/Controllers/AccountController.cs#L24
With this change we will have the same code as in Katana

This issue was moved to aspnet/HttpAbstractions#585

The syntax in MVC would be much better if https://github.com/aspnet/Mvc/pull/4259 was merged.
/cc @danroth27


Decide on what versions of iOS and Android we support

action: test in iOS 11 >> determine if we would like to support it.


[Project Addition] : Fake and Real Face Detection using DL

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Fake-Vs-Real-Face Detection
:red_circle: Aim : To identify fake and real faces which present a harder challenge to classify them correctly even for the human eye.
:red_circle: Dataset : https://www.kaggle.com/datasets/hamzaboulahia/hardfakevsrealfaces
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name : Aaradhya Singh
GitHub Profile Link : https://github.com/kyra-09
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project :

Data Preparation: Collect and preprocess a balanced dataset of real and fake face images, including normalization, resizing, and augmentation.
Base Model Selection:  EfficientNetB0,VGG16 , Xception , InceptionV3 like 5 different models  excluding its top layers, to leverage its learned features.
Model Construction: Add custom layers on top of the base model for binary classification, compiling with appropriate loss and metrics.
Initial Training: Train the model with the base layers frozen to only update the new layers.
Fine-Tuning: Unfreeze some or all of the base model layers and continue training with a lower learning rate to fine-tune the entire network.
6.) EDA analysis.
7.) Comaprioson using performance matrices such as accuracy scores , confusion matrix etc.

What is your participant role? (Mention the Open Source program)  - GSSOC-2024 Contributor

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Already assigned to an issue.

@abhisheks008 kindly assign this issue to me . I have worked on it.

Just assigned you the previous issue. You can work on this only after completing the previous issue.

Hi @kyra-09 updated the issue name. Please follow the same as the project folder name.
Assigned @kyra-09


Different barcode formats

Hi @aloisdeniel
Nice work!
Are you planning to include other barcode formats like code 128?
Saludos

can you please add a dot version of qr..thanks


Update container-insights-log-query.md

Updated the KubeEvents KQL to make it work in Azure Portal

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

#sign-off


added basic analysis of top genes

New basic script to address #20
I'm pretty sure that the kinase enrichment in leapR is off.
Also, we need to discuss where/how to store gene lists.

This code produces a lot of gene lists - @JamesPino  is there a specific format you want for input into MAGIN? We can do TSV, synapse table, comma delimited, or tidied. Then I can add the upload functionality of the differentially expressed genes, proteins, and phosphosites.

Also add code to upload figures/md to https://www.synapse.org/#!Synapse:syn26529351


AttributeError: 'AdamW' object has no attribute '_set_hyper'

Hi,
I've just copied and pasted this sample:
examples/vision/object_detection_using_vision_transformer.py
I' running it on JupyterLab.
Python version: 3.10.8
tensorflow-addons             0.18.0
tensorflow                    2.11.0
When I've runned it, everything ok, until it's has arrived to "Run the experiment" section, where I get this error:
AttributeError: 'AdamW' object has no attribute '_set_hyper'
Here the full error:
`
AttributeError                            Traceback (most recent call last)
Cell In [1], line 379
367 vit_object_detector = create_vit_object_detector(
368     input_shape,
369     patch_size,
(...)
375     mlp_head_units,
376 )
378 # Train model
--> 379 history = run_experiment(
380     vit_object_detector, learning_rate, weight_decay, batch_size, num_epochs
381 )
384 """
385 ## Evaluate the model
386 """
388 import matplotlib.patches as patches
Cell In [1], line 317, in run_experiment(model, learning_rate, weight_decay, batch_size, num_epochs)
315 def run_experiment(model, learning_rate, weight_decay, batch_size, num_epochs):
--> 317     optimizer = tfa.optimizers.AdamW(
318         learning_rate=learning_rate, weight_decay=weight_decay
319     )
321     # Compile model.
322     model.compile(optimizer=optimizer, loss=keras.losses.MeanSquaredError())
File ~/.local/lib/python3.10/site-packages/typeguard/init.py:1033, in typechecked..wrapper(*args, **kwargs)
1031 memo = _CallMemo(python_func, _localns, args=args, kwargs=kwargs)
1032 check_argument_types(memo)
-> 1033 retval = func(*args, **kwargs)
1034 try:
1035     check_return_type(retval, memo)
File ~/.local/lib/python3.10/site-packages/tensorflow_addons/optimizers/weight_decay_optimizers.py:525, in AdamW.init(self, weight_decay, learning_rate, beta_1, beta_2, epsilon, amsgrad, name, **kwargs)
483 @typechecked
484 def init(
485     self,
(...)
493     **kwargs,
494 ):
495     """Construct a new AdamW optimizer.
496
497     For further information see the documentation of the Adam Optimizer.
(...)
523             variables excluded from weight decay.
524     """
--> 525     super().init(
526         weight_decay,
527         learning_rate=learning_rate,
528         beta_1=beta_1,
529         beta_2=beta_2,
530         epsilon=epsilon,
531         amsgrad=amsgrad,
532         name=name,
533         **kwargs,
534     )
File ~/.local/lib/python3.10/site-packages/typeguard/init.py:1033, in typechecked..wrapper(*args, **kwargs)
1031 memo = _CallMemo(python_func, _localns, args=args, kwargs=kwargs)
1032 check_argument_types(memo)
-> 1033 retval = func(*args, **kwargs)
1034 try:
1035     check_return_type(retval, memo)
File ~/.local/lib/python3.10/site-packages/tensorflow_addons/optimizers/weight_decay_optimizers.py:99, in DecoupledWeightDecayExtension.init(self, weight_decay, exclude_from_weight_decay, **kwargs)
97 super().init(**kwargs)
98 self._decay_var_list = None  # is set in minimize or apply_gradients
---> 99 self._set_hyper("weight_decay", wd)
100 self.exclude_from_weight_decay = exclude_from_weight_decay
AttributeError: 'AdamW' object has no attribute '_set_hyper'
`

same problem , have you fixed it?

I'm having the same issue with NovoGrad, error is 'NovoGrad' object has no attribute '_set_hyper'. I'm also using TF 2.11

Hi, i had the same error after updating to TF 2.11.
I've fixed it by replacing tfa.optimizers.AdamW with tf.keras.optimizers.experimental.AdamW

I'm having the same issue with AdaBelief, using TF 2.11

Hi @t0uxe ,
I have tested the mentioned tutorial with TF 2.12V on colab and its working fine.Please refer attached gist.
I even tested with TF2.11 version and its working fine. May be you can try with latest version of tensorflow_addons using.   !pip install tensorflow_addons and it should work fine.
Could you please test as above and confirm the results.
Thanks!

You can do this to solve:
opt = tfa.optimizers.AdamW(lr, weight_decay)

Tried doing . !pip install tensorflow_addons, still no luck.


Tap to pay  in person payments on iPhone

It would be amazing to get this to work with tap to pay on iPhone if this is something that aligns with the plan.
https://stripe.com/docs/terminal/payments/setup-reader/tap-to-pay-on-iphone
This would allow a user to tap their card or mobile device on the device with the app to instantly pay using NFC.
My app would use this to take donations for a non profit in person.

Is there any plan to add this?

Thanks. This will require significant work, including package separation, to actually do. We will work on this when we have time, but cannot reveal our plans yet.

This Issue is closed due to a long period of inactivity. Please create a new Issue if necessary.

Has there been any development on this?


Fixed typo in node_helper and added module to README

Very impressed by the speed in which you were able to update according to my changed! :)
Awesome example of using modules.

Thank you! Means a lot to me :)
I also started porting my face recognition module but that will still need a bit of work.

Cool! Let me know how it goes. I still have a feature on my to do list where you can hide and show certain modules. This way your recognizer can show/hide agenda's depending on the person who is in front of the mirror.

Looking forward to implement it! It's a lot more fun now to write modules than it was before!


Merge bitcoin#14291, #14275, #14465, #14561

It's odd that linux64-test failed, but linux32-test passed in CI. It's passing on my machine. Random occurrence that doesn't matter (can someone rerun CI?), or maybe some kind of race condition?

Otherwise, looks good :+1:

Thanks. Changes to 14291 done.


UserWarning: Distributing <class 'dict'> object. This may take some time.

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):windows 10
Modin version (modin:0.7.4 dask:2.21.0):
Python version:3.8.3
Code we can use to reproduce:

Describe the problem
UserWarning: Distributing <class 'list'> object. This may take some time.
UserWarning: DataFrame.pct_change defaulting to pandas implementation.
To request implementation, send an email to<EMAIL_ADDRESS>UserWarning: Distributing <class 'pandas.core.frame.DataFrame'> object. This may take some time.
UserWarning: Distributing <class 'NoneType'> object. This may take some time.
UserWarning: DataFrame.pct_change defaulting to pandas implementation..
Source code / logs

Hi @wanghuqiang123, do you have a question? These warnings are for user information.

Hi @wanghuqiang123, do you have a question? These warnings are for user information.

I'm very sorry. I'm a beginner

I'm very sorry. I'm a beginner

@wanghuqiang123 It is not problem at all! I am happy to help answer any questions, do you have a problem associated with those warning messages?

I'm very sorry. I'm a beginner

@wanghuqiang123 It is not a problem at all! I am happy to help answer any questions, do you have a problem associated with those warning messages?

My operating system is windows 10. I install the Modin Library (pip install Modin [dask]) according to the steps. I process a large amount of data on the computer. I use pandas, but it is too slow. I want to speed up. I use Modin, but I add this line of import modin.pandas as pd ; I don't know what the problem is

@wanghuqiang123 Thanks for the response. Do you mind sharing the code you are trying to run? It will help with debugging the process.


Use makeotf.cmd instead of makeotf on win32

On Windows, running the command makeotf with subprocess.check_output fails with FileNotFoundError: [WinError 2] The system cannot find the file specified.

Hm. Does it work with shell=True? “.cmd” should be in the PATHEXT and cmd.exe normally ignores those

@anthrotype Ah, indeed shell=True works.

Better without shell=True, like you did
https://stackoverflow.com/questions/4965175/make-subprocess-find-git-executable-on-windows


Remove this test - it's tripping up CI and redundant anyway.

Clippy CI explodes because we're using a non-existent feature. It fails
to compile without DATABASE_URL
error: unexpected `cfg` condition value: `dont-compile`
   --> geozero/tests/postgis.rs:258:11
    |
258 |     #[cfg(feature = "dont-compile")]
    |           ^^^^^^^^^^^^^^^^^^^^^^^^

But what is this test testing anyway? We already have tests inserting
geo-points into sqlx (see rust_geo_query), so my understanding is that
the thing this test covers is that the sqlx macro behaves the same way,
as the programmatic API, which I'd argue is sqlx's job, not ours.

No opinions on whether the test should remain or not, but I don't think you need the cfg anyways. Or is the issue that #[ignore] would still compile the test?

Or is the issue that #[ignore] would still compile the test?

Right.
For some reason I wasn't able to get the #[allow(unexpected_cfgs)] to apply. Maybe it's a bad interaction with the tokio test macro? I'm not sure and don't care to dig deeper at this point.
In the meanwhile, I've restored the test, but come up with a way that evades clippy's wrath (for now).

From https://doc.rust-lang.org/reference/attributes/testing.html#the-ignore-attribute

A function annotated with the test attribute can also be annotated with the ignore attribute. The ignore attribute tells the test harness to not execute that function as a test. It will still be compiled when in test mode.

It makes sense that this is supported, but I wish the naming were consistent with the doc tests - e.g. ignore (does not build) vs norun (builds but doesn't run).


It could mean you are having a connection issue with github. Try again later or try with another connection


Feature request: Support for pgx batching

As mentioned in #472, pgx batching can be a very important tool for efficient inserts and queries. There doesn't seem to be any way to use the generated methods with the existing pgx batching interface. The pgx batching interface is defined by the Batch type and its Queue method. It would be neat if we could have something similar to the generated New(db DBTX) *Queries function that operates on a pgx.Batch.
We'd need to think a little about the design, since in an ideal world we'd still be able to get typed responses for each entry on the batch. Maybe each function on the type that operates on a batch should take a callback or something for how to process the returned data?

https://github.com/kyleconroy/sqlc/pull/1352 could at least alleviate the inserting part of this, but CopyFrom can't do everything regular inserts can do.

For what it's worth, I recently migrated some code from "one insert at a time" to "1000 inserts in a batch" and got at least 100x speedup (it's now so fast I don't care).  As a result, I more-or-less can't use sqlc in my project, even though I'd like to.

As far as I understand, currently there is still no support for batching different kinds of queries, is there? This would be really handy, as it's going to reduce the number of roundtrips for complex queries.


Migrate pkg/controller logs to structured logging

Migrate some  log messages of pkg/controller/ingressdns to structured logging

@ariesliuwei
Thanks for your trying to make kubefed with updated log functions. I notice that @wyyxd2017 works on the same topic.
Log format update does not need more PRs. Let's discuss it in #1335
BTW, if you'd like to contribute to community, please sign CLA first.

/retest

Closing due to inactivity. Feel free to reopen if needed.


📝 Update includes in docs/en/docs/tutorial/middleware.md

Update docs/en/docs/tutorial/middleware.md to fix #12554.

Thank you! @AlexWendland :tada:


Fixing netpcap subroutine failure (pcap_compile)

Hello,
You might want to consider the follwing:
use Net::Pcap qw( :functions );
As net-pcap only imports constants by default. May lead to subroutine failures in some environments.

Wrong repo it seems.


Skip to set default value unless meets_dependency?

Hello,
Grape::Validations::Base#validate! calls #validate_param! only if @scope.meets_dependency?(val, params) is truthy.
But Grape::Validations::DefaultValidator#validate! ignores the cope dependency now.
It doesn't matter in most cases because of @scope.should_validate?, but this is not the case for an array that contains both matching and non-matching conditions.
So I guess Grape::Validations::DefaultValidator#validate! should the check scope dependency as same as Grape::Validations::Base#validate!.
How about it?

Thanks for this.


Menu Alignment

pass array to browserlist

Deploy preview processing.
Built with commit f361c97c2e698322e6442fcd10edbf5996a36508
https://app.netlify.com/sites/pixelsonly-production/deploys/5a10523fa6188f199964aad3


Added empty log checking for Schrodinger jobs

Corrected some spelling mistakes in macromodel.py
Added checking for empty log file in the _license_found function.

Irrelevant as of #95


AccessExclusiveLocks not acquired in replica

Postgres has a mechanism to write all currently-held AccessExclusiveLocks to the WAL, before each running-xacts record. A hot standby replica uses that to acquire the equivalent AccessExclusiveLocks in the standby that are held in the primary. In Neon, because we start hot standby at an arbitrary LSN, we miss those records.
The problematic scenario:

in primary: BEGIN;
in primary: DROP TABLE foo;
Start new replica
in replica, start a query that takes a long time: SELECT * FROM foo;
In primary, while the query in replica is still running: COMMIT;

In Postgres, the query in the standby would be blocked on the lock held by the in-progress DROP TABLE transaction in the primary. In Neon, it is not, and the SELECT starts running. Later, after the COMMIT is replayed, the SELECT will try to read pages belonging to the dropped relation and fail.
I tried to create a test case this, but I failed. There are a lot of confounding factors that hide the bug:

As soon as the primary writes a standby-locks record, which happens every 15 seconds together with the running-xacts record, the startup process will try to acquire the lock on behalf of the primary's transaction. If the SELECT is already running, the startup process will block waiting for it to finish, or it will cancel the SELECT query if it takes too long.
Replaying the COMMIT record will try to drop all buffers for the table from the buffer cache, and if the SELECT query is holding a buffer pin, it will block waiting for it.
A GetPage request on a block belonging to a relfilenode that has already been dropped seems to "work", returning the latest page image before it was dropped. I guess forcing the pageserver to create an image layer at the right LSN would be needed to make that fail.

Playing with different variants of this, I've seen errors like ERROR: relation %u deleted while still in use  and "cache lookup failed", but have not been able to reproduce them reliably.

Some recent post in hackers illustrating that even in Vanilla not everything is good with lock replication:
https://www.postgresql.org/message-id/flat/tencent_06AF09108729428BD2D63B52064CA7C70706%40qq.com#54f706683454a95ffeae7a6b0020b03a
Frankly speaking I do not know good solution of the problem.
Certainly there is "brute force approach": just handle exclusive locks WAL records as PS, store them in some form (AUX?), include in basebackup and  restore on compute side during startup.
A lot of efforts, a lot of possible problems (taken in account how much troubles we has with AUX, restoring XIDs from CLOG,...), may be some negative impact on performance and ... most likely nobody noticed it at all. Tables are not frequently dropped and when they are dropped, unlikely that some application still tries to query them.
I think that if system is not crashed, then failed query can be considered as normal behaviour. Because if this query is delayed for some time (until drop is completed) then it will return error (table not found) in any case. So from user's point of view not so much is changed.
But may be there are some other worser consequences of absence of locks at replica.


Downloading HPatches hangs

The HPatches dataset tries to download from http://icvl.ee.ic.ac.uk/vbalnt/hpatches/hpatches-sequences-release.tar.gz
The link seem to be dead or it hangs. This is triggered by the command
python -m gluefactory.eval.hpatches --conf superpoint+lightglue-official --overwrite

You can download it from Here (need sign in), and unpack & locate it in like this.

Then, you can run the below command.
python -m gluefactory.eval.hpatches --conf aliked+lightglue-official

You do not need to login as far as I am aware, simply replacing the url worked for me.


Fix extract-intl for babel 7

Fixes extract-intl script to work with Babel 7. Uses async version of transform.
Based on #2331

Coverage remained the same at 100.0% when pulling be072a731dabaae049edf778181242a0d6d2b01d on fanixk:babel-fix into d759ccdbe493065e439a237e139c2b8c13b5e8c1 on react-boilerplate:babel-fix.

Thank you @fanixk!


Block Encoding Bloqs RFC

Following from the discussion at the recent sync: For some of the second quantized chemistry algorithms we need to implement the square of a one-body operator. E.g., the single factorized and double factorized hamiltonians:

These typically involve an outer prepare followed by an inner prepare and select, a reflection about the state preparation ancilla in the inner prepare (controlled on some registers from the outer prepare), and then the inner block is repeated again.
This structure follows from the following theorem in ref

For SF and DF we need the square, which is the second Chebyshev polynomial (2x^2 - 1) up to some factors of 2 and an identity term.*
This WIP PR defines a block encoding abstract base class and a bloq to implment the above theorem for T_j[H] through a series of reflections and block encodings of H. To complete the walk we need to reflect about the inner and outer state preparation ancilla.
This is mostly a sketch at this time and I will split it into 3 PRs (1. block encoding, 2. chebyshev, 3. single factorization) when ready. I included them all just to see a complete workthrough.
Block(q) encoding bloq
This just defines control, selection, and target registers, from which the signature is derived. Not sure if control_registers are necessary or this will come from a controlled_by method in the future.
ChebyshevPolynomial
This accepts a block encoding of some Hamiltonian and will build the circuit from Theorem 1 above. I just define bloq_counts at the moment and will add the decomposition shortly.
SingleFactorization
This implements the circuit from the first reference as a prototype (i.e. there is no decomposition just costs). Going forward I'm going to add chemistry bloqs like this and iteratively implement the sub components. So I wouldn't worry too much about the interfaces which will likely change (e.g. alt / keep values will crop up and qrom blocking factors will disappear in favour of selectswapqrom cirq_ft bloqs.) This top down approach is better to get a rough idea of where the gaps are and also helps document the expected costs from the papers.

there are some subleties for DF with state preparation discussed in the THC paper in addition to there being some conditional controls in the second application of the one-body hamiltonian to select for two-body only terms (i.e. the one- and two-body Hamiltonians are implemented in one go controlled on a flag register)

The bloq_counts looks like this:

cc @mpharrigan @tanujkhattar

I should say this is very much inspired by the SELECT / PREPARE oracles in cirq_ft.

Also for DF

I encourage you to take a look at #300
Using python to meta-program the grouping of the various selection, target (, and junk) registers is hiding structure in the python code rather than the compute graph. As a thought exercise: how would you make the system generate a diagram like (33) that could be further decomposed to your first extracted figure


Using it for Laravel, any extra steps?

Hi,
I read that it can be used for laravel too but other than composer require what are the extra  steps?
The instruction below is for symfony, for laravel 5.5 what do I do?
public function registerBundles()
{
    $bundles = array(
        // ...,
        new JeroenDesloovere\Bundle\VCardBundle\JeroenDesloovereVCardBundle()
    );
}

I'm not sure (because I'm not a laravel user),
but can try adding the following in app/providers.php:
$app->register(new \JeroenDesloovere\Bundle\VCardBundle\JeroenDesloovereVCardBundle());

Ah okay. Thought you know cause in your vcard repo you wrote
Usage in for example: Laravel

return Response::make(
    $this->vcard->getOutput(),
    200,
    $this->vcard->getHeaders(true)
);


Can not shorten some URLs

Exemple: https://docs.google.com/spreadsheets/d/1u-oUzZ5XqfPcS9Zz5EfDfzK8EUBETQpEf1xI8xRlyaU/edit#gid=1128503624 returns "no url to shorten".

Had to change the way i check if it is an URL. Now it works.


Support for unregistering blueprints (or endpoints).

The downside is that you cannot unregister a blueprint once an application was created without having to destroy the whole application object.

this statement appears in the docs, but is there a design reason behind this, or is it just because it hasn't been implemented yet? if it's not possible, what are alternatives for disabling an endpoint other than using some kind of variable to store whether an endpoint should be active?

The same reason you can't unregister anything else. You're meant to build up your app first, then run it. If you need to disable an enpoint while the app is running, checking flags is the only way. Modifying the app object is not thread safe.

I'd like to unregister a blueprint an extension creates during testing

Then you should pass an argument to your app factory to avoid initializing the extension / registering the blueprint altogether.


Editable dropdownlist

How can I achieve an input textbox inside a dropdownlist so that user can type in a value?
@Html.Bootstrap().DropDownListFor(x => x.carmodelIds, @Model.CarModelList)
something like in this example http://jsfiddle.net/L6YVc/

@Html.Bootstrap().DropDownListFor() mimics functionality of @Html.DropDownListFor(), which does not have the desired functionality. I afraid you'd have to write something custom (without the use of BMVC) to achieve this.


nextIfComma support ignoring all white space chars, for issue #2164

What this PR does / why we need it?
nextIfComma supports ignoring all white space chars, for issue #2164
Summary of your change
Please indicate you've done the following:

[ ] Made sure tests are passing and test coverage is added if needed.
[ ] Made sure commit message follow the rule of Conventional Commits specification.
[ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

Codecov Report
Attention: 48 lines in your changes are missing coverage. Please review.

Comparison is base (5263b8a) 75.36% compared to head (1ab65f7) 73.58%.
Report is 4 commits behind head on main.

Files
Patch %
Lines

...ain/java/com/alibaba/fastjson2/JSONReaderUTF8.java
0.00%
29 Missing and 1 partial :warning:

...in/java/com/alibaba/fastjson2/JSONReaderASCII.java
0.00%
11 Missing and 1 partial :warning:

...in/java/com/alibaba/fastjson2/JSONReaderUTF16.java
50.00%
3 Missing and 3 partials :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2167      +/-   ##
============================================
- Coverage     75.36%   73.58%   -1.79%
+ Complexity    21648    20916     -732
============================================
  Files           634      622      -12
  Lines         85392    84693     -699
  Branches      18934    18743     -191
============================================
- Hits          64356    62318    -2038
- Misses        13111    14393    +1282
- Partials       7925     7982      +57

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

不要支持\0，和其他地方的实现一致

这样吗？如果是逗号的情况 后面对空的判断有这个\0，我是从这里copy到非逗号的情况里面的

重新提交了一下


feat: getDefaultOutputParser fields

I have an issue with the new outputparser refactors. you cant take in Final Tool name as a variable to getDefaultOutputParser (which is abstract so has to be there)

The other use case for this is to make it a fixing parser, and give down the llm in the fields

As a bonus, this allows  putting Format instructions inside the output parser where they probably belong.
also refactoring out allowedTools which is clunky now
You can throw that top commit out, I dont care either way, just wanted to point at it. It needs the ZeroShotAgent.deserializer to be fixed if you want to keep it (presuming that doesnt break backcompat or whatever)

Thanks!


Question: any documentation available why I need to mount certain volumes to persist data?

Hi there, I am wondering if there is any documentation available that makes understanding the volumes mounts?
I have tried to create a custom script that saves a file to /var/lib/rancher/k3s/server
# this does not work, the file is gone later on
mkdir -p /var/lib/rancher/k3s/server
cp k3s-psa.yaml /var/lib/rancher/k3s/server/k3s-psa.yaml

# this does work, and the file is persisted when mounting /var
mount /var
mkdir -p /var/lib/rancher/k3s/server
cp k3s-psa.yaml /var/lib/rancher/k3s/server/k3s-psa.yaml
umount /var

I want to understand why the /var mount is required to persist the file.

Hey, @mpas. This is not quite clear in the official SLE Micro documentation and we've requested for it to be updated.
In the meantime, note that you have to mount /var, /usr/local and /home if you intend to use those volumes. The ones mounted by default include /etc and /opt.

@mpas the documentation is now updated and it explains the process to fetch the list of mounted volumes.
Closing as completed. Feel free to reopen if you have further questions.


questions and observations

Is it possible to add TMB or AVFX to the targets of AoEs that currently fall under the category of the "chara/action/normal_hit/normal_hit.tmb" TBM path?  For example the Monk AoE Four-Point Fury has a unique TBM for its targets, but many of the other monk abilities do not. Unfortunately if you go into the Cast TMB/AVFX of those AoEs and try to bind VFX or Sounds to the "target" binder, it does nothing for AoE Skills (this however does work for single target skills).

This tool REALLY needs an undo button.

It would be really nice if adding a SFX to a Layer Object changed objects timeline slider box, so it can be easier to identify sound objects in timelines with many items.

There is a bug that sometimes happen when you export a TMB and then try to continue working on it by importing a new Timeline, it will often crash the game when you press the Green Update Button. A work around is exporting just the timeline (check the boxes for all the timelines you want), this is a less risky way to save and continue your work.

If you name anything, save the file, then reload it it doesn't keep the custom names. the exception to this is Particles, for some reason Particle custom names will carry over when re-imported, but Timelines, Binders, Emitters, etc. all do not save.

Currently there is an option to crop the back end of an animation by making the duration of the Pap shorter, but there is no way to do the reverse, ie. crop out the beginning of an animation. You can however, add Invisibility frames and get creative. It would also be nice to be able to add multiple animations to a single TBM.

the lil eye button for enabling the mode where you see all the visual effects name is very nice, but sometimes the names flash to suddenly for it to be useful. if you could ad a life-spawn slider or option that would be great. Also a version of this feature for Paps would be much appreciated as well!

The Node graph could be a very intuitive and helpful tool. You could prob make it its own window and have it be more interactive as well. Trying to go down the rabbit hole of seeing how some Particle appear or are effective can be a headache, and an interactive Node Graph would make it much easier to understand

This isn't controlled by anything that VFXEditor can edit, but the "Action" sheet. So you'll need to find a way to modify that (In this image, see the ActionTimeline{HIT} column).

I know. I'm working on it, but unfortunately it's a very tricky thing to get working

Do you mean the SFX in the vfx emitter, or the TMB?

Just to be clear so I can try to reproduce the crash, are the steps to trigger it like this?
a. Work on a TMB
b. Save the TMB
c. Open another TMB (using the magnifying glass icon)
d. Click the green "UPDATE" button

It's a known issue and will be fixed

There's not a parameter like that which I'm aware of. Your best bet is playing around with the .TMB and .PAP files and see if there's something which functions like an "animation start frame". Also, any limitations with how many animations can be in a TMB are determined by SE's animation system, not VFXEditor.

Good idea. I'll add that

I'll take a look at expanding the node graph

Hmm how would you change the ActionTimeline{HIT} value for an ability? you can't do it within VFXedit since any time you change say normal_hit, it will do so for all skills.

Here is an example of what I mean: the emmiter 10 has a sound file, so its lil timeline slider is orange.

In your steps, step c. should be
c. click the + icon, add a new timeline, add the new timeline to the scheduler
d. then when you click the green Update button.
I think it has something to do with cache maybe? tend to happen the longer a project is open or worked on.

a feature I wasn't aware of, but since have discovered via the guides is using the log all files button, I've been able to find some things that aren't in the vfxbrowser that way. but yeah seeing the floaters for paps would be faster and more convenient.

this is a really great too! thanks for your work on it


PalmettoFlow 2.0

Proposal
I would like to propose a 2.0 version of palmetto flow that enables you to send batch of event messages in a single request.  Which will all run and respond back as a batch of event message responses.
The idea is taken from GraphQL, but with palmetto flow it would be a lot less boiler plate code on the server and client and pretty much the structure of palmetto flow would not have to change.  Basically the message type object is the only thing that has to change:
Instead of:
{
  subject: 'widget',
  verb: 'list',
  object: {}
}

It might be something like:
{
  subject: 'batch',
  events: [{
    subject: 'widget',
    verb: 'list',
    object: {}
  }, {
    subject: 'cog',
    verb: 'get',
    object: { id: 1 }
  }]
}

This would enable palmetto flow to execute multiple requests in parallel and return the results in one response back.
It would give you a transactional batch system, that you could manage rollbacks in your palmetto flow service if needed.
But the big win is to keep your client components collocated with data models.
Any thoughts or comments?

@chennigan brought a good point, what if one service fails when a batch is being performed.

maybe the batch request has two modes : batch-all or batch-stream

If batch-all one fails all fail
if batch-stream one fail the rest continue
Thoughts?

The other item I would like to propose is change the emit word from 'send' to 'data'
Why?
By changing it to data it should make the events readable streams, so that you could stream in events and stream out responses.


Style profile and dashboard pages

Erhm, where do these two come into play? We only have one profile page right? Not sure about the context of the second screen here.

Erhm, where do these two come into play? We only have one profile page right? Not sure about the context of the second screen here.

One is the public profile of the user and the other is the dashboard a user sees when logged in

@joedixon lol, you know the app better than myself 😂


Support uploads (100 Continue)

How can a Tide handler send a tide::StatusCode::Continue response with no body and then later send a full response?
I am deploying an API server which uses Tide.  I'm deploying it on Heroku.  When Heroku's load balancer forwards a request to a server, the server must send some data back within 30 seconds, otherwise the load balancer closes the connection with a 503 [0].  This means that when a slow client takes more than 30 seconds to send the request body, the request fails.  This is a problem for clients uploading 10MB image files over unreliable mobile Internet connections.  Such uploads often take more than 30 seconds.  The solution is to send a  100 Continue response before reading the request body.
[0] https://devcenter.heroku.com/articles/request-timeout

How about adding a test for it?

It is tested in async-h1.

https://gms.tf/when-curl-sends-100-continue.html mentions cURL having --expect100-timeout SECS, which is useful to test 100-continue: set it to a large value and then the cURL will either hang waiting for the header, or will proceed immediately if the header is present.
I've tested it with
echo 123 > 123.txt
curl --expect100-timeout 321 -vT 123.txt https://a-webdav-url

and I see tide 0.16 returning 100-continue NP
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 201 Created
< content-length: 0
< date: Wed, 07 Dec 2022 14:11:10 GMT

(or indeed hanging if I would decide not to read the body).


Migrate all tests to pytest

Migrate all tests to pytest. This PR closes issue #231

Pull Request Test Coverage Report for Build 965079101

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 73.707%

Totals

Change from base Build 928099550:
0.0%

Covered Lines:
855

Relevant Lines:
1160

💛  - Coveralls

@apriltuesday I have removed some of the classes, particularly from where there was only a single test in a class or only a single class in the file, in those cases I agree it was not adding anything. In other cases though, I have left the classes there because I think they are useful for grouping tests that are around the same feature, when we have multiple of them in a file. For example test_clinvar.py contains a set of tests for the clinvar record, and another set of tests for the clinvar record measure; I think it's good to use classes to put these tests into two groups, if we are not going to split them into different files.
For the fixtures, I think the main benefit to using fixtures is for reuse, but most of the setup that the tests are doing, I think most of it cannot be reused, so there's no big benefit to it in this case. If we are adding new tests in the future that need to reuse the setup then maybe it would make sense to refactor to use fixtures then.


Prevent a DVPortGroup from overwriting a LAN with the same name in provisioning

During the provisioning workflow we return the list of allowed_vlans as a hash with the name of the network as the key.
If you have a DVPortGroup and a normal network with the same name they will have only one entry in the vlans hash.
Later we change the vlans key of a DVS to be "dvs_#{name} and delete the old key: https://github.com/ManageIQ/manageiq-providers-vmware/blob/master/app/models/manageiq/providers/vmware/infra_manager/provision_workflow.rb#L141-L142
This leads to only one entry in the vlans hash and it is the dvportgroup, the standard network is deleted.
This change will set the key of a dvportgroup to have the dvs_ prefix initially so it will not collide with non dvportgroups and both will be returned.
VC Networks:

Before:

After:

Related: https://github.com/ManageIQ/manageiq-providers-vmware/pull/25
https://bugzilla.redhat.com/show_bug.cgi?id=1430709

@gmcculloug I changed the base method to skip over all DVPortGroups so the ManageIQ::Providers::Vmware::InfraManager::ProvisionWorkflow#available_vlans_and_hosts adds all dvportgroups.
Can you take another look?


How to get a valid tag from CMIP6_CV git repository clone ?

I would like to document data produced for CMIP6 by a tag for the CMIP6_CV version
When using git describe HEAD (which I believe is the right way to do) on a CMIP6_CV repository clone, I get value :
3.2.7-85-gd2499a2
This seems to be not in line with the set of tags of this repository, which includes for instance 3.3.0 and CMOR-3.3.0
So, how to get a version's reference tag ?

@senesis those changes are now implemented, git describe HEAD still reports an erroneous <IP_ADDRESS>-8-gc1e8ffa.
The latest tag is <IP_ADDRESS>:
[duro:CMIP6_CVs] duro% git show-ref --tags
feb687c1e0fa1ba65ca921d3c716d43675c8eb8c refs/tags/<IP_ADDRESS>
7f2d994fc893dc20a78fcb6d8a4093257e1a6611 refs/tags/<IP_ADDRESS>
3f41a03113b0638fa76427136c7fea47d5a5cee8 refs/tags/<IP_ADDRESS>
ddbcbec24fd59fe560be64505b249306bfd1c97c refs/tags/<IP_ADDRESS>
11a37a2e2a5c07cd8032cfe24c27fdeb2a30ddb3 refs/tags/<IP_ADDRESS>
4029f447a78c623b4f4c20c03b1d2a1eb0eb3afa refs/tags/<IP_ADDRESS>
593e5f25a5560530c35bc54ab07a89d869a20f07 refs/tags/<IP_ADDRESS>
3f9d96b25648cf3b6718ae3429466957d1d8510e refs/tags/<IP_ADDRESS>
c3e71c067ccd9c6ba29a0cd2f2831d7a6e748212 refs/tags/<IP_ADDRESS>
bd9e22142513c82b47f1132d9d209179f99f7866 refs/tags/<IP_ADDRESS>
6b2bc7bc3bf98f7578469cb89df62dbb05ca83ad refs/tags/<IP_ADDRESS>

@taylor13 @dnadeau4


Sourcing multiple Caddyfiles

For automated deployments, it would be useful to be able to either source other Caddyfiles or to specify a directory where all Caddyfiles within it are picked up. I've had a look in the docs and can't find a directive for this.
Rather than having a single Caddyfile, such as
example.com {
	root /www/example.com
}

sub.example.com {
	root /www/sub.example.com
}

One would have three Caddyfiles:
# Master
source *.caddy

and
# mysite.caddy
mysite.com {
	root /www/mysite.com
}

and
# sub.mysite.caddy
sub.mysite.com {
	root /www/sub.mysite.com
	gzip
	log ../access.log
}

Rationale
If I deploy several sites to my server in automated way, I have to edit a single Caddyfile when I want to add or remove a site. This requires parsing the file in some way.
If I'm able to source Caddyfiles, I can just copy/move/symlink each individual Caddyfile in to a folder when the corresponding site is deployed, and have something like source_dir /path/to/caddyfiles/*.caddy.
Implementation
I don't think anything fancy should happen, the source'd file can be substituted in to the location of the source directive in the master file (this is what I'm doing at the moment with a Python script). If there's a syntax error in the source'd file, caddy should behave as if there was a syntax error in a single Caddyfile.

Check https://caddyserver.com/docs/import

:dizzy_face: I am blind. Awesome, thank you!

Just curious... if I did implement support for loading multiple Caddyfiles, like, from the command line, what would your preferred syntax be? Or what would make it easiest? Just specify each file or would you want Caddy to crawl a folder and its subfolders looking for files called "Caddyfile"?
Asking because I'm currently working on a big restructuring that could allow this. It's kinda "ugly" though so I'd prefer not to... does import do what you need?

It does exactly what I need already :smile: sorry I can't be more helpful…

Okay! No problem, that is still helpful. Maybe I don't need to implement this after all.

@mholt i want to deploy multiple sites on a server but don't set the root every time. so maybe if caddy uses multiple Caddyfiles (syntax could be multiple paths or gob like /var/www/*/web/Caddyfile in my case) it uses the folder the Caddyfile is in as root.
it would also help me if import works this way.

@davidak could you please show few examples how you do it now and how you would prefer to do it?

@hubertbanas here is my current NixOS configuration with caddy: https://github.com/davidak/nixos-config/blob/f8b2e9f589272d11548e3f58d6cd3c5e2f351c15/binary/configuration.nix#L115
relevant part: import /var/www/*/web/Caddyfile
then i have the file /var/www/test/web/Caddyfile with the the content:
test.xxx.de
root /var/www/test/web
[...]
i want to delete the root line since the information is redundant. (the VHost should use the directory the imported Caddyfile is in, /var/www/test/web). so i'm able to have the website in a git repo, clone it somewhere and just use it, for example on my laptop for development.

@davidak Okay, this actually makes sense. Let me take an unofficial survey and see what we can do.


Is there an option to flatten the pdf file?

I'm using pypdftk in an app but researching if it's possible to move everything into client side. One option i'm using is to flatten the file, turning the form into a regular non editable pdf. Does this project offer such an option?

Good point! any chance?

@phihag, can wee flatten PDF file in client side with this lib or PDFjs lib or any other ways to flatten PDF in client side?.

Not exactly what you're looking for (and very late to the party), but I made my filled-in fields read-only by adding a line to the transform function. At the end of the "if (n._pdfform_spec)" if/else block (and just before the line that says "var ref = n._pdfform_ref;"), I added "n.map.Ff = 1;" because page 433 of https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf told me if I set the Ff key to 1, it'd be read-only. Seems to work for me so far.

Is there any solution to this? I can't use read-only, because I'm trying to pre-fil and then let them overwrite anything before submitting the new pdf to the backend. It's not saving the user's changes, only the pre-filled data.

@Scott64 that would have saved me, but killed multi line fields. I think you're supposed to set a bit flag, not an integer value.
Just using n.map.Ff = n.map.Ff | (1 << 0); instead did the trick. Thanks for pointing out the docs and appropriate place - super helpful!
Not progressing this issue, but might help somebody.

@Scott64 that would have saved me, but killed multi line fields. I think you're supposed to set a bit flag, not an integer value.
Just using n.map.Ff = n.map.Ff | (1 << 0); instead did the trick. Thanks for pointing out the docs and appropriate place - super helpful!
Not progressing this issue, but might help somebody.

@zencm Thanks for the clarification, it does say "bit position" in the docs and I glossed over that ad just saw "1" in my rush to find a solution. Your correction couldn't have come at a much better time because I actually need the information again for a different project 👍  Thanks! :)


First class way to access Vault secrets

Inside a job, should be able to access Vault in a secure way

Closing in favour of #2277 and #2713


[WIP] Provides compatibility with Tachyon 0.8.2

Fixes #566

This is just a quick hack while I'm pressed for time : the code duplication induced by the tachyon_0.8.2 directory is dirty, and I'm open to suggestions on how to architect this better. Fundamentally, there's no need to duplicate any kind of code, this should rather be implemented using a version mask that includes 0.7.1 & 0.8.2.

looks :ok: (if it works)

To test:

download a stock, compiled spark 1.6, from the vanilla link http://d3kbcqa49mib13.cloudfront.net/spark-1.6.0-bin-hadoop2.6.tgz
run it on your HDFS-equipped cluster, even with enabledTachyon=false (I tested mesos & yarn)
launch a job from the spark-notebook built from this PR

Tested, the fix works :)

:ship:'ing then.


feat(store-cache): add scan to get all values of a table/database

not blocking, but do we want any tests for scan filters?

There is one in the utils.test.ts:
https://github.com/latticexyz/mud/pull/841/files#diff-f5a91d2797891954fe2a6a87ce97e6532b3628472203f8ad1b9e5c89bb7a0520R79-R87
but tbh tuple-database's approach to filtering is kind of cursed

but tbh tuple-database's approach to filtering is kind of cursed

say more!


brightness mode

The selection of the brightness mode should be left to the user. There should be a setting option in the explorer.
A bright, a dimmed and a dark mode should be available for the explorer.
The font colour in dark mode should also be revised (purple #9875ff).

An explorer should provide the user with data in an easily readable format. And, if possible, without putting additional strain on the eyes.
This is the main task of an explorer. The respective colour selection should be adapted to this task, according to the selected mode (light, dimmed, dark).
The aim here should not be to look particularly colourful or bright.
In my opinion, this should definitely be improved.
Here is a good example:

On the left the original, on the right simply modified.
The data on the right side is much easier to read without straining.
Furthermore, you should not overdo it with purple. At some point, users simply get tired of the colour.

Thank you very much, that is great feedback.
we will take a look on this issue.


A slimmer, movable Background Panel

Description
For users that like switching back and forth between backgrounds a lot, the Background Panel takes a lot of screen real estate.
We notice:

The area I marked in green could be trimmed off, thus only needing to be as wide as there are letters.

And:

The whole panel could be allowed to be slid around by the user, so they could still at least just click the buttons.
(but then they would also need the different parts to show up: 2022, 2021... , not just Cook, Cook...)

Screenshots

hey @jidanni I changed it's width to make it narrower and added a slider on the edge of this background panel, but on narrowing it the other options like display options and imagery offset are messing, how should I make changes to make ui look better when it is resized.
https://github.com/openstreetmap/iD/assets/121725696/228d81c2-6447-45fa-bcd3-d427a9756b8a

I guess I'll just leave it up to you to figure all that stuff out. Because my computer is now in shipping for the next month. Thanks and good luck!

I reduced its width of background setting pane , added a slider on its edge which can be narrowed till imagery offset and display background is working fine. I don't think there is need to resize other options such as map data, issues, preferences and help, it will be better if we add this slider functionality to background settings pane.
https://github.com/openstreetmap/iD/assets/121725696/b340ee35-2648-41f8-9622-5855b3ff4344

OK, I hope the project managers accept your contribution.


[Bug] Include explicit skipBackgroundRequests in policies

Kyverno Version
1.11.x
Kubernetes Version
1.27.x
Kubernetes Platform
AKS
Description
(Kyverno version is actually 1.11.x, it is just not available as an option in the dropdown)
Policies currently do not explicitly set the property skipBackgroundRequests which by default will be set to true. This causes issues with server-side apply and ArgoCD, since the property will be set to true automatically and ArgoCD will always be out of sync trying to remove it.
While this property can be ignored using the ignoreDifferences mechanism, this can be annoying for situations where you actually want to change the skipBackgroundRequests value and it is no longer taken into account. I think this would provide a better out-of-the-box experience for ArgoCD users.
See https://github.com/argoproj/argo-cd/issues/11139 for more information
Steps to reproduce

Install ArgoCD
Configure application with server-side apply for synchronizing kyverno policies
Synchronize a policy like https://raw.githubusercontent.com/kyverno/policies/release-1.11/other/res/restrict-ingress-defaultbackend/restrict-ingress-defaultbackend.yaml
Notice ArgoCD is always out of sync trying to sync the ClusterPolicy

Expected behavior
Property is included in the policies and ArgoCD syncs properly.
Screenshots

Kyverno logs
No response
Slack discussion
No response
Troubleshooting

[X] I have read and followed the documentation AND the troubleshooting guide.
[X] I have searched other issues in this repository and mine is not recorded.

The policy library isn't really designed for folks to directly sync a policy into their systems using a GitOps controller. Going and adding all the fields which are defaulted in the CRD (there's more than skipBackgroundRequests) is not only an untenable task but effectively bumps compatibility for all the policies in the library. Performing that defaulting on just the versions effected would make more sense but still seems unnecessary.


MonacoEditorReactComp caches text and won't update it even if new text is set in userConfig

i use monaco-languageclient to render python code editor
i'm using MonacoEditorReactComp and configured it as:

useConfigureMonacoWorkers is copied straight from the docs
in CreateUserConfig i configure LSP (websocket url), text (which is code pulled form the server), uri (full path to the file), and getKeybindingsServiceOverride
onTextChanged is passed to MonacoEditorReactComp and it handles text changes in parent component
in PythonEditor (parent component), i have 2 key pieces:

code - the original code pulled from the server
updatedCode - a updated version of the code (updated via handleTextChanged based on changes from MonacoEditorReactComp) to be used by parent component

here is how it looks in the code:
import '@codingame/monaco-vscode-python-default-extension';
import { UserConfig } from 'monaco-editor-wrapper';
import type { TextChanges } from '@typefox/monaco-editor-react';
import { MonacoEditorReactComp } from '@typefox/monaco-editor-react';
import { useWorkerFactory } from 'monaco-editor-wrapper/workerFactory';
import getKeybindingsServiceOverride from '@codingame/monaco-vscode-keybindings-service-override';

const useConfigureMonacoWorkers = () => {
  useWorkerFactory({
    ignoreMapping: true,
    workerLoaders: {
      editorWorkerService: () =>
        new Worker(
          new URL('monaco-editor/esm/vs/editor/editor.worker.js', import.meta.url),
          { type: 'module' },
        ),
    },
  });
};

const CreateUserConfig = ({ text, uri }: { text: string; uri: string }): UserConfig => {
  return {
    languageClientConfig: {
      languageId: 'python',
      options: {
        $type: 'WebSocketUrl',
        url: LSP_URL,
        startOptions: {
          onCall: () => {},
          reportStatus: false,
        },
        stopOptions: {
          onCall: () => {},
          reportStatus: false,
        },
      },
    },
    wrapperConfig: {
      serviceConfig: {
        userServices: {
          ...getKeybindingsServiceOverride(),
        },
        debugLogging: false,
      },
      editorAppConfig: {
        $type: 'extended',
        codeResources: {
          main: { text, uri },
        },
      },
    },
  };
};

interface EditorProps {
  value: string;
  uri: string;
  onTextChanged: (textChanges: TextChanges) => void;
}

const Editor: FC<EditorProps> = ({ value, uri, onTextChanged }) => {
  const config = CreateUserConfig({ text: value, uri });

  return (
    <Stack style={{ height: '100%' }} key={value} pt={4}>
      <MonacoEditorReactComp
        key={value}
        userConfig={config}
        style={{ height: '100%' }}
        onTextChanged={onTextChanged}
      />
    </Stack>
  );
};

export const PythonEditor = () => {
  // pull code saved in file from the server
  const { code, refetch, isFetching, isLoading, isRefetching } = useFile({ ... });
  const { cwd } = useGetPage({ ... });
  // handle updates
  const [updatedCode, setUpdatedCode] = useState<string>('');
  // Create a ref to store the updatedCode
  const updatedCodeRef = useRef(updatedCode);
  updatedCodeRef.current = updatedCode;

  // sync updatedCode with server copy when a new version received
  useEffect(() => {
    if (code) {
      setUpdatedCode(code);
    }
  }, [code]);

  ...

  const handleTextChanged = (textChanges: TextChanges) => {
    const text = textChanges.main;
    setUpdatedCode(text);
  };

  useConfigureMonacoWorkers();

  return (
    <Stack h="full" bg="white" spacing="0" w="full">
        {isFetching || isLoading || isRefetching || !cwd ? (
          <Skeleton startColor="gray.100" endColor="gray.400" h="full" />
        ) : (
          <Editor
            key={code}
            value={code}
            uri={`${cwd}/workspace/${appName}/${pageName}/${fileName}`}
            onTextChanged={handleTextChanged}
          />
        )}
      </Tabs>
    </Stack>
  );
};

besides @typefox and @codingame packages, im using chakra ui, react query, and jotai.
editor works if only editor is used.
however, if the code is updated by some other components while MonacoEditorReactComp has its own changes (unsaved or even saved), even if useFile pulls a new version of the code and passes it to MonacoEditorReactComp, MonacoEditorReactComp will not update its text content (text).
i can confirm that Editor receives a new code with value={code} and that config is contains the latest code in config.wrapperConfig.editorAppConfig.codeResources.main.text.
i tried to trigger a new render of Editor by passing new code as new key, but no luck.
it is as if MonacoEditorReactComp is cached and won’t update it even if new config received.
how can i resolve this?
thanks!

Hi @azhakhan are you aware of this https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/python/client/reactPython.tsx#L47-L49 This way you can get hold of the wrapper and do whatever you want afterwards. When you want to update editor text you can do this via wrapper. The react component is basically just a shell around the monaco-editor-wrapper.

hey @kaisalmen, thanks for the response!
i went over the methods in MonacoEditorLanguageClientWrapper and the one that seemed most relevant for my case was updateCodeResources, so i updated my code as:
			<MonacoEditorReactComp
				key={value}
				userConfig={config}
				style={{ height: '100%' }}
				onTextChanged={onTextChanged}
				onLoad={(editorWrapper: MonacoEditorLanguageClientWrapper) => {
					editorWrapper.updateCodeResources({
						main: { text: value, uri },
						original: { text: value, uri },
					});
				}}
			/>

my assumption here is that i need to reset main and original to the newly received code value.
however, the issue persists.
i also tried it with async and initAndStart
			<MonacoEditorReactComp
				key={`${value}_${uri}`} // unique key based on both value and uri
				userConfig={config}
				style={{ height: '100%' }}
				onTextChanged={onTextChanged}
				onLoad={async (editorWrapper: MonacoEditorLanguageClientWrapper) => {
					try {
						await editorWrapper.initAndStart(
							config,
							document.getElementById('editorContainer'),
						);
						editorWrapper.updateCodeResources({
							main: { text: value, uri },
							original: { text: value, uri },
						});
					} catch (error) {
						console.error('Failed to initialize editor wrapper:', error);
					}
				}}
			/>

but still getting caching issue.
am i missing something?

@azhakhan The idea is that you store the wrapper that is passed in onLoad in your app. You don't have to call initAndStart. If you want to update the text (from your appt) you just need to call updateCodeResources. onLoad let's you know the content of the editor was changed (you typed something).
The latest version of the react-component (not yet released, I will publish a pre-release today or tomorrow and let you know) will perform a full re-init if an updated config is passed.
I hope this helps.

hey @kaisalmen, thanks for the pointer!
i’ve made the following changes:

created wrapperRef to store reference to MonacoEditorLanguageClientWrapper
assign wrapperRef.current = editorWrapper when onLoad is called
update wrapperRef.current.updateCodeResources when value changes using useEffect
added isEditorLoaded flag to ensure wrapperRef.current updated only after editor is loaded

const Editor: FC<EditorProps> = ({ value, uri, onTextChanged }) => {
	const wrapperRef = useRef<MonacoEditorLanguageClientWrapper | null>(null);
	const [isEditorLoaded, setIsEditorLoaded] = useState(false);
	const [config, setConfig] = useState(() => CreateUserConfig({ text: value, uri }));

	useEffect(() => {
		setConfig(CreateUserConfig({ text: value, uri }));
	}, [value, uri]);

	useEffect(() => {
		if (isEditorLoaded && wrapperRef.current) {
			console.log('WRAPPERREF.CURRENT', wrapperRef.current);
			wrapperRef.current.updateCodeResources({
				main: { text: value, uri },
				original: { text: value, uri },
			});
		}
	}, [isEditorLoaded, value, uri]);

	const handleLoad = useCallback(async (editorWrapper: MonacoEditorLanguageClientWrapper) => {
		console.log('EDITORWRAPPER', editorWrapper);
		wrapperRef.current = editorWrapper;
		setIsEditorLoaded(true);
	}, []);

	return (
		<Stack style={{ height: '100%' }} key={`${uri}-editor`} pt={4}>
			<MonacoEditorReactComp
				key={`${uri}-editor`}
				userConfig={config}
				style={{ height: '100%' }}
				onTextChanged={onTextChanged}
				onLoad={handleLoad}
			/>
		</Stack>
	);
};

i can confirm that editorWrapper and wrapperRef.current have the same values

i also confirmed that wrapperRef.current has the right data in editorApp.config.codeResources.main.text

and the right MonacoEditorLanguageClientWrapper (id 10 in this case) is mounted to the Editor

however, the old value is still shown in the monaco editor (see options in Select, only shown instead of 3)

not sure what else to try here.
i'll wait for the latest version of the react-component and try again.
thanks again for helping me with this!

@azhakhan<EMAIL_ADDRESS>is now available. This is a pre-release and introduces some changes to the wrapper configuration.
For reference take a look at the updated python example:
https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/python/client/reactPython.tsx
https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/python/client/config.ts

@azhakhan can you share a reproducible example in a repo or can you augment a react example in this repo so your problem can be reproduced? Thank you.

hello, any solution on this ?


Getting started power of us new link

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata

@mdeleon0 try renaming this branch to feature/getting-started-Power-Of-Us-new-link to fix the CI issue with the build.
thanks!

@davidhabib already tried that from source tree, but didn't work, will delete this pull request and branch and create a new one from feature.


Find_hyponyms doesn't find noun sequences of three or more noun sequences

Hi!
Thanks for this project. I'm using your project in the natural language processing task and it is very helpful.
I found one bug:
sentence = re.sub(r"(NP_\w+ NP_\w+)+", lambda m: m.expand(r'\1').replace(" NP_", "_"), raw_sentence)
this code helps only to merge 2 nouns in the sequence, but it doesn't work for sequences with 3 or more nouns. For example, in such sentence:

There are such benefits as postharvest losses reduction, food increase and soil fertility improvement.

I should get such output [("postharvest losses reduction", "benefits"), ("food increase", "benefits"), ("soil fertility improvement", "benefits")]. But I get [("postharvest losses", "benefits"),("reduction", "benefits"), ("food increase", "benefits"), ("soil fertility", "benefits"), ("improvement", "benefits")].
I wrote function for this bug fix. May I contribute to your project?Thanks in advance.

That would be great. Can you please make a pull request?

I created pull request. https://github.com/mmichelsonIF/hearst_patterns_python/pull/4


Typo in Wiki

Hey there,
I noticed a small typo in headers:
// Swift
stub(isHost("mywebservice.com")) { request in
  // Stub it with our "wsresponse.json" stub file
  return OHHTTPStubsResponse(
    fileAtPath: OHPathForFile("wsresponse.json", type(of: self))!,
    statusCode: 200,
    headers: ["Content-Type":@"application/json"]
  )
}

I guess someone is fond of good ol' Obj-C with this @ 🐨
Cheers!

Nicely spotted, thanks!
Just fixed it 👌


AttributeError: 'Cube' object has no attribute 'visualize'

AttributeError: 'Cube' object has no attribute 'visualize' in atoti
I am facing issue on the latest version(i.e. 0.5.5)
Could you please help me to solve this..

Hi,
Indeed visualize is available on Session instance not Cube. You can use session.visualize()

Got it thank you


Support tags when installing from git

We should support tags by using --tag instead of --rev when installing a dependency from GIT.
Also try to support other branches than master/main.

taking this on!

for some reason it was not updated. this is done already