HealSession causes Too many open files

Using HealSession with SessionMonitor.
When instance hostname is unresolvable connect throws UnresolvedAddressException, but socket is already opened and not closed. That quickly resolves in Too many open files exception because exception is thrown instead of failing the future, so exponential retry is not used but immediate one. Number of retries is not updated because exception is thrown, so handled there.
Proposed change (without tests and proper formatting): https://github.com/killme2008/xmemcached/compare/master...matejuh:heal_fix?diff=split&expand=1&name=heal_fix

Thanks for your report, yep, it should close the channel event it's not an IOException here, can you make PR for this? thanks

https://github.com/killme2008/xmemcached/pull/84

Do you plan to release it?
Is there any specific reason why HealThread is not per backend instance (key in sessionMap), but per each connection instance (value in sessionMap)?

Do you plan to release it?

I will release it tonight.
Is there any specific reason why HealThread is not per backend instance (key in sessionMap), but per each connection instance (value in sessionMap)?

Because client may use connection pool(session pool).

2.4.4 released.
https://github.com/killme2008/xmemcached/releases/tag/xmemcached-2.4.4
But it may take sometime to be synced into central repository.


Documentation problem, "How to install on IOS"

it says:
Replace the example/ios/Runner/AppDelegate.m line with ${PROJECT_ROOT}/ios/Runner/AppDelegate.m. (Notice: You should merge the old one in your project to merge with the new from this plugin if you have some change on that file)
Replace what "line"? I copied entire file instead, but the plugin still doesnt work on IOS.

 The last commit here was 6 months ago, to me it seems this project is at best tenuously maintained and at worst, abandoned. I've since installed adhara_socket_io (search the Googles for it). It works great.


[Maven] spring.version property needs to be declared even when not using spring

MariaDB4j uses spring.version property for spring-core dependency.
We use MariaDB4j in a library artefact, that gets BOM-imported into other parts of the application. This fails without redeclaring the spring.version property in the final destination POM:
[ERROR] Failed to execute goal on project example-impl: Could not resolve dependencies for project com.example:example-impl:jar:1.5.0-SNAPSHOT: Failed to collect dependencies at com.example:example-rest-client:jar:1.7.0-SNAPSHOT -> com.example:common-test:jar:1.15.0-SNAPSHOT -> ch.vorburger.mariaDB4j:mariaDB4j:jar:2.3.0 -> ch.vorburger.mariaDB4j:mariaDB4j-core:jar:2.3.0 -> org.springframework:spring-core:jar:${spring.version}: Failed to read artifact descriptor for org.springframework:spring-core:jar:${spring.version}: Could not transfer artifact org.springframework:spring-core:pom:${spring.version} from/to nexus (http://nexus.example.com:8081/repository/public/): Failed to transfer file: http://nexus.example.com:8081/repository/public/org/springframework/spring-core/$%7Bspring.version%7D/spring-core-$%7Bspring.version%7D.pom. Return code is: 400 , ReasonPhrase:Invalid repository path. -> [Help 1]

Maven POM import:
<type>pom</type>
<scope>import</scope>

typically used as a BOM-import pattern does not import Maven properties. import imports only management sections of the pom file.
Redeclaring the version is an ugly workaround, because our application does not depend on spring in any way.
This probably can be fixed by simply not using the property version declarations, and using the <dependencyManagement> instead.

Redeclaring the version is an ugly workaround, because our application does not depend on spring in any way.

I agree, makes sense.

This probably can be fixed by simply not using the property version declarations, and using the  instead.

Would you be willing to support this project which you use by raising a PR which does this?

Actually, I take that back. It looks like the issue was on our side.
However, I've found out that the spring.version property gets overriden anyway by the springboot import, so it is useless. Will make a PR shortly.


Calling a serializer requires context.

The docs and comments for JWT_RESPONSE_PAYLOAD_HANDLER suggest the following to add the serialized user to the response.  But that produces an error that I detailed in This SO Post.
The following change works, but I'm not totally clear on what the Serializer is requiring and if this is a workaround that should be done differently.
Want a PR to change the comments and docs to this?
return {
    'token': token,
    'user': UserSerializer(
        user,
        context={
            'request': request},
        ).data
}

DRF's Hyperlinked... fields use the request to generate the URL for the hyper link — that's why they need it.

Want a PR to change the comments and docs to this?

Yeah. That would be great!


Added automerge github workflow

Description
This PR copies the automerge workflow that @dalonsoa suggested we could use to automatically merge dependabot and pre-commit pull requests (provided that they pass the CI/QA checks).
I can't think of anyway of testing whether this works (we just have to wait for a dependabot/pre-commit PR). So do let me know if the workflow looks like it'll work.
Fixes #570
Type of change

[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[x] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[ ] Code is commented, particularly in hard-to-understand areas
[ ] Tests added that prove fix is effective or that feature works
[ ] Relevant documentation reviewed and updated

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.08%. Comparing base (c0cd731) to head (0b6c0ff).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #584   +/-   ##
========================================
  Coverage    95.08%   95.08%
========================================
  Files           74       74
  Lines         4295     4295
========================================
  Hits          4084     4084
  Misses         211      211

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


ARROW-17078: [C++] Cleaning up C++ Examples

A simple util file was added to include a macro used in each example and may be in future we can include common utils like data generators, writers, etc in the here. This is just a suggestion.

cc @pitrou @lidavidm

While usually I'm strongly in favour of avoiding duplication and building up reusable facilities, in this case I'm not sure it's a good idea to introduce a specific header file for examples, instead of a single .cc file per example.
@westonpace @cyb70289 @kou What do you think?

If anything I'd rather have examples ported to the cookbook, but yes, I'd rather try to keep examples here reasonably self-contained.

In general, I want to keep examples as simple as possible for easy to understand by users. For example, minimal dependencies, straightforward implementations and so on.
In this case, I don't want to do this because it increases a (small) dependency (example_utils.h).
How about removing ABORT_ON_FAILURE() and using ARROW_RETURN_NOT_OK() with non-main() function like https://github.com/apache/arrow/blob/master/cpp/examples/arrow/join_example.cc instead of using ABORT_ON_FAILURE() in main()?

@kou may be I can do that here.

Yes, please. :-)

We should also file a JIRA since this isn't really a minor change

@lidavidm I renamed the PR to match with the filed JIRA. Should we do something to track it here?

It will automatically link the JIRA, just be patient and let the Dev CI pipeline run to make the link.

Looks like failures are primarily due to the Protobuf linkage issue.

Looks like failures are primarily due to the Protobuf linkage issue.

Is this independent of this change?


[BEAM-4046] Allow running gradlew from repo subdirs

Example:
$ cd sdks/python
$ ... # use python tools
$ ../../gradlew lint

Also reduces verbosity of wrapper script.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Opened https://issues.apache.org/jira/browse/BEAM-7401 for unrelated community metrics failure

Re: Windows, I don't have an easily accessible environment to test any changes I make.
Similarly to gradlew_orig, gradlew_orig.bat seems to try to determine the script's dirname:
https://github.com/apache/beam/blob/a87ca3f63004a862e65c1cc77ffc0e0c88e055bb/gradlew_orig.bat#L29-L30
ref about $~dp0: https://stackoverflow.com/a/5034119/63302

thx, @udim
I ll look into that adaption for windows. I do not have such an env either, but its probably better to be consistent here.
Hope, we get rid of this hack soon, anyway.

Thanks @udim. This fixed my Gradle workflow as well :)


Association's calculation not being loaded on mutation

I have a mutation query that in its result loads the record and its belongs_to association. The association has a custom calculation attribute that loads a boolean value using an additional db query. Something like:
mutation ...($id: ID, $input: ...) {
  ...(id: $id, input: $input) {
    result {
      ...
      user {
        someBooleanFlag
      }
    }
  }
}

The API call fails with:
 ** (Absinthe.SerializationError) Could not serialize term #Ash.NotLoaded<:calculation> as type Boolean

I don't see the additional query in logs so I'm assuming the calculation is not called at all.

🤔 very interesting that the association is loaded but not its calculation. Will look into this.

So I've pushed up a test that illustrates this behavior working: https://github.com/ash-project/ash_graphql/commit/6b805777aeccfb710dbf6ed4422b31b938af6e83
It would be good to determine what makes those two cases different (and to try out main if you haven't already, as the issue may just be fixed in main). It might be useful for me to see the calculation itself.

I'm already on the 9bb12460d4408f67d2460b64f4196b698e8c60f7 🤔. I think I've found the root issue. The problem is that my resource (the one that the mutation refers to) is in the "manual" relation with the user (migrating from the legacy system):
# relation definition:
    has_one :user, App.Resources.User do
      manual __MODULE__.ManualRelationship.FetchUser
    end

# and the manual relationship:
defmodule App.Resources.SavingHabit.ManualRelationship.FetchUser do
  use Ash.Resource.ManualRelationship

  def load(records, _opts, %{relationship: relationship}) do
    # Return a map of primary keys of the records to the related records.
    # This example is likely suboptimal because it does a separate fetch for
    # each record, whereas you likely want to try to fetch them all at once,
    # and then create the mapping from pkey values to related records
    # For example:

    # get the primary key
    primary_key = Ash.Resource.Info.primary_key(relationship.source)

    {:ok,
     Map.new(records, fn record ->
       pk = Map.get(record, :user_key)
       {:ok, user} = App.Resources.User.get_by_id(pk)
       {Map.take(record, primary_key), user}
     end)}
  end
end

I guess it will work just fine after migration relationships from the legacy code (so removing manual in favor of Ash's fk).

Ah, well this is definitely a problem. Ash should take care of loading through manual relationships like that. I'll reopen and address, thanks for the report!

This is fixed in latest ash main.


Refactor literal class name to constants

[x] Button (#838)

[x] Card (#839)

[ ] Checkbox
- https://github.com/material-components/material-components-web/pull/4674

[ ] Chips
- https://github.com/material-components/material-components-web/pull/4683

[ ] Drawer
- https://github.com/material-components/material-components-web/pull/4684

[x] Fab (#844)

[x] FloatingLabel (#845)

[ ] IconButton
- https://github.com/material-components/material-components-web/pull/4685

[x] LayoutGrid (#846)

[ ] LineRipple
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-line-ripple

[ ] LinearProgress
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-linear-progress

[ ] List
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-list

[ ] MenuSurface

[ ] NotchedOutline
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-notched-outline

[ ] Radio
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-radio

[ ] Select
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-select

[ ] SnackBar
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-snackbar

[ ] Switch
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-switch

[ ] TabBar
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-bar

[ ] TabIndicator
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-indicator

[ ] TabScroller
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-scroller

[ ] Tab
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab

[ ] Text Filed
- https://github.com/material-components/material-components-web/pull/4608
- https://github.com/material-components/material-components-web/pull/4614

[ ] TopAppBar
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-top-app-bar

I created feat/constants branch on upstream for future PRs so we can merge to master branch at once. Thanks!

@abhiomkar
That's nice. Thank you!

It's going to take a lot of time to merge https://github.com/material-components/material-components-web/pull/4761.
Close this issue and I'll reopen after merging!


Update KuromojiTokenizer.scala

Spark 2.x fix. CallUDF replaced with UDF.

Thanks for the PR. Can you look into the unit testing? TravisCI failed to pass the unit test.
https://travis-ci.org/yu-iskw/spark-kuromoji-tokenizer

@ashosaho Is there any update?


Angular Project Template does not work with ng commands

Moved from https://github.com/aspnet/Docs/issues/5927. Original issue opened by @rhires.

Issues with Existing Topic
https://docs.microsoft.com/en-us/aspnet/core/spa/angular?tabs=netcore-cli
This comment is as of April 7, 2018, and pretty much spells out the issue:
Well... This is no good... Installed .NET Core SDK 2.1.
Ran "dotnet new angular -o myproject"
went to the newly created directory and ran NPM install.
*Everything is great... ran the application and it loads on my web browser
Then went to the ClientApp directory and ran "ng g c mycomponent"
and got this error: "Unable to find any apps in .angular-cli.json"
Looked at the directory and noticed that there is no .angular-cli.json file at the root of the ClientApp directory.
Tried it twice BTW, and same results. I know I can go an create the file, but I'm pretty new to angular, and now I got to break my head because the template is not complete.
So basically, there is something missing from the template install.

@SteveSandersonMS - any ideas on this issue?

We didn’t consciously change this but maybe it regressed somehow. Hard to see how the app could be running at all if that file is missing though. Will try to repro.

This reasoning makes sense, thanks @SteveSandersonMS .


bug...

xyz.hexile.cloudflarescraper.ScraperException: Error parsing Cloudflare IUAM Javascript challenge. Please report to @author@ [@github@].

Thanks for the report!
I am aware of the issue. I haven't updated the library since CloudFlare changed the challenge, so the library won't work.
There is another problem also, it cannot be used in Android, because it uses the Nashorn engine to execute JavaScript code, and that is not supported in Android.
I would like to rewrite the entire library, but I don't have much time do to so. Feel free to make a pull request.

I've tried updating the code, but the included Nashorn engine doesn't support some functions added in the Cloudflare challenge. We could use either Node JS or something else, but I won't update the code in the near future.


TypeError: URI is not a function

Working on an older frontend stack (no Babel etc...).
Concatenated node_modules/uri-js/dist/es5/uri.all.js with my other vendors.
The following code used to work but now throws a type error (it is used to get the value of the bearer query string of the current URI).
var bearer = URI().query(true)['bearer'];

Am I doing something wrong?

That code is correct, so the problem must be how/when you load the library.

please check if you're using requirejs or something like that
please check the order of concatenation, the library must be loaded before it's used…

@rodneyrehm As mentioned, I am not using contemporary build tools such as RequireJS. I am simply concatenating the content of node_modules/uri-js/dist/es5/uri.all.js with the rest of my vendors which are loaded before the rest of my app (not ideal, but old stack as mentioned). The result for version 1.19.1 is that the variable URI exists but is an object not a function so the above code throws a type error.
This process worked fine up until version 1.18.12 for which I simply concatenated the content of node_modules/urijs/src/URI.js with the rest of my vendors.
Perhaps you dropped support for older ways of adding the library to codebases?

Perhaps you dropped support for older ways of adding the library to codebases?

not according to https://github.com/medialize/URI.js/releases - https://github.com/medialize/URI.js/compare/v1.18.12...v1.19.1 doesn't contain any changes that would suggest loading would behave differently.

Goddamn, installed uri-js vs urijs. Confusing set of URI utilities on NPM. Thanks for your help @rodneyrehm. Sorry for submitting this issue.


Investigate clashes

The following clashes were identified:
cmet:
- lig_CHEMBL3402745_200_5
- lig_CHEMBL3402745_200_5

hif2a:
- lig_224

hif2a's lig_224 "clash" is a 0.79 A overlap between atoms O25 and C27. See below for weird geometry.

@dotsdl I'm unable to reproduce the clash you identified for cmet, visual inspection seems fine, could you double check here?


Question about permissions on Lua side

First of all thank you for this awesome library!
My question is this: How do I make a table/namespace and its content readonly/const?
Let's say I have a class
struct Object
{
    void myFunc()
    {
        cout << "hello\n";

and then I bind it in...
int main()
{
    sol::state lua;
    lua.open_libraries(sol::lib::base);

    Object my_obj;

    sol::table obj_table = lua.create_named_table("object");
    obj_table.set_function("my_func", sol::readonly(&Object::myFunc), &my_obj);

So that my interface on the lua side will look like this
object.my_func()

I read in the docs that if I used sol::readonly() that the value should not be overwritten and that is really the behavior I want for the whole table and its member functions. There should only exist 1 instance of Object during the whole execution of the program. I don't want the user to be able to create new Object but I have some problems with this idea.
How do I stop the end user from totally destroying the lua interface by doing this?:
object = nil

Also I tested and sol::readonly() doesn't do what I expected. I am able to do this:
object.my_func = nil

Basically I'm trying to create a programming interface by exporting some functionality to lua but I want to be able to block the user from overwriting these tables and their functionality.

So, in order to make a regular table readonly you need to hijack the __newindex metamethod of a table's metatable and set it to nil. sol::readonly and those things only work for usertypes, because we explicitly control the metatable in those cases.
Granted, this is easy for you to do with Sol2. Here's a complete example:
#define SOL_CHECK_ARGUMENTS
#include <sol.hpp>

#include <iostream>

struct Object {
	void myFunc() {
		std::cout << "hello\n";
	}
};

int deny(lua_State* L) {
	return luaL_error(L, "HAH! Deniiiiied!");
}

int main() {
	sol::state lua;
	lua.open_libraries(sol::lib::base);

	Object my_obj;

	sol::table obj_table = lua.create_named_table("object");

	sol::table obj_metatable = lua.create_table_with();
	obj_metatable.set_function("my_func", &Object::myFunc, &my_obj);
	// Set whatever else you need to

	// Properly self-index metatable to block things
	obj_metatable[sol::meta_function::new_index] = deny;
	obj_metatable[sol::meta_function::index] = obj_metatable;

	// Set it on the actual table
	obj_table[sol::metatable_key] = obj_metatable;

	try {
		lua.script(R"(
print(object.my_func)
object["my_func"] = 24
print(object.my_func)
		)");
	}
	catch (const std::exception& e) {
		std::cout << e.what() << std::endl;
	}
	return 0;
}

Of course, I say "easy", but a person who doesn't know how Lua works underneath probably couldn't write this code. Therefore, I might have to open an issue request to further generalize the purpose of sol::readonly, or to perhaps have a method on tables called my_table.make_readonly();. Still, the above code should get you on your way.
Good luck.


Design the Intro and Connect sections of the sponsorship webpage

Create the Intro and Connect sections in a sponsorship.html page at the root of this repository. It should contain the content seen at this design. Make sure to use semantic, accessible HTML elements and to abstract your styles into a separate CSS/SCSS file.

Closed by #10

Closed by #10


PowerToys Run Plugin Initialization Error

Microsoft PowerToys version
0.85.1
Installation method
GitHub
Running as admin
None
Area(s) with issue?
General
Steps to reproduce
Error report appears whenever laptop is booted
Error says - Fail to initialize plugins: Winget
Doesn't seem to cause any problem, just need to click OK to remove the error report
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

@AntonyFe
Sounds like a problem with the winget plugin in PowerToys run. Disabling the plugin should remove the error message.
You can check on the GitHub page of the plugin if there is a newer release or download on import (copy) it again. If this doesn't help you can create an issue on the plugin's Repository.


Allowing custom attributes to determine Primary Key, Auto Increment, etc.

These changes allow for attributes(and other logic) from outside of the library to determine whether a column is a Primary Key, Auto Incremented, Indexed, etc.
Reason: I am writing data contracts that I want to be storage agnostic, meaning that I don't want to clutter my data contracts with attributes from many different storage technologies. These could be used by anybody in my company against any data storage technology(json or xml files, SQLite, EntityFramework, etc.). We have this working for the most part for EntityFramework and other storage techs. I am currently implementing storage in our Xamarin application and there are properties I want to ignore from the SQLite database.
For instance, let's say I have an interface and an implementation. Currently, if I wanted to ignore the EmployeeID property, I have to put in ignore attributes like below...
public interface IDataItem
{
	int ID { get; set; }
}

public class DataItem : IDataItem
{
	public int ID { get; set; }
}

public class Employee : DataItem
{
	[JsonIgnore]
	[XmlIgnore]
	[SQLite.Net.Ignore]
	// other "ignore" attributes from other storage providers(ie. Entity Framework, etc.)
	// since we already have ID, we don't need both columns in a database/file since they
	//   both refer to the same value
	public int EmployeeID
	{
		get { return base.ID; }
		set { base.ID = value }
	}
}

I want to be able to do something like this...
public class MyIgnoreAttibute : Attribute
{

}

public class Employee : DataItem
{
	[MyIgnoreAttribute]
	public int EmployeeID { get; set; }
}

where we can use MyIgnoreAttribute to ignore the column in SQLite without having to have a reference to SQLite.
This is what I have accomplished with my changes. By providing an instance of IColumnInformationProvider, an outside class can determine the information about the column. So for my case, my provider would look like...
public MyColumnInfoProvider : IColumnInformationProvider
{
	// ... other interface methods implemented

	public bool IsIgnored(PropertyInfo p)
	{
		return p.IsDefined(typeof (MyIgnoreAttribute), true);
	}
}

//... somewhere in my code...
var sqlConnection = new SQLiteConnection(....);
sqlConnection.ColumnInformationProvider = new MyColumnInfoProvider();

The changes made to the library are backwards compatible. Setting this property is not required. If an instance is not provided, an instance of the DefaultColumnInformationProvider class will be created and used. This default instance does exactly what the code previously did. So not giving a provider will make the library work exactly the same as before.

This looks nice and I like the idea. I'm currently on vacation but I will take a look next week when I'm back :)

Thanks @oysteinkrog . I just noticed that I made the changes to the SQLite.Net solution and NOT the SQLite.Net.OSS solution. Is that going to be a problem?

@oysteinkrog will you be able to take a look at the pull request this week? Thanks

Sorry for the delays.
This looks good, my only complaint is that you did not use the same formatting as the rest of the code (tabs vs whitespace indentation etc), but I'll fix that.
Thank you :)

Awesome. Thanks. Is there a threshold that needs to be hit before releasing a new release on nuget? The last release was in November :(. I'm just looking forward to stop using my custom built DLL and back to using the nuget packages.

Would it be possible to get a new nuget package release? I want to switch our code back to using the nuget package instead of the built DLL we are using now(since the nuget package doesn't currently have the changes from this pull request). Thanks.

Is there any chance a new nuget package can be built and published? We would like to avoid using our locally built DLLs as we are reliant on the changes in this pull request. Thanks.


Output message showing number of resources that we don't support

e.g. "2 out of 26 resources could not be estimated because they don't have a price or Infracost does not yet support them (https://www.infracost.io/docs/supported_resources)"
Debug level logging could show the resource addresses.

It might be helpful to distinguish these two cases:

a free resource is being used in Terraform: we've reviewed that it's free when we added the resource to Infracost but the user doesn't know.
a free or paid resource that infracost doesn't support.

Maybe an output like this:
"Out of the 26 resources, 8 are free, and 18 aren't supported in Infracost yet (https://www.infracost.io/docs/supported_resources), re-run with FLAG_HERE to see the list."

I think I can work on it, I have to review the core codes again to get some solid ideas on how to manage it.
I just have some questions:
1. The simple way is to show users that we don't support the resource but how can we show him the exact reason? As far as I know, there are multiple reasons:
A. We simple does not support the resource
B. User specified some wrong attributes in its usage data such as setting monthly_write_request_units for PROVISIONED DynamoDB
C. We don't support part of resources like when we support provisioned resources but not their on_demand version.
2. What are examples of free resources? @alikhajeh1
To handle the first situations we might have to generate some messages and return them back as an error or part of resource data so we can generate more meaningful messages.

Thanks @sinabakh!
Regarding 1, my guess is that most users don't care about the reason, they just want to know why some of their terraform resources aren't showing up in the output, and we can ask them to rerun with --verbose or some flag to see the details (they could send us that list so we can work on it too).
Regarding 1B, I'd leave that out of the scope of this ticket, we're still gathering feedback about the terraform provider.
Regarding 1C, see "Level 1 support" in https://github.com/infracost/infracost/blob/master/CONTRIBUTING.md, my idea going forward is that all pricing components of a resource should be supported. We need to re-check/change the existing supported resources to add pricing for all of their components.
Regarding 2, see docker_volume_configuration and proxy_configuration in the PR description of https://github.com/infracost/infracost/pull/36#issue-475764082 I'm not sure if it's going to be easy to handle those but it would be good to discuss the options here even if we decide to implement them via another GH issue.

I can still see 1C being an issue. For example, we only support ECS+Fargate and not ECS+EC2. ECS+EC2 is a lot more complicated to add, so I don't think we should block the Fargate support for that.
But, for this case if we come across an option we don't yet support, I think we can just treat it the same way as 1A and list it as a resource we don't support. Thoughts?

Thanks, yeah I agree with you. So we just need to handle 1A. For cases like what @aliscott mentioned, the easiest way is to treat them like 1A since we will have support sooner or later for all kinds of resources. But the other option is to let the resource function generate a more meaningful message for its verbose mode.
What do you think?

If the resource function is optional and the output can remain sane then that can work nicely. A user pinged me today with 1K+ terraform resources...
One other semi-related, verbose-type output, topic, we need to think about is how the resource file can include the "notes" that we have in https://www.infracost.io/docs/supported_resources, so we can auto-generate that docs page. Should those go into the verbose output at the bottom so users don't need to read docs? I doubt users would compare 1K+ resources in their terraform against a markdown file manually...

Sure, we need to discuss them.
For now, I will stick to 1AWe simple does not support the resource. We can get more feedbacks and think about more complicated handlers in the future.


As a Java developer, I would like to know if there's a sample written in Java in the section "Create Azure function to update twins".

[Enter feedback here]
In the section "Create Azure function to update twins", the sample Azure Function provided is written with C#.
Since Azure Function supports several languages including Java, I would like to know if there's a sample written with Java.
Besides, on another page also relevant to Azure Digital Twins, "Ingest IoT Hub telemetry into Azure Digital Twins", it has the same problem for me. It'll be helpful if you can provide a sample Azure Function written with Java.
Thanks.

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

ID: 0de01786-459d-f25b-5219-eb6f598db9bd
Version Independent ID: a34a0d3c-758a-c56d-517c-9d5235edc5b7
Content: Set up twin-to-twin event handling - Azure Digital Twins
Content Source: articles/digital-twins/how-to-send-twin-to-twin-events.md
Service: digital-twins
GitHub Login: @baanders
Microsoft Alias: baanders

Hi @kent010341 ,
Thanks for your suggestion to enhance this doc. As per Azure Functions Doc, when we use Visual Studio, samples are typically written with C#. Though when using Visual Studio Code you can find examples using Java: https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-java .
Unfortunately we don't have sample code written in Java for this specific How-to Guide. You can find the list of official Azure Digital Twins Samples here: https://github.com/orgs/Azure-Samples/repositories?language=&q=digital+twins&sort=&type=all
Fyi @baanders  in case you would like to consider this feedback to enhance the doc with a note.
Thanks!

.......................

Our SME will review this feedback and get back soon on this!

Thanks @kent010341 for the feedback! It's a great suggestion, and I've logged the request for the product team to create a set of code examples for this documentation set in Java.
As @asergaz summarized the current available resources above, and the suggestion to create new code samples has been recorded and communicated with the team, I'm going to proceed to close this issue at this time. I'll return to this thread to keep it current if this content becomes available. Thank you!
#sign-off


Use crypto.webcrypto apis instead of node:crypto module in init-node-data

This PR modifies the init-node-data package so it uses node's webcrypto api comptatible with web crypto apis, which makes it possible to run this package in environments other than node, e.g., Vercel's Edge runtime.

Thank you for your contribution! Changes were applied and added to major release as long as they breaking.
I refactored the code a bit and added docs.

I have just found out, that this code will not work at least in Node@18. Seems like we have to find some solution for it.
We can probably just create another entry point for those environments, different from the Node, and could import something like:
import { sign } from<EMAIL_ADDRESS>


Arrival and Departure: Disable pulse animation on vehicles where we lack real-time data

Expected behavior
A pulsing indicator on a bus should only appear when we have real time data.
Actual behavior
It always shows up regardless.
Steps to reproduce the behavior
Choose a bus with 'scheduled arrival'. It pulses. It shouldn't.

@aaronbrethorst I want to work on this issue. Do you want the pulse animation to be disabled only for the case 'scheduled arrival' or any other case?

OK, it's yours. Only disabled in the case of 'scheduled arrival'


Fix Scheduler mode + add docker compose to readme

Hi,
Many thanks for your great work, everything works like a charm!
When you attempt to start container on mode scheduler it doesn't start as we need to pass WITH_SCHEDULER env.
This PR fix that.

I added to the readme an example of use with Docker compose

Thank you for your thoughtful words and valuable contribution! I’ve gone ahead and merged your fix. As for Docker Compose, I have plans to incorporate a more comprehensive solution in the near future.

Don't we need some sort of volumes in this docker-compose docs?


fixed help command

Under review

@SypherRed Resolve conflicts

@N0ahMC sorry for that, told you that I never really did that. :D


Hyper crashes on launch (window closes after a short flash)

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: macOS High Sierra 10.13.3
Hyper.app version:Hyper 2.0.0 (stable)
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/morajabi/f19a766bd70cef35434223f40e241d53
Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): Cannot open it, it closes so fast.
The issue is reproducible in vanilla Hyper.app: Yes, I only had hyper-snazzy#1.2.2 but removing it from plugins had no effect

Issue

Opening the Hyper app, flashes the app, and closes the window. But menus are still there, Hyper is still open in the dock, but windows close automatically after around 200 ms.
I once got this error and took the screenshot, but now it just closes without the dialog:

It should have been fixed in our last canary.
Thanks to https://github.com/zeit/hyper/pull/2940

Thanks! I'll close it for now then, if I got more info, I'll update the issue!
Since I just got this error from my normal terminal too:
dyld: Library not loaded: /usr/local/opt/gdbm/lib/libgdbm.4.dylib
  Referenced from: /usr/local/bin/zsh
  Reason: image not found

Probably this is the cause. Maybe you can add checking another terminal in the issue terminal to see if it's a bash / zsh issue :)


Is there a way to programmatically define migrations?

I'd like to generate migration up and down functions programmatically (without writing to the file system) is there a way to do that?

I'm not 100% sure what you mean. Do you mean
let migration = {
  up(...) { ... },
  down(...) { ... }
};
umzug.execute({ migrations: [migration], method: 'up' });

instead of
umzug.execute({ migrations: ['migration1.js'], method: 'up' });

? This is not currently possible but pull request is more than welcome.

Any news on this?
My code is in typescript, therefore migrations are in typescript as well. Is there anyway to pass the migrations as an object instead of providing the folder for umzug to lookup?

@Techwraith as a result of https://github.com/sequelize/umzug/pull/164 it is possible to pass an array of Migration class instances in options.migrations.

Update: If anyone is interested in how I fixed... is I build my own migration runner in plain typescript.

Update: If anyone is interested in how I fixed... is I build my own migration runner in plain typescript.

Would you please share your solution?

https://github.com/sequelize/umzug/pull/199 introduces helper which can be used to build migrations array


[5.1] Use Arr class instead of helpers (which is just alias to Arr class).

Signed-off-by: crynobone<EMAIL_ADDRESS>

:+1:


Devolved nation content update and add buttons

Trello: https://trello.com/c/MJzQaElt
Expected changes

Before
After

Nice one, happy with this other than small question re. I18n

@JonathanHallam Thanks for your review. I've updated the tests to use the I18n translation and fixed up.


Warnings from the cloud_firestore plugin on Android: FirebaseCorePlugin.java uses unchecked or unsafe operations

Steps to Reproduce

Create a new project
Add dependency for cloud_firestore: ^0.8.0
flutter run

Logs
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

And also
Note: /Users/filiph/dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.0/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/filiph/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

(And also this, but it's covered by https://github.com/flutter/flutter/issues/18159)
W/Firestore( 5687): (0.6.6-dev) [Firestore]: The behavior for java.util.Date objects stored in Firestore is going to change AND YOUR APP MAY BREAK.
W/Firestore( 5687): To hide this warning and ensure your app does not break, you need to add the following code to your app before calling any other Cloud Firestore methods:
W/Firestore( 5687):
W/Firestore( 5687): FirebaseFirestore firestore = FirebaseFirestore.getInstance();
W/Firestore( 5687): FirebaseFirestoreSettings settings = new FirebaseFirestoreSettings.Builder()
W/Firestore( 5687):     .setTimestampsInSnapshotsEnabled(true)
W/Firestore( 5687):     .build();
W/Firestore( 5687): firestore.setFirestoreSettings(settings);
W/Firestore( 5687):
W/Firestore( 5687): With this change, timestamps stored in Cloud Firestore will be read back as com.google.firebase.Timestamp objects instead of as system java.util.Date objects. So you will also need to update code expecting a java.util.Date to instead expect a Timestamp. For example:
W/Firestore( 5687):
W/Firestore( 5687): // Old:
W/Firestore( 5687): java.util.Date date = snapshot.getDate("created_at");
W/Firestore( 5687): // New:
W/Firestore( 5687): Timestamp timestamp = snapshot.getTimestamp("created_at");
W/Firestore( 5687): java.util.Date date = timestamp.toDate();
W/Firestore( 5687):
W/Firestore( 5687): Please audit all existing usages of java.util.Date when you enable the new behavior. In a future release, the behavior will be changed to the new behavior, so if you do not follow these steps, YOUR APP MAY BREAK.

cc @kroikie @bparrishMines

Another warning:
Note: /Users/filiph/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/filiph/dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.0/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

This might be just the Firebase plugin itself. Adding here for completeness.

The Firestore warning has been resolved. See example.

I assume this issue is solved.

@zoechi followed the workaround but still getting the same warnings

Getting the same error with firebase-core:16.0.9:

Same here jeffdie!

Getting the same error with firebase-core:16.0.9:
Launching lib/main.dart on Pixel in debug mode...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Note: /home/jeff/Programs/flutter/v1.2.1/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
error processing /home/jeff/Dev/track-app/build/app/intermediates/javac/debug/compileDebugJavaWithJavac/classes
java.lang.ArrayIndexOutOfBoundsException: 4202
	at org.objectweb.asm.ClassReader.readStringish(ClassReader.java:2659)

Same error here.
firebase_core: ^0.4.0+1

Initializing gradle...                                              0.8s
Resolving dependencies...                                           1.3s
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Note: /Users/mauro/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+1/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      38.1s
Built build/app/outputs/apk/release/app-release.apk (9.3MB).

Same here:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.18362.116], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.4)
[√] IntelliJ IDEA Ultimate Edition (version 2019.1)
[√] Connected device (1 available)

• No issues found!

Packages:
firebase_core: ^0.4.0+1
firebase_auth: ^0.11.1+1
google_sign_in: ^4.0.1+3
flutter_facebook_login: ^2.0.1
cloud_firestore: ^0.12.0

Running Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.12.0\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.12.0\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.0+1\android\src\main\java\io\flutter\plugins\firebase\core\FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

having the same issue

Same!

Follow the instructions!
https://firebase.google.com/docs/flutter/setup?hl=pt-br

Any update??

Note: Warning only shows up for me when building the app after doing a 'flutter clean' or upgrading flutter version.

@filiph
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/640. Any further collaboration will be done there.

You can fix this by using multidex.
See it how setting up: https://developer.android.com/studio/build/multidex

I have same issue.

I have the same issue right after i added "cloud_firestore: ^0.13.4+2" plugin

i added following code in /app/build.gradle and it works fine now
release {             signingConfig signingConfigs.debug             minifyEnabled true         }         debug {             minifyEnabled true         }


Question about +m option (and other undoc'd options)

I feel dumb for writing dumb questions like this, but I really can't figure out what these options are, and they are littered all over the helper shell scripts and examples here. It's not listed in the --help text. What does +m do?

Is it perhaps do not allow multi select? I figured omitting -m would accomplish that.

I think perhaps +m is do not allow multi select? I figured omitting -m would accomplish that, though, but I think I understand that it is to override the FZF_DEFAULT_OPTS setting -m.

Correct! It's a shared convention of some unix tools to unset an option (- prefix for setting, + for unsetting, and --no-LONGOPT) so it's not explicitly documented. And you're right that its purpose is to explicitly override possible -m in FZF_DEFAULT_OPTS.

but why the trailing ,..?

To allow search against the first field as well. Sometimes there are many similar entries in history, and you want you pinpoint one using its index number. Then you might ask why we use --nth option in the first place. The reason is to allow some flexibility in --extended search mode. If you have --extended in FZF_DEFAULT_OPTS, then you can use patterns like ^git or pull$. So for example, let's say we have this in our history:
  7890     git clone

Having both 2.. and .. allows me to do both ^78 (2..) and ^git (..). Makes sense?

@junegunn Makes sense! :+1: Thanks for taking the time to clarify. Awesome

Can I put even more fields to the -n option? like -n2..,4..,..
I have a special history logger for my z shell and it stores many fields (timestamp, command, working dir of command, terminal environment name (whether i'm on my mac or putty, in the VM, over SSH, inside tmux), which of /dev/ttyX) so i figured it would be neat if I could have it let me use those anchors like ^git and ^Thu Apr 23...
I mean i guess it is practically moot since i have so much raw information presented to fzf that I can just keep typing to narrow it down.

Can I put even more fields to the -n option? like -n2..,4..,..

Yes you can, there's no limit to the number of field expressions.
But the search will be proportionally slow.


Google Lens support for local images

Reactivate search with local images to Google lens that have been disable in issue #314 .
Review the implementation to support local search

bug fix regex to catch upload response have been fixed


DataSet.from_excel(): revised version needed (maybe drop it completely)?

The current version of this method assumes that the excel file contains two (specifically structured) sheets for generating the case and meta data. Since we can auto-convert pd.DataFrames to proper DataSets with well-formed meta now through from_components() we might be able to drop this completely or at least turn it into a simple Excel-reader.

@nitsrek can you please delete this method from DataSet?

@nitsrek can you please delete this method from DataSet?


Add page for "apt" command

With relevant examples and explanations of what sudo apt update sudo apt upgrade and sudo apt install do. And also why you have to run all these commands as the super user.

added by @lizzsullivan in da2736bbac9d341b5ef995ed92b56d4f479d153f


docs:modify a mistake in the doc

Ⅰ. Describe what this PR did
i have modify a mistake in the doc
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #642 into master will decrease coverage by 2.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #642      +/-   ##
==========================================
- Coverage    48.2%   46.13%   -2.07%
==========================================
  Files          99       99
  Lines        5889     5893       +4
==========================================
- Hits         2839     2719     -120
- Misses       2825     2949     +124
  Partials      225      225

Impacted Files
Coverage Δ

dfdaemon/config/config.go
0% <0%> (-100%)
:arrow_down:

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 eb70f5b...46e23e6. Read the comment docs.

LGTM


wazevo(frontend): store module context for only imported calls

This cuts the unnecessary one store instruction per local function call, hence results in the executable size reduction (around 50kb)!

easy win!


Is is possible to access data.body when using middlewares?

Hi,
I've the following code in which I'm trying to run a middleware on data.body.email but unable to do so, am I missing something or is it just possible with request.
index.js
import { OpenAPIRouter } from "@cloudflare/itty-router-openapi";
import { SignUp } from "./Users/controller";
import isValidEmail from "./utils/email"

const router = OpenAPIRouter({
	schema: {
		info: {
			title: "Worker OpenAPI Example",
			version: "1.0",
		},
	},
});

router.post("/api/users", isValidEmail, SignUp)

// Redirect root request to the /docs page
router.original.get("/", (request) =>
	Response.redirect(`${request.url}docs`, 302)
);

// 404 for everything else
router.all("*", () => new Response("Not Found.", { status: 404 }));

export default {
	fetch: router.handle,
};

./utils/email.js
const EMAIL_REGEXP = new RegExp(
    /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
);

const isValidEmail = (request,
    env,
    context,
    data) => {
    console.log(data)
    return EMAIL_REGEXP.test(data.body.email);
}

export default isValidEmail

./users/controller.js
import {
    Bool,
    OpenAPIRoute,
    Path,
    Str
} from "@cloudflare/itty-router-openapi";

import isValidEmail from "../utils/email"

const SignUpResponse = {
    message: "User Added!"
}

export class SignUp extends OpenAPIRoute {
    static schema = {
        tags: ["Users"],
        summary: "User Sign Up",
        requestBody: {
            contentType: 'application/json',
            firstname: new Str({
                description: "User Firstname",
                required: true,
                example: "Ashish"
            }),
            lastname: new Str({
                description: "User Lastname",
                required: true,
                example: "Jullia"
            }),
            email: new Str({
                description: "User Email",
                required: true,
                example<EMAIL_ADDRESS>            }),
            password: new Str({
                description: "User Password",
                required: true,
                example: "As@121212121212"
            })
        },
        responses: {
            "200": {
                contentType: 'application/json',
                schema: {
                    Response: SignUpResponse,
                },
            },
        },
    };

    async handle(
        request,
        env,
        context,
        data
    ) {
        // Retrieve the validated slug
        const { firstname, lastname, email, password } = data.body

        // console.log(isValidEmail(email))

        return {
            message: "User Added!"
        };
    }
}

Also, the contentType: 'application/json' is not working for requestBody, not sure how to pass it correctly.

With a framework like expressjs (out of context of cf workers) which provides you (req, res, next) and makes it easier to follow middleware pattern and extracting say (email key) from body as req.body.email.
Is is possible to achieve the same with this itty-rotuer-openapi? I'm aware that it has (request, env, context, data) but unable to get the data.body.email and next in the similar fashion :/

Hey there, in order to validate emails you should use the Email type like this:
import {
    Email
} from "@cloudflare/itty-router-openapi";

...

            email: new Email({
                description: "User Email",
                required: true,
            }),

Currently middleware support is limited, and you cannot access the data object, you can read more about whats supported here
itty-router-openapi doesn't support the next() function like express, but you should be able to modify the request, env, context parameters in middlewares and these changes will be applied in downstream endpoints

@G4brym
Hmm, thanks for the information but by providing the email example I wanted to know whether how to play on data.body when working with middleware because a lot of powerful things like authentication/authorization can be done via these middlewares or more such things.
Sad to know that it won't be possible with this. :/

You can do middlewares the "old fashion", because the endpoints are all class based, you can just build a base class that does authentication and then extend your endpoint from there.
otherwise you can still do authentication with the current middleware support here is a snipped taken from here
export function getBearer(request: Request): null | string {
    const authHeader = request.headers.get('Authorization')
    if (!authHeader || authHeader.substring(0, 6) !== 'Bearer') {
        return null
    }
    return authHeader.substring(6).trim()
}

export async function authenticateUser(request: Request, env: any, context: any) {
    const token = getBearer(request)
    let session

    if (token) {
        session = await context.qb.fetchOne({
            tableName: 'users_sessions',
            fields: '*',
            where: {
                conditions: [
                    'token = ?1',
                    'expires_at > ?2',
                ],
                params: [
                    token,
                    new Date().getTime()
                ]
            },
        }).execute()
    }

    if (!token || !session.results) {
        return new Response(JSON.stringify({
            success: false,
            errors: "Authentication error"
        }), {
            headers: {
                'content-type': 'application/json;charset=UTF-8',
            },
            status: 401,
        })
    }

    // set the user_id for endpoint routes to be able to reference it
    env.user_id = session.results.user_id
}

...

// Authentication middleware
router.all('/api/*', authenticateUser)


Formatter doesn't honor "else if"

This issue was originally filed by @tatumizer

BEFORE:
main() {
  var zero = 0;
  if (0 == 0) {
    zero=0;
  } else if (0 == 1) {
    zero=1;
  } else if (0 == 2) {
    zero =2;
  }
  print(0);
}
AFTER:
main() {
  var zero = 0;
  if (0 == 0) {
    zero = 0;
  } else {
    if (0 == 1) {
      zero = 1;
    } else {
      if (0 == 2) {
        zero = 2;
      }
    }
  }
  print(0);
}
A lot of unnecessary "{}" inserted. Apparently, formatter doesn't think of "else if" as a valid construct, but it is.
Note it's not the same problem as orphans as per issue #16847.
In the latest dev release, orphans produce the same output as above, that is
foo() {
  var zero = 0;
  if (0 == 0)
    zero=0;
  else if (0 == 1)
    zero=1;
  else if (0 == 2)
    zero =2;

  print(0);
}
is now formatted exactly as in AFTER section above, inserting unnecessary {}. Whereas it was supposed to insert minimal amount of {}, so that the thing after formatting should look as in BEFORE example above.
Another small issue: I had to insert print(0) in the end; without it, formatter prints red error message at the bottom: expected EOF but got '}'

This issue has been moved to dart-lang/dart_style#333.


Ignoring already stored URL's

without inserting then deleting, it just ignores url if already indexed. Any comments are welcome ..

Crawled data is not unique by URL.


Runtime when compiling with gcc and sanitizers

I've compiled my program with g++ using CMAKE_BUILD_TYPE=Asan (with sanitizers)
When I run the program, I get runtime exception right after start
"runtime error: reference binding to null pointer of type 'const struct PolymorphicCasters'"
Deleting this row from static_object.hpp solves this problem. Why do you need it?

That line is performing some dark hacky black magic to support polymorphic serialization. There's a potential fix for this slated in #470 to calm the sanitizers.


Does tesseract-ocr have Romanian language?

Your Feature Request
I need to test some PDF old book writtent in Romanian, and I need to see if tesseract-ocr is much better OCR then AbbYY Finereader.
Does tesseract-ocr have Romanian language?
is ron.traineddata for romania ?

Please respect the guidelines for posting issues: use tesseract user forum for asking questions/support.


Codestyle autocheck

Clang-tidy/clang-format

Most, if not every, server source files use tabs instead of spaces.

Because Go has another codestyle.

Superseded by #325


Is posible to support send fake location via "com.apple.dt.simulatelocation" service

I used Xcode to "Simulate Location" and found it throws the log
com.apple.xpc.launchd[1] (lockdown.6282088763277.com.apple.dt.simulatelocation) <Warning>: com.apple.dt.simulatelocation: This daemon is not allowed to execute. Running anyway.
I also custom iOSConsole to attach into this service and see it throws the same message
However I don't know what's next. Could you support this feature?
I know that is undocument but could you guide me how to debug the protocol of existing services as debugserver, afc, etc.

This seems like a lot of work, and this is not a project I can devote lots of time to at the moment. I would suggest you start by decompiling the daemon that runs on iOS to see what it does to send and receive data. I would suspect it follows the same pattern of plists that contain the info as other protocols do. The cases of debugserver and AFC are unique in the sense that they have their own defined protocols. Most of the rest are based on reading and writing plists.

Thank for your feedback
I have just jailbreak my iPad to debug daemon process.
I found "/Developer/Library/Lockdown/ServiceAgents/com.apple.dt.simulatelocation.plist" on the device. May it will help me a lot.
Otherwise I check the reading & writing plists of other services but they are too different. I also try to use "remote packet capture" (rvictl -s <UDID>) to listen receive packets which sent from Xcode to device but still not success.
So if you have any experiences in the past (support syslog & SpringBoard) please share with me
Thank a lot

I tried to get com.apple.dt.simulatelocation.plist & DTSimulateLocation from real device
I also used "otool -tV " to decompile DTSimulateLocation. However still not get helpful info
It's not easy to understand other service (aka ScreenShotr). With ScreenShotr, I can easy to identify the protocol to communicate with screenshotr service, but it's not for simulatelocation
com.apple.dt.simulatelocation.plist: https://gist.github.com/nghiadhd/7baf783d6fd0388eca1f96c226a0e204
DTSimulateLocation
https://gist.github.com/nghiadhd/86df841cbc84aad85b511446684b2f88
I'm wondering may I need use private framework to communicate with simulatelocation


fix docs for tension

Fixes #2535

Coverage remained the same at 75.562% when pulling 568c61c56d733a5cc66fd128d1559b6b3cd075e9 on fix/2535 into c6354cf25b40547f643d19535dbb6cf04f57072b on master.


add RIS export option to documentation

This PR adds the option to export RIS files.
@terrymyc could you add a screenshot of the new export pop-up screen?

I agree!
@terrymyc will you add the text in this PR you use In the front-end?

Hey @Rensvandeschoot , I see you have made a commit to docs/source/lab/oracle.rst
Is this the place you want this topic described further?

@ottomattas yes :-)


SB-29457 Added env variable to mention content upload data limit

@vinukumar-vs  Please review this PR

@vinukumar-vs - can you create a new tag including this commit?

@vinukumar-vs - can you create a new tag including this commit?

@vinukumar-vs -- have we created the tag for this in release-4.9 version ?? or this is planned for 4.10 version ?? Please provide the details.

@karthik-tarento Release-4.8.5 tag is already created & went to prod as hot-fix. Refer the below tag
https://github.com/project-sunbird/knowledge-mw-service/releases/tag/release-4.8.5_RC1


Gravitee API subscriptions

Question
Currently, there is no restriction concerning the app for using the API. I'm wondering if any restrictions will be made as soon as the API leaves BETA.

Are there any restrictions planned concerning the registered apps? (number of subscriptions, throughput, number of calls, quota, ...)
Will the domain of the app be checked?
Anything else?

Additionally, I have some general questions concerning the mature system :

Do you have any claims on availability? The current system is sometimes unavailable. Will this also apply to the mature API?
Are resource IDs guaranteed to be stable over time (e.g., after updates, releases, patches)? If not, how do I perfectly find a specific PractitionerRole then?

Hello,
We can provide you with the following information:

Regarding Gravitee/restrictions: Currently, there are no limitations in terms of registered applications. So far no restrictions on throughput, number of subscriptions, number of calls, or quotas. We will determine these parameters after the end of the beta version of the FHIR Annuaire Santé API (scheduled for end 2024). The domain of the application is not technically verified, although it must be specified in the app registration on Gravitee.
As previously mentioned, the FHIR Annuaire Santé API is in beta. We are working to ensure increased availability of the API with our hosting provider.
Regarding technical IDs: The technical ID is not stable over time and can change after releases or patches, just as you mentionned. To ensure the search for a specific ressource, you should rely on identifiers.
We hope this provides answers to your questions.

Best regards,

Thank you for your response!
Regarding the identifification of entities: I'm wondering how this works for PractitionerRoles as they do not have any identifiers beside the technical ID. My requirement is to recall a PractitionerRole as it defines a certain role of a Practitioner in a certain place. Of course I can identify the Practitioner by identifier but if he works in different locations and different professions - I'm lost and still do not see how to find the specific role then.
Can you give some advise please?

Hello,
We have already identified this issue with PractitionerRoles. The technical team is currently working on implementing an "identifier" for PractitionerRoles, an attribute that will be permanent.
We hope to provide you with more information for october/november.
Best regards

Following the response provided in the previous comments, I am closing this issue.

Hello @der-brecher ,
We are currently working on the new FHIR implementation guide for the Health Directory. The development phase is now complete, and we are currently in the testing phase. New features will appear in the updated version of the FHIR API, including the introduction of the "Identifier" field in the PractitionerRole resource.
Given the timeline, we believe this API will be released by January 2025 at the latest.


Unable to Run New Project

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Error occcured executing new flutter project, but old ones that were created before now executes.
Actual results
Android Execution Error
	at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111)
	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.lang.RuntimeException: No build receipt resource found.
	at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97)
	... 1 more
Exception: Gradle task assembleDebug failed with exit code 1```

![Screenshot at 2023-05-17 15-39-01](https://github.com/flutter/flutter/assets/70479594/02005497-10f2-419f-8954-c82dfb989589)
![Screenshot at 2023-05-17 15-40-04](https://github.com/flutter/flutter/assets/70479594/5ad86ec0-1a85-4b3a-b858-dcf74a43102c)

Linux Execution Error
ninja: error: unknown target 'install'
Exception: Build process failed

### Logs

<details>
<summary>Logs</summary>

```console

<!-- Paste your logs here -->

Flutter Doctor output

Doctor output

<!-- Paste your output here -->

@adepauldami Turn on the internet on your system, when it assembles gradle to build apk, will solve your issue maybe.

@adepauldami
It seems the main error is:
Linux Execution Error
ninja: error: unknown target 'install'
Exception: Build process failed

The ninja program is unable to find the target. Ninja isn't part of Flutter but maybe snaps installs it. Are you using snap to install Flutter on Linux ?
Can you also provide flutter doctor -v and complete verbose log of the error ?


[Text Shortcuts] Add support for Chicago Manual of Style title capitalization

Extension – Text Shortcuts

Author: @koinzhang

Describe the feature and the current behavior/state.
Support for Chicago Manual of Style title capitalization like title.sh (see https://github.com/vercel/title)
Who will benefit from this feature?
Any Other info.

Hi @mxstbr Sorry for taking so long to reply.
Thank you very much for still using the Text shortcuts extension, I will submit a PR to update TitleCase (using this library you mentioned)

Not stale.

Hi @mxstbr. Text Shortcuts already supports Chicago Manual of Style title capitalization in this PR, I think this issue can be closed.

Ah, thank you!


Is there an installation guide for Kinetic?

Or is the Kinetic setup pretty much the same as for Indigo?
Cheers,
Antoan

Clone the repository then
rosdep update
cd /path/to/your/catkin_ws
rosdep install --from-paths src/ --ignore-src


Change suggestion text-color

Is your feature request related to a problem? Please describe.
Currently, the color of the suggestion text is solid white. This makes it difficult to differentiate between suggestion text and text that's been typed in.

Describe the solution you'd like
I'd like it if there was a setting in the .inshellisenserc which allowed users to customize the RGB color of the suggestion text.

I haven't been able to replicate this as changing the suggestion text color is definitely a bug. Closing for now, but I'll reopen if you're able to provide more details


[Bug] Error "Unsupported type Vector2f" when editing Vector2 value in inspector

I have this code snippet in one of my scripts:
[Tooltip("Scale of the movement \"cells\", i.e. the larger the number, the smaller the movement waves.")]
[SerializeField] private Vector2 scale = new(0.002f, 0.002f);

Whenever I edit the values in the inspector, it shows the following error:
Unsupported type Vector2f
UnityEngine.StackTraceUtility:ExtractStackTrace ()
NaughtyAttributes.Editor.NaughtyInspector:DrawSerializedProperties () (at Assets/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs:133)
NaughtyAttributes.Editor.NaughtyInspector:OnInspectorGUI () (at Assets/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs:47)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Unsupported type Vector2f
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

I am using unity 2021.3.27f1, NaughtyAttributes 2.4.1 from the asset store.
Code context here, all the Vector2 attributes produce the error.
public class KelpShaderSettings : MonoBehaviour
{

    [Tooltip("Hue color to apply to all child sprite renderers. Used to uniformly color the whole plant.")]
    [ColorUsage(true)] [SerializeField] private Color hue = Color.white;

    [Tooltip("Speed of the wave movement, higher means faster.")]
    [NaughtyAttributes.InfoBox("Leaf Settings")] [SerializeField]
    private float speed = 1f;

    [Tooltip("Scale of the movement \"cells\", i.e. the larger the number, the smaller the movement waves.")]
    [SerializeField] private Vector2 scale = new(0.002f, 0.002f);

    [Tooltip("Strength of movement in every direction")]
    [SerializeField] private float strength = 0.5f;

    [Tooltip("This determines how sharp the movement is cutoff when closing on the leaf mount point. The lower, the smoother the cutoff. (Value determines exponent of the falloff function)")]
    [SerializeField] private float movementFalloff = 1f;

    [Tooltip("The magnitude of movement for the cardinal directions. x makes it move more left to right. y more up and down")]
    [SerializeField] private Vector2 direction = new(100f, 100f);

    [Tooltip("Time offset range. When updating leaf settings for each one a random number in this range is chosen and applied. This makes the leaves move more independent.")]
    [MinMaxSlider(-50, 50)] [SerializeField]
    private Vector2Int timeOffsetRange = new(-1, 1);

    [NaughtyAttributes.InfoBox("Stem Settings")]
    [Tooltip("Speed of the stem movement. The higher, the faster.")]
    [SerializeField]
    private float stemSpeed = 1.3f;

    [Tooltip("Scale of the waves, lower means larger wave.")]
    [SerializeField] private Vector2 stemScale = new(0.002f,0.002f);

    [Tooltip("Magnitude of movement in all directions")]
    [SerializeField] private float stemStrength = 1.9f;

    [Tooltip("This determines how sharp the movement is cutoff when closing on the stem mount point, i.e. the bottom. The lower, the smoother the cutoff. (Value determines exponent of the falloff function)")]
    [SerializeField] private float stemMovementFalloff = 1f;

    [Tooltip("The magnitude of movement for the cardinal directions. x makes it move more left to right. y more up and down")]
    [SerializeField] private Vector2 stemDirection = new(100f, 10f);

    [Tooltip("The y coordinate of the stem mount point. Internally used to adjust the movement.")]
    [ReadOnly] [SerializeField] float stemYPosition = 0f;

    private List<SpriteRenderer> renderers;
    private Random rng;

    void Awake(){
    ...

I came across the same error. In my case, I had to delete these lines from the .prefab:

Num is the name of my MinMaxSlider Vector2 variable here. After removing that entry, there were no more errors.
My setup had a base prefab and I had to delete the default MinMax value from it as well, not sure if it was related.


⚠ Spryr has degraded performance

In fc4d9e4, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 4390 ms

Resolved: Spryr performance has improved in 0efd045 after 14 minutes.


How can I use lang=xxx on window powershell 7.0.1

Environment

Tesseract Version:
v5.0.0-alpha 20200328
Commit Number:
No, install from github relase.
Platform:
Windows 10 64-bit run in powershell 7.0.1

Current Behavior:
I use the command text = pytesseract.image_to_string(img, lang="chi_sim", config=r'--oem 3'). The error msg is:
pytesseract.pytesseract.TesseractError: (1, "Error: Tesseract (legacy) engine requested, but components are not present in D:\Program Files\Tesseract-OCR/tessdata/chi_sim.traineddata!!  Could not initialize tesseract.")
Expected Behavior:
Please notice the search path D:\\Program Files\\Tesseract-OCR/tessdata/chi_sim.traineddata!!, I think it use wrong File.sperator.
Suggested Fix:
I don't know how to fix, but how to config to use the right File.sperator. Maybe I don't need to look in to the source code.

Please use the Tesseract user forum for questions.

But I think it's a bug, because I run tesseract --list-langs, it output chi_sim eng osd. Why can't find chis_sim.traineddata, strange.

Ok, I'm sorry. After read the source, I find out it's chi_sim.triandata issue which only contains LSTM data.


Calendar extender displays incorrect selectable dates for start/end range

The AJAX Control Toolkit 16.1.1
The installation method

[ ] Installer
[X] NuGet package
[ ] A custom build from the source code

Minimal steps to reproduce the bug

Using Chrome on Windows 10, open the web page for the demo of the AJAX Control Toolkit Calendar extender: https://ajaxcontroltoolkit.devexpress.com/Calendar/Calendar.aspx
Click the "Calendar with date range" field to open the Calendar popup

Actual result
Popup displays Aug 2, 2010 as a valid date and allows it to be selected, even though the "startDate" property of the CalendarExtender was set to Aug 3, 2010 (screen capture from Google Chrome on Windows 10).

Expected result
Popup should display Aug 2, 2010 as a crossed-out date and prevent its selection (screen capture from Microsoft Edge on Windows 10).

Browser(s) used
Fail: Safari and Chrome
Pass: Edge, IE and Firefox
Firefox passed on both Windows 10 and macOS 10.12.
Chrome failed on both Windows 10 and macOS 10.12.
Safari failed on macOS 10.12.
Edge and IE passed on Windows 10.
A site deployment method

[ ] VS development web-server,
[X] IIS

Hi @grandavenuesoftware
I checked the Calendar extender with Chrome on Windows 10 and it works as intended.
Please specify the following:

Your system locale
Time zone on your computer
Chrome version
Errors in the browser's console, if any

I just went back and tested the same behavior on a website using an older version of the AJAX Control Toolkit (<IP_ADDRESS>3), and it does not have the same bug.
Here is the old Calendar set for a start date of 13 Jan 2017:

And here is the new Calendar, set for a start date of 13 Jan 2017:

Both screen captures were taken using Chrome 55 on Windows 10.  I used our application for these screen captures because the old AJAX Control Toolkit demo for the calendar (http://ajaxcontroltoolkit.com/Calendar/Calendar.aspx) didn't set the date ranges so it couldn't be used to test/duplicate the problem.
One note: When I looked at the page generated by the two different versions of the Calendar control, they set the startDate property differently:
Old version: "startDate":"Fri, 13 Jan 2017 00:00:00 GMT"
New version: "startDate":"2017-01-13T00:00:00"
It's possible this is completely unrelated to the problem, but I thought I'd point it out.
Let me know if there's any additional information I can provide.

Thanks for fixing this!
Beginner question: How do we follow up and find out when this gets incorporated into a "stable" release?

@grandavenuesoftware
Mehul Harry makes announcements in his blog.
Also you can get the fix right away. Check Updating the Project from CI Builds.

@MikhailTymchukDX and @AlekseyMartynov,
We downloaded and tested with build386. This change fixes the bug.
Thank you!


App Crash when media ends playing in the preview panel

Description
When playing an mp3 file directly in the preview pane, the app crashed when the mp3 file finished playing.
Steps To Reproduce

Select any mp3 (or supported media file)
Hit play in the preview pane (if not visible, toggle it on with Ctrl+P)
Wait till the mp3 file is played till the end

Bonus info: I've tested this while the app was in the background (I was doing some work in another window)

Expected behavior
The app shouldn't crash when the mp3 file finish playing in the preview pane.
Files Version
Version: <IP_ADDRESS> OS Version: 10.0.19044.1706
Windows Version
Windows 10 Pro 21H2 19044.1706
Relevant Assets/Logs
debug_fulltrust.log
debug.log

2022-05-14 22:35:34.8129|ERROR|AppUnhandledException|Layout cycle detected.  Layout could not complete.
Layout cycle detected.  Layout could not complete.
Windows.UI.Xaml.LayoutCycleException: Layout cycle detected.  Layout could not complete.
Layout cycle detected.  Layout could not complete.

Merging with #9019. Since it the same error causing this.


fix map loading

todo: leave comment about issue where this came from
https://github.com/osmdroid/osmdroid/issues/1512#issuecomment-617641607

I dont know what exactly you did to fix it, but I want to see if it fixes it for me.


Attach Aliased decoration to spv.globalVariable when having overlapping set/binding numbers in shaders

Chat with Mahesh and we found that we could already have this issue in current codegen pipeline. This can be caused by fusing reshape ops and iree.load/store ops.
https://github.com/google/iree/blob/b3c56b22161bb8807babeaa40ee9dfd3ee814143/iree/compiler/Conversion/HLOToLinalg/FusionOfTensorOps.cpp#L34-L48
Which causes different shape on same set and binding placeholder in the later pass -- HLOToLinalgOnBuffers.
Another potential case is in #3194. This is okay for now because there are many constraints in the pass. However, we could hit the issue in the future when relaxing the condition.

#3692 addresses this.


ObjectFactory map/list with nested generics

Expected Behavior
Say I want Property<Map<String, Foo<Bar>>>, this currently isn't easy with the API. Perhaps a better way would be to allow TypeOf, or some cartesian product of TypeOf/Class although I think for Map TypeOf, TypeOf would probably be fine since you could just do
    Property<Map<String, Foo<Bar>>> fooBarMapProp  = project.getObjects().mapProperty(new TypeOf<String>() {}, new TypeOf<Foo<Bar>>())

Current Behavior (optional)
No response
Context
I have a case where I want, or at least think I want to return a map that has values that have generics.

This feature request is in the backlog of the relevant team and is prioritized by them.


Docs

I cant seem to find the docs, I check here:

https://pkg.go.dev/github.com/yourfavoritedev/golang-interpreter
https://pkg.go.dev/github.com/yourfavoritedev/Go-Interpreter

@89z thanks for bringing this to my attention. I'm not sure what docs you are looking for. Are you trying to import this repo as a package?

@89z thanks for bringing this to my attention. There were a combination of issues which led to not having docs available, but that should be resolved now.
The docs should now be available on: https://pkg.go.dev/github.com/yourfavoritedev/golang-interpreter


creating node in mobile (iphone or ipad)

is it possible to create node in mobile device such as iphone/ipad, because it is not possible have tab and right click context menu ?

Long press is equivalent to the context menu on mobile devices, but I still recommend creating your own mobile menu as a plugin.


Issues with stream server example

I tried the example with the websocket-relay that broadcasts a stream from ffmpeg. In Chrome, it wouldn't work due to a CORS issue (the stream from the websocket-relay uses a different port and protocol than the http-server that is serving the stream-viewer.html page). In Firefox, there was no CORS issue, but there was also no video displayed. The ffmpeg command I used was:
ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0+0,0 -f mpegts -c:v mpeg1video -s 640x480 -b:v 1000k -bf 0 http://localhost:8081/supersecret
The other commands were just the standard ones from the example:
node websocket-relay.js supersecret 8081
./http-server
If I redirect the ffmpeg output to a file (e.g. 'output.ts') I can play it just fine in VLC. So I figure the issue might be with jsmpeg or how I'm using it. Any thoughts?
P.S. there was also an issue with 'modules' not being defined in jsmpg.js (the last line, which I just commented out; not commenting it didn't have any effect on the above issues).

WebSocket connections are not subject to CORS[1], so the error you're seeing must come from something else. Please paste the full error message or take a screenshot of your browsers console.
The other error you were seeing - "'modules' not being defined in jsmpg.js" - did you mean the jsmpeg.min.js? There's no mention of modules in the current version of this file, so I'm not sure what's going on here either. Which jsmpeg version are you testing this with? Also, deleting the "last line" of the jsmpeg.min.js is probably not a good idea, as this line contains half the source code :)
[1] https://stackoverflow.com/questions/22644392/chrome-websockets-cors-policy#22648764

So...I missed the part where you have to actually build jsmpeg.min.js (was just using a cdn that didn't seem to have the web assembly included), and I also tried just including src/jsmpeg.js, which of course didn't work). I don't know how I managed to achieve the apparent CORS issue, but it's gone now and everything's working nicely. It's amazing how little latency there is (granted I'm only running it on localhost, but still, it seems faster than trying to have ffmpeg or ffserver transcode video on the fly). Great work on this.

Ah sorry, I should probably clarify this in the readme. The jsmpeg.min.js is part of this repository and linked on https://jsmpeg.com/
Glad it works for you now!


/resource/runlogin.php has sql injection Vulnerability

[Suggested description]
RapidCMS Dev.1.3.1 was discovered to contain SQL injection vulnerability in /resource/runlogin.php
[Vulnerability Type]
SQL INJECTION
[Vendor of Product]
https://github.com/OpenRapid/rapidcms
[Affected Product Code Base]
RapidCMS Dev.1.3.1
[Affected Component]
File： /resource/runlogin.php
Parameter： username&password
[Attack Type]
Remote
[Vulnerability demonstration]
Firstly, the password value of the name is obtained by executing an SQL statement, assigned to $pa, and then a judgment is made. If this string of values is the same as the encrypted value of the password value received in the POST request, then setcookie

On this basis, SQL blind injection can be performed, and then DNSlog can read the value of the database


Transition times incorrect

After a lot of swearing at my transitions apparently not working, I discovered that the transition durations are not working as documented.
Rather than being in milliseconds (i.e, 4000 = 4 seconds), to get a 4 second transition I had to specify 40.

What part of the API are you using? Are you passing in JSON, or a lightstate object, and to which function call.

var lightState = hueBase.lightState; var xy = $scope.toXY($scope.colours[$scope.sequences[entity].col]); //converts rgb to xy var state = lightState.create().on().xy(xy).transitionTime(200).brightness(20); api.setGroupLightState(group, state, function(err, lights) {             if (err)             {                 console.error(err);             } });

Thanks, I see that I messed up the documentation. There was already a function there transtion that was working on actual milliseconds, but the documentation for transitiontime and transtionTime was wrong.
I also added two more convenience functions of transitiontime_milliseconds and transitionTime_milliseconds as shortcuts to transition to operate in millisecond values.


Add support for getBasePotionType and setBasePotionType

Description
Adds support for getBasePotionType and setBasePotionType.
Checklist
The following items should be checked before the pull request can be merged.

[x] Code follows existing style.
[x] Unit tests added (if applicable).

Fixed in #1059


[docs] make screenpipe display language rust and not typescript (somehow)

https://github.com/orgs/community/discussions/23333#discussioncomment-3239933
maybe this could help?


Periodic backup option modification of backup config

The article states Currently you can change them backup options from Azure portal only.
Is this still true? I am able to change backup retention and backup interval using arm templates after provisioning.
  "backupPolicy": {                     "type": "Periodic",                     "periodicModeProperties": {                         "backupIntervalInMinutes": 480,                         "backupRetentionIntervalInHours": 24                     }                 }

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

ID: c9011b1f-d923-d3a1-474e-c3431caac3d2
Version Independent ID: c123745e-1b65-0726-8168-663fef81ea73
Content: Configure Azure Cosmos DB account with periodic backup
Content Source: articles/cosmos-db/configure-periodic-backup-restore.md
Service: cosmos-db
GitHub Login: @kanshiG
Microsoft Alias: govindk

@haripraghash Thank you for the feedback. We are actively investigating and will get back to you soon.

@haripraghash I was checking it and it looks we can change it through multiple ways. This is being assigned to the content author to evaluate and update as appropriate.

@haripraghash Yes periodic backup can also be updated using PowerShell, CLI, & ARM templates. I updated the doc in the above PR. Changes will go live by EOD today.
#please-close


Add missing config item

Fails to run for me without the parameter;
starting version 3.2.1
[INFO] Run nginx
nginx: [emerg] no "events" section in configuration

Hi @eperdeme,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Thanks :+1:


Improve documentation

This change aims to improve on the grammar in the comments.
I also adjusted the Personal Goals link in the README
to match the order in the detailed section.
These are not very critical changes. As a newbie to Rust,the goal
for me here is to get familiar with the project as I find
it particularly interesting :)

Hey @nassersaazi!
I'm a complete newbie to Rust too! Thank you so much for taking an interest in it. Will merge it!


Audio result page responsiveness is messy

Description

The audio result page's responsiveness is kind of messy at the moment.
Reproduction

Go to an audio result page
Resize the browser window from large to small screen size
Notice several elements on the page moving at different intervals and some based on different text widths.

Expectation

We should be more proactive/defensive against window resizing and rearrange elements all at once instead of some elements at the medium breakpoint and others at the small breakpoint. Of particular concern is the wrapping on the play/pause button, track info, and download button. Either we need to reserve that layout for only large or xlarge screens or we'll need to rethink how it works at smaller sizes.
Additionally, long titles for tracks will cause wrapping issues as well:

Long artist names will also cause wrapping issues, but different ones!

Screenshots

Here's a video showing the current state of responsiveness of the screen:
https://user-images.githubusercontent.com/24264157/146840902-f127251e-59d5-4355-b75b-75a6d88f3b80.mov
Environment

Device:
OS:
Browser:
Version:
Other info:

Additional context

Resolution

[ ] 🙋 I would be interested in resolving this bug.

cc @panchovm, we'll need your help thinking about how to handle some of these cases. I was digging around the Audio Integration figma and I noticed some places (for the row version) we truncate these informations. That seems less than ideal for the full result page though. Maybe we can take advantage of the extra space and break things up into separate isolated rows?

Modal containers
All modal breakpoints have a container for the content, except the audio wave. I was exploring different solutions as it expands to reach the modal width and the page view, take a look at the #480 when you can.
The logic I have been following is: On search results, truncate information is ok. On single result view, never truncate information. Here are the three layout variations for the modals. Notice that Modal M also applies to breakpoint lg, and Modal L to 2xl.

Audio component section
The first part, the audio component, is placed with the following spacings.
Modal L (xl, 2xl)

Modal M (md, lg)

Modal S (sm)

Reuse content section
The reuse content section is divided into two 4-cols, License on the left and Credit the creator on the right. Although I am not fully sure of the same logic for the Modal S (sm). It seems that we need another breakpoint for smaller sizes than sm definition, otherwise, both 4-cols become full-width and it looks odd. Especially the Credit the creator box.

Modal S idea: on the left, the full-width cols; on the right, two 4-cols.


Merge in the 3.1.80.redhat branch

Allows for easy subsequent merges from the 3.1.80.redhat branch.

Had just some discussions with @chirino about the purpose of this PR:
tl;dr: The use case is, to allow easy merging of bug fixes from the redhat branch to master without running into conflicts on the version property. Therefor on master the version is set temporarily to the redhat version, then the branch is forked of and finally on master reset to the original version. So the version change is present in both branches and doesn't lead to a conflict. At the end its a no-op on master, but messes up the history for 3 commits. But its only a single time trade off, which doesnt need to be done a second time.
I'm not sure whether this is the best solution for easily merging fixes on the redhat branch back to master.
Questions coming up are:

Is there a better solution for the use case at hand ?
What's about getting fixes from master to the branch ?

wdyt, @fabric8io/core ?
17:25 ~chirino  so does a PR of a merge work?
17:27 ~chirino  https://github.com/fabric8io/fabric8-maven-plugin/pull/641
17:29 ~chirino  not sure that's a good idea
17:29 ~chirino  we might need to PR into both branches
17:29 ~chirino  or perhaps we can just PR from 3.1.80.redhat into master
17:33  ro14nd sorry, didn't get it. You want to update master from branch 3.1.80.redhat ?
17:34 ~chirino  so if you look at https://github.com/fabric8io/fabric8-maven-plugin/pull/641/files
17:34 ~chirino  you'll see the PR changes nothing on master :)
17:34 ~chirino  but adds a merge point from 3.1.80.redhat
17:34 ~chirino  so that any fixes that go into 3.1.80.redhat  can be merged into master without bringing in all those pom updates
17:38 ~chirino  did that make sense?
17:41  ro14nd hmm, need to think about it (as always when its about Git stuff :)
17:42 ~chirino  so the test is, once you merge that change into master: co the 3.1.80.redhat  branch, make a change into it, then merge that branch into master
17:42 ~chirino  you'll see that just the change is brought in
17:42 ~chirino  and not all those pom updates that exist on the 3.1.80.redhat  branch
17:43 ~chirino  basically I want to make it easy for our product team to fix bugs on the 3.1.80.redhat  branch but also get them into master too.
17:44  ro14nd but i guess that is messes up the git history on master with noop commits (not that we are using the history quite a lot, but some ppl are more picky here).
17:44 ~chirino  Sure.  But in this case it think it's worth it.
17:45 ~chirino  otherwise we are likely to get into situation where fixes go into the 3.1.80.redhat  branch but never make it into master
17:45 ~chirino  cherry picking between branches is a sure way to miss a commit on one or the other
17:55  ro14nd I wonder whether there is an easier way to avoid version conflicts (as it seems that is the only issue).
17:56 ~chirino  should we discuss on #fabric8?
17:56  ro14nd An alternative solution which wouldn't had that impact on master (as master needs to 'know' also about the redhat branch) would beL
17:56  ro14nd be:
17:57  ro14nd * when a fix should be go back to master, branch the redhat-branch
17:57  ro14nd * change the version to a master-conform version number (3.1-SNAPSHOT) via a scipt.
17:57  ro14nd * check this in
17:57  ro14nd * merge
17:58 ~chirino  that sounds crazy
17:58  ro14nd but you are right, we should discuss this on #fabric8
17:58  ro14nd why ?
17:58  ro14nd the script is a single sed script.
17:58 ~chirino  then the changes set is huge
17:58 ~chirino  but this has to be done for every commit no?
17:59  ro14nd no not really if you do a squash on this branch
17:59  ro14nd before the merge
17:59 ~chirino  which branch?
18:00  ro14nd that temporary branch forked of the redhat branch descibed above.
18:00  ro14nd so: branch of redhat-branch, adapt version via script, rebase -i, merge to master.
18:00  ro14nd finally delete this branch
18:01 ~chirino  yeah sounds painful.
18:01 ~chirino  would need a pipeline to do it
18:01 ~chirino  and hopefully it does not mess up.
18:01  ro14nd doesn't look much more complicated at this 3 commit thing.
18:01 ~chirino  this is a 1 time thing
18:01 ~chirino  which I can prove does not change master
18:03 ~chirino  does not require folks to know about special scripts either
18:03 ~chirino  that allow me to merge 3.1.80.redhat into master at any time
18:03 ~chirino  after the 2nd commit or the 500th commit
18:04  ro14nd how long does such a branch live ? Isn't there one also vo 3.1.81.redhat (so you need to do this again ?)
18:05  ro14nd btw, why isnt there a 3.1-redhat branch ?
18:06  ro14nd to understand the technique: You branch off the redhat branch from the second commit (i.e. 388e0d5109afbb4ff569dc644b06dc0bb4b9ba7b in this example), so that the redhat version is in both branch and if they are not changed in any branch later on there wont be a conflict)
18:10  ro14nd Could we discuss this in a github issue (or maybe even on the given PR) ? Would like to hear some other options as it affects the development workflow of this.
18:10  ro14nd If you don't mind i'd copy this discussion here to the PR and ask for some comments.
18:11  ro14nd (most of the guys are probably already offline, jstrachan e.g. is at Devoxx etc.)
18:15 ~chirino  FIS 2.0 will stay on 3.1.81.redhat  for as long as we support FIS 2.0 :)
18:15 ~chirino  we will not add anymore new features to 3.1.81.redhat
18:16 ~chirino  thats why its not a 3.1.redhat
18:16 ~chirino  ro14nd: feel free to copy
18:16 ~chirino  :)
18:17  ro14nd ok, then your solution seems to be fair (if everything from the redhat branch fixes goes into master without leaving out sth ;-)

Is this only for f-m-p? Or would all the other git repos need to do the same?

afaik this is supposed to be a blueprint for the other productised projects as well.

The proposed solution seems a bit convoluted imho. Everything that is proposed here can likely be done to some branch other than master too and later cherry-picked (with range) to master. Generally, I'd prefer to only merge to master what has not diverged from it too much and ideally can also be rebased onto it (i.e. is derived from master not too long ago).

If we  want to have an easy way to merge fixes from a stable branch without worrying we missed something then this the easy git way.

[merge][lgtm]

I suggest we try this approach with f-m-p to see how it works. For now is a no-op anyway (except for some history entries).

Code not merged because @chirino (Hiram Chirino) is not in the Admin list.

[merge]


CORE RFC list includes I-D

Describe the issue
Subject: 	CORE RFC list includes I-D
From: 	"Michael Richardson"<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Date: 	Tue, 26 Mar 2024 17:44:12 +1000
Looking at https://datatracker.ietf.org/wg/core/documents/ we have a weird
duplication.
RFC 9290
Concise Problem Details for Constrained Application Protocol (CoAP) APIs
2022-10 Proposed Standard RFC Francesca Palombini
21 pages
draft-ietf-core-problem-details-08
Concise Problem Details for Constrained Application Protocol (CoAP) APIs
2022-07-06 Became RFC 9290 (Proposed Standard)
Submitted to IESG for Publication : Proposed Standard
--
Michael Richardson<EMAIL_ADDRESS>Sandelman Software Works
-= IPv6 IoT consulting =- ILIKETRAINS
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

https://github.com/ietf-tools/datatracker/issues/7281#issue-2218568405


License

We typically license our software with the Apache License Version 2.0 (or the BSD 3-Clause for smaller repos).
@fiona511 and @jakobwes Would either of these work for you?

I've gone ahead with the Apache v2.0 License, since we tend to use that on here.


Update access to rack constant

A small fix to keep up with the new changes in rack: https://github.com/rack/rack/commit/6746515453a44cc6268c46d525158278cf96307d#diff-7c1a24d5b2fe58a6f925c7cacc6c55e7L558-R558
The format of the object with the possible statuses has changed in a recent release, which breaks the rack-edge appraisal, so this PR fixes it.

Updated as suggested.


How to get current runner within test code

Hi,
Is there a way to get the current runner within the js test code ?
In some case I want to add a fail listener on current runner (to dump some test informations), but I didn't find the way to do it (I read a lot of mocha documentation, api, stackoverflow).
I tried
const Mocha = require('mocha')
const { EVENT_TEST_FAIL } = Mocha.Runner.constants

describe('attempt to add a listener', function () {
  // get current Suite object
  let runnable = this.runnable()
  while (runnable.parent && !runnable.root) runnable = runnable.parent
  // runnable is now the root Suite
  if (typeof runnable.on === 'function') {
    // this is called
    console.log('Add listener', EVENT_TEST_FAIL)
    runnable.on(EVENT_TEST_FAIL, function (event) {
      // but never this
      console.log('test fail event', event)
      console.log('test fail context', this)
    })
  }
  it('failing test', function () {
    return Promise.reject(Error('hand made failure'))
  })
})

I guess I should attach my fail listener to runner instead of root suite, but how ?
And if it's possible, how to get the failed Test object in this listener ?
Thanks a lot

You could create your own reporter, which listens to runner's events. We already have a fail event which has the test obect in its scope.
The other option would be using Mocha programmatically. mocha.run() returns the runner instance for registering your listeners.

Thanks !
I see it's useless I spend more time looking for something that doesn't exists ;-)