Problem

Hi,
I'm teatcher of geography. I'm very interesting by your extension for Inkscape. But it doesn't export, nothing... Please could you write a tutorial for beginner ?
Thanks a lot
Circumpolaire

The readme file explain the normal behavior. So if it's not working can be nice know why and fix the explanation in the readme file. Maybe a problem with the dependencies, you need ImageMagick to generate the JPEG files.
Can you try to generate the exports in PNG format? Are you using the [export] and [fixed] strings in your layers? If you prefer it you can askme directly by Email (jespinog@gmail.com).

The problem was related with the case sensitive of fixed/export strings in the layers. I have changed it to case insesitive.
One more time thanks! :sparkles:

Thanks you !
2016-06-23 17:47 GMT+02:00 Jesús Espino<EMAIL_ADDRESS>
Closed #1 https://github.com/jespino/inkscape-export-layers/issues/1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jespino/inkscape-export-layers/issues/1#event-702081940,
or mute the thread
https://github.com/notifications/unsubscribe/ATLicUHHacdlqoCZ31JKqCRmIZLVEQW5ks5qOqp4gaJpZM4I86Cr
.

But it doesn't work. I send what your extension write when i try to export.
Does it work with my map with you ?
Laurent
2016-06-23 17:58 GMT+02:00 Lolo Circumpolaire<EMAIL_ADDRESS>
Thanks you !
2016-06-23 17:47 GMT+02:00 Jesús Espino<EMAIL_ADDRESS>
Closed #1 https://github.com/jespino/inkscape-export-layers/issues/1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jespino/inkscape-export-layers/issues/1#event-702081940,
or mute the thread
https://github.com/notifications/unsubscribe/ATLicUHHacdlqoCZ31JKqCRmIZLVEQW5ks5qOqp4gaJpZM4I86Cr
.

Try 1 :
Traceback (most recent call last):
File "export_layers.py", line 107, in
_main()
File "export_layers.py", line 103, in _main
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect
self.effect()
File "export_layers.py", line 39, in effect
self.exportToPng(layer_dest_svg_path, layer_dest_png_path)
File "export_layers.py", line 92, in exportToPng
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 633, in init
errread, errwrite)
File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 842, in _execute_child
startupinfo)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 77: ordinal not in range(128)
Try 2 :
Traceback (most recent call last):
File "export_layers.py", line 107, in
_main()
File "export_layers.py", line 103, in _main
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect
self.effect()
File "export_layers.py", line 39, in effect
self.exportToPng(layer_dest_svg_path, layer_dest_png_path)
File "export_layers.py", line 92, in exportToPng
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 633, in init
errread, errwrite)
File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 842, in _execute_child
startupinfo)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 86: ordinal not in range(128)
Try 3 :
Traceback (most recent call last):
File "export_layers.py", line 107, in
_main()
File "export_layers.py", line 103, in _main
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect
self.effect()
File "export_layers.py", line 39, in effect
self.exportToPng(layer_dest_svg_path, layer_dest_png_path)
File "export_layers.py", line 92, in exportToPng
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 633, in init
errread, errwrite)
File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 842, in _execute_child
startupinfo)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 86: ordinal not in range(128)

Looks like an encoding problem, it doesn't happens in my Linux machine, I have forced the encoding of command as utf-8 string. Can you pull the changes and try again?

Hi Jesus
I destroyed "encoding uft-8" in the "export_layers.inx" file. Then it will
work. But it doesn't accept french accent in the title of layers (for
exemple Axes ferrés). Then the addon export in svg ! If i change the tittle
it will be good. As you can see. But there are a second problem : when i
choice jpeg, the background of the image is black. In PNG, there aren't
background.
[image: Images intégrées 1]
Thanks for your addon
Laurent
2016-06-23 18:23 GMT+02:00 Jesús Espino<EMAIL_ADDRESS>
Looks like an encoding problem, it doesn't happens in my Linux machine, I
have forced the encoding of command as utf-8 string. Can you pull the
changes and try again?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jespino/inkscape-export-layers/issues/1#issuecomment-228104545,
or mute the thread
https://github.com/notifications/unsubscribe/ATLicQe3EMJxTI6Iz5WZgy-uEVhT-NwQks5qOrMSgaJpZM4I86Cr
.

HI Jesus,
After that i tryed an another thing : i keep your exact file
"export_layers.inx"  but i converted it in uft-8 witn Notepad ++
(before in uft-8(withoutBOM)).
And it will be good except the bacground of jpeg and the french accent in
title of layers.
Laurent
2016-06-24 17:19 GMT+02:00 Lolo Circumpolaire<EMAIL_ADDRESS>
Hi Jesus
I destroyed "encoding uft-8" in the "export_layers.inx" file. Then it will
work. But it doesn't accept french accent in the title of layers (for
exemple Axes ferrés). Then the addon export in svg ! If i change the tittle
it will be good. As you can see. But there are a second problem : when i
choice jpeg, the background of the image is black. In PNG, there aren't
background.
[image: Images intégrées 1]
Thanks for your addon
Laurent
2016-06-23 18:23 GMT+02:00 Jesús Espino<EMAIL_ADDRESS>
Looks like an encoding problem, it doesn't happens in my Linux machine, I
have forced the encoding of command as utf-8 string. Can you pull the
changes and try again?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jespino/inkscape-export-layers/issues/1#issuecomment-228104545,
or mute the thread
https://github.com/notifications/unsubscribe/ATLicQe3EMJxTI6Iz5WZgy-uEVhT-NwQks5qOrMSgaJpZM4I86Cr
.


curio example doesn't terminate or print trace back when raise Exceptions

I am not sure if I should ask this question in curio's issues or here.
But the curio server would not terminate even if I have a runtime error in my code. These error must be ignored by upper callers somewhere.
How can I configure that to let the program crash on errors? Since it's super hard to debug if the server ignores errors.

Curio does this on purpose: by default, errors should cause crashes.
If you really want to avoid this, then you need to add a try...except block to your top-level async function:
async def runner():
    while True:
        try:
            do_work()
        except Exception:
            pass

@Lukasa Sorry about my misspelling. I actually meant "curio server would not terminate"

Hrm, can you show an example of your code?

It is curio Windows support issue. I switched to Linux and everything works as I expected. Similar issues are mentioned in curio's issues. Just need to wait for curio to have better Windows support.


Keys can be inspected now and much more

See updated after.png

keys of Map and OrderedMap can be inspected now
All supported collections have size information aside a type name e.g. OrderedSet[5]
altered Record values are previewed aside Record type e.g. MyRecord {value: MyRecord}
keys of altered Record values are bolder
added index.html with simple demo
heavy refactoring

Great stuff! Thanks very much.
I've published this to NPM.

Thank you :-)

This looks great! :+1:


Hidden Laboratory in the Basement

Room Description: In this secret laboratory located in the basement of the ZDD building, the player discovers an abandoned facility with ancient apparatus and unidentified substances. The laboratory is illuminated by a faint, greenish light emanating from old bulbs hanging from the ceiling.
What Happens in the Room: The player encounters dusty chalkboards with incomplete formulas. The objective could be to complete a forgotten invention of the professor, gaining access to a secret chamber. Players must solve simple mathematical puzzles and find ingredients to complete the formula.

@l4nz8
@florian-huber
I hope you're well. I'm Sara Sobhani, and I'd like to become a "Collaborator" for the ZDD Adventure Repository to contribute to the project. I've already [completed steps / created issues] and am excited to get involved.
Could you please add me as a "Collaborator"? Thanks!

I just invited you to the students-2023 team. With this you should have access to the repository.


KeyError: "None of ['query'] are in the columns"

import os,sys
import pandas as pd
import numpy as np
import anndata as ad
import snaf
df = pd.read_csv('/home/ry-03/data/SNAF/altanalyze_output/ExpressionInput/counts.original.pruned.txt',index_col=0,sep='\t')
db_dir = '/home/ry-03/data/SNAF/data'
netMHCpan_path = '/home/ry-03/data/SNAF/netMHCpan-4.1/netMHCpan'
tcga_ctrl_db = ad.read_h5ad(os.path.join(db_dir,'controls','tcga_matched_control_junction_count.h5ad'))
gtex_ctrl_db = ad.read_h5ad(os.path.join(db_dir,'controls','GTEx_junction_counts.h5ad'))
add_control = {'tcga_control':tcga_ctrl_db}

snaf.initialize(df=df,db_dir=db_dir,binding_method='netMHCpan',software_path=netMHCpan_path,add_control=add_control)
2024-05-12 20:09:18 starting initialization
Current loaded gtex cohort with shape (56692, 2629)
Adding cohort tcga_control with shape (54813, 705) to the database
now the shape of control db is (56999, 3334)
2024-05-12 20:10:10 finishing initialization

jcmq = snaf.JunctionCountMatrixQuery(junction_count_matrix=df,cores=40,add_control=add_control,outdir='result')
reduce valid NeoJunction from 57300 to 9158 because they are present in GTEx
reduce valid Neojunction from 9158 to 7200 because they are present in added control tcga_control
sample_to_hla = pd.read_csv('sample_hla.txt',sep='\t',index_col=0)['hla'].to_dict()
hlas = [hla_string.split(',') for hla_string in df.columns.map(sample_to_hla)]
jcmq.run(hlas=hlas,outdir='./result')
junction_count_matrix: (57300, 66)
cores: 30
valid: 7200
invalid: 50100
cond_df: (57300, 66)
subset: (7200, 66)
translated: list of 7200 nj objects
cond_subset_df: (7200, 66)
results: list of length 2

snaf.JunctionCountMatrixQuery.generate_results(path='./result/after_prediction.p',outdir='./result')
adding gene symbol
Traceback (most recent call last):
File "", line 1, in
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/snaf/snaf.py", line 475, in generate_results
enhance_frequency_table(df,True,True,outdir,'frequency_stage{}_verbosity1_uid_gene_symbol_coord_mean_mle.txt'.format(stage))
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/snaf/snaf.py", line 1422, in enhance_frequency_table
df = add_gene_symbol_frequency_table(df=df,remove_quote=remove_quote)
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/snaf/downstream.py", line 894, in add_gene_symbol_frequency_table
symbol_list = ensemblgene_to_symbol(ensg_list,'human')
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/snaf/downstream.py", line 922, in ensemblgene_to_symbol
out = mg.querymany(query,scopes='ensemblgene',fileds='symbol',species=species,returnall=True,as_dataframe=True,df_index=True)
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/biothings_client/base.py", line 599, in _querymany
out = self._dataframe(out, dataframe, df_index=df_index)
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/biothings_client/base.py", line 172, in _dataframe
df = df.set_index("query")
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/ry-03/miniconda3/envs/SNAF/lib/python3.7/site-packages/pandas/core/frame.py", line 5451, in set_index
raise KeyError(f"None of {missing} are in the columns")
KeyError: "None of ['query'] are in the columns"

[1] make sure netMHCpan path is set correctly
netMHCpan_path = '/home/ry-03/data/SNAF/netMHCpan-4.1/netMHCpan'
[2] make sure HLA allele format is correct
sample	hla
LYB.bed	HLA-A24:02,HLA-A11:01,HLA-B40:01,HLA-B15:11,HLA-C03:03,HLA-C15:02
The colname of df is the same order of the rowname of sample_hla.txt.
The error still encountered and
burden_stage3.txt
frequency_stage3.txt
x_neoantigen_frequency_stage3.pdf
x_occurence_frequency_stage3.pdf
These files were empty.

Hi @renyuan001,
Based on the information you provided, it seems that the HLA alleles format are missing a "*", see this section in the tutorial (https://snaf.readthedocs.io/en/latest/tutorial.html#identify-mhc-bound-neoantigens-t-antigen). Let me know if that solves the problem, if not let me know we can dig further.
Best,
Frank

When  I submit the content here,  the ""can't display, but the "" were included in the sample_hla.txt.

Hi @renyuan001,
It indeed seems you did everything. Would you be comfortable sharing the counts file and the sample_hla file (I guess it's the same as you showed here) to me, and I'll test it on my end?
You can send me an email to<EMAIL_ADDRESS>if the data is meant to be private.
Best,
Frank


iconfigurationsection does not contain a definition for get

From @blowdart on March 22, 2018 12:57
From @WaedSaleh on March 22, 2018 12:18
I  passed Configuration object to the class library and when I use  it to get a configuration  like
Configuration.GetSection("Settings").Get(); I get the error iconfigurationsection does not contain a definition for get.
PS : In Startup class, it works fine but in the class library not.
Copied from original issue: aspnet/Security#1704
Copied from original issue: aspnet/Home#2988

@Eilon Any Update

@WaedSaleh can you share your project so we can take a look?

@Eilon , Here you Go!
https://github.com/WaedSaleh/MvcCoreApp
In Startup class you will see Get works fine , while in class MvcCoreManager it not.

Never Mind I add Microsoft.Extensions.Configuration.Binder and It works

Ah, yes, that's where the extension methods are defined, so closing this issue.

sometimes the issue can be caused by using statement "using AutoMapper.Configuration;"


nodepilot terraform example

Please make sure that's covered in the documentation

What should I write regarding terraform ?

meant to be done from the playground


Update deploy.ps1

Disconnect PowerShell sessions to prevent sessionlimits being hit

Thanks for the contribution - Change approved


Update PPP

Codecov Report

Merging #232 (40d49d9) into master (d2ae5c9) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #232   +/-   ##
=========================================
  Coverage     67.11%   67.11%
  Complexity      918      918
=========================================
  Files           133      133
  Lines          2834     2834
  Branches        376      376
=========================================
  Hits           1902     1902
  Misses          787      787
  Partials        145      145

Continue to review full report at Codecov.

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


Single dash in value treated as Option

Hi,
this seems strange, but I'm having problem with using Parser like:
--parameter "-someValue", because Parser treats "-someValue" as Option, which can't find.
Here in wiki, we can see --suffix parameter with value "-2019". It doesn't seem to work in my project.
https://github.com/commandlineparser/commandline/wiki/Option-Groups
option EnableDashDash = true doesn't help either. Any help with this?

Yeah, i have the same problem. And so have others (https://github.com/commandlineparser/commandline/issues/709).
This is actually a showstopper for a project of mine that uses this (otherwise great) commandline parser library, as there doesn't seem an easy way around this problem. In my case, it's an option for providing file names, where the file names can be like "-12345.png". The only choice i have right now for this project is to not use this commandline parser for the time being (until the issue is being fixed). Luckily, the affected project only uses half a dozen commandline options, whose parsing/evaluation i can relatively quickly hand-code (without the conveniences of help texts and proper handling of invalid commandline arguments, of course...)

@elgonzo Hi, the only temporary solution I came across during playing around with single dashes is to provide a whitespace (a 'space' being specific) before the hyphen, for example --param " -foobar". Parser gets this right and then you could manually trim all the whitespaces before/after "foobar". This seems like an inconvience but for my use it was the only way I could make it work. Cheers!

For simpler CLI setups, your suggested workaround can indeed help getting around the issue. It handily beats hand-coding the whole args handling, even where the CLI is rather simple.

PR #684 (merged into develop branch already, though hopefully #690 will also be merged before release 2.9 happens) fixes this by creating a "strict getopt" mode, where --param -foobar will be interpreted as "the value of param should be -foorbar", precisely the way getopt does. Once #690 gets merged, the syntax will be:
var parser = new Parser(with => {
    with.ParserMode = ParserMode.GetoptParserV2;
});

And then that will cause the parser to treat a value starting with a hyphen as a value, not an option, if (and only if) it immediately follows an option that expects a value.

Until 2.9.0 is released, you can actually make this work by using the = syntax: --parameter=-someValue. This is a workaround, not the ideal solution, because it means that --parameter=-someValue and --parameter -someValue have different effects. Once 2.9.0 comes out, ParserMode.GetoptParserV2 will be what you're asking for.

This is essentially a duplicate of #601, BTW.

Great! That's good news. Thank you.

@rmunn Hi Robin, could you give an estimate when this MR will be merged?
https://github.com/commandlineparser/commandline/pull/690

@jacekard wrote:

@rmunn Hi Robin, could you give an estimate when this MR will be merged?
#690

I can't give you an estimate, sorry. I'd have merged it months ago if I was a repo maintainer. But the repo maintainers (which AFAIK are just @moh-hassan and @gsscoder) haven't responded to any of my pings in the past months. So I have no idea when #690 will be merged, sorry.


[BugFix] Fix Load plugin failed bug

Problem Summary:
Fixes #23607
This PR #14401 put the class loader into try(), so it will be closed after the try block, and the classes which are loaded by this class loader will not be found when they are used in others code block.
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

[FE PR Coverage Check]
:disappointed: fail : 0 / 1 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/plugin/DynamicPluginLoader.java
0
1
00.00%
[221]

@gengjun-git please add test cases to cover this issue

@Mergifyio backport branch-3.0


How to use clashx proxy in orbstack linux?

I can't set the orbstack linux proxy with clashx.

Can you be more specific? What have you tried and how are you trying to set it?
Proxy usage docs: https://docs.orbstack.dev/machines/network#proxies


Report and Edit Links in Related Resources

Remove Report and Edit link in Related Resource model

The user information doesn't seem to be readily available here so have just removed the links for everyone. If internal users want access to these links in the future we can dig into making the user information available.

Done in test


Bring back support for multi-txn batches

Supersedes #122 and includes trace_decoder related change for customizable batch size.

@BGluth Would appreciate your input on the trace_decoder part 🙂

@4l0n50 @hratoanina would appreciate a review on the kernel part, thanks!


feat: add OpenFgaClient wrapping OpenFgaApi

Thanks for the review @miparnisari! The issues should be addressed, as well as #15 and #16


fix(coral): Fix the forms SubmitButton loading state

What happened?
Our forms all use Form.tsx for their building blocks. Most notably, we export a SubmitButton which has an isLoading prop, which should be true when the form has the isSubmitting state: https://github.com/aiven/klaw/blob/b740b0f7374344295f9232e634d8a50c6126e389/coral/src/app/components/Form.tsx#L468
However, this behaviour is broken: the SubmitButton never renders in the loading state, as isSubmitting is never true during the rendering phases between clicking the button and triggering the success side effects (usually navigating away from the form:
https://github.com/aiven/klaw/assets/20607294/d524f2df-9a10-48af-b83b-ff374be4edfe
What did you expect to happen?
The expected behaviour is that the SubmitButton would be rendered in a loading state after the user clicks it, until the side effects are triggered.
The reason for the misbehaviour
We use react-hook-form to handle our forms. In this context, for the formState to be properly updated with the correct isSubmitting value, the onSubmit callback should return a promise (https://stackoverflow.com/a/73945468/6939998). But most/all of our forms onSubmit callbacks are actually mutate functions returned by react-query, which are not promises. : https://github.com/aiven/klaw/blob/b740b0f7374344295f9232e634d8a50c6126e389/coral/src/app/features/topics/request/TopicRequest.tsx#L75
Replacing the above by this yields the correct behaviour:
  const onSubmit: SubmitHandler<Schema> = (data) =>
    new Promise(() => mutate(data));

https://github.com/aiven/klaw/assets/20607294/eedc0255-ca9a-49ef-9b2a-543024a03ca5
What solution should we go with?
Assuming we want to actually implement the loading state of the SubmitButton, there are a few options:

wrapping all our mutate functions in a new Promise. This is the simplest, but is quite weird. And there are high chances of a developer forgetting about it
wrapping the onSubmit callback in a new Promise at the Form.tsx level (https://github.com/aiven/klaw/blob/b740b0f7374344295f9232e634d8a50c6126e389/coral/src/app/components/Form.tsx#L101). This would address the forgetfulness issue of 1, but is still a little bit counterintuitive, and would have to be documented and maintained, lest we run into more bugs.
removing the implicit isLoading prop from the exported SubmitButton in favor of an explicit isLoading prop we would pass in the component using SubmitButton. The value passed would probably be the returned isLoading from the react-query mutation. This would feel more idiomatic to how forms are usually handled, but its usage may become inconsistent (developer forgetfulness).

Notes about Cancel
It is arguable that the Cancel button should also have a state change after the Submit button is clicked, by becoming disabled (as a form submission cannot be cancelled once it has started). This pattern is seen inconsistently across the app, and the PR addressing this issue should also address this inconsistency by enforcing the pattern in every form

If we use mutateAsync instead of mutate we should be fine!
https://github.com/aiven/klaw/assets/943800/1c67bed6-208c-41ad-abaf-619ed8525610

We had that topic in July and I still think that using mutateAsycn for the only benefit of getting a correct loading animation at the right time is not worth the effort of catching and handling errors manually in every form and the additional work for figuring out tests. We needed to mock the whole useMutation for the test to work and I don't think that's a good pattern.

the only benefit of getting a correct loading animation at the right time

This is not the only benefit. I have encountered a bug a few times where I double clicked the submit button by mistake, which locked me into the form after the error for "an existing request already exists" is displayed, because cancel navigates -1, which goes back to the previous form state.

the effort of catching and handling errors manually in every form

This is not what I propose. The catch construct is only to signal to react-hook-form that it needs to reset the state of the form because of an error on submit. The errors are still handled in the same way as before, I believe.

We needed to mock the whole useMutation for the test to work and I don't think that's a good pattern.

Do we? Why so?

Note:
The solution for this in our case was to edit our SubmitButton in Form to be able to pass a property loading manually, so this can be used to get a proper loading state. When using useMutate, we always have a isLoading property that can be used for that.
Implementation: https://github.com/Aiven-Open/klaw/pull/1743
Follow up issue: https://github.com/Aiven-Open/klaw/issues/1749


Gitpod config

This is the first .gitpod.yml file I've written, so very open to addressing concerns or recognizing mistakes.
The intention is that contributors can very easily preview the result of their changes, without needing any local tools or configuration at all. This will launch a remote IDE which includes automatically running the documentation build process and viewing the results.

I'm with you @pipern but I believe this is better than nothing for now. I like the contribution.
Thank you both and sorry it took so long to review.


Added Speaking JavaScript book

"Speaking JavaScript" is one of the best resources to learn JavaScript from scratch.

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for opening this pull request.
Book recommendations are beyond the scope of the freeCodeCamp Guide, so we've decided to go ahead and remove these book recommendation articles.
I encourage you to review this book in the ratings category of the freeCodeCamp forum. Your recommendation will reach way more people there.
Thanks again recommending this book, and for contributing to the freeCodeCamp Guide.


Transform and extract map values to array

Description
This PR fixes the issue introduced from this PR: #5238
The returned type from the GenericRow could be map, whereas there is no logic to handle map type in DataTypeTransformer class.
The workaround here is to fetch the values from the map to the dedicated array.

@jackjlli , please see why the unit tests are failing. Also, adding a unit test with data from the original avro file might be better since in future when this code is changed to actually support Map type, we don't want the code to break again.

Please take a look at #5760 which is a general fix for this issue.


SQS Persistence Broken

Hello,
Firstly, I want to express my gratitude for your efforts in maintaining the persistence of LocalStack.
After trying out the latest version of the LocalStack container, it seems that SQS persistence is currently broken. I encountered that SQS states aren't persisting when attempting to restart or stop the container.
Here are the details of my environment:
LocalStack Version: 3.0.2
Podman Version:  4.6.2
OS: darwin/arm64

Steps to Reproduce:

Run container and mount the path /persisted-data as recommended in the README. Here is the compose file that I have been using.

  localstack:
    image: gresau/localstack-persist:3.0.2
    privileged: true
    environment:
      SERVICES: s3, sqs, sns, dynamodb, sts, kms, kinesis
      DEFAULT_REGION: ap-south-1
      PORT_WEB_UI: 8015
      PERSIST_SQS: 1
    ports:
      - "4566:4566"
      - "8015:8015"
    volumes:
      - /var/home/core/localstack:/persisted-data

Create SQS Queueus

 awslocal sqs create-queue --attributes '{ "VisibilityTimeout": "3" }' --queue-name test-queue
 awslocal sqs create-queue --attributes '{ "VisibilityTimeout": "3" }' --queue-name test-queue-1
 awslocal sqs create-queue --attributes '{ "VisibilityTimeout": "3" }' --queue-name test-queue-2
 awslocal sqs create-queue --attributes '{ "VisibilityTimeout": "3" }' --queue-name test-queue-3

Create SNS Queues

awslocal sns create-topic --name test-topic
awslocal sns create-topic --name test-topic-1
awslocal sns create-topic --name test-topic-2

Create S3 Buckets

awslocal s3 mb s3://test-bucket
awslocal s3 mb s3://test-bucket-1
awslocal s3 mb s3://test-bucket-2

Copy a file to one of the s3 bucket

awslocal s3 cp setup.py s3://test-bucket

Restart Or Stop the container

podman container restart <container-name>

Expected Behavior:

All the resources creates in SQS, SNS, S3 should be intact.

Actual Behavior:

All the resources of SNS and S3s are intact. The resources in SQS are lost post the container restart. Below command returns empty

awslocal sqs list-queues

Upon inspecting the files in persisted-data, I could only see the states from sns and s3 services in place.

root@05c5c1ab4a5b:/opt/code/localstack# ls /persisted-data/
s3  sns

This issue is critical for our integration testing suits. If there's anything else needed from my end, please let me know. I appreciate your time and attention to this matter.

Thanks for the report - I could reproduce this in gresau/localstack-persist:3.0.2, but not in gresau/localstack-persist:latest. After digging a bit further, I found that this would only occur when running localstack-persist based on LocalStack 3.0.1, and it did not occur when using a base image of LocalStack 3.0.2.
I've now published localstack-persist:3.0.3 which is based on LocalStack 3.0.2 (which to be honest I should have done a while ago), so that should fix your problem. Could you give it a try?
I couldn't find exactly what changed in LocalStack to break/fix this behaviour, but I'm fairly sure it's something to do with the updates in 3.0 to add support for the JSON SQS protocol that's used by newer versions of the AWS SDK. This bug seemed to only occur when using older SDKs, which includes awslocal. This also explains why this bug was unfortunately not caught by localstack-persist's automated tests - as part of the tests, a create-queue request is made using the JSON API, which causes persistence to work.

Hey @GREsau, thanks a lot for spending time here. It's working in version 3.0.3.


fix: days of buffering erroring due to ynab library changes

GitHub Issue (if applicable): fixes #3208
Explanation of Bugfix/Feature/Modification:
Removed get wrappers associated with days buffering related to #3198

Hi! This was marked as closed, but my Days of Buffering is still missing. Thanks in advance! :)

Hi! This was marked as closed, but my Days of Buffering is still missing. Thanks in advance! :)

The changes should be out in version 3.8.0 @lkdahlen . I don't have much knowledge in term of the deploy process, but it seems like my version of the toolkit hasn't updated yet. Once the extension has been updated from 3.7.3 -> 3.8.0 days buffering will be back

@MorpheusNephew Gotcha! Thanks!


gtest_discover_tests requires cmake 3.10

@pkovacs Thanks so much for your patch.
I hope drogon can be built in Ubuntu1604 in it's defualt enviroment, but the version of default cmake in ubuntu1604 is 3.5.

@an-tao you could try experimenting with the cmake_policy command to find the exact requirements.  The cmake docs mention that gtest modules and commands were added for  3.9 / 3.10, so if they use 3.5, they will run into trouble if they try to build tests.
Ref: https://cmake.org/cmake/help/git-stage/module/GoogleTest.html

Close since we dropped GTest in favor of a new async testing framework in #869


[Docs] Ideas for additions to docs

Major topics:

[ ] making 'publication quality' plots with Makie (still not sure how to do that)
[ ] Scene kwargs - resolution, background colour, etc.
[ ] Manually theming (ties in with Scene kwargs)
[x] API reference?  (basically all docstrings of functions on a page) fixed by JuliaPlots/AbstractPlotting#107
[ ] Legends - how do they work?  (see #308 as well)
[ ] Updating plots (update*! functions as well as changing Themes and updating Axis)
[x] All StatsMakie capabilities (currently undocumented - boxplot, violin for example)
[x] Common problems with installing or building Makie
[x] Add examples of saving, passing resolution to scene, et cetera
[x] How to use ColorSchemes.jl and PerceptualColorSchemes.jl in Makie (solved by JuliaPlots/MakieGallery.jl#11)
[x] What colors are even allowed? (solved by JuliaPlots/MakieGallery.jl#11)
[x] Recipe section - the text is there, just need a page for it (see JuliaPlots/MakieGallery.jl#13)

Minor stuff:

[x] How to make a 'title' to a plot (useful for Plots) see #113

Examples:

[x] Volume plot of 3d function (PR merged at JuliaPlots/MakieGallery.jl#13)
[x] All colorschemes
[x] Robot (courtesy @pbouffard) (examples merged by JuliaPlots/MakieGallery.jl#18)
[x] MakieThemes statistical plots (WIP, JuliaPlots/MakieGallery.jl#32)

Please put more in the comments!

Volume plot of 3d function
using AbstractPlotting
AbstractPlotting.__init__();

xs = LinRange(-3, 3, 100);
ys = copy(xs);
zs = copy(xs);

ρ(x, y, z) = exp(-(abs(x)))

qs = [ρ(x, y , z) for x in xs, y in ys, z in zs]

sc = Scene(backgroundcolor = :black)

volume!(xs, ys, zs, qs, algorithm = :mip)

this might be cool to show off the abilities of the plotter:
https://github.com/astronexus/HYG-Database
It's a dataset of stars with position, color and magnitude (as well as a host of other things).
Maybe we could replace the stars scatter plot with real stars?

From the documentation of ColorSchemes.jl:

How to use ColorSchemes in Makie:

using Makie, ColorSchemes
N = 20
x = LinRange(-0.3, 1, N)
y = LinRange(-1, 0.5, N)
z = x .* y'
image(x, y, z, colormap = ColorSchemes.picasso.colors)

See all colormaps provided by ColorSchemes.jl

using Makie, ColorSchemes

h = 0.0
offset = 0.1
scene = Scene()
cam2d!(scene)
plot = map(collect(keys(colorschemes))) do cmap
     global h
     c = to_colormap(colorschemes[cmap].colors)
     cbar = image!(
         scene,
         range(0, stop = 10, length = length(c)),
         range(0, stop = 1, length = length(c)),
         reshape(c, (length(c), 1)),
         show_axis = false
     )[end]
     text!(
         scene,
         string(cmap, ":"),
         position = Point2f0(-0.1, 0.5 + h),
         align = (:right, :center),
         show_axis = false,
         textsize = 0.4
     )
     translate!(cbar, 0, h, 0)
     h -= (1 + offset)
end
scene

To document what a Theme is and how it ties in with the Scene (i.e., kwargs are passed from Scene to Theme), we must document what each of these does:
const minimal_default = Attributes(
    palette = default_palettes,
    font = "Dejavu Sans", # font, can be any in system
    backgroundcolor = :white, # color of background
    color = :black, ## color of what?
    colormap = :viridis, # colormap, replicate docs from `Axis`
    marker = Circle, ## what is allowed, what does this do?
    markersize = 0.1, # size of marker
    linestyle = nothing, ## what can it do?
    resolution = reasonable_resolution(), # tuple of resolution, Int, auto determined
    visible = true, ## what?
    clear = true, ## what?
    show_axis = true, # show axes or not
    show_legend = false, ## what?  can we manipulate legend?
    scale_plot = true, ## to what?
    center = true, ## what else?
    axis = Attributes(), ## link to description
    axis2d = Attributes(), ## link to description
    axis3d = Attributes(), ## link to description
    legend = Attributes(), ## what?
    axis_type = automatic, ## 2d or 3d I guess?
    camera = automatic, ## what else can it be?
    limits = automatic, # link to HyperRectangle docs
    padding = Vec3f0(0.1), ## pads all around?
    raw = false ## what does it do?
)

Speaking of publication quality plots, https://github.com/peterkovesi/PerceptualColourMaps.jl seems good.  It would be interesting to see whether it can be made compatible with Makie.

Documentation on recipes from AbstractPlotting:
Plot Recipes in AbstractPlotting
There's two types of recipes. Type recipes define a simple mapping from a
user defined type to an existing plot type. Full recipes can customize the
theme and define a custom plotting function.
Type recipes
Type recipe are really simple and just overload the argument conversion
pipeline. This can be done for all plot types or for a subset of plot types:
# All plot types
convert_arguments(P::Type{<:AbstractPlot}, x::MyType) = convert_arguments(P, rand(10, 10))
# Only for scatter plots
convert_arguments(P::Type{<:Scatter}, x::MyType) = convert_arguments(P, rand(10, 10))
Optionally you may define the default plot type so that plot(x::MyType) will
use this:
plottype(::MyType) = Surface
Full recipes with the @recipe macro
A full recipe for MyPlot comes in two parts. First is the plot type name,
arguments and theme definition which are defined using the @recipe macro.
Second is a custom plot! for MyPlot, implemented in terms of the atomic
plotting functions.
We use an example to show how this works:
# arguments (x, y, z) && theme are optional
@recipe(MyPlot, x, y, z) do scene
Theme(
plot_color => :red
)
end
This macro expands to several things. Firstly a type definition:
const MyPlot{ArgTypes} = Combined{myplot, ArgTypes}
The type parameter of Combined contains the function instead of e.g. a
symbol. This way the mapping from MyPlot to myplot is safer and simpler.
(The downside is we always need a function myplot - TODO: is this a problem?)
The following signatures are defined to make MyPlot nice to use:
myplot(args...; kw_args...) = ...
myplot!(scene, args...; kw_args...) = ...
myplot(kw_args::Dict, args...) = ...
myplot!(scene, kw_args::Dict, args...) = ...
#etc (not 100% settled what signatures there will be)
A specialization of argument_names is emitted if you have an argument list
(x,y,z) provided to the recipe macro:
argument_names(::Type{<: MyPlot}) = (:x, :y, :z)
This is optional but it will allow the use of plot_object[:x] to
fetch the first argument from the call
plot_object = myplot(rand(10), rand(10), rand(10)), for example.
Alternatively you can always fetch the ith argument using plot_object[i],
and if you leave out the (x,y,z), the default version of argument_names
will provide plot_object[:arg1] etc.
The theme given in the body of the @recipe invocation is inserted into a
specialization of default_theme which inserts the theme into any scene that
plots Myplot:
function default_theme(scene, ::Myplot)
Theme(
plot_color => :red
)
end
As the second part of defining MyPlot, you should implement the actual
plotting of the MyPlot object by specializing plot!:
function plot!(plot::MyPlot)
# normal plotting code, building on any previously defined recipes
# or atomic plotting operations, and adding to the combined plot:
lines!(plot, rand(10), color = plot[:plot_color])
plot!(plot, plot[:x], plot[:y])
plot
end
It's possible to add specializations here, depending on the argument types
supplied to myplot. For example, to specialize the behavior of myplot(a)
when a is a 3D array of floating point numbers:
const MyVolume = MyPlot{Tuple{<:AbstractArray{<: AbstractFloat, 3}}}
argument_names(::Type{<: MyVolume}) = (:volume,) # again, optional
function plot!(plot::MyVolume)
# plot a volume with a colormap going from fully transparent to plot_color
volume!(plot, plot[:volume], colormap = :transparent => plot[:plot_color])
plot
end

It'd be obvious to depend on ColorSchemes imho.

Thanks a lot for getting this started!

Maybe we could replace the stars scatter plot with real stars?

I actually started with that dataset - but took it out when putting it into the gallery :D
Large datasets are just so annoying to integrate... Maybe we should have a fetch_data, that downloads or generates random data depending on the context

PerceptualColorMaps already works just fine:
surface(rand(10, 10), colormap = PerceptualColorMaps.cmap("R3"))

Thanks a lot for getting this started!

Maybe we could replace the stars scatter plot with real stars?

I actually started with that dataset - but took it out when putting it into the gallery :D
Large datasets are just so annoying to integrate... Maybe we should have a fetch_data, that downloads or generates random data depending on the context

I see the issue now...maybe we could just generate random data with random RGBA values and glows?

Here's an idea: why not try to replicate some of the Plots examples in the Makie docs?  That way Plots users can transition more smoothly, and some of the more common features will become a bit more obvious.

Not sure if this is the right place for it but I have some silly little toy programs that might serve as useful beginner examples. E.g.: https://github.com/pbouffard/miniature-garbanzo/blob/master/robot.jl which looks like this: https://giphy.com/gifs/25JgIK6v56kKIi7CsG. Probably I have a bunch of rookie Julia mistakes in there. If you think it's useful as a demo then hopefully the PR will help me learn what those are! ;)

@pbouffard that is pretty awesome :)
We should definitely make it part of the gallery!

The other one currently in that repo (earthmoon.jl) looks like this: https://giphy.com/gifs/348zy5r9Mnd34KEiro

@pbouffard you should make a PR to MakieGallery!  If you take a look at examples/examples3d.jl, you can put:
@block PatrickBouffard ["3d"] begin
    @cell "Robot" [interaction, 3d, lines, slider] begin
    ... # put your code here
    end
end

Can you update any attribute of a plot's Theme by using scene[end][:something] = something else?

what do you mean by theme? Just any attribute of a particular plot? If yes, yeah should be... but some attributes sadly don't update right now with GLMakie (e.g. if they change the underlying opengl shader)... Should invest some time at some point to make it consistent, even if it's inefficient

Do you have a list of which ones don't work?

attributes: shading, linestyle
and then heatmap/image/surface xy ranges get unlifted (woops, that should be easy to fix)

Perfect, that should get integrated into the updating docs whenever I get around to them.

@piever, could you give us a list of all the capabilities that StatsMakie has now?  I'm not sure which ones are production ready or not.  I'd like to flesh out the StatsMakie examples a bit more, with examples of box plots, OHLC, KDE et cetera like what Simon did in MakieThemes' example.

That'd be great! StatsMakie is definitely under-documented!
The tutorial includes the "grouping and data" aspect, then there are boxplot and violin (same interface as StatsPlots). corrplot is broken (I was waiting forgrid! to get fixed in Makie but maybe I should give up and implement it with hbox and vbox).
In terms of Analysis (which are stats to do on your data before plotting) there are:

density (KDE, 1 or 2D)
histogram (1, 2 or even 3D though it looks silly)
frequency (count occurrences of discrete variables, 1 or 2D)
linear (linear regression)
smooth (LOESS regression)

You would basically write plot(density(bandwidth = 0.1), x, y) or something analogous for other Analysis.
In terms of "quality":

corrplot is broken
I have not added support for categorical axis so things may break if x or y are vectors of strings (I think this is the major limitation at the moment, though it should be addressable now that it's fixed in Makie)
No legend support

Everything else should work well. Feel free to ping me if you open a documentation PR, I'd be happy to help!

From Slack, thanks to @briochemc:

I specifically struggled with rotating the the "scene" (I used Rotations.jl to make a quaternion to use with rotate! in the end) and zooming in and out (I did not figure that out but I did not need it badly in the end, so I just accepted life without zooming) I think the documentation is a bit sparse. Some functions could help with a bit of explanation. Maybe this could be done with "examples of modifying the existing examples" (like "Placing a title", or "moving a label" , or "Changing the camera angle", or "Zooming in and out", etc.) Also having all the examples in the form of a gallery of images rather than a long list of URLs, something like Tikz Examples (http://www.texample.net/tikz/examples/all/), would be better IMHO. (I think Makie.jl looks great BTW, I don't want to sound like I did not enjoy using it — It allowed me to create what I wanted! :smile:)

He was on the old docs, but this does bring up valid points about rotations and such.  The 'gallery of images' thing we already have 😄 but there are still, of course, improvements to be made.

On the raw=true attribute:
it just creates the plot object and adds it to the scene...and doesn't do any of the following; calculating limits, making sure that a camera exists, making sure that an axis exists, it doesn't center the view

Another Idea for addition to docs: I could never find a description for Point2f0() and Point3f0(). Scatter seems not the work with the latter...

Scatter seems not the work with the latter

That must be a bug or wrong usage... Can you post a minimal example?

How to move plots between scenes
Let us assume you have located a plot, let's call this p - this could come from p = plot!(...) or p = scene.plots[i] or some other way.    There is a scene transfer_scene which you want to transfer this plot to.  You can simply do this by push!(transfer_scene, p), which takes care of all the backend features necessary to insert the plot.  At worst, simply redisplay it.
Note that you should not do push!(transfer_scene.plots, p), since this does not tell the backend anything.


Add some docs how to set up manually an ingress rule

The expose job can now be disable in the sso resource by setting the skipExposeService: true. This will require in addition to set up an ingress resource manually.
Document how to define this ingress resource manually.

/remove-lifecycle rotten


🤯👽🤖  ID is not provided [🐛]

Description
How to repeat issue and example

choose  "selected images" permission
user can choose any not selected images - it is bug  [🐛]
The Response Object did not send ID  - it is bug [🐛].

{"fileName": "B63B663D-FB82-459B-AE2C-9DCE9F8D1D46.jpg", "fileSize": 42413, "height": 300, "type": "image/jpg", "uri": "file:///Users/olegmoseyko/Library/Developer/CoreSimulator/Devices/EBE87F39-E549-453B-9FC1-B6CF5B32DD02/data/Containers/Data/Application/F0D91FD1-1D16-4E58-A895-795B131D36FA/tmp/B63B663D-FB82-459B-AE2C-9DCE9F8D1D46.jpg", "width": 400}
Additional Information

Image Picker version: "^4.7.3",
React Native version: "^0.63.4",
Platform: iOS
Development Operating System: MacOS
Dev tools: Xcode

Can you share your code?  Reproducible with the example code?

I don't do anything special just call the picker
I can select photos for which there is no permission in the settings
and selected photos have no id
the same case is described there https://github.com/react-native-image-picker/react-native-image-picker/issues/1952

    onUploadPress = async (options) => {
        try {
            this.setOptions(options);
            this.onClearFiles();
            const result = await launchImageLibrary({
                mediaType: 'mixed',
                selectionLimit: 1000,
                includeExtra: true,
            });
            const files = result?.assets;
            console.log('files', files);
            let extendedFiles = this.extendWithFilename(files);
            if (extendedFiles.length > 0) {
                this.setFiles(extendedFiles);
                await this.startUpload();
                this.onClearFiles();
                this.setState({
                    uploadStarted: true,
                });
            }
        } catch (error) {
            log.error('ImagePicker.onUploadPress: error:', error);
        }
    };

any news ?

@oleg-moseyko You need to request permissions AND set includeExtra to true in order for ID to be included.

@lukebrandonfarrell
i provided my code. You can see i used includeExtra to true
https://github.com/react-native-image-picker/react-native-image-picker/issues/1953#issuecomment-1073577669

Oh so it's related to limited picking, yeah this is a active bug, I've seen this before 🤔


Consume error thrown when autosaving file without name

Summary: Fixes #142. An issue existed where opening vim without a file
path and then navigating away (with autosave turned on) resulted in an
error being thrown. Now, this error is caught and consumed and not
propagated to the user.
Test Plan:

Started up a vim instance without a file path.
 It's been a while since I contributed to a project on github and I've literally never written vimscript before.

This looks great. Thanks for reporting @paymog. Code looks good (Vim doesn't give you much room to do anything else), and the commit message passes my main criteria of capturing the context / "why" of the code, so I think this looks great.
I did notice that the commit is currently shown as "unknown author", but you can fix this any time by reconnecting the associated email address with your GitHub account.
Thanks for the fix!

Thanks a lot, @paymog!

Hey @christoomey, I went ahead and added my work email to my github profile. Has the "unkown author" issue gone away? I may be looking at the wrong screen but it seems that my commit is now authored by me:


PGP/GPG code signature

Please sing your code with PGP and GPG so we know it is not compromised. That is how the entire incident started.
So please sign your code with a digital signature.

That's not how code signing works.

Thanks.


[Desktop] Stuck on the wrong MM wallet network and cannot change it

Stuck on the wrong network and cannot change it.
Attached video shows me tryijng to log in with Metamask.  I have reinstalled the client and use the clear cache option.  I have removed appdata subfolders shoiwnig DCL and reinstalled still no change.
I can log in with non metamask options, but even if I sign out it always comes back here with metamask optoin.
https://user-images.githubusercontent.com/55257637/184503985-28edf3cc-637d-4784-bc48-a57b35ddf5ff.mp4

This should also happen on the web using wallet connect because doesn't support changing networks. We should add an extra action to close the connection if the provider doesn't support the switch.
@xavi-dcl please move this to explorer-website

Not able to repro anymore.


Create NGINX mapping to handle subdomain links.

https://learn.freecodecamp.org/<challenge> should map to https://www.freecodecamp.org/learn/<challenge>
https://guide.freecodecamp.org/
 should map to https://www.freecodecamp.org/guide/

https://sponsors.freecodecamp.org/
 should map to https://www.freecodecamp.org/sponsors/

Hello, I am interested in solving this issue. What is the procedure to become part of this organization?

I am going to split this up into smaller tasks