Why are these two C# gRPC examples run in different ways?

In example HelloWorld in https://grpc.io/docs/quickstart/csharp/

from the examples/csharp/Helloworld directory:
Run the server
cd GreeterServer
dotnet run -f netcoreapp2.1

In another terminal, run the client
cd GreeterClient
dotnet run -f netcoreapp2.1

In example RouteGuide in https://grpc.io/docs/tutorials/basic/csharp/

Run the server, which will listen on port 50052:
cd RouteGuideServer/bin/Debug/netcoreapp2.1
dotnet exec RouteGuideServer.dll

Run the client (in a different terminal):
cd RouteGuideClient/bin/Debug/netcoreapp2.1
dotnet exec RouteGuideClient.dll

In the second example, why  use dotnet exec  not dotnet run? (https://github.com/dotnet/sdk/issues/5573 says dotnet exec is for internal use only)
Can I run the service and client in the second example, using the same way of running first example? Why do I have following errors?
$ cd RouteGuideServer
$ dotnet run
Unhandled exception. System.IO.FileNotFoundException: Could not find file '/home/t/RouteGuide/RouteGuideServer/route_guide_db.json'.
File name: '/home/t/RouteGuide/RouteGuideServer/route_guide_db.json'
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at Routeguide.RouteGuideUtil.ParseFeatures(String filename) in /home/t/RouteGuide/RouteGuide/RouteGuideUtil.cs:line 98
   at Routeguide.Program.Main(String[] args) in /home/t/RouteGuide/RouteGuideServer/Program.cs:line 30

and in another shell:
$ cd RouteGuideClient
$ dotnet run
Unhandled exception. System.IO.FileNotFoundException: Could not find file '/home/t/RouteGuide/RouteGuideClient/route_guide_db.json'.
File name: '/home/t/RouteGuide/RouteGuideClient/route_guide_db.json'
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at Routeguide.RouteGuideUtil.ParseFeatures(String filename) in /home/t/RouteGuide/RouteGuide/RouteGuideUtil.cs:line 98
   at Routeguide.Program.Main(String[] args) in /home/t/RouteGuide/RouteGuideClient/Program.cs:line 231

Thanks.

I agree that this is inconsistent and just dotnet run would have been simpler, but currently the dotnet exec RouteGuideServer.dll is required because when running the client/server, you actually need to be in the output directory (hence the cd RouteGuideServer/bin/Debug/netcoreapp2.1), otherwise it won't find route_guide_db.json - exactly as you reported.

This should be fixed at some point, but it's not urgent because the example works the way it is.

Since @jtattermusch used the word 'fixed', i'm going to change this to a kind/bug

If it's actually a question, please move the question to one of the larger community forums

I reclassified as "enhancement" because currently the instructions are working just fine.


Update license year range to 2018

Update license year range to 2018

Codecov Report

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

@@            Coverage Diff            @@
##             master    #1916   +/-   ##
=========================================
  Coverage     81.03%   81.03%
  Complexity     6210     6210
=========================================
  Files           137      137
  Lines         23091    23091
  Branches       5348     5348
=========================================
  Hits          18711    18711
  Misses         3033     3033
  Partials       1347     1347

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 c18836b...2646d4f. Read the comment docs.


Julia 0.5 compatibility

Ensure code works with Julia 0.6.
Create a new release.

Final version is V0.2.1


Implemented fixes found in master branch (PR#95)

Implemented fixes found in master branch (PR#95) for C# into TypeScript/JS version

@JuanAr,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Add client/plugins to Upgrade documentation

The current upgrade documentation does not include a reference to the client/plugins directory. These should be updated to include ensuring this directory, just like plugins is replaced in steps 7, 8, and 14.

@hanzei If this is a required step when plugins are installed/enabled, then yea it's okay to add 👍

fixed in: https://github.com/mattermost/docs/commit/1dbf1dbd1ffbbcd1268199a91090f680c43155b9

Thanks!


#236 audio content transcribing command and automatic trigger

Added functionality for transcribing speech in media content by replying to it with '/tekstitä'-command. Added setting for automatic Telegram voice and video note message transcribing when such is sent to a chat (original message or forwarded message). Can transcribe audio and video files as well for at least most common file types. Audio transcribing is done with OpenAI Whisper api.

Kommentit voisi resolvaa

@taturl valmis uudelleenarviointia varten. Kaikki korjaukset viimeisimmässä commitissa.


Filter in manga not showing up when downloading

Steps to reproduce

Download any manga
Open manga page and select filter

Expected behavior
Filter pop up screen should show up
Actual behavior
It doesn't show when chapters are being downloaded
Crash logs
No response
Neko version
2.11.3
Android version
Android 12
Device
Samsung s21 ultra
Other details
https://user-images.githubusercontent.com/59638889/198813938-5b370e38-a360-42c0-b9ad-85578fc3da45.mp4
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to the newest version Latest.
[X] I have filled out all of the requested information in this form.

2.11.5


errors occured when testing

While run the examples/test.py, there are some errors:
1、It failed in  examples/test.py[line:70] model = models.create(args.arch, pretrained=False, num_features=args.features, dropout=args.dropout, num_classes=0), the solution is to set pretrained=True
2、It failed in examples/test.py[line:90]  evaluator.evaluate(test_loader, dataset.query, dataset.gallery, cmc_flag=True, rerank=args.rerank), where the args.rerank is True.  The reason is that AttributeError: 'tuple' object has no attribute 'numpy' in spcl/evaluators.py[line:121] distmat = re_ranking(distmat.numpy(), distmat_qq.numpy(), distmat_gg.numpy()), the distmat_qq and distmat_gg is tuple but not tensor. I don't know how to solve this problem.
Please help to solve these problems.

Could you provide a detailed log when this error occurs? I did not meet any error when using pretrained=False for testing.

Thank you for pointing out. I did not notice it because I did not use reranking for the paper. The solution is to change Line 119-120 in https://github.com/yxgeee/SpCL/blob/master/spcl/evaluators.py to

distmat_qq, _, _ = pairwise_distance(features, query, query)
distmat_gg, _, _ = pairwise_distance(features, gallery, gallery)

When pretrained=False,  error log is:
Traceback (most recent call last):
  File "/home/zmwang/project/darcy/SpCL/examples/test.py", line 124, in <module>
    main()
  File "/home/zmwang/project/darcy/SpCL/examples/test.py", line 56, in main
    main_worker(args)
  File "/home/zmwang/project/darcy/SpCL/examples/test.py", line 71, in main_worker
    model = models.create(args.arch, pretrained=False, num_features=args.features, dropout=args.dropout, num_classes=0)
  File "/home/zmwang/project/darcy/SpCL/spcl/models/__init__.py", line 55, in create
    return __factory[name](*args, **kwargs)
  File "/home/zmwang/project/darcy/SpCL/spcl/models/resnet.py", line 140, in resnet50
    return ResNet(50, **kwargs)
  File "/home/zmwang/project/darcy/SpCL/spcl/models/resnet.py", line 69, in __init__
    self.reset_params()
  File "/home/zmwang/project/darcy/SpCL/spcl/models/resnet.py", line 126, in reset_params
    self.base[3].load_state_dict(resnet.layer1.state_dict())
  File "/project/zmwang/YeJ/anaconda3/envs/d_SpCL/lib/python3.7/site-packages/torch/nn/modules/module.py", line 777, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MaxPool2d:
	Unexpected key(s) in state_dict: "0.conv1.weight", "0.bn1.weight", "0.bn1.bias", "0.bn1.running_mean", "0.bn1.running_var", "0.bn1.num_batches_tracked", "0.conv2.weight", "0.bn2.weight", "0.bn2.bias", "0.bn2.running_mean", "0.bn2.running_var", "0.bn2.num_batches_tracked", "0.conv3.weight", "0.bn3.weight", "0.bn3.bias", "0.bn3.running_mean", "0.bn3.running_var", "0.bn3.num_batches_tracked", "0.downsample.0.weight", "0.downsample.1.weight", "0.downsample.1.bias", "0.downsample.1.running_mean", "0.downsample.1.running_var", "0.downsample.1.num_batches_tracked", "1.conv1.weight", "1.bn1.weight", "1.bn1.bias", "1.bn1.running_mean", "1.bn1.running_var", "1.bn1.num_batches_tracked", "1.conv2.weight", "1.bn2.weight", "1.bn2.bias", "1.bn2.running_mean", "1.bn2.running_var", "1.bn2.num_batches_tracked", "1.conv3.weight", "1.bn3.weight", "1.bn3.bias", "1.bn3.running_mean", "1.bn3.running_var", "1.bn3.num_batches_tracked", "2.conv1.weight", "2.bn1.weight", "2.bn1.bias", "2.bn1.running_mean", "2.bn1.running_var", "2.bn1.num_batches_tracked", "2.conv2.weight", "2.bn2.weight", "2.bn2.bias", "2.bn2.running_mean", "2.bn2.running_var", "2.bn2.num_batches_tracked", "2.conv3.weight", "2.bn3.weight", "2.bn3.bias", "2.bn3.running_mean", "2.bn3.running_var", "2.bn3.num_batches_tracked".

Process finished with exit code 1

Thanks. I have located the bugs and solved them. You could pull the repo again.


Migration struct can represent many invalid states/duplicates information

The way Migration and MigrationFile are currently structured, a lot of handling of different cases is required, which could be prevented in the type system directly.
https://github.com/Keats/dbmigrate/blob/40b6c5cd18c3789e4a845f64501cf11eab6d9056/dbmigrate-lib/src/files.rs#L30-L51
Migration
Let's start with Migration. Since up and down are Options, there are 4 possible states:

up and down (makes sense)
only up (might make sense)
only down (probably wrong
none (certainly wrong)
I would argue that you should either only allow cases where up and down exist (1), or if you want to support the case where there is no down, at least make only down an Option (2).

up and down required: There is only 1 possible state
up required, down optional. Valid states:

up and down
only up

MigrationFile
I see several issues here:

Why is content an option? If there is no content, there shouldn't be a MigrationFile in the first place. If the file is empty, content should be an empty string, not None.
Putting the direction in the MigrationFile duplicates that information, making it potentially not match. One could for example put a MigrationFile with direction up into the down-Part of a Migration.
Both name and number should be the same between up and down migrations (or the number at least). Otherwise they can get out of sync which doesn't really make any sense.

Possible Solution
I suggest flattening everything down into the Migration struct:
struct Migration {
    pub up: String,
    pub down: Option<String>,
    pub number: u32, //negative migration numbers don't make any sense
    pub name: String, //the filenames can be calculated from the name if needed
}

This would greatly simplify the use of this library.

Looks like a good idea! I don't remember why the structs are that way to be honest.

I'm quite busy right now, so no idea if I can actually find the time. But if so I will make a pull request.


Fall back to polling

Fall back to a polling mechanism in a polling thread if normal filesystem watching mechanisms fail, or if explicitly requested for a specific watcher.

Doesn't Node already have a facility for this?

Yes, it does, and it's one possibility for an implementation.
Polling mode will mostly likely be triggered if you (a) open a project on a remotely-mounted filesystem or (b) run out of inotify handles on Linux. My goal would be for polling mode to fail by increasing event latency rather than eating your CPU if you open a large project (~10k files, say). I'm guessing that fs.watchFile would err on the "eat your CPU" side :smile:


build docker image

Multiarch support

arm64
amd64

publish to rpc-proxy package within this repo

fixed by #7

fixed by #7


Update examples for Python3

For example, the installation instructions still list info for Python2, and most of the routines use standard str instead of bytes objects.
Since Python3 is the main target of Pwntools now, the docs should be updated to reflect this.  See #8 for additional information.

@zachriggle  I according to you.

@zachriggle  I according to you.


Build task.param_kwargs dynamically.

Description, Motivation and Context
In the current task constructor, all task parameters at initialization time are stored in param_kwargs:
    def __init__(self, *args, **kwargs):
        params = self.get_params()
        param_values = self.get_param_values(params, args, kwargs)

        # Set all values on class instance
        for key, value in param_values:
            setattr(self, key, value)

        # Register kwargs as an attribute on the class. Might be useful
        self.param_kwargs = dict(param_values)  # <--- set once

Dynamic changes of parameter values are not reflected in this dict, which is somewhat dangerous. Consider this example using util.common_params (which uses param_kwargs):
class MyTask(luigi.Task):

    weight = luigi.FloatParameter(default=0.)
    unit = luigi.ChoiceParameter(default="g", choices=("g", "kg"))

    def __init__(self, *args, **kwargs):
        super(MyTask, self).__init__(*args, **kwargs)

        # store weight internally as grams
        if self.unit == "kg":
            self.weight *= 1000

    def requires(self):
        required_cls = ... # class of the required task
        common_params = luigi.util.common_params(self, required_class)
        #
        # -> common_params["weight"] will have the wrong value when unit is kg!
        #
        return required_cls(**common_params)

(ok, this might not be the best example...imagine a situation where a parameter value changes after Task.__init__)
util.common_params uses the param_kwargs attribute which is not synchronized to the actual task parameters at the time it is called.
This PR makes param_kwargs a property so its content becomes dynamic. There is a small implication on task.__eq__ which currently compares the param_kwargs dict between two instances. This might be too inefficient with dynamic properties, but I think it should be safe to compare task.task_id instead.
Have you tested this?
No new feature was added, so the existing tests should completely cover changed code.

I'm quite sceptic to this. Is it ever necessary to mutate the parameters?

I guess this strongly depends on the use case / personal task setup. In our analysis code, we definitely need to change some parameters (but only on rare occasions) and avoiding this would have some inconvenient implications. But this is just how we use it, so this might not really apply to all users ;)
Independently, I think it's somewhat confusing if a simple setattr on a task parameter value such as
task = MyTask(param=1)
task.param = 2
# task.param_kwargs["param"] => 1

can lead to sync issues between the param_kwargs field (which is used in various places) and the actual parameter value. Instead of making param_kwargs dynamic, one could also disable the setter on task parameters.

one could also disable the setter on task parameters.

I would prefer this. What's wrong with simply having computed fields?

I would prefer this.

Me too. How about this addition to the base task:
    def __getattribute__(self, attr):
        if attr != "__class__" and isinstance(getattr(self.__class__, attr, None), luigi.Parameter):
            return self.param_kwargs[attr]
        else:
            return super(Task, self).__getattribute__(attr)

    def __setattr__(self, attr, value):
        if isinstance(getattr(self.__class__, attr, None), luigi.Parameter):
            self.param_kwargs[attr] = value
        else:
            super(Task, self).__setattr__(attr, value)

Unfortunately this is not possible with __getattr__ (which I would prefer), since the parameters are registered on the class with the same name, so __getattr__ would never be invoked for them. But the above implementation is safe nevertheless. One could also drop https://github.com/spotify/luigi/blob/1192003388c7e661962a76102e7668256a67022d/luigi/task.py#L436-L439 then (as well as the current changes in this PR).

I think we're over-thinking this. What about a seperate PR with only the .task_id == change? I would love to make the parameter flags unsettable but I don't want to break compatibility now. Also I'm not sure the `get/setattribute`` magic is worth it. Maybe just encourage our users to not set the instantiated parameters?

I think you're right. Especially the getattribute is maybe just too much for this case. Will open a new PR with the task_id comparison.


Error While Staking NFT's using GEM NFT Staking Repo

ERROR:
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1785
Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE invoke [1]
Program log: Instruction: Stake
Program log: stake

I am also facing the same issue while staking the new gem(NFT) and got 2 errors on the console:
Error 1:
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1785
Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE invoke [1]
Program log: Instruction: Stake
Program log: stake
Program log: AnchorError thrown in programs/gem_farm/src/instructions/stake.rs:80. Error Code: VaultIsEmpty. Error Number: 6021. Error Message: vault doesnt't containt any gems.
Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE consumed 34628 of 200000 compute units
Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE failed: custom program error: 0x1785
Error 2:
Error: AnchorError thrown in programs/gem_farm/src/instructions/stake.rs:80. Error Code: VaultIsEmpty. Error Number: 6021. Error Message: vault doesnt't containt any gems.
at wt.parse (index.js:1:11565)
at Mt (index.js:1:12745)
at yr._rpcFn (index.js:16:37567)


Updates to breadcrumbs & headers throughout AWX, EDA, Hub

https://issues.redhat.com/browse/AAP-25027
Updates to breadcrumbs & headers in AWX, EDA, Hub in terms of sentence case and with the resource name

Will do separate PRs for each service


Ability to rename custom color and change default primary value (instad of custom040)

When the custom color is added it is being added as custom0 and custom1 which is not helpful.
By default, the Material theme does not generate the colors for Warning or Success. When those colors are added to the theme as custom colors, it would help to identify which color is used for which. This is extremely helpful when the created styles are used by many designers on the team who maybe are not familiar with technical terms.
My purpose of adding custom color is to keep some color static, like brand color or the warning, success colors. While keeping the ability to change colors dynamically for another part of the UI. Renaming the field would help to make a clear distinction.
The second issue is there is no way for me to define proper success and warning color following the current scheme where it automatically selects the value 40 for the custom color. Even in the example image shown on the material3 website, I would not be able to get those orange and green colors.

I want this so, so badly. The fact we can't insert a shade to a custom token makes creating original designs with dynamic color impossible within Figma.
When the plugin was first released, I thought this would be an option. In any case, one of the ideas I've had was to write the desired shade as a description of a color style and have it be recognized by the plugin and assigned properly.

Haven't really gone through all the edge cases and potential accessibility issues. I'm sure Google's designers would know it best. It's a very important feature that I think deserves more attention.

Just added support for custom color, rename and delete on the web version! 🎉
https://material-foundation.github.io/material-theme-builder/#/dynamic
Working on rename support for the Figma version.

This is as designed, but the original key color used as input will be available in export. If it is not or missing on a platform please file an issue!
and you are welcome 🎉


Python3

test on Python 3, add classifiers, and fix an issue with ensuring files are opened in binary mode

@jamesturk this was great to see, thanks!


Move age to a command line argument

I'm running an Impossible Landscapes game and I figured 50+ year old agents in 1995 are going to be pushing 70 in 2015 so I decided to add a couple of command line arguments (-a/--min-age and -A/--max-age).

Help text aside, LGTM.

This would work well with #16 if we can work out how we'd like to add skill points to older characters...


feat: More updates to TeslaMate

Added more values to be updates from MQTT.

I checked, all other units are the same (°C for temps, and BAR for tire pressure)


Fix the web csv export double quote issue

fixing the web csv export component to resolve issues caused by those profile descriptions that contain double quotes

Thanks for catching this bug @juhewitt.
**Bugfix updated on the registry-web-platform-registry-prod silver cluster: December 04, 2020


Run only on changed code

Hi,
Is there a way to have the code climate linter run only on changed code (similar to the way it runs on the web app) rather than analyzing the whole file?

Hi @eyaleizenberg. This isn't currently possible. It would need to be supported by the CLI before it would be supported by the Atom package. It's something we've thought about in the past, but haven't yet prioritized.

Hi @eyaleizenberg. I think that approach would make some engines to provide false results. Think of the duplication engine, which could not find duplicated code inside a file if you just send the modified chunk of code, or calculating the complexity of a function with phpmd if you change some of its lines and only send them.
While some engines could not be affected, there are others that could, and as @maxjacobson said, this should be a feature implemented by each engine and ultimately by the CLI.


Flyway forces metadata table (schema_version) to have case-sensitive names on Oracle

I'm using flyway 4.0 with oracle <IP_ADDRESS>.0.
When flyway creates the the metadata table with its default name, it specifically sets it to lower case. The same is true for the table's columns. This causes the table name and columns to become case sensitive on Oracle. This is unusual, and can lead to confusion and errors.
When creating the table, Flyway causes DDL similar to the following to be used:
CREATE TABLE "<schema>"."schema_version" ("installed_rank" NUMBER(*,0) NOT NULL ENABLE, "version" VARCHAR2(50 BYTE), "description" VARCHAR2(200 BYTE) NOT NULL ENABLE, "type" VARCHAR2(20 BYTE) NOT NULL ENABLE, "script" VARCHAR2(1000 BYTE) NOT NULL ENABLE, "checksum" NUMBER(*,0), "installed_by" VARCHAR2(100 BYTE) NOT NULL ENABLE, "installed_on" TIMESTAMP (6) DEFAULT CURRENT_TIMESTAMP NOT NULL ENABLE, "execution_time" NUMBER(*,0) NOT NULL ENABLE, "success" NUMBER(1,0) NOT NULL ENABLE,  CONSTRAINT "schema_version_pk" PRIMARY KEY ("installed_rank");

By surrounding the table and column names in double quotes, they are forced to be lower case. This means that the following sql fails on oracle:
select * from schema_version
Instead, you have to run:
select * from "schema_version"
You also cannot run the following:
select checksum from "schema_version"
Instead, you have to say:
select "checksum" from "schema_version"
This is a source of some confusion!
It would be better if flyway did not double quote the table and column names when creating the metadata table on Oracle. This would then allow them to be treated as case-insensitive on Oracle, and the following would all work:
select * from SCHEMA_VERSION
select * from schema_version
select CHECKSUM from schema_version
etc

Works as designed. See the FAQ entry: https://flywaydb.org/documentation/faq#case-sensitive
The table is an internal implementation detail that should not be relied upon from your code.


dl.freetutsdownload.net

Domain
dl.freetutsdownload.net
Link
https://dl.freetutsdownload.net/redirect-to/?url=https%3A%2F%2F1fichier.com%2F%3Fe80a5jyx32fm6dojyesp
Version
0.0.0
What browsers are you seeing the problem on?
Chrome
What OS are you seeing the problem on?
No response
(Optional) Anything else?
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Place in ensureDomLoaded
domainBypass("dl.freetutsdownload.net", () => {
	ifElement("h3", a => {
		b = a.getElementsByTagName('strong')[0].innerHTML
		safelyNavigate(b)
	})
})

Fixed, thanks for the report


Adding linux install steps, small re-org of contents and TOC

Description
This change adds some additional documentation about how to install the repo requirements in Linux systems. Also add a small table of contents to help finding the contents in the document.
Tested
All the commands added in the documentation were tested in Ubuntu 19.04
Other changes
nope
Related issues

Fixes #920

Backwards compatibility
it doesn't apply

problem with non-existing remote fork, this PR is replaced by #1004


[BEAM-742] Translation from Trigger to TriggerStateMachine

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

This add a TriggerStateMachines utility class to runners-core with one key piece of functionality: converting a Trigger (where we pretend it is just a piece of syntax) to a TriggerStateMachine (which is just a copy of what triggers currently are).
In doing so, a fairly large number of trivial accessors and private/public alteration were necessary to the existing trigger codebase, but no functionality changes.
It is worth noting briefly the options for disjoint unions in Java, to explain why I chose the one I did:

A binder/evaluator a la StateBinder (this is the super-type-safe way of doing data in Java) but that adds a non-user-facing method to the interface. It can be useful sometimes, such as the way that StateTag has a phantom type that gets propagated to the return type of the visitor.
A visitor a la PipelineVisitor that just mutates some internal state. This is roughly the same as the prior, but returning void and mutating makes it easier to return complex data but forces an ordering.
Using reflection to treat the Java class as the disjoint union tag. This is the approach taken by Scala, and the approach I take here. I tried to minimize the reflective boilerplate this induced. No type safety is really lost, since in the technical vision, this trigger will be an AST sent over the wire (aka no type safety is available).

R: @bjchambers

LGTM barring travis problems. There are reasonable followups which can be done while we clean up the TriggerStateMachine implementation.

I made all the comments you mentioned, and I'll file cleanup tickets for things that require them before merging (when green).

Jenkins failure is internal to Dataflow service (same as all the other failing PRs right now) and Travis is happy modulo standard ~50% infrastructure flakiness. Going to file the follow-ups and proceed.


Hitbox issue when not on top of the terminal window

Sorry if I'm being annoying, but I found a hitbox bug. The video explains it all.
Basically, after I hit Ctrl+C and re-run the command, the hitboxes are shifted away from their real location.
I really think it's because the command isn't run from the top of the window.
Could someone test this in his terminal? Maybe the bug comes from my terminal emulator actually... I use https://github.com/kovidgoyal/kitty
Here is the example file I used: https://pastebin.com/HxCY0NUm
https://user-images.githubusercontent.com/9317502/148837469-363681d8-5379-42fb-a3ca-5758a5a61f3f.mp4

Thanks!
Yes, I observed it. I should update the underlying library to request a refresh of the position earlier.

I think I fixed it. Could you please check again whether this is working or not according to you?

Yup, it's fixed! You are reactive too! 😁
And thanks for the reminder to remove the build directory, I was going to say it didn't work ^^

And thanks for the reminder to remove the build directory, I was going to say it didn't work ^^
Haha, I edited my last response just in time then.

Thanks for your confirmation!


Assignment vectorization

Now if I run the following I get an error:
a = collect(1:100)
items = rand(20)
indices = collect(1:20)
@avx a[indices] .= items

ERROR: MethodError: no method matching vmaterialize!(::SubArray{Int64,1,Array{Int64,1},Tuple{Array{Int64,1}},false}, ::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1},Nothing,typeof(identity),Tuple{Array{Int64,1}}}, ::Val{:Main})Closest candidates are:
  vmaterialize!(::Union{LinearAlgebra.Adjoint{T,A}, LinearAlgebra.Transpose{T,A}}, ::BC, ::Val{Mod}) where {T<:Union{Float32, Float64}, N, A<:AbstractArray{T,N}, BC<:Base.Broadcast.Broadcasted, Mod} at C:\Users\yahyaaba\.julia\packages\LoopVectorization\iNfCA\src\broadcast.jl:218
  vmaterialize!(::AbstractArray{T,N}, ::BC, ::Val{Mod}) where {T<:Union{Float32, Float64}, N, BC<:Base.Broadcast.Broadcasted, Mod} at C:\Users\yahyaaba\.julia\packages\LoopVectorization\iNfCA\src\broadcast.jl:194

That expression is equal to the following that works
indiceslen = length(indices)
@avx for k = 1:indiceslen
        a[indices[k]] = items[k]
    end

For some reason I had restricted vmaterialize! to only accept T<: Union{Float32,Float64}.
Locally (on master), I've now extended it to T <: Union{Int32,Int64,Float32,Float64}.
I'll add tests with integers before pushing to master.
However, I now get a different error:
julia> @avx a[indices] .= items
ERROR: conversion to pointer not defined for SubArray{Int64,1,Array{Int64,1},Tuple{Array{Int64,1}},false}
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] unsafe_convert(::Type{Ptr{Int64}}, ::SubArray{Int64,1,Array{Int64,1},Tuple{Array{Int64,1}},false}) at ./pointer.jl:67
 [3] pointer(::SubArray{Int64,1,Array{Int64,1},Tuple{Array{Int64,1}},false}) at ./abstractarray.jl:933
 [4] stridedpointer at /home/c285497/.julia/dev/VectorizationBase/src/vectorizable.jl:438 [inlined]
 [5] macro expansion at /home/c285497/.julia/dev/LoopVectorization/src/broadcast.jl:194 [inlined]
 [6] vmaterialize!(::SubArray{Int64,1,Array{Int64,1},Tuple{Array{Int64,1}},false}, ::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1},Nothing,typeof(identity),Tuple{Array{Float64,1}}}, ::Val{:Main}) at /home/c285497/.julia/dev/LoopVectorization/src/broadcast.jl:194
 [7] top-level scope at REPL[5]:1

If indices were 1:20, this should work (ie, conversion to pointer is defined for those subarrays).
However, collect(1:20) is much more difficult, because the elements aren't necessarily going to hold any particular pattern.
It would be good to add support, so I'll leave this issue open.
Support will be added in VectorizationBase
and SIMDPirates.

[ ] VectorizationBase defines stridedpointer, which is a function we can overload for special behavior on different array types. It already has two different special overloads for SubArrays, based on whether the first index is an Int or a UnitRange (SubArrays whose first index is an Int's elements will be discontiguous, so we treat them differently).
I'll have to add another method and type to handle subarrays indexed by arrays.
[ ] SIMDPirates will have to add a few SIMD methods for that type.
[ ] SIMDPirates also needs a few changes to make the loop you showed fast when indices is a unitrange. Currently, loading from unitranges produces Vecs, which forces your stores to be gathers. I'll make loading from them produce _MMs, which "know" that the elements are sequential, so stores/loads can be fast.

Note that the loop is likely to give you wrong answers (or do weird things) if indices contains repeats of the same number.
Eg, if
indices = [1,2,3,1]
a[indices] = 10:13

What should a equal if we're assigning 10:13 in parallel above?
how is it supposed to store into the first element twice in parallel (eg, with AVX2)?
Some architectures have "conflict detection" instructions that can be used to look for this.
You (or anyone else) can file an issue if you want some sort of special handling around that.
It may be best to just call it "undefined behavior". Doing it sequentially as in the above code of course yields, a[1] == 13.


AWSLambda breaking changes on Julia 0.6.3

I am following the instructions in a EC2 server using Julia 0.6.3. AWSLambda module is not working on the server.
The following error happens at the test function in the module.
ERROR: LoadError: MethodError: no method matching lambda_configuration(::String)
Closest candidates are:
  lambda_configuration(!Matched::Dict{Symbol,Any}, !Matched::Any) at /home/ubuntu/.julia/v0.6/AWSLambda/src/AWSLambda.jl:85
Stacktrace:
 [1] deploy() at /home/ubuntu/lambdalatex/make.jl:53
 [2] all() at /home/ubuntu/lambdalatex/make.jl:17
 [3] include_from_node1(::String) at ./loading.jl:576
 [4] include(::String) at ./sysimg.jl:14
 [5] process_options(::Base.JLOptions) at ./client.jl:305
 [6] _start() at ./client.jl:371
while loading /home/ubuntu/lambdalatex/make.jl, in expression starting on line 111 ```

Hi @wzard,
Thanks for trying this out.
The AWSLambda.jl module is part-way though some update work at present.
I think you'll need to do julia> Pkg.checkout("AWSLambda", "master") do get the latest version.
Note: I'm going through the process of checking that everything works with Julia 0.6.3 today and tomorrow, so if it doesn't work for you right away. Check back in a couple of days.
Cheers,
Sam

Thanks @samoconnor . I actually used boto3 from python for the Lambda service. I have forked your repo and modified. Thanks for the good work.


basic_example_v1: added how-to-run.txt

Added the instruction to run the basic example using the managed YDB instance in the Yandex Cloud.
In practice this step confuses some users, so the instruction may allow them to get up and running.
I hereby agree to the terms of the CLA available at https://yandex.ru/legal/cla/?lang=ru

@gridnevvvit I've added one more text block with the proper dependency installation. This step seems to hurt some users, too.


replacing the dwa "origin" by the control module's title

so that extensions grabing data from same plugin but duplicated would not produce the same dwa full name (name+origin) and will not be overwritten when appended into the control module dte

solves this issue #159 because they were having the same name when appended into the data_to_export, so one was overwritting the other!


[tool_crash] FileSystemException: readInto failed, OS Error: Operation timed out, errno = 60

Command
flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --dart-define=flutter.inspector.structuredErrors=true lib/main.dart

Steps to Reproduce

...
...
...

Logs
FileSystemException: readInto failed, OS Error: Operation timed out, errno = 60
#0      _checkForErrorResponse (dart:io/common.dart:55:9)
#1      _RandomAccessFile.readInto.<anonymous closure> (dart:io/file_impl.dart:815:7)
#2      _rootRunUnary (dart:async/zone.dart:1407:47)
#3      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
<asynchronous suspension>
#4      _File.readAsBytes.readSized.read.<anonymous closure> (dart:io/file_impl.dart:544:13)
<asynchronous suspension>

[!] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64 (Rosetta), locale en-JO)
    • Flutter version 3.24.3 on channel stable at /Users/awadriad/Desktop/flutter
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.5.3/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/awadriad/Desktop/flutter. Consider adding /Users/awadriad/Desktop/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (5 days ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/awadriad/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.0

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

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

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554         • android-arm64  • Android 14 (API 34) (emulator)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 128.0.6613.138

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 2663184aa79047d0a33a14a3b607954f8fdd8730
Plugins
audioplayers-6.1.0
audioplayers_android-5.0.0
audioplayers_darwin-6.0.0
audioplayers_linux-4.0.0
audioplayers_web-5.0.1
audioplayers_windows-4.0.0
connectivity_plus-5.0.2
fluttertoast-8.2.8
geolocator-10.1.1
geolocator_android-4.6.1
geolocator_apple-2.3.7
geolocator_web-2.2.1
geolocator_windows-0.2.3
location-5.0.3
location_web-4.2.0
path_provider-2.1.4
path_provider_android-2.2.10
path_provider_foundation-2.4.0
path_provider_linux-2.2.1
path_provider_windows-2.3.0
permission_handler-11.3.1
permission_handler_android-12.0.12
permission_handler_apple-9.4.5
permission_handler_html-0.1.3+2
permission_handler_windows-0.2.1
shared_preferences-2.3.2
shared_preferences_android-2.3.2
shared_preferences_foundation-2.5.2
shared_preferences_linux-2.4.1
shared_preferences_web-2.4.2
shared_preferences_windows-2.4.1
url_launcher-6.3.0
url_launcher_android-6.3.10
url_launcher_ios-6.3.1
url_launcher_linux-3.2.0
url_launcher_macos-3.2.0
url_launcher_web-2.3.3
url_launcher_windows-3.1.2

Hi @Awad-Riad,
Do you get this crash every time running the same command? If so, can we get the full verbose output of the command?


Add ability to specify DSLR focal length and matrix dimensions

Addressing #169. These additional parameters helped me calibrate my camera rig.

@dimatomp,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

I tried using additional flags. This did not lead to a significantly better accuracy in my setup. I added two flags responsible for fixing focal length and principal point respectively - user may turn those options on if they wish to.


chore(bacalhau): update pkg import

closes #101

thank you @developerfred! Running workflows now

@NiklasTR I just now updated github actions to do go mod dowload and go mod tidy

@developerfred
It looks like the build is failing because Bacalhau's latest release doesn't have the updated go.mod path.
Your code changes look good. Will merge once Bacalhau does a new release.
I'll complete this task on the De-Work side though so that is not held up.
Thanks!


Support Environment Variable "AZURE_TRACING_DISABLED"

According to environment variables listed in https://github.com/Azure/azure-sdk/blob/master/_includes/tables/environment_variables.md
Add support for environment variable  "AZURE_TRACING_DISABLED"
 @jongio

Hi @cxznmhdcxz, is this issue requesting adding this property or leveraging it?


.plots.section_plot: better xlim's

The observation plot of section_plot needs better xlims:

without tmin specifed: why does the xaxis start 1992, that is 4.5 years before first observation.
when tmin is specified: the lower bound of de xaxis does not match with the tmin value. I don't like that, because it suggests there are no observations in 2015.

Does someone knows why the xlims are chosen by matplotlib this way? And an easy way to fix this, to achieve an elegant lower bound of the x-axis? In this example an x-limit at 1 jan 1997 is preferred, xticks are then at 1 jan every 3 or 4 years. For timeseries shorter than a few years, an exact start at tmin is better.
tmin not specified

tmin specified

start obs

In the section_plot function a line is plotted using p = ax_obs.plot(plot_df). Using this, matplotlib will pick an xlim in such a way that there is some white space before the start (and after the end) of the line. I think they do this so you can see exactly where the line starts (and ends).
When you specify tmin in the section_plot function the plof_df is sliced using plot_df = self._obj.loc[name, "obs"][tmin:tmax][cols].copy(). The plot is still created using p = ax_obs.plot(plot_df) so matplotlib will pick an xlim with some white space before the start of the sliced DataFrame.
I think the solution here is to set the xlim after the plot is created based on tmin and tmax for example: ax_obs.set_xlim(tmin, tmax).

Thanks for your suggestion. I will implement for the option when tmin is set. I will do some research about the chosen xlim for the plot without tmin. A 4,5 year gap is a little bit too much for me.
Today I checked wether there is some NaN data in the dataset, that might cause the 4,5 year gap. There is no NaN data.

closed by #116


Code Helper

Every time I copy and paste a small block of code I now have to wait 5 to 10 seconds for something called Code Helper to go up to 100+ CPU and then back down again.
While its doing this, I am unable to do anything else except wait.
Yesterday I liked Visual Code
Today, after their improvements??? it is a disaster.
Adding 100s of breakpoints on its own and timing out due to
Unable to fold code anymore
And now locking itself up.
I've done a reboot, same problem each time.

Does it repro if you launch with the --disable-extensions flag? Can you look up the command line args of that process? Please see https://github.com/Microsoft/vscode/wiki/Performance-Issues and include as many details as possible.


[Angular] Step 6 is broken

Platforms: MacOS, Win10.
Browser: Chrome 67.
Problem: Doing step 6. Deployment successful. Cant see messages in chat after sending them. I can see them in DB.

polyfills.50b851ccd19aa9b94ce1.bundle.js:1
Uncaught TypeError: Object(...) is not a function
at e.project (main.89deea38e9ef8891dca3.bundle.js:1)
at e._next (main.89deea38e9ef8891dca3.bundle.js:1)
at e.next (main.89deea38e9ef8891dca3.bundle.js:1)
at e._next (main.89deea38e9ef8891dca3.bundle.js:1)
at e.next (main.89deea38e9ef8891dca3.bundle.js:1)
at e.next (main.89deea38e9ef8891dca3.bundle.js:1)
at e._next (main.89deea38e9ef8891dca3.bundle.js:1)
at e.next (main.89deea38e9ef8891dca3.bundle.js:1)
at t.observe (main.89deea38e9ef8891dca3.bundle.js:1)
at e.dispatch (main.89deea38e9ef8891dca3.bundle.js:1)

@jmdobry any ideas?

@nicolasgarnier @Buravchik I just tried the tutorial again with a fresh clone of the friendlychat-web repository. I have not encountered any errors. It's possible there was a bug in RxJS. The app is not pinned to a specific version, so re-installing deps may work, but I'm assuming you've already tried that.

@Buravchik let us know if you are still experiencing the issue! I'll close for now


Add only specific files

Can I just add specific files like code2prompt add file1,file2? This feature would be great.

@Jiayou-Chao I implemented this feature in #20 using glob pattern, thus providing a similar api as tar or rsync.
You can use it like this :
code2prompt path/to/codebase --include="*.rs,*.toml, **/rel/path/to/file1.png"

Thanks. This is even better.

Fixed in #20 by @ODAncona! 🙌 🎉


Beat [3/4]: prepare resolvers to handle the blockbeat

Depends on

#8894

NOTE: itest is fixed in the final PR

#9260

Turns out mounting blockbeat in ChannelArbitrator can be quite challenging (unit tests, itest, etc). This PR attempts to implement it in hopefully the least disruptive way - only chainWatcher implements Consumer, and the contract resolvers are kept stateless (in terms of blocks). The main changes are,

contract resolvers are refactored - the original Resolve method is broken into two steps: 1) Launch the resolver, which handles sending the sweep request, and 2) Resolve the resolver, which handles monitoring the spending of the output.
chainWatcher implements Consumer in the following PR.

Alternatives
The original attempt is to make the resolvers subscribe to a blockbeat chan, as implemented in #8717. The second attempt is to make the resolvers also blockbeat Consumer, as implemented here.
This third approach is chosen as 1) it greatly limits the scope otherwise a bigger refactor of channel arbitrator may be needed, and 2) the resolvers can be made stateless in terms of blocks, and be fully managed by the channel arbitrator. In other words, when a new block arrives, the channel arbitrator decides whether to launch the resolvers or not, so the resolvers themselves don't need this block info.
In fact, there are only two resolvers that subscribe to blocks, the incoming contest resolver, which uses block height to decide whether to give up resolving an expired incoming htlc; and the outgoing contest resolver, which uses the block height to choose to transform itself into a timeout resolver. IMO if we can remove the inheritance pattern used in contest resolver -> time/success resolver and manage to transform resolvers in channel arbitrator, we can further remove those two block subscriptions. As for now, we can leave them there as they have little impact on the block consumption order enforced by the blockbeat.

IMO if we can remove the inheritance pattern used in contest resolver -> time/success resolver and manage to transform resolvers in channel arbitrator, we can further remove those two block subscriptions. As for now, we can leave them there as they have little impact on the block consumption order enforced by the blockbeat.

Minor point, it it isn't inheritance, it's composition, with the inner resolver replacing the outer one. Go technically doesn't have inheritance at all.

why dees Resolve need to split up in order to be incorporated into the new blockbeat architecture?

So we split it into two steps, step one is Launch, which offers the inputs to the sweeper once triggered by block X, and before that block X is sent to the sweeper. This way we can ensure if block X closes a channel, its contract resolutions will offer these inputs to the sweeper, before the sweeper thinks there is nothing to be swept in block X.
Step two is then then waiting for the sweeping tx to be confirmed.

Is that that since we don't know which ones will be launched ahead of time, we can't set up the blockbeat consumer DAG upfront?

Yeah this part too - so these sub-consumers, like chain watcher and channel arbitrator, are ephemeral and are not managed by the blockbeat dispatcher. Some previous discussion can be found here. Basically it's easier to let the chainArb to manage the channelArb and chainArb here.


MODELIX-709 Use dependabot for npm and github-actions

Unfortunately dependabot currently does not support adding multiple directories, so the config is a bit repetitive.

Yet another reason for switching to renovate. Shouldn't we give that a try here?

I think we're going to try it in other repositories, since we require stuff there, that isn't covered by dependabot (e.g. docker compose). (see MODELIX-704)
If it works well for us there, we can change it here too. For now I would stick to dependabot.

Should we somehow preserve the decision for the versioning strategy in some comment? The next time someone looks at the config, that information is evident.

Definitly. I will write an ADR about it.

Maybe a simple comment in the dependabot file is also enough in this case? ;-)

:tada: This PR is included in version 4.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

Maybe a simple comment in the dependabot file is also enough in this case? ;-)

Even better ;D


Getting Transformation error

I am migrating my framework from protractor to WDIO.
Foe one the file I am getting Transformation error.
Transformation error (undefined does not match field "value": string | boolean | null | number | RegExp of type Literal).
Error: undefined does not match field "value": string | boolean | null | number | RegExp of type Literal

@vaibhavjagdale Hey 👋
Can you pin point it to a piece of code that fails transforming?

Closing due to inactivity.


Update: Puppet.pdk version 2.2.0

Removing old versions to reduce clutter
Microsoft Reviewers: Open in CodeFlow

/azp run


Create a REST API using Flask

Describe the project you want to add with tech stack
Python and its modules( Flask)
Expected behavior
An attempt to create a simple RESTful API
Screenshots (optional)

Additional context (optional )
Since API's are increasing used by individuals, organisations and every aspect of software development, they are necessary for interacting safely with an established server to provide only essential information for usage by users, to make websites and other services more dynamic

@pranjay-poddar  please assign me this issue for Hacktoberfest 2022


Validating JWT using JWKS end point not working

Steps to reproduce
You need to have two IS Packs
port shift them and run them in ports 9443 and 9444
9444- External IDP (IS2)
9443-Auth Server (IS1)
When Port shifting do the same change in the resident idp id in the relevent pack
In IS 1
Create an Identity Provider
Identity Provider Name: https://localhost:9444/oauth2/token
This is the token endpoint of the IS 2. Also in WSO2 IS this is the id of the resident IDP.
Identity Providers JWKS EndPoint: https://localhost:9444/oauth2/jwks
This is the JWKS EndPoint of IS 2
Alias: https://localhost:9444/oauth2/token
Go to Service Providers and Create an SP
Name: SP1
Go to OAuth/OIDC Configuration under Inbound Authentication Configuration
Token Issuer: JWT
Enable Audience Restrictions and add this as an Audience
http://localhost:9443/oauth2/token
In IS 2
Create an SP
Name: SP2
Go to inbound Authentication Configuration and then OAuth/OIDC Configuration
Enable Audience Restriction
Add these as the Audiences:

Token Issuer:Default
Curl Requests
For getting a ID token from IS 2
curl -X POST
https://localhost:9444/oauth2/token
-H 'Authorization: Basic  '
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'grant_type=password&username=admin&password=admin&scope=openid&undefined='
Response
{
"access_token": "dd027c97-487d-373b-a62b-a12d00f3ad6f",
"refresh_token": "a37f81a7-92d1-3f47-b152-2e9136a167e0",
"scope": "openid",
"id_token": "eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraWQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiZmxqSDhRNXdvT3FUSm9mTDVaM1IwdyIsImF1ZCI6WyJmcDVMT3YyQkFjYmkxeWRxQmZnRWFZZlNQR01hIiwiaHR0cHM6XC9cL2xvY2FsaG9zdDo5NDQzXC9vYXV0aDJcL3Rva2VuIl0sInN1YiI6ImFkbWluIiwibmJmIjoxNTUyMzc0NDE4LCJhenAiOiJmcDVMT3YyQkFjYmkxeWRxQmZnRWFZZlNQR01hIiwiYW1yIjpbInBhc3N3b3JkIl0sImlzcyI6Imh0dHBzOlwvXC9sb2NhbGhvc3Q6OTQ0NFwvb2F1dGgyXC90b2tlbiIsImV4cCI6MTU1MjM3ODAxOCwiaWF0IjoxNTUyMzc0NDE4fQ.EcI0bH2q3uYOBhkgFJ-ADGnC4A13pGpGlUdPft6LM1ZPTPrSqI22zsUdGJMvI-pEUpXhGaxWlDQiQ36Fj4N5yIPysagpJwaaClXrKXIMayG0eY-yo8-i6QkcBmXLcW8Lotd8d_tujn0rX93oKNCJNSIhW5fZAahzNiHpPTsJ9-SL5mmUqzB77_5kXs16g9Y-CmRnKxi8hB7eor0A7ZvfwDOlVjQXr4M_rkEI4BGNDQNXrNCLkXD7BaZ88EV4G-ru9koQmF15gnYEjvr5nU_BZsrY7en6bpu8oloQ-iELvfKS3FVQZmasx0FZ2mVWq79UZwbDRpO6adG1X975yowM8g",
"token_type": "Bearer",
"expires_in": 1333
}
For exchanging the id token for an access token
curl -X POST
https://localhost:9443/oauth2/token
-H 'Authorization: Basic '
-H 'Content-Type: application/x-www-form-urlencoded'
-H 'cache-control: no-cache'
-d 'grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=&scope=openid&undefined='
Response
{
"error_description": "Signature validation failed for the provided JWT.",
"error": "invalid_grant"
}
When Debugging found out that the exception is thrown at retrieveResource function in DefaultResourceRetriver

This same error occurs at the same class same function when using jwks endpoint for service provider #4094

The issue is not reproduced when trusted JWKS endpoint is used. This was tested when fixing the Issue wso2/product-is#4663.

Resolving as per comment above


added view_data.py

Just re-adding your code to be able to see if the screen recording is actually working

for the new model the key presses have been changed from:
directions = {
     (1,0,0): 'LEFT',
     (0,1,0): 'UP',
     (0,0,1): 'RIGHT'
 }

to:
directions = {
    (1,0,0,0,0,0,0,0,0): "FORWARD",
    (0,1,0,0,0,0,0,0,0): "BACKWARDS",
    (0,0,1,0,0,0,0,0,0): "LEFT",
    (0,0,0,1,0,0,0,0,0): "RIGHT",
    (0,0,0,0,1,0,0,0,0): "FORWARD+LEFT",
    (0,0,0,0,0,1,0,0,0): "FORWARD+RIGHT",
    (0,0,0,0,0,0,1,0,0): "BACKWARDS+LEFT",
    (0,0,0,0,0,0,0,1,0): "BACKWARDS+RIGHT",
    (0,0,0,0,0,0,0,0,1): "NOKEY"
}

for now atleast till it changes again


Ability to provide symbol for value, such as % etc.

we can have no units for our label. for instance, on a pie chart we are doing ethnic data in various countries, so it would be nice to show it in % ie Caucasian: 50% in the tooltip instead of Caucasian: 50

@r3wt is this for the tooltip in v1.0?
If so, you can change the tooltipTemplate option to something like:
options: {
    tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>%"
}

@etimberg  thank you sir, ill give it a go

@etimberg Thank you it worked. I wish the documentation would have specify this feature so i wouldn' t need to waste time opening an issue here.


[WIP][SPARK-47274][PYTHON][CONNECT] Provide more useful context for PySpark DataFrame API errors

What changes were proposed in this pull request?
This PR introduces an enhancement to the error messages generated by PySpark's DataFrame API, adding detailed context about the location within the user's PySpark code where the error occurred.
This follows a similar improvement done on the JVM side for the Dataset API as described in https://github.com/apache/spark/pull/43334, aiming to provide PySpark users with the same level of detailed error context for better usability and debugging efficiency.
Why are the changes needed?
To improve a debuggability. Errors originating from PySpark operations can be difficult to debug with limited context in the error messages. While improvements on the JVM side have been made to offer detailed error contexts, PySpark errors often lack this level of detail.
Does this PR introduce any user-facing change?
No API changes, but error messages will include a reference to the exact line of user code that triggered the error, in addition to the existing descriptive error message.
For example, consider the following PySpark code snippet that triggers a DIVIDE_BY_ZERO error:
1  from pyspark.sql import SparkSession
2  from pyspark.sql.functions import col
3
4  spark = SparkSession.builder.appName("ExampleApp").getOrCreate()
5  spark.conf.set("spark.sql.ansi.enabled", True)
6
7  df = spark.range(10)
8  df.select(col("id") / 0).show()

Before:
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"divide" was called from
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

After:
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"divide" was called from
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

== Error Location (PySpark Code) ==
['df.select(col("id") / 0).show()\n'] was called from /.../spark/python/test_pyspark_error.py:8

How was this patch tested?
Added UTs.
Was this patch authored or co-authored using generative AI tooling?
No.

I'm still working on Spark Connect support and unit tests, but the basic structure is ready for review.

cc @HyukjinKwon FYI, I'm still working on Spark Connect support and unit tests but the basic structure is ready for review.
FYI, also cc @MaxGekk as you made a similar contribution on the JVM side.

On second thought, we need to keep the previous transformation stacktrace to provide more accurate context.
Will push more commit to update it.

Hi, @HyukjinKwon @MaxGekk could you take a look at the JVM side prototype when you have some time?
Will add more commit for Spark Connect support and UTs.

Added QueryContext testing for DataFrameContext and UTs. The CI failures seems not related. cc @HyukjinKwon FYI

== DataFrame ==
"divide" was called from
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

== PySpark call site ==
"divide" was called from
/.../spark/python/test_pyspark_error.py:4

Shall we just make it
== DataFrame ==
"divide" was called from
/.../spark/python/test_pyspark_error.py:4

When df.select with multiple expressions, both fragment and callSite seem to be different from Scala's.
>>> spark.conf.set("spark.sql.ansi.enabled", True)
>>> df = spark.range(10)
>>> df.select(
...   df.id / 10,
...   df.id + 4,
...   df.id / 0,
...   df.id * 5
... ).show()
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"divide" was called from
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

== PySpark call site ==
"multiply" was called from
<stdin>:5

whereas:
scala> df.select(
     |   df("id") / 10,
     |   df("id") + 4,
     |   df("id") / 0,
     |   df("id") * 5
     | ).show()
org.apache.spark.SparkArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"div" was called from
<init>(<console>:4)

Thanks @ueshin for spotting the negative case! Let me add it to the test case and fix it.

== DataFrame ==
"divide" was called from
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

== PySpark call site ==
"divide" was called from
/.../spark/python/test_pyspark_error.py:4

Shall we just make it
== DataFrame ==
"divide" was called from
/.../spark/python/test_pyspark_error.py:4

Sounds good. Let me address it

Thanks @cloud-fan @xinrong-meng @ueshin for the additional comments! Just resolved all comments.

I'm afraid I still see a weird behavior:
>>> spark.conf.set("spark.sql.ansi.enabled", True)
>>> df = spark.range(10)
>>> a = df.id / 10
>>> b = df.id / 0
>>>
>>> df.select(
...   a,
...   df.id + 4,
...   b,
...   df.id * 5
... ).show()
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"plus" was called from
<stdin>:3

Nice catching 👍  Let me address this case as well.

Hmm... I faced some problem to resolve this case.
PySpark provide logs to JVM at the time an expression is declared,
but the actual execution order on the JVM side could be different from the declare order.
For example, when running the example @ueshin provided:
  1 spark.conf.set("spark.sql.ansi.enabled", True)
  2 df = spark.range(10)
  3 a = df.id / 10
  4 b = df.id / 0
  5 df.select(
  6   a,
  7   df.id + 4,
  8   b,
  9   df.id * 5
 10 ).show()

Internally, the logging is processed as below:
# Logging call site from Python to JVM when define the expression in order:
1: ("divide", "/test.py:3")
2: ("divide", "/test.py:4")
3: ("plus", "/test.py:7")
4: ("multiply", "/test.py:9")

# But analyzing the expression from JVM could have a different order from defining order from Python:
1: ArraySeq(org.apache.spark.sql.Column.divide(Column.scala:790), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))
2: ArraySeq(org.apache.spark.sql.Column.plus(Column.scala:700), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))
3: ArraySeq(org.apache.spark.sql.Column.divide(Column.scala:790), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))
4: ArraySeq(org.apache.spark.sql.Column.multiply(Column.scala:760), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))

To solve this problem,
I think Python and JVM must share a "key" that can distinguish the unique value of each expression in PySparkCurrentOrigin and the JVM stackTrace at the time of declaring the expression.
However, I can't think of a good way to make this possible at the moment.
@ueshin @HyukjinKwon @cloud-fan could you please advise if there is happen to a good way to make this possible?
Alternatively, the workaround that comes to my mind is to provide additional information to the log.
If the log does not indicate the exact call site, it outputs candidates where an actual error may occur.
For example:
>>> spark.conf.set("spark.sql.ansi.enabled", True)
>>> df = spark.range(10)
>>> a = df.id / 10
>>> b = df.id / 0
>>>
>>> df.select(
...   a,
...   df.id + 4,
...   b,
...   df.id * 5
... ).show()
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"plus" was called from
<stdin>:3

Hmm... I faced some problem to resolve this case.
PySpark provide logs to JVM at the time an expression is declared,
but the actual execution order on the JVM side could be different from the declare order.
For example, when running the example @ueshin provided:
  1 spark.conf.set("spark.sql.ansi.enabled", True)
  2 df = spark.range(10)
  3 a = df.id / 10
  4 b = df.id / 0
  5 df.select(
  6   a,
  7   df.id + 4,
  8   b,
  9   df.id * 5
 10 ).show()

Internally, the logging is processed as below:
# Logging call site from Python to JVM when define the expression in order:
1: ("divide", "/test.py:3")
2: ("divide", "/test.py:4")
3: ("plus", "/test.py:7")
4: ("multiply", "/test.py:9")

# But analyzing the expression from JVM could have a different order from defining order from Python:
1: ArraySeq(org.apache.spark.sql.Column.divide(Column.scala:790), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))
2: ArraySeq(org.apache.spark.sql.Column.plus(Column.scala:700), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))
3: ArraySeq(org.apache.spark.sql.Column.divide(Column.scala:790), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))
4: ArraySeq(org.apache.spark.sql.Column.multiply(Column.scala:760), java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method))

To solve this problem,
I think Python and JVM must share a "key" that can distinguish the unique value of each expression in PySparkCurrentOrigin and the JVM stackTrace at the time of declaring the expression.
However, I can't think of a good way to make this possible at this moment.
@ueshin @HyukjinKwon @cloud-fan could you advise if there is happen to a good way to make this possible?
Workaround
Alternatively, the workaround that comes to my mind is to provide additional information to the log.
And at least we can compare fragment values and output "divide" instead of "plus", but the call site may be different:
For example, the suggested workaround would look like:
In
  1 spark.conf.set("spark.sql.ansi.enabled", True)
  2 df = spark.range(10)
  3 a = df.id / 10
  4 b = df.id / 0
  5 df.select(
  6   a,
  7   df.id + 4,
  8   b,
  9   df.id * 5
 10 ).show()

Out
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"divide" was called from
/test.py:3

== Other possible call sites ==
"divide" was called from
/test.py:4

@itholic what if we don't use thread local? IIUC, PySpark calls JVM methods to build the column instances at the end. On the JVM side, we wrap code with withOrigin to capture the call site automatically.
My idea: we add new Column creation methods for PySpark, which takes python call site information. The implementation should set call site before calling withOrigin, as withOrigin respects the already captured call site
  private[sql] def withOrigin[T](f: => T): T = {
    if (CurrentOrigin.get.stackTrace.isDefined) {
      f
    } else {
  ...

My idea: we add new Column creation methods for PySpark, which takes python call site information.

I'm not 100% sure if it is work, but it sounds worth enough to try. Let me give it a shot. Thanks for the idea!

@cloud-fan @ueshin I believe now the previous comments are all resolved, and I also added more tests accordingly.
Could you take a look when you find some time?

thanks, merging to master!

Thanks @cloud-fan @ueshin @HyukjinKwon @xinrong-meng for the review!

Let's clarify why https://github.com/apache/spark/pull/45377#issuecomment-2041315119 happens before we move further. That shouldn't happen from my understanding.
If we go with the current approach, it would need more changes. e.g., Column.substr because it takes a different set of arguments and types.

The difficulty with the previous method was that it was not easy to perfectly sync the data between two separately operating TheadLocal, CurrentOrigin and PySparkCurrentOrigin.
After taking deeper look at the structure, I think we may be able to make the CurrentOrigin more flexible to support PySpark error context instead of adding a separate ThreadLocal like PySparkCurrentOrigin.
If it works, it seems possible to improve the structure to a more flexible while maintaining the existing communication rules between Python and JVM without adding helper functions such as PySpark-specific fn.
Let me give it a try and create a PR to refactoring the current structure, and ping you guys.

Let me give it a try and create a PR to refactoring the current structure, and ping you guys.

Created https://github.com/apache/spark/pull/46063.

Because I called PySparkCurrentOrigin directly on the DataFrameQueryContext without utilizing withOrigin in the initial implementation. I realized it from recent review from the refactoring PR, so I'm currently trying to reintroduce PySparkCurrentOrigin there.


Need to update site and add features.

There are many things blank and not aligned. Content is not complete

Hello, I would like to work upon this issue, I will update the site, could you please assign it to me


Fix idle connection disposal

Pull Request Checklist

[x] Have you read How to write the perfect pull request?
[x] Have you read through the contributor guidelines?
[ ] Have you added tests for any changed functionality?

Fixes
Fixes an issue described in: https://groups.google.com/g/reactivemongo/c/3Kb-tpAcO6Y
Purpose
Fixes idle connection disposal.
Background Context
The IdleStateHandler should be set as first in the netty's pipeline (according to the documentation). This was not true if SSL was enabled.
References

Described issue with code to reproduce: https://groups.google.com/g/reactivemongo/c/3Kb-tpAcO6Y
Netty's docs: https://netty.io/4.0/api/io/netty/handler/timeout/IdleStateHandler.html

Published in 1.0.4


make detached writer concurrency safe

in detached mode we're handing off execution but not interested in the headers
or body that the function writes at all. at present however, we're handing
over the original response headers for the detached writer to use, which could
happen concurrently when we're writing headers back to the client response.
since we're not interested in them, this just stops passing them from the
client response headers down into the agent for the func to write to, so there
should no longer be a race with the front end at least. the other piece was
that writing the status code in and reading it out is also not safe, exactly,
so made this explicitly safe - the case here would be that the function writes
a response code while we're going to write the response code in the front end.
I am not sure whether I like the way we're doing this or not, overall (prior
to the modifications here even). open to ideas.
updated the makefile/system test script so that I could run these faster to
repro, pretty handy, should add to other stuff too...
closes #1484

I do think it's possible that we need to add an additional layer in the agent right around https://github.com/fnproject/fn/blob/master/api/agent/agent.go#L684 due to how this works, since we can't pass the context down into the io.Copy there, we're wrapping the whole thing, but the caller could return before writeResp is done and we wind up writing while the front end is reading. that whole situation is frustrating, I decided not to go at it here, it will take a bit of fudging with.
I maintain that we should do this change regardless of changing agent, and that this one does likely close the bug since it's from detached. particularly the part about the headers in the detached writer, at least.

gonna WIP this, started adding more crap


Fix double scroll bar in Windows 10

Double scroll bar (overflow: scroll)

Single scroll bar

Oh shoot, there's a merge conflict - could you update please?

Sorry for the slow PR. Had to get a Windows 10 device to double check.
Note that there is an existing bug in the original carousel code.
-

+

Did not fix the bug, and simply changed the .overflow-scroll to .overflow-x-scroll.

Reproduction: once the animation starts, quickly start to the end and wait.
https://github.com/vercel/sveltekit-commerce/assets/47051820/8a27af9a-6706-45a6-b3ce-da01f17053e6
Changed the animation duration to 10s for demonstration.

@leerob Could this be merged? It has been approved.


Optional supportedHardforks init parameter

This allows for stricter compatibility checks on the client library side.

Pull Request Test Coverage Report for Build 34

19 of 20 (95.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.2%) to 94.915%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

index.js
19
20
95.0%

Totals

Change from base Build 31:
-1.2%

Covered Lines:
100

Relevant Lines:
104

💛  - Coveralls


@AssistedInject_SomeClass hides build error if the build fails

Hi,
I have encountered this issue when I have unsuccessful build unrelated to AssistedInject library.
I hit build -> Build fails.
Then I have to delete the generated line AssistedInject_SomeClassModule in order to see what the real issue is. Is there a workaround for this?
I'm using version 0.5.2

I just had the same issue. Specifically, I was getting the following error
error: cannot find symbol @dagger.Module(includes = {AssistedInject_AssistedInjectModule.class})
which I believe is coming from the Dagger annotation processor as opposed to the AssistedInject processor. For the record, I verified that AssistedInject_AssistedInjectModule.class was, in fact, successfully generated.
Commenting out the line @Module(includes = [AssistedInject_AssistedInjectModule::class]) in AssistedInjectModule (thanks @coroutineDispatcher) exposed the kapt errors coming from another annotation processor (Room in my case).

Had somehow nearly the same case but with a Realm object. But I think they are trying to merge @AsistedInject with Dagger so that you don't have 2 dependencies in your build.gradle for solving the same problem (factory pattern basically). If that's the case I believe this case should be closed and reported somewhere else


Ensure there are no other ongoing refunds in the order before refunding

Payment.StartRefund() method will ensure it.


Is possible with simple_modifications emulate fn+letter to ctrl+letter?

It will be great if we have this functionality!


Substitute $SRC in arguments

Replaced with full path to source directory for the application version.
Currently only arguments is substituted, but this change also creates the
infrastructure to provide substitution of any environment variable into many of
the other config keys (eg, the build command could use it).
A further followup would be to add a key for environment variables to modify
for the build or run, which would themselves have substitutions performed. This
feature is really only motivated by Go, where building requires that GOPATH be
set correctly somehow.

Written on top of #8l, to avoid rebase issues.

See comments on tchajed/experiment#291634f76c8f8d096230044b7c011a3e82ff657a.
Also, these three commits do very different things. I'd prefer them as separate PRs if possible.

History re-writing detached the comments from the pull request, but fixed the issues with tchajed/experiment@291634f with 38db124 and split off #11 and #12.

Thanks!


I hope the system will prompt Database password:

Which version and edition of Flyway are you using?
9.19.4
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using? (Type & version)
Mysql & Oracle
Which operating system are you using?
Linux
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
When I run the migrations (./flyway migrate -user=lodas_dba -baselineOnMigrate=true -validateOnMigrate=false -table=T_FLYWAY_SCHEMA_HISTORY -url=jdbc:oracle:thin:@<IP_ADDRESS>:1536:ora12c), I hope the system will prompt
Database password:

What did you expect to see?
When my command line does not enter -password=xxx, I want it to prompt me for the password below, like this:

What did you see instead?
I get this error:
ERROR: Unable to obtain connection from database (jdbc:oracle:thin:@<IP_ADDRESS>:1536:ora12c) for user 'lodas_dba': ORA-01005: null password given; logon denied

SQL State  : 72000
Error Code : 1005
Message    : ORA-01005: null password given; logon denied
Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied

Thank you for your suggestion. Since flyway is more commonly used in pipelines in non-interactive environments and that no password can be a valid option, this is not something Flyway currently does not do.
If attention increases we may revisit this.

Upon revisiting this issue, Flyway does have a prompt mechanic. However, your URL configuration is supplying Flyway with a blank password. The @ symbol in your JDBC url is supplying an empty username and password (of which the username is being overridden by the configuration). Please refactor your command to use -url=jdbc:oracle:thin:<IP_ADDRESS>:1536:ora12c

Upon revisiting this issue, Flyway does have a prompt mechanic. However, your URL configuration is supplying Flyway with a blank password. The @ symbol in your JDBC url is supplying an empty username and password (of which the username is being overridden by the configuration). Please refactor your command to use -url=jdbc:oracle:thin:<IP_ADDRESS>:1536:ora12c

Sorry, I posted a problematic picture, because I can enter the password interactively using Flyway 8.2.2, but Flyway 9.19.4 does not support this method, as shown below

As mentioned in my previous response, Flyway has become more controlled over passwords in URL and the @ is stating that you are supplying an intentional empty username and password of which you are overriding the username in the command line but not the password. Please remove the @ symbol from your url to check if that resolved your problem.

As mentioned in my previous response, Flyway has become more controlled over passwords in URL and the @ is stating that you are supplying an intentional empty username and password of which you are overriding the username in the command line but not the password. Please remove the @ symbol from your url to check if that resolved your problem.

Hi @Barry-RG ,
I'm encountering the exact same issue as the original poster (@happyzhx).
I'm using Flyway 10.4.1 and I've removed the @ from the url field of the Flyway configuration file as you have suggested. However, I still get the same issue when using a .conf file: it doesn't actually read whatever I write into the input for the user or password fields when prompted (the error keeps on mentioning that the user/password fields are null).
I tried migrating my settings to the modern .toml file format, but that just outright gives me an error & mentioned that I have to supply the user/password fields explicitly (rather than being prompted to do so)

Small update from me: everything works as intended when I'm using Flyway 9.18.0.

Hi all,
Just a heads up, Interactive prompt behavior is deprecated and will be removed in a future release.


[supply] can't upload changelog unless all languages are translated

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
If at least one, but not every language has translated release notes for a release, it cannot be released.
Command executed
bundle exec fastlane run upload_to_play_store

Complete output when running fastlane, including the stack trace and command used

[12:14:11]: ----------------------------------
[12:14:11]: --- Step: upload_to_play_store ---
[12:14:11]: ----------------------------------
+------------------------------------+-------------------------------------------------------+
|                                 Summary for supply 2.211.0                                 |
+------------------------------------+-------------------------------------------------------+
| track                              | beta                                                  |
| release_status                     | draft                                                 |
| apk                                | app/build/outputs/apk/nonfree/release/app-nonfree-re  |
|                                    | lease.apk                                             |
| skip_upload_images                 | true                                                  |
| mapping                            | app/build/outputs/mapping/nonfreeRelease/mapping.txt  |
| metadata_path                      | ./fastlane/metadata/android                           |
| skip_upload_apk                    | false                                                 |
| skip_upload_aab                    | false                                                 |
| skip_upload_metadata               | false                                                 |
| skip_upload_changelogs             | false                                                 |
| skip_upload_screenshots            | false                                                 |
| track_promote_release_status       | completed                                             |
| validate_only                      | false                                                 |
| check_superseded_tracks            | false                                                 |
| timeout                            | 300                                                   |
| deactivate_on_promote              | true                                                  |
| changes_not_sent_for_review        | false                                                 |
| rescue_changes_not_sent_for_review | true                                                  |
| ack_bundle_installation_warning    | false                                                 |
+------------------------------------+-------------------------------------------------------+
[12:14:12]: Preparing apk at path 'app/build/outputs/apk/nonfree/release/app-nonfree-release.apk' for upload...
[12:14:15]: 	Version Code: 5000003
[12:14:15]: Preparing mapping at path 'app/build/outputs/mapping/nonfreeRelease/mapping.txt', version code 5000003 for upload...
[12:14:17]: Updating track 'beta'...
[12:14:18]: Preparing to upload for language 'ar'...
[12:14:40]: Could not find changelog for '5000003' and language 'ar' at path ./fastlane/metadata/android/ar/changelogs/5000003.txt...
[12:14:40]: Preparing to upload for language 'bg'...
[12:15:02]: Could not find changelog for '5000003' and language 'bg' at path ./fastlane/metadata/android/bg/changelogs/5000003.txt...
[12:15:02]: Preparing to upload for language 'ca'...
...
[12:15:48]: Preparing to upload for language 'en-US'...
[12:16:10]: Updating changelog for '5000003' and language 'en-US'...
...
[12:16:33]: Preparing to upload for language 'fr-FR'...
[12:16:57]: Updating changelog for '5000003' and language 'fr-FR'...
...
[12:24:13]: Uploading all changes to Google Play...
+-------------------------------------+-------------------------------------------------------+
|                                        Lane Context                                         |
+-------------------------------------+-------------------------------------------------------+
| DEFAULT_PLATFORM                    | android                                               |
| PLATFORM_NAME                       | android                                               |
| LANE_NAME                           | android release                                       |
...
+-------------------------------------+-------------------------------------------------------+
[12:24:15]: Google Api Error: Invalid request - Release notes are badly constructed or have duplicates.
+------+-----------------------------------+-------------+
|                    fastlane summary                    |
+------+-----------------------------------+-------------+
| Step | Action                            | Time (in s) |
+------+-----------------------------------+-------------+
| 1    | default_platform                  | 0           |
| 2    | clean assembleRelease             | 108         |
| 3    | Switch to android upload_to_play  | 0           |
|      | lane                              |             |
| 💥   | upload_to_play_store              | 604         |
+------+-----------------------------------+-------------+
[12:24:15]: fastlane finished with errors
[!] Google Api Error: Invalid request - Release notes are badly constructed or have duplicates.

Environment
fastlane details crashed with some obscure error relating to markdown.
Stack
| Key | Value |
| fastlane | 2.211.0 |
| OS | fedora Fedora release 37 (Thirty Seven) |
| Ruby | 3.1.3 |
| Bundler? | true |
| Git | git version 2.39.0 |
| Host | \S
Kernel \r on an \m (\l) fedora Fedora release 37 (Thirty Seven) (6.0.18-300.fc37.x86_64) |
| Ruby Lib Dir | /usr/lib64 |
| OpenSSL Version | OpenSSL 3.0.5 5 Jul 2022 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
System Locale

Variable
Value

LANG
fr_FR.UTF-8
✅

LC_ALL

LANGUAGE

fastlane gems

Gem
Version
Update-Status

fastlane
2.211.0
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-upload_to_gitlab
0.1.2
✅ Up-To-Date

UP

As a workaround i am currently copying the changelog on each locale before calling supply but its super annoying


Streaming Supported in Serverless Azure SignalR?

I am attempting to move a SignalR implementation from a dedicated .NET Core web app into a serverless Azure SignalR implementation. I have followed the documentation for configuring this and am able to see a successful negotiation and normal message send. However, when I try to implement a streaming hub, I am not able to get the Azure SignalR service to call my function app. I see the client call to signalr passing an invocation type of 4, but the function is never triggered. If I change to type to be a regular invocation message (type 1) it calls through to the function app successfully.
My question is are streaming hubs supported for serverless Azure SignalR? And if so, is there an example of the function binding parameters for a streaming hub?

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

ID: e2c2755f-9604-2e0d-827b-9f8db937279c
Version Independent ID: 84ba9454-4cc9-2a93-0708-10ad7c1428ed
Content: Develop & configure Azure Functions app - Azure SignalR
Content Source: articles/azure-signalr/signalr-concept-serverless-development-config.md
Service: signalr
GitHub Login: @anthonychu
Microsoft Alias: antchu

@kmcguinn-caravan Thanks for the feedback! We are currently investigating and will update you shortly.

Any updates on this?

No, serverless mode doesn't support streaming hub.

Fixed in PR #196346.
#please-close


Doesn't pass egui color test

Hey! I've been working on a simple vulkano backend for egui as well :sweat_smile: I just tried your example and noticed it doesn't pass the color test on my machine:

I was able to fix the colors by setting the swapchain format like this
assert!(&caps
  .supported_formats
  .contains(&(Format::B8G8R8A8Srgb, ColorSpace::SrgbNonLinear)));
let format = Format::B8G8R8A8Srgb;

instead of caps.supported_formats[0].0
Don't know what's going on with the texture gradients. Anyway, I'd love to have a chat about some of the decisions you've made. For example, it seems you're creating a new CpuAccessibleBuffer for every mesh? When I tried that I got horrible performance, but I must have been doing something wrong because your demo app seems to run fine...

okay I tested egui_wgpu_backend like way but i cant pass vulkano validation so horrible way in current

may be pipeline setting ?

problem caused from renderpass?


Webhook returns 500 Internal Server Error when deleting an invalid webhook id "1a1"

Rancher Versions:
Server:v1.4.0-rc2
Docker Version::1.12.6
**OS and where are the hosts located? (cloud, bare metal, etc):**Ubuntu, Cloud
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Steps to Reproduce:

Create a few webhooks
Delete a webhook with aninvalid webhook id such as 1a1 [Note: 1a1 is the account id for admin]

Results:
soumyas-MacBook-Pro:notes soumya$ curl -i -H 'Accept: application/json'  -H 'Content-Type: application/json' -X DELETE http://<IP_ADDRESS>:8080/v1-webhooks/receivers/1a1?projectId=1a5
HTTP/1.1 500 Internal Server Error
Content-Length: 293
Content-Type: text/plain; charset=UTF-8
Date: Wed, 18 Jan 2017 21:41:46 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Jetty(9.2.11.v20150529)
Set-Cookie: PL=rancher;Path=/
X-Api-Account-Id: 1a5
X-Api-Schemas: http://<IP_ADDRESS>:8080/v1/schemas
X-Rancher-Version: v1.4.0-rc2

{"actions":{},"links":{"self":"http://<IP_ADDRESS>:8080/v1-webhooks/receivers/1a1"},"message":"Bad response statusCode [405]. Status [405 Method Not Allowed]. Body: [] from [http://localhost:8080/v2-beta/projects/1a5/register/1go1]","status":"Server Error","statusCode":500,"type":"error"}

It should return a "404 Not Found" error.

Tested with master. 500 Internal server error is not seen when we delete a invalid webhook with id "1a1". We see a 405 method not allowed as 1a1 is the admin id.
soumyas-MacBook-Pro:notes soumya$ curl -i -H 'Accept: application/json'  -H 'Content-Type: application/json' -X DELETE http://<IP_ADDRESS>:8080/v1-webhooks/receivers/1a1?projectId=1a5
HTTP/1.1 405 Method Not Allowed
Content-Length: 292
Content-Type: application/json
Date: Wed, 25 Jan 2017 23:55:45 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Jetty(9.2.11.v20150529)
Set-Cookie: PL=rancher;Path=/
X-Api-Account-Id: 1a5
X-Api-Schemas: http://<IP_ADDRESS>:8080/v1/schemas
X-Api-User-Id: 1a1

{"actions":{},"links":{"self":"http://<IP_ADDRESS>:8080/v1-webhooks/receivers/1a1"},"message":"Bad response statusCode [405]. Status [405 Method Not Allowed]. Body: [] from [http://localhost:8080/v2-beta/projects/1a5/register/1go1]","status":"Server Error","statusCode":405,"type":"error"}


Don’t add an implicit leading newline in CodeBlockItemList result builder if previous element already has a trailing newline

@swift-ci Please test


examples/web-landing: FormattedCodeSnippet incompatible with newer versions of highlight.js

Summary
When I try and format a code snippet, following the example code in examples/web-landing, the raw string content is not produced.
For example, this code
@Composable
fun example() {
  P {
    Code {
     FormattedCodeSnippet("""
       blah1

       blah2

       blah3
     """.trimIndent())
    }
  }
}

will produce something like

    "blah1"

    "blah2"

    "blah3"

I expect that it produces the raw string, exactly:

    blah1

    blah2

    blah3

Outcome
Because the text is formatted, highlight.js cannot format it properly
Example:

Also, highlight.js logs a lot of warnings in the console:
One of your code blocks includes unescaped HTML. This is a potentially serious security risk.
https://github.com/highlightjs/highlight.js/wiki/security

Proposal
The formatting takes place in this function
https://github.com/JetBrains/compose-jb/blob/1a7d74461f3008c7440b04c788e54e64c126985b/examples/web-landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt#L12-L15
Instead of using innerText, textContent should be used instead https://stackoverflow.com/a/35213639/4161471

Much better!

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Companies in Netherlands

Added eLEAF and Merkator BV (Has 2 locations in the Netherlands).

Thank you, much appreciated! Added the third office for Merkator in Belgium as well, updating soon.


Fix issues related to apply ion-test-driver to ion-c and ion-js.

Improved analyze disagree list logic for write_compare phase.
For example:
ion-java_1,text,ion-c means using ion-java_1 to rewrite ion-c in text format. Before we compare this to all the files that re-written by ion-java_2. Now I made it more accurate that ion-java_1,text,ion-c only compares to ion-java_2,text,ion-c.
By this way we can make sure they behaviors same for a specific action.
For code:
first_file/ second_file means the file re-written by the first impl/ second imp.
line 860 agree variable represents if two disagree list agree with each other, if not alert users.
line 862, second_file is the variable represents what the current file will compare to. e.g. ion-java_1,text,ion-c only compares to ion-java_2,text,ion-c.
line 868 if we find the first file in the second file's disagree list, then they disagree with each other.

Above commit Improved analyze disagree list logic for write_compare phase.
For example:
ion-java_1,text,ion-c means using ion-java_1 to rewrite ion-c in text format. Before we compare this to all the files that re-written by ion-java_2. Now I made it more accurate that ion-java_1,text,ion-c only compares to ion-java_2,text,ion-c.
By this way we can make sure they behaviors same for a specific action.
For code:
first_file/ second_file means the file re-written by the first impl/ second imp.
line 860 agree variable represents if two disagree list agree with each other, if not alert users.
line 862, second_file is the variable represents what the current file will compare to. e.g. ion-java_1,text,ion-c only compares to ion-java_2,text,ion-c.
line 868 if we find the first file in the second file's disagree list, then they disagree with each other.

Above commit fixed different message issue.
Since we recognize the error type by message. So if two messages shows the different text we treat it as different errors.
In addition, message text is generated by cli tools.
I noticed that ion-c always include implementations' name in the message which will makes ion-test-driver treat 2 same type issue differently.
To avoid this, and make sure implementation's revision number doesn't affect error type, I removed all revision number. For example ion-c_abcd1234 will be replaced to ion-c.


Annouce

When i try announce, and put in my image link it won't work. It says "Error announcing!
📑 • The link you entered does not exist or is not a valid link! Please try again later!"

When i try announce, and put in my image link it won't work. It says "Error announcing! 📑 • The link you entered does not exist or is not a valid link! Please try again later!"

Hello,
You must use a link image that ends in .PNG or .JPG and use a link with https://


Redeem ITN rewards from mainet wallet

Context

As a ADA stakeholder who participated in the ITN,
I want to be able to redeem my rewards from the ITN to my mainnet wallet,
Without having to send a transaction to my ITN account first.
So that I can enjoy my ITN rewards.

Decision

Make it possible to redeem rewards of a wallet A from the API using another wallet B.

Acceptance Criteria

It must not be necessary to restore the ITN wallet in order to redeem its rewards.

Development

Add a new withdrawal field to Shelley transactions to replace the ?withdrawReward and extend its behavior ==> #1967

QA

See documentation on:

postTransaction
postTransactionFee

Added extensive test scenarios to cover for various cases. The test scenarios use newly introduced "rewardWallet" faucets which are wallets which come with pre-existing rewards.

https://github.com/input-output-hk/cardano-wallet/blob/5af6e35a4f70ca8e1cebe413b19a99439e04addb/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs#L1258-L1287

https://github.com/input-output-hk/cardano-wallet/blob/5af6e35a4f70ca8e1cebe413b19a99439e04addb/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs#L1289-L1324

https://github.com/input-output-hk/cardano-wallet/blob/5af6e35a4f70ca8e1cebe413b19a99439e04addb/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs#L1326-L1357

https://github.com/input-output-hk/cardano-wallet/blob/5af6e35a4f70ca8e1cebe413b19a99439e04addb/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs#L1359-L1378

https://github.com/input-output-hk/cardano-wallet/blob/5af6e35a4f70ca8e1cebe413b19a99439e04addb/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs#L1380-L1398

Looking forward to this one. :)

I have tested manually on MC4 and locally on cluster, trying out different cases:

Can redeem rewards from self/other sending more than rewards, but utxo should cover
Can redeem rewards from self/other  sending more than utxo, rewards should cover
Can redeem sending my all utxo, rewards should cover fees
Can redeem sending all rewards, utxo should cover fees
Can't redeem rewards from other when utxo is 0
Can't redeem rewards from self when utxo is 0
Not-enough money when redeeming > utxo + rewards
Cannot cover fee when redeeming = utxo + rewards

Looking at the transactions it seems everything OK, in terms of amount / input / outputs on the receiver and sender side. (Hopefully I haven't missed anything).
Added PR with some additional cases also -> https://github.com/input-output-hk/cardano-wallet/pull/1987
One thing I was wondering about is that when you withdraw rewards from a foreign wallet, there is no evidence (in terms of transaction history on that foreign wallet, that there was a withdrawal). Transaction is only listed on a wallet from where you were doing transaction only (and a receiver wallet.)

Scenarios have been a bit reviewed in #1987 to avoid having too many cases taking a long time at the integration level. Many of the original edge-cases in #1987 are actually tested at the unit level via the coin selection algorithm, so only a few end-to-end tests are needed to confirm that the behavior works as intended :+1: