[libiconv] Build error

Copy issue body from D:/umum/vcpkg/installed/vcpkg/issue_body.md
building libiconv:x64-windows-static failed
I don't think it's a space error, but what on earth is it? Where can I show the error log?
log.txt
vcpkg install tesseract:x64-windows-static > log.txt

@Ran-gok, Thanks for posting this issue, there is no error log in the error log you provided. please see #30604 for how to report an issue.

I saw the video.
But what kind of program is that? I need to know what it is so I can use the command like in the #30604 video.
Can you tell me where to start?

@JonLiu1993 , I saw the video. But what kind of program is that? I need to know what it is so I can use the command like in the #30604 video. Can you tell me where to start?

@Ran-gok, the program is Visual Studio Code.

@JonLiu1993 , I'm sorry, but that's not very descriptive.
There is a VS2022 version, but it doesn't have a category like Video.
Or at least have some sort of order to the posts...
Where do you get the copy and paste text for videos?
git pull <-what is this...?
./bootstrap-vcpkg.bat(windows) <-- where am I typing this?
There may be some newbies who don't know anything.
Please explain in detail.

@Ran-gok, All you need to do is send me a screenshot of the error message you reported.

@JonLiu1993 ,

이렇게요?

@Ran-gok, please try use command git pull and .\bootstrap-vcpkg.bat then try again.

@newholder, Please provide your error log.

fatal, is this correct?
No response.

@newholder, Please provide your error log.

I'm sorry @JonLiu1993 , I ragequit so hard I deleted my project along with the log and vcpkg installation. The good news is I get it to work by not using the vcpkg installed through Visual Studio Installer, but by cloning the repo directly and setting up the appropriate env variables manually. @Ran-gok , try uninstalling just the vcpkg in the Visual Studio Installer and install it from cloning the repo, like in the get started guide on the website. Only installation using the clone method has the .\bootstrap-vcpkg.bat and can use git pull

@Ran-gok, please try @newholder's suggestion, I can't reproduce your error on my local machine.

@newholder , Can you explain the operation method in detail? I am a complete beginner.
For example, 1->2->3 and so on. There is vs2022. But I don't know where or what to do. Can you explain in detail?

@newholder, Please provide your error log.

I'm sorry @JonLiu1993 , I ragequit so hard I deleted my project along with the log and vcpkg installation. The good news is I get it to work by not using the vcpkg installed through Visual Studio Installer, but by cloning the repo directly and setting up the appropriate env variables manually. @Ran-gok , try uninstalling just the vcpkg in the Visual Studio Installer and install it from cloning the repo, like in the get started guide on the website. Only installation using the clone method has the .\bootstrap-vcpkg.bat and can use git pull

@newholder , Can you explain the operation method in detail? I am a complete beginner.
For example, 1->2->3 and so on. There is vs2022. But I don't know where or what to do. Can you explain in detail?

@Ran-gok,
Step 1: Clone the vcpkg repo

git clone https://github.com/Microsoft/vcpkg.git

Make sure you are in the directory you want the tool installed to before doing this.

Step 2: Run the bootstrap script to build vcpkg

.\vcpkg\bootstrap-vcpkg.bat

Install libraries for your project
vcpkg install [packages to install]

Using vcpkg with MSBuild / Visual Studio (may require elevation)
.\vcpkg integrate install

After this, you can create a new project or open an existing one in the IDE. All installed libraries should already be discoverable by IntelliSense and usable in code without additional configuration.

Step 3: Install libiconv
.\vcpkg install  tesseract:x64-windows-static

@JonLiu1993 , I'm sorry, but can you be more specific?
Is that typing a command in CMD?
Install libraries for your project <-is this the project I want to build?
vckg instalpl [packages to install] <- what is packages...?
.\vcpkg integrate install<- After that, open a new project in vs2022 and import the project you want to build,
.\vcpkg install tesseract:x64-windows-static and finally type it into CMD?
Thank you so much for the step by step, but I'm a complete beginner, so I don't really know what program to enter and where, sorry. I need a little more detail.

@Ran-gok, open powershell in the folder you created and enter the following commands in sequence:

git clone https://github.com/Microsoft/vcpkg.git
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install  tesseract:x64-windows-static

@JonLiu1993 , I'm getting the same error as before......
It's hard.

@Ran-gok have you uninstall the vcpkg from the visual studio installer? you might be using that version.
go to start > search > type for visual studio installer and click > click modify > go to individual component > type vcpkg > untick > click modify.
after that, close cmd and open it again. type vcpkg. if ypu can't launch it you successfully uninstall it. Now reinstall using method provided by @JonLiu1993. Make sure you note the folder where you install it. the folder where you run the git clone command so we can add it to environment path later.
Now go to start again > search > type environment > click edit environment variables for your account > it will show 2 list > in a table labeled User variables click the row with the word 'Path' in it and click edit > it will open another window > click new > paste vcpkg installation path > now click ok till you close the window
close cmd and open again > successful install if you can run vcpkg

@newholder Thank you.
But installing as provided by @JonLiu1993 ,
I'm getting the same error. I did the vcpkg uninstall you told me to do, but the
same thing.
Because my vcpkg install tesseract:x64-windows-static doesn't build,
The guy who wrote the codeprogram I was trying to build gave me a tarball that finished building tesseract:x64-windows-static,
Do you know where I can put this built file and use it?

@Ran-gok Can you provide the screenshoot of the error log please?

@newholder  I'm not sure how to get the error logs separately.
I've attached a screenshot above.
The errors always come out like that.

@Ran-gok Can you provide what command you run and which directory it was run? Also, you can check which vcpkg binary you are using with the where command. so where vcpkg. To output the log file. You may pipe the output of your command to a log file using > log.txt. it will create a log file in your current directory.
So, let's debug it a bit:

Run where vcpkg and report here the output.
Run vcpkg install tesseract:x64-windows-static > log.txt and wait until it finished. it will look as if nothing happened because it no longer output to the console, instead it output to log.txt file. paste the content of that file here

log.txt
I did it with CMD or Powershell, and put it in the directory where vcpkg is located.

enter CD D:\umum\asdasd\vcpkg
enter vcpkg
enter vcpkg integrate install
(Applied user-wide integration for this vcpkg root.) OK
type vcpkg install tesseract:x64-windows-static
After that, it runs for a bit and then gives an error.
error: building libiconv:x64-windows-static failed with: BUILD_FAILED

And I've probably shown the log file to other people as well.
They all said they didn't know what it was....

@Ran-gok have you tried git pull

@Ran-gok I found the folder you might want to look into further: vcpkg\buildtrees\libiconv. Maybe inspect the log if there's any.

Does the problem also occur if the username doesn't contain non-latin characters?
(I see that vcpkg is in a safe path, and binary artifacts are restored properly. But I wonder if libiconv's build properly deals with some environment variables (such as %TEMP%) pointing to the non-latin user paths.)
What is in your %PATH%? Maybe there interference with vcpkg's MSYS runtime.

@newholder D:\umum\asdasd\vcpkg>git pull
Already up to date. comes out.
What do you mean by Edit:? The translator doesn't seem to be working well...
edit2: what does it recognize as a space when there is no space?

libiconv.zip
@newholder I don't know which one applies, so I compressed the libiconv file into a bin. will it check?

@newholder D:\umum\asdasd\vcpkg>git pull Already up to date. comes out.
What do you mean by Edit:? The translator doesn't seem to be working well...
edit2: what does it recognize as a space when there is no space?

Ignore that. That's the problem on my machine.
At this point I don't know what's the problem. I'm out of suggestion

Try shortening this path D:\umum\asdasd\vcpkg to D:\vcpkg and try my steps again.

Does the problem also occur if the username doesn't contain non-latin characters?
(I see that vcpkg is in a safe path, and binary artifacts are restored properly. But I wonder if libiconv's build properly deals with some environment variables (such as %TEMP%) pointing to the non-latin user paths.)
What is in your %PATH%? Maybe there interference with vcpkg's MSYS runtime.

Also thinking about that, thanks.

@JonLiu1993 It's the same wherever you replace it. I don't have an answer, maybe I should give up...  Thanks.
@newholder UMUM is just a shortened name. I don't think I have an answer. I'll have to give up. Thanks.


Failed to save database password: Keyring is not supported on WSL

Describe the bug
When trying to link to a supabase project in WSL2 I get the following error: "Failed to save database password: Keyring is not supported on WSL"
To Reproduce
Steps to reproduce the behavior:

Run npx supabase link --project-ref abcdefg in WSL2
Enter the postgres password
Get the error "Failed to save database password: Keyring is not supported on WSL"

Expected behavior
The database password should be stored locally successfully in WSL2
Screenshots

Desktop (please complete the following information):

OS: Ubuntu 22.04.3 LTS on WSL2
Browser (if applicable) [e.g. chrome, safari]: N/A
Version of CLI: 1.123.4
Version of supabase-js (if applicable) [e.g. v2.22.0]: N/A
Version of Node.js (if applicable) [e.g. v16.20.0]: 20.9.0

Additional context

I installed sudo apt install gnome-keyring to see if it solved the problem but it didn't.

This error is an expected behaviour because we don't officially support saving password on WSL2. There are a few alternatives you can consider

Create a .env file in your project directory

SUPABASE_DB_PASSWORD=<your pass>

This will be picked up by the CLI the same way as a password stored in native credentials store.

Alternatively, if you insist on using the credentials store on WSL2, you may want to setup gnome-keyring using these steps.


Fix beta diversity estimation for GrieneisenTSData

experiment_benchmark(containers, datasetlist, beta_tse_exec_time, beta_pseq_exec_time, sample_sizes) throws the error cmdscale(.) : NA values not allowed in 'd'.
As discussed in this issue, the solution is to omit or substitute NA values with zeros.
However, the otu tables of the pseq objects derived from the tse objects do not include any NAs, so this is confising.

I thought that the NAs are not in tse or pseq but instead in the dissimilarity matrix of beta diversity. The latter is calculated from tse/pseq abundance tables and if those tables contain zero rows/cols, this can lead to NAs in dissimilarity matrices.
Do you have examples (as RData file) where tse has NAs but corresponding pseq derived from it does not?

Related to OMA#112

Thank you, your last PR has likely fixed the issue.


Make use of ArguMend.jl to improve error messaging around keyword arguments

https://discourse.julialang.org/t/ann-announcing-argumend-jl-for-more-helpful-methoderrors/113878

To anyone who is going to do this, MLJBase.jl contains a multi-level style for certain functions. e.g. evaluate! has three ways to be called, but just one is able to use.


Clarification on Dataset Used for Image Classification Experiments in Evaluation Using Linear Probing

Hello, author. Thank you very much for open-sourcing such excellent work. I would like to ask, in your paper you mentioned that you conducted image classification experiments on the fine-tuned CLIP and PLIP during the Evaluation using linear probing, but it seems that you did not specify which dataset these experiments were conducted on (it’s also possible that I might have overlooked this). I would greatly appreciate it if you could clarify this for me.

Hi, thanks for pointing this out. The linear probing (Figure 3) is conducted on the human DLPFC samples. The detail evaluation is as follows: we first fine-tuned the CLIP/PLIP on all human DLPFC sample, then the linear probing is tested on human DLPFC again(we trained logistic regression model on 80% of the DLPFC spots, then choose the hyper-parameter based on 10% validation set and calculate the F1 score on 10% testing set, then this is repeated for 5 times). We have included this details in the NeurIPS camera version. Feel free to let me know if you have any other question.


Add mermaid support

I'm currently using core-docs with a workaround to make mermaid codeblocks work. I find them incredibly useful for documenting almost everything in markdown files on github.
Example mermaid diagram:
sequenceDiagram
    Alice->John: Hello John, how are you?
    loop Every minute
        John-->Alice: Great!
    end

When dark mode lands we can change the documentation to this:
https://github.com/nrkno/core-docs/blob/e713119fb676d06dab3b5656a530b3f380c4d343/src/readme.md?plain=1#L226-L244

Haha, @gesi was asking about this just yesterday afternoon

@skjalgepalg tar du deg av merge og release?


Zero out critical D3D11 structures

On xb1 some of these structures have additional
fields. All have sane default behavior for 0 values.

Why is this necessary? All those should be initialized properly.

Which one actually causes problem?

The only ones with additional fields are D3D11_TEXTURE*_DESC and D3D11_BUFFER_DESC. Thinking about this more, I believe it's cleaner to just always define these values in an #if  block. I think setting the values explicitly (rather than implicity via memset) will be better for clarity long-term.

Yeah, explicit init of all members is better. Also this commit had memset even on non D3D11 structs which seem excessive.


Transport certs creation is taking too long

it seems to take a really long time to create transport certs - I think that we need to try to create it using go routine asynchronously and let the rest of the reconciliation continue.
Opensearch should automatically load the certs when they appear.

Fixed


[feature request] auto increment duplicate file

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[x] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2022.10.04 (update instructions) or later (specify commit)
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
I am well aware there are  %(epoch)s options available but it results in filenames too long to prevent false positives of duplicate files possibility.
The thing is it happens too frequently m3u8 is named index.m3u8, example link ends with https://xxx/index.m3u8 which yt-dlp will think it's downloaded even if they are totally different videos.
Can yt-dlp add a feature so that duplicate file is auto increment?
example
index 0.mp4
index 1.mp4
index 2.mp4
and so on

thanks for keeping yt-dlp updated, I truly appreciate it
Output
[generic] index: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] index: Downloading m3u8 information
[info] index: Downloading 1 format(s): 0
[download] index [index].mp4 has already been downloaded

I think picture speaks thousand words, say I have a third video of this url:
http://<IP_ADDRESS>:18890/PLTV/88888910/224/3221225664/index.m3u8
on 9 Nov I downloaded 2 different videos index.mp4 and index 00001.mp4 as in screenshot below with different size. Now if I download third URL, ytdl will think this url belong to the same file

I don't have debug environment so I can't make a pull request, but lemme post the autonumber code below:
if (autorename)
    fileNumber = 0
    while os.path.exists(f'{title} {fileNumber}.{ext}'):
        fileNumber += 1

#only start to download and save the file as   f'{title} {fileNumber}.{ext}'

Surely a folder full of files named like that is at least as useless as files called<PHONE_NUMBER>.mp4?
If a file will not be played and deleted immediately, it should have a useful name. You can either provide a name yourself or hope that some tool using an on-line media database can provide and apply the required metadata.

You can automatically number the output files from downloads in the same yt-dlp run. As I understand it, %(video_autonumber)d in the filename output template autonumbers according to videos processed and %(autonumber)d autonumbers according to videos downloaded.

I think you should post the log of that command.
If you're describing two separate commands, then that's what I'd expect: you have to allow for the first download by using %(autonumber+1)d or the equivalent legacy option.

In the second command, just observe the highest index number you've already got, let's say 42 (though actually 1), and use %(title)s %(autonumber+42)s.%(ext)s.
Possibly a more useful way of dealing with this problem would be to change the generic title and ID extraction. Currently in both yt-dlp and yt-dl these produce very similar results when no title can be extracted from a webpage. The _generic_id() method could be made to ignore trailing path components with generic values like index, manifest, playlist, or to generate an ID by hashing the path if such a value would otherwise result. Then the default filename output template %(title)s [%(id)s].%(ext)s would solve your problem, yielding eg index [3221225664].mp4 or index [dc4ee5656240ca81768e6cb9002b7c81].mp4.

You still did not explain why you can't just use epoch

It is possible to implement an --auto-rename flag. But, when the flag is used, yt-dlp will not be able to detect duplicate downloads - i.e, if you pass a URL twice, it will get downloaded twice. Is that acceptable?

Stuff we need to decide:

[ ] Filename format: filename idx.ext? Other users may prefer a different naming scheme. One common situation I forsee is someone wanting to pad idx to a certain number. How do we handle this? - We don't need to implement this now, but should leave some way to do this in future.
[ ] Should each file check for it's own duplicates, or we should use a common number? E.g. (1) if only a.mp4 exists, should we download as a 1.mp4 + a 1.info.json? or a 1.mp4 + a.info.json? (2) What if only a.info.json exists? (3) What if a.info.json exists, but --write-info-json is not passed?
[ ] How should the option interact with --continue, --overwrite, --no-part
[ ] If duplicate intermediate files exist, but not final file, what should we do?
[ ] What happens if a file of the same name is created while .part download is ongoing?
[ ] How should filenames be handled after postprocessing? E.g. Say user gave -k -f webm -x. (1) If only a.webm exists, should we download to a 1.webm + a 1.opus? or a 1.webm + a.opus? (2) Even harder, if only a.opus exists, we will have to download to a.webm. So should we overwrite the opus? Or convert to a 1.opus? The latter options in either example would mean the duplicate checking code has to be implemented individually in each extractor. Note that the situation will get even more complicated with --split-chapters

[ ]   How should the option interact with --continue, --overwrite, --no-part

mention -autorename arg cannot use with these option

what!? Even so, it still interacts with the defaults...

these question gave me an idea, during downloading the part don't use the filename first. we record epoch, suppose the file is index.mp4
startEpoch = ...
<startEpoch>.part1
<startEpoch>.part2
<startEpoch>.part3

when all download completed, merge, then only check if there is any duplication

This will not be done. The part files must mostly be given same name as final file. Besides, I don't see how that addresses any of the points

any update on this issue?

is this update out? its very usefull feature to have

Ran into the same issue, just because a file name is the same doesn't mean the content is, a flag that just adds an '_1' to duplicates would be good.

So, what happened after 2 years? nothing? is this so hard?

So, what happened after 2 years? nothing? is this so hard?

No one has proposed a solution that adequately addresses the points in this comment: https://github.com/yt-dlp/yt-dlp/issues/5485#issuecomment-1316217075
You are welcome to come up with a proposal or implementation yourself

As this is only an problem for generic downloads where there is no unique title+ID extraction, why wouldn't it be solved in those cases by using epoch in the output template?
If long strings of digits are considered distasteful, a simple script in the relevant OS/shell could rename the downloads in any directory in the sort order, as for example:
index_1660000001.mp4 -> index_1.mp4
index_1660000341.mp4 -> index_2.mp4
index_1660002101.mp4 -> index_3.mp4
index_1660002111.mp4 -> index_4.mp4


from ubuntu 16.04

New job, new base

I would like 3.1 in docker.. And smaller images are good! 👍

Awesome. Thanks for your work!


Base Notification Citation View

Refactored class names for notification views, removed settings in notifications view, added more properties to notification citation views

@googlebot I consent.

Has a conflict.


Wild Herbs Ointment - How it deals with a escape from a fight?

Effect is the same of winning the fight, and that makes sense.


No Resolve References in getStory()

On line 272 of src/Storyblok/Client.php, the options are being built for us. This does not allow us to pass in options like resolve_relations to have global component content returned with the call to get a story.
We need a way to pass in the string of the global component to resolve when requesting a story as mentioned in this walkthrough: https://www.storyblok.com/tp/global-components-references#resolving-the-relationship-with-the-api

Potential solution in this pull request: https://github.com/storyblok/php-client/pull/11

@onefriendaday - Just circling back around. Any update on this? Thanks!

Hello @danielbrooks4p , thanks for reporting a problem :) , or the Pull Request you mentioned above has been merged 👍

I have made a similar Pull Request (#14) for getStories()

Hi @andyjaar Thanks to send a PR and comented at this issue, I thought the problem had been solved, let's check and if possible merge your PR, thanks :)


PP-611 Normalize Get Payment, Events and Cancel API resources

- Created exceptions for invalid responses.
- Make sure for every one readEntity is in place.
- Close connections when entity has not been read.
- Delegate error construction an formatting to PaymentError so this way we have all the description/codes in one place.

rebuild

README needs updating perhaps?


Support M1 MacBooks darwin/arm64

Hi, no way install image plugin on my macOS (darwin/arm64)
images.yaml need to update the support arm architecture
Installing plugin: images
W0316 20:42:28.059258    4176 install.go:164] failed to install plugin "images": plugin "images" does not offer installation for this platform

@ysicing https://github.com/kubernetes-sigs/krew-index/pull/1112
darwin/arm64 have been supported.

thank you.

@ysicing Does it work on your Mac(m1)?

I will test  M1 at home and give feedback later.
Yesterday I built the ARM bin, and there was no problem, work well.
@chenjiandongx

ok :)

work well.
➜  ~ go version
go version go1.16.2 darwin/arm64
➜  ~ kubectl krew install images
Updated the local copy of plugin index.
Installing plugin: images
Installed plugin: images
\
 | Use this plugin:
 | 	kubectl images
 | Documentation:
 | 	https://github.com/chenjiandongx/kubectl-images
/
WARNING: You installed plugin "images" from the krew-index plugin repository.
   These plugins are not audited for security by the Krew maintainers.
   Run them at your own risk.


better debuggem support ....

The current debbuggem support is predicated upon using GEM_LISTEN_FOR_DEBUG=TRUE and iferr 1 TOPAZWAITFORDEBUG in the .topazini file ... turns out that this is sufficient for attaching with debuggem and inpecting a stack, but if one wants to be able to single step or continue in the debugger, the  iferr 1 TOPAZWAITFORDEBUG prevents that from happening ...
In order to be able to step/continue, we have to arrange to have an error handler at the top of the stack that goes into an infinite delay loop until debuggem is used to attach ... then to be able to continue, one needs to set a variable accessible to the loop that causes the loop to exit ...
In superdoit, we should arrange that when GEM_LISTEN_FOR_DEBUG=TRUE is set we handle errors and go into an infinite loop and arrange to use a local instance variable (or even temp?) as the continue variable ...
The spots where we check to dump the stack and print the process oop is the perfect place to arrange for the loop !!!

There is a 3.6.4 bugfix pending that may make it unnecessary to use the wait loop ... keep your eyes peeled


illegal field type  for i:319&iact

When trying to fetch the notest list with ListNoteCommand (notebook_guid and tag_guids could be nill or not, that does not matter) I get "illegal field type  for i:319&iact" message, which comes from line 134 of enclient.rb (raise IllegalStateException.new("illegal field type #{vartype} for #{varsym}")). I see that the vartype value is empty in this case.
It seems that some params url is parsed incorrectly somewhere before as "i:319" looks like the second part of some parameter and "iact=" the beginning of the next one.

Finally I have found the source of the problem. One of the notes contained a bad link, which included a comma. So, a parser assumed that there were some additional note params...
Here is the broken link:
http://www.google.ru/imgres\?hl\=ru\&newwindow\=1\&espv\=201\&es_sm\=91\&qscrl\=1\&biw\=1321\&bih\=638\&tbm\=isch\&tbnid\=9rocVC85fq66eM:\&imgrefurl\=http://www.pdx.edu/elp/event/6th-annual-international-conference-business-and-sustainability%3Fdelta%3D0\&docid\=j3by0a1Yp452cM\&imgurl\=http://www.pdx.edu/syndication/sites/www.pdx.edu.syndication/files/styles/large/public/Scalability_cloud_web_0.gif\&w\=480\&h\=328\&ei\=5khiUdKjG4OI0AX4s4CIBg\&zoom\=1\&ved\=1t:3588,r:77,s:0,i:319\&iact\=rc\&dur\=789\&page\=5\&tbnh\=185\&tbnw\=269\&start\=75\&ndsp\=18\&tx\=103\&ty\=98
I believe there is no way to parse this situation correctly, so closing the issue.


[CI] fix android build

This patch fix ci fail when we build android using
tools/package_andorid.sh script
Self evaluation:

Build test:	 [X]Passed [ ]Failed [ ]Skipped
Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1872. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.


When a JUnit test is skipped due to an assumption, the reason should be reported

Expected Behavior

We have a test like this:
@Test
public void testRelativise_WindowsShortFileNames()
{
    assumeThat(precondition1(), is(true));
    assumeThat(precondition2(), is(true));

    // ... test code follows ...
}

When this test gets skipped due to an assumption not being met, I'd like to see in the XML reports why that occurred, so that the reason can be shown in Jenkins.
This is what happens in IDEA - when you select a test which was skipped due to an assumption, you get to see the AssumptionViolatedException message and stack trace.
Current Behavior

Currently, when you run a test like this through the Gradle runner, the JUnit report just says that the test was skipped, with no further info (the complete log for the entire test class is included, but not the stack for the assumption violation itself.)
Context

Some tests can only be run when a specific environment is present on the machine running the test. Assumptions are the standard way to model this in JUnit tests.
Unfortunately, sometimes I see tests being skipped spuriously, and have no idea which precondition failed, so I have no idea which direction to investigate.

Would the message be enough or do you need the full stacktrace?

The message might well be enough. Usually the assertion is called directly from the test class, and anything further would go into the test runner anyway.

This should be done for both Junit 4 and 5.
TestNG has a SkipException that provides the same behavior.

Agreed!

I want to distinguish tests annotated by @Disabled from tests interrupted by Assume.assumeTrue() method.
The only way is looking for type="org.junit.AssumptionViolatedException" parameter in <skipped> tag.
Unfortunately this parameter is not shown in the Gradle report. It works correctly at Maven.
It would be great if you could let me know when I can expect fix for this change.
@marcphilipp @JLLeitschuh When do you plan to fix it?

@Wojand Would you be interested in submitting a PR?

Still relevant.

JUnit 4 and  Platform differentiate between "skipped" (i.e. not even started) and "aborted". In the former case a String reason is reported, while in the latter a TestAbortedException or AssumptionViolatedException is attached to the test result. However, Gradle currently disregards both of them.

This way assumptions are unusable with Gradle.
+1 :(

The skip reason isn't reported


Fix AE definitions to specify up to Java 1.7

So why not specify java 1.7 since it's what App Engine supports. I guess 1.7 is mostly backwards compatible with earlier versions.
LGTM

AE provides a 1.7 runtime, but it supports executing classes built against other JRE versions.  The java facet version seems to be used to set the Execution Environment providing the server runtime instance doesn't explicitly set a JRE.

The com.google.cloud.tools.eclipse.gcloud.runtime runtime (called App Engine and driven by the gcloud_serverdef.xml file) does prompt for an explicit JRE when creating the runtime instance, and so the JRE sticks.
The other runtime, com.google.cloud.tools.eclipse.runtime.id1 (called GAE Standard) doesn't prompt for a JRE and seems to set the project JRE from the java facet (i.e., changing the java facet to 1.5 changes the JRE to JavaSE-1.5). I think this is a good thing.


Support top_k and top_p

It would be great if we can have support for all of Claude's chat parameters:
https://docs.anthropic.com/claude/reference/messages_post

Hello, just added them including metadata and stop_sequence


copy scala file, add ci, add build-rules

copy Config.scala from rocket-chip
add build.wake for compiling scala using wake
add build.sbt for compiling scala using sbt
add travis ci files

Nice job on the README!
One concern I have is about all of the stuff that is duplicated between this PR and https://github.com/sifive/block-inclusivecache-sifive/pull/3. Since we're going to have many, many packages, I think we'll need a way of "packaging" even the CI configuration, or else we're quickly going to have a ton of copy-pasted .travis.yml files and shell scripts.

oh I didn't write the readme. I just copied it from here.
Yeah I agree we should try packaging the ci stuff. I think we can hold off on it until we split out a few more repos then we can figure out a good interface?

Yeah I agree we should try packaging the ci stuff. I think we can hold off on it until we split out a few more repos then we can figure out a good interface?

That's fine, but I think even before trying to define the concrete interfaces, it'd be good to talk about the types of things that we'd like to capture in the interfaces or share between different repos.


Error to build for android with adxe script

adxe version: commit af19d52d0ef811c2ed3aaf5877610cbc59b9335d

NDK version: r21e

see the log.txt file
log.txt

Worked, do you know how could I compile in a verbose mode, the ndk part ? Is there some way using adxe script ?

I don't know yet.


fix: Only use ListOptions

Fixes #1625

I understand the idea, but by using this way to fix it you make this package incompatible with older GitLab version. So I prefer to add a deprecation note instead (like this: https://github.com/xanzy/go-gitlab/blob/master/runners.go#L184)

I understand the idea, but by using this way to fix it you make this package incompatible with older GitLab version. So I prefer to add a deprecation note instead (like this: https://github.com/xanzy/go-gitlab/blob/master/runners.go#L184)

That makes absolute sense. Thanks. I'll update the PR soon (and update the issue)

@svanharmelen  As the object is shared by two function calls (group level as well as project level, we can only mark the parameter in ListGroupRegistryRepositories as deprecated/obsolete. How does that work?

It's not pretty, but maybe make a new type ListGroupRegistryRepositoriesOptions... This is a bit of a nasty one, as in that case I would also like to rename the existing one to ListProjectRegistryRepositoriesOptions. Not sure if its all worth it as in the end both types will still have the same options.
So maybe just add that clarification to the deprecation message? So something like:
// Deprecated: These options are deprecated only for ListGroupRegistryRepositories calls. (Deprecated in GitLab 15.0)

It's not pretty, but maybe make a new type ListGroupRegistryRepositoriesOptions... This is a bit of a nasty one, as in that case I would also like to rename the existing one to ListProjectRegistryRepositoriesOptions. Not sure if its all worth it as in the end both types will still have the same options.
So maybe just add that clarification to the deprecation message? So something like:
// Deprecated: These options are deprecated only for ListGroupRegistryRepositories calls. (Deprecated in GitLab 15.0)

Added the deprecated message on top of both fields in the options.


Mark package as development dependency

This will cause the package to be excluded from the dependency list when the referencing project itself is later packaged.
http://docs.nuget.org/Release-Notes/NuGet-2.7#development-only-dependencies

Thanks @Maxwe11


Add a sentence about the 3 month grace for support after a LTS release

As discussed in the PO/PO meeting of today.
@mpr-axonivy fyi


[LIVY-642] Fix a rare status happened in yarn cause SparkApp change into error s…

…tate
What changes were proposed in this pull request?
to support this yarn state with YarnApplicationState.RUNNING and FinalApplicationStatus.SUCCEEDED instead return SparkApp.State.FAILED

Can you please explain what's the problem here?

Can you please explain what's the problem here?

OK
some of batch session returned failed state while spark yarn application is succeeded. and in livy log，i find the reason：
2019-08-23 05:32:48,096 ERROR [Logging.scala:56] - Unknown YARN state RUNNING for app application_1559632632227_47808044 with final status SUCCEEDED.
it means yarn application state is RUNNING while final app status is SUCCEEDED, it's a correct status in yarn, means AM has not sync app state yet. and livy mapped this situatition as SparkApp.state.FAILED.
So, i think we should map this state into SparkApp.state.RUNNING，waiting for AM sync.

@runzhiwang can you please take a look at this issue.
@Jassy1994 would you please fix the PR title and add more PR description about this problem.

@jerryshao ok

+1

+1

Thanks for your reviewing.

Codecov Report

Merging #204 into master will increase coverage by 0.66%.
The diff coverage is 50%.

@@             Coverage Diff              @@
##             master     #204      +/-   ##
============================================
+ Coverage     68.53%   69.19%   +0.66%
- Complexity      911      961      +50
============================================
  Files           100      100
  Lines          5682     5896     +214
  Branches        856      949      +93
============================================
+ Hits           3894     4080     +186
- Misses         1232     1235       +3
- Partials        556      581      +25

Impacted Files
Coverage Δ
Complexity Δ

...ain/scala/org/apache/livy/utils/SparkYarnApp.scala
75.95% <50%> (+2.71%)
44 <0> (+11)
:arrow_up:

...n/scala/org/apache/livy/server/AccessManager.scala
77.77% <0%> (-3.08%)
56% <0%> (+12%)

...c/main/scala/org/apache/livy/repl/ReplDriver.scala
30.76% <0%> (-2.57%)
7% <0%> (ø)

...la/org/apache/livy/server/batch/BatchSession.scala
86.55% <0%> (-0.05%)
28% <0%> (+12%)

.../scala/org/apache/livy/sessions/SessionState.scala
61.11% <0%> (ø)
2% <0%> (ø)
:arrow_down:

...ain/java/org/apache/livy/rsc/driver/Statement.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...scala/org/apache/livy/repl/SparkRInterpreter.scala
60.69% <0%> (+0.57%)
14% <0%> (ø)
:arrow_down:

...ain/java/org/apache/livy/rsc/driver/RSCDriver.java
78.81% <0%> (+0.84%)
41% <0%> (ø)
:arrow_down:

...cala/org/apache/livy/repl/ProcessInterpreter.scala
59.52% <0%> (+2.38%)
6% <0%> (ø)
:arrow_down:

...cala/org/apache/livy/scalaapi/ScalaJobHandle.scala
55.88% <0%> (+2.94%)
7% <0%> (ø)
:arrow_down:

... and 7 more

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 22c73e3...0b5c491. Read the comment docs.


Ruby question: using params within list block?

Apologies for the question more related to ruby scoping, but wondering if you or anyone has come across this in caracal and has a better way of solving it:
In a list block (i.e., the block that gets passed to the list to provide the contents of the list), I cannot use instance variables or local variables that are defined in the scope of the view (e.g., the params[] hash). Hence, I can't easily customize the text that goes into the list blocks.
Example (doesn't work):
docx.ol do
  li do
    text "here is a param from the form: #{ params[:name_field] }"
  end
end

I'm working around it by defining a global hash containing the customized text outside the list block, then referencing the global hash within the list block.
Example (works but ugly):
$gp = {
  :txt => params[:name_field]
}
docx.ol do
  li do
    text "here is a param from the form: #{ $gp[:txt] }"
  end
end

I didn't see this addressed in caracal-example. Any other options for something like this?

It can just be a local variable (i.e., no need for global scoping), but this is the canonical way of passing variables...at least for now.
So, internally, when you call a method like ol, what you're doing is passing your block into a new model instance that interprets your instructions (often by instantiating more models and passing them blocks).  At that point, Rails no longer has access to the action view context.  That's why it can't understand params or instance variables built in the controller.
Caracal works this way because we're not rendering a simple, single template like, say, erb renders HTML.  Caracal has to catalog all your instructions and then loop back over them to generate several templates simultaneously (which are eventually zipped up into a single file).  By the time caracal renders your instructions to XML, your controller context is long gone.
But, as long as you reference local variables in your instructions, ruby will naturally pass that lexical scope through into the block (a la how Javascript closures work) and the variable will be available when Caracal evaluates the expression.
I know that's not intuitively obvious unless you've inspected the internals pretty closely.  This probably warrants its own section in the README.

Thanks. I'll try to put together a pull request to add this documentation to the README.


Typescript declarations

This will add full support for type declarations.

Thanks for your contribution, I'll publish the next version shortly after merging your pull request.

Thanks for your contribution, I'll publish the next version shortly after merging your pull request.

How use?

typed RouterLink:

typed element:

with props

Typescript

hmm,  yes, there is a conflict with the color parameter, strange behavior
change param name please, this bug

Why is this?

you have not completed the method and are trying to return a string or undefined value as a string

function with a parameter should return a string

from vue docs
{ type: String, required: true }

types are taken from official vue types

from vue docs with custom types

hmm   type error  run normal

// from vue docs
{type: String} // string | undefined
{type:String, required: true } // string

// use
{type:String, required: true }
// or
`${p => p.colots || ''} // to string`

`${p => p.colots || ''} // success`

 //
{type:String, required: true }  //error

with default

I take the types completely immutable from ExtractPropTypes, obviously vue wants default values

otherwise there is no certainty that the string will be passed

Thank you !


How to configure p2p and cache

    > @bengbeng-pp Currently in Alibaba Cloud, only the Function Compute uses trace prefetching, because it's relatively easier for them to record trace. Some business are reluctant to do such a thing.

I think what you need is Cache + P2P distribution. For each of them DADI has an open-source implementation. By setting up a large scale of SSD cluster, you basically distribute / cache every hot piece of data in the network and thus a mighty network filesystem is formed :-)

Hello，Is there any documentation on how to configure cache and p2p? When I pulled obd format image from registry, I can not see anything from /opt/overlaybd/registry_cache
Originally posted by @dbfancier in https://github.com/containerd/accelerated-container-image/issues/120#issuecomment-1291546382

We have provided an implementation of p2p image distribution (https://github.com/data-accelerator/dadi-p2proxy).
You are welcome to join slack or wechat group to chat with us, if you have any deployment questions.

@dbfancier  if p2p is used, cache is managed by p2p, so nothing could see in /opt/overlaybd/registry_cache. You can refer to this config file to configure p2p. And @Coldwings  is going to write a detailed document.

@dbfancier if p2p is used, cache is managed by p2p, so nothing could see in /opt/overlaybd/registry_cache. You can refer to this config file to configure p2p. And @Coldwings is going to write a detailed document.

but I still haven't configured p2p, and saw error like this:
/root/overlaybd/src/overlaybd/cache/frontend/cached_fs.cpp:47|open:Open source file failed errno=1(Operation not permitted)

@dbfancier  I guess the reason is about authentication config. you may refer to this https://github.com/containerd/overlaybd#credential-config to config auth file for overlaybd-tcmu.
If this is not solved, please show me the whole logs.

@dbfancier I guess the reason is about authentication config. you may refer to this https://github.com/containerd/overlaybd#credential-config to config auth file for overlaybd-tcmu.
If this is not solved, please show me the whole logs.

@liulanzheng It's useful to correct the content of this file to solve the error, but I still got nothing in cache directory
I built the image in following way:
buildctl build --frontend=dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=,push=true --export-cache type=inline --import-cache type=registry,ref=
did I do somthing wrong?
By the way, could you please provide me the way to join the wechat group, I am looking forward to further exchanges with you. thank u

@dbfancier You can find my email on my homepage.

@dbfancier  First, images have to be converted to overlaybd format. Then this overlaybd image can be run as remote image, on-demand load data can be found in cache directory.
Base on the converted overlaybd image, you can build images use our customized buildkit. and for now this customized buildkit need some special configuration, like use containerd-worker-snapshotter to run buildkitd, and need 'oci-mediatypes=true,compression=uncompressed' for output for buildctl.
For more details about image conversion and building, please refer to my just written quickstart. you may help to improve this document for the problems you encountered.
You can connect to @beef9999 or me through email with your wechat id.

@dbfancier First, images have to be converted to overlaybd format. Then this overlaybd image can be run as remote image, on-demand load data can be found in cache directory.
Base on the converted overlaybd image, you can build images use our customized buildkit. and for now this customized buildkit need some special configuration, like use containerd-worker-snapshotter to run buildkitd, and need 'oci-mediatypes=true,compression=uncompressed' for output for buildctl.
For more details about image conversion and building, please refer to my just written quickstart. you may help to improve this document for the problems you encountered.
You can connect to @beef9999 or me through email with your wechat id.

thanks, your reply helped me a lot!

@dbfancier if p2p is used, cache is managed by p2p, so nothing could see in /opt/overlaybd/registry_cache. You can refer to this config file to configure p2p. And @Coldwings is going to write a detailed document.

Excuse me,  has the detailed document been completed?


Update README.md, CLI option clarified

The documentation didn't say how to set boolean options, which are true by default, to false when using the CLI.
My first guess was to do something like --clients-claim=false, but that would set clientsClaim to string "false", which is still a truthy value, so that doesn't work.

I signed it!

Thanks!


Tiered storage

Description
Issue: https://github.com/apache/incubator-pinot/issues/5553
Tiered storage support in Pinot - Phase 1.
This phase supports default tag based instance assignments only, which are not persisted in zk.
Phase 2 will introduce instanceAssignmentConfig for tiers, which will allow us to support replica groups for tiers and also let us persist the InstancePartitions
Example:
This example show how to configure segments older than 15 days move to tier_b_OFFLINE and segments older than 7 days move to tier_a_OFFLINE
{
  "tableName": "myTable",
  "tableType": ...,
  ...
  "tierConfigs": [{
    "name": "tierA",
    "segmentSelectorType": "time",
    "segmentAge": "7d",
    "storageType": "pinot_server",
    "serverTag": "tier_a_OFFLINE"
  }, {
    "name": "tierB",
    "segmentSelectorType": "TIME",
    "segmentAge": "15d",
    "storageType": "PINOT_SERVER",
    "serverTag": "tier_b_OFFLINE"
  }]
}

Release Notes
Tiered storage phase 1 - default tag based instance assignment for tiers

Well done.
Most comments are minor (comments in OfflineSegmentAssignment also applies to RealtimeSegmentAssignment).
Please merge the 2 relocators into one.

Thanks for the review. I've merged the 2 relocators into SegmentRelocator. I introduced controller confs for controller.segment.relocator.frequency, and deprecated the confs for .controller.realtime.segment.relocator.frequency. For some releases, we'll carry both around.

LGTM otherwise. One critical comment in SegmentRelocator

Made one small change not part of the review. Converted the "segmentSelectorType" and "storageType" to enums. If you want to look again.

Made one small change not part of the review. Converted the "segmentSelectorType" and "storageType" to enums. If you want to look again.

Since we introduced the enum, try to use enum over string for these 2 fields

Made one small change not part of the review. Converted the "segmentSelectorType" and "storageType" to enums. If you want to look again.

Since we introduced the enum, try to use enum over string for these 2 fields

The reason I kept it string is that if we want people to plug in their own strategies, they can do so without needing to add it to the enum

Made one small change not part of the review. Converted the "segmentSelectorType" and "storageType" to enums. If you want to look again.

Since we introduced the enum, try to use enum over string for these 2 fields

The reason I kept it string is that if we want people to plug in their own strategies, they can do so without needing to add it to the enum

In that case, IMO we should not introduce the enum

Made one small change not part of the review. Converted the "segmentSelectorType" and "storageType" to enums. If you want to look again.

Since we introduced the enum, try to use enum over string for these 2 fields

The reason I kept it string is that if we want people to plug in their own strategies, they can do so without needing to add it to the enum

In that case, IMO we should not introduce the enum

Hmm, agreed. Reverted enum change.


feat: Add f_flags_ext member to Apple's statfs structure

See the header usr/include/sys/mount.h:
#define __DARWIN_STRUCT_STATFS64 { \
	uint32_t	f_bsize;        /* fundamental file system block size */ \
	int32_t		f_iosize;       /* optimal transfer block size */ \
	uint64_t	f_blocks;       /* total data blocks in file system */ \
	uint64_t	f_bfree;        /* free blocks in fs */ \
	uint64_t	f_bavail;       /* free blocks avail to non-superuser */ \
	uint64_t	f_files;        /* total file nodes in file system */ \
	uint64_t	f_ffree;        /* free file nodes in fs */ \
	fsid_t		f_fsid;         /* file system id */ \
	uid_t		f_owner;        /* user that mounted the filesystem */ \
	uint32_t	f_type;         /* type of filesystem */ \
	uint32_t	f_flags;        /* copy of mount exported flags */ \
	uint32_t	f_fssubtype;    /* fs sub-type (flavor) */ \
	char		f_fstypename[MFSTYPENAMELEN];   /* fs type name */ \
	char		f_mntonname[MAXPATHLEN];        /* directory on which mounted */ \
	char		f_mntfromname[MAXPATHLEN];      /* mounted filesystem */ \
	uint32_t    f_flags_ext;    /* extended flags */ \
	uint32_t	f_reserved[7];  /* For future use */ \
}

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon.
Please see the contribution instructions for more information.

@bors r+

:pushpin: Commit 21f40becdf43a4353f541f31b389d20ad63c91e6 has been approved by Amanieu
It is now in the queue for this repository.

:hourglass: Testing commit 21f40becdf43a4353f541f31b389d20ad63c91e6 with merge 431591aa35d7c6763f5fdd4af5e33de7303f028b...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: Amanieu
Pushing 431591aa35d7c6763f5fdd4af5e33de7303f028b to master...


Replace 'transformers' with 'jstransformer'

Blocked by #51 - this appears to be a jade dependency.
The fix for this is to update jade to pug, once pug is stable.


parallelize trace extraction

parallelizes trace extraction
switches to CairoMakie for trace extraction plots
adds verbose kwarg to extract_trace which is off by default
add a file makie_plotutils.jl for use when using makie instead of pythonplot

Job completed in 0d 0h:9m:28s
This works, but will be a lot faster when I parallelize over chips.


Update Ubuntu installation test

Use mounted ISO file for the test
@jlongever @zyoung51 @tannoa2 @brianparry @RackHD/corecommitters
depends on: https://github.com/RackHD/on-tasks/pull/280
depends on : https://github.com/RackHD/on-http/pull/364

:+1:

:+1:


Can't get it to work [El Capitan]

The app starts but when I try to click on for example mute it does nothing. The app doesn't react on any mouse clicks. Haven't developed for Mac so I don't know what logs that you might be interested in to be able to debug.

Oh wow, I'm seeing the same thing! Thanks for letting me know.

Same Problem (Also El Capitan - Version 10.11.2)

I believe I've isolated the issue for the setup window not working. Here's my StackOverflow question: http://stackoverflow.com/questions/34486264/clicking-nssegmentedcontrol-in-unselected-nstableview-row-always-produces-1-as
If anyone has any input it'd be greatly appreciated!

Fixed by changing NSSegmentedCell to NSPopUpButtonCell


[RTC] Page Templates

User Story
As AEM Archtype user , I would like to include three basic page templates based on the Editable Templates concept.
The three templates are

Landing
Article
Information

Acceptance Criteria
a)As a Web Administrator, I want to be able to create variations of a page template to allow different types of components to be used by different groups of authors.
b)As a Marketer responsible for Landing Pages (secondary pages off the main nav - /home/main-nav/{landing-pages}), I want to be able to create a landing page quickly without having to ask an administrator or FED for assistance
c)As a Content Author responsible for content pages, I want to be able to create a content page quickly without having to ask an Admin for assistance
d)As a delegate to the marketing director, I want to be able to modify the home & primary nav pages

Closing this for now, because we plan to integrate different page templates rather via a "starter kit" content package, and because there hasn't been any activity here for over a year.


Tracking issue: First release

This issue serves two purposes

Showcase what is the status of progress until we are able to implement it on real repositories
So that I can close some Processbot issues and feature ideas once it is installed in the real repositories

I've assigned all the tickets considered to be necessary before instaling this action in our pipelines into a "First release" project.
Issues which would be closed once this project is installed on the relevant repositories

https://github.com/paritytech/parity-processbot/issues/305
https://github.com/paritytech/parity-processbot/issues/297

Finished as per https://github.com/paritytech/substrate/pull/10951, https://github.com/paritytech/cumulus/pull/1153 and https://github.com/paritytech/polkadot/pull/5280


added chef 13 compatibility by pulling in latest redisio cookbook

Description
Pull in new redisio cookbook to better support chef 13
Motivation and Context
Due to an issue with the upstream redisio cookbook the current sensu cookbook fails on chef 13. A contribution was merged way back https://github.com/brianbianco/redisio/pull/350 but never released. The cookbook has been not well maintained recently. I reached out to the maintainer and got access to cut a release and push it to the supermarket. This pulls in those changes.
How Has This Been Tested?
I have not done any testing but there is a comment here indicating it should work.
Screenshots (if appropriate):
Types of changes

[ ] 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 change)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.

released:

https://github.com/sensu/sensu-chef/releases/tag/v4.3.0
https://supermarket.chef.io/cookbooks/sensu/versions/4.3.0


Connect Chiadog over SSH to the FULL_NODE

Hi all,
It is not totally a bug, but I cant find my way around to pass the password when I login to another machine over SSH.
network_log_consumer:
    enable: true
    remoteuser: "xx"

I do get the following error back.
[2021-05-18 20:34:20] [    INFO] --- Connected (version 2.0, client OpenSSH_8.2p1) (transport.py:1819)
Traceback (most recent call last):
  File "main.py", line 54, in <module>
    log_consumer = create_log_consumer_from_config(chia_logs_config)
  File "/home/nfsserver/chiadog/src/chia_log/log_consumer.py", line 179, in create_log_consumer_from_config
    platform, path = get_host_info(
  File "/home/nfsserver/chiadog/src/chia_log/log_consumer.py", line 132, in get_host_info
    client.connect(hostname=host, username=user, port=port)
  File "/home/nfsserver/chiadog/venv/lib/python3.8/site-packages/paramiko/client.py", line 435, in connect
    self._auth(
  File "/home/nfsserver/chiadog/venv/lib/python3.8/site-packages/paramiko/client.py", line 765, in _auth
    raise SSHException("No authentication methods available")
paramiko.ssh_exception.SSHException: No authentication methods available

What is the safest way ? To provide the password during the initialization of the script or work with SSH-keys (but how)?
Environment:

OS: Ubuntu Server 20.04 LTS
Python version: 3.8.5
PIP version: 21.1.1
Chia version: 1.1.5

nvm:
http://www.linuxproblem.org/art_9.html
fixed with 2 commands....

The wiki page on Monitoring Multiple Harvesters describes this in more detail as well.


Delete team name is displayed on the users profile. Upon deleting a team, the team is not removed from the user teams list.

Affected module
Backend
Describe the bug
Delete team name is displayed on the users profile. Upon deleting a team, the team is not removed from the users list array
To Reproduce

Navigate to teams page from settings
Delete a team eg : Cloud Infra
Refresh the page
Check users profile and check the User list api

Before deleting team

After deleting team

Expected behavior
Team name should not be present in the user list array
Version:

OpenMetadata version: 0.9.1

Additional context
NA

@harshach and @Sachin-chaurasiya, we now send an additional flag deleted in entity reference that indicates the team is deleted. You can use that information to filter out the teams. The deleted flag should be available everywhere where we are showing relationships like the following:

Team will include a list of users including deleted
Users will include a list of teams they belong including deleted
A data asset (for example a table) will have an owner with a flag deleted if indeed the owner (either user/team owner) is deleted

@sureshms , This has been taken care on UI side, we filter out the deleted teams and if team or user is the owner of entity then we show them with "(Deactivated)" text.
So we can close this issue.


'%' character in SQL LIKE statement throws error

Hi there,
Firstly thank you for a really useful package!
I've tried a number of queries and they all worked until I used a query that uses LIKE statements in the SQL to check for phrases in text fields. The use of the % sign and 'S' is causing an error - perhaps its being resolved to something else in the code? Please see example below. When I change the %SNB% to something else (eg. %FNB%), I get a different error. Please assist :)
query being executed:
select count(1)
from
<transactions_table>
where
BeneficiaryReference like '%SNB%'
and TransactionDate between {{ TrxnStartDate }} and {{ TrxnEndDate }}
params:
params = {'TrxnStartDate': '2019-04-01', 'TrxnEndDate': '2020-03-31'}
error output when using like '%SNB%':
ValueError                                Traceback (most recent call last)
 in
1 #add competitor home loans
2 #queries.sql_get_Competitor_HL
----> 3 apply_sql_template(queries.sql_get_Competitor_HL, params)
4 #competitor_home_loans_dataset = pd.read_sql(apply_sql_template(queries.sql_get_Competitor_HL, params), conn)
5 #clients_details = competitor_home_loans(clients_details)
 in apply_sql_template(template, parameters)
24     j = JinjaSql(param_style='pyformat')
25     query, bind_params = j.prepare_query(template, parameters)
---> 26     return get_sql_from_template(query, bind_params)
 in get_sql_from_template(query, bind_params)
19     for key, val in params.items():
20         params[key] = quote_sql_string(val)
---> 21     return query % params
22
23 def apply_sql_template(template, parameters):
ValueError: unsupported format character 'S' (0x53) at index 114
error output when using like '%FNB%':
TypeError                                 Traceback (most recent call last)
 in
1 #add competitor home loans
2 #queries.sql_get_Competitor_HL
----> 3 apply_sql_template(queries.sql_get_Competitor_HL, params)
4 #competitor_home_loans_dataset = pd.read_sql(apply_sql_template(queries.sql_get_Competitor_HL, params), conn)
5 #clients_details = competitor_home_loans(clients_details)
 in apply_sql_template(template, parameters)
24     j = JinjaSql(param_style='pyformat')
25     query, bind_params = j.prepare_query(template, parameters)
---> 26     return get_sql_from_template(query, bind_params)
 in get_sql_from_template(query, bind_params)
19     for key, val in params.items():
20         params[key] = quote_sql_string(val)
---> 21     return query % params
22
23 def apply_sql_template(template, parameters):
TypeError: must be real number, not collections.OrderedDict

By default, JinjaSQL converts your query to a string with %s. So a query like SELECT * from users where name = {{params.firstName}} becomes SELECT * from users where name = %s. When you have a literal string with a %s as part of a like query, the underlying database driver gets confused.
You have two ways to solve this problem:

You can escape the percentage. So instead of column like '%sblah%s', write it with two % symbols, like column like %%blah%%. That should solve your problem.
Alternatively, you can configure JinjaSQL to use a different param style - like ?.

If you end up changing to ?, and your query has a literal ? in it, you would then have to escape it. I guess % is more likely in a query, so it perhaps makes sense to change the format to qmark.


Can Delete Messages By Messages ID

The issue tracker is ONLY used for bug report(feature request need to follow RIP process). Keep in mind, please check whether there is an existing same report before your raise a new one.
Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
BUG REPORT

Please describe the issue you observed:

What did you do (The steps to reproduce)?

What did you expect to see?

What did you see instead?

Please tell us about your environment:

Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

FEATURE REQUEST

Please describe the feature you are requesting.

Provide any additional detail on your proposed use case for this feature.

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

sub-task1-issue-number: sub-task1 description here,
sub-task2-issue-number: sub-task2 description here,
...

@zongtanghu

@xiaoluobotouzi as an append-only messaging middleware, there's no ways to delete a message by messageId, but you can skip this message by reset consume offset.
The issue only used for a bug report or feature request, if you have some questions, please subscribe our mailing list and send your question by email: https://rocketmq.apache.org/about/contact/, so I will close this issue, but please feel free to reopen it if you have more questions.


Converting a File or Blob into a byte slice &[u8]

I'm tryin to implement drag and drop and I'd like to go get the byte slice for the file that is uploaded.
I can easily get a File or Blob, but I'm unsure about how to convert them into a byte slice.
Is there a way to do that right now?
Thanks!!

Hmm this is a classic case of jumping to wasm-bindgen instead of doing some thinking...
Did a quick google and it turns out that you can convert a blob into a typed array using a FileReader.
I'll give that a stab https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.FileReaderSync.html

Just in case anyone else comes here.. it ended up looking like this:
html! {
<div
    ondrop=move |event: web_sys::DragEvent| {
       event.prevent_default();
       event.stop_propagation();

       let store = Rc::clone(&store_clone);

       let dt = event.data_transfer().unwrap();
       let files = dt.files().unwrap();
       let psd = files.item(0).unwrap();

       let file_reader = web_sys::FileReader::new().unwrap();
       file_reader.read_as_array_buffer(&psd).unwrap();

       let mut onload = Closure::wrap(Box::new(move |event: Event| {
           let file_reader: FileReader = event.target().unwrap().dyn_into().unwrap();
           let psd = file_reader.result().unwrap();
           let psd = js_sys::Uint8Array::new(&psd);

           let mut psd_file = vec![0; psd.length() as usize];
           psd.copy_to(&mut psd_file);

           store.borrow_mut().msg(&Msg::ReplacePsd(&psd_file));
       }) as Box<FnMut(_)>);

       file_reader.set_onload(Some(onload.as_ref().unchecked_ref()));
       onload.forget();
    }
>
</div>


sign binaries (in separate directories)

closing in favour of filenames no folders: https://github.com/Dynatrace/dynatrace-configuration-as-code/pull/872


Less gb.... Again.


remove rocketchat from docs

✂
closes #757

🚀 🔪

🧹

Codecov Report

Merging #760 (1059577) into main (b7d3d7f) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 1059577 differs from pull request most recent head a31f108. Consider uploading reports for the commit a31f108 to get more accurate results

@@            Coverage Diff            @@
##              main      #760   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          322       322
  Lines        20144     20144
=========================================
  Hits         20144     20144

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 2940796...a31f108. Read the comment docs.


Add a real-time circuit breaker and downgrade mechanism to avoid high-latitude data and excessive trace data

Is your feature request related to a problem? Please describe.
Scenario 1: The service running on the server depends on the external database. When the database is damaged and the server has a steady stream of requests, a large amount of meaningless abnormal trace data will be generated and recorded on a specific topology.
Scenario 2: In a large-scale k8s cluster, unmergeable URL and SQL statements may lead to excessive metric data. When the subsequent processing components such as Receiver/Prometheus cannot bear the pressure, unforeseen data loss will occur.
Describe the solution you'd like
In Scenario 1, We need a mechanism that automatically turns on under high pressure to ensure that meaningless and repetitive traces are not saved in large numbers, to ensure that those more valuable data (such as topology) can get enough resources for processing. This consists of two parts: judging whether the current Trace pressure affects the operation of other parts, and judging whether a newly generated Trace data is worth processing and recording.
In Scenario 2, We need a controllable service degradation logic to gradually reduce the impact of a divergent dimension (such as URL and SQL) on the entire system. The order of degradation can range from a divergent dimension of service to one or more dimensions of the entire monitored cluster. We also need to determine which dimensions of data are more valuable to determine the order of demotion.
Describe alternatives you've considered
In Scenario 2, we can also add some logic to converge already divergent dimensions

Adding a dynamic configuration to manually adjust the header sampling rate for different services at the acquisition end is also a solution for scenario 1. After the user knows that the service is abnormal, before the repair is completed, close or reduce the error and slow trace collection of related services, while other services in the cluster are running normally.


Add entity relation cards, pull requests plugin

Bumps versions from @backstage.
Adds the new relation cards:

EntityDependsOnComponentsCard
EntityDependsOnResourcesCard
EntityHasResourcesCard

Adds the @roadiehq GitHub PRs plugin, which demos nicely with our Backstage components.
Signed-off-by: Tim Hansen<EMAIL_ADDRESS>

Blocked by https://github.com/backstage/backstage/pull/5773; could be fixed by adding zen-observable as a dependency and import 'zen-observable'; somewhere, but no particular rush on this PR.

https://github.com/backstage/backstage/pull/5773 is merged now!


feature support Jdbc catalog

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[x] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[x] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.06 seconds
load time: 440 seconds
storage size:<PHONE_NUMBER>0 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221123130823_clickbench_pr_51640.html


controlling case (in-)sensitivity in glob

in python, ignoring case seems a bit awkard, eg: https://stackoverflow.com/questions/8151300/ignore-case-in-glob-on-linux
what would be recommended way to have case insensitive glob with this library?
if too awkward to use, maybe we should have a flag to control that?

I wouldn't think it's that complicated. This could probably work similarly (or even be tied to) to the current isDos flag in the pattern compiler - default to case insensitivity on Windows but sensitivity otherwise. If we add this we can do it by passing the regex i flag to the regex module.

This turned out to be a bit more complicated than I thought but it's in there 😆
https://github.com/citycide/glob/pull/19/commits/7115d8d39d420beaf4bf4c3f167105183576c305

awesome! I'll put comment in that PR


AP-2021 Changed the citizen flow to redirect correctly

What
Link to story
Flow now runs correctly: User selects change link on CYA page to return to 'which payments do you receive' then directs to cash_income page before going back to CYA page. I have also added these steps to the relevant feature test.
Checklist
Before you ask people to review this PR:

[x] Tests and rubocop should be passing: bundle exec rake
[x] Github should not be reporting conflicts; you should have recently run git rebase master.
[x] There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
[x] The PR description should say what you changed and why, with a link to the JIRA story.
[x] You should have looked at the diff against master and ensured that nothing unexpected is included in your changes.
[x] You should have checked that the commit messages say why the change was made.

LGTM 💯


fix(timeseriescard): tooltip was not formatting in the correct locale

Closes #
Summary

bug found where the timeseriescard tooltip was not being formatted correctly in different languages.  Note: the x-axis was being formatted correctly for different timeseriescards

Change List (commits, features, bugs, etc)

fix(handleTooltip): initialize dayjs module with locale before using
fix(*Card): pass the locale along

Acceptance Test (how to verify the PR)

go to this story and switch locales to French in the knob in the deploy preview.  ?path=/story/1-watson-iot-timeseriescard--multi-line-interval-data-choices. Mouse over a liine of the chart and view the tooltip and verify the month comes first

Regression Test (how to make sure this PR doesn't break old functionality)

Verify english locales format correctly

Things to look for during review

[ ] Make sure all references to iot or bx class prefix is using the prefix variable
[ ] (React) All major areas have a data-testid attribute. New test ids should have test written to ensure they are not changed or removed.
[ ] UI should be checked in RTL mode to ensure the proper handling of layout and text.
[ ] All strings should be translatable.
[ ] The code should pass a11y scans (The storybook a11y knob should show no violations). New components should have a11y test written.
[ ] Unit test should be written and should have a coverage of 90% or higher in all areas.
[ ] All components should be passing visual regression test. For new styles or components either a visual regression test should be written for all permutations or the base image updated.
[ ] Changes or new components should either write new or update existing documentation.
[ ] PR should link and close out an existing issue

Is the date format supposed to change between fr and en? I am seeing the same format for both


Support docs for multiple aiocache versions

Docs in readthedocs point to master which is not the latest published aiocache version. Should support docs for multiple versions

Done, supported automatically by readthedocs


Screen Turning Blank after fetching new changes

After fetching all the new changes in my local repo. I am not able to see the UI. I am only able to see Navbar and Footer.
Screenshot

Server Logs

2020/08/30 13:44:19.785 [I] [parser.go:112]  generate router from comments
2020/08/30 13:44:19.946 [I] [asm_amd64.s:1373]  http server Running on http://:8000
2020/08/30 13:44:28.818 [D] [server.go:2836]  |      <IP_ADDRESS>| 404 |    416.573µs| nomatch| GET      /api/get-adapters
2020/08/30 13:44:28.818 [D] [server.go:2836]  |      <IP_ADDRESS>| 404 |    370.272µs| nomatch| GET      /api/get-models
2020/08/30 13:44:28.819 [D] [server.go:2836]  |      <IP_ADDRESS>| 404 |   1.148194ms| nomatch| GET      /api/get-enforcers

Client Logs
Compiled successfully!

You can now view web in the browser.

  Local:            http://localhost:3000/
  On Your Network:  http://<IP_ADDRESS>:3000/

Note that the development build is not optimized.
To create a production build, use yarn build.

@nodece Are these logs correct?


Migrations generated with previous version fail to apply after upgrade.

Bug report
Describe the bug
Migration files were generated on version 1.8.4 and have been applied successfully while using this version. But after upgrading, the first migration file will fail with:
Error: ERROR: function graphql._first_agg(anyelement, anyelement) does not exist (SQLSTATE 42883)
At statement 92:

--
-- Name: FUNCTION "_first_agg"("anyelement", "anyelement"); Type: ACL; Schema: graphql; Owner: supabase_admin
--

GRANT ALL ON FUNCTION "graphql"."_first_agg"("anyelement", "anyelement") TO "postgres";

To Reproduce

Install version 1.8.4
Generate migration file with remote commit
run supabase stop
run supabase start

should work as expected

run supabase stop
install<EMAIL_ADDRESS>run supabase start

Will fail to apply migration

Expected behavior
Migration files generated w/ previous versions of the CLI should still apply successfully w/ CLI upgrades.

Thanks for reporting this issue. Our resolution atm is to comment out lines containing changes to extension schemas like graphql. See #615 and #600.
Regarding the expected behaviour, we want the CLI to run all SQL files in supabase directory without modification. Unfortunately that means old _remote_commit scripts could break on new CLI versions, either due to bugs or breaking changes on the hosted platform. Users are encouraged to submit such issues so we can suggest patches but ultimately the old migration files have to be updated by users themselves.
Hope this clarifies.

I am having the same issue. I recently upgrade from version 0.29.3 (I know pretty old) to 1.15.0 and it shows errors such as
"ERROR: schema "extensions" does not exist" , auth.role() and "auth.users" does not exist.


319 update grouping and joining docs for main

Adds joining timeseries (rst) and grouping and filtering (.ipynb) to User Guide section
Still issues with image sizing when rendering via sphinx

@samlamont I am going to merge this to keep moving, but is there a reason why you didn't move the files into the user_guide directory?  Seems like leaving them in the tutorials dir just makes the directory structure inconsistent with the docs themselves.


[API] setting a water quality boundary condition on a tank

I have a need to use an external process to explicitly set water age at a Tank during a water quality simulation. While setting a WQ "Source" may work for non-age simulations, it appears that I can only force a Reservoir to have a specific age.
To force the Tank to have the "proper" age, I have previously addressed this need by adding special handling to the EN_setnodevalue function:
  case EN_INITQUAL:
    if (value < 0.0)
      return (202);
    node->C0 = value / m->Ucf[QUALITY];
    if (isTank) {
      tank->C = node->C0;
    }
    break;

I suppose the question is, does this rub anyone the wrong way? Is this a misuse of the toolkit on a philosophical level? And if I open a PR for this change, what discussion would anyone like to have about this?

It rubs me the wrong way since it would be violating conservation of mass by not considering how age in the tank gets mixed with the age of the inflow during a filling period. This would show up in the reported mass balance listing.
Another way to simulate age is by treating it as a chemical with a zero-order reaction whose rate coefficient is +1 in all pipes. To keep the age in the tank constant at some specified initial value you would set its rate coefficient to 0. Then to make sure that water entering or leaving stays at that value you place a Set Point booster source at a node directly connected to the tank with its quality value the same as used for the tank. I tried this with Net1.inp, setting the age in its Tank 2 to 24 hrs, and it seemed to work (see the figure below -- Junction 1, which contains the source, is a node added directly below the tank).

P.S. @samhatchett out of curiosity, where did the code snippet you showed come from. It's quite different from that in the EN_setnodevalue function in epanet.c.

@LRossman the snippet came from an outdated private branch of epanet that I used to "get the job done" - just going through all that and trying to clean up and/or atone for my transgressions ;)
The approach makes sense, and I completely agree that my suggestion is a blatant abuse of power w/r/t/ water quality modeling.


SET variable from INSERT INTO ... RETURNING

Introduction
I am trying to set a sqlpage variable from the result of an INSERT INTO ... RETURNING statement.
To Reproduce
List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema
SET api_exchange_id = (INSERT INTO api_exchange(name) VALUES ('get-access-token') RETURNING api_exchange_id);

Actual behavior
sql parser error: Expected variable value, found: INTO at Line: 4, Column 13
SQLPage could not parse and prepare this SQL statement

Version information

OS: Linux 6.6.13-gentoo
Database: Postgresql 16.2
SQLPage Version: v0.20.2

Additional context
I have successfully managed to SET variables using SELECT queries, e.g.
SET base_url = (SELECT base_url FROM env WHERE name = 'sandbox');

However I am unable to do this using INSERT INTO ... RETURNING style expressions. This means that I have to insert a row and then subsequently query for the id. It would be excellent if I could do that in a single statement to avoid risk of concurrent collision.

Hello and welcome to SQLPage !
Unfortunately, SET xxx = INSERT ... is not valid SQL and is not supported by the sql parser. There are several ways you work around that. In you case, since you are using postgres, the easiest is to use currval. There is no risk of collision, since currval guarantees it returns the value last inserted ** in the current session** (even if other values have been inserted in other sessions in the meantime), and SQLPage guarantees that a single query is always handled in a single database session.

Ah - great advice, thank you +1
TIL: currval is session scoped. Excellent.
Am really enjoying sqlpage, it is really refreshing. Thank you for your hard work.

In case someone stumbles upon this, but uses a different database, the equivalent

in MySQL is https://dev.mysql.com/doc/refman/8.3/en/information-functions.html#function_last-insert-id
in SQLite is https://www.sqlite.org/lang_corefunc.html#last_insert_rowid
in Microsoft SQL Server is https://learn.microsoft.com/en-us/sql/t-sql/functions/scope-identity-transact-sql?view=sql-server-ver16

all of them offer the same safety guarantees in face of concurrency.


solarus

New Engine Package Submissions

[ ] Have you followed the instructions in the build documentation?
[ ] Have you run the build locally and ensured the package allowed you to launch and play the Steam game?
[ ] Have you updated the packages.json file?
[ ] Have you ensured that there is not already a pull request or active engine package for the one you are adding?

Common Code Submissions

[ ] Have you verified that the changes are isolated to the features or fixes you are wanting to do?
[ ] Have you tested at least one of the engines to ensure that your changes do not break existing workflow?
[ ] Have you described what your changes are accomplishing?

@NerosTie Can you download the attached engine and see if it works for the game?
The easiest way to run this would be to extract the attached binaries to the game folder (extracting the tar.xz inside the zip)
dist.zip
and then run the following in Terminal (starting from that window):
~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ./run-ocean-heart.sh
If that works, then you could also take the packages.json from this PR and replace it with the cached one and see if it launches from Steam.
If all that works, then I can merge this one in.

I don't own the game on Steam for now, but with the version from GOG it works as it should. So I think it's good.

Ok, I'll go ahead and merge it. If anyone has any issues with it, they can always create a new ticket.


Created typings for FHIR DSTU2 v0.5.0

Created typings for FHIR DSTU2 v0.5.0. See http://hl7.org/fhir/2015May/index.html for details.

fhir/fhir.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/fhir
http://bower.io/search/?q=fhir
others?

[X] has a test file? (fhir/fhir-tests.ts or others)
[ ] pass the Travic-CI test?

@meirgottlieb thanks mate!

@meirgottlieb, were your tests automatically generated, or did you write them all yourself?

They were generated. The FHIR spec comes with a large number of JSON
documents as examples. I generated the tests using the example documents.
Meir
On Fri, Aug 7, 2015 at 7:48 PM Daniel Rosenwasser<EMAIL_ADDRESS>wrote:

@meirgottlieb https://github.com/meirgottlieb, were your tests
automatically generated, or did you write them all yourself?
—
Reply to this email directly or view it on GitHub
https://github.com/borisyankov/DefinitelyTyped/pull/4787#issuecomment-128880607
.

@meirgottlieb as part of my work in https://github.com/Microsoft/TypeScript/issues/4081, I ran into some issues with this because the tests utilize use structural subtyping (e.g. implicitly taking the structure of a MedicationPrescription where a Resource is expected). We are experimenting with the idea of making excess object literal properties an error in TypeScript 1.6. For the most part it has found a lot of bugs in several codebases (which is great!) but it significantly breaks the FHIR tests. See https://github.com/Microsoft/TypeScript/issues/4234 for more details.
So perhaps we can figure something out - probably both with generating the tests and with generating the .d.ts itself (I've found other problems as a result of this - resourceType should be on the Resource type, not just DomainResource).

I can make any adjustments as needed. What do you suggest?

Hey @meirgottlieb, we can do one of two things:

Make every base type an explicit base type (i.e. Resource becomes ResourceBase) and then make Resource a union of all the base's subtypes (i.e. type Resource = MedicationPrescription | /*...*/;
Add an index signature for every type. This is easy but it permits excess properties.

Let me know your thoughts.

I'm going to go with option #1. I'll let you know when DefinitelyTyped is
updated.
On Tue, Sep 8, 2015 at 4:32 PM Daniel Rosenwasser<EMAIL_ADDRESS>wrote:

Hey @meirgottlieb https://github.com/meirgottlieb, we can do one of two
things:

Make every base type an explicit base type (i.e. Resource becomes
ResourceBase) and then make Resource a union of all the base's
subtypes (i.e. type Resource = MedicationPrescription | /.../;
Add an index signature for every type. This is easy but it permits
excess properties.

Let me know your thoughts.
—
Reply to this email directly or view it on GitHub
https://github.com/borisyankov/DefinitelyTyped/pull/4787#issuecomment-138722336
.

Cool - when you're ready to test, rename fhir-tests.disabled.ts to fhir-tests.ts and try it out.


Document how to profile

This PR is part of #384.

Notes:
Please read our contributing guidelines first.
In particular:

You must add tests when making code changes.
This keeps the code coverage level up, and helps ensure the changes work as intended.
When fixing a bug, you must add a test that would produce the bug in the master branch, and then show that it is fixed with the new code.
New code additions must be well formatted. Changes should pass the pre-commit workflow, which you can set up locally using pre-commit.
Docstring additions must render correctly, including escapes and LaTeX.
Finally, it is essential that all contributions in this PR are license-compatible with PyVRP's MIT license.
Please check that this PR can be included into PyVRP under the MIT license.

@N-Wouda Can you check this again? I updated the profiling section with instructions for macOS and used markdown tabs to distinguish between Linux and macOS.

I know the Linux stuff works because I run exactly that locally, so that should be OK. I cannot check the Mac instructions, but if this works for you then it's fine by me.


cancel a compression in progress [feature request]

Some compressions (very large resolutions and bytes in size) can take a while and be CPU expensive. It should be a way to cancel a compression in progress in WebWorker mode (example of use cases: in SPA, when user remove file from form or change file again).

Something like a cancelToken that contains a Promise, which can be resolved/rejected by the user.

In the coming releases, we will use AbortController for canceling mechanism:
https://developer.mozilla.org/en-US/docs/Web/API/AbortController
reference: https://axios-http.com/docs/cancellation

This feature is implemented in v2.0.0. For example:
function handleImageUpload(event) {

  var imageFile = event.target.files[0];

  var controller = new AbortController();

  var options = {
    // other options here
    signal: controller.signal,
  }
  imageCompression(imageFile, options)
    .then(function (compressedFile) {
      return uploadToServer(compressedFile); // write your own logic
    })
    .catch(function (error) {
      console.log(error.message); // output: I just want to stop
    });

  // simulate abort the compression after 1.5 seconds
  setTimeout(function () {
    controller.abort(new Error('I just want to stop'));
  }, 1500);
}


Make side mouse buttons able to jump in code

Currently there's ctrl+- and ctrl+shift+- to jump forward and back, but ideally this should also be possible with mouse. I initially looked into adding mouse buttons as options for key binds but that seemed like a much taller task than expected, so I settled on simply baking it into the program. This might not be something you want, but it does what it has to so do with this what you will.

[ ] Added an entry to CHANGELOG.md if this change could be valuable to users

I believe it should be implemented with mouse keybinds properly rather than adding hardcoded keys for specific actions

This has been implemented in #1835


Better Error Message when Upstream Branch Doesn't Exist

Prerelease expects the upstream branch is the same name as the local branch. If this isn't the case, the error message is cryptic and not helpful. Please make it better :)

Believed this was fixed with PR https://github.com/LeanKit-Labs/tag-release/pull/67


Portrait image taken by iPhone6s got counter-clock 90 degrees rotated

Please see attached image for details.

Stuck on same issue


Needs to get the default value of an input parameter in a resource function

Description:
When there is an input parameter with a default value in a resource function, there should be a way to get the default value of this parameter. This is a requirement for the Ballerina GraphQL package implementation.
Related: #27417, https://github.com/ballerina-platform/ballerina-standard-library/issues/1266

Do you need this during the runtime or compile time? Default values will be captured as closures. So you can't get a value unless it is a constant value during the compile time. At runtime, you have to manually evaluate the closure to get the value. But that is dangerous because closures can mutate the state.
Can you summarize the use case here?

Currently, we create the GraphQL schema for a given service at the runtime, since we don't have a direct way to create the schema at the compile time and propagate that to the runtime.
The use case of this specific scenario is that we need the default values of the input parameters to support GraphQL introspection. When a resource function has an input parameter, it maps to an InputValue type in GraphQL. If there is a default value for that input value, GraphQL clients should be able to query the GraphQL endpoint and view the default value of a given input value. Currently, we do not have a way to get this default value. (https://github.com/ballerina-platform/ballerina-standard-library/issues/1377)

Any update on this?

@chiranSachintha Can we do this after function default value change? I mean technically jBallerina backend team only need to provide an API to access the closures right?

Hi, any update on this?

@warunalakshitha can you look into this?

Any update on this? We cannot fix https://github.com/ballerina-platform/ballerina-standard-library/issues/1377 without this.

Any update on this? We cannot fix ballerina-platform/ballerina-standard-library#1377 without this.

We are still working on passing default values to runtime( Can be tracked via https://github.com/ballerina-platform/ballerina-lang/issues/36020) We will update on the progress

Closing the issue since https://github.com/ballerina-platform/ballerina-lang/issues/36020 is done.


GetID for new Scripts

Is there any Way to get the Player ID in new Scripts?
I try to make a Banksystem ive Added the Bankmoney to the Database at Characters and have done some Publics in the PlayerManager for TakeBankMoney TakeMoney GiveMoney and GiveBankMoney.
And Now i try to TriggerClientEvent if Player Stands before an ATM. When Player choose Withdraw i Need to Trigger TakeBankMoney nur i have no GetIDbyName LG something.
Hope anyone understands my Problem and someone can help me.

I think you should use the Checkpoint class to do it by creating a new checkpoint like this:
Checkpoint checkpoint = new Checkpoint(new Vector3(xPos, yPos, zPos), this.CharacterEnteredSpot, this.CharacterExitedSpot, 1, 2.0f, 66, 179, 244);
Now you create the methods this.CharacterEnteredSpot and this.CharacterExitedSpot like this
public void CharacterEnteredSpot(Checkpoint spot, Character character)
{
     character.TriggerEvent("EVENT_ENTERED_ATM_SPOT");
}

You can find example for Checkpoint in FishingZone.cs
Now when player clicks the withdraw then you need to send an event to the server with the money amount. Look at the EventHandler.cs for that.

Thanks for your Help ATMs + Banksystem Done and everything is working included Database Save
BTW: Thanks for this Script its pretty nice and easy to understand. Good Job

hi there ! first much thanks for that script  @Samppaa we are playing it in our small community  so we are still searching for new updates  ,. my question to @RoxiiCz is it possible to share the "atm & banksystem"
we re looking for every stuff that work with this scripts for better roleplay on our server
*have a nice day

Its hard to share because i've implemented all Functions to the existing Scripts

ah ok i understand .. thx :)  gl hf with your project m8

I will make the bank system and incorporate it in the script when I have time.


fixing styling issues on downloader.py - passes pydocstyle

Still some styling issues but we'll add this intermediate change.
document_type should be str or DocumentType
the type hints for some parameters are missing as well.


fix for default expanded flag

Description
Changes proposed in this pull request:

set default value to false for defaultExpanded flag.

Related issue(s)

/test pull-busola-integration-cluster-k3d


Subcommand of a subcommand?

from pathlib import Path

from cyclopts import App
from cyclopts.types import ResolvedExistingDirectory

@app.command
def backup(
    *,
    email: str,
    password: str,
    action: Literal["download", "create", "delete", "list"],
    destination: ResolvedExistingDirectory = Path.cwd(),
    name: str | None = None,
) -> None: ...

if __name__ == "__main__":
    app()

Instead of --action xxx can I somehow get subcommands with different set of options?
myapp backup create --email xxx --password xxx --name "newbackup.zip"

myapp backup list --email xxx --password xxx --style "markdown"

myapp backup delete --email xxx --password xxx --name "oldbackup.zip"

myapp backup download --email xxx --password xxx --name "newbackup.zip" --destination /path/to/folder

That's exactly what I needed, thank you 👍


88 fix synchronising infinite loop

Closes #88

Unexpected values for P[i, j] in _needleman_wunsch are now handled and do not keep the algorithm running in a loop
Missing tracking player coordinates in _create_sim_mat are now handled (though I am not 100% sure if this is the correct way to do it)

Oke thanks @rdghe  and @DaanGro  for the discussion, I think there are several things going here.
First of all, the data of the match utrecht rkc from tracab is just wrong. As mentioned before, the ball_status is alive while there are no player coordinations present, and this perfectly aligns with the first delay of the match. So what happens here is not really faulty by the package, but this will also not be the last time that we need to handle with faulty data.
There are different ways to tackle this. One way would be to raise a warning when the ball_status is alive, but too little (<7 per team) player coordinates are known for x consequetive seconds, this should maybe also block the synchronise_tracking_and_event_data() since we can not guarantee logical outputs when the data is faulty.
Another way would be to change the ball_status to dead once we see this happening, however, I am not a big fan of this since we can not be sure whether the ball_status is wrong or the player coordinates are wrongly not given which could make the syncroninisation faulty as well. Since we have not had many instances where the data was wrong, I would suggest to go for the first option.
Secondly, If I am right this would solve the problem in synchronise_tracking_and_event_data() that all(player_ball_diff) is np.nan, however, its still good to capture this once it occurs. I agree with @DaanGro  that we might not want to change the player_ball_diff to 0 since it will bias the algorithm to match an event to a tracking data frame where no player or ball coordinates are present. Taking the mean of the other two variables in the cost function will lead to better performance I think (but not sure of course).
Although this would solve the problem in synchronise_tracking_and_event_data(), we'll still need prevent the infinite loop issue. The ValueError proposed should fix this, however, maybe the error message should be a bit more clear for package users that have not looked into the needleman wunch algorithms. Maybe add a general sentence like f"An error occured when synchronising the tracking- and eventdata. The algorithm got stuck due to an unexpected value of P[{i}, {j}]: {P[i, j]}"
If you do not see any mayor issues with this approach, I would suggest that @rdghe makes this small changes to the current code and add some tests for them. I will open a new issue to handle the sanity check for faulty data, to raise a warning and to block the synchronise_tracking_and_event_data() function. If you have some concerns about this approach, do not hesitate to share them!

I agree with what @Alek050 says. I think the ValueError will be solved by the changes made. But maybe it is still good to keep this in so that the user never gets an infinite loop.