Make it possible to change flip method

The flip method (set by nvvidconv flip-method=2 in the pipeline) should be able to be changed though ROS launch arguments. Different cameras than the one tested may pass the video in different orientations.

I am using the Jetbot and the camera needs to be flipped upside down. What value should I use to flip it? I've tried 0, 1, 2, and 3. I've tried running "catkin_make" after changing it. It doesn't seem to be taking the change.


[(LIVE.FREE)] Matias vs Ramirez Live stream Free in Puerto Rico: How to Watch the Boxing Card Online

Matias vs Ramirez results, start time, live stream, main event, undercard
Subriel Matias vs Roberto Ramirez live results from Coliseo Ruben Rodriguez in Bayamon, Puerto Rico
Subriel Matias and Roberto Ramirez at the press conference ahead of their bout at Coliseo Ruben Rodriguez in Bayamon, Puerto Rico | X/PPV_com
This post may contain affiliate links. We earn a commission, with no extra cost to you, if you use those links to make a purchase.
Subriel Matias faces Roberto Ramirez live on PPV from Coliseo Ruben Rodriguez in Bayamon, Puerto Rico on November 9. The pair squares off in the scheduled for 10 rounds main event at super lightweight.
Puerto Rico’s former world champion Matias (20-2, 20 KOs) looks to get back in the win column, after he lost his IBF 140 lbs title by unanimous decision against Liam Paro in June. San Diego-based Mexican Ramirez (26-3-1, 19 KOs) defeated Rodolfo Flores Moreno via seventh-round TKO last December and secured his third straight victory.
Among the Matias vs Ramirez undercard bouts, Alfredo Santiago (15-2, 6 KOs) of the Dominican Republic defends his NABO super lightweight title in a 10-rounder against Pedro Campa (36-3-1, 24 KOs) of Mexico. As well, Jeyvier Cintron (12-1, 6 KOs) of Puerto Rico and Rashib Martinez Valadez (23-3-1, 11 KOs) of Mexico battle it out for the vacant WBO International bantamweight strap.
Plus, Obimael Ortiz (10-1-1, 5 KOs) of Puerto Rico and Mexico’s Kevin Gonzalez (27-1-1, 14 KOs) go head-to-head in a 10-rounder at super bantamweight. In another 10-round Puerto Rico vs Mexico showdown, Luis J Rodriguez (13-0, 11 KOs) and Marcos Vazquez Rodriguez (20-1-1, 10 KOs) clash at super middleweight.
Watch on PPV.com
Subriel Matias vs Roberto Ramirez results
Get Subriel Matias vs Roberto Ramirez full fight card and stay tuned for live results below.
(6 pm ET / 3 pm PT)
Subriel Matias vs. Roberto Ramirez
Abimael Ortiz vs. Kevin Gonzalez
Jeyvier Cintron vs. Rashib Martinez Valadez
Alfredo Santiago vs. Pedro Campa
Luis J Rodriguez vs. Marcos Vazquez Rodriguez

gfht


Create a Coffee Lover's Blog

Pull Request Details:

Title: Create a Coffee Lover's Blog
PR Link: #23
Issue: #22

Next Steps:
I'm ready for feedback and any necessary revisions. Please review at your earliest convenience, and feel free to provide comments or suggest improvements.

Hi Paras,
Thank you for your pull request. I appreciate your contribution to our project.
I have reviewed your changes and everything looks good. Please be patient, and I'll get back to you as soon as possible.
If you have any questions or need further assistance, don't hesitate to ask.
Best regards,
Jayesh


Added support for multiple currencies

I added support for 20 new currencies. They are pulled from https://blockchain.info/ticker. It does not update as often as BTC China but still works. Currency is selected through the config.py file.
For example:
currency = 'USD'
This will grab the USD information from blockchain.info
Although blockchain.info supports Chinese BTC prices, I left your original url when CHN is selected as the currency. BTC China is still the default.

Good job, thanks!


feat: automate Node-Red library submission

Based on a conversation here: https://github.com/s1seven/node-red-monorepo/pull/10#discussion_r1135454373
We could try the API which is used by the frontend linked here
here's the code
inspect the network request to see what's expected by the express server.

I looked into automating submissions to the Node-Red Library, but the csrf protection makes it too complicated. I’m sure it would probably be possible with enough time spent on it, but I’m not sure it would be worth the effort.

would be nice if you could add the requests you tried.
If we try again we might start from this and not from scratch.


Subgraph update(s)

Changed directory structure for subgraphs
Added Rinkeby v1.2.0 subgraph

@thegostep
this should be good to go
still waiting on the graph to fix my login issue so i can see the subgraph link for sure, but i should have posted it in rocket chat a couple weeks ago, and this is definitely the api uri: https://api.thegraph.com/subgraphs/name/jgeary/erasure-rinkeby120


Topic: Adding FAQ Feature to Product Details Page

Describe the types of topics you'd add in our Website
@MinavKaria
We can add a Frequently Asked Questions (FAQ) feature to the product details page. This feature will allow customers to view common questions and answers related to each product, improving their overall shopping experience.
Could you share some screenshots or a video of your previous work?
Requirements:
Design a database schema to store FAQs for each product
Create a new model for the FAQ collection
Develop a new API endpoint to retrieve FAQs for a specific product
Create a new component to display FAQs on the product details page
Integrate the FAQ component into the product details page
Database Schema:
productId: The ID of the product associated with the FAQ
question: The question being asked
answer: The answer to the question
Please assign me this project to work on this task!
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC-24-extd contributor
[X] Soon, I'll complete it and create a Pull Request.

Hi @krishashah-03! Thanks for opening this issue on Ratna Supermarket. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.


Search results - more consistency

In the first 10 results there is repetition between the linked text (first line) and the unlinked text on second line that follows
last three search results show some odd text/formatting including bullets

Search results looking much better now. Two results have carets in front of them and I can't determine why. Is this a sign that something is buggy or something else?
(Searching for Integration Testing)
Two results display this: "> Debugging Testing Continuous integration testing Reproducibility"

This should be resolved!


Fix for refreshing tasks

Fixes https://github.com/badsyntax/vscode-gradle/issues/12
Previously we'd only get the tasks once the treeview was rendered. Now we explicitly refresh the tasks when the extension is activated.

LGTM!


make parentPayment nullable and added billingAgreementId.

As said before we are currently implementing a subscription. It seems that in case of a subscription the PAYMENT.SALES.COMPLETED event is also triggered (https://developer.paypal.com/docs/api-basics/notifications/webhooks/event-names/#subscriptions) but instead a parent_payment there is a billing_agreement_id.
Since this is the case, the webhook will fail with a 500 error. This PR fixes this behaviour.
Example Payload (from sandbox webhook):
{
	"id": "WH-0J860224XT5422720-1LE673646T867051E",
	"event_version": "1.0",
	"create_time": "2020-08-06T08:09:33.898Z",
	"resource_type": "sale",
	"event_type": "PAYMENT.SALE.COMPLETED",
	"summary": "Payment completed for EUR 21.6 EUR",
	"resource": {
		"billing_agreement_id": "I-DTVVSNCENF7M",
		"amount": {
			"total": "21.60",
			"currency": "EUR",
			"details": {
				"subtotal": "21.60"
			}
		},
		"payment_mode": "INSTANT_TRANSFER",
		"update_time": "2020-08-06T08:08:36Z",
		"create_time": "2020-08-06T08:08:36Z",
		"protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
		"transaction_fee": {
			"currency": "EUR",
			"value": "0.76"
		},
		"protection_eligibility": "ELIGIBLE",
		"links": [
			{
				"method": "GET",
				"rel": "self",
				"href": "https://api.sandbox.paypal.com/v1/payments/sale/1A615453BF810315T"
			},
			{
				"method": "POST",
				"rel": "refund",
				"href": "https://api.sandbox.paypal.com/v1/payments/sale/1A615453BF810315T/refund"
			}
		],
		"id": "1A615453BF810315T",
		"state": "completed",
		"invoice_number": ""
	},
	"links": [
		{
			"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0J860224XT5422720-1LE673646T867051E",
			"rel": "self",
			"method": "GET"
		},
		{
			"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0J860224XT5422720-1LE673646T867051E/resend",
			"rel": "resend",
			"method": "POST"
		}
	]
}

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/PT-11983
Please use this issue to track the state of your pull request.

thanks for your contribution @dominikmank  :+1: :tada: :blue_heart:


Create a sample extension for testing

To test the web components during the development phase, a simple extension that loads a view with them in action in VS Code would be useful.
Similar to the dev server we have now running on https://localhost:8000.

I think there is a difference between sample extension which needs a bundled version (also in future get it from npm) to a development/testing environment where you take it from the local server.
I can look into it. Do you think it should be an option in the sample extension? Or should it be another "dev" extension?

If it was only intended as a sample it is fine for the future, but as the dev ext version would be more useful atm. That is why I thought is was related to this one.
I'll check out the sample once I'm behind the computer.

You can assign me to the dev extension then. I think I will do it as another extension.

Just made a PR https://github.com/estruyf/vscode-community-ui-toolkit/pull/27


Change in behaviour between IDFv4.3-dev (and earlier) and IDFv4.4.2 re partition table MD5 is bricking devices during OTA (IDFGH-8533)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v4.4.2-312-g08fa67fe92
Operating System used.
Windows
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP32-WROOM32
Power Supply used.
USB
What is the expected behavior?
I expect that after an OTA update that the app should be able to load an existing partition that it was able to load before the OTA update.
What is the actual behavior?
For an OTA update of an app built using IDF v4.4.2 if CONFIG_PARTITION_TABLE_MD5=y then the app cannot load any existing partitions if the partition table was originally created without an MD5 checksum.
If the app was built with CONFIG_PARTITION_TABLE_MD5 unset then partition tables can be loaded.
In IDF version 4.3 and earlier, partitions could still be loaded regardless of the value of CONFIG_PARTITION_TABLE_MD5.
Steps to reproduce.

Build and flash an app with CONFIG_PARTITION_TABLE_MD5=y which will generate a partition table with an MD5 checksum.
In the app, initialise the flash partition and attempt to open it. Note that that works.
Build the same app with CONFIG_PARTITION_TABLE_MD5 unset (do not flash it)
Update the app via OTA.
In the app, attempt to initialise and open the flash partition and attempt to open it.
Note that this fails - which for many/most app is not recoverable.

Debug Logs.
I (29) boot: ESP-IDF v3.3-51-g5e321badd 2nd stage bootloader
I (29) boot: compile time 12:59:52
I (29) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed      : 40MHz
I (39) boot: SPI Mode       : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (50) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00005000
I (65) boot:  1 otadata          OTA data         01 00 0000e000 00002000
I (73) boot:  2 app0             OTA app          00 10 00010000 001d0000
I (80) boot:  3 app1             OTA app          00 11 001e0000 001d0000
I (88) boot:  4 hardware         WiFi data        01 02 003b0000 00003000
I (95) boot:  5 spiffs           Unknown data     01 82 003b3000 0004d000
I (103) boot: End of partition table
I (107) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x34bb8 (215992) map
I (192) esp_image: segment 1: paddr=0x00044be0 vaddr=0x3ff80063 size=0x00008 (     8) load
I (192) esp_image: segment 2: paddr=0x00044bf0 vaddr=0x3ffb0000 size=0x03b34 ( 15156) load
I (204) esp_image: segment 3: paddr=0x0004872c vaddr=0x40080000 size=0x078ec ( 30956) load
0x40080000: _WindowOverflow4 at C:/Dev/espressif/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1736

I (220) esp_image: segment 4: paddr=0x00050020 vaddr=0x400d0020 size=0xc945c (824412) map
0x400d0020: _stext at ??:?

I (510) esp_image: segment 5: paddr=0x00119484 vaddr=0x400878ec size=0x0fc98 ( 64664) load
0x400878ec: get_rate_fcc_index at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:1762

I (537) esp_image: segment 6: paddr=0x00129124 vaddr=0x400c0000 size=0x00064 (   100) load
I (537) esp_image: segment 7: paddr=0x00129190 vaddr=0x50000000 size=0x00010 (    16) load
I (557) boot: Loaded app from partition at offset 0x10000
I (557) boot: Disabling RNG early entropy source...
I (558) cpu_start: Pro cpu up.
I (562) cpu_start: Starting app cpu, entry point is 0x40081584
0x40081584: call_start_cpu1 at C:/Dev/espressif/esp-idf/components/esp_system/port/cpu_start.c:148

I (554) cpu_start: App cpu up.
I (583) cpu_start: Pro cpu start user code
I (583) cpu_start: cpu freq: 160000000
I (584) cpu_start: Application information:
I (588) cpu_start: Project name:     my-app
I (594) cpu_start: App version:      23
I (598) cpu_start: Compile time:     Oct 15 2022 20:35:02
I (604) cpu_start: ELF file SHA256:  8845c0977d48c026...
I (610) cpu_start: ESP-IDF:          v4.4.2-312-g08fa67fe92
I (617) heap_init: Initializing. RAM available for dynamic allocation:
I (624) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (630) heap_init: At 3FFB9200 len 00026E00 (155 KiB): DRAM
I (636) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (642) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (649) heap_init: At 40097584 len 00008A7C (34 KiB): IRAM
I (657) spi_flash: detected chip: generic
I (660) spi_flash: flash io: dio
I (666) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (680) trinity_main: Logger initialised
E (685) partition: No MD5 found in partition table
E (690) partition: load_partitions returned 0x105
I (695) wt_hardware: No 'hardware' partition found. Assuming version 1 hardware.
I (703) trinity_main: hardware_version=1
E (708) partition: No MD5 found in partition table
E (713) partition: load_partitions returned 0x105
I (718) wt_flash: Initialised flash errorCode=261
E (724) partition: No MD5 found in partition table
E (729) partition: load_partitions returned 0x105
ESP_ERROR_CHECK failed: esp_err_t 0x105 (ESP_ERR_NOT_FOUND) at 0x4008a854
0x4008a854: _esp_error_check_failed at C:/Dev/espressif/esp-idf/components/esp_system/esp_err.c:42

file: "./components/wylas-libs/wylas-common/src/wt_flash.cpp" line 34
func: void init_flash()
expression: nvs_flash_erase()

abort() was called at PC 0x4008a857 on core 0
0x4008a857: _esp_error_check_failed at C:/Dev/espressif/esp-idf/components/esp_system/esp_err.c:43

Backtrace: 0x40081e5a:0x3ffbbd30 0x4008a861:0x3ffbbd50 0x40091efa:0x3ffbbd70 0x4008a857:0x3ffbbde0 0x400e2431:0x3ffbbe00 0x400d8343:0x3ffbbe20 0x40197c4c:0x3ffbbeb0 0x4008e23d:0x3ffbbed0
0x40081e5a: panic_abort at C:/Dev/espressif/esp-idf/components/esp_system/panic.c:402

0x4008a861: esp_system_abort at C:/Dev/espressif/esp-idf/components/esp_system/esp_system.c:128

0x40091efa: abort at C:/Dev/espressif/esp-idf/components/newlib/abort.c:46

0x4008a857: _esp_error_check_failed at C:/Dev/espressif/esp-idf/components/esp_system/esp_err.c:43

0x400e2431: init_flash() at C:/Source/wylas/trinity/components/wylas-libs/wylas-common/src/wt_flash.cpp:34 (discriminator 1)

0x400d8343: app_main at C:/Source/wylas/trinity/main/src/main.cpp:63

0x40197c4c: main_task at C:/Dev/espressif/esp-idf/components/freertos/port/port_common.c:141 (discriminator 2)

0x4008e23d: vPortTaskWrapper at C:/Dev/espressif/esp-idf/components/freertos/port/xtensa/port.c:131

More Information.
Note that this wouldn't potentially be so bad except that the behaviour of the build system changed at some point.
Originally CONFIG_PARTITION_TABLE_MD5=y meant that the partition did NOT get an MD5 checksum.
This means that there are builds out there where the owner thinks they have always been generating an MD5 checksum, but at some point in the past they weren't. But with IDF v4.4.2 CONFIG_PARTITION_TABLE_MD5=y seems to mean 2 things:

Generate an MD5 checksum on the partition table
REQUIRE an MD5 checksum on the partition table.

This means many updates to IDF v4.4.2 will effectively brick devices.
See

https://www.esp32.com/viewtopic.php?t=12794
https://www.esp32.com/viewtopic.php?f=13&t=30094

That means, the check is done by the app and not the bootloader?

Correct

Thanks for reporting, seems the issue has been tracked in https://www.esp32.com/viewtopic.php?f=13&t=30094, will close the issue. Feel free to reopen.

I don't think this has been dealt with in a useful fashion.
Just like every other project, we will be be building the application to be sent OTA as well as flashed onto new devices.
We could build multiple configurations of the same app, one for OTA, one for new devices, but what would be the point?
The new devices would eventually received the OTAs, so they gain no benefit.
Surely the sensible approach is for
[list=]
[* the build to always generate an MD5 in the partition table if CONFIG_PARTITION_TABLE_MD5=y]
[* If CONFIG_ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS=y then to log at warn if the MD5 is missing but allow access]
[/list]

@Alvin1Zhang how do I reopen the issue?


Issue #50: Add arm(7) 32bit build option: added armv7 build logic to …

Added logic to build for armv7 to makefile.cli
My first PR, so please let me know if this is not the correct way.

This is tested on an arm device, correct? Commit looks good

Yes, tested on my arm device, with this it now compiles without error (and executes).

Excellent, thank you for the Pull Request! Merged


optimize component.Exists

The function is currently using component.List which can be expensive.
This function needs to be optimized so it doesn't require to list all components. The check should be done using just one single api call.

as of now Exists function uses List, but instead we can use client.GetDeploymentConfigFromName, if it returns the output (name of deploymentconfig) that means given component exists.
I would like to work on this :tada:


Allow for flexible nPMTs in the model functions

For example, in the event displays and in the weighted average there are some functions that work only with a 4 quadrant system.

Yes. I am aware. This is just in some of the notebooks - not in the classes. Anyhow, some of the methods can only work for a 2x2 detector, like plotting (Q_left-Q_right)/sum(Q). UNless you do something very clever of course.


fix(@embark/rpc-manager): fix duplicated accounts in rpc manager

Was caused by the fact that each rpc-modifier got its own node
accounts, but once the eth_accounts modifier is enabled, the
"node" accounts are always going to contain the custom accounts too
Now, the node accounts are set once eth_accounts is initiated, so
that every modifier is on the same page
Also implement a second layer of protection to make sure that if a
duplication happens, it is gotten rid of

Nice work @jrainville!
I've tested your changes and there is one more line that should be added on line 54 of rpc-manager/src/lib/index.ts
https://github.com/embark-framework/embark/blob/f72d6f2915d8d28b848a5ef424ca3e5a3edbb2a4/packages/plugins/rpc-manager/src/lib/index.ts#L53-L59
Add
this._nodeAccounts = updatedNodeAccounts;

I was also working on fixing this issue, and ultimately decided to fix it in a way of refactoring that does not require the above fix (and removes duplicates and infinite loops, etc) and really simplifies the code for rpc-manager quite a lot: https://github.com/embark-framework/embark/pull/2150.
I know we are trying to push v5 out, so if this PR doesn't make it in before v5, then the above fix should be added so that personal_newAccount RPC requests can be handled correctly.

Updated @michaelsbradleyjr and @emizzle


Prevent "Property not found: ..." warning when creating/importing a project

When creating a new project or importing an pre-3.1 project the engine tried to load the _global_script_class_icon project settings, which does not exist at that moment, which in turn caused a warning to be emitted.
This change mirrors how the _global_script_classes array is loaded in core/script_language.cpp:108 to prevent the warning from being generated by checking if the property exists when loading.
Fixes #23332

You're welcome :)


No icon

Hi i got a error about the icon

is there a fix?

Some news?

Where are you seeing this? Seems like a Nord error.

this one works for me.
https://s1.nordcdn.com/nordvpn/media/1.752.0/images/global/favicon/favicon-196x196.png


small change to commitabletransaction sample

moved openconnection to happen before attempting to enlisttransactions

See https://github.com/aspnet/EntityFramework.Docs/issues/738#issuecomment-394769747.

Thanks @julielerman!

itty bitty teeny tiny contribution ;)


Update http4s-circe, http4s-dsl to 0.23.13

Updates

org.http4s:http4s-circe
org.http4s:http4s-dsl

from 0.23.4 to 0.23.13.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.http4s" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, commit-count:1

Superseded by #399.


ci: build on-demand docker images for testing on devnets

This PR:

Implements a new Dockerfile designed to quickly build and release a multi-arch docker image from any branch based on a semver tag provided by developers, as requested by @PastaPastaPasta here. Example built images are here. Note that these are not yet gitian builds, but I could modify this to do gitian builds instead (probably with a performance impact?)
Implements CI that integrates with this new AWS infrastructure repository, allowing builds to execute quickly on powerful ephemeral self-hosted runners. Build time is currently around 25 minutes.
Modifies existing CI to use an improved caching mechanism, and renames the existing release Dockerfile to live alongside the new Dockerfile for building alpha releases

Please resolve conflicts

Closed in favour of #4667


Fix downloading old version

Correct latest version url from 1.2.1/ionic-v1.2.1.zip to 1.2.4/ionic-v1.2.4.zip

Thanks!


Fix oracle linux repo urls

Description
On Oracle Linux the base URL includes "Server" just like "real" RHEL. I've modified the conditional to treat Oracle just like RHEL.
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD

I couldn't get the kitchen-dokken driver to work. I did run the kitchen tests using kitchen-vagrant and they passed, including Oracle Linux.

[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] The CLA has been signed. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

@chef-supermarket I have signed the CLA before, I just happened to use a different email address on these commits than was in my GitHub account. I've added that address to GitHub now.

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

+1

Thanks for including the dokken changes as well


Error with obj.lookup_whois

Hello, i have a error with the function lookup_whois.
my code is
obj = IPWhois('<IP_ADDRESS>')

		results = obj.lookup_whois()

but results returns nothing. Why?

Working for me. Some questions:

Are you getting any errors? Can you paste what is returned/raised?
What version of Python and ipwhois are you using?
Are you performing bulk queries?
Is that same method working for other IPs?

Thanks.

@secynic Hello!
I'm working with threads (Threading) and i'm losing threads on that function (obj.lookup_whois()).
i'm doing so much queries (5.000 more or less) What can i do?
Thanks

What errors are you getting?
"The timeout not found" - Are you getting RateLimitError?

Any update? Did you resolve your issue?

Closing due to no response, and I could not replicate the issue. If you are still having this issue, please re-open and provide as much debug info as possible.


Better typing for call mutation function

The current behaviour is to return an error instead of throwing it:
https://github.com/marc-ed-raffalli/apollo-hooks-extended/blob/32b9c687fceac406e5cbc55b61850c3983ed886b/src/use-resettable-mutation.ts#L44
I guess you could argue it should throw the error the same as the upstream useMutation behaviour?
But if you decide against that then I've included updated typing that reflect the possibility to return an error.

Hi @danielholmes,
I'll merge it, as the return was already there and don't want to change the behaviour and break backward compatibility.
Thanks for your interest and helping to improve the library.

@danielholmes,
Throwing the error breaks backward compatibility compared to the return (no promise rejection left unhandled).
I'm thinking to add a condition when the error callback is provided and not throw the error. What do you think?

@marc-ed-raffalli I'm not sure. I don't ever use the error callback so I don't feel confident weighing in on it's behaviour.
It depends on your plans for this, but since it's only at an early version then I don't think it's a big deal to break backward compatibility (to match whatever the original useMutation does) and bump the major version number.

@danielholmes v1 is now available.


zos sal: allow to load a network from any customer tid

Description

allow to load a network from any customer tid
also fix a small typo in the code of load_network method

Codecov Report

:exclamation: No coverage uploaded for pull request base (development@f6605c7). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             development    #1539   +/-   ##
==============================================
  Coverage               ?   32.98%
==============================================
  Files                  ?      127
  Lines                  ?    11580
  Branches               ?        0
==============================================
  Hits                   ?     3820
  Misses                 ?     7760
  Partials               ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6605c7...5ff1451. Read the comment docs.


Real numbers extended by a point with co-countable open neighborhoods has a countable k-network.

Has a countable $k$-network + $T_1$ doesn't imply countable pseudocharacter.

I think the justification could be a little more explicit to make it clearer.  And we should also cite https://math.stackexchange.com/questions/4972337.
Let me do a few changes and then you can comment.

I think the justification could be a little more explicit to make it clearer. And we should also cite https://math.stackexchange.com/questions/4972337.
Let me do a few changes and then you can comment.

Sure, I had the doubt of if we could cite it.

The $k$-network in the proof is $\mathcal N\cup\{\{\infty\}\}$, but the double braces look funny.  That's why I described it in words. Approving.

Jajaja. I have also realized now that I didn't add the other braces.


Interpolation returns nans, when out of range

Hi
as the title suggests one of the interpolators (interp1d) returns nan, when it is supposed to interpolate outside the input range. For example here:
import jax.numpy as jnp
from interpax import interp1d

x1=jnp.arange(10)
x2=jnp.linspace(-2,12,10)
y=x1**4-x1**3
f=interp1d(x2,x1,y, method="cubic")

f is then

Array([          nan,           nan, 3.2921821e-01, 3.0444437e+01,
2.4379427e+02, 9.1913605e+02, 2.4993335e+03, 5.5782617e+03,
nan,           nan], dtype=float32)

this can be fixed with e.g. jnp.where() and jnp.isnan.
This of course isnt a big issue but it would be nicer, when the interpolation would just return zero or a fixed value instead of nans. Especially since this is the default behaviour for interpolations in numpy or scipy. (If i am not misremembering something.)
Anyhow, this is a nice package. Thanks for the work.

I realized this is already supported.


[Impeller] PaintingStyle.stroke for Text: Rendered text has an offset

Is there an existing issue for this?

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

Steps to reproduce
Hi, I am following up on #126010 and #41735 closed last month.
I am using 3.14.0-0.1.pre on beta channel and I can clearly see that outline of text is now supported on Impeller iOS using foreground in TextStyle as per doc.
However this fix introduced an offset issue on the rendered text with foreground stroke painter with both the default Flutter font (small offset) and other Google Fonts (large offset). See code example, screenshots and details below.
Expected results
This issue makes text outline impossible to use with foreground method as the goal of the outline is to be positioned exactly below the text without outline in the Stack - otherwise it is a shadow. The shadow method workaround still works but visually not great compared to a real outline stroke.
Actual results
Texts with strokes on iOS using Impeller have now an offset that can range from a few pixel if using the default Flutter font to a significant amount when using any other fonts (see Google Font Mulish in screenshots)
Code sample
import 'package:flutter/material.dart';

class TestTextOutline extends StatelessWidget {
  const TestTextOutline({super.key});

  @override
  Widget build(BuildContext context) => Material(
        color: Colors.blue,
        child: Center(
          child: Stack(
            children: [
              Text(
                "1,250 / 35,000",
                style: TextStyle(
                    fontSize: 30,
                    fontWeight: FontWeight.w700,
                    fontFamily: 'Mulish',
                    foreground: Paint()
                      ..style = PaintingStyle.stroke
                      ..strokeWidth = 1
                      ..color = Colors.black),
              ),
              const Text(
                "1,250 / 35,000",
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 30,
                  fontWeight: FontWeight.w700,
                  fontFamily: 'Mulish',
                ),
              ),
            ],
          ),
        ),
      );
}

Screenshots or Video
Using the sample code with Mulish Google Font (this applies to other Google Fonts I tested)

Using the default font (i.e. removing fontFamily)

Using the default font and zooming in so you can see the offset

Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel beta, 3.14.0-0.1.pre, on macOS 13.2.1 22D68 darwin-arm64, locale en-CA)
    • Flutter version 3.14.0-0.1.pre on channel beta at /Users/xxxxxxxxxxxxx/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 120d54d33a (6 days ago), 2023-08-17 14:10:34 -0500
    • Engine revision f613b67824
    • Dart version 3.2.0 (build 3.2.0-42.1.beta)
    • DevTools version 2.26.1

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

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

[✓] Connected device (2 available)
    • iPhone (mobile) • 00008020-xxxxxxxxxxxxx • ios          • iOS 16.4.1 20E252
    • macOS (desktop) • macos                     • darwin-arm64 • macOS 13.2.1 22D68 darwin-arm64

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

• No issues found!

Thanks for the report. Seeing the same behavior as reported on latest master and beta versions.

 master flutter doctor -v

[!] Flutter (Channel master, 3.14.0-8.0.pre.21, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.14.0-8.0.pre.21 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c328d03928 (2 hours ago), 2023-08-20 23:21:32 -0400
    • Engine revision e7d7451117
    • Dart version 3.2.0 (build 3.2.0-90.0.dev)
    • DevTools version 2.26.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

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

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

+1 to this please

@UlasAkgun Just put a 👍 to my original post above. Issues are ranked by count of 👍. Thanks!

FYI @matanlurey

I suspect I've done my math wrong on the transform.

Maybe :)
I made a little demo within the engine to validate, similar to the framework code above:

Debugging the state a bit, here is what I found:
# [stroked] x=250 y=250
# bounds: x=1.5625, y=-37.5, w=137.305, h=39.0625
canvas_.Translate({x + bounds->origin.x, y + bounds->origin.y, 0.0});

# [filled] x=250 y=250

Will continue to poke :)

Interesting discovery time!
In Skia's ParagraphImpl.cc, they perform a transform:
SkMatrix tmp(mx);
tmp.postTranslate(rec->fPos->fX - rec->fOffset.fX, rec->fPos->fY - rec->fOffset.fY);
rec->fDst->addPath(*src, tmp);

If comment out the postTranslate, I get the following output with an identity transform in dl_dispatcher.cc:
- canvas_.Translate({x + bounds->origin.x, y + bounds->origin.y, 0.0});
+ canvas_.Translate({x, y, 0.0});

...  you'll notice the first letter is offset correctly (unfortunately every subsequent letter is now on top of the first):

I'm not saying the Skia code is wrong (though, maybe?), but it could be a hint to how the offset is occurring.

Looks like I got it, I'll prepare a patch:
-    auto bounds = text_frame.GetBounds();
-    if (!bounds.has_value()) {
-      return;
-    }
+    auto& bounds = blob->bounds();
     canvas_.Save();
-    canvas_.Translate({x + bounds->origin.x, y + bounds->origin.y, 0.0});
+    canvas_.Translate({x + bounds.left(), y + bounds.top(), 0.0});

That was the offset provided in the Skia implementation:
struct Rec { SkPath* fDst; SkPoint fOffset; const SkPoint* fPos; } rec =
  {&path, {textBlob->bounds().left(), textBlob->bounds().top()},
  iter.points()};

Wow awesome!! 🥳 I wasn't expecting such a super fast resolution.
Quick question - did you try with couple of variations to see if the outline still holds?
Example of variations: google fonts such as Mulish, Noto Sans Japanese, Noto Sans Arabic, Baloo2 Reenie Beanie (trying to cater for different alphabet and manuscript font), boldness like FontWeight changes, styles FontStyle bold/italic, changing height and letterspacing. Just my 2 cents, maybe the fix is universal for sure in independent from all these variations.

Wow awesome!! 🥳 I wasn't expecting such a super fast resolution.
Quick question - did you try with couple of variations to see if the outline still holds? Example of variations: google fonts such as Mulish, Noto Sans Japanese, Noto Sans Arabic, Baloo2 Reenie Beanie (trying to cater for different alphabet and manuscript font), boldness like FontWeight changes, styles FontStyle bold/italic, changing height and letterspacing. Just my 2 cents, maybe the fix is universal for sure - independent from all these variations.

Me too! I have similar challenges with all eastern languages.


Create new solvers branch for solvers in CVXcanon work

Hi,
This is intended to be the start of a new branch to add canonicalization and solvers (first, SCS and Epsilon) behind CVXcanon.
I believe someone else needs to actually create a new branch on cvxgrp/CVXcanon repo and then I can point this pull request to that.
Thanks,
Matt

Thanks for doing this! I made a solvers branch and added you to cvxgrp, so you can modify cvxcanon in the future.

Thanks, moved to https://github.com/cvxgrp/CVXcanon/pull/22


Jaeger Span is not marked as an error when exception is handled by ControllerAdvice

Requirement - what kind of business use case are you trying to solve?
I'm using io.opentracing.contrib:opentracing-spring-jaeger-web-starter:2.0.3 in my project.
I've spotted that exceptions that are caught by ExceptionHandlers in ControllerAdvice make Jaeger spans look like there was no error at all.
Problem - what in Jaeger blocks you from solving the requirement?
Despite that exception is caught and transformed into ResponseEntity with custom error object in ControllerAdvice, Jaeger span should be processed (marked) as an error.
Proposal - what do you suggest to solve the problem or improve the existing situation?
The workaround that I applied is that I injected WebFluxSpanDecorator.StandardTags into my ControllerAdvice and decorate spans manually.
Any open questions to address
Is this behavior made by design?
If yes, is there a better way to handle this situation than described in my workaround proposal?

Please open a ticket in the instrumentation repository. This is not Jaeger issue.


Adapt samples API to allow for filesystem less upload

Feature Request
Is your feature request related to a problem? Please describe.
This is related to the PR and discussion from https://github.com/RageAgainstThePixel/ElevenLabs-DotNet/pull/25
If I want to add a sample to the voice, I have to write it to the filesystem first (see EditVoiceAsync).
It would be great if we could pass in a ReadOnlyMemory<byte> like we get out the ClipData.
Some preliminary work was already in the above mentioned PR.
Cheers, daniel

Sounds good, open to PR.
Please make it an overload, don't replace existing method.

Submitted pull request #40


MM writes an RelayEvent E0 record with an empty total_athlete_age field

This record:
E01PV      APVWM    M 2007 19 1314   07292023                            2:07.99S     1 8     6                                                6N 5005  X    N93

was written by MM 8. The total_athlete_age field is all blanks (columns 35-37). But it's marked as required, so my program blows up.
The odd thing is that this is line ~1500 in a results file, and this is the first E0 record with this problem. Before this line there are hundreds of E0 records with   0 for this field in the file, I can't figure out why this one is blanks.
@tdsmith,  could you mark RelayEvent.total_athlete_age as being optional, with override_m1=True? Thanks.

I happen to be laptopless this week so I'd really appreciate a PR and I can
merge it speedily!
On Sun, Feb 4, 2024, 11:05 Eric V. Smith @.***> wrote:

@tdsmith https://github.com/tdsmith : Any chance I could get you to
patch this and make a release? I can supply a PR if that's easier for you,
but it's a tiny change. Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/tdsmith/sdif/issues/16#issuecomment-1925786643, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABKOQNHGEK3RLGMMTKCBSTYR6PSZAVCNFSM6AAAAABCOTMKZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVG44DMNRUGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Done! See https://github.com/tdsmith/sdif/pull/17. With this change, my sample file is parsed correctly.

24.2.1.post0 solves my problem. Thanks again!


[MODEL REQUEST] Florence-2

Details of model being requested

Model name: Florence-2
Source repo link: https://huggingface.co/collections/microsoft/florence-6669f44df0d87d9c3bfb76de
Research paper link: https://arxiv.org/abs/2311.06242
Model use case: Florence-2 is an advanced vision foundation model designed for a wide range of vision and vision-language tasks. Utilizing a prompt-based approach, Florence-2 excels in image captioning, object detection, and segmentation. Its sequence-to-sequence architecture enables high performance in both zero-shot and fine-tuned settings. The model is trained on the extensive FLD-5B dataset, which includes 5.4 billion annotations across 126 million images, making it highly effective for multi-task learning.

Model Variants

Model
Model size
Model Description

Florence-2-base
0.23B
Pretrained model with FLD-5B

Florence-2-large
0.77B
Pretrained model with FLD-5B

Florence-2-base-ft
0.23B
Finetuned model on a collection of downstream tasks

Florence-2-large-ft
0.77B
Finetuned model on a collection of downstream tasks

Online demo: https://huggingface.co/spaces/gokaygokay/Florence-2

Hi @EwoutH, thank you for the feature request and details! I've added it to our list of requested models.
If you haven't already, we'd invite you to join our AI Hub Slack Community as that is where we share new models, features and talk with model developers using AI Hub.

@mestrona-3 could you give any update on model additions currently in the pipeline? I would love Florence-2, Llama 3.1 and Phi-3 to be available on the Qualcomm AI Hub.

Hi @EwoutH, we're working on many LLMs to be available via AI Hub. We'll share as soon as we can, via Slack channel


[TRI-1425] : Improve the Plain integration documentation.

Closes #657
✅ Checklist

[x] I have followed every step in the contributing guide
[x] The PR title follows the convention.
[x] I ran and tested the docs site and it works properly.

Testing
I locally deployed the Docs Website using Netlify and verified all the changes.
Video Snapshot
https://github.com/triggerdotdev/trigger.dev/assets/47860497/55b18d2e-38ac-4c2a-b4c7-19e52b9acd76

Changelog
The Plain Documentation has been updated such that it follows the same format as the GitHub Integration.
Plain Documentation is now divided into two sections.

Plain Overview and Authentication
Plain tasks

Screenshots
Overview and Authentication Page

Tasks Page

This PR exactly follows the GitHub Integration format.

An overview section has been added based on the official Plain Site.
Both the Overview and Tasks pages have been separated properly.
Comments have been added to all the code blocks for better understanding.

Please review and suggest changes, if any. Thanks.
cc: @D-K-P @matt-aitken @ericallam

Will merge this, you have followed the GitHub example and the comments have a good level of detail. I really appreciate the short video recording as well, nice way of quickly showing your changes.


Sync with template

closes #14
closes #16

The tests that have consul_enabled=true and consul_default_policy as deny are expected to fail. Fix for that will be done in issue #19


No official list of supported browser.

Hello.
Couldn't find list of browsers that are supported by ramda.
Is IE8 supported?
Best regards

I don't know that we really know for sure.  We used to have some browser tests running automatically, but that's been gone a while.
But as far as I know, we should support even very old browsers with nearly all functions.  (We might depend on Array.prototype.indexOf for one or two, which would exclude some older IEs for those functions.)

Array.prototype.indexOf is only IE9+.
What I would at least like to hear is that if there is bug in IE8, it will be treated as one to be fixed. But it looks like its IE9+


AllowedIPs not being set at all with v1.0.15

Hi,
AllowedIPs is not being set even though there is text in the field in the UI.

Hi, I had this issue as well... If you change the interface config you have to hit the save button on the upper left of the config page. Then it sets the allowedips

If you change the default allowed IP's, you have to propagate that change to peers manually by clicking "Apply Global Settings"


Add a script to generate a commit log for repo

A terminal script where given a git repository path, a command can be run to generate the commit log into a text file for the repository.

Implemented in commit https://github.com/Tomkay94/node-bin-xt/commit/45cfe129bc76788ed4686906e39557901d94a92a


Account (trial)

Hi, i am trying to deploy the full stack somleng production version using my own domain on AWS using terrraform. How to remove the limitations from account?
thanks

Hi,
We recommend reading the Getting Started Guide, getting familiar with Somleng using a trial account and then optionally getting it running on your local machine, before trying to deploy Somleng to your own AWS.
Deploying Somleng to AWS is no easy feat even with Terraform, however we also offer professional services around Somleng. Feel free to reach out to me at<EMAIL_ADDRESS>for more information.


Fix taken courses collapsible

Issue
Fixes #839 Taken courses in education section not collapsable when showGrades: true
Description
Modified education.scss to fix the issue by moving out the hidden-course component outside the table element.
Test Evidence

I removed the gap between courses and the button by moving out the ul element. Now it looks like this:


Add a Gitter chat badge to README.md

jhillyerd/go.enmime now has a Chat Room on Gitter
@jhillyerd has just created a chat room. You can visit it here: https://gitter.im/jhillyerd/go.enmime.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Merged manually


can't find external program "pwsh"

Hello,
Was looking for a simple module to find the latest windows 2012 base image for each region.
Can you help me with this? Taking the sample here and running it using cmder on windows...
In my folder I have just the two .tf files from sample and I have edited the source path to be
source   = "ebekker/cached-ami/aws"
λ terraform init
Initializing modules...

module.ami_win2016base
module.ami_nat

Initializing provider plugins...

Checking for available provider plugins on https://releases.hashicorp.com...
Downloading plugin for provider "null" (1.0.0)...
Downloading plugin for provider "aws" (1.15.0)...
Downloading plugin for provider "external" (1.0.0)...

The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

provider.aws: version = "~> 1.15"
provider.external: version = "~> 1.0"
provider.null: version = "~> 1.0"

Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Here is the output:

λ terraform apply
data.external.item_cache: Refreshing state...
data.external.item_cache: Refreshing state...
Error: Error refreshing state: 2 error(s) occurred:

module.ami_win2016base.data.external.item_cache: 1 error(s) occurred:

module.ami_win2016base.data.external.item_cache: data.external.item_cache: can't find external program "pwsh"

module.ami_nat.data.external.item_cache: 1 error(s) occurred:

module.ami_nat.data.external.item_cache: data.external.item_cache: can't find external program "pwsh"

I rely on PowerShell Core to implement the local scripting logic to store and read cached data locally.  Have you installed PowerShell Core to your local machine?
Also, you'll need to put the install location of PowerShell Core in your PATH so that simply invoking pwsh from a command prompt on Windows (or terminal console in non-Windows) will invoke the PowerShell Core shell.

Hopefully your situation is resolved, reopen and comment if not.


exit code 30 from Fast Downward

**I am encountering an issue while using your STRIPS-HGN tool for training, and I would appreciate your assistance. The specific problem is as follows:
During the execution of the training script, I encountered an error, and the log indicates that the Fast Downward planner returned exit code 30. This code suggests a critical error occurred during the translation process in Fast Downward. The relevant stack trace from the log is as follows:
_**Traceback (most recent call last):
File "train.py", line 175, in
train_wrapper(args=parse_and_validate_training_args())
File "train.py", line 166, in train_wrapper
wrap_method(
File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/wrapper.py", line 70, in wrap_method
raise exception
File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/wrapper.py", line 52, in wrap_method
wrapped_method(args, experiments_dir)
File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
return func(*args, **kwargs)
File "train.py", line 77, in train_main
] = kfold_training_data_wf.run()
File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
return func(*args, **kwargs)
File "/home/joyce/STRIPS-HGN/src/strips_hgn/workflows/k_fold_training_data.py", line 216, in run
kfold_training_data = self._generate_kfold_training_data()
File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
return func(*args, **kwargs)
File "/home/joyce/STRIPS-HGN/src/strips_hgn/workflows/k_fold_training_data.py", line 101, in generate_kfold_training_data
problem_to_state_value_pairs = generate_optimal_state_value_pairs(
File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
return func(*args, kwargs)
File "/home/joyce/STRIPS-HGN/src/strips_hgn/training_data/generate.py", line 114, in generate_optimal_state_value_pairs
state_value_pairs = _generate_optimal_state_value_pairs_for_problem(
File "/home/joyce/STRIPS-HGN/src/strips_hgn/training_data/generate.py", line 38, in _generate_optimal_state_value_pairs_for_problem
optimal_plan: Optional[List[str]] = get_optimal_actions_using_fd(problem)
File "/home/joyce/STRIPS-HGN/src/strips_hgn/planning/fast_downward_api.py", line 42, in get_optimal_actions_using_fd
raise RuntimeError(
RuntimeError: Something went wrong, exit code 30 from Fast Downward (http://www.fast-downward.org/ExitCodes)
From my initial investigation, potential causes include:
Issues with the Fast Downward configuration or version.
Resource limitations during execution.

I have taken the following steps to resolve the issue:
Ensured that Fast Downward is updated to the latest version and reinstalled.
Tested with simplified problem instances.

Despite these efforts, the issue persists. Could you provide any additional guidance or potential solutions? Your assistance would be greatly appreciated.
Thank you for your time and support.**

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

Hi,
Which PDDL flies are you trying? If they're not the ones in this repo, yhey should be valid and you should make sure you can run the normal version of Fast Downward on it.
Also please make sure you use our custom version of Fast Downward (forked from a long time ago): https://github.com/williamshen-nz/fast_downward
git clone https://github.com/williamshen-nz/fast_downward.git src/fast_downward
python src/fast_downward/build.py

I am training with PDDL file that I obtained from the benchmark of STRIPS-HGN. This file works fine when tested with the standard version of the FastDownward planner, but I am running into an error when attempting to train with STRIPS-HGN(using your custom version). Specifically, I received an error code 30 as same as the error above. Could you please help me understand what might be causing this issue and how I might resolve it? Your assistance would be greatly appreciated.

Can you please provide the command you ran so I can reproduce? Otherwise it is difficult to debug.

thank you for your answer, here are some details:
(base) joyce@JOYCE:~/STRIPS-HGN/src$ conda activate stripshgn
(stripshgn) joyce@JOYCE:~/STRIPS-HGN/src$ python train.py -d domain.pddl -p task01.pddl task02.pddl task03.pddl task04.pddl task05.pddl task06.pddl task07.pddl task08.pddl task09.pddl task10.pddl task11.pddl task12.pddl task13.pddl task14.pddl task15.pddl task16.pddl task17.pddl task18.pddl task19.pddl task20.pddl -t 100000

2024-09-01 17:30:43 strips_hgn.utils.logging_setup INFO     Writing logs to /home/joyce/STRIPS-HGN/results/train-strips-hgn-2024-09-01T17:30:43.343019/strips_hgn.log
2024-09-01 17:30:43 strips_hgn.utils.helpers INFO     Experiment results directory: /home/joyce/STRIPS-HGN/results/train-strips-hgn-2024-09-01T17:30:43.343019
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 pyperplan.grounding INFO     Relevance analysis removed 0 facts
2024-09-01 17:30:43 strips_hgn.planning.utils INFO     Generated 20 STRIPS Problems
2024-09-01 17:30:43 strips_hgn.utils.timer INFO     Timer GenerateSTRIPSProblemsTime stopped. Accumulated time: 0.0183s.
2024-09-01 17:30:43 strips_hgn.workflows.training_data INFO     Max number of EFF+ (receivers) = 3
2024-09-01 17:30:43 strips_hgn.workflows.training_data INFO     Max number of PREs (senders) = 3
2024-09-01 17:30:43 root         INFO     Running translator.
2024-09-01 17:30:43 root         INFO     translator stdin: None
2024-09-01 17:30:43 root         INFO     translator time limit: None
2024-09-01 17:30:43 root         INFO     translator memory limit: None
2024-09-01 17:30:43 root         INFO     translator command line string: /home/joyce/miniconda3/envs/stripshgn/bin/python /home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/translate.py domain.pddl task01.pddl --sas-file output.sas
Parsing...
Parsing: [0.000s CPU, 0.000s wall-clock]
Normalizing task... [0.000s CPU, 0.000s wall-clock]
Instantiating...
Generating Datalog program... [0.000s CPU, 0.000s wall-clock]
Normalizing Datalog program...
Normalizing Datalog program: [0.000s CPU, 0.001s wall-clock]
Preparing model... [0.010s CPU, 0.000s wall-clock]
Generated 21 rules.

Finding invariants...
10 initial candidates
b'Traceback (most recent call last):\n  File "/home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/translate.py", line 734, in <module>\n    main()\n  File "/home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/translate.py", line 705, in main\n    sas_task = pddl_to_sas(task)\n  File "/home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/translate.py", line 547, in pddl_to_sas\n    groups, mutex_groups, translation_key = fact_groups.compute_groups(\n  File "/home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/fact_groups.py", line 110, in compute_groups\n    groups = invariant_finder.get_groups(task, reachable_action_params)\n  File "/home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/invariant_finder.py", line 132, in get_groups\n    invariants = sorted(find_invariants(task, reachable_action_params))\n  File "/home/joyce/STRIPS-HGN/src/fast_downward/builds/release/bin/translate/invariant_finder.py", line 100, in find_invariants\n    start_time = time.clock()\nAttributeError: module \'time\' has no attribute \'clock\'\n'
translate exit code: 30

Driver aborting after translate
2024-09-01 17:30:43 strips_hgn.utils.timer INFO     Timer KFoldTrainingDataWorkflow.GenerateTrainingDataTime stopped. Accumulated time: 0.04582s.
2024-09-01 17:30:43 strips_hgn.utils.timer INFO     Timer KFoldTrainingDataWorkflow.TotalTime stopped. Accumulated time: 0.046s.
2024-09-01 17:30:43 strips_hgn.utils.timer INFO     Timer TrainingDriverMethodTime stopped. Accumulated time: 0.06448s.
2024-09-01 17:30:43 strips_hgn.utils.wrapper ERROR    An unexpected error occurred.
Traceback (most recent call last):
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/wrapper.py", line 52, in wrap_method
    wrapped_method(args, experiments_dir)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "train.py", line 77, in train_main
    ] = kfold_training_data_wf.run()
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/workflows/k_fold_training_data.py", line 216, in run
    kfold_training_data = self._generate_kfold_training_data()
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/workflows/k_fold_training_data.py", line 101, in _generate_kfold_training_data
    problem_to_state_value_pairs = generate_optimal_state_value_pairs(
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/training_data/generate.py", line 114, in generate_optimal_state_value_pairs
    state_value_pairs = _generate_optimal_state_value_pairs_for_problem(
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/training_data/generate.py", line 38, in _generate_optimal_state_value_pairs_for_problem
    optimal_plan: Optional[List[str]] = get_optimal_actions_using_fd(problem)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/planning/fast_downward_api.py", line 42, in get_optimal_actions_using_fd
    raise RuntimeError(
RuntimeError: Something went wrong, exit code 30 from Fast Downward (http://www.fast-downward.org/ExitCodes)
2024-09-01 17:30:43 strips_hgn.utils.metrics INFO     Saved MetricsLogger JSON to /home/joyce/STRIPS-HGN/results/train-strips-hgn-2024-09-01T17:30:43.343019/train_metrics.json
Check /home/joyce/STRIPS-HGN/results/train-strips-hgn-2024-09-01T17:30:43.343019/strips_hgn.log if error traceback is not listed
Traceback (most recent call last):
  File "train.py", line 175, in <module>
    train_wrapper(args=parse_and_validate_training_args())
  File "train.py", line 166, in train_wrapper
    wrap_method(
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/wrapper.py", line 70, in wrap_method
    raise exception
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/wrapper.py", line 52, in wrap_method
    wrapped_method(args, experiments_dir)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "train.py", line 77, in train_main
    ] = kfold_training_data_wf.run()
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/workflows/k_fold_training_data.py", line 216, in run
    kfold_training_data = self._generate_kfold_training_data()
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/workflows/k_fold_training_data.py", line 101, in _generate_kfold_training_data
    problem_to_state_value_pairs = generate_optimal_state_value_pairs(
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/utils/timer.py", line 67, in wrapped_timer
    return func(*args, **kwargs)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/training_data/generate.py", line 114, in generate_optimal_state_value_pairs
    state_value_pairs = _generate_optimal_state_value_pairs_for_problem(
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/training_data/generate.py", line 38, in _generate_optimal_state_value_pairs_for_problem
    optimal_plan: Optional[List[str]] = get_optimal_actions_using_fd(problem)
  File "/home/joyce/STRIPS-HGN/src/strips_hgn/planning/fast_downward_api.py", line 42, in get_optimal_actions_using_fd
    raise RuntimeError(
RuntimeError: Something went wrong, exit code 30 from Fast Downward (http://www.fast-downward.org/ExitCodes)

thank you again！

Thanks for the info. I'm not sure which domain and task PDDL files you are using so it is difficult to determine what is happening. All the benchmark problems were working when I tested them a few years ago.
You should make sure you can run the scripts in the experiments folder. If they don't work, it might be a platform specific issue. You may need to modify a working version of Fast Downward to output plans, like how I did in the first place. You can do this in the STRIPS-HGN repo around here: https://github.com/williamshen-nz/STRIPS-HGN/blob/master/src/strips_hgn/planning/fast_downward_api.py#L48

I wanted to let you know that the issue has been resolved. I modified the find_invariants function in invariant_finder.py to replace time.clock() with time.process_time(), which fixed the problem.
Thank you so much for your guidance and support. Your suggestions were instrumental in resolving the issue, and I greatly appreciate your assistance. I also want to express my support and admiration for your research work！

No problem - glad to hear you sorted it out!


Instance Templates

Instance Templates are still missing from this library.

Instance templates should now be available in the generated version of the API 👍


[求助/Help]生成X-Subject-Token抱错了401

`[root@IT-Cloudpods ~]#  climc --debug --os-access-key 8xxxxxdf671xxxx73d207a7  --os-secret-key 'xxxQjM5eEs4ZE1xxxxxxxxxxxxxxxxxxxxxxxg==' region-list
POST /v3/auth/tokens HTTP/1.1
Host: xxxxxxx:30500
User-Agent: yunioncloud-go/201708
Content-Length: 573
Accept: /
Accept-Encoding: *
Content-Type: application/json
CURL: curl -k -X 'POST' -d '{"auth":{"context":{"source":"cli"},"identity":{"access_key_secret":"{"access_key":"811df671bc6347c1839fc54a73d207a7","algorithm":"AWS4-HMAC-SHA256","location":"cn-beijing","request":"AWS4-HMAC-SHA256\n20240827T023646Z\n20240827/cn-beijing/s3/aws4_request\n770be80c81f89c7e5b44e7ee38c3b63e87f576e8eb2bcc263e7f51c1f11a7e71","sign_date":"2024-08-27T02:36:46.000000Z","signature":"2e1549940864146ff918f7f8c3b07bdb1eaaece3342525bd6d7055f5973ffe7f","signed_headers":["date","host","x-amz-content-sha256","x-amz-date"]}","methods":["aksk"]}}}' -H 'Accept: /' -H 'Accept-Encoding: *' -H 'Content-Length: 573' -H 'Content-Type: application/json' -H 'User-Agent: yunioncloud-go/201708' 'https://<IP_ADDRESS>:30500/v3/auth/tokens'
HTTP/1.1 401 Unauthorized
Content-Length: 150
Content-Type: application/json
Date: Tue, 27 Aug 2024 02:36:46 GMT
Server: Yunion AppServer/Go/2018.4
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Origin
X-Frame-Options: SAMEORIGIN
X-Request-Host-Id: ixt062uFJ-R7mK0ox6WaOzVcyJc=
X-Request-Id: 5aa61a
X-Xss-Protection: 1; mode=block
X-Yunion-Peer-Service-Name: identity
X-Yunion-Remote-Addr: <IP_ADDRESS>:40878
X-Yunion-Span-Name: auth_tokens_v3
Response body: {"class":"UnauthorizedError","code":401,"details":"unauthorized authUserByAccessKeyV3: Verify: signature mismatch","time":"2024-08-27T10:36:46+08:00"}
this._verifyKeySecret: {"error":{"class":"UnauthorizedError","code":401,"details":"unauthorized authUserByAccessKeyV3: Verify: signature mismatch","request":{"body":"{"auth":{"context":{"source":"cli"},"identity":{"access_key_secret":"{\"access_key\":\"811df671bc634...]}","methods":["aksk"]}}}","headers":{"Content-Length":"573","Content-Type":"application/json","User-Agent":"yunioncloud-go/201708"},"method":"POST","url":"https://xxxxxxxx:30500/v3/auth/tokens"}}}
`

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

key写错了


One help

Hi!
When I run CG on nchd dataset, and I download the dataset and put them in the directory, one error occurs:
FileNotFoundError: [Errno 2] No such file or directory: 'data/nhcd/nhcd/consonants/all_domains.txt'
where is the all_domains.txt?

all_domains.txt really is just a listing of all user ids from 001 to 046.
You can just replace the file reading in this line with this line: domain_ids = ["%03d" % _ for _ in range(1, 47)].

all_domains.txt really is just a listing of all user ids from 001 to 046.
You can just replace the file reading in this line with this line: domain_ids = ["%03d" % _ for _ in range(1, 47)].


[BEAM-11659] Implement Pub/Sub Lite Table Provider

Implement a TableProvider for Pub/Sub Lite, enabling it to be used in BeamSQL

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

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

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @amaliujia

Run SQL_Java11 PreCommit

Run SQL PreCommit

Run Java PreCommit

Run Java_Examples_Dataflow PreCommit

Run Java_Examples_Dataflow_Java11 PreCommit

Run SQL_Java11 PreCommit

cc @robinyqiu

I will try to start review this PR this week.

Run Java PreCommit

Run Java_Examples_Dataflow PreCommit

cc @robinyqiu
I think this PR is in good shape (just have one open comment left). So if Robin has no other comments I can merge this PR after the open comment is addressed.

retest this please

I took a quick look and this PR LGTM. We can merge after tests pass.

The failed tests seem are not flaky:
java.lang.NoSuchMethodError: 'void com.sun.tools.javac.util.Log.error(com.sun.tools.javac.util.JCDiagnostic$DiagnosticPosition, java.lang.String, java.lang.Object[])'

This looks to be failing when using java 11 with gradle? When using java 8 with gradle, :sdks:java:core:javadoc fails with confusing errors. Going to try rebasing

https://issues.apache.org/jira/browse/BEAM-11921

I am trying to triage BEAM-11921 to get it solved.

BEAM-11921 might be get fixed today.

@dpcollins-google can you rebase? https://github.com/apache/beam/pull/14148 should fix the failing tests.


it doesn't work at all when use with tsconfig.

Hi.
I have followed the step to use in README.md
tsconfig.extend.json
{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react",
    "noImplicitAny": true,
    "baseUrl": "src",
    "paths": {
      "@/*": ["./src/*"]
    },
    "experimentalDecorators": true,
    "typeRoots": ["./types"]
  },
  "include": ["src"]
}

tsconfig.json
{
  "extends": "./tsconfig.extend.json",
  "compilerOptions": {}
}

craco.config.js
const CracoLessPlugin = require('craco-less');
const CracoAlias = require('craco-alias');

module.exports = {
  plugins: [
    {
      plugin: CracoAlias,
      options: {
        source: "tsconfig",
        baseUrl: "./src",
        tsConfigPath: "./tsconfig.extend.json"
      }
    },
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            modifyVars: {'@primary-color': '#1DA57A'},
            javascriptEnabled: true,
          },
        },
      },
    },
  ],
};

information of DEBUG
here is the information when debug=true
Initial options:

{
  "debug": true,
  "source": "tsconfig",
  "baseUrl": "./",
  "tsConfigPath": "./tsconfig.extend.json"
}

Normalized options:

{
  "source": "tsconfig",
  "baseUrl": "./",
  "tsConfigPath": "./tsconfig.extend.json",
  "debug": true
}

Aliases:

{
  "@": "/path/to/my/project/src"
}

Webpack Config:

{
  "react-native": "react-native-web",
  "@": "/path/to/my/project/src"

Useage
// it should import from './src/store'
import store from '@/store';

tsconfig.json should be right here. The editor can recognize correctly. But craco doesn't
any helps are welcome. thanks for your all ❤

I have the same issue. Setting everything up as it was indicating in the readme.
I'm working on TSC version 3.9.7 and both VSCode and when trying to run cannot find the module.
VSCode indicate error TS2307
I'm on craco version 5.6.4 and craco-alias 2.1.1

@nir-c2c Can you provide debug information? (debug: true in options)

@nir-c2c I see you are using react-native, but what starter is it? create-react-native-app? If so, how did you get debug message? I can't do this with either expo start or expo web.
And, as I see:

create-react-native-app needs babel plugin (resolver) as mentioned here
There is no src directory in their starting boilerplate. So maybe you accidentally left ./src in tsconfig.extend.json or somewhere else.
You might have forgotten to add /* to end of folders alias names in tsconfig.extend.json. It should be specified for directories.

But below I see the following:

The following changes are being made to your tsconfig.json file:
- compilerOptions.paths must not be set (aliased imports are not supported)```

As I know expo, it won't delete nothing from tsconfig.json. This looks very strange to me. Are you using a regular create-react-app with react-native?

hi @risenforces ,
thank you for your fast reply!
This is a project I have inherited from a developer that is no longer at the company.
It is not a phone application so i'm not sure why there is react native app in here.
Its a web base application that runs on aws amplify.
here is the tsconfig.extend.json I'm currently using (i'm changing things around to see if I can get it to work)
  "compilerOptions": {
    "baseUrl": "src",
    "paths": {
      "@config": ["./src/config"],
      "@awsExports": ["./src/aws-exports.js"],
      "@store": ["./src/store"],
      "@actions": ["./src/store/actions"],
      "@icons": ["./src/icons"],
      "@components": ["./src/components"],
      "@utils": ["./src/utils"],
      "@gql": ["./src/gql"]
    }
  }
}```

I will try to add the `/*` for folders

@nir-c2c You don't need to specify ./src twice. baseUrl is enough. With these fixes, it should look like this:
"compilerOptions": {
  "baseUrl": "src",
  "paths": {
    "@store/*": ["./store/*", "./store"]
  }
}

("./store" is optional, it can be useful for vscode)

@risenforces I should also mention that the project works fine if it is js (which is what we had so far), but I want to move it to typescript, and that is where it is stop working

I have the same issue here. It works in JS but not in TS.

@nir-c2c @WeCheung I will make demo project, give me a few hours.

Strange it or not, but I'm struggling with this issue a few months for my work-related project (so I may not share some parts of code due to NDA). I mean it doesn't break my regular builds, but as perfectionist I would like to avoid that annoying warning compilerOptions.paths must not be set (aliased imports are not supported). And I also don't like that CRA override JSON files.
Anyhow. I have CRA-based react app, using craco and craco-alias. My setup seems to be very similar as described here in issue.
I searched a few resources, and stuck on this from 2019: https://github.com/timarney/react-app-rewired/issues/375#issuecomment-474806096 as it looks most descriptive about issue. I tried also tsconfig-paths-webpack-plugin extending Craco - didn't help (seemed to be not even taken into consideration).
Looks like @risenforces knows something more in this topic :)
PS.
My tsconfig.json
{

  "extends": "./tsconfig.paths.json",  // ATTENTION
  // this line was in my initial JSON file, then I removed it and warning disappeared. BUT !!!

  "compilerOptions": {
    "target": "es6",
    "module": "esnext",
    "jsx": "react",
    "rootDir": "src",
    "outDir": "dist",
    "strict": true,
    "noImplicitAny": true,
    "noUnusedLocals": false,
    "moduleResolution": "node",
    "esModuleInterop": true,
    "inlineSourceMap": true,
    "inlineSources": true,
    "checkJs": false,
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "allowSyntheticDefaultImports": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true
  },
  "exclude": [
    "node_modules",
    "dist"
  ],
  "include": [
    "src"
  ]
}

My tsconfig.paths.json
{
  "compilerOptions": {
    "traceResolution": false,
    "baseUrl": "./src",
    "paths": {
      "@assets/*": [
        "./assets/*"
      ],
      "@styles/*": [
        "./styles/*"
      ],
      "@modules/*": [
        "./modules/*"
      ],
      "@app/config": [
        "./app-config.ts"
      ],
      "@routing/*": [
        "./routing/*"
      ]
    }
  }
}

I received this setup from previous Development team, and looking to why baseUrl is set twice to ./src I'm interesting if this not an issue here. yes, i really have src folder, but still wondering.
Then I looked to my craco.config.js, and I realized, that craco-alias does already handle aliasing:
const CracoAlias = require("craco-alias");
const { ESLINT_MODES } = require("@craco/craco");

module.exports = {
    eslint: {
        mode: ESLINT_MODES.extends,
        configure: require('./.eslintrc.js')
    },
    jest: {
        configure: require('./jest.config.js')
    },
    plugins: [
        {
            plugin: CracoAlias,
            options: {
                source: "tsconfig",
                baseUrl: "./src",
                tsConfigPath: "./tsconfig.paths.json",
                // debug: true
            }
        }
    ]
};

So, I removed line "extends": "./tsconfig.paths.json",   from tsconfig.json and warning disappeared.
I verified it running npm run test, via Git Bash, VSCode (meaning PowerShell, yes Windows), and it WORKS now (no warning)
I also have VSTudio Pro, which turned out looks towards new config badly:

But I do not rely on VSTudio much in regards Frontend. So it's rather OK for now.
BUT, back to VSCode or Git Bash - npm start didn't work then:

Meaning, that if I remove line from tsconfig.json running application built in TypeScript doesn't use CracoAlias setup.
So, @risenforces if you know how to avoid such "toggle" issue (change "here" bad things happen "there" and vice versa.)
BTW. Here is my package.json just in case:
{
  "name": "NDA",
  "private": true,
  "homepage": "/",
  "scripts": {
    "start": "craco start",
    "start2": "react-app-rewired start",
    "build": "cross-env craco build",
    "build:prod": "cross-env NODE_ENV=production craco build",
    "test": "cross-env NODE_ENV=development CI=true craco test --no-watch",
    "test:update": "cross-env NODE_ENV=development CI=true craco test -u --no-watch",
    "test:coverage": "cross-env NODE_ENV=development CI=true craco test --no-watch --testResultsProcessor=jest-junit --coverage",
    "test:junit": "cross-env NODE_ENV=development CI=true craco test --no-watch --testResultsProcessor=jest-junit",
    "server": "cross-env PORT=3333 NODE_ENV=development node server.js",
    "eject": "craco eject",
    "lint": "eslint --ext .js,.jsx,.ts,.tsx src/ --max-warnings 0",
    "lint:fix": "npm run lint -- --fix"
  },
  "devDependencies": {
    "@types/classnames": "2.2.9",
<EMAIL_ADDRESS>"1.4.1",
    "@types/date-fns": "2.6.0",
    "@types/enzyme": "3.10.5",
    "@types/express": "4.17.1",
    "@types/file-saver": "2.0.1",
    "@types/fs-extra": "8.0.0",
    "@types/graphql": "14.5.0",
    "@types/history": "4.7.3",
    "@types/jest": "25.1.2",
    "@types/jsdom": "12.2.4",
    "@types/jwt-decode": "2.2.1",
<EMAIL_ADDRESS>"4.5.6",
<EMAIL_ADDRESS>"4.4.6",
<EMAIL_ADDRESS>"4.5.5",
<EMAIL_ADDRESS>"3.0.6",
<EMAIL_ADDRESS>"4.6.6",
    "@types/luxon": "1.15.2",
    "@types/query-string": "6.3.0",
    "@types/react": "16.9.3",
    "@types/react-datepicker": "2.9.4",
    "@types/react-dom": "16.9.1",
    "@types/react-foundation": "0.9.6",
    "@types/react-router": "5.1.1",
    "@types/react-router-dom": "5.1.0",
    "@types/react-select": "3.0.4",
    "@types/react-textarea-autosize": "4.3.5",
    "@types/react-tooltip": "3.11.0",
    "@types/shortid": "0.0.29",
    "@types/validator": "10.11.3",
    "@types/webpack": "4.39.2",
    "@typescript-eslint/eslint-plugin": "^2.34.0",
    "@typescript-eslint/parser": "^2.34.0",
    "craco-alias": "2.1.0",
    "cross-env": "6.0.0",
    "enzyme": "3.11.0",
    "enzyme-adapter-react-16": "1.15.2",
    "enzyme-to-json": "3.4.4",
    "eslint": "^6.8.0",
    "eslint-config-airbnb-typescript": "^7.2.1",
    "eslint-config-prettier": "^6.10.1",
    "eslint-import-resolver-typescript": "^2.0.0",
    "eslint-plugin-import": "^2.22.0",
    "eslint-plugin-json": "^2.1.1",
    "eslint-plugin-jsx-a11y": "^6.3.1",
    "eslint-plugin-prettier": "^3.1.4",
    "eslint-plugin-react": "^7.20.3",
    "eslint-plugin-react-hooks": "^3.0.0",
    "jest-junit": "^11.0.1",
    "node-sass": "^4.14.1",
    "prettier": "^1.19.1",
    "react-app-rewire-alias": "^0.1.6",
    "react-app-rewired": "^2.1.6",
    "react-scripts": "^3.4.1",
    "ts-jest": "^25.5.1",
    "tsconfig-paths-webpack-plugin": "^3.2.0",
    "typescript": "^3.9.6"
  },
  "dependencies": {
    "@craco/craco": "^5.6.4",
    "@types/react-tooltip": "3.11.0",
    "apollo-cache-inmemory": "1.6.3",
    "apollo-client": "2.6.4",
    "apollo-link": "1.2.13",
    "apollo-link-error": "1.1.12",
    "apollo-link-http": "1.5.16",
    "apollo-link-retry": "2.2.15",
    "axios": "0.19.2",
    "axios-auth-refresh": "2.2.1",
    "axios-retry": "3.1.2",
    "classnames": "2.2.6",
    "cleave.js": "1.5.3",
    "create-react-app": "^3.4.1",
    "custom-event-polyfill": "1.0.7",
    "date-fns": "2.4.1",
    "date-fns-tz": "1.0.8",
    "express": "4.17.1",
    "fetch-ie8": "1.5.0",
    "file-saver": "2.0.2",
    "foundation-sites": "6.5.3",
    "fs-extra": "8.1.0",
    "graphql": "14.5.8",
    "graphql-tag": "2.10.1",
    "history": "4.10.1",
    "jsdom": "15.1.1",
    "jwt-decode": "2.2.0",
    "lodash": "^4.17.19",
    "lodash.clonedeep": "4.5.0",
    "lodash.get": "4.4.2",
    "lodash.isequal": "4.5.0",
    "lodash.isobject": "3.0.2",
    "lodash.transform": "4.6.0",
    "luxon": "1.19.3",
    "moment": "2.24.0",
    "query-string": "6.8.3",
    "react": "16.10.1",
    "react-apollo": "3.1.1",
    "react-apollo-hooks": "0.5.0",
    "react-async-hook": "3.6.1",
    "react-circular-progressbar": "^2.0.3",
    "react-datepicker": "2.10.0",
    "react-dom": "16.10.1",
    "react-foundation": "0.9.6",
    "react-hot-loader": "4.12.14",
    "react-router": "5.1.1",
    "react-router-dom": "5.1.1",
    "react-select": "3.0.5",
    "react-test-renderer": "16.12.0",
    "react-textarea-autosize": "7.1.2",
    "react-toastify": "5.4.0",
    "react-tooltip": "^4.2.7",
    "replace-json-property": "1.4.3",
    "shortid": "2.2.15",
    "url-search-params-polyfill": "7.0.0",
    "validator": "11.1.0",
    "xlsx": "0.15.1"
  },
  "optionalDependencies": {
    "newrelic": "^6.11.0"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "jest-junit": {
    "outputName": "jest.xml"
  }
}

@nir-c2c @alundiak @WeCheung the solution is:
// tsconfig.extend.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "paths": {
      "@root": ["./"],
      "@root/*": ["./*"],
      "@lib": ["./lib"],
      "@lib/*": ["./lib/*"],
      "@baz": ["./baz.ts"],
      "@boo": ["./boo.tsx"]
    }
  }
}

The problem was that the TS did not resolve the directory index (@lib for example), but resolved any nested modules. By specifying both cases in tsconfig.extend.json, everything works just fine.
Working example:
https://github.com/risenforces/craco-alias-ts-demo

@risenforces in my case, I added changes as u suggested, but it doesn't help.  besides, if I clear tsconfig.json.compilerOprions = {}, then after npm start meaning craco re-start, json file again populated with default code.
> NDA@ test C:\Users\lundiaa\source\repos\NDA\src\NDA-Frontend
> cross-env NODE_ENV=development CI=true craco test --no-watch

Your tsconfig.json has been populated with default values.

Here is how my "extend" looks:
{
  "compilerOptions": {
    "baseUrl": "./src",
    "paths": {
      "@assets": [        "./assets"      ],
      "@assets/*": [        "./assets/*"      ],

      "@styles": [        "./styles"      ],
      "@styles/*": [        "./styles/*"      ],

      "@modules": [        "./modules"      ],
      "@modules/*": [        "./modules/*"      ],

      "@routing": [        "./routing"      ],
      "@routing/*": [        "./routing/*"      ],

      "@app/config": [        "./app-config.ts"      ]
    }
  }
}

Ideas?

@alundiak Is it just a warning? Do imports work?

@risenforces Yes, sure, as I mentioned before. My React/TS application code builds OK, and I'm 99% OK, but 1% my perfectionism tells me - get rid of warning :(

@alundiak I don't think there is a way to remove the warning. CRA writes it, but in fact it does nothing.

@risenforces, Thank you so much for your detail help and putting the example together.
I made sure to follow your example and even downgraded my typscript to the version you had in the example but with no luck. It still doesn't recognize the directories. I have downloaded your example your example works just fine, so i'm not sure what is wrong with my setup and why it doesn't like it.

@nir-c2c @alundiak @WeCheung the solution is:
// tsconfig.extend.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "paths": {
      "@root": ["./"],
      "@root/*": ["./*"],
      "@lib": ["./lib"],
      "@lib/*": ["./lib/*"],
      "@baz": ["./baz.ts"],
      "@boo": ["./boo.tsx"]
    }
  }
}

The problem was that the TS did not resolve the directory index (@lib for example), but resolved any nested modules. By specifying both cases in tsconfig.extend.json, everything works just fine.
Working example:
https://github.com/risenforces/craco-alias-ts-demo

Hi @risenforces
base on your example: https://github.com/risenforces/craco-alias-ts-demo , I have upgrade react-scripts packages to 4.0.0, it show follow errors, and then I downgrade to 3.4.3 version, it works, looks 4.0.0 react-scripts have some internal change, Can you help on this, Thanks.
`yarn run v1.22.4
$ craco start
craco:  *** Cannot find ESLint loader (eslint-loader). ***
D:\gitrepos\craco-alias-ts-demo\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:231
appTsConfig.compilerOptions[option] = suggested;
^
TypeError: Cannot add property noFallthroughCasesInSwitch, object is not extensible
at verifyTypeScriptSetup (D:\gitrepos\craco-alias-ts-demo\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:231:45)
at Object. (D:\gitrepos\craco-alias-ts-demo\node_modules\react-scripts\scripts\start.js:31:1)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at start (D:\gitrepos\craco-alias-ts-demo\node_modules@craco\craco\lib\cra.js:202:5)
at Object. (D:\gitrepos\craco-alias-ts-demo\node_modules@craco\craco\scripts\start.js:27:1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`


BranchLocker deadlocks lakeFS

When using branch locker 2 DB connections are needed, one for the lock and the other for the actual action.
In some cases, when the system is under high load, some thread acquires the lock, but fails to create another connection to the DB since they were exhausted (by other requests. Default is 25 connections)

Here's some python code that managed to get me into this situation:
import time
import concurrent.futures

import bravado
from bravado.requests_client import RequestsClient
from bravado.client import SwaggerClient

def get_client(addr, access_key, secret_key, proto='http', spec_path='/swagger.json'):
    """
    Create a swagger client and return it
    """
    http_client = RequestsClient()
    http_client.set_basic_auth(addr, access_key, secret_key)
    client = SwaggerClient.from_url(
        f'{proto}://{addr}{spec_path}',
        http_client=http_client,
        config={'validate_swagger_spec': False})
    return client

def create_branch(client, repository, src, name):
    """
    Create a branch from src
    """
    result = client.branches.createBranch(
        repository=repository, branch={'name': name, 'source': src}).response().result
    if len(result) != 64:
        raise ValueError(f'could not create branch: {result}')

def delete_branch(client, repository, name):
    """
    delete branch
    """
    client.branches.deleteBranch(repository=repository, branch=name).response()

def main():
    """
    Abuse lakeFS
    """
    total_branches = 1000000
    client = get_client('<IP_ADDRESS>:8000', 'AKIAJHXRKUY5KZS4TEQQ', 'YlUfMEH+uI2vkmuWqAvPoeEZNghBV87c5ir80fTh')

    # Delete a lot of branches
    start = time.time()
    with concurrent.futures.ThreadPoolExecutor(max_workers=500) as executor:
        # Dispatch
        creates = [executor.submit(delete_branch, client, 'repo1', f'auto-{i}') for i in range(1, total_branches+1)]
        for future in concurrent.futures.as_completed(creates):
            try:
                future.result()
            except Exception as exc:
                print(f'got exception on delete: {exc}')
    print(f'done deleting {total_branches} branches in {time.time()-start} seconds (500 workers)')

if __name__ == '__main__':
    main()

It basically deletes a whole lot of branches, issuing up to 500 requests in parallel. it pretty much guarantees this will happen.
This bug is critical IMO, it quickly drains all available connections from the PG pool, blocking any action on any branch from continuing. Server appears as if it is not responding, but stays up, so these resources are never freed by anything.


Show "deselect all" when there's more than one selection

It just happens if you have selected all, but if you have two random selections in the table because you clicked without noticing, it would be awesome that "deselect all" appeared on the top bar.

That sounds reasonable, fixed in referenced commit


[C++] Allow interceptor to modify serialized send and recv message

Is your feature request related to a problem? Please describe.
I have the need to (separately, in addition to TLS transport) encrypt the payload sent between a gRPC client and server. Using grpc-java it is trivial to use an interceptor to modify the marshaller/serializer of the request to first marshall/serialize and then encrypt the bytes (or decrypt the bytes and then unmarshal/deserialize to a message).
Using C++ it appears I can only modify the non-serialized send message via ModifySendMessage; there is no way to modify the serialized send message, or modify the recv message at all.
Describe the solution you'd like
A way for a C++ interceptor to get and modify the serializer of the message, similar to what can be done in grpc-java.
Describe alternatives you've considered
A way for a C++ interceptor to modify both the serialized send and recv message. E.g. ModifySerializedSendMessage, GetSerializedRecvMessage, ModifySerializedRecvMessage.

Yash and Esun, I'm not sure how feasible it is for us to provide a way to do this via the interceptor API.  Is there a reasonable alternative for this use case, such as maybe providing custom SerializationTraits?

This is interesting. Some quick comments -
The ByteBuffer returned by GetSerializedSendMessage is modifiable so I believe that should satisfy the needs on the send side.
On the receive side, there is GetRecvMessage, but the message has already been deserialized at that point.

One way I can think of to achieve this without using the interception API is to use the generic async API with ByteBuffer. That way the application is completely responsible for serialization and deserialization.

On the interception API side, if we want to do this, I think we can do this by changing deserialization to only be done in a lazy manner and then provide a GetSerializedRecvMessage() method to modify the serialized recv message.

Is there a reasonable alternative for this use case, such as maybe providing custom SerializationTraits?

I think that might be the cleanest way to do this. (Provide a custom SerializationTraits for that message type.)
This is also what tensorflow is doing - https://github.com/tensorflow/tensorflow/blob/86fb36271f9068f84ddcecae74fe0b7df9ce83ee/tensorflow/core/distributed_runtime/rpc/grpc_worker_service_impl.h#L33

@cfredri4 Do you think that satisfies your purpose?

Thanks for the suggestions! I did not know about custom SerializationTraits; it sounds like that could work but it would unfortunately be a bit... cumbersome. This would be used with a lot (hundreds) of different message types/clients, and so hence the desire to have one single interceptor that could be added everywhere.
But that GetSerializedSendMessage returns a modifiable ByteBuffer solves half the problem! Would a similar GetSerializedRecvMessage be considered a good addition?

I wanna do sth like:
ModifySendMessage(custom_encryption(GetSerializedSendMessage()))

How can i recovery(decrypt) the message in recv side,
and continue the rpc procedure? Any api can help?

@engjq GetSerializedSendMessage returns a modifiable ByteBuffer. I don't know C++ but you would do something like:
custom_encryption(GetSerializedSendMessage())

But as mentioned above, this would only solve encrypting the message being sent.
If you want to decrypt received messages, then something like a GetSerializedRecvMessage and lazy deserialization as suggested by @yashykt will need to be implemented in grpc. I'm still interested in this but I don't know enough C++ to submit a pull request for this.

yes,I wanna do sth like below indeed:
in send:
ModifySendMessage(custom_encrypt(GetSerializedSendMessage()))

and
in recv:
ModifyRecvMessage(custom_decrypt(GetSerializedRecvMessage()))

thx,and waiting for your pr ,haha

@engjq GetSerializedSendMessage returns a modifiable ByteBuffer. I don't know C++ but you would do something like:
custom_encryption(GetSerializedSendMessage())

But as mentioned above, this would only solve encrypting the message being sent.
If you want to decrypt received messages, then something like a GetSerializedRecvMessage and lazy deserialization as suggested by @yashykt will need to be implemented in grpc. I'm still interested in this but I don't know enough C++ to submit a pull request for this.

Got some help from
https://stackoverflow.com/questions/23963978/c-protobuf-how-to-iterate-through-fields-of-message


There is no history shown

I set up an account, and am using a Ledger Nano S.
I sent small amounts for testing, and the wallet shows the correct balance.
While the explorer shows the transactions correctly, the wallet's history remains blank, not showing any transactions.
Is there anything I can do to see the history within the wallet?
Thanks!!

Try to switch to another Node from the list https://github.com/tarassh/fairy-wallet/wiki/Connect-to-Mainnet

Thanks for your advice. I did not think about that. Will try. Thanks!!