adds optional %aka aliases prelude to %door

see #361 for discussion
I had to comment out the 1-d asserting in gen/metal to make a pill from this. I've uploaded it here: https://www.dropbox.com/s/2nz4w5cxdwjqqmo/door-aliases.pill?dl=0
Here's my test case:
|=  arg/@
=<  abet:(~(flub . 10) arg)
|/  a/@
+*  this  .
    samp  +<
    cont  +>
++  abet  [~ a]
++  flub
  |=  b/@
  ?>  =(a samp)
  ?>  =(+>+>.$ cont)
  this(a (add a b))
--

How should I format the $door page to preserve the margin?
Also, there are duplicate :door keyword declarations, along with both the |_ and |/ runes. Should the keywords be deduplicated? And can |/ be removed?
closes #361

/cc @chc4

The duplicate :door is due to |/ being the rune to create a wet door, which is no longer possible (killed in 151k). It should be perfectly fine to coopt the rune.
I love you for this.

appreciates your platonic expression of affection
So wet/dry used to be for the whole core, not per arm?
Note: this works with all three forms: |_, |/, and :door.
Apropos of nothing, you can do some interesting things with aliases:
> =<  a  |_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this  --
[0 0]
> =<  ~(a . [1 2])  |_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this  --
(crash)

As long as they're "read only":
> |_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this  --
<1.syg {{* *} {our/@p now/@da eny/@uvJ} $~ our/@p <22.pss 9.vbi 8.slw 118.dat 209.nlg 55.wea 117.wvl 33.xnr 2.wxc $149>}>
> |_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this(+< *^)  --
(crash)

Wait, writing through aliases isn't working?  this is not a perfect
substitute for +>?
On Tue, Mar 7, 2017 at 4:05 PM, Joe Bryan<EMAIL_ADDRESS>wrote:

appreciates your platonic expression of affection
So wet/dry used to be for the whole core, not per arm?
Note: this works with all three forms: |_, |/, and :door.
Apropos of nothing, you can do some interesting things with aliases:

=<  a  |_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this  --
[0 0]
=<  ~(a . [1 2])  |_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this  --
(crash)

As long as they're "read only":

|_  ^  +*  this  ?>(=(0 +<-) .)  ++  a  +<:this  --
<1.syg {{* } {our/@p now/@da eny/@uvJ} $~ our/@p <22.pss 9.vbi 8.slw 118.dat 209.nlg 55.wea 117.wvl 33.xnr 2.wxc $149>}>
|_  ^  +  this  ?>(=(0 +<-) .)  ++  a  +<:this(+< *^)  --
(crash)

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/365#issuecomment-284902174, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALyAdOwkuX2nzY9gxQmk9c4uMQHYiP4ks5rjfDTgaJpZM4MWLp4
.

Writing through an alias wrapped in an assertion doesn't work. But a simple alias works just fine -- see the generator above.
I was just messing around to see how far I could push aliases ...

takes a closer look oh yeah, that ain't gonna work.
On Tue, Mar 7, 2017 at 4:14 PM, Joe Bryan<EMAIL_ADDRESS>wrote:

Writing through an alias wrapped in an assertion doesn't work. But a
simple alias works just fine -- see the generator above.
I was just messing around to see how far I could push aliases ...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/365#issuecomment-284903762, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALyAeRORWq6--k3KUG8QwOORqz2CzFCks5rjfLSgaJpZM4MWLp4
.

This works now. I'm still unable to |reset, but I can boot a fake-zod from a brass pill (after applying #433).

@joemfb This PR no longer seems relevant for hoon 143. If you agree, we should probably close this.

Well, it worked on %143 -- the current conflict is just twig -> hoon.
I think it'd be a useful feature, particularly in nested state machine cores. I've needed to update subtrees of parent samples without dedicated faces, and had to use lark or local =*. Do you think having all of ++, +-, +=, and +*` is one too many?

I think the motivating example in the PR is unconvincing, since all three of those can be ++ without problem; however if the intention is to use the syntax purely for non-this writes, I can see it being useful. I'd still have one alias per +*, for consistency with the other arm syntaxes.

Ideally though the "faceless subtrees of parent samples" would just get optional names in situ, through some kind of moldable syntax sugar for =>(^=(face foo) =,(, .)), instead of them being declared inside the core itself.

It's stretching the metaphor of a core a little but I think it's a good
idea.  Any particular reason to restrict it to |_?
On Thu, Nov 30, 2017 at 4:36 PM, Joe Bryan<EMAIL_ADDRESS>wrote:

Well, it worked on %143 -- the current conflict is just twig -> hoon.
I think it'd be a useful feature, particularly in nested state machine
cores. I've needed to update subtrees of parent samples without dedicated
faces, and had to use lark or local =. Do you think having all of ++, +-,
+=, and+` is one too many?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/365#issuecomment-348366348, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALyAdMAqvYpDi7UOe4MH1dSr_isFC21ks5s70oBgaJpZM4MWLp4
.

@ohAitch, new ames uses exactly the pattern I have in mind (also here and here).
Situational names are definitely an improvement over raw lark, and these core aliases would probably overkill in some cases. =,(, .) is a very cool idea, although maybe too powerful -- I could see it being a little hard to trace back and find the source of limbs.
@cgyarvin, I just figured there wasn't much of a need in |%, or the one-armed variants. Rank paternalism on my part. (This in new ames suggests a use case ...)
Mostly, I just want to support and encourage 1) the regular use of names 2) in consistent patterns. I don't know if this is optimal syntax, but I think it's an improvement.

I also have to wonder about:
?:(?=({$ash *} q.a) [-.q.a -] [-.q.a -])

see #366


add clickedShowMore helper

The type of this PR is: chore
Description
Add a minimal helper and example for clickedShowMore
PR Checklist (tick all before merging)

[x] If I've added a new file to the tree I've exported it from the common index.ts
[x] I've added comments with examples for any new interfaces or helpers and ensured that they're in the docs
[ ] No platform-specific terminology has been used outside of click and tap (platform is infered by the DB storing events)

The existing interface uses context_page_owner... rather than owner but leaving as is, I believe the columns are pre-existing from the old schema.

:rocket: PR was released in v1.68.3 :rocket:

:rocket: PR was released in v1.68.3 :rocket:


Match Syntax Scoring

Thanks for the cool NLP library!
Just out of curiosity, does your .match have some kind of score?  No, the .match() stuff is pass/fail, but that's a neat idea, what applications were you thinking of?
you can see it's pretty central to how things work internally, so it's pretty precious about speed. But it'd be neat to try fuzzy-matching of some kind, lemme know what you have in mind

Hi Spencer. yeah I reviewed the code and it is a pass/fail kind.
My use case is working around AWS Lex. I have this set of "missed utterances" and want to assign them automatically to an existing intent where the utterance matches with the missed one given a certain score.
For now I am using string_score for the scoring criteria.


AttributeError when running example script

Hello, I am running into the following error after installing the pipeline and testing it on the example data.  Any insights into what might be causing the issue?  Thanks!
-bash-4.1$ python 3DChromatin_ReplicateQC.py run_all --metadata_samples examples/metadata.samples --metadata_pairs examples/metadata.pairs --bins examples/Nodes.w40000.bed.gz --outdir examples/output
Traceback (most recent call last):
File "3DChromatin_ReplicateQC.py", line 709, in
main()
File "3DChromatin_ReplicateQC.py", line 705, in main
command_methodscommand
File "3DChromatin_ReplicateQC.py", line 683, in run_all
split_by_chromosome(metadata_samples,bins,re_fragments,methods,outdir,running_mode,subset_chromosomes)
File "3DChromatin_ReplicateQC.py", line 156, in split_by_chromosome
subp.check_output(['bash','-c','mkdir -p '+outdir+'/scripts'])
AttributeError: 'module' object has no attribute 'check_output'

Hi, nevermind, I figured it out, I was using the wrong distro of anaconda/python.  However I ran into a new error while running the example data:
/netapp/sali/msong/libraries/anaconda2/bin/python: can't open file '/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/software/hifive/bin/find_quasar_transform': [Errno 2] No such file or directory
It seems that for the HiFive pipeline here (https://github.com/bxlab/hifive/tree/master/bin), there are no longer bin files for "find_quasar_transform" and "find_quasar_quality_score"?
In fact, I think in this commit (https://github.com/bxlab/hifive/commit/c65a675733513221402f8a90731e03461a2ddca3#diff-c1111bd512b29e821b120b86446026b8) they combined those two functionalities into the "hifive" binary.

Update--okay, so deleting the "hifive" folder under "software" and replacing it with an older version of hifive before the most recent commits fixed the issue, but now there's a new bug:
2426265 validly-mapped read pairs loaded.
2426265 total validly-mapped read pairs loaded. 223753 valid bin pairs
Parsing fend pairs... Done  2426265 cis reads, 0 trans reads
Filtering fends... Removed 1204 of 2487 bins
Traceback (most recent call last):
File "/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/software/genomedisco/reproducibility_analysis/plot_quasar_transform.py", line 68, in
main()
File "/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/software/genomedisco/reproducibility_analysis/plot_quasar_transform.py", line 47, in main
data1 = load_data(infile1, chroms, resolutions)
File "/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/software/genomedisco/reproducibility_analysis/plot_quasar_transform.py", line 24, in load_data
dist = infile['dist.%s.%i' % (chrom, res)][...]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/netapp/sali/msong/libraries/anaconda2/lib/python2.7/site-packages/h5py/_hl/group.py", line 169, in getitem
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5o.pyx", line 190, in h5py.h5o.open
KeyError: "Unable to open object (Object 'dist.21.40000' doesn't exist)"
Not sure if this is a consequence of the slights differences in "hifive" version, but any insight would be appreciated.  Thanks!

Hi,
I apologize for the delays.
Indeed, hifive has gone through some changes and re-factoring, and these have been incorporated into 3DChromatin_ReplicateQC.
Please re-clone this repository (3DChromatin_ReplicateQC) and re-run the install script.
Then, QuASAR should be functional.
Let me know if you still get errors.

Hello,
I reinstalled anaconda2 as well as 3DChromatin_ReplicateQC from scratch, and am running into this error with the example still:
3DChromatin_ReplicateQC | Tue Dec 12 00:27:31 2017 | Splitting nodes chr21
/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/examples/output/scripts/split/nodes/chr21.nodes.split_files_by_chromosome.sh
3DChromatin_ReplicateQC | Tue Dec 12 00:27:31 2017 | Splitting HIC001 chr21
/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/examples/output/scripts/split/HIC001/chr21.HIC001.split_files_by_chromosome.sh
3DChromatin_ReplicateQC | Tue Dec 12 00:27:31 2017 | Splitting HIC002 chr21
/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/examples/output/scripts/split/HIC002/chr21.HIC002.split_files_by_chromosome.sh
3DChromatin_ReplicateQC | Tue Dec 12 00:27:32 2017 | Splitting nodes chr22
/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/examples/output/scripts/split/nodes/chr22.nodes.split_files_by_chromosome.sh
3DChromatin_ReplicateQC | Tue Dec 12 00:27:32 2017 | Splitting HIC001 chr22
/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/examples/output/scripts/split/HIC001/chr22.HIC001.split_files_by_chromosome.sh
3DChromatin_ReplicateQC | Tue Dec 12 00:27:33 2017 | Splitting HIC002 chr22
/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/examples/output/scripts/split/HIC002/chr22.HIC002.split_files_by_chromosome.sh
Tue Dec 12 00:27:34 2017
running QuASAR-QC | computing QC for HIC001
examples/output/scripts/QuASAR-QC/HIC001/HIC001.QuASAR-QC.sh
Quasar file(s) are not of the correct filetype.
Traceback (most recent call last):
File "/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/wrappers/QuASAR/quasar_split_by_chromosomes_qc.py", line 29, in
main()
File "/netapp/sali/msong/libraries/3DChromatin_ReplicateQC-master/wrappers/QuASAR/quasar_split_by_chromosomes_qc.py", line 10, in main
scorefile = open( sys.argv[1], 'r')
IOError: [Errno 2] No such file or directory: 'examples/output/results/qc/HIC001/QuASAR-QC/HIC001.QuASAR-QC.scores.txt'
Traceback (most recent call last):
File "3DChromatin_ReplicateQC.py", line 758, in
main()
File "3DChromatin_ReplicateQC.py", line 754, in main
command_methodscommand
File "3DChromatin_ReplicateQC.py", line 734, in run_all
get_qc(metadata_samples,methods,parameters_file,outdir,running_mode,concise_analysis,subset_chromosomes,timing)
File "3DChromatin_ReplicateQC.py", line 491, in get_qc
quasar_qc_wrapper(outdir,None,samplename,running_mode,timing)
File "3DChromatin_ReplicateQC.py", line 307, in quasar_qc_wrapper
run_script(script_comparison_file,running_mode)
File "3DChromatin_ReplicateQC.py", line 235, in run_script
output=subp.check_output(['bash','-c',script_name])
File "/netapp/sali/msong/libraries/anaconda2/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['bash', '-c', 'examples/output/scripts/QuASAR-QC/HIC001/HIC001.QuASAR-QC.sh']' returned non-zero exit status 1
Do you have any insight into why QuASAR is still having an error?  Or what command would you use to run the script with all the modules except QuASAR?
Thanks!
Michael

Hi Michael,
I am checking this to figure out how to fix it.
To answer your second question, you can set "--methods GenomeDISCO,HiC-Spector,HiCRep" to not run QuASAR. However, QuASAR is a very good method as well, so I will get back asap about how to fix the above error.
Thanks,
Oana

I also get the same issue. What else can I try, if I might ask?
(/data/CCRBioinfo/dalgleishjl/3DChromatin_ReplicateQC_env/) bash-4.1$ python 3DChromatin_ReplicateQC.py qc --methods GenomeDISCO,HiC-Spector,HiCRep --metadata_samples examples/metadata.samples --outdir examples/output
Mon Dec 18 17:52:32 2017
running QuASAR-QC | computing QC for HIC001
examples/output/scripts/QuASAR-QC/HIC001/HIC001.QuASAR-QC.sh
Quasar file(s) are not of the correct filetype.
Traceback (most recent call last):
File "/gpfs/gsfs2/users/CCRBioinfo/dalgleishjl/3DChromatin_ReplicateQC/wrappers/QuASAR/quasar_split_by_chromosomes_qc.py", line 29, in
main()
File "/gpfs/gsfs2/users/CCRBioinfo/dalgleishjl/3DChromatin_ReplicateQC/wrappers/QuASAR/quasar_split_by_chromosomes_qc.py", line 10, in main
scorefile = open( sys.argv[1], 'r')
IOError: [Errno 2] No such file or directory: 'examples/output/results/qc/HIC001/QuASAR-QC/HIC001.QuASAR-QC.scores.txt'
Traceback (most recent call last):
File "3DChromatin_ReplicateQC.py", line 758, in
main()
File "3DChromatin_ReplicateQC.py", line 754, in main
command_methodscommand
File "3DChromatin_ReplicateQC.py", line 491, in get_qc
quasar_qc_wrapper(outdir,None,samplename,running_mode,timing)
File "3DChromatin_ReplicateQC.py", line 307, in quasar_qc_wrapper
run_script(script_comparison_file,running_mode)
File "3DChromatin_ReplicateQC.py", line 235, in run_script
output=subp.check_output(['bash','-c',script_name])
File "/data/CCRBioinfo/dalgleishjl/3DChromatin_ReplicateQC_env/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['bash', '-c', 'examples/output/scripts/QuASAR-QC/HIC001/HIC001.QuASAR-QC.sh']' returned non-zero exit status 1
(/data/CCRBioinfo/dalgleishjl/3DChromatin_ReplicateQC_env/) bash-4.1$

I will close this issue. Please re-open it if you still have issues.


Spike Panopto Integration

Any italic text should be deleted from the final Pull Request text, including this line
Description
Please include a summary of the change and which issue is fixed. Please also include relevant
motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as
expected)
[x] Documentation (update or new)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration
Testing Checklist:

[x] Tested in latest Chrome
[x] Tested in latest Safari
[x] Tested in latest Firefox

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have requested a review from ... on the Pull Request

Please fix linelint and prettier errors.


feat(events): bodyValidator and queryValidator event arguments

🔗 Linked issue
unjs/nitro#2244
❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

These changes introduce bodyValidator and queryValidator options to defineEventHandler. These can be passed validation functions, such as a Zod schema's parse method, to validate request bodies and query parameters and type them in the handler.
export default defineEventHandler({
  bodyValidator: z.object({
    id: z.string()
  }).parse,
  handler: async (event) => {
    const { id } = await readBody(event);
    // id is inferred as a string now
  }
});

This will also allow Nitro to type the body and query options of $fetch since the required types of the body and query can now be inferred from the event handler, opening the door to...
await $fetch('/foo', {
  method: 'POST',
  body: {}, // <-- body inferred as { id: string } from the Zod Schema, so this is a TS error
});

See the associated pull request to Nitro: unjs/nitro#2405
📝 Checklist

[x] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Thanks for PR. Mind you we had been working on a more generic proposal validate key on eventhandler (https://github.com/unjs/h3/pull/496). I'm more leaned towards supporting single validate rather than type specific separation (for body, query, params, etc)

I feel this solution is elegant for a few reasons:

No need for mutating the event or having type assertions anywhere (return event as EventWithValidatedBody)
Developers can easily type the body/query however they want whether its with a schema library or other function or if they have a type already defined somewhere else, they can just import it and pass it to defineEventHandler as a type argument.

type FooBody = {
  id: string;
}

export default defineEventHandler<FooBody>()

Defining the type in either of these ways automatically makes readBody and getQuery return the correct type.
On the reverse side, it's simple to infer the required body/query type from the handler if the developer needs to. h3 could also expose utility types to simplify it even further (e.g. HanderBody<T extends EventHandler>)

import fooHandler from 'api/foo';

type FooBody = fooHandler extends EventHandler<EventHandlerRequest<infer Body>> ? Body : never;

No need to introduce a new function to h3
No real performance impact for projects that do not want to use this feature
In Nitro, it is now possible to make sure the route params, method, body, and query params in a fetch all match up. Entering one will narrow the others and give the corresponding auto-complete.
Keep in mind that most handlers will not have both a required body and query params, so having a generic validate function with extra steps to specify whether it validates the body or the query may not be as simple as having a dedicated option for each case.


Unable to build Android project after upgrading to 16.3.5 - Java.Interop version mismatch

Describe the bug
Was on ReactiveUI 16.2.6. When upgrading to 16.3.5 this error is given when compiling/building the Android project.

Error CS1705: Assembly 'ReactiveUI' with identity 'ReactiveUI, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' uses 'Java.Interop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' which has a higher version than referenced assembly 'Java.Interop' with identity 'Java.Interop, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' (CS1705) (Droid)

The .NET standard projects that have been upgraded to ReactiveUI 16.3.5 compile fine.
Steps To Reproduce

Upgrade from ReactiveUI 16.2.6 to 16.3.5 in an Android project.
Compile Android project
Wish I could provide more context but not sure what the error even means. Please let me know what I could do to help diagnose.

Environment

OS:  Android
Target Framework: 11.0 (R) API level 30
ReactiveUI Version: 16.3.5
IDE: VS 8.10.11 on MacOS 11.6

Weird one. Will have to look into it in the morning.

@glennawatson Appreciate it!
Attached an isolated project that somewhat reproduces the issue. Interestingly it's only a warning in the isolated project. In our main project we have the same warning and a separate build error with the same main message as the warning. We do not have warnings as error turned on.
ReactiveUI16.3.5Test.zip

Same issue here, thanks for reporting this one @ryanholden8 👍
I will keep an eye on this thread and thanks in advance for looking into it!

Related to https://github.com/xamarin/xamarin-android/issues/6438

@ryanholden8 I'm applying his fix to our build which should eliminate the newer Java.Interop being applied.

@glennawatson You da the man, thank you!

Ok, false start but the real fix should be there now.  in 16.3.9

Hi @glennawatson ,
Thanks again for looking into this issue so fast!
I just updated the ReactiveUI packages to v16.3.9, but unfortunately this didn't fix it for me, the error is still there.
@ryanholden8 , did the update fix it in for you in your project or do you also still have the error?

I will reach out to the visual studio team and see what more we can do. Seems like the official fix is only days away anyway

@gerardvanderkruijs Updating to 16.3.10 did seem to work ok. I also upgraded to 16.3.10 in the isolated project I attached above and the warning did go away after updating to 16.3.10.

Ah nice @ryanholden8 ! Gonna check it tomorrow, thanks for the update.
Also thank you again @glennawatson 🙌


Finalize 0.9.3

[x] Closes #1545
[x] I am familiar with the contributing guidelines
~[ ] Tests added~
~[ ] Updates entries in docs/sphinx/source/reference for API changes.~
[x] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
~[ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.~
[x] Pull request is nearly complete and ready for detailed review.
[x] Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Ready for review!

OK, I'll merge this and then proceed with making and deploying the release.


API should be exposed as a module

Both the parser and generator should be exposed as a module for cases where you wouldn't want to use as a CLI tool or install globally.
In addition, this may introduce breaking changes on how to handle piping from stdin or command-line args.

Just an API idea:
import { createAOFStream } from 'waoffle'

const aof = createAOFStream()

aof.pipe(fs.createWriteStream('test.aof'))

// either pipe to aof or write manually
aof.write('set a b')
aof.end()


Update and rename writing-a-case-study.md to preparation-of-a-case-st…

…udy.md
I believe preparation is defining this checklist better than writing. Also I would love to see a checklist of writing a case study. @ezgibalci

…udy.md
I believe preparation is defining this checklist better than writing. Also I would love to see a checklist of writing a case study. @ezgibalci

I agree :)


Extract atomic-u64 crate

Problem
solana_program::atomic_u64 blocks moving a bunch of modules out of solana-program
Summary of Changes
Move atomic_u64 to its own crate and put "For internal use only" in the description since it was not a public module

Meh, crates are free and the only constraint this imposes is that someone who wants to do something different in the future will have to make a new crate instead of bloating this one

Meh, crates are free and the only constraint this imposes is that someone who wants to do something different in the future will have to make a new crate instead of bloating this one

Fair enough, but the word "bloating" is a stretch for a crate that's 38 lines long.


ModuleNotFoundError: No module named 'flask'

Dynaconf requires Flask by default, is that by mistake or is it intentionally?
 File "/app/.heroku/python/lib/python3.6/site-packages/dynaconf/__init__.py", line 5, in <module>
   from dynaconf.contrib import FlaskDynaconf
 File "/app/.heroku/python/lib/python3.6/site-packages/dynaconf/contrib/__init__.py", line 1, in <module>
   from dynaconf.contrib.flask_dynaconf import FlaskDynaconf, DynaconfConfig  # noqa
 File "/app/.heroku/python/lib/python3.6/site-packages/dynaconf/contrib/flask_dynaconf.py", line 2, in <module>
   from flask.config import Config
ModuleNotFoundError: No module named 'flask'

Should not require Flask by default

#42 must fix that

Fixed and will work later today on the new release


not clear where fromFinishedLaunching is set to true

It is not clear where value of fromFinishedLaunching is set to true for ProcessNotification. In my app I always end up in ReceivedRemoteNotification, even when I press notification and app is activated, so I get notification shown to the user twice.

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

ID: 45afd17d-e909-ccd9-01c3-f746bdf406a2
Version Independent ID: d2c8cc69-5a37-4c73-d48b-9c058cf4595e
Content: Send push notifications to Xamarin using Azure Notification Hubs
Content Source: articles/notification-hubs/xamarin-notification-hubs-ios-push-notification-apns-get-started.md
Service: notification-hubs
GitHub Login: @sethmanheim
Microsoft Alias: sethm

I could make it work by adding this code to FinishedLaunching:
        NSDictionary remoteNotificationValues = null;

        if (options != null)
        {
            foreach (var kv in options)
            {
                var key = kv.Key;
                if ((NSString)key == UIApplication.LaunchOptionsRemoteNotificationKey)
                    remoteNotificationValues = kv.Value as NSDictionary;
            }
        }

        if (remoteNotificationValues != null)
            ProcessNotification(remoteNotificationValues, true);

However, still question how to handle when app is in background vs. when app is in foreground.

Thanks for the update @maxal1917. We are currently investigating and will update you shortly.

@sethmanheim do you have any insight on this?

Hello @maxal1917, thanks for you patience. From my understanding based on the document:
When a device receives a remote notification, iOS calls the ReceivedRemoteNotification method. Incoming message JSON is converted into an NSDictionary object, and the ProcessNotification method extracts values from the dictionary and sends them to the Xamarin.Forms MainPage instance. The ReceivedRemoteNotifications method is overridden to call ProcessNotification as shown in the following code:

public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo)
{
    ProcessNotification(userInfo, false);
}

void ProcessNotification(NSDictionary options, bool fromFinishedLaunching)
{
    // make sure we have a payload
    if (options != null && options.ContainsKey(new NSString("aps")))
    {
        // get the APS dictionary and extract message payload. Message JSON will be converted
        // into a NSDictionary so more complex payloads may require more processing
        NSDictionary aps = options.ObjectForKey(new NSString("aps")) as NSDictionary;
        string payload = string.Empty;
        NSString payloadKey = new NSString("alert");
        if (aps.ContainsKey(payloadKey))
        {
            payload = aps[payloadKey].ToString();
        }

        if (!string.IsNullOrWhiteSpace(payload))
        {
            (App.Current.MainPage as MainPage)?.AddMessage(payload);
        }

    }
    else
    {
        Debug.WriteLine($"Received request to process notification but there was no payload.");
    }
}

I understand that, but this is not what my comment was about.

Upon further review we feel your feedback would be best received by the doc author to determine if an update to the current doc is necessary, or to create a new doc if they align with the feedback.

@maxal1917 Thank you for the feedback and sorry for the delay. Can you please clarify what the documentation issue is with this article? After discussing with the engineering team, we are not sure why you are asking for this information. Thank you!

@sethmanheim Hello! I might be projecting my bias because I've just run into this issue, but the problem is that nowhere in the doc is a case shown where fromFinishedLaunching might become true.
In the sample code, it's always false:
public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo)
{
ProcessNotification(userInfo, false);
}
That means that when the app is running in the foreground or background, the notification will always be processed in "if (!fromFinishedLaunching)"
void ProcessNotification(NSDictionary options, bool fromFinishedLaunching)
{
...
//If this came from the ReceivedRemoteNotification while the app was running,
// we of course need to manually process things like the sound, badge, and alert.
if (!fromFinishedLaunching)
{
...
}
}
But there is no explanation as to how to handle the notification payload if the app is in killed state.
So what is the condition that sets fromFinishedLaunching to true in order to account for the killed state behavior?
For instance, when my app is not running (i.e. fromFinishedLaunching is true), I want to trigger the same event I'm triggering in "if (!fromFinishedLaunching)".
Thank you!

@maxal1917 Thank you for the feedback and sorry for the delay. Can you please clarify what the documentation issue is with this article? After discussing with the engineering team, we are not sure why you are asking for this information. Thank you!

Sorry, I missed the question. The problem with documentation is your sample. @silviuo is clarified it with exactly same problem. In your sample you have the condition
//If this came from the ReceivedRemoteNotification while the app was running,
        // we of course need to manually process things like the sound, badge, and alert.
        if (!fromFinishedLaunching)

But I couldn't get value of fromFinishedLaunching when getting this notifications while app was running, or ever, for that matter.

We have made some updates to this article, so if this is still an issue please open a new GitHub issue and we will investigate. Thank you! #please-close


Is there any EC key import and ECSDA with secpk1 example ?

I was trying to generate EC key with secpk1, but when I try to sign with this key,  the signature I got was not signed by secpk1 curve ???
  public static byte[] sign(byte[] message, PrivateKey key, String signingAlgorithm)
      throws SignatureException, InvalidKeyException, NoSuchAlgorithmException,
      NoSuchProviderException {
    java.security.Signature sig = java.security.Signature.getInstance(signingAlgorithm, "Cavium");
    sig.initSign(key);
    sig.update(message);
    return sig.sign();
  }

there is no any place for us to chose sign curve  ???
any example of secpk1 sign ??

The curve is chosen during the key generation. In this sample, you can find the curve here:
    // Use the SECP256k1 curve to sign and verify.
    KeyPair kp = new AsymmetricKeys().generateECKeyPair(CaviumECGenParameterSpec.K256, "ectest");

Is there a specific error you are getting while running this sample?

when I try to use following function with EC private key :
   String keyhex = "a551a5a55ffb2d7225660962b193cbda57b911e2d0fcedaf29d6d7c1f1e71***";
   BigInteger priv = new BigInteger(keyhex, 16);
   String message = "dfdd7f15cb3c2f890d3174c197556ff4ac1b4a981cd2f5e56952f5f71e4d9772";
  public static byte[] sign(byte[] message, PrivateKey key, String signingAlgorithm)
      throws SignatureException, InvalidKeyException, NoSuchAlgorithmException,
      NoSuchProviderException {
    java.security.Signature sig = java.security.Signature.getInstance(signingAlgorithm, "Cavium");
    sig.initSign(key);
    sig.update(message);
    return sig.sign();
  } ```.      I got following signature:<PHONE_NUMBER>f1d1fdd33ef62975024536431899c4202d7c522225274b69724f8ced1755a19d02204b3af8884b25d8756bfefbe9cb31fe96b57f3975d6a8204cf58c412039883b5f.   The length is not correct and also it should not start with prefix 30xxxxx.   I use another method to do ECSDA  and I got following signature, which is correct.
57992f252ccd34cc9213efae413cf70609c3cca1f6afdac90bad5f75709ee5a65dd29db9b3034ce9bf487e28ba119c3ce8f90f9a7bc3da3f330e14861806b55c00.   Obviously, the length of second signature is shorter than the first one.

The signatures returned by sign are DER encoded, which is where the 0x30 byte is coming from. It looks like both Cavium and BouncyCastle are returning this format. The signatures look like what I'd expect:
30 45         // DER encoded block of 0x45 bytes
02 21         // integer, 0x21 bytes (r value)
00 f1 d1 fd d3 3e f6 29
75 02 45 36 43 18 99 c4
20 2d 7c 52 22 25 27 4b
69 72 4f 8c ed 17 55 a1
9d

02 20        // integer, 0x20 bytes (s value)
4b 3a f8 88 4b 25 d8 75
6b fe fb e9 cb 31 fe 96
b5 7f 39 75 d6 a8 20 4c
f5 8c 41 20 39 88 3b 5f

I can't see how you are importing your keyhex value into the hsm. So I can't be sure of that code.
I'm not sure which method you are using to generate your signature. It looks like your signature is 41 bytes, which seems like a valid signature without the DER encoding. You should be able to decode the JCE signature and get a signature which matches your other method.

Can you show a example of decoding der<PHONE_NUMBER>f1d1fdd33ef62975024536431899c4202d7c522225274b69724f8ced1755a19d02204b3af8884b25d8756bfefbe9cb31fe96b57f3975d6a8204cf58c412039883b5f string ??   like get string like 57992f252ccd34cc9213efae413cf70609c3cca1f6afdac90bad5f75709ee5a65dd29db9b3034ce9bf487e28ba119c3ce8f90f9a7bc3da3f330e14861806b55c00 .  Can you give some code ??  thanks

30 45         // DER encoded block of 0x45 bytes
02 21         // integer, 0x21 bytes (r value)
00 f1 d1 fd d3 3e f6 29
75 02 45 36 43 18 99 c4
20 2d 7c 52 22 25 27 4b
69 72 4f 8c ed 17 55 a1
9d

02 20        // integer, 0x20 bytes (s value)
4b 3a f8 88 4b 25 d8 75
6b fe fb e9 cb 31 fe 96
b5 7f 39 75 d6 a8 20 4c
f5 8c 41 20 39 88 3b 5f
```    our signature is a combination of  r + s + v (r(32 bytes)+s(32 bytes)+v(1 bytes)) ,  where r and s is 32 bytes and v is only one byte. From above signature string,  s value is  0x20bytes (r value) -- 32 bytes , while  0x21 bytes (r value) -- 33 bytes. Any idea about v, the first byte of r value is v ???

I'm not sure what v is in your signature, but the confusion may be around the leading 0x00 in the r value. In a DER integer the first bit determines whether the number is signed or not. Since the first byte in this r value is 0xf1 (or any byte that has 1 as the first bit), a leading 0x00 byte must be included to show that this value is an  unsigned integer. Stripping that 0x00 byte should be done by your DER decoder (BouncyCastle I assume?). This will leave you with a 32 byte r value and 32 byte s value.
I can't provide code as I'm not sure of your implementation, so my code will certainly be wrong. I would recommend BouncyCastle's ASN1 decoder, because I think you are already using BouncyCastle? This will expose the DERIntegers, which could then be concatenated to get your preferred format.


Uncaught TypeError: Cannot read property 'apply' of undefined

Getting a console error when trying to do manual linkClick tracking.
tracker.js:24 Uncaught TypeError: Cannot read property 'apply' of undefined

Any ideas?

Turning off respectDoNotTrack fixed it.

Are you saying that trackLinkClick errors if respectDoNotTrack is on?

My mistake. That wasn't the actual problem. The documentation is just incorrect, and I was inputting the parameters in the wrong order.
https://github.com/snowplow/snowplow/wiki/2-Specific-event-tracking-with-the-Javascript-tracker#trackLinkClick
The targetUrl needs to come first. I.e.
snowplow_name_here('trackLinkClick', 'http://www.example.com', 'first-link', ['class-1', 'class-2'], '', 'this page', optionalCustomContexts);

Ah great, migrated over for a doco fix


validiate the packaged version in the release folder is identifical to the npm one

closed with
https://github.com/SAP/chevrotain/issues/117


Add Native Support For guava and JDK 8 Optionals

Optional<Boolean> data
in swagger is
"data": {
    "present": true
  }

but should be
"data": true

How to fix this?

Your ObjectMapper doesnt match with the one that's configured with springfox. If you're using jackson and java 8 you need the jackson java 8 module.

It can be also because of the springfox.documentation.spi.service.contexts.Defaults register java.util.Optional as general class (non WildcardType). So the rule doesn't match the model property.
To correct it add to Doclet configuration custom rule (pay attention to the types!!!)
AlternateTypeRules.newRule(typeResolver.resolve(java.util.Optional.class, springfox.documentation.schema.WildcardType.class), springfox.documentation.schema.WildcardType.class)

something like this
@Autowired
private TypeResolver typeResolver;

@Bean
public Docket swaggerDocket() {
  final Docket docket = new Docket(DocumentationType.SWAGGER_2)
    .select()
       .apis(RequestHandlerSelectors.any())
       .paths(PathSelectors.any())
    .build()
    .alternateTypeRules(AlternateTypeRules.newRule(typeResolver.resolve(Optional.class, WildcardType.class), WildcardType.class))
    .useDefaultResponseMessages(false);
    return docket;
}


Added CSV reader to aleph entities extractor

Ha, this is getting a little simpler and more explicit! But I don't quite get what's going on in CSVQuery yet, it seems there's still some stuff we may not need: we really only need 1 table for CSV loading, not multiple files. So you probably don't actually need the CSVQueryTable (or, for that matter, the whole refs mechanism for table aliasing). That also means you don't have to open it twice (but you could, if you wanted to do explicit encoding detection!).
Some random suggestions:

Perhaps instead of table_location we can name it a little more explicitly, say csv_url?
It seems you are opening the CSV both with requests (good!) and open() (weird). When you open it with open you do expandvars (which is ultra-cool for passwords) but you don't do it for requests. Perhaps that could be more coherent?

Okay, so we just want to be able to point it at a single URL and load one
table? I was trying to provide the ability to load from local files as
well, that's why the call to open(). That's also why I made the path/uri
variable ambiguous :). But I'll update it according to your suggestions.
On Sun, Mar 12, 2017 at 11:25 AM, Friedrich Lindenberg <
<EMAIL_ADDRESS>wrote:

Ha, this is getting a little simpler and more explicit! But I don't quite
get what's going on in CSVQuery yet, it seems there's still some stuff we
may not need: we really only need 1 table for CSV loading, not multiple
files. So you probably don't actually need the CSVQueryTable (or, for that
matter, the whole refs mechanism for table aliasing). That also means you
don't have to open it twice (but you could, if you wanted to do explicit
encoding detection!).
Some random suggestions:

Perhaps instead of table_location we can name it a little more
explicitly, say csv_url?
It seems you are opening the CSV both with requests (good!) and
open() (weird). When you open it with open you do expandvars (which is
ultra-cool for passwords) but you don't do it for requests. Perhaps
that could be more coherent?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pudo/aleph/pull/171#issuecomment-285951871, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYUmNQV_wd257XixyCO_KjumjJL8jAyrks5rlA6EgaJpZM4MaVJ9
.


Resque detection throw exception for EVA kerbals

reported here, related to resource gift probably

fixed, but need testing


Cant connect C++ debugger to interactive python session anymore

Environment data

VSCode  1.60.0 on MacOS Big Sur 11.5.2
remote SSH server is an OpenSuse 15.2
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Description
I develop a python extension in C++.
For debugging I start my python script with vscode using the interactive cell mode, attach the C++ debugger from the ms-vscode.cpptools extension to the process and then start calling cells. This worked until some weeks ago (though I do not know which extension versions I used back then).
Now the C++ debugger crashes as soon as I try to run some python cell when it is attached. With an error message in the debug output console:
Stopping due to fatal error: InvalidOperationException: No handler registered for request of type 'setPydevdSourceMap'!

This message does not look like it was supposed to be sent to the cpp debugger at all, but seems to be some internal message from debugpy. I did not run the cell with the python debugger though.
I first created this issue in the vscode-cpptools repository: microsoft/vscode-cpptools#8115
Expected behaviour
I should be able to connect the C++ debugger from the microsoft/vscode-cpptools extension and use breakpoints etc in my C++ module, even when running it in the interactive python process started by vscode.
Actual behaviour
The attached C++ debugger crashes as soon as the next interactive python cell is run from vscode with the message:
Stopping due to fatal error: InvalidOperationException: No handler registered for request of type 'setPydevdSourceMap'!

Steps to reproduce:

Install the extensions  ms-python.python and ms-vscode.cpptools.
create a python script

# %% first run this cell to start the python process and get its PID
import os
print(os.getpid())
# %% after attaching the debugger run this cell to trigger the error
print("test")

execute the first cell of the python script in vscode interactively
attach you debugger to the printed pid using the following launch.json entry

        {
            "name": "(lldb) Attach Debugger",
            "type": "cppdbg",
            "request": "attach",
            "program": "/proc/${command:pickProcess}/exe",
            "processId": "${command:pickProcess}",
            "MIMode": "lldb",
        },

try executing the second cell after the debugger attached

My guess is that your kernel is ipykernel 6. Ipykernel 6 supports debugging itself and it may be detecting the attach of the C++ debugger and thinking it's talking to a python debugger.

python3 -c "import ipykernel;print(ipykernel.__version__)"

tells me that I have version 5.5.5 installed. Also a pip install --upgrade says that it is the current newest version in pip.

Attaching the C++ debugger to a Python executable is not something that our extension can fix or adjust. I would recommend reopening the C++ issue.

This is, indeed, a custom DAP message that debugpy handles. However, it is not sent by debugpy; it is sent by vscode-jupyter:
https://github.com/microsoft/vscode-jupyter/blob/38962619f8952b06b19b7932ec4380786e3c9ee9/src/client/datascience/jupyter/jupyterDebugger.ts#L94-L106
Thus the bug is that vscode-jupyter sends the message to the incorrect debug session - the C++ one, in this case.
And I'm not sure whether this has anything to do with the C++ session debugging the same process as the Python session. VSCode has a workflow where the user can start multiple unrelated but concurrent debug sessions. If this issue also repros in that scenario, it is a genuine bug - unrelated debug sessions shouldn't interfere with each other.
(Note, however, that even with that fix, it still wouldn't work, because debuggers generally need to assume full control of the process being debugged. So having two of them trying to independently control the same process will result in all kinds of breakage, possibly unreported.)


Implement the same UI as web app generator

Let's move the projects closer together and start by implementing the same UI as the web app generator. If you can take it from the web app repository and reuse it 100% would be best even.
Check out how it works at: https://opev-webgen-dev.herokuapp.com

Fixed via #521


Update react.md - Fix icons in usage for IonButton

problem: when running usage example code, icons does not appear inside buttons
added: import { star } from 'ionicons/icons';
changed: name='star' --> icon={star}

Pull request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[X] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

when running usage example code, icons does not appear inside buttons
What is the new behavior?

Icons now appears correctly

added: import { star } from 'ionicons/icons';
changed: name='star' --> icon={star}-

Does this introduce a breaking change?

[ ] Yes
[X] No

Thanks for the PR! Please run npm run build in order to compile the API changes.

Thanks @gkaneto, I'll go ahead and fix the build errors and get this merged.


while getting assets from path it returns null asset's List if this "PhotoManager.setIgnorePermissionCheck(true)" used before requesting assets and permission is managed by other plugin.

Version
2.7.1
Platforms
iOS
Device Model
any
flutter info
[✓] Flutter (Channel stable, 3.13.2, on macOS 13.5.1 22G90 darwin-arm64, locale en-IN)
    • Flutter version 3.13.2 on channel stable at /Users/urvish/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff5b5b5fa6 (9 days ago), 2023-08-24 08:12:28 -0500
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/urvish/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.81.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.5.1 22G90 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 116.0.5845.140

How to reproduce?
handle permission by other plugin then use "PhotoManager.setIgnorePermissionCheck(true)" and then request paths and then request assets from that path.
if we do not put this line "PhotoManager.requestPermissionExtend()" even after permission is granted using permission_handler then the save methods return null every time.
Logs
No response
Example code (optional)
No response
Contact
No response

You need to provide your minimal usage example, including what permission you've requested with permission_handler, what permission you've declared in your plist, etc.


Wyre

Summary
A description of the changes proposed in the pull request.
Fixes #number
Checklist

[ ] Change is small and easy to review (please split big changes into multiple PRs)
[ ] Change is consistent with architecture
[ ] Change is consistent with test architecture
[ ] Change is consistent with naming conventions
[ ] New code is covered with tests
[ ] Tests related to old code are updated
[ ] Documentation is up to date with changes

I think iframe should cover all screen like ramp

Should test it on mainnet

Mainnet
Payment session does start fine, but I didn't complete the flow
Apple pay
They do have a dropdown in their interface to select between Apple Pay and Debit Card.
Apple Pay should be working on Apple Devices

We have delay between apeearing Wyre iframe and clicking pay:

But i think we can add some window in jarvis (wyre initialization) in next pr

I think something got messed up during rebasing. There are files that don't belong here

Notice message is missing


Utilize pgp.as.format in migrate.js

Atm a user could inject arbitrary SQL into a resource file, and it will execute. No good!

Closing as resolved, even though there's some more work to do to prevent sql injections. The cleanup isn't related to pgp.as.format


Clicking in a non-terminal control area should not steal focus from the terminal control

Your Windows build number:  (Type ver at a Windows Command Prompt)

18.0.18362.53

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

start terminal
hit ctrl+t to bring up tabs
click in the space between second tab and "+" and attempt to drag window
window won't drag, but now input is blocked
right click in window area
input is now unblocked.

This is unlikely to occur when the tabs are NOT inlined with the title bar. It is very likely to happen when tabs ARE inlined, as the free space seems like empty title bar area.

What's wrong / what should be happening instead:

Either allow window dragging from tabs bar (when inlined), or don't allow window dragging but don't lock up input. Maybe a prompt or tooltip text might help guide the user if dragging is disabled from this area.

Well that certainly shouldn't be happening.
The part of the tab bar without tabs definitely shouldn't steal focus, so that's certainly a bug.
When the tabs are in the titlebar, that area should be able to drag the window around, but unfortunately there's an existing bug with XAML Islands that prevents that from working.
I'll use this issue to primarily track the first problem, as the second is an external issue.

I don't know if this should be a new bug, but it is certainly related to this. I went spelunking for this specific bug, so I'll leave a comment here and then file a new one. When you open Terminal on a screen with standard DPI, the gap between the drop down and the minimize is small, so your dragable surface is small. When you move Terminal to a monitor with an HDPI / 150% scale, that gap goes away entirely and you have to use the small gap between the client area and the minimize button... since you can't use the empty space to drag the terminal. Resolving #528 will mostly solve the problem I'm filing, but I think there is an issue with how the controls are rendered on different scaled monitors.

Side note: on some of those other Windows Apps ... (like Edge) they make the new tab buttons stick right to the right side of the visible tab, so anything to the right of that is dragable. ❤
Also, they make all the tabs the same width so you don't get the whole window taken up when all you have is a couple of PowerShell instances ... but they show up as "C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe" 🤨

@Jaykul  I'm with you on the making the '+' bind to the right of the tabs (need more drag space). Same width is a bit tougher since you have an option to set the title to be the directory you are in, so can see this as optional.

In addition to tooltips, the active tab could be full width. I'm not sure about hover.
@jaykul @talvish

@Talvish not sure why it matters how wide the text is. It doesn't seem to matter to my browsers...

@Jaykul looking at my browser right now, if I had as many tabs open in Terminal, every one would say "C:\Wind," and that's about it. To fix this, we really need big-endian directory structures: "System32\Windows\C:" (or is that little?), or maybe we need to start reading RTL. I think this ship may have sailed. Maybe justify the directory name on the working directory, so you'd see something like C:\Windows[Syste]m32, where the part in the square brackets is the part which is windowed on the tab when it gets small.

I think we've gotten rid of a bunch of ways this might have happened, so I'm gonna close this out for now. Thanks for playing!

Version: 1.12.10982.0
Clicking on empty space on tab bar activates window, but does not activate current terminal (keyboard input does not go to terminal).


How to combine all jar into one

Thanks for great libs. I wonder how to create 1 jar file only from gradle build
Thank you so much

That's not needed or recommended for FXLauncher. There are plugin that does that, but that won't be usable together with FXLauncher :)

Thank for your answers. So I know how to do next with my project.


Creates stage2 compatibility, test suite runs through

It might be broken with stage1 right now as @byteSwap() has a new signature now. This is sadly not recoverable with a comptime switch as astgen will find that

I'm currently using this branch as a base to fix all self-hosted compiler issues. Thanks for the initial PR :) https://github.com/zigimg/zigimg/tree/stage2_compat

Closing it because it is now a proper branch in here


Run bundle update before running jekyll build

Also added a few more comments

Dupe of #2348 ?
Reminder of a couple things we talked about:

I believe you'll need to actually run gem install bundler first for this to work
This is being run on the archives, which I don't believe have Gemfiles to use
If we do upload Gemfiles to the archive branches, and want to use bundler to install separate Ruby environments for each build, you'll want to run bundle exec jekyll build instead of just jekyll build when building the archives.


When using faster-whisper, how to automatically split sentences

This is my code:
segments, info = model.transcribe(videos_directory_path + "/" + file, beam_size=5, without_timestamps=True)
    with open(srt_directory_path + "/" + filename_without_extension + ".csv", "w") as output_file:
        for index, segment in enumerate(segments, start=1):
            output_file.write("%s\n\n" % segment.text)
    print(f"Parse {file} done!-------{index}/{length}")

If I want the stored content in segment.text to be a complete sentence, how should I configure the parameters?

This is my code:
segments, info = model.transcribe(videos_directory_path + "/" + file, beam_size=5, without_timestamps=True)
    with open(srt_directory_path + "/" + filename_without_extension + ".csv", "w") as output_file:
        for index, segment in enumerate(segments, start=1):
            output_file.write("%s\n\n" % segment.text)
    print(f"Parse {file} done!-------{index}/{length}")

If I want the stored content in segment.text to be a complete sentence, how should I configure the parameters?

Don't think you can solve that by changing parameters...
But this is how I do more or less the same thing:
      import pysbd

      sentencer = pysbd.Segmenter(language="en", clean=True)
      usable_segment_text = ''
      left_over_text = ''
      for segment in all_segments:

         # break into sentences and gather the complete
         # sentences (text in a segment is not always a complete
         # sentence). The complete sentences will be written out
         # The incomplete sentence will be kept and tacked on to
         # the next segment.
         segment_text = left_over_text + ' ' + segment.text.strip() if len(left_over_text) > 0 else segment.text.strip()
         left_over_text = '' # left over added to segment_text so clear it
         sentences = sentencer.segment(segment_text)
         for sent_text in sentences:
            # this is a "complete" sentence
            if len(sent_text) > 0 and sent_text[-1] in ('.', '?', '!', ':'):
               usable_segment_text += ' ' + sent_text if len(usable_segment_text) > 0 else sent_text

            # a sentence that isn't finished gets saved to be added to the next
            # sentence. If we haven't recorded a segment yet (first leftover since
            # last output), we record the segment as the segment start timestamp
            # to be used when outputing the text.
            else:
               left_over_text = sent_text
               start_segment = segment if start_segment == None else start_segment

         # we accumulated complete sentences
         if len(usable_segment_text) > 0:
            YOUR CODE TO WRITE TO YOUR CSV FILE HERE
            usable_segment_text = '' # text was written out, clear it

      ## no more segment, write out anything left in leftover.
      if len(left_over_text) > 0:
         YOUR CODE TO WRITE TO YOUR CSV FILE HERE


Use it outside VSCode

Hi,
We want to use this LS for our in house editor together with the CSS and JSON language servers. Now where is instruction how to do that. We want to use it over Sockets not STDIO.
Sorry if it is already documented somewhere. I could not find it!

@mtangoo The HTML language service is just a library that you can add as a node modules, for example in a language server. You probably are looking HTML language server. The code for the server is here and is part of the VSCode build that you can download.
We don't offer the HTML server as a node module. That's requested here: https://github.com/microsoft/vscode/issues/77582
But there are others that do that.

Closing as the service is available to be used outside.

@aeschli  thank you!

Hi,
I am using the https://github.com/microsoft/monaco-editor in a custom, browser IDE. I need to build the Outline of an HTML file but I don't see how to do it.
I can do it for JavaScript files using code like this:
const getWorker = await monaco.languages.typescript.getJavaScriptWorker();
const worker = await getWorker();
const outlineItems = await worker.getNavigationBarItems(uri);

However, I don't see the monaco.languages.html module exposes an API to get such information. I am using the monaco.d.ts file provider by the Monaco source code (I don't see the monaco.d.ts file provided in this repo exposes too much API neither)
What can I do?


SVR is very slow

I'm submitting a

[x] bug report.

Current Behaviour:
SVR in src/svm/svr.rs takes too long to run
Expected Behaviour:
the doc example and the test should return in subsecond time
Steps to reproduce:
Try to run svr_fit_predict()

consider using Convex Optimization libraries: totsu or clarabel


Error in Sentences When Creating Relations Object

I am currently trying to generate relations object. When I try to I get an error involving the Sentences object that I pass in to the Relations object. Is there any way to solve this and is this an error in how CoreNLP parses the text file.
---------------------------------------------------------------------------
UnicodeEncodeError                        Traceback (most recent call last)
<ipython-input-2-0ba8a803a9a3> in <module>()
----> 1 Relations = LevelsRelation_Extraction.generateRelations(_filename= filename)
      2 return Relations

/Users/cameronbaab/Documents/Marker-Reader4/LevelsRelation_Extraction.py in generateRelations(_filename)
     10     #Create Relations Objects
     11
---> 12     possiblePairs_BM_L = LevelsRelation_BiomarkerLevels_Extraction.generateRelations(sentences)
     13     possiblePairs_BM_TS =  LevelsRelation_BiomarkerTestSet_Extraction.generateRelations(sentences)
     14     possiblePairs_BM_MT = LevelsRelation_BiomarkerMeasurementType_Extraction.generateRelations(sentences)

/Users/cameronbaab/Documents/Marker-Reader4/LevelsRelation_BiomarkerLevels_Extraction.pyc in generateRelations(_sentences)
     20
     21     # Create Relations Object
---> 22     possiblePairs = Relations(sentences, CandidateExtractor_BM, CandidateExtractor_L)
     23
     24     return possiblePairs

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/snorkel/snorkel.pyc in __init__(self, content, matcher1, matcher2)
    277       self.e1 = matcher1
    278       self.e2 = matcher2
--> 279     super(Relations, self).__init__(content)
    280
    281   def __getitem__(self, i):

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/snorkel/snorkel.pyc in __init__(self, C)
    145         self._candidates = cPickle.load(f)
    146     else:
--> 147       self._candidates = list(self._extract_candidates(C))
    148     self.feats = None
    149     self.feat_index = {}

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/snorkel/snorkel.pyc in _extract_candidates(self, sents)
    166   def _extract_candidates(self, sents):
    167     for sent in sents:
--> 168       for cand in self._apply(sent):
    169         yield cand
    170

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/snorkel/snorkel.pyc in _apply(self, sent)
    283
    284   def _apply(self, sent):
--> 285     xt = corenlp_to_xmltree(sent)
    286     for e1_idxs, e1_label in self.e1.apply(sent):
    287       for e2_idxs, e2_label in self.e2.apply(sent):

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree(s, prune_root)
     86
     87   # Parse recursively
---> 88   root = corenlp_to_xmltree_sub(s, dep_parents, 0)
     89
     90   # Often the return tree will have several roots, where one is the actual root

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    118   for i,d in enumerate(dep_parents):
    119     if d == rid:
--> 120       root.append(corenlp_to_xmltree_sub(s, dep_parents, i+1))
    121   return root
    122

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    118   for i,d in enumerate(dep_parents):
    119     if d == rid:
--> 120       root.append(corenlp_to_xmltree_sub(s, dep_parents, i+1))
    121   return root
    122

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    118   for i,d in enumerate(dep_parents):
    119     if d == rid:
--> 120       root.append(corenlp_to_xmltree_sub(s, dep_parents, i+1))
    121   return root
    122

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    118   for i,d in enumerate(dep_parents):
    119     if d == rid:
--> 120       root.append(corenlp_to_xmltree_sub(s, dep_parents, i+1))
    121   return root
    122

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    118   for i,d in enumerate(dep_parents):
    119     if d == rid:
--> 120       root.append(corenlp_to_xmltree_sub(s, dep_parents, i+1))
    121   return root
    122

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    118   for i,d in enumerate(dep_parents):
    119     if d == rid:
--> 120       root.append(corenlp_to_xmltree_sub(s, dep_parents, i+1))
    121   return root
    122

/Users/cameronbaab/Documents/Marker-Reader4/snorkel/treedlib/treedlib/structs.pyc in corenlp_to_xmltree_sub(s, dep_parents, rid)
    108     for k,v in filter(lambda t : type(t[1]) == list and len(t[1]) == N, s.iteritems()):
    109       if v[i] is not None:
--> 110         attrib[singular(k)] = ''.join(c for c in str(v[i]) if ord(c) < 128)
    111
    112     # Add word_idx if not present

UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 0: ordinal not in range(128)

Output of printing the sentences object:
sentences.txt
Text File Used:
AGR2_blood_biomarker.txt
Sentences:
sentences.pickle.txt
Parsing File:
docParser.py.zip

Hey @cmorbaab, unfortunately this looks like an encoding error with your input text... can you try scrubbing it to remove all non-ascii characters (would this negatively impact any application you have in mind?)


Disable pip cache in Dockerfile

It doesn't do much of a difference, but still saves 1MB in the pip install layer.
Without --no-cache-dir:
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
4a889526f024        23 seconds ago      /bin/sh -c #(nop)  ENTRYPOINT ["ouroboros"]     0B
fc1bbdc7d8d9        23 seconds ago      /bin/sh -c pip install .                        11.2MB
f52b1822a574        29 seconds ago      /bin/sh -c #(nop) WORKDIR /app                  0B
ff68c7715a92        29 seconds ago      /bin/sh -c #(nop) COPY dir:b7a988c2253999fea…   21.4kB

With --no-cache-dir:
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
fc05a396dea7        4 seconds ago       /bin/sh -c #(nop)  ENTRYPOINT ["ouroboros"]     0B
4cfeeb1816ee        4 seconds ago       /bin/sh -c pip install --no-cache-dir .         10.2MB
1d752126f43d        10 seconds ago      /bin/sh -c #(nop) WORKDIR /app                  0B
8ea197c11b15        11 seconds ago      /bin/sh -c #(nop) COPY dir:8a8a1d6ff52947334…   21.4kB

Codecov Report

Merging #50 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #50   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           7      7
  Lines         149    149
=====================================
  Hits          149    149

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 81f2749...512e9bb. Read the comment docs.

Hey 1mb is 1mb!
Thanks!


Playwright test fail in todo-nodejs-mongo-aks

Describe the issue:
Playwright test fail.  The reason for the error is that REACT_APP_WEB_BASE_URL is not stored in .env after the resource deployment is successful.
The error message as follows:

Repro steps:

Run command azd login.
Run command  bash ./test-templates.sh -t todo-nodejs-mongo-aks -b pr/1630

Environment:
OS: Windows desktop, Codespaces, MacOS desktop, Linux desktop, Devcontainer in VS Code, WSL.
Template: todo-nodejs-mongo-aks.
Azd version: 0.6.0-beta.3-pr.2605958  (commit https://github.com/Azure/azure-dev/commit/be4d3dffd5ca305657aa0c6d9c64911c44caef63)
Expected behavior:
playwright test can success.
@rajeshkamal5050 for notification.

The internal security policies applied to our azure subscriptions is causing this to fail.  The ingress routes are only accessible from within corpnet and not exposed publicly.
Playwright tests will pass under the following conditions:

Run from a machine withing corpnet
Deploy AKS template to an external Azure Subscription that doesn't contain these network security policies.


Proposal: hide explore menu

In some situations, the explore page may not be needed.
It should be very useful to have a config settings to hide at all the explore menu entry.
Something very similar to (for example) "DISABLE_REGISTRATION", we may have a "DISABLE_EXPLORE_MENU".
Thank you!

Are you aware of the custom templates feature ?
With that you could easily hide the menu (but the page would still
be available by having a direct URL).

This sounds pretty interesting.
Can you give some hints where to looks for more details?

On Mon, Apr 10, 2017 at 02:09:00AM -0700, Yusef Maali wrote:

This sounds pretty interesting.
Can you give some hints where to looks for more details?

Uhm, I see the documentation is scarce:
https://docs.gitea.io/en-us/customizing-gitea/
It would be great if you could help improving it:
https://github.com/go-gitea/docs/blob/master/content/doc/advanced/customizing-gitea.en-us.md
Basically you copy any template from the templates/ directory
into the custom/templates/ directory, and modify as you see fit.
For your case it'd be the templates/base/head.tmpl to be copied
and modified.
Looking forward for your contribution to add a template section to
the documentation ! :)

sure!
I need to pass through a Golang tutorial, then I will contribute for sure!

I surely think it's worth passing the Golang tutorial, but will
note you don't need Golang expertise to provide documentation
patches (it's just text, markdown if you wish)

Of course, you're right. I thought I needed to run git from its sources. I'm seeing the compiled version is enough.

This would be a needed feature. User case: Non admin users should not be able to see other users and other repositories. Not sure, but hiding the explore page (also sub pages) could solve that.

@Spenhouet just hiding menu won't solve that. Access should be controlled also when opening repository page and for that there is private repository setting. If it is set other users won't be able to see that repository

Was this added? Seems like a sensible feature to have.


CocoaPods please!

I'd be cool to also add CocoaPods support. I done this implementation myself last month for my library. Just follow this post and this checklist.

Listen to this podcast and you will know why there is not Carthage and CocoaPods integration. It's a deliberate choice.
https://overcast.fm/+F7xlmp_-w/33:18

https://cocoapods.org/pods/Swish

Awesome! 😄


DR copies not explained

The FAQ page (https://learn.microsoft.com/en-gb/microsoft-365/syntex/backup/backup-faq) talks about DR copies

Why don’t DR copies suffice for my backup?
DR copies protect only the current state of content, not prior points in time. Microsoft 365 Backup provides additional benefit by giving you a way to restore data back to a healthy state in the past with fast RTO to with short RPO intervals.

It isn't really clear what is meant by this. On the overview page there is 1 mention of BCDR. I think:

Expand the acronym to Disaster Recovery
Explain what a DR copy is, as it is to ambiguous - I'm assuming you are talking about the DR that the M365 has is place under it's current Service Description, not anything the customer has done or a feature of the new M365 Backup service

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

ID: 28d71470-f267-75df-06ce-bb07724b6475
Version Independent ID: 28d71470-f267-75df-06ce-bb07724b6475
Content: Frequently asked questions about Microsoft 365 Backup (Preview) - Microsoft Syntex
Content Source: microsoft-365/syntex/backup/backup-faq.md
Service: microsoft-syntex
GitHub Login: @chuckedmonson
Microsoft Alias: chucked

@thommck -- Thank you for your inquiry. I'll follow up with the product team and update accordingly. Thanks again.

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!

Disaster recovery information added.


🔧 Update template

This pull request merges the current state of the template used here into this project so that it is up to date.

:tada: This PR is included in version 1.1.1-develop.15 :tada:
The release is available on:

v1.1.1-develop.15
GitHub release
Docker container (sebbo2002/fitness-first-ical-proxy:1.1.1-develop.15)
v1.1.1-develop.15

Your semantic-release bot :package::rocket:


Unable to select DateCells

Version Number: 7.1.8
Description
Unable to select some cells after selecting a range and scroll between months
Steps To Reproduce

Select a range
try to extend that range (implemented in my code) OR scroll to another month and try to select new range
Some cells are not selectable, and didSelectDate is not triggered at all, some other cells in the same month are fine.

Expected Behavior

Simply DateCell selected/ trigger didSelectDate

Additional Context
I've tried disabling allowsMultipleSelection and isRangeSelectionUsed, this allowed me to do single date selection without issues, enabling those parameters will cause those bugs
I've added lots of code inspired of your sample range selection; the calendar now is able to select one single range, and edit each extremity
below you can see how selection is done, the more I go through pages, the more I'm unable to select cells.

I already implemented shouldSelectDate, and it's working as intended, the problem is none of the delegate methods are called, already debugged them, this happening for some cells as I said
func calendar(_ calendar: JTAppleCalendarView, shouldSelectDate date: Date, cell: JTAppleCell?, cellState: CellState) -> Bool {
        let startDate = Date().lastTwelveMonth.startOfMonth
        let endDate = Date()
        if startDate < date && endDate > date {
            return true
        }
        return false
    }

I've already inspected answers like in this thread, same issue as him https://github.com/patchthecode/JTAppleCalendar/issues/1109#issue-477593930

taking a look.
I'll try to reproduce this. Will keep you posted

Do you have a sample app demonstrating this issue? It would help me a lot.

Yes oc, I will try to isolate the code and send it to you in max 24h

Here is my sample code,
Keep in mind that the calendar should select only one single range, allow user to change start and end date by selecting first From or To cells at the bottom, then select new start or end date, my sample implements already those features
Thanks for the library and your valuable help :)
NPSCalendar.zip

I took a look at your code.
I think your longPress gesture that is attached to the calendar is eating up all the taps.
You can try this to confirm ->
Try selecting on your calendar. And when selection does not work any more like you have shown, go to this function and put a break point inside it
@objc func didStartRangeSelecting(gesture: UILongPressGestureRecognizer) {

then head back to the calendar date that is not being selected. Then do a Longpress gensture.
You will see that this function gets called.
I think the longpress gesture is consuming the taps before it gets to the calendar.
Let me know.

I took a look at your code.
I think your longPress gesture that is attached to the calendar is eating up all the taps.
You can try this to confirm ->
Try selecting on your calendar. And when selection does not work any more like you have shown, go to this function and put a break point inside it
@objc func didStartRangeSelecting(gesture: UILongPressGestureRecognizer) {

then head back to the calendar date that is not being selected. Then do a Longpress gensture.
You will see that this function gets called.
I think the longpress gesture is consuming the taps before it gets to the calendar.
Let me know.

Thanks for your quick reply,
I already got the same idea and tested the longPress, also removed it completely, same issue,
the longPress is not depending of the standard collectionView actions, I've tested it again today as you described it
However, when I removed the longPress, and tried to select cells with issue, the action is retained by the scroll of the collection or the scene

ok, i'll now start investigating the didSelect function you wrote.
On first glance of it, it looks more complex than it needs to be (im not sure yet, but it appear so).
Just to confirm, you are just trying to a regular 2 tap range selection right?
--> that is, select 1st date, select 2nd date, and then all the dates in the middle should be selected?

Ok. I am very puzzled by this bug.
Still investigating.
I have stripped every thing out of your project. Its like UICollectionView refuses to receive any more taps. Checking on this some more.

ok, i'll now start investigating the didSelect function you wrote.
On first glance of it, it looks more complex than it needs to be (im not sure yet, but it appear so).
Just to confirm, you are just trying to a regular 2 tap range selection right?
--> that is, select 1st date, select 2nd date, and then all the dates in the middle should be selected?

Yes you are right

Ok. I am very puzzled by this bug.
Still investigating.
I have stripped every thing out of your project. Its like UICollectionView refuses to receive any more taps. Checking on this some more.

I even used the Debug View Hierarchy, thought maybe some invisible views are appearing above the calendar, maybe my UIView on my DateCell is causing this issue, but no, everything seems OK

The puzzling thing is. I do not do anything weird under the hood.
It is just a barebones UICollectionView.
I am still investigating this

The puzzling thing is. I do not do anything weird under the hood.
It is just a barebones UICollectionView.
I am still investigating this

It looks like the calendar is loosing delegate configuration, which I already investigated, but, do you have any code in the library that cancel it in any time ?

I gave up trying to debug your code.
It had too many Dispatch.async  too hard to track.
re-wrote the code to something simpler.
Is this bug still happening in this code?
NPSCalendar.zip

I gave up trying to debug your code.
It had too many Dispatch.async too hard to track.
re-wrote the code to something simpler.
Is this bug still happening in this code?
NPSCalendar.zip
If it is resolved, then i suspect it is something happening in all those closures.

For a single range selection, it's working, but I will add the missing code to update cells on the bottom, and the possibility to edit beginning and ending of the range on the fly, and will update you,
As I said, this problem is occurring when I try to change the extremity of the range

Thanks. Will wait.

Hello patchthecode
I can confirm now that this issue is gone, I've added missing behavior to this sample, still needs more work to complete a total functioning app, now I'm able to :

select single range
select which extremity to edit (From or To) and stretch the range or reduce it

Now, this will takes me a little more time to finish it, due to customer tasks priorities, but I will post here the final sample for whom needs it
It turned out that I've abused of using thread management, Dispatch blocks, however, selecting a big range (1 year) now takes up to 2 seconds, but no memory increasing

Yea, i wish i knew where the bug was happening though, but asyc closures are hard to debug.
Glad you got it working.
In terms of big range selection. I guess your comment here https://github.com/patchthecode/JTAppleCalendar/issues/787#issuecomment-531171020 didnt work?

closing.
If big range selection is another issue, then lets tracke it on #787

Yea, i wish i knew where the bug was happening though, but asyc closures are hard to debug.
Glad you got it working.
In terms of big range selection. I guess your comment here #787 (comment) didnt work?

Hello patchthecode,
My comment in the other thread was a part of the solution, second part was to block certain code to be excuted by filtering it with .userInitiated, on of your answers in another thread helped me discovering it,
keeping triggering delegate method for didSelectCell will create a big memory consumption that can easily rise to over 200Mb (350Mb on simulator from 40Mb) for a one year range selection.


correct referred img link in set-up-your-wallet.md

Pull request checklist
Use the following template to make sure your PR fits the ConsenSys documentation standard.
Before creating the PR
Make sure that:

[ ] You've read the contribution guidelines.
[ ] You've previewed your changes locally.

Describe the change

Issue fixed

Impacted parts

For content changes:

[ ] Documentation content
[ ] Documentation page organization

For tool changes:

[ ] Build and QA tools
[ ] Node dependencies and JavaScript
[ ] GitHub integration

After creating your PR and tests have finished
Make sure that:

[ ] You've fixed any issues raised by the tests.
[ ] You've previewed your changes on Vercel below.

Hi,
What was the issue is here?
Your change breaks the image

Hi,
What was the issue is here? Your change breaks the image

Hi Emily,
I apologise for the confusion, maybe it is just a problem on my side.
I thought the relative path of that image was incorrect because I saw the file is actually under "main/static/img" where the relative path should be then "../static/img/metamaskwallet.png"
If it was orginally correct, please reject this PR :)


support Google App Engine's URL fetch service

From<EMAIL_ADDRESS>on August 30, 2010 22:51:50
What steps will reproduce the problem? 1. use Google's App Engine SDK
2. install couchdb-python into your new project
3. import couchdb
2. attempt to connect to an external couchdb server with couch = couchdb.Server(' https://couchdb.example.com/' )
3. exception is raised What is the expected output? What do you see instead? Google has their own url fetch service in their app engine. < https://code.google.com/appengine/docs/python/urlfetch/overview.html >. Other than that, they appear to prevent applications from making external socket connections. It appears to me that since this code uses couchdb/http.py, it won't work on Google's app engine. Here's the stacktrace:
Traceback (most recent call last):
File "/home/amoore/dev/google_appengine/google/appengine/ext/webapp/init.py", line 511, in call
handler.get(*groups)
File "/home/amoore/dev/emradmin/main.py", line 13, in get
userdb = couch['user']
File "/home/amoore/dev/emradmin/lib/python2.5/site-packages/couchdb/client.py", line 137, in getitem
db.resource.head() # actually make a request to the database
File "/home/amoore/dev/emradmin/lib/python2.5/site-packages/couchdb/http.py", line 377, in head
return self._request('HEAD', path, headers=headers, **params)
File "/home/amoore/dev/emradmin/lib/python2.5/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/home/amoore/dev/emradmin/lib/python2.5/site-packages/couchdb/http.py", line 239, in request
resp = _try_request_with_retries(iter(self.retry_delays))
File "/home/amoore/dev/emradmin/lib/python2.5/site-packages/couchdb/http.py", line 196, in _try_request_with_retries
return _try_request()
File "/home/amoore/dev/emradmin/lib/python2.5/site-packages/couchdb/http.py", line 211, in _try_request
if conn.sock is None:
AttributeError: HTTPConnection instance has no attribute 'sock'
If urllib, urllib2 or httplib were used instead, I think this would work. What version of the product are you using? On what operating system? python 2.5.2, Google App Engine, linux
Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=147

Hello, I don't know if this issue is still valid but I am having a similar issue only when trying to access a view's results, like this:
def count_users(client_id, collection=COLLECTION_CLIENT):
    """Counts the users for a given client: <client_id>."""
    couch = couchdb.Server(COUCHDB_URL)

    db = couch[collection]

    view = db.view('client/users')

    results = view[client_id]

    return len(results.rows)

The error I get is the following (excerpt):
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/client.py", line 1196, in rows
    self._fetch()
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/client.py", line 1182, in _fetch
    data = self.view._exec(self.options)
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/client.py", line 1048, in _exec
    _, _, data = _call_viewlike(self.resource, options)
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/client.py", line 1107, in _call_viewlike
    return resource.get_json(**_encode_view_options(options))
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/http.py", line 510, in get_json
    return self._request_json('GET', path, headers=headers, **params)
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/http.py", line 535, in _request_json
    data = json.decode(data.read().decode('utf-8'))
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/http.py", line 153, in read
    self.close()
  File "/base/data/home/apps/s~liu-passport-api-qa/1.390979779811766718/lib/couchdb/http.py", line 162, in close
    self.resp.read(CHUNK_SIZE)
DeadlineExceededError: The overall deadline for responding to the HTTP request was exceeded.

I'd prefer not to query the database via urlfetch, is easy as well but, why bother? I just like the function as it is, simple, readable and clean :+1:

I don't really have access to GAE, so I can't work on a fix. If you come up with a fix that is sufficiently low-complexity/well-contained, I wouldn't mind merging it.

@vl4dt I just bumped into the same issue.
Did you get to fix it? Or have a clue about the problem and which part should be fixed?

@vl4dt @djc it seems the problem described here is a duplicate of #224.
And<EMAIL_ADDRESS>pointed out the right problem : an infinite loop within http:ResponseBody::close. I'll continue on their issue.


Adjusts that have to be done after the functional tests

@pedro-martins, @GabrielBrascher can you review this before we merge?
These mistakes were caught during functional tests. They are a consequence of the refactoring we did in order to prepare everything to be opened.

LGTM based on code review.

Would you like to merge now? or do we wait for @pedro-martins ?

Although I don't see any issue in this PR, we could wait a bit more.
At least until the version gets closer to launch (closer than it already is); if so, we merge with just one LGTM.

@rafaelweingartner, I saw that you remove the @params in the JavaDocs, isn't good improve the params description instead of remove them?
Ty.

@pedro-martins yeah it would be better if we improved those @param and other links descriptions. But, we were only using the auto generated by eclipse that does not add anything to the doc.
For now, I thought removing them would be better, then letting some text that does not add anything to the documentation.

@rafaelweingartner Ok, if this will be improved in the future, I have found no more issues with the changes, LGTM.


Schema Support

cedar-go does not have parity, as noted in the README, with cedar-rust with regard to loading and including the schema in authorization requests. It would be nice to see cedar-go have support for this, as it enables additional use cases, such as the one below.
Use Case:
In order to express Action Hierarchy, where a Role contains one or more actions, a cedar schema needs to be loaded and used in the evaluation of policies. For example, the following schema allows policies to permit the SuperAdmin action, and have the PARC reference BillingAdmin and the outcome be Allow.
{
  "Role": {
    "entityTypes": {},
    "actions": {
      "SuperAdmin": {
        "appliesTo": {
          "principalTypes": [],
          "resourceTypes": []
        }
      },
      "MinimalAccountAccess": {
        "memberOf": [
          {
            "id": "SuperAdmin"
          }
        ],
        "appliesTo": {
          "principalTypes": [],
          "resourceTypes": []
        }
      },
      "Admin": {
        "memberOf": [
          {
            "id": "SuperAdmin"
          }
        ],
        "appliesTo": {
          "principalTypes": [],
          "resourceTypes": []
        }
      },
      "AdminReadOnly": {
        "memberOf": [
          {
            "id": "Admin"
          }
        ],
        "appliesTo": {
          "principalTypes": [],
          "resourceTypes": []
        }
      },
      "BillingAdmin": {
        "memberOf": [
          {
            "id": "Admin"
          }
        ],
        "appliesTo": {
          "principalTypes": [],
          "resourceTypes": []
        }
      },
      "BillingAdminReadOnly": {
        "memberOf": [
          {
            "id": "BillingAdmin"
          },
          {
            "id": "AdminReadOnly"
          }
        ],
        "appliesTo": {
          "principalTypes": [],
          "resourceTypes": []
        }
      }
    }
  }
}

Hi @tpaulus - we'll leave this issue open and update it once we know more about the timeline for Schema support


Custom Option Alert Box in Facilities Section Not Opening After Login

Note
This is an introduced issue.
Current behavior
The alert box does not open, and the user is unable to access the options.
Expected behavior
The custom option alert box should open without any issues.
Steps to reproduce the issue
Launch the app.
Log in with valid credentials.
Navigate to the Facilities section of 'Shipping'.
Click on the custom option alert box.
Environment details
App version : v3.1.2
App environment : Uat
Additional information
https://jam.dev/c/119f1c33-fbac-4916-8311-e5d2b7da2bf3

Issue verified and working fine in release v3.1.3. Hence, closing it.
https://jam.dev/c/a1d78bd7-7b19-4156-b880-1a363dc76cf5


Unify starting local cluster with attaching to existing cluster

There are two scenarios.

There is an existing Ray cluster, and a script wants to attach to that cluster.
There is no existing Ray cluster, and the script needs to start one.

Scripts should be able to handle both cases with little or no modification. With this PR, you use the ray.init command for both cases. For case 1, you do something like
ray.init(scheduler_address="<IP_ADDRESS>:10001", objstore_address="<IP_ADDRESS>:20001", driver_address="<IP_ADDRESS>:30001")

For case 2, you do something like
ray.init(start_ray_local=True, num_workers=2)

This PR also removes scripts/shell.py.

context is unintuitive. I would call the two methods ray.connect and ray.initialize, respectively. If you must call them the same thing (which I do not recommend), call both of them initialize.

Why the start_ray_local=True? What would it mean to say start_ray_local=False? It seems like the default should be to start something locally.
Also, (why) do you need to pass all 3 addresses? If this is for a driver, what does objstore_address mean (which object store)? If this is for the worker, why does it need the driver address? It seems weird to be able to pass in everything simultaneously since it seems like that should never be needed.

To answer the questions:
"start_local" is in contrast to "attach to an existing cluster". For starting a cluster, we have a separate script, cluster.py.
For attaching to a cluster, in the future we will have a etcd/zookeeper instance running that will assign these addresses, so we will only need a single IP address. For now it makes sense to keep the current behavior I think, which is just passing in the three addresses that are needed.

We should make it really clear that no matter if a local ray instance is started, or if we connect to an existing cluster, the program is exactly the same. That's the reason why having only one method is preferable. I agree that naming is difficult and maybe ray.initialize or ray.init is preferable to ray.context.

Hm, I don't understand why the naming of the method implies anything about the rest of the program being the same/different. However, I would say that the most "correct" thing to do here is to make a Ray class that can be constructed by the user in different ways, so that the result is always a Ray instance. That also has the benefit of not having global state/singleton, which is a good thing.

Fixed "context -> init".

(y)