Force secure connection to speedtest.net

It seems that the speedtest servers return random 403 errors when the speedtest client uses http. Forcing the client to use https fixes this and I no longer see the exception being thrown in my logs after running for some time.
Exception happened during processing of request from ('<redacted>', 37976)
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python3.7/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/prometheus_speedtest/prometheus_speedtest.py", line 125, in __init__
    super().__init__(directory=static_directory, *args, **kwargs)
  File "/usr/local/lib/python3.7/http/server.py", line 646, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/local/lib/python3.7/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/local/lib/python3.7/http/server.py", line 426, in handle
    self.handle_one_request()
  File "/usr/local/lib/python3.7/http/server.py", line 414, in handle_one_request
    method()
  File "/prometheus_speedtest/prometheus_speedtest.py", line 137, in do_GET
    prometheus_client.MetricsHandler.do_GET(self)
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/exposition.py", line 169, in do_GET
    status, header, output = _bake_output(registry, accept_header, params)
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/exposition.py", line 40, in _bake_output
    output = encoder(registry)
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/openmetrics/exposition.py", line 14, in generate_latest
    for metric in registry.collect():
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py", line 82, in collect
    for metric in collector.collect():
  File "/prometheus_speedtest/prometheus_speedtest.py", line 92, in collect
    results = self._tester.test()
  File "/prometheus_speedtest/prometheus_speedtest.py", line 60, in test
    timeout=self._timeout)
  File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1095, in __init__
    self.get_config()
  File "/usr/local/lib/python3.7/site-packages/speedtest.py", line 1127, in get_config
    raise ConfigRetrievalError(e)
speedtest.ConfigRetrievalError: HTTP Error 403: Forbidden

Thanks for the change. Not sure why there's a merge conflict, can you try to resolve it an commit?

Thanks for the change. Not sure why there's a merge conflict, can you try to resolve it and commit?

There are no merge conflicts to fix?
The CI seems to be broken with some ruby dependency issues:
The command "gem install mdl" failed and exited with 1 during .

This doesn't have anything to do with the changes I made so maybe its best for that be be fixed in a follow up commit?


[Bug] Playground 'recreate' doesn't seem to be working

Is this a regression?
I don't know
Description
When I try (even in the ngdoc documentation: https://ng-doc.com/docs/guides/playground) to use the 'recreate' option in playground, the component is usually not remade. Only the code preview changes, but the component stays the same (ng-doc-tag) or sometimes even disappears (ng-doc-button).
I have observed this behavior in both Firefox 123 and Edge 122. No error is displayed in the browser console.

Please provide the exception or error you saw
No response
OS
Windows
Browser
Firefox
Node version
20.9
Anything else?
No response

Yep sry, didn't notice that, should be fixed now

:tada: This issue has been resolved in version 17.5.5 :tada:
The release is available on:

v17.5.5
GitHub release

Your semantic-release bot :package::rocket:

Thanks again for all the quick fixes. 🙂

Thanks again for all the quick fixes. 🙂

Thank you for the findings 👍


convert caffe prototxt to cnndroid

Hi there,
I am not sure you are still working on this project. I just used parameter generator to convert caffe googleNet model to lots of .msg files. However, to use cnndroid, I need the net txt file in cnndroid format. Is there a tool I can use to convert existing caffe prototxt file to cnndroid txt file? Thanks in advance.

Hi,
Sorry for late reply.
Unfortunately, googleNet is not yet supported in CNNdroid.
Thanks


SOLVED: subscription_offer_details=null for subscriptions in 2.0.0-rc.1

I am trying to access the "price string" of a subscription using its subscription_offer_details in plugin release 2.0.0-rc.1. However, when I retrieve a subscription product using query_product_details(), it only returns the following:

description
id
title
type
subscription_offer_details (null)

Upon investigating this further, I believe this to be an issue with "backward compatible" subscriptions

Ahh, I think I've solved it. I went over the source files and in GodotGooglePlayBilling.JAVA I found this:
// TODO: Allow for selecting other than the default/first offer
Given that my first "base plan and offer" is inactive, that's probably why it's returning null.

Anyways, I asked GTP4 how to improve the code so that it works for my situation, and this is what it spit out
String offerToken = null;         if (productDetails.getSubscriptionOfferDetails() != null && !productDetails.getSubscriptionOfferDetails().isEmpty()) {             for (SubscriptionOfferDetails offerDetail : productDetails.getSubscriptionOfferDetails()) {                 if (offerDetail != null && offerDetail.getOfferToken() != null) { // Add any other conditions needed for valid offers.                     offerToken = offerDetail.getOfferToken();                     break;                 }             }         }
Now it's just a matter of finding out how to build it...

I solved it. Hoping someone can integrate this into a pull-request. In GooglePlayBillingUtils.java, convertProductDetailsToDictionary() was using ArrayList, which was turning to "null" when passed to Godot. I upgraded the code to use org.godotengine.godot.Dictionary instead of ArrayList and it now I can read all the data from subscription_offer_details. Here is the upgraded version of convertProductDetailsToDictionary():
public static Dictionary convertProductDetailsToDictionary(ProductDetails details) {
	Dictionary dictionary = new Dictionary();
	dictionary.put("id", details.getProductId());
	dictionary.put("title", details.getTitle());
	dictionary.put("description", details.getDescription());
	dictionary.put("type", details.getProductType());

	ProductDetails.OneTimePurchaseOfferDetails oneTimePurchaseOfferDetails = details.getOneTimePurchaseOfferDetails();
	if (oneTimePurchaseOfferDetails != null) {
		Dictionary oneTimePurchaseDetailsDictionary = new Dictionary();
		oneTimePurchaseDetailsDictionary.put("formatted_price", oneTimePurchaseOfferDetails.getFormattedPrice());
		oneTimePurchaseDetailsDictionary.put("price_amount_micros", oneTimePurchaseOfferDetails.getPriceAmountMicros());
		oneTimePurchaseDetailsDictionary.put("price_currency_code", oneTimePurchaseOfferDetails.getPriceCurrencyCode());
		dictionary.put("one_time_purchase_details", oneTimePurchaseDetailsDictionary);
	}

	List<ProductDetails.SubscriptionOfferDetails> subscriptionOfferDetailsList = details.getSubscriptionOfferDetails();
	if (subscriptionOfferDetailsList != null && !subscriptionOfferDetailsList.isEmpty()) {
		Dictionary subscriptionOfferDetailsDictionaryContainer = new Dictionary();

		int subscriptionOfferIndex = 1;
		for (ProductDetails.SubscriptionOfferDetails subscriptionOfferDetails : subscriptionOfferDetailsList) {
			Dictionary subscriptionOfferDetailsDictionary = new Dictionary();
			subscriptionOfferDetailsDictionary.put("offer_token", subscriptionOfferDetails.getOfferToken());
			subscriptionOfferDetailsDictionary.put("offer_tags", subscriptionOfferDetails.getOfferTags());

			Dictionary pricingPhasesDictionaryContainer = new Dictionary();
			List<ProductDetails.PricingPhase> pricingPhasesList = subscriptionOfferDetails.getPricingPhases().getPricingPhaseList();
			for (int i = 0; i < pricingPhasesList.size(); i++) {
				ProductDetails.PricingPhase pricingPhase = pricingPhasesList.get(i);
				Dictionary pricingPhasesDictionary = new Dictionary();
				pricingPhasesDictionary.put("billing_cycle_count", pricingPhase.getBillingCycleCount());
				pricingPhasesDictionary.put("billing_period", pricingPhase.getBillingPeriod());
				pricingPhasesDictionary.put("formatted_price", pricingPhase.getFormattedPrice());
				pricingPhasesDictionary.put("price_amount_micros", pricingPhase.getPriceAmountMicros());
				pricingPhasesDictionary.put("price_currency_code", pricingPhase.getPriceCurrencyCode());
				pricingPhasesDictionary.put("recurrence_mode", pricingPhase.getRecurrenceMode());
				pricingPhasesDictionaryContainer.put("pricingPhase_" + (i + 1), pricingPhasesDictionary);
			}

			subscriptionOfferDetailsDictionary.put("pricing_phases", pricingPhasesDictionaryContainer);
			subscriptionOfferDetailsDictionaryContainer.put("subscriptionOffer_" + subscriptionOfferIndex, subscriptionOfferDetailsDictionary);
			subscriptionOfferIndex++;
		}

		dictionary.put("subscription_offer_details", subscriptionOfferDetailsDictionaryContainer);
	}

	return dictionary;
}

I created a PR for this fix: https://github.com/godotengine/godot-google-play-billing/pull/58
I'll leave this open in the mean time, so that anyone else dealing with this issue will know what to do, until the PR is merged with the main branch

Try this


If a file named after the Ruby version exists in the pwd, ruby-build executes that file instead of installing the version

Steps to reproduce the behavior

rbenv uninstall 3.1.3
cd into any directory
echo 'echo "hello from a file called 3.1.3"' >> 3.1.3
rbenv install 3.1.3 or ruby-build 3.1.3 ~/.rbenv/versions/3.1.3

Expected vs. actual behavior
Expected behavior: the fact that a file with the same name as the desired Ruby version exists in the pwd should have no impact on the Ruby installation.
Actual behavior: ruby-build will execute any commands in the file, which could potentially result in unintended destructive behavior. Here's the output:
To follow progress, use 'tail -f /var/folders/w9/yj7qtv7d7llb0k21b3mplnhh0000gn/T/ruby-build.20230223120613.23152.log' or pass --verbose
hello from a file called 3.1.3

With rbenv install 3.1.3, it thinks the installation passed because of the exit status of executing the 3.1.3 file:
To follow progress, use 'tail -f /var/folders/w9/yj7qtv7d7llb0k21b3mplnhh0000gn/T/ruby-build.20230223120613.23152.log' or pass --verbose
hello from a file called 3.1.3

NOTE: to activate this Ruby version as the new default, run: rbenv global 3.1.3

If the file starts with a line that isn't a valid command, then it will fail due to "command not found":
To follow progress, use 'tail -f /var/folders/w9/yj7qtv7d7llb0k21b3mplnhh0000gn/T/ruby-build.20230223125047.15428.log' or pass --verbose
3.1.3: line 1: hello: command not found

BUILD FAILED (macOS 13.2.1 using ruby-build 20230222)

This is intentional behavior and documented in the usage of these commands:
$ rbenv install -h
Usage: rbenv install [-f|-s] [-kpv] <version>
       rbenv install [-f|-s] [-kpv] <definition-file>

$ ruby-build -h
ruby-build 20230202

Usage: ruby-build [-kpv] <definition> <prefix>

The <definition-file>/<definition> is the argument here. The behavior is desired for creating custom build-definition files and installing custom builds. (No joke, I did this just today in order to get a build of ruby that uses a FIPS-enabled openssl).
To be clear, the filename itself matching any given ruby version is incidental. The <definition>/<definition-file> argument is simply a path to a file. As a fallback, that argument is matched against files that it finds in RUBY_BUILD_DEFINITIONS directories; which just so happen to normally be named after ruby versions. (The default RUBY_BUILD_DEFINITIONS path including ruby-build's own share/ruby-build/ directory.)
I do see the potential for some confusion here. And it might make sense for ruby-build to expect a prefix (./) when matching files outside of RUBY_BUILD_DEFINITIONS. Perhaps a feature request?

Thanks for the explanation. It makes sense, though I still find it surprising. I would expect the default behavior to only use definitions in RUBY_BUILD_DEFINITIONS directories. Additionally, it would be nice for the definition to be validated. For example, if it doesn't include install_package, then it should exit with an appropriate error message.
Just a suggestion though. Perhaps someone with more time can take a stab at implementing it. Feel free to close this issue.

Additionally, it would be nice for the definition to be validated. For example, if it doesn't include install_package, then it should exit with an appropriate error message.

Since definition files are just shell scripts invoking ruby-build functions, I'm not sure what kind of validation we could perform, since these scripts can contain anything (they don't necessarily have to invoke install_package).
I understand that this is confusing, but because people normally don't have matching unrelated files called X.Y.Z in their current directory, this isn't something that many people will run into. If we were designing this functionality from scratch today, we could require that referencing a local file must start with ./ in the argument name, like @jasonkarns suggested, but we can't introduce that requirement now because it would break backwards compatibility with scripts.
Since I'm lacking concrete ideas to improve this that would also be safe to implement, and since I don't believe the risk of this confusion is great, I will close this. Thanks for the discussion!


[BUG] Error on running bot

Describe the bug
When i run  python -m src.main this error apper

C:\Users\Mati\Downloads\gpt-discord-bot-main\gpt-discord-bot-main>python -m src.main
[2023-02-08 16:37:43] [INFO    ] discord.client: logging in using static token
[2023-02-08 16:37:43,371] [client.py:571] logging in using static token
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Mati\Downloads\gpt-discord-bot-main\gpt-discord-bot-main\src\main.py", line 267, in <module>
    client.run(DISCORD_BOT_TOKEN)
  File "C:\Users\Mati\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\client.py", line 828, in run
    asyncio.run(runner())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "C:\Users\Mati\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\client.py", line 817, in runner
    await self.start(token, reconnect=reconnect)
  File "C:\Users\Mati\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\client.py", line 746, in start
    await self.connect(reconnect=reconnect)
  File "C:\Users\Mati\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\client.py", line 672, in connect
    raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002678C10BC10>
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 719, in call_soon
    self._check_closed()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

bot running local on windows 10

it work 👍


math/big: typo in formula used in comment

Please answer these questions before submitting your issue. Thanks!
At line 85 in src/math/big/arith.go file, it should be q = (u1<<_W + u0 - r)/v rather than q = (u1<<_W + u0 - r)/y
What version of Go are you using (go version)?
go version go1.10.1 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
What did you see instead?

@ALTree Thanks a lot


Textarea can be extended outside of modal dialog

Resize a textarea inside a modal dialog to be bigger than its container and watch it extend outside of the modal dialog.
I saw this issue on 3.0.0 using Chrome (29.0.1547.65) on Mac.

Thank you!

Thank you!


Issue after upgrading to Kingston 1tb nvme

I upgraded the M2 nvme to an Kingston 1tb 2500mbps (dell website says that 1 tb is the max supported), flashed an usb drive, started using your EFI (thanks again for all effort on it), formatted the SSD, apfs, installed the Mac os and after the reboot, selected MacOs Installer from OpenCore boot selection and after the apple logo loading screen there's an error:
macOs Update Assistant:
com.apple.DiskManagement.disenter error -119930878
IDK the exact reason yet but my guess is that this Kingston nvme has some incompatibility with our hardware.
If someone can give an idea how can I solve it, please share here to help others.

That was crazy: one randomly worked after some restarts ( all failing at the same point ). I'm answering this from the new MacOs installation, the nvme is working fine.

Glad you find a solution! Some NVMe models don't play nice with hackintosh. Please report if you have any issues in the future.


Stock options

Current coverage is 73.33%

Merging #51 into master will increase coverage by +4.10% as of 70c0cd4

@@            master     #51   diff @@
======================================
  Files            3       4     +1
  Stmts           13      15     +2
  Branches         0       0
  Methods          0       0
======================================
+ Hit              9      11     +2
  Partial          0       0
  Missed           4       4

Review entire Coverage Diff as of 70c0cd4

Uncovered Suggestions

+13.33% via ...utils/ApolloUtils.js#17...18
+13.33% via ...utils/ApolloUtils.js#5...6

Powered by Codecov. Updated on successful CI builds.


fix: match defs at end of string

This fixes issues where:

Function is defined at end of string

There are no word/# characters

Technically, Python functions cannot have new line characters in the def name( part

Only ' ' (space) characters
Note: Surprisingly, there can be new line characters within the function params 🤷♂ (WHY PYTHON! WHY!)

The function def return no longer includes the superfluous \n

is there a need to match multiple defs?

Yes and no. Yes, we want to write tests on more than one function at a time. No, this helper was not designed to return multiple functions.
Are you asking whether the regex should use the g flag?

Kind of. I was just wondering how you planned to handle multiple definitions.
i.e. do you want to use this for something like
def one():
	print('hi')

def two():
	print('there')

one()
one()
two()

So does Rust :3

It is not this that I mind. It is Python not allowing it in the other part:

Python functions cannot have new line characters in the def name( part


Type checking and inference for optional function invocation (chaining)

🔍 Search Terms
optional function invocation, optional chaining
✅ Viability Checklist

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
I propose an enhancement to TypeScript's type inference mechanism in the context of optional function invocation. The idea is to allow TypeScript to automatically narrow down the type of a variable that could be either a function or a value of a different type, based on its usage in an optional function invocation.
So, in a line like this:
const value = valueOrFunction?.(context) ?? valueOrFunction;

..., assuming value is some function type | other types, the expression before the ?? operator will be inferred as the former and after it as the latter.
📃 Motivating Example
Consider a function that accepts a parameter which could be either a function or a value of a different type:
function example<T, U>(valueOrFunction: ((context: T) => U) | U), context?: T) {
    const value = typeof valueOrFunction === 'function' ? valueOrFunction(context) : valueOrFunction;
    // value infers as U
}

With the proposed feature, TypeScript would automatically infer the type based on the usage, allowing you to write more concise and readable code:
function example<T, U>(valueOrFunction: ((context: T) => U) | U), context?: T) {
    const value = valueOrFunction?.(context) ?? valueOrFunction;  // < after ??, valueOrFunction typeguards to U
    //                             ^ typeguards to (context: T) => U
    // value infers as U
}

Indeed, as using the ?.( syntax is only possible on a function, a typeof check seems redundant here, so TypeScript could automatically infer that the expression before the ?? operator is a function. This would streamline the code and make it more readable, while also reducing the potential for errors due to manual type checking.
💻 Use Cases
1. What do you want to use this for?
This feature would be useful in scenarios where a function accepts a parameter that could be either a function or a value of a different type. It would allow developers to write more concise and readable code by eliminating the need for explicit type guards.
2. What shortcomings exist with current approaches?
It is too verbose.
3. What workarounds are you using in the meantime?
In the absence of this feature, developers have to resort to explicit type guards and conditional logic to handle variables that could be either a function or a value of a different type.

The example is going to do bad things at runtime regardless of any change to TS's inference.  If valueOrFunction can be any non-nullish non-function, then valueOrFunction?.(context) will explode.  So if you call example("abc"), then at runtime you'd be trying to call the non-nullish "abc" as if it were a function.  This can't be fixed with the type system; optional chaining is a JS feature that TS does not control.  The only reasonable thing for TS to do here is issue an error that valueOrFunction is not callable.  Which is what it does already.  Is this a fundamental problem with your proposal or did you just use a problematic example?

Thanks @jcalz.  I always forget foo?.(bar) is the syntax for an optional call.  When I see foo?.(bar) I instinctively read it as foo?.bar with extraneous parens so I didn't even realize why the example was problematic.

Besides that, U can very well be a function as well, making this a very sketchy pattern.

Besides that, U can very well be a function as well, making this a very sketchy pattern.

This would hold for the original kind of type checking as well, this is an issue with the example at least. (Replace U with string then.)

I didn't mean your proposal, but the sketchy pattern "function returning value or value". You can't do this safely, because you can't differentiate between the two.

If we know for sure that U isn’t function (which we often do), this is a
very useful pattern that allows you to eg have default values either
specified literally or inferred/initialized from some context.
Вт, 17 окт. 2023 г. в 21:11, Martin Johns @.***>:

I didn't mean your proposal, but the sketchy pattern "function returning
value or value". You can't do this safely, because you can't differentiate
between the two.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/TypeScript/issues/56134#issuecomment-1766921421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABN6JM4FMDJ3HXQVXX2GN3X73C5ZAVCNFSM6AAAAAA6DJTOUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRWHEZDCNBSGE
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Fix potentially wrong date on WSA deprecation docs.

Fixes (if a problem at all) https://github.com/MicrosoftDocs/windows-dev-docs/issues/4936

Not a mistake. But thank you for the question and offer to contribute a fix.
"Customers that have installed the Amazon Appstore or Android apps prior to March 5, 2024, will continue to have access to those apps through the deprecation date of March 5, 2025."


Add support for Rails 6.1

Tentative support for Rails 6.1

Already merged a working version in master. Thanks for your attempt @rhymes


importing from node_modules '~' path

using @import '~my-module/css/file' gives me an error on the server side but works fine on my frontend with webpack.
error:
Error: File to import not found or unreadable: ~@my-module/css/file.
When I switch to @import './node_modules/my-module/css/file' it works fine.

@3upzorz yeah, it is because webpack is managing imports itself so it can resolve ~ but in babel can't. Maybe there is a way how to configure css-modules-require-hook to do so but I'm not sure.

If my-module is module installed by npm/yarn so it is in package.json and node_modules then I think @import 'my-module/css/file'; should work.

@michalkvasnicak I am also getting this same error, but importing mine how you suggested. Everything is working just fine, but I'm getting the error during server compilation.

@coreyleelarson what error are you getting?


Cannot build solutions that contain multiple projects

It appears when building multi project solutions one receives the error: MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
To reproduce this issue:

Clone an example repo that has multiple projects (e.g https://github.com/fo-dicom/fo-dicom.git)
Open in VSCode and view solutions in Solution Explorer menu
Right click a specific solution and select build from dropdown menu.

Expected result:
Runs dotnet build {Solution file} to build specific solution
Actual result:
Runs dotnet build without specifying solution file. This generates an error as shown above.
My environment settings: dotnet --info
.NET Command Line Tools (2.1.105)

Product Information:
 Version:            2.1.105
 Commit SHA-1 hash:  141cc8d976

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /opt/dotnet/sdk/2.1.105/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.7
  Build    : 2d61d0b043915bc948ebf98836fefe9ba942be11

This should be a simple issue to fix, hopefully someone takes on the challenge. It's an annoyance especially when dealing with large complex projects that Visual Studio 2018 can solve instead.

Is this question in context with Dotnet-Core-Essentials? Looks like the DCE extension is not installed in your IDE according to the image in the description. All the DCE commands start with "DEC: " as the prefix.

Sorry my bad I had another extension installed that adds a solution explorer window, and I mistakenly blamed you're plugin instead of the other.
The DCE:Build only pops up when directly selecting the .sln file (which should be normal).
Excellent plugin nevertheless ;)

Thanks for your support!


support rollups-node redis cluster configuration

Implemented at https://github.com/cartesi/rollups/pull/154

      --redis-endpoint <REDIS_ENDPOINT>
          Redis address [env: REDIS_ENDPOINT=] [default: redis://<IP_ADDRESS>:6379]
      --redis-cluster-endpoints <REDIS_CLUSTER_ENDPOINTS>...
          Address list of Redis cluster nodes, defined by a single string separated by commas. If present, it supersedes `redis_endpoint`. A single endpoint can be enough as the client will discover other nodes automatically [env: REDIS_CLUSTER_ENDPOINTS=]

closed by #51


[Feature Request]  Supports the playback of rmvb videos

{"timestamp":"2023-08-09T08:37:31.738902Z","level":"error","prefix":"vd","message":"Failed to initialize a decoder for codec 'rv40'."}
I tried to use the plugin to play rmvb format video, found that can not play, how to add support for rmvb or other formats

You can refer to our packages's code (each platform is different) & repositories in this organizations, to cross-compile & bundle libmpv with selected decoders.

Although it is very inappropriate to say, in fact, I have not been in contact with any in-depth development of audio and video, and only call good plug-ins written by others, that is, the technology is very dishes. .

We can't include support for every codec out of the box, we want it to be small sized for most use-cases.
The project is open-source & I'm not your slave. Go ahead.

I will try my best. Thank you for your answer

In the future, we plan to publish media_kit_libs_*_video_full packages, but no motivation at the moment.

Thank you very much. I will learn dart ffi and ffmeg, and also try to support rmvb by myself. Looking forward to your update in the future. May I ask if you have Alipay or wechat payment code? Because of my country, I cannot sponsor you through github. I believe that other developers in our country who use this package will also want to support your update, but there is no good channel

You don't need to learn C/C++, FFI or FFmpeg, you just need to edit compilation configuration. In-fact, we already have full variant for Android:
https://github.com/media-kit/libmpv-android-video-build/releases/tag/v1.1.1
Just see how we the default flavor builds & make necessary changes locally.

Wow, thank you so much, haha, now go to study, happy

I am trying to complete this section and ready to add the following fields in yaml. Which do you think is good, or help to come up with a name, ready to read in gradle, and then determine whether full format support
If free time allows, I will try to support ios,mac in the future

Like this I just tried to reference to full.jar
And the MD5 check should be removed, manual modification of the MD5 judgment is more troublesome thing, should be downloaded to a temporary file, through the request response code to determine whether to download the complete and then modify the corresponding name

I'm sorry md5 should not be modified. I reread it. Sorry


Move Event from SPI group ExperimentalEventHandling to ForToolsIntegrationOnly.

This PR moves Event and Configuration.eventHandler to the ForToolsIntegrationOnly SPI group per the SPI policy outlined here.
Checklist:

[ ] Code and documentation should follow the style of the Style Guide.
[ ] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test

@swift-ci please test Linux

Linux CI failure is unrelated (timing out, known issue.) Builds at-desk on Ubuntu. Merging.


papplMainLoop should use persistent location for state files

Currently papplMainLoop defaults to a state file in $TMPDIR/BASENAME.state and a spool directory in $TMPDIR/papplUID.d.
When running in a SNAP, the state file should be in $SNAP_COMMON/BASENAME.state and the spool directory $SNAP_COMMON/BASENAME.d.
When running as root, the state file should be in LOCALSTATEDIR/lib/BASENAME.state and spool directory LOCALSTATEDIR/spool/BASENAME.d.
When running as non-root, the state file should be in $XDG_CONFIG_HOME/BASENAME.state if XDG_CONFIG_HOME is set and $HOME/.config/BASENAME.state or $HOME/Library/Application Support/BASENAME.state (macOS) otherwise. The spool directory should be $TMPDIR/BASENAME-UID.d.

[master b88be1a] Address persistence and a system-wide server (Issue #128, Issue #148)

I see in the change that you take into account that the Printer Application is running in a Snap, but you forgot the socket, in the function _papplMainloopGetServerPath() is no mention of if (snap_common) { ..., and as in a Snap the server runs as root and the client as user the generated socket names do not match.

@tillkamppeter I can't put the socket in SNAP_COMMON. What do other snap-based services do?

In the Snap of the PostScript Printer Application I am actually putting the socket into $SNAP_COMMON (via the --with-papplsockdir=/var/snap/ps-printer-app/common/tmp argument for ./configure) and there it works, at least for the Printer Application itself, from the same Snap, used for command line control of the Snap's Printer Application instance running as server. See the snapcraft.yaml of the PostScript Printer Application.
It should also be accessible this way for any unsnapped clients.
If you want to access the snapped Printer Application from another Snap (Snap-to-Snap communication via domain socket) you always need a special snapd interface, independent whether the socket is in $SNAP_COMMON or somewhere in the file system of the host system.
The CUPS Snap is such a case. The CUPS Snap's cupsd is listening on up to two domain sockets, always on /var/snap/cups/common/run/cups.sock and in case the the CUPS Snap's cupsd is the only cupsd on the system (no classically installed CUPS, from DEB, RPM, source, ...) also on /run/cups/cups.sock. Both can be used by unsnapped clients, the latter usually being used as it is the default in the system's classically installed libcups.
Client Snaps must plug an appropriate interface to access any file or domain socket of the host system or of another Snap, so for printing with or managing CUPS they need to plug an interface, "cups" (under development, see the linked snapcraft.io forum threads in README.md and especially the current discussion) for sole printing and "cups-control" for managing CUPS (create/modify/delete queues, delete anyone's jobs, ...).
The domain socket /var/snap/cups/common/run/cups.sock where the CUPS Snap always listens on is the only one confined Snaps plugging the "cups" interface can print through, this enforces the use of the CUPS Snap's CUPS, which always has Snap mediation (blocking administrative requests if client plugs "cups" and not "cups-control"). For this an confined Snap plugging "cups" installed from the Snap Store will auto-install the CUPS Snap as a dependency, and if on the system is already a classically installed CUPS (most of these do not have Snap mediation) the CUPS Snap switches to proxy mode, mirroring the queues of the classically installed CUPS and passing the jobs through to the classically installed CUPS so that drivers are used there.
The way to use Printer Application Snaps by any snapped or unsnapped client (especially the CUPS Snap) is to use http://localhost:PORT/ currently. If you want to have a domain socket communication between the CUPS Snap and the Printer Applications a new snapd interface for that has to get designed.

@tillkamppeter I still don't like putting the domain socket in SNAP_COMMON, as that is supposed to be for persistent data (or at least that's what the docs say). But I can add that.
As for a client (other than the executables in the snap) accessing the domain socket, I guess that is technically possible but not using the PAPPL client code (which will only work properly inside the snap).

[master eeb0991] Use SNAP_COMMON for domain socket, too (Issue #128, Issue #148)


New Bluesky profile

https://bsky.app/profile/samerde.day3bits.com

I submitted a PR instead. The issue template is unclear about how to enter a Bluesky profile link.


Update ChakraCore to v1.8.4

/cc @digitalinfinity @sethbrenith @jackhorton @mike-kaufman @akrantz

@kfarnung Are you moving to v1.8.4 for a particular reason or just keeping it in sync with the latest. If we're using v1.8.3 is that OK, or does it require moving to the latest version as well?

v1.8.4 contains the latest security fixes, so it's recommended to move to it.


Don't wait for peers when minting new POS block.

Fixes #403

Hi @mikedennis looks good did you try to mint?

@dangershony I got some advice from apro and going to get setup to do some POS minting to verify this works. Hold off merging until I can confirm it doesn't break anything.

@mikedennis are you happy with this change now?

Not sure, had this error. It doesn't seem related #554

This one is #500, fixed by my next PR. #554 does not seem related, but it seems quite new.

OK, 554 is also not related.

I can no longer make #554 happen but had #500 (previous block unexpected hash) happen several times.

ok i think I will merge this, it is indeed not related to #554

FYI I think this line can now be removed
 this.blockRepository.PutAsync(context.BlockResult.ChainedBlock.HashBlock, new List<Block> { block }).GetAwaiter().GetResult();

This signaler will not relay to peers until a block is persisted to store.
I will fix that when I do the consensus fix


feat: handle offline screen

Refs: #2249
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[ ] Bugfix
[x] Feature
[ ] Refactoring

What's new?

[x] PR closes #2249
[ ] <brief_description_of_what_I've_added>

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

Hey! You're handling offline only on Gallery view, there could be multiple solution to fix this problem. you could try to:

create a middleware to redirect to an error page when the internet connection of a user is not present
move the network verification on layout level

By the way Nuxt offers a connection checkers which can certainly help you

Okay, I get it. I would reimplement.

By the way Nuxt offers a connection checkers which can certainly help you

seems we could use it for #2512

I guess it's fair.
Now would be amazing to make handle offline-first v2 to add things

like notice user visually that's it's offline, but keep showing content - i.e. now when I'm offline and have cached pictures, why I can't see them if I don't interact with them?
disable buttons probably
write service worker to cache stuff, i.e. add the ability for user return to pages were previously been?
learn from https://offlinefirst.org/
https://hasura.io/blog/design-guide-to-offline-first-apps/
https://techbeacon.com/app-dev-testing/offline-first-web-mobile-apps-top-frameworks-components

pay 100 usd

pay 100 usd

pay 100 usd

for some reason, payout bot can not read your address, can you @KngZhi double check?

@yangwao I have changed the location.
Besides, I want to mention that Rewards section on CONTRIBUTING is kind confusing

Entering an amount like 100 USD and clicking the button Copy Payout address will copy the link to your clipboard

Copy Payout address should change to COPY PAYMENT LINK

pay 100 usd

@yangwao I have changed the location.
Besides, I want to mention that Rewards section on CONTRIBUTING is kind confusing

Entering an amount like 100 USD and clicking the button Copy Payout address will copy the link to your clipboard

Copy Payout address should change to COPY PAYMENT LINK #2717
Since I've been tested for various addresses if using COPY PAYOUT ADDRESS the copied link remains the same.

yes, it's changing quite fast and docs we're obsolete, thank you for updating it!

pay 100 usd

Missing address to be paid at 2645

strange, I'll process it manually and check later
https://kodadot.xyz/transfer?target=DaWoVNNhBTdqJ5iPN3UcaLeamkPpJeGWdrs8LhvX9TQbadc&usdamount=100&donation=true

payout sent https://kusama.subscan.io/extrinsic/0xd83215fd8de17e2e1bf0e3264413888e841e844e6040f791993bd36d79faead3


Issue found when installing 'request' package

I installed require npm package on app, imported it in react module, and got this error:
Error in ./~/request/lib/har.js
Module not found: Error: Cannot resolve module 'fs' in D:\projects\date-range-picker\node_modules\request\lib
 @ ./~/request/lib/har.js 3:9-22

Error in ./~/request/~/forever-agent/index.js
Module not found: Error: Cannot resolve module 'net' in D:\projects\date-range-picker\node_modules\request\node_modules\forever-agent
 @ ./~/request/~/forever-agent/index.js 6:10-24

Error in ./~/request/~/forever-agent/index.js
Module not found: Error: Cannot resolve module 'tls' in D:\projects\date-range-picker\node_modules\request\node_modules\forever-agent
 @ ./~/request/~/forever-agent/index.js 7:10-24

Error in ./~/request/~/tough-cookie/lib/cookie.js
Module not found: Error: Cannot resolve module 'net' in D:\projects\date-range-picker\node_modules\request\node_modules\tough-cookie\lib
 @ ./~/request/~/tough-cookie/lib/cookie.js 32:10-24

Error in ./~/request/~/tunnel-agent/index.js
Module not found: Error: Cannot resolve module 'net' in D:\projects\date-range-picker\node_modules\request\node_modules\tunnel-agent
 @ ./~/request/~/tunnel-agent/index.js 3:10-24

Error in ./~/request/~/tunnel-agent/index.js
Module not found: Error: Cannot resolve module 'tls' in D:\projects\date-range-picker\node_modules\request\node_modules\tunnel-agent
 @ ./~/request/~/tunnel-agent/index.js 4:10-24

Is a very similar issue to what's described here:
https://github.com/request/request/issues/1691
In the issue above is indicated to tweak the webpack.config.js file to cater for those elements that are being called.
Is there any known workaround for this?

What is your use case for request in a client-side app?
If you just need to make an AJAX request, use window.fetch instead.
We include a polyfill for it.

I want to consume an external server api (not a localhost one, but on another external domain).
I will go the fetch() way then, didn't know about the polyfill feature. Thanks!

fetch() works with any domain as long as CORS is configured on it.
And if it's not, we let you specify "proxy" option in package.json which will automatically proxy all unrecognised requests to the specified server.
You can find more instructions in the generated README of your project, or in template/README.md in this repo.

Hello @gaearon,
I have tried this from a couple of angles, but could not make it to work.
I set up the proxy url, constructed my query call, yet still the fetched url has http://localhost:3000 prepended to the api call. Image below:

In summary: I am setting the proxy url to:  "proxy": "https://holidayapi.com/v1", then added the string /api/ in the fetch() call, appended my constructed query, and it worked ok.
You may see the code in my react-date-range repo, use-fetch branch.
You may check the forms.js file, and the package.json one.

then added the string /api/ in the fetch() call

You don’t need to. Why did you do this?
We don’t treat URLs starting with /api in any special way. We just prepend the proxy URL to the URL you pass to fetch().
So it tried to load https://holidayapi.com/v1/api/holidays because that’s what you get by concatenating https://holidayapi.com/v1 and /api/holidays. You probably meant fetch('/holidays') instead.

Verified that this fixes the problem in your repo:
         function search(query) {
-            return fetch(`/api/holidays?${query}`, {
+            return fetch(`/holidays?${query}`, {
                 accept: 'application/json',
             }).then(checkStatus)
             .then(parseJSON);
@@ -129,7 +129,7 @@ class Form extends Component {
           return response.json();
         }

-        search(querystring);
+        search(querystring).then(result => console.log(result));

     }

You are right indeed!
I (mistakenly) was thinking that somehow /api/ was a keyword that would be replaced by the url set in proxy field, in package.json.
Thank you heaps for the given code correction. Now it all works as expected!


add conf/config as extension to search for

This PR adds config to as a possible search extension.
I ofen want to grep for conf or config files, and this makes it easier.

Any change to get this merged @ggreer ?


Form flickers between valid and invalid state while user is typing

Reproduction
https://formkit.link/94b23f0e9993ee103638d4a50b6c724f
Describe the bug
After applying a styling to a formkit component based on its validity state, flickering between the applied style occurs when the user is typing on the input
In the provided reproduction link, you must first get the input form to show the error message, and then start typing fast on it and you should see the green border popping up every now and then
Environment
• OS: Windows 10 Pro
• Browser: Chrome
• Version 1.6.1

Likely related to this slider number input flickering I'm seeing:
https://x.com/leemartin/status/1788637235916533913

i am also facing the validation state flickering issue, for reference video is attached
https://github.com/formkit/formkit/assets/6704744/ad49e106-f2e7-4e51-bee3-a020dc8a183a


Check blender collada support

Check for blender and collada support at configure time.
Provide a reasonable error message if blender fails during scene graph compilation (usually due to lack of collada support.)

0601255


Temporarily disable test due to ASAN bot failure on CI

Ref: rdar://118461385

@swift-ci smoke test


Unable to parse recipe when version_format set to [VER] only.

When creating a package recipe with version_format YAML attribute set to only [VER] (i.e., with no constant/literal value preceding it, such as "v"), the recipe fails to validate with error:
lf.yaml: unable to strict parse package recipe for lf: yaml: unmarshal errors:
  line 14: cannot unmarshal !!seq into string

Many GitHub projects use "raw" version number, so support for [VER] is important.
Note: I tried using \[VER], which will validate, but it fails to work when executing the recipe due to regex error.

That may be a YAML problem thinking that [VER] is a list. Try surrounding it in quotes like "[VER]".
Also, "[VER]" is the default for that field, so if you just delete that, it's assumed to be just a raw version number. That's why so many of the package configs don't include it.

Thanks for the reply. Makes perfect sense. I confirmed via update to the recipe that I had submitted for pboy.yaml. See new PR #6. Closing issue.


Climatology updates

Replace zipn.any() call with zinp.count() when checking for non-masked depth inputs because zinp.any() will give a false negative for an array where all (non-masked) depths are zero.
Make the checks on the time and depth ranges include the minimum of each members configured range. Previously the maximum was included (<=) but the minimum was excluded (>). To be consistent with the handling of vspan, include both endpoints. (The QARTOD manuals indicate the endpoints are included for vspan.)
Add a fspan parameter to the configuration. Most of the relevant QARTOD manuals specify a climatology test that does not have a fail span, but the Ocean Optics Data QARTOD manual specifies a climatology test with both a valid span and a fail span. To handle this case, the climatology code should support an optional fail span (fspan).

Thanks Seth! Will review this week.

I checked and this does not seem to affect the climatology results in QartodPerformanceTest

This looks good to me. The bug fixes and and fspan addition are straightforward, and you wrote tests to cover everything. Overall great submission. Thank you!
I'll give @kwilcox some more time to review if he wants, otherwise I'll merge EOD friday.


Create a function that allows a user to get a new access token

Expected Behavior
I can can call a function in the SDK which allows me to obtain a new access token using a refresh token, rather than having to create the request to the Keycloak token endpoint myself and handle the response/auth state too.

@cfoskin So it looks like AppAuth (the auth library we use under the hood) has a function to handle most of this for us - https://github.com/openid/AppAuth-Android/blob/fddab98931a4f256872ea4243ebbc1955cbdbd1f/README.md#using-access-tokens
authState.performActionWithFreshTokens(service, new AuthStateAction() {
  @Override public void execute(
      String accessToken,
      String idToken,
      AuthorizationException ex) {
    if (ex != null) {
      // negotiation for fresh tokens failed, check ex for more details
      return;
    }

    // use the access token to do something ...
  }
});

Maybe we could do a thin wrapper around this function that has a callback so they know if the refresh was successful or not. The id/access token could be fetched behind in the SDK, rather than a user having to provide them as params.


Wrap coordinates around dateline

When browsing another copy of the world, left or right the central one, after right-clicking on the map to add start, end, or intermediate points, error like this one is displayed:
Cannot find point 0: 52.50452,373.351135
Cannot find point 1: 52.516639,373.428383

This PR will make all clicks with longitude -180 to +180 degrees.
Uses the wrap() function from Leaflet.
It's not a complete solution to this issue, as the route is always drawn on the main copy of the world. However it is still an improvement:

Error is gone
After routing results success, map is automatically panned to the route anyway (in central copy of world), and brings you back to the main world

Thanks!


ReadtheDocs not building with right version of Python

Look at this: https://blog.readthedocs.com/default-python-3/

Addressed here: https://github.com/stephenhky/pyqentangle/commit/5a0ab6f33c7a713595edf5b01d0987a41ad0f561#diff-e3b87b9ac78b8654ec8ee32806cfcf02
https://github.com/stephenhky/pyqentangle/commit/0535c525b2490ae676f03bf993fdbde7201d32cb


Remove messages that have been marked as translated by mistake

I tried to be clever and pushed some translated files back to transifex when changin from angular to vue-i18n formatting. Unfortunately, this also pushed a lot of English strings and Transifex marked them as translated.
The task is now to go through all translated frontend strings in languages other than English and delete English messages in the "translated" field.
https://www.transifex.com/yunity-1/karrot/translate/

[x] German
[x] Chinese
[x] Czech
[x] Esperanto
[x] Spanish
[x] French
[x] Italian
[x] Russian

Done.


Modules folder indexing not working...

💬 Questions and Help
Hi. When I upload modules directly to the Data folder on our Synology server, and then restart the synology, the new modules are not seen by Foundry. If I open a browser in Foundry and go to modules folder, the new modules are seen but they do not show up in the setup modules list.
Please advise what to do, I don't know if this is a bug or not.

This does not seem to be a Docker container-specific issue.
Your best bet would be to ask in the FoundryVTT Discord #toubleshooting channel.  It could be a FoundryVTT bug, and they'd be able to help.


HighScore-server: https://fauna.com !?! Netlify? Firebase?

https://www.troyhunt.com/creating-a-lametric-app-with-cloudflare-workers-and-kv/


Take screenshot of an element

The screenshot() method returns the full-page screenshot, is there any way to get the screenshot of a DIV or any other element?

Is it really "full-page", or just viewport screenshot?

Oh, sorry, it's the viewport. It's possible to calculate the viewport of the DIV, create a screenshot with that viewport so that the result covers the DIV and then crop the screenshot but most of the screenshot tools support this feature and it would be great if this library can also support it.

This is basically a proxy to Chrome itself, so if Chrome doesn't have it, you're out of luck

It's possible to accomplish this with a bit of post-processing. If the aim of this library is to provide a proxy to Chrome headless, then you're right but if the aim is to provide a high-level library (it looks to be like that) on top of Chrome, this would be a good feature.

Nightmare has a clip argument. This library is still very immature.

Page.captureScreenshot protocol method has clip parameter which you can use it.
I did it in my API, here's the example of the capturing only DOM node.
https://api.letsvalidate.com/v1/thumbs?url=stackoverflow.com&selector=%23question-mini-list
Here's how I did it.
// ...

const {root: {nodeId: documentNodeId}} = await DOM.getDocument();
let nodeId;

try {
  const node = await DOM.querySelector({
    selector: options.selector,
    nodeId: documentNodeId,
  });

  nodeId = node.nodeId;
} catch(err) {
  console.error('Error while DOM querying', {err});
}

if (nodeId) {
  const {model} = await DOM.getBoxModel({nodeId});

  clip = {
    x: model.content[0],
    y: model.content[1],
    width: model.width,
    height: model.height,
    scale: 1
  };
}

// ...

const {data} = await Page.captureScreenshot({clip});

Verbose. I'll stick with Nightmare.

@hbakhtiyor it's a hosted service, we would like to host the API in our own servers / AWS account because of security considerations. We attach the private cookie information to the session in order to get screenshots of user dashboards.

Navalia has had this for a while as well: https://joelgriffith.github.io/navalia/Chrome/screenshot/

That's a great idea @buremba! We should definitely make this easier in the future! Thanks for bringing this up.
How would you like the API to look like?
@stevenvachon: Please note that unlike NightmareJS which has been around for many years and therefore seen a lot of API iterations and improvements, Chromeless is still pretty new. So if you're missing a feature, please open an issue (or even better: create a PR). I think this would be more productive instead of these kinds of comments. 🙏

Implemented in #137

Thanks!

I'm opening the issue since the PR is not merged yet. You can close it once it's merged.

@adieuadieu Hi, Any chances, the unreleased functionalities like this and custom path for saving screenshot getting released soon


LEND Pilot Support- new app build and Colombian Peso support

Expected Behavior
Please describe the behavior you are expecting
Current Behavior
What is the current behavior?

Synced with James this morning and he’s all set using the alfajores build for the lend pilot! So closing out this issue as nothing else is needed


Auto add starting slash with withPath

I don't know if it makes any sense, or if it is the intended way the method should work, but I expected the builder to add a starting slash if my path string didn't have one.
To illustrate, I've created the following piece of code:
UrlBuilder.fromString("http://withoutslash").withPath("lol")
which outputs http://withoutslashlol . My intuition told me to expect http://withoutslash/lol.
What do you think? I can totally work on a PR for this if you decide if it's ok.

I thought I'd fixed this already... let's see.

If you add this test to the end of the SimpleUrlTest class, does it not pass for you?
    @Test
    public void testWithPathStartingWithNonSlash() {
        UrlBuilder b = UrlBuilder.fromString("http://withoutslash").withPath("lol");
        assertEquals(b.toString(), "http://withoutslash/lol");
    }

Yeah, this should have been fixed with #37 and the fix released with 2.0.8, which is the latest release on Maven Central.

Oh, my bad then. I copied & pasted the dependency listed in the README, it was 2.0.7.
Upgrading to 2.0.8 fixed the issue, thanks for the heads up.
You can close if you want

All's well that ends well.


Fix/udacity notebooks py3

@vincentvanhoucke In reference to https://github.com/tensorflow/tensorflow/pull/871#issuecomment-176560995

Can one of the admins verify this patch?

I signed it!
On 28 January 2016 at 23:21, googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
[image: :memo:] Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/pull/922#issuecomment-176567477
.


module 'jax' has no attribute 'xla'

I am getting this error (module 'jax' has no attribute 'xla') while running the alphafold. Can anyone suggest the solution.

`AttributeError                            Traceback (most recent call last)
 in <cell line: 55>()
58     runner = cf_af.prep_model_runner(opt, old_runner=runner)
59   else:
---> 60     runner = cf_af.prep_model_runner(opt)
61 else:
62   runner = None
7 frames
/usr/local/lib/python3.10/dist-packages/jax/_src/deprecations.py in getattr(name)
51       warnings.warn(message, DeprecationWarning, stacklevel=2)
52       return fn
---> 53     raise AttributeError(f"module {module!r} has no attribute {name!r}")
54
55   return getattr
AttributeError: module 'jax' has no attribute 'xla'`

Ho this is a colabfold notebook. Please raise the issue there. Thanks!


Cyclops All IN One

I'd suggest you do an installation integrates all the components of a Cyclops. I call it the Cyclops All In One
this makes the installation easier, faster and easier

Dear Obaviet,
Yes indeed your observation is correct, we already have a cyclops aio
docker container building scripts. We will soon release it in the dockerhub
for you to play with.
Please wait for an announcement regarding this on the ICCLab's twitter
feeds and our blog posts.
Kind regards,
Cyclops Team

Dr. Piyush Harsh, Ph.D.
Researcher, InIT Cloud Computing Lab
Zurich University of Applied Sciences (ZHAW)
[Site] http://piyush-harsh.info
[Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ
[Research Lab] blog.zhaw.ch/icclab
Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838
On Sat, Feb 6, 2016 at 5:12 PM, obaviet<EMAIL_ADDRESS>wrote:

I'd suggest you do an installation integrates all the components of a
Cyclops I call it the Cyclops All In One
this makes the installation easier, faster and easier
—
Reply to this email directly or view it on GitHub
https://github.com/icclab/cyclops-support/issues/1.

great job!
I am just an individual and I startup small business with OpenStack
i will provide publish cloud service .do your team have development cyclops on demand?
Please sent me infomation to<EMAIL_ADDRESS>


GitInfo.txt: change version

Change base version from <IP_ADDRESS> to 6.0.99.

first tag that has that commit is 6.0.100-preview.3.5

That tag doesn't have that commit. The tag points to much older commit (https://github.com/jsuarezruiz/maui-linux/commit/b83f98aca9108943c4797294ade4ffada67d88a4).

This PR is wrong, oldest tag that has the latest commit present both here and in dotnet/maui is <IP_ADDRESS>, see https://github.com/dotnet/maui/commit/70e880086a3d24f95564f8021f8fa1a1ff88c1c0


Added Biometric App & Enhanced README.md

Description

Fixes Issue #75
Type of Change:

Biometric Authentication Android application added.
Updated README.md of this repo for better readability.
Kindly merge the PR under hacktoberfest.
Proper screenshots added in my projects folder.

Checklist:

[x] My PR follows the style guidelines of this project
[x] I have performed a self-review of my own code or materials
[x] My branch is up-to-date with the Upstream development branch
[x] I have added necessary images/screenshots of my changes

Hey @utkarsh006 your app looks good, can you just add more documentation about your app in readme
You can refer this readme
https://github.com/aadityamp01/Androapps/tree/master/Password Manager

@aadityamp01 Sure I will update the readme but I've updated the Readme of project in this PR only. I think I should not create a new issue for making small changes.

@aadityamp01 Kindly check now.


Async handlers

Hi,
Thanks for the library, it's great addition to our system. However, I was wondering - what do you think of adding support for async handlers?
We have subscription handler where we need to call async methods. Could wrap of course in some GetAwaiter magic, but was wondering about "native" support from the hub side.
Any pointers whether this could be complex to add? Probably can contrib if you give some heads up ideas.
Thanks!

Hi,
I had intentionally not included support for asynchronous handlers as Tasks. This is by design as hub's only responsibility is to raise the events as they come in (fire and forget) it should not await for subscribers to finish processing them.
It is acceptable to use async void for cases where you need to await inside your handlers (see THIS, THIS and THIS).
HTH.

Thx, think we will pump into a channel then.


add example: fundcaster

Fundcaster is fundraising Frame app that is compliant with OF specs.

hi @fabriguespe I see this PR wasn't merged, is there anything I can do?

Hey! Frame is not rendering properly in apps and also buttons dont work :s

I observed same with converse web app and dev-inbox app,
I added this in my existing frames

Is there something more I can do to make it compatible?

Also adding more context: the Create button for the frame submitted here is making a tx call


Error connecting to the demo server

Hello,
I tried connecting to the demo server
./app/acvp_app --aes  --sample --verbose
Using the following parameters:
ACV_SERVER:     demo.acvts.nist.gov
ACV_PORT:       443
ACV_URI_PREFIX: /acvp/v1/
ACV_CA_FILE:    certs/mozzila_trust_anchors.pem
ACV_CERT_FILE:  certs/XXXXX.cer
ACV_KEY_FILE:   certs/PRIVATEKEY.key

***ACVP [INFO][acvp_http_user_agent_handler:1515]--> HTTP User-Agent: libacvp/1.0;Linux;4.4.0-17763-Microsoft;x86_64;Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz;GCC/9.3.0
***ACVP [STATUS][acvp_login:2521]--> Logging in...
Failed to decode TOTP seed
Enter PEM pass phrase:
***ACVP [ERR][acvp_curl_http_post:353]--> Curl failed with code 35 (SSL connect error)
***ACVP [INFO][log_network_status:1079]--> POST Login...
Status: 0
Url: https://demo.acvts.nist.gov:443/acvp/v1/login
Resp: Recieved
***ACVP [ERR][log_network_status:1105]--> Received no response from server.
***ACVP [STATUS][acvp_login:2533]--> Login Send Failed
***ACVP [ERR][acvp_run:3219]--> Failed to login with ACVP server
I got two errors:

Failed to decode TOTP seed
Curl failed with code 35 (SSL connect error)

I tried  using the curl command to see if I can connect to the server:
curl -i -v -X POST "https://acvts.nist.gov/acvp/validation/acvp/register" --cacert -H "Content-Type: application/json"  --cert certs/XXXXX.cer --key certs/PRIVATEKEY.key

Trying 2600:1f18:268d:1d01:acfb:16e5:57b4:96ac...
Trying <IP_ADDRESS>...
Connected to acvts.nist.gov (<IP_ADDRESS>) port 443 (#0)
ALPN, offering http/1.1
Enter PEM pass phrase:
Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
error setting certificate verify locations:
CAfile: -H
CApath: none
Closing connection 0
curl: (77) error setting certificate verify locations:
CAfile: -H
CApath: none
Trying <IP_ADDRESS>...
Connected to Content-Type (<IP_ADDRESS>) port 80 (#1)

POST /json HTTP/1.1
Host: Content-Type
User-Agent: curl/7.46.0
Accept: /

< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< X-Correlation-Id: aaaaaaaa
X-Correlation-Id: aaaaaaaa
< Date: Fri, 23 Apr 2021 05:04:11 GMT
Date: Fri, 23 Apr 2021 05:04:11 GMT
< Content-Length: 0
Content-Length: 0
< Connection: close
Connection: close
<

Closing connection 1

How can I fix this?
Thank you

Have you set the environment variable ACVP_TOTP_SEED with the value provided by NIST ?

Yes, I set the variable  export ACV_TOTP_SEED=certs/XXX_Demo_totp.txt

Hello,
ACVP_TOTP_SEED should be set to the seed directly as opposed to a file containing the seed.
Thanks,
Andrew

That fixed it.
Thank you


[FEATURE]: Common Components: Easy Array Migration

As a user of csi drivers,
I want to have array migration procedure,
So that I can migrate existing PV/PVC to a new target as smoothly as possible.
This feature about adding changes to existing common components (like extensions) or adding new common components (like a sidecar), those changes will enable implementation of feature in CSI drivers.

@santhoshatdell @ChristianAtDell I see several merges referenced here, has this been completed?

Hi @bharathsreekanth
Only the PowerMax driver supports migration feature as of now and other drivers are yet to add that support.
This feature seems to cover only the changes to common components which I think is done.
Adding @shanmydell @delldubey to confirm.


Fix "systemctl" command in README

Full integration - Windows Build 1369 outcome was FAILURE using a merge of 7ec29bda5d76402d52cb5dd27f51c0b1abaf4e05
Summary: Tests failed: 2 (2 new), passed: 3379, ignored: 194 Build time: 01:13:12
Failed tests
org.jboss.as.test.integration.jmx.ModelControllerMBeanTestCase.testAllMBeanInfos: java.lang.AssertionError: {jboss.as:core-service=management,service=management-operations,active-operation=-1850221663=javax.management.InstanceNotFoundException: jboss.as:core-service=management,service=management-operations,active-operation=-1850221663}
	at org.jboss.as.test.integration.jmx.ModelControllerMBeanTestCase.testAllMBeanInfos(ModelControllerMBeanTestCase.java:117)
------- Stdout: -------
20:18:25,814 WARN  [org.jboss.remotingjmx.Util] (main) The protocol 'http-remoting-jmx' is deprecated, instead you should use 'remote+http'.

org.jboss.as.test.clustering.cluster.web.FineWebFailoverTestCase(SYNC-tcp).testGracefulSimpleFailover: java.lang.AssertionError: expected:<200> but was:<500>
	at org.jboss.as.test.clustering.ClusterHttpClientUtil.establishTopology(ClusterHttpClientUtil.java:69)
	at org.jboss.as.test.clustering.ClusterHttpClientUtil.establishTopology(ClusterHttpClientUtil.java:58)
	at org.jboss.as.test.clustering.ClusterHttpClientUtil.establishTopology(ClusterHttpClientUtil.java:52)
	at org.jboss.as.test.clustering.cluster.web.AbstractWebFailoverTestCase.establishTopology(AbstractWebFailoverTestCase.java:256)
	at org.jboss.as.test.clustering.cluster.web.AbstractWebFailoverTestCase.testFailover(AbstractWebFailoverTestCase.java:171)
	at org.jboss.as.test.clustering.cluster.web.AbstractWebFailoverTestCase.testGracefulSimpleFailover(AbstractWebFailoverTestCase.java:83)
------- Stdout: -------
20:34:15,496 INFO  [org.jboss.as.test.clustering.NodeUtil] (main) Starting deployment=NONE, container=container-0
20:34:15,497 INFO  [org.jboss.as.test.clustering.NodeUtil] (main) Starting deployment=NONE, container=container-1
20:34:15,497 INFO  [org.jboss.as.test.clustering.NodeUtil] (main) Deploying deployment=deployment-0
20:34:15,513 INFO  [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0001: Content added at location C:\BuildAgent\work\38e1ea00f932992d\full\testsuite\integration\clustering\target\wildfly-SYNC-tcp-0\standalone\data\content\96\1d9daa86245fd455905228cb72340001668283\content
20:34:15,516 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "fine-distributable.war" (runtime-name: "fine-distributable.war")
20:34:15,544 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.fine-distributable.war" is using a private module ("org.jboss.as.clustering.common:main") which may be changed or removed in future versions without notice.
20:34:15,544 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.fine-distributable.war" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.
20:34:15,544 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.fine-distributable.war" is using a private module ("org.infinispan:main") which may be changed or removed in future versions without notice.
20:34:15,549 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment fine-distributable.war
20:34:15,554 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'TopologyChangeListenerBean' in deployment unit 'deployment "fine-distributable.war"' are as follows:

	java:global/fine-distributable/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:app/fine-distributable/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:module/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:jboss/exported/fine-distributable/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:global/fine-distributable/TopologyChangeListenerBean
	java:app/fine-distributable/TopologyChangeListenerBean
	java:module/TopologyChangeListenerBean

20:34:15,580 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 24) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
20:34:15,580 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 24) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
20:34:15,587 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 17) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
20:34:15,587 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 17) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
20:34:15,598 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 3) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
20:34:15,599 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 3) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
20:34:15,643 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 17) WFLYCLINF0002: Started routing cache from web container
20:34:15,648 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 3) WFLYCLINF0002: Started fine-distributable.war cache from web container
20:34:15,648 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 24) WFLYCLINF0002: Started client-mappings cache from ejb container
20:34:15,845 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 17) WFLYUT0021: Registered web context: /fine-distributable
20:34:15,859 INFO  [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "fine-distributable.war" (runtime-name : "fine-distributable.war")
20:34:15,870 INFO  [org.jboss.as.test.clustering.NodeUtil] (main) Deploying deployment=deployment-1
20:34:15,884 INFO  [org.jboss.as.repository] (management-handler-thread - 4) WFLYDR0001: Content added at location C:\BuildAgent\work\38e1ea00f932992d\full\testsuite\integration\clustering\target\wildfly-SYNC-tcp-1\standalone\data\content\96\1d9daa86245fd455905228cb72340001668283\content
20:34:15,887 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "fine-distributable.war" (runtime-name: "fine-distributable.war")
20:34:15,916 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) WFLYSRV0018: Deployment "deployment.fine-distributable.war" is using a private module ("org.jboss.as.clustering.common:main") which may be changed or removed in future versions without notice.
20:34:15,916 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) WFLYSRV0018: Deployment "deployment.fine-distributable.war" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.
20:34:15,917 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) WFLYSRV0018: Deployment "deployment.fine-distributable.war" is using a private module ("org.infinispan:main") which may be changed or removed in future versions without notice.
20:34:15,922 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0003: Processing weld deployment fine-distributable.war
20:34:15,927 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-6) WFLYEJB0473: JNDI bindings for session bean named 'TopologyChangeListenerBean' in deployment unit 'deployment "fine-distributable.war"' are as follows:

	java:global/fine-distributable/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:app/fine-distributable/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:module/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener
	java:jboss/exported/fine-distributable/TopologyChangeListenerBean!org.jboss.as.test.clustering.TopologyChangeListener


Support for youtu.be links

When I use the site on mobile, I often get videos from the YouTube app, which gives these shortened URLs that expand when navigated to.
Needing to paste it into a regular browser to expand the link first isn't the most user-friendly :P
Example link:
https://youtu.be/OaxlJC9wTl4

I'm kind of amazed the site works at all on mobile, but this should be easy enough to implement!

Fixed in https://github.com/bspammer/twitch-chat-replay/pull/121


Fix en.json file syntax

Weblate could not parse the translation files while updating the translations.
The following occurrences were found:

Filename
Error

web/src/assets/locales/en.json
JSONDecodeError('Expecting property name enclosed in double quotes: line 445 column 11 (char 18857)')

web/src/assets/locales/en.json
JSONDecodeError('Expecting property name enclosed in double quotes: line 445 column 11 (char 18857)')

do we not have a linter for this file in place :/

looks like we don't have :)

I'll create a stepbfor it ...

#2107 also do fix this

#2108 also do fix this


[BUG] JSQLParser Version : 4.0 : ON condition not parsed correctly when modifying SQL with natural join

Description
Hi, I am trying to dynamically add condition statements to SQL using JSqlparser. However, it seems there is an issue when the SQL contains a natural join:
public static void main(String[] args) throws JSQLParserException {
    String sql = "SELECT * FROM A a, B b where a.id = b.id";
    Statement statement = CCJSqlParserUtil.parse(sql, null);
    PlainSelect plainSelect = (PlainSelect) ((Select) statement).getSelectBody();
    Join join = CollUtil.getFirst(plainSelect.getJoins());
    // append a condition "a.id = '100'"
    join.setOnExpression(new EqualsTo(new Column("a.id"), new StringValue("100")));

    // = "SELECT * FROM A a, B b WHERE a.id = b.id"
    System.out.println(statement.toString());
}

I am not sure how JSqlparser handles this situation, but SELECT * FROM A a, B b WHERE a.id = b.id is clearly not the expected result.
Analysis
I tried debugging to find the root cause of this issue. I noticed that in the above code, the query of table B is parsed into a net.sf.jsqlparser.statement.select.Join object, and at this point, Join.simple is true.
After setting the ON condition with join.setOnExpression(new EqualsTo(new Column("a.id"), new StringValue("100"))); and attempting to convert it back to SQL, the ON condition is not correctly parsed into SQL because Join.simple is true:
@Override
public String toString() {
    if (isSimple() && isOuter()) {
        return "OUTER " + rightItem;
    } else if (isSimple()) {
        return "" + rightItem;
    } else {

        // isSimple() returns true, so this branch is ignored

        String type = "";

        if (isRight()) {
            type += "RIGHT ";
        } else if (isNatural()) {
            type += "NATURAL ";
        } else if (isFull()) {
            type += "FULL ";
        } else if (isLeft()) {
            type += "LEFT ";
        } else if (isCross()) {
            type += "CROSS ";
        }

        if (isOuter()) {
            type += "OUTER ";
        } else if (isInner()) {
            type += "INNER ";
        } else if (isSemi()) {
            type += "SEMI ";
        }

        if (isStraight()) {
            type = "STRAIGHT_JOIN ";
        } else if (isApply()) {
            type += "APPLY ";
        } else {
            type += "JOIN ";
        }

        return type + rightItem + ((joinWindow != null) ? " WITHIN " + joinWindow : "")
                + ((onExpression != null) ? " ON " + onExpression + "" : "")
                + PlainSelect.getFormatedList(usingColumns, "USING", true, true);
    }
}

Fix
Calling join.setSimple(false) after setOnExpression fixes the issue:
public static void main(String[] args) throws JSQLParserException {
    String sql = "SELECT * FROM A a, B b where a.id = b.id";
    Statement statement = CCJSqlParserUtil.parse(sql, null);
    PlainSelect plainSelect = (PlainSelect) ((Select) statement).getSelectBody();
    Join join = CollUtil.getFirst(plainSelect.getJoins());
    join.setOnExpression(new EqualsTo(new Column("a.id"), new StringValue("100")));
    join.setSimple(false); // set Join.simple to false

    // SELECT * FROM A a JOIN B b ON a.id = '100' WHERE a.id = b.id
    System.out.println(statement.toString());
}

In fact, if the ON condition is not null, isSimple should return false. Should we make the following changes to fix this issue?

When calling the setOnExpression method, if the parameter is not null, set simple to false.
When calling the isSimple method, check if onExpression is null.

Greetings.
You describe exactly the expected behavior:

you parse a statement with a simple join
you add  an ON condition without setting simple=false

Nothing to do here.


Move float_ord from bevy_core to bevy_utils

Objective
Reduce the catch-all grab-bag of functionality in bevy_core by moving FloatOrd to bevy_utils.
A step in addressing #2931 and splitting bevy_core into more specific locations.
Solution
Move FloatOrd into bevy_utils. Fix the compile errors.
As a result, bevy_core_pipeline, bevy_pbr, bevy_sprite, bevy_text, and bevy_ui no longer depend on bevy_core (they were only using it for FloatOrd previously).

One quick question. I like this change though; it's clearly the right organization and the rest lgtm.

bors try

@CAD97 can you rebase?

This should be labeled as a breaking change: those who import single items from Bevy instead of the prelude will have their builds broken.

@CAD97 can you add a quick migration guide to this?


Javascript Debug Terminal hangs with nx serve my-backend with nx + nest.js after 1.56

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.56
OS Version: macos 11.3.1
nrwl 12.1.0
nestjs 7.6.15

Steps to Reproduce:

Start a Javascript Debug Terminal
npx nx serve my-backend

Result:

debugger hangs with:

 ➜ npx nx serve my-backend                                                                                Mon May 17 17:11:56 2021
Debugger attached.

> nx run my-backend:serve
Debugger attached.
Starting type checking service...
Using 14 workers with 2048MB memory limit
Debugger attached.
Debugger attached.
Debugger attached.
Debugger attached.
Type checking in progress...
Hash: 7f7ca48a79b89d4aa340
Built at: 05/17/2021 5:12:20 PM
Entrypoint main [big] = main.js main.js.map
chunk {main} main.js, main.js.map (main) 1.53 MiB [entry] [rendered]

After press Ctrl+C to terminate the process, some of the debugger processes are still alive:

It was working on last week, but after it gets upgrade automatically, it is start failing.
But I tired to roll it back to 1.56.1 and 1.56.0, neither of them works.
I tried to roll it back to 1.55. It works again.

When it works fine, looks it will attached to the main.js correctly...which is not happening in the not working case.

Please collect a log on both versions so I can see the different 🙂  For the debug terminal, you can do so using the following setting:
  "debug.javascript.terminalOptions": {
    "trace": true
  },

/jsDebugLogs

Thx will try to update it before next week.

Mailed the log. Thx!

@connor4312 Sent another mail with Google drive link. Sorry for the late.
Have a nice holiday!

Thanks for the logs! This'll be fixed in the next nightly

@jesse23 has the issue been fixed for you with the nightly version of the extension?

@rzhao271 @connor4312  Sorry didn't notice this author-verification-request status...
I installed vscode-js-debug nightly from store:  (v2021.6.1117)

Now I got 2 JavaScript Debug Terminal option in create console..
I tried both with npx nx serve my-backend, both of them will hang in the same step...and have the same behavior.

I will see if an OOTB nx-nestjs project can reproduce this.

@jesse23 please do steps 1 and 2 here https://github.com/microsoft/vscode-js-debug#nightly-extension

@connor4312  Thx....with steps 1 and 2:

Now there is only one JavaScript Debug Terminal.
Yes the issue has been fixed, it could start the service correctly.
Break point works fine.

Thanks again!!


Additional fields for dev_data/autocomplete.jsonl

I think the following fields would be useful in autocomplete.jsonl:

The 'origin' remote if the project is a git repo (i.e. git@github.com:continuedev/continue.git)

Can be used to filter out sensitive repos
Can be used to create fine tuned models specific to groups that have access to a given repo
Looks like this takes ~1ms to fetch in completionProvider.ts via await ide.getRepoName(input.filepath), there may be something better that can be done where either the dir name -> repo name is cached OR the repo name is fetched later in an async routine that does not affect the completion latency.

The internally generated completion id, example: completionProvider.ts

Can be used to dedup entries, oftentimes when uploading to a data lake due to failure scenarios we can end up with duplicate entries

The value of os.username()

Can be used to get information about how many unique users are in my organization, how they are using continue, etc.

@spew Just made the change here: https://github.com/continuedev/continue/commit/6760a3060f198a1bfdbcab5509ae041ab46c1ac5 and here: https://github.com/continuedev/continue/commit/335ee7f310be04aca1015e22c9b46c666a426f4f
I chose to go with the unique machine id generate by VS Code because this is anonymized

This looks great! Agree that vscode unique ID is better.

I originally left this open because we hadn't addressed the final bullet point, but I want not to do this, for privacy preservation reasons. So closing now, but as usual, if you want more comprehensive dev data, just let us know!


doc: getting_started: Fix layout issue with code block

Signed-off-by: Carles Cufi<EMAIL_ADDRESS>

I did a quick scan through all the .rst files and didn't find any other occurrence of this issue (use of :: followed a nested .. code-block)


Thread and User relations on Message class load as null

See, the user attribute is null! Same is the condition with thread relation

Are you extending the package's Message class? Have you updated the config file to point to your extended Message class?

Well the issue resolved. I have tried using UUID as id and setting
model->incrementing = false

in a Helper trait which wasn't actually getting executed properly in the trait. And little confusion took place in Seeders.
Little refactoring is done. Works like charm for now.

Well the confusion with the seeder was I had to create messages for n threads. Well but I had to write a little lengthy chained query just to get actual user ids of the participants in the thread.
Having a helper function in thread to directly access user object through participants would be more useful.
Like hasManyThrough   or similar thing instead of Participant as individual model.
We can let Paticipant stay as individual model, but then provide some optimized function directly in Thread  to fetch user objects of particpants.

Well the confusion with the seeder was I had to create messages for n threads. But I had to write a little lengthy chained query just to get actual user object/ids of the participants in the thread.
Having a helper function in thread to directly access user (of User::class) object through participants would be more useful.
Like hasManyThrough   or similar thing instead of Participant as individual model.
If necessary, we can let Paticipant stay as individual model, but then provide some optimized function directly in Thread  to fetch user objects through particpants table/model.


Correct volatility match in plot_rolling_returns

Correct formula to calculate returns vs benchmark from:
returns = (returns / returns.std()) * bmark_vol

To:
returns = returns * (returns.std() / bmark_vol)

This will make a proper comparison of stock returns vs benchmark:
import pyfolio as pf
stock_rets = pf.utils.get_symbol_rets('FB')
bench_rets = pf.utils.get_symbol_rets('SPY')

Returns as they are:
pf.plotting.plot_rolling_returns(stock_rets,
                                 factor_returns=bench_rets,
                                 volatility_match=False)

Matched returns with original formula don't reflect the real dynamic (i.e FB doesn't cross SPY):
# returns = (returns / returns.std()) * bmark_vol
pf.plotting.plot_rolling_returns(stock_rets,
                                 factor_returns=bench_rets,
                                 volatility_match=True)

Matched returns with proposed formula has the same denominator as benchmark and therefore is relationship between the lines is not distorted:
# returns = returns * (returns.std() / bmark_vol)
pf.plotting.plot_rolling_returns(stock_rets,
                                 factor_returns=bench_rets,
                                 volatility_match=True)

Not sure I know what you mean. The idea is to have both returns have the same volatility. So the fact that FB has higher cumulative returns isn't all that meaningful if it's 10x the volatility. Are you saying that's not what the computation does or that it should do something different?

I might have misread the original plot, but what I meant to illustrate is that current computation doesn't (in my opinion) do what it's supposed to do: which is to take away the 'scale of returns' effect and show how volatile are the stocks on a comparable base (the base is benchmark). The proposed change is supposed to make a comparison of 'apples-to-apples'. Perhaps if you could illustrate what the original chart (where FB doesn't cross benchmark) is saying it would solve misunderstanding. Thanks.

As far as I understand, the current computation shows how FB would have had evolved if it had had the same volatility as the benchmark. In my understanding it is not supposed to show how volatile the stocks are on a comparable base, as you said, but rather to equalize their volatility and compare their different returns, assuming the same vol.
On the other hand, I find it hard to follow your new proposal. The volatility of your adjusted returns are not the same as the volatility of the benchmark. What is the intuition behind your formula?

Thanks for the sanity check @hkopp.


[Feature] InternVL可以像LISA一样输出Mask吗？

Motivation
InternViT在Segmentation任务上的表现很好，InternVL是否已经支持或者将会支持类似LISA的输出形式？即可以输出一个Segmentation Mask?
Related resources
No response
Additional context
No response

Thanks for your question. Currently, InternVL only supports box outputs and does not support mask output.


Bvicam

Added bvicam to domains
Institution/School Name
{Bhartiye Vidyapeeth Institute for Computer Application and Management}
Instiution/School Website
{bvicam.in}
Email Users
Please place an x between the square brackets if yes

[x] Students
[x] Academic/Teaching Staff
[ ] Other/Support Staff
[x] Alumni

Education Levels
Please place an x between the square brackets if yes

[x] Post-graduate research
[x] Graduate School
[x] College (University) or Undergraduate School or equivalent
[ ] Community College or equivalent
[ ] High School or equivalent
[ ] Elementary School or equivalent

@milindrc The domain bvicam.com does not belong to a university, nor to a college. I have to close the request without merging. Please ensure that you are familiar with this repository rules located at the bottom of this page before submitting a new request.


Prepare CWA for Omicron...

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[X] Bug affects both Android and iOS, for specific issues / questions that apply only to one operating system, please raise them in the respective repositories:

Android repository
iOS repository

[X] Bug is not already reported in another issue

Technical details

App version:  2.15.1

Describe the bug
I'll try a short version ...
Current situation: In many countries around the world, the number of new cases of infection reported every 24 hours is increasing very dramatically; For December 28, 2021, over 312,000 new infections were reported from the USA, from UK: 129,000, France: 179,000 and so on. (Source: worldometer.)
If the related reports are correct, the virus variant "Omikron" is more and more responsible for these numbers.
Discussion: Among other things, we had discussed under Adjust to new contagious mutations about framework conditions and limitations of the CWA with regard to 'contact tracing' possibilities (Bluetooth / BLE / Apple / Google ENF). The main reason was that the 5-minute time grid in which the CWA anonymously searches for other smartphones nearby could be far too long for Omicron, because the virus transmission / infection can take place much faster with Omicron than with the previous virus variants; incl. Delta.
Outlook: It can hardly be assumed that Omikron will avoid Germany. It is also at least very questionable whether a possible lower 'severity of the course of the Omicron infection' makes the faster spread of the virus 'more manageable' / 'easier' for us, our health system, the economy, etc.
That means we will soon have similar numbers of new infections as we are already seeing them in other countries.
Question: How do we get before the 5th wave? What can we do effectively?
Answer: We can wait until Apple and Google have found a solution to the 5-minute grid problem and the CWA is at least as good as before.
But when will that be? And is that enough?
My answer: no!
Therefore I would like to - explicitly take up my suggestion in the wish list Check-In / -Scan: Suggestion for functional expansion and flexibility ... again.
Knowing full well that this is also not a solution in the ideal sense. But it is a step in the right direction, because with the effective use of the already existing CWA functionalities "Are you planning an event?", "Scanning" and "Check-in" ("Sie planen eine Veranstaltung?", "Scannen" und "Check-in"), all options are available to defuse the "5 minutes time grid problem"!
(I had already added helpful extensions etc. in the links above and below.)
Provided, of course, that the CWA indeed can also carry out a risk classification solely on the basis of the place and time in which people were there and issue corresponding "increased risk" warnings if people who later tested positive were also present there.
The best comes at the end: The risk assessment in the CWA would even be able to evaluate temporal overlaps. So to warn even people who did not meet directly, but were 'only' present in close proximity (time-delayed).
Keyword: virus aerosol transmissions.
A corresponding suggestion, also against the background [CWA vs. Luca]: Promotion of the CWAs "Check-in" functionality ..., I have already passed it on to the RKI and the Federal Ministry of Health - even if the timing between the years may not be ideal and the recipients may no longer be able to cope with the flood of information and inquiries. ;-)
With this in mind, may we achieve the best.

PS from December 30th, 2021: Coronavirus in Germany - Number of Omikron cases rises to 16,748 - within one day 28 percent more.

Internal Tracking ID: EXPOSUREAPP-11342

I do not want to go into any further details about the current new corona infections (in Germany and across the EU); the current values can be read in many ways and in various media.
And obviously the German Federal Health Minister Prof. Dr. Lauterbach - after all, as a medical specialist - considers the ending of the pandemic with Omicron for naive.
Therefore I would like to refer to Event Registration - Summary (from CWA-Documentation) as a supplement and underpinning my post above.

Thanks for your report @Jo-Achim. We've added this to the internal ticket that was already created for your mentioned wishlist issue.  (currently only available in German) which discusses the question of adapting the app to the Omicron variant including the problem of reducing the sampling frequency.

If there are no plans to adjust CWA to Omicron, I suggest to close this issue now.

so, as @Ein-Tim already wrote, unless some additional changes need to be done, then the issue should be closed.


S3DIS / 3D semantic segmentation

Hello.
I'm studying 3d semantic segmentation and I'm new in this field.
https://mmdetection3d.readthedocs.io/en/latest/datasets/s3dis_sem_seg.html
above link, I'm doing Datasets/S3DIS for 3D Semantic Segmentation part
But I don't know what to do after 'create dataset' section
Thanks in advance.
% final goal is visualization

After preparing the dataset, you can train the model with the prepared config. More details can be found here.

After preparing the dataset, you can train the model with the prepared config. More details can be found here.

Thank you. I solved it :)
But there's another problem.
I close this issue and open another.


Check the correct version is pointed in deployment ymls before releasing

Description
Release pipeline (#50) does not check that the version being released is the one used in deployment yamls. This can cause inconsistencies with the versioning in the S3 bucket.
Expected Behavior
A deployment named newrelic-infrastructure-k8s-1.2.3.yml is expected to refer to deploy version 1.2.3.

I noticed that nri-kube-events has the same issue? Can you add the same check there as well @roobre
(maybe other pipelines also when pushing the manifest)


[BUG] - ExceptionInLinkedThread "ThreadId 192" Failure in Data.Map.balanceR CallStack (from HasCallStack):   error, called at src/Data/Map/Internal.hs:4157:30 in containers-<IP_ADDRESS>-EiES0HFUZ8PBGNrpVjoYRF:Data.Map.Internal

External
Area
cardano-node crashed
Summary
All nodes, both relay and producer crashed around 00:14 UTC with error:
Shutting down..
cardano-node: ExceptionInLinkedThread "ThreadId 192" Failure in Data.Map.balanceR
CallStack (from HasCallStack):
  error, called at src/Data/Map/Internal.hs:4157:30 in containers-<IP_ADDRESS>-EiES0HFUZ8PBGNrpVjoYRF:Data.Map.Internal

System info (please complete the following information):

OS Name: NixOS
OS Version 22.11
Node version:

cardano-node 1.35.4 - linux-x86_64 - ghc-8.10
git rev ebc7be471b30e5931b35f9bbc236d21c375b91bb

Additional context
The phenomenon seems to have affected a substantial portion of the network.

Closing because there's already the issue #4826.


damaged and can’t be opened

When downloading the app from the v1.0.0 release the app can't be opened as it is "damaged".
I suspect the issue is due to the app no being signed.

This can be bypassed using the follow commands in the terminal
cd /Downloads
xattr -d com.apple.quarantine "Password Generator.app"


  Emails are not being received when the form is simply filled out and the "Submit" button is clicked.
Example URL- https://www.moleculardevices.com/en/assets/scientific-posters/br/rapid-assessment-of-viability-in-patient-derived-colorectal-cancer-organoids

@MeghnaTewari This form is an iframe where we don't control the behaviour.
@dev-rajneeshkumar Can you have a look into this one please?

According to @dev-rajneeshkumar  this issue seems to be from hubspot end. The MolDev team hs already opened discussion thread with hubspot team regarding the same.
See https://adobe-dx-support.slack.com/archives/C04QNDDUADT/p1692358404799029?thread_ts=1692357239.464769&cid=C04QNDDUADT

Update status via Slack by @dev-rajneeshkumar , see https://adobe-dx-support.slack.com/archives/C04QNDDUADT/p1692794468575479
We are in touch with Hubspot team and so far threre is no permanent fix done for it. Now
@Jayant Kanchinadham will contact with their live support team.
Sometimes email is working in both cases and in some scenarios there is a delay or No email at all

Closing this as we have the interim solution in place.