[SPARK-43594][SQL] Add LocalDateTime to anyToMicros

What changes were proposed in this pull request?
Small change to anyToMicros to also accept LocalDateTime that's being returned when working with TIMESTAMP_NTZ. This simplifies some code at the Iceberg side.

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

cc @dongjoon-hyun Any thoughts on this small change?

This would actually allow:
  def createSerializerForLocalDateTime(inputObject: Expression): Expression = {
    StaticInvoke(
      DateTimeUtils.getClass,
      TimestampNTZType,
      "localDateTimeToMicros",
      inputObject :: Nil,
      returnNullable = false)
  }

to change to:
  def createSerializerForLocalDateTime(inputObject: Expression): Expression = {
    StaticInvoke(
      DateTimeUtils.getClass,
      TimestampNTZType,
      "anyToMicros",
      inputObject :: Nil,
      returnNullable = false)
  }

This would also make some code on the Iceberg side simpler:
https://github.com/apache/iceberg/blob/8fe6248736a8a15a8dc85376c8741cbce62e6b47/spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/SparkValueConverter.java#L78-L86

@Fokko no biggie but would be great to fill the PR description.

@dongjoon-hyun @HyukjinKwon I've updated the template. I'd love to move this forward and also get this in 3.4.1

Thank you, @Fokko , @MaxGekk , @HyukjinKwon .
I merged to master branch for Apache Spark 3.5.0 according to the community guideline.

Sorry, @Fokko .

Just FYI, @Fokko . Apache Spark 3.5.0 Feature Freeze is next month (July 16th) and you will have Apache Spark 3.5.0 on August.

https://spark.apache.org/versioning-policy.html

Would it be possible to get this into 3.4.1 as well? You could argue that it is fixing a bug following the new TIMESTAMP_NTZ type.


feat: update node sdk to use async call

Awesome! Thank you for adding this. I'll wait for the rest of the tests to pass CI and merge after that.


Search option in Java API Doc does not navigate to search item in UmpleOnline

Summary
Within the UmpleOnline, the users can generate "Java API Doc" for an example or custom umple code. While displaying the documentation, the user can search for an item within the search box. The system displays the search items accurately, but it does not navigate to that item (method, class, etc.) when clicked.
Steps to Reproduce

Click the "Tools" menu item, select the example as "Class Diagrams >> "2DShapes".

Select Generate >> Java API Doc. Click "Generate It"

Scroll a bit down and click at the "INDEX" tab.

Type "setCen" in the searchbox and it will bright the "setCenter" method in Shape2D class.

Now, click on that item. The system will not take you to that particular method within the document.
Expected Feature
The system should take the cursor to the particular searched item when clicked. The idea of having a search option is to navigate to an item easily.

Interesting issue. I suspect that there is either some Javascript code (not present) being triggered to jump to the right page, or an attempt is being made to go to a internal URL with a hash symbol, and the fact that the Javadoc is in its own container is somehow blocking this.
It would be good to solve this, but I imagine it could take some digging and may be technically difficult. I am marking it as medium priority.

The bug is in the search.js created from the Javadoc generator. It has a line 346 that fails on parent.classFrame. It would be worth testing whether any junit encapsulated in an iframe would result in the same problem.

It is possible that dealing with #1743, which would include replacement of jquery-ui-min.js would solve this problem

It turns out that this is likely a fundamental bug in Javadoc and is likely beyond our control. Put the following in an html file and open in a browser. It has the same problem, yet is nothing to do with Umple. Javadoc just doesn't allow searching while in an iframe.

Test

Although this generates a security error rather than an undefined error, the problem is the same. I have reported this to Oracle

This has been formally raised by Oracle as a bug in Java
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8268866


Quick Search: Open in search button is very prominent

Testing #203078

The open in search button is IMO too prominent. I don't think that's an command that I would use that regularly.

I think that it's a valid argument. I heard feedback that the inline buttons to go to search view was not prominent enough, so I will leave this open in case there is extra discussion for this.

The buttons in the menu have changed, I will be closing this issue but feel free to re-open if you think otherwise.


[DPEDE-1455] Date picker value should be empty if not value is passed

https://ctl.atlassian.net/browse/DPEDE-1455

Hi @emerson-pereira, I tested the changes and looks good! Can we also add some functional tests that check that the values emitted by the events are correct in each of the use cases (mode date, mode datetime 24hr, mode datetime 12hr)?

@ASanchLumen Thank you for your comments, I have done and pushed the updates you suggested.
Upon testing the components I realized there are two issues:

When you change the time with the keyboard and press enter, it doesn't work
The pop is not closing once date/time is selected

@jllr / @josecarlosgonzalezv Please let me know if we should leave these two issues for another ticket or if should be fixed in thhis PR. Thanks.

@ASanchLumen Thank you for your comments, I have done and pushed the updates you suggested. Upon testing the components I realized there are two issues:

When you change the time with the keyboard and press enter, it doesn't work
The pop is not closing once date/time is selected

@jllr / @josecarlosgonzalezv Please let me know if we should leave these two issues for another ticket or if should be fixed in this PR. Thanks.

Hi @emerson-pereira, how are you able to change the time with the keyboard? I can change the date using tab, arrows and enter, it works and the picker closes on enter (not on click though, but same is in prod).

@ASanchLumen Thank you for your comments, I have done and pushed the updates you suggested. Upon testing the components I realized there are two issues:

When you change the time with the keyboard and press enter, it doesn't work
The pop is not closing once date/time is selected

@jllr / @josecarlosgonzalezv Please let me know if we should leave these two issues for another ticket or if should be fixed in this PR. Thanks.

Hi @emerson-pereira, how are you able to change the time with the keyboard? I can change the date using tab, arrows and enter, it works and the picker closes on enter (not on click though, but same is in prod).

@ASanchLumen You are right, it is like that in prod. I thought it was a bug but I guess it's expected? If that's the case the PR is ready.


TEP 0097: Implement beforeTasks for Pipeline debug.breakpoints spec

Feature request
Allow users to mention named steps they would like to debug in beforeTasks in the debug.breakpoints spec in PipelineRuns. The breakpoint will be set before the execution of the first step of the TaskRuns in question to help users inspect the env before it starts executing.
Part of TEP 0097
Use case
Debug a first step of a taskrun before it executes.

/assign


Add more options in choose_qparams_affine for tinygemm op

Summary:
This is in preparation for replacing tinygemm q/dq ops with the unified quant primitive ops
Test Plan:
python test/quantization/test_quant_primitives.py -k test_tinygemm_get_groupwise_affine_qparams
Reviewers:
Subscribers:
Tasks:
Tags:

we need to compare with the existing numerics of choosing qparams and q/dq. If we're introducing error for no benefit then i don't thing we should deprecate the other primitives. At the very least we need to discuss the functional changes first.
also need to test whether these primitives also work with gptq, there are nuances that i'm not sure are being captured.

sounds good, updated the op to work with tinygemm numerics.
for gptq and other types of e2e quant tests, we could establish a dashboard for perf and accuracy first, we can prioritize this in 0.3


Auto-update the BMP while running

It would be nice if you added an option for the script to pull a new BMP from remote target every x minutes while running.

It already does this.


Need Notify Example and documentation

Great library, was pointed here by @dlech on bleak repo looking for a BLE server. Successfully added read and write callback, but notify callback appears to be missing in the api, is it possible to notify once the characteristic.value is updated?

I think I found it, you need to call server.update_value(service_uuid, char_uuid) to notify, I would of suspected a callback similar to read_request_func , write_request_func... I'd recommend an api such as on_read, on_write, on_notify

I second the need for some documentation and a notify example! Hesitant to use this without notify being easily usable

This works for me, modified from the gattserver.py example. It's not very elegant, but may serve as an example. The asyncio usage in the examples is a little bit outdated, but I didn't change it here:
"""
Example for a BLE 4.0 Notify Server using a GATT dictionary of services and
characteristics
"""

import logging
import asyncio

from typing import Any, Dict

from bless import (  # type: ignore
        BlessServer,
        BlessGATTCharacteristic,
        GATTCharacteristicProperties,
        GATTAttributePermissions
)

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(name=__name__)

def write_request(
        characteristic: BlessGATTCharacteristic,
        value: Any,
        **kwargs
        ):
    characteristic.value = value
    logger.debug(f"Char value set to {characteristic.value}")
    # if characteristic.value == b'\x0f':
        # logger.debug("Nice")
        # trigger.set()

def notify(server, value):
    server.get_characteristic(
       YOUR_NOTIFY_UUID,
    ).value = value
    server.update_value(
        YOUR_SERVICE_UUID",
        YOUR_NOTIFY_UUID"
    )

async def run(loop):
    # Instantiate the server
    gatt: Dict = {
        YOUR_SERVICE_UUID: {
            YOUR_NOTIFY_UUID: {
                "Properties": GATTCharacteristicProperties.notify,
                "Permissions": GATTAttributePermissions.readable,
                "Value": None
            },
            "YOUR_WRITE_UUID: {  # This is not required, I need it for my case
                "Properties": (GATTCharacteristicProperties.write |
                               GATTCharacteristicProperties.write_without_response),
                "Permissions": GATTAttributePermissions.writeable,
                "Value": None
            },
        }
    }

    server_name = "MY_NOTIFY_SERVER"

    server = BlessServer(name=server_name, loop=loop, name_overwrite=True)
    server.write_request_func = write_request  # not required if we don't have a write characteristic

    await server.add_gatt(gatt)
    await server.start()

    logger.debug("Waiting for someone to subscribe")
    while not await server.is_connected():  # The name of this method is slightly misleading
        await asyncio.sleep(0.1)
    logger.debug("Someone has subscribed.")
    notify(server, b'Welcome')

    # This is the actual notifying loop:
    while True:
        a = input("Value: ")
        if a == "quit":
            break
        else:
           notify(server, a.encode())
        await asyncio.sleep(0.5)

    logger.debug("Stopping")
    await server.stop()

loop = asyncio.get_event_loop()
loop.run_until_complete(run(loop))

@MarkusPiotrowski Thx for your example.  I used it with added values for YOUR_SERVICE_UUID, YOUR_NOTIFY_UUID, YOUR_WRITE_UUID  from https://bleid.netlify.app
For debugging I used  NRF Connect App on iOS. However, Im getting spammed with Bluetooth Pairing requests by iOS.
Does it have to do with wrong UUID for my service and iOS is getting confused what service is it connecting to?
Or some pairing handling is needed on the script side?
In between pairing requests I tapped subscribe button and send 1,2 ,3 via terminal running script on my Raspberry Pi. These values were received, but popup still keep on showing up 🤔
https://imgur.com/a/gDPVyw4
Any help is appreciated :)


Transposing some empty arrays leads to a crash

Pad link: https://www.uiua.org/pad?src=0_3_1__4o2J4oavIDJfMCAxCg==
⍉ ↯ 2_0 1

panicked at src\algorithm\monadic.rs:373:32:
chunk size must be non-zero

Experiments suggest that it crashes if and only if the input array's shape contains one or more 0s but not on the leading axis (e.g. transposing an array of shape 0_2_0 works fine, but 2_0_2 panics).

Thanks for the report!


Initial project major features

These tasks are things that need to be done for initially setting up the project:

[ ] #9
[ ] #8
[ ] Favicon for the website (cause that's always good to start with)
[ ] Tweet about it to get others on board

@blackgirlbytes said she'll also include it in her blog!


Reopen Number Picker give 0

Wen you pick a number and close the picker. In next time the picker shows again 0 and not the select value.
I using to show the current value in the button this method:
function numberPickerCallback(val,$scope) {   if (typeof (val) === 'undefined') {     console.log('Time not selected');   } else {     $scope.numberPickerObject.inputValue = val;   }
and this html:
   <ionic-numberpicker input-obj="numberPickerObject">       <button class="button button-positive order-button">         {{ numberPickerObject.inputValue }}       </button>     </ionic-numberpicker>
where is {{ inputNumber }} defined ?

What does your numberPickerObject look like in the control? Are you seeing console output to show that the numberPickerCallback is indeed being called?
Example:
`var numberPickerCallback = function(val) {
if (typeof(val) === 'undefined') {
console.log('No number selected');
} else {
console.log('Selected number is: ', val);
$scope.weight = val;
}
};
  $scope.numberPickerObject = {
    inputValue: $scope.weight,
    minValue: 0,
    maxValue: 20,
    step: 0.25,  //Optional
    format: 'DECIMAL',  //Optional
    titleLabel: 'Weight',  //Optional
    callback: function (val) {    //Mandatory
      numberPickerCallback(val);
    }
  };`


UPDATE everything (including eslint 4)

Issue: -packages were out of date-
eslint-config-aribnb was updated to be compatible with eslint 4 today 🎉 🎊 🎈
So I updated all packages, and fixed a small eslint error, everything seems to work locally
What I did
Updated all packages
How to test
install, bootstrap, run tests, run linting, run example

Will merge when successful.


Rest api: define Constants

Split out of #8695
I wanted to use the rest-api command line, and wanted to improve the documentation. Of course this means that I changed code to better understand...
This pulls out constants from the cli
also trims method where the user enters data (not sure how to use this... so didn't test)

LGTM!!
Could you get rid of the rubocop warnings.   Thanks.

Looks great.   🍏
Thanks !!


plot_state_hinton axis is misplaced.

Environment

Qiskit Terra version: 0.19.2
Python version: 3.9.6
Operating system: Windows 11 Pro

What is happening?
The imaginary plot has a shifted axis label.
How can we reproduce the issue?
Simply follow its qiskit tutorial
from qiskit import QuantumCircuit
from qiskit.quantum_info import DensityMatrix
from qiskit.visualization import plot_state_hinton
%matplotlib inline

qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)

state = DensityMatrix.from_instruction(qc)
plot_state_hinton(state, title="New Hinton Plot")

What should happen?

The axis should be consistently labeled
Proper spacing between real and imaginary subplots

Any suggestions?
This is easy fix, because

is due to a typo in the source code, where it calls ax1 instead ax2 in the second part of the code.

ax2.set_xlim([0, lx])
ax2.set_ylim([ly, 0])

can be solved by adding

fig.tight_layout()

after the second part of the code

@wyqian1027 Thanks for reporting this issue! Would you like to open a PR to fix this bug? Please let us know if you need any help.

@wyqian1027 Thanks for reporting this issue! Would you like to open a PR to fix this bug? Please let us know if you need any help.

Thanks. I just did the PR and hopefully it works.

can I try to solve this issue

Hey,Can I try to fix this


May I ask if it supports jdk1.6

I am honored to have encountered this project, which has saved me a lot of work

Sadly not, I currently only compile using source level 8. I dont know whether the library would be compatible with a lower source level.


Compile-time function domain analysis

Analyze functions' domains (i.e. the different inputs given) to determine if a function is always used with one known type, if so regenerate that function with that parameter typed as such. Should likely be in a new "big brain" optimizer :)

~Superseded by #30


How to connect Samsung TV

I am using your SDK for tv remote. I have tried with Samsung tv but it is not connecting and asking for airplay mirror alert however airplay is on. Please check the screen shot attached

@PayalUmraliya  have you got any solution ???

Anyone who is able to resolve the above issue ??


Create sil

This PR doesn't make sense to me and doesn't have a proper description so I'm closing it.
@Vasudeva200 if you want to contribute to this project please clarify your intents.


Failed to send mail when used forget passwd

check /docker_ui.log
Apr 14 15:09:42 host-10-1-241-130 docker/ui[4480]: 2016/04/14 07:09:42 #033[1;34m[router.go:828][D] | POST       | /userExists                              | 1.285775ms       | match      | /userExists                              | #033[0m
Apr 14 15:09:42 host-10-1-241-130 docker/ui[4480]: 2016-04-14T07:09:42Z [ERROR] [password.go:170]: Send email failed: 501 Mail path must not include special characters.
check /docker_proxy.log
Apr 14 15:09:42 host-10-1-241-130 docker/proxy[4480]: <IP_ADDRESS> - - [14/Apr/2016:07:09:42 +0000] "POST /userExists HTTP/1.1" 200 4 "http://<IP_ADDRESS>/forgotPassword" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"
Apr 14 15:09:42 host-10-1-241-130 docker/proxy[4480]: <IP_ADDRESS> - - [14/Apr/2016:07:09:42 +0000] "GET /sendEmail?email=412012135%40qq.com HTTP/1.1" 500 17 "http://<IP_ADDRESS>/forgotPassword" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"

This may caused by mis-configured of mail section in harbor.cfg file, or the smtp server is unavailable.

i'm rebuild harbor "docker-compose build" and run again
check /docker_ui.log
Apr 14 15:48:04 host-10-1-241-132 docker/ui[21809]: 2016/04/14 07:48:04 #033[1;34m[router.go:828][D] | POST       | /userExists                              | 1.484162ms       | match      | /userExists                              | #033[0m
Apr 14 15:48:08 host-10-1-241-132 docker/ui[21809]: 2016-04-14T07:48:08Z [ERROR] [password.go:170]: Send email failed: 535 Incorrect authentication data
check /docker_proxy.log
Apr 14 15:48:04 host-10-1-241-132 docker/proxy[21809]: <IP_ADDRESS> - - [14/Apr/2016:07:48:04 +0000] "POST /userExists HTTP/1.1" 200 4 "http://reg.mydomain.com/forgotPassword" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"
Apr 14 15:48:08 host-10-1-241-132 docker/proxy[21809]: <IP_ADDRESS> - - [14/Apr/2016:07:48:08 +0000] "GET /sendEmail?email=412012135%40qq.com HTTP/1.1" 500 17 "http://reg.mydomain.com/forgotPassword" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"

What is your SMTP/port?

imap is 143
smtp is 25

It seems that we don't support IMAP currently.

i see that in /harbor.cfg
oh is that mailserver needed support  encryption,example smtp open port 465.

I wrote a sample of sending mail as our current implementation at https://play.golang.org/p/IbE1-O8g2L, you may paste it to your local and test it by changing parameters with your configurations.

OK ,i will try it later.

404 page

You shouldn't click the url directly in the comment or you can't visit google in China.

e.........

Are you familiar with Go? Have you tried this https://play.golang.org/p/IbE1-O8g2L?


[SUPPORT] How to update record in OverwriteWithLatestAvroPayload.preCombine

I have a requirement where I need to combine fields from old and new records in OverwriteWithLatestAvroPayload.preCombine
The default behaviour either selects old-record or this based on ordering Value.
But in my case I need to combine fields from both old and new in same record before returning value.
To be able to do this, I am trying to first convert OverwriteWithLatestAvroPayload to GenericRecord so that I can modify field values.
In below code, if I return newRec as it is, it works as expected i.e. first  preCombine is called and then combineAndGetUpdateValue is called.
But if I return newRec1 i.e. when I convert GenericRecord back to OverwriteWithLatestAvroPayload it doesn't work. I.e. preCombine is called but combineAndGetUpdateValue is not called.
So the question is, how can I modify the record in preCombine before returning.

    public OverwriteWithLatestAvroPayload preCombine(OverwriteWithLatestAvroPayload oldValue) {
        OverwriteWithLatestAvroPayload newRec = super.preCombine(oldValue);

        try {
            OverwriteWithLatestAvroPayload newRec1 = new OverwriteWithLatestAvroPayload(HoodieAvroUtils.bytesToAvro(newRec.recordBytes,defaultSchema), newRec.orderingVal);
            System.out.println(HoodieAvroUtils.avroToJson(HoodieAvroUtils.bytesToAvro(newRec.recordBytes,defaultSchema),true));
            return newRec1;
        } catch (IOException e) {
            e.printStackTrace();
            return newRec;
        }
    }

After changing to following line, it worked. Bottomline is make sure the object instance that you are creating is an instance of your payload class and not the generic OverwriteWithLatestAvroPayload.
MsgDetailPayload newRec1 = new MsgDetailPayload(HoodieAvroUtils.bytesToAvro(newRec.recordBytes,defaultSchema), newRec.orderingVal);


PRISMA_CLI_BINARY_TARGET not outputting specified binary types in node_modules/.prisma/client

Bug description
We build different flavors of our node project to deploy to different platforms.
I was specified all required platforms in the binaryTargets array in the schema client generator, but this was leading to bundles including query client binaries for other platforms when we deploy.
To try and reduce the size of the deployed bundle, I attempted to remove the binaryTargets array from the schema, and instead in CI specify the PRISMA_CLI_BINARY_TARGETS environment variable so that the output build artifact includes only the binaries required for the deployment target.
Unfortunately when specifying the environment variable, the package install isn't including the specified targets in node_modules/.prisma/client, only the native.
How to reproduce

Create a prisma based project
Execute PRISMA_CLI_BINARY_TARGETS=<non-native-platform> yarn install
Observe that the non-native platform binaries are downloaded into node_modules/@prisma/engines, but that the non-native query engine is not installed into node_modules/.prisma/client

Expected behavior
I expected PRISMA_CLI_BINARY_TARGETS to be a replacement to the schema binaryTargets to override the target platform.
Prisma information
"@prisma/client": "^3.12.0",
"prisma": "^3.12.0",
Environment & setup
Linux 5.16.15-76051615-generic
Node v16.14.0
Prisma Version
prisma                  : 3.12.0
@prisma/client          : 3.12.0
Current platform        : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Default Engines Hash    : 22b822189f46ef0dc5c5b503368d1bee01213980
Studio                  : 0.459.0
Preview Features        : interactiveTransactions

PRISMA_CLI_BINARY_TARGETS only defined the binary targets for the CLI (hence the CLI in the name 😆).
If you want to use an env var to define the binary targets of the client, you can do that via binaryTargets = env(FOO) (or slightly similiar in the generator client block of your Prisma schema file.
Please report back if that indeed works.

Ping @rcbevans - Can you please take a look at my response? Thanks.

It does seem odd that there is no way to override the binaryTargets functionality from schema.prisma with any sort of argument or environment variable. Furthermore, it's not really clear how PRISMA_CLI_BINARY_TARGETS, in its current implementation, is useful for deployment when the engine in node_modules/.prisma/client winds up being different than the one specified.

Furthermore, it's not really clear how PRISMA_CLI_BINARY_TARGETS, in its current implementation, is useful for deployment when the engine in node_modules/.prisma/client winds up being different than the one specified.

It is not supposed to be useful for that use case. The environment variable influences the engine files downloaded for the CLI (hence the PRISMA_CLI...) and not for Prisma Client.
As @rcbevans unfortunately did not respond, I am closing this issue.


add that requires python 3.8 or higher

This was noted by Andy Barrett while trying to live-install on Michele Thorton's machine during NASA Openscapes coworking (with Chris Battisto, Cassie Nickles, Celia Ou)

Ah, sorry I'd missed that. Thank you Luis!


Error with empty prefix for uws-namespace with latest lxml version (3.5.0)

When sending requests to a server that returns job lists/details with no uws-prefix, i.e. empty namespace, this fails with the current lxml version (3.5.0) with an error.
Example:
uws --host http://mintaka.ari.uni-heidelberg.de/tap/async/ list
returns in the end:
ValueError: empty namespace prefix is not supported in ElementPath
With lxml version 3.4.4 everything worked fine. Xml with an empty prefix like with this:
<jobs xmlns="http://www.ivoa.net/xml/UWS/v1.0" xmlns:xlink="http://www.w3.org/1999/xlink">`
  <jobref>...</jobref>
  ...

(instead of using xmlns:uws=... and <uws:jobs>, <uws:jobref> etc.) is valid xml and should be allowed. I am going to fix this.

Fixed now in branch fix-emptyprefix, merged now with master.


Add type annotation support.

A example:
from typing import TypeVar, Type

T = TypeVar('T')

class Manager:
    async def get(self, source_: Type[T], *args, **kwargs) -> T:
        pass

@trim21 thank you for your proposal i think we need mypy checker in CI if we add type annotation in the code

Closed as duplicate of #224


Alternatives to ms:waitForAppLaunch capability, capability is a hard wait and not something that should be used

One of the most common problems I run into with WinAppDriver is the "Failed to locate opened application window with appId" error that get thrown when first trying to initiate the session.
I have try catch logic around this that attempts to catch that error and re create the session but this does not work every time and will occasionally bug out my tests.
What we need is a way to tell WinAppDriver to wait UP TO a certain amount of time and not a hard coded wait. The only solution I found is to use this approach which is a hard wait..
appCapabilities.AddAdditionalCapability("ms:waitForAppLaunch", "30");
This is a terrible approach as the app sometimes loads faster or slower and we should not always wait 30 seconds. Implicit waits are crucial for automated UI tests and currently I have not found a way to do this with WinAppDriver. Has anyone else had similar issues or workarounds?

@Tree55Topz I implemented a polling mechanism to check if the app is launched or not.

@anunay1 is that included with the capability I mentioned in the issue or do you just mean by default? Currently, it seems like WinAppDriver will wait up to like 10 seconds or so before throwing that error. Sometimes thats not enough.


ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. (scene/main/viewport.cpp:105)

ARVR: Registered interface: Native mobile
ERROR: EditorData::get_edited_scene_root: Index current_edited_scene=-1 out of size (edited_scene.size()=0)
At: editor\editor_data.cpp:607
configure for local: ViewportTexture
vertex uses function: hash
vertex uses function: rand_from_seed
fragment uses function: zero_if_equal
WARNING: not found: editor_plugins/enabled
ERROR: ViewportTexture::get_height: Condition ' !vp ' is true. returned: 0
At: scene\main\viewport.cpp:100
ERROR: ViewportTexture::get_width: Condition ' !vp ' is true. returned: 0
At: scene\main\viewport.cpp:95
ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. returned: Size2()
At: scene\main\viewport.cpp:105
ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. returned: Size2()
At: scene\main\viewport.cpp:105
ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. returned: Size2()
At: scene\main\viewport.cpp:105
ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. returned: Size2()
At: scene\main\viewport.cpp:105
ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. returned: Size2()
At: scene\main\viewport.cpp:105
ERROR: ViewportTexture::get_size: Condition ' !vp ' is true. returned: Size2()
At: scene\main\viewport.cpp:105

I can add a log where there are others
log-2017-12-08-15-06-51.txt

You need to be more specific in your issues, just dumping your console log doesn't help much. The various messages shown are either informative strings, or bugs (the first ERROR is #13932, the following warning would have to go in its own bug report, the ViewportTexture errors can't be reproduced here, so I guess they're specific to your project which you are not describing at all).

My project's zip file will be suffice?

Probably related to #12781. ViewportTextures are rather broken right now, they don't tend to want to actually pick up the viewport they're supposed to be referencing.


No file named variables.sass

In file styles/style.sass, there is an import @import './variables.sass' and there is no such file named variables.sass but there is a file named variables-example.sass. I wonder why is that?

You needed to edit that file name before using it. It was a general component. However, the issue is resolved now! Thank you for your contribution @subodhk01 :)


Weapon-Detection-System

Related Issue
This PR addresses #1129   &
Closes #1129
Description
Weapon Detection Using YOLOv3
Project Overview
This project utilizes the YOLOv3 (You Only Look Once) algorithm for real-time weapon detection. The code supports two modes of operation:

Webcam-based weapon detection: Uses the webcam to detect weapons in real-time.
Video file-based weapon detection: Uses a pre-recorded video file to detect weapons.

Features

Real-time detection of weapons using either a webcam or a video file.
Display of bounding boxes and labels for detected objects.
Customizable detection thresholds.

Technologies and Libraries Used

Python (version 3.x)
OpenCV: Library for computer vision tasks.
NumPy: Library for numerical computations.
YOLOv3: Pre-trained deep learning model for object detection.

Type of PR

[ ] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[X] Other (specify): New Model for Weapon Detection

Screenshots / videos (if applicable)
The following image demonstrates the output of the YOLOv3 model, showing bounding boxes and labels for detected objects:

Checklist:

[X] I have performed a self-review of my code
[X] I have read and followed the Contribution Guidelines.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.

Additional context:
Customization
You can customize the detection thresholds and other parameters within the script to suit your specific requirements. Detailed comments within the code will guide you through making these adjustments.
Contact
For further assistance or inquiries, please reach out via the repository's contact information.
DESCRIPTION
This project is a real-time weapon detection system utilizing OpenCV and YOLO (You Only Look Once) object detection framework. The system is designed to detect various weapons such as knives, guns, and bombs using a pre-trained YOLOv3 model. The implementation involves loading the YOLO model with custom-trained weights and configuration files, capturing live video feed from the camera, and processing each frame to detect and highlight weapons. The detection results are displayed on the screen with bounding boxes and labels around the detected weapons. This tool is potentially useful for enhancing security measures in public spaces by providing an automated method for weapon detection.

@venkat-2811 you are using .py for that we are reducing level of this pr


Refactor QuestionNotes.js

Generalize the component to allow the Overview, Resume, and Submit tabs to work. Also convert the component to a class to simplify state and effects.

Handled in #80


Typescript output

Hi,
I have been looking for a rsut cli that would be able to take in a openapi json document and output typescript/react-query files.
I got an example of:
paperclip -i api.json --bindings typescript
However, it doesn't seem like this is either supported anymore, or the information is very wrong.
Does this cli support typescript client generation?
Thanks,

Generating clients in other languages would be nice but we simply don't have the bandwidth to do that as of today.


Allow for lock on files to be released for HDD to enter sleep mode

Hello there!
I'm enjoying musikcube quite a bit, thanks for this great piece of software.
I'm not using it on a Raspi with flash storage, but instead installed it on my (headless, openmediavault-powered) NAS so I could feed my AV receiver with music using a Toslink connection.
The thing is, my music collection resides on an HDD RAID, so if I "pause" musikcube's playback, the lock on the currently "active" file never gets released and the system doesn't allow the drives to enter sleep mode.
Is there any way for me to "stop" playback completely and not have it basically paused all the time when it's not playing? The only solution I have so far is to kill the musikcube instance. I would prefer it running in the background so it can just spin the drives up as soon as I want it to play again as long as it allows the drives to go to sleep, as killing the instance requires me to manually restart the program from the console every time I want to play something.
Thanks!

Yep, you can use Ctrl+X to stop playback and unload all open files.

Yep, you can use Ctrl+X to stop playback and unload all open files.


Doesn't work with a different parser/AST

I'm using @babel/eslint-parser in my project so ESLint understands the experimental JavaScript syntax I write. It uses a different AST. When pairing it with your plugin (eslint-plugin-jsonc), ESLint fails to parse my json files. See my reproduction. Can you fix this? :smile:

Thank you for posting this issue!
It looks like you need to add an overrides section.
    "overrides": [
        {
            "files": ["*.json", "*.json5"],
            "parser": "jsonc-eslint-parser",
        }
    ]

The base configuration provided by this plugin will try to enable this setting.
However, the user's parser setting has a higher priority than the "extends" parser by extension, and it seems that the parser by extension is not used.
I will add to the documentation about this workaround.


Cosmos DB Readme and Sample Issue

Section link1

Reason:
analyticalStorageTtl is not a valid property in the current payload.
Suggestion:
Update code to partition_key=PartitionKey(path="/productName")

Section link2

Reason:
BAD_REQUEST - Request being sent is invalid
Suggestion:
Update code to 'account_number': 'Account1', "message": "item was replaced"
@rohit-ganguly , @lmazuel , @kyle-patterson , @KrzysztofCwalina , @annatisch for notification.

@jerryshia the first one is a code snippet in our README showing users how to set the analytical_ttl keyword, it is not a sample meant to be run directly. The second bit is correct, and has been corrected in both its sync and async versions here: https://github.com/Azure/azure-sdk-for-python/pull/36566

PR has been merged.


How to visualize the results of the demo?

Got a lot of labels, I want to know is it possible to visualize these results?
using SemanticKITTI

do you ok to visit the result?

semantic-api


Wrangling of new dataset: GSE124494 (pre-converted by geo-to-hca.py)

Dataset/group this task is for:
GSE124494
Wrangler responsible for this dataset/lab:
Enrique
Description of the task:

[ ] Complete conversion of the dataset by manual curation. The pre-converted version can be found here: https://drive.google.com/drive/folders/1zWFxJ1RIx_2sl2_kpBH437hH6yegZIB3

[ ] Secondary review of dataset

[ ] Validate the dataset by uploading to ingest

[ ] Validate the dataset with graph validator?

[ ] Add to list of datasets 'Complete' for MVP: https://docs.google.com/spreadsheets/d/1DfRFfZpZEmWU6aubKwIZ4D0lfm038IW0fmHRigS8yBU/edit#gid=552473761

I will take this dataset for this sprint!

I have taken a look at the dataset. Looks interesting, I have filled a couple of rows but I wanted to try and download the files before proceeding and there is a strange thing about this dataset.
Taking a look at the ENA warehouse https://www.ebi.ac.uk/ena/data/warehouse/filereport?accession=SRP175077&result=read_run it looks like for each SRR accession there is only 1 file, and e.g. SRR8387856 and SRR8387857 are R1 and R2 of the same prep.
But taking a look at SRA SRR8387856 and SRR8387857, it suggests that there are 2 different sets of fastq files (probably coming from the same cell suspension/library prep).
I can't proceed without the files and this dataset does not have too many cells for it to be worth spending days investigating this issue. @lauraclarke should we deem it as unsuitable? For now I just put the status "blocked" in the tracking sheet

Thanks @ESapenaVentura I think this sounds reasonable, if it is a low cell count dataset and the effort involved in figuring out the files is high it is likely no worth it.
Can you move this ticket into the icebox?

@ESapenaVentura @gabsie shall we close this ticket and move the status to ineligible in ingest?


#11181: Add a global sync before closing devices (needed for non-blocking CCLs)

Ticket
Link to Github Issue
Problem description
CCLs on Galaxy were hanging during device teardown. The issue was that CCLs could be issued asynchronously (may not be followed by a sync across all devices), and the devices were then closed. This lead to device state being modified during CloseDevices, which could cause a CCL that was in progress to hang.
What's changed
Add a global sync, across all devices that are to be closed before modifying device state.
Checklist

[ ] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

fyi @cfjchu


boto3 error when running createInstance.py

When I run createInstance.py, I'm running into this error in the request:
    SecurityGroupIds = Config.groupId)
  File "/home/anthony/.local/lib/python2.7/site-packages/boto3/resources/factory.py", line 520, in do_action
    response = action(self, *args, **kwargs)
  File "/home/anthony/.local/lib/python2.7/site-packages/boto3/resources/action.py", line 83, in __call__
    response = getattr(parent.meta.client, operation_name)(**params)
  File "/home/anthony/.local/lib/python2.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/anthony/.local/lib/python2.7/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the RunInstances operation: Value () for parameter groupId is invalid. The value cannot be empty

my config is setup like this:
    #AWS Information
    ACCESS_KEY = '***************'
    SECRET_KEY = '***************'
    INSTANCE_ID = ''
    ec2_region = "us-east-1"
    ec2_amis = ['ami-0cfee17793b08a293']
    ec2_keypair = 'arotiroti'
    ec2_secgroups = ['minecraft']
    ec2_instancetype = 't3.micro'

    #SSH Key Path
    SSH_KEY_FILE_PATH = './arotiroti.pem'

    #Server Memory Size
    #This is default to no memory specification but can be: '-Xmx1024M -Xms1024M ' (KEEP TRAILING SPACE)
    MEMORY_ALLOCATION=''

I tried passing a security group ID through the SecurityGroupIds argument in the client.createInstances call, but got the same error.

SecurityGroupIds = Config.groupId
This seems to be the issue with your code, I don't know where this variable exists. I believe you should be using ec2_secgroups.

@anthonyrotiroti FYI this error occurs because you most likely configured your security group on the wrong region. Change regions on the top right of the AWS console to your preferred region and then try again.

I’m also working on a script which will automate all of the website AWS
configuration. Hopefully future users won’t have to run into the same issue.
On Sun, Jul 21, 2019 at 9:36 AM Long Hoang Tran<EMAIL_ADDRESS>wrote:

@anthonyrotiroti https://github.com/anthonyrotiroti FYI this error
occurs because you most likely configured your security group on the wrong
region. Change regions on the top right of the AWS console to your
preferred region and then try again.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/trevor-laher/OnDemandMinecraft/issues/14?email_source=notifications&email_token=AFNUAI7HWDVGDHCPJDPHQZ3QARQ5FA5CNFSM4IDRZZA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ODWTA#issuecomment-513555276,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFNUAI6L5C4A4EQ4H7ZALSTQARQ5FANCNFSM4IDRZZAQ
.

@trevor-laher that Config.groupId line was just from the parameter I added while trying a fix, sorry about that. The output after running the script as it was cloned is the same:
Traceback (most recent call last):   File "utilityScripts/createInstance.py", line 19, in <module>     SecurityGroups = Config.ec2_secgroups)   File "/home/anthony/.local/lib/python2.7/site-packages/boto3/resources/factory.py", line 520, in do_action     response = action(self, *args, **kwargs)   File "/home/anthony/.local/lib/python2.7/site-packages/boto3/resources/action.py", line 83, in __call__     response = getattr(parent.meta.client, operation_name)(**params)   File "/home/anthony/.local/lib/python2.7/site-packages/botocore/client.py", line 357, in _api_call     return self._make_api_call(operation_name, kwargs)   File "/home/anthony/.local/lib/python2.7/site-packages/botocore/client.py", line 661, in _make_api_call     raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the RunInstances operation: Value () for parameter groupId is invalid. The value cannot be empty

@tranhl I have my region set to US East - N. Virginia, and I'm in Massachusetts. Are there additional steps I should take for the security group?

@anthonyrotiroti Make sure that the AMI you picked was configured for us-east-1 as well. See the README to pick an AMI for that region.


Explain rationale behind requiring address for professor

Why is it not overzealous input validation?

It could be overzealous input validation since the some professors, especially for who are not NUS staff but teach in NUS, may not have his/her own office.


Track-Player appears to loop three times when launching playlist

HI, I am using the react-native-track-player-dev release for my shoutcast radio player project.  I've noticed a somwhat subtle but odd behavior when I do a 'react-native run=andrpod'
on the example code  after making a couple of changes in the playlist.js and the app.js files.  Namely, I changed the default screen from Landingscreen to the PlaylistScreeen,  I then removed all the function related to skip back/previous and skip-forward/next as I am  developing a shoutcase application.  I then put in a console.log("how many times am I looping");  line right after the export section and before the firsts async function,  See the snppet below:
export default function PlaylistScreen() {
const playbackState = usePlaybackState();
useEffect(() => {
setup();
}, []);
console.log("How many time Playlist.js is looping?");
console.log(" ");
async function setup() {
when I run the react-native run-android, I don't get any errors in the bash shell nor do I get any errors in the android studio emulator log window related to my edits.  However, I do see aloop of three of the log print as follows:
[Fri Oct 02 2020 21:20:23.930]  LOG      How many time Playlist.js is looping?
[Fri Oct 02 2020 21:20:23.934]  LOG
[Fri Oct 02 2020 21:20:24.290]  LOG      How many time Playlist.js is looping?
[Fri Oct 02 2020 21:20:24.318]  LOG
[Fri Oct 02 2020 21:20:24.473]  LOG      How many time Playlist.js is looping?
[Fri Oct 02 2020 21:20:24.512]  LOG
[Fri Oct 02 2020 21:20:24.618]  LOG      How many time Playlist.js is looping?
[Fri Oct 02 2020 21:20:24.669]  LOG
[Fri Oct 02 2020 21:20:25.412]  LOG      How many time Playlist.js is looping?
[Fri Oct 02 2020 21:20:25.451]  LOG
[Fri Oct 02 2020 21:20:25.499]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:20:25.522]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:20:25.923]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:20:26.156]  LOG      How many time Playlist.js is looping?
[Fri Oct 02 2020 21:20:26.240]  LOG
[Fri Oct 02 2020 21:21:15.804]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:24:51.859]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:28:33.510]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:33:15.800]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:36:15.970]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:39:35.570]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:43:11.603]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:46:24.490]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
[Fri Oct 02 2020 21:49:42.137]  LOG      TrackPlayer.getDuration: [Function promiseMethodWrapper]
I just counted the print loop - it is actually six times not three.  You'll note other warnings later in this pasted log result on getDur and the likes -- Those are separate issues I am tracking as I am not able to get the react-native-track-player to calculate the duration and the position does not reset when new songs start in the shoutcast stream.  I'll file tickets on that issue later once I clean up the issue at hand and fix the output from promise to the actual data --.
You help on this and the two others I will file shortly will be greatly appreciated!  Thanks.

Unless you have further information, I am not sure that this is related to this library.. React can call a function component multiple times when rendering, but the effect will be just fired on time..

Hi Jonathan,  thanks for the explanation.  In the react-native-track-player-example, if you create an interval timer  like the setInterval( () => {}  ) with code in the method. you'll get multiple instances of the interval timer triggered in rapid succession like  three or five times.  It could be a potential performance or unreliable outcome?   Your thoughts on a solution to this?


Also never-index proxy-authorization

Thanks for this, I definitely missed this.
I'm going to merge this manually, because I'll also add some tests to ensure that we don't regress this. And then I'm going to consider adding a new API to allow this to be configurable, to allow clients/servers that know better than us to ensure that nothing falls through the cracks.


Io table builder

plus  precomputable decorator
closes #10

@RodrigoWIssa i marked this as a draft for now... as soon as you'd say you're finished please mark it as ready again and i'll check it out.


Mission Key attribute in list item in the example of list and key

Hello, I think here is a key attribute is missing in the example of Correct Key Usage
link : https://reactjs.org/docs/lists-and-keys.html
function ListItem(props) {
  // Correct! There is no need to specify the key here:
  return
{props.value}
;
}

I think it should be like this
function ListItem(props) {
  // Correct! There is no need to specify the key here:
  return
{props.value}
;
}

Let's keep the discussion in a single place: https://github.com/reactjs/reactjs.org/pull/3684


Headless amplify pull without modifying the backend

Note: If your feature-request is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Is your feature request related to a problem? Please describe.
There seems to be no way to answer No to the question:
Do you plan on modifying this backend?
When running headless amplify pull.
I find this annoying in the case of React Native app CI/CD building scripts. I want to build my app on git push, so I need to include the aws-exports.js file which I don't have in the git repo. This feature would allow me to retrieve the amplify project meta data only, in the building script, without updating the project in the cloud.
Describe the solution you'd like
I would like a new argument to the headless amplify pull (https://docs.amplify.aws/cli/usage/headless#amplify-pull-parameters) that answers Yes or No to the question: Do you plan on modifying this backend?
Describe alternatives you've considered
I can still commit the aws-exports.js file, but it's really annoying when working with teammates on several environments.
The solution I am considering is to host the aws-exports.js files somewhere and download them with a curl in the CI/CD scripts. But that would mean updating those files when amplify project is updated.

It would be very nice to have feature! I separated the backend from the frontend to speed up the build process but I can't prevent the CLI in headless mode to update the backend environment in my frontend project.

The inability to answer no to this question also affects regular old CLI use cases.  If I run amplify pull on a new app, it takes me through the questions. I can watch the amplify folder get created and review the metadata that's in there while it's running. As soon as I answer 'no' to the 'Do you plan on modifying the backend? question -- the amplify folder is gone.
$ amplify --version
4.32.0
See attached images for the questions and list of files when I reach this question. The files go away after answering no.

This would be very helpful and for now I'm working around this with:
echo n | ./my-script.sh

This would be very helpful and for now I'm working around this by changing the call to amplify in the sample script in https://docs.amplify.aws/cli/usage/headless#amplify-pull-parameters with:
echo n | amplify pull \
--amplify $AMPLIFY \
--frontend $FRONTEND \
--providers $PROVIDERS

That worked for me as well. However, it would be nice to introduce another option to set a default for the backend question as well.

Bump, since it's also an issue for me and doing echo n | works, but it's not most reliable way

+1 for a parameter to be able to do a headless amplify pull without modifying the backend.

+1 for this. Any update on prioritization of this feature?

mysterious miss here... yes please, make this question equivalent to every other one in that it can be specified explicitly in headless invocation :)

Contributor PR to address this: https://github.com/aws-amplify/amplify-cli/pull/8804

@Straubulous Is there any recent change in the amplify cli where it no longer asks "Do you plan on modifying backend? " question. Because for me it pulls up the whole backend folder.

Just curious, is there a way to setup CI/CD for an amplify backend without this?  It seems like it is impossible to deploy changes to an existing backend.  Amplify init headless throws this error:
An error occurred when creating the CloudFormation stack
🛑 Stack [amplify-mysolutionbackend-prod-114433] already exists

And amplify pull overwrites your changes so you are not actually updating the backend.  Is there a process to use that I am missing?


KlarnaContainer enforces displayName onto payment button

Describe the bug
A clear and concise description of what the bug is.
The Klarna implementation enforces the usage of the display name in the payment button. See https://github.com/Adyen/adyen-web/blob/dcb9643cbf905917c946fc33c50012a1172912ca/packages/lib/src/components/Klarna/components/KlarnaContainer/KlarnaContainer.tsx#L35
Expected behavior
Would expect same behavior as other implementations, which means using payButton's entire string as the naming. Alternatively would expect it use continue as to not enforce the name.
Additional context
Running the latest version, not sure what the procedure is when changing something like this. I would imagine at the very least it would be a minor update. If this would potentially cause issues for other customers, would it be possible to add an additional prop to remove the enforced name?

Thanks for reaching out @Kasea .

Would expect same behavior as other implementations, which means using payButton's entire string as the naming. Alternatively would expect it use continue as to not enforce the name.

I am not sure that I fully understood the issue - what are the 'other implementations' that you mentioned above?
We always display the label Continue to concatenated with the respective payment method name in the Pay button, for all payment methods.

I was referring to Card (Visa / MC) in that statement, as it uses payButton text as opposed to the Continue to.
Should've been specific, thanks for the quick reply though @ribeiroguilherme !

No worries @Kasea . It is more clear now :)
So, depending of the type of payment method, we use different labels for the pay button.
Payment methods that have redirects for example we use the Continue to ${displayname} . The 'Card' for example we show the Pay ${currency-symbol} ${amount}label as likely there is no redirect and the payment will take place after clicking on Pay.
The only way for now to customize the pay button labels is by changing the translations.
There are no plans to introduce a new property to change the display label of the Pay button as you proposed -that isn't an easy task as the display name can be affected by different things like the amount, or by certain configurations passed to the payment method configuration. This would add a lot of complexity and would need to be adjusted on every payment method.
I hope it is clear!

Yeah that makes sense, thanks for clearing it up. Ideally would like a way in the payment configuration to override which translation it uses for generating the text, but that sounds like it would be a different issue than what is opened here. But I will make due with what is available at this moment.
Thanks!


Support parent layouts

Closes #26

This change is

Review status: 0 of 10 files reviewed, 8 unresolved discussions (waiting on @SomeoneToIgnore)

demo/vaadin-router-getting-started-demos.html, line 151 at r2 (raw file):

If both route and its child route have a component property, child route's component will be

This is a short and clear description of what would happen if..., but it does not explain why / when this feature may be useful to start with. Could you please re-word the description so that it starts with a use case: master / detail layouts?
Something like
"When blah blah blah it is useful to define a common layout for several pages. With Vaadin.Router this is done by blah blah blah. Check out of the live demo below to see how it works."

demo/vaadin-router-getting-started-demos.html, line 152 at r2 (raw file):

It might not be clear from the previous demos,

Let's remove this sentence. If our demos fail to make the point clear, we absolutely have to change the demos.

demo/vaadin-router-getting-started-demos.html, line 156 at r2 (raw file):

      This demo shows the nested components.

    <vaadin-demo-snippet id="vaadin-router-getting-started-demo-4" iframe-src="iframe.html">

Now this demo looks like it's missing a header. What do you think of adding a separate header to it? Something like 'Nested Components' or 'Parent Layouts'?

demo/vaadin-router-getting-started-demos.html, line 160 at r2 (raw file):

class XSlottedUsers

slotted in the name highlights an implementation detail that makes this component different from others. Can it be changed so that the name focuses on the purpose of the component instead? (e.g. call it XUsersLayout or XUsersMasterView)

demo/vaadin-router-getting-started-demos.html, line 179 at r2 (raw file):

nit: Let's use double quotes to stay consistent with the rest of the demos.

demo/vaadin-router-getting-started-demos.html, line 198 at r2 (raw file):

children: [
    {path: '/:user', component: 'x-user-profile'}
]

What do you think of adding another child view to illustrate the point of the master layout remaining the same when switching between child views?

src/router.js, line 50 at r2 (raw file):

    removeFromDomRecursively(node.firstChild);
  }
  node.parentNode.removeChild(node);

Why node.parentNode.removeChild(node); was not enough in this case?
It's not obvious to me. Could you please write the reason in a comment?

src/resolver/resolver.js, line 153 at r2 (raw file):

      }

      addRouteToChain(context, matches.value.route);

Has the behavior changed? Should there be changes in tests as well?

Comments from Reviewable

Review status: 0 of 10 files reviewed, 8 unresolved discussions (waiting on @SomeoneToIgnore and @vlukashov)

demo/vaadin-router-getting-started-demos.html, line 151 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…

If both route and its child route have a component property, child route's component will be

This is a short and clear description of what would happen if..., but it does not explain why / when this feature may be useful to start with. Could you please re-word the description so that it starts with a use case: master / detail layouts?
Something like
"When blah blah blah it is useful to define a common layout for several pages. With Vaadin.Router this is done by blah blah blah. Check out of the live demo below to see how it works."

Done.

demo/vaadin-router-getting-started-demos.html, line 152 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…

It might not be clear from the previous demos,

Let's remove this sentence. If our demos fail to make the point clear, we absolutely have to change the demos.

Right, done :)

demo/vaadin-router-getting-started-demos.html, line 156 at r2 (raw file):

Nested Components

Have picked this, thanks.

demo/vaadin-router-getting-started-demos.html, line 160 at r2 (raw file):

XUsersLayout

Have used this, thanks.

demo/vaadin-router-getting-started-demos.html, line 179 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…

nit: Let's use double quotes to stay consistent with the rest of the demos.

Done.

demo/vaadin-router-getting-started-demos.html, line 198 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…

children: [
    {path: '/:user', component: 'x-user-profile'}
]

What do you think of adding another child view to illustrate the point of the master layout remaining the same when switching between child views?

Why not, added.

src/router.js, line 50 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…
Why node.parentNode.removeChild(node); was not enough in this case?
It's not obvious to me. Could you please write the reason in a comment?

Sure, done, had written it in the place where method is used.
The reason for this is that I think we should call onBeforeLeave and disconnectedCallback in the same order.
Refer to the '/a/b -> /c' test:
await router.render('/c');

expect(callbacksLog).to.deep.equal([
'x-c.action',
'x-b.onBeforeLeave',
'x-a.onBeforeLeave',
'x-c.onBeforeEnter',
'x-b.disconnectedCallback', //this is called first only because we remove the elements recursively from the bottom
'x-a.disconnectedCallback',
'x-c.connectedCallback',
'x-c.onAfterEnter',
]);

src/resolver/resolver.js, line 153 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…
Has the behavior changed? Should there be changes in tests as well?

The trick is that it did not changed the old functionality: after you call Resolver.resolve, you still get the context with chain populated.
What had changed is that next() method call now updates previous context's chain by appending the next route resolved.
I additionally test this in resolver tests, if needed, now it's implicitly tested by all new tests since whole implementation depends on it.

Comments from Reviewable

demo/vaadin-router-getting-started-demos.html, line 165 at r2 (raw file):
Previously, web-padawan (Sergey Kulikov) wrote…
let's rearrange the demo, so that Router config is on the top (user should see it without any scrolling)
also, Polymer 2 syntax is verbose and I recommend using dom-module and Polymer 1 compatible syntax (so it would be easier to adapt demos for vaadin.com)

Right, fixed.

Comments from Reviewable

Review status: 1 of 10 files reviewed, 5 unresolved discussions (waiting on @vlukashov and @web-padawan)

demo/vaadin-router-getting-started-demos.html, line 160 at r2 (raw file):
Previously, SomeoneToIgnore (Kirill Bulatov) wrote…

XUsersLayout

Have used this, thanks.

How about the tag name? It's still x-slotted-users.

demo/vaadin-router-getting-started-demos.html, line 198 at r2 (raw file):
Previously, SomeoneToIgnore (Kirill Bulatov) wrote…
Why not, added.

The example with
children: [
  {path: '/([0-9]+)', component: 'x-not-found-view'},
  {path: '/:user', component: 'x-user-profile'},
]

looks a bit artificial.
How about something looking more like a real-life app (think of bakery or beverage buddy)?
Here is one example:
path: '/',
component: 'x-main-layout',
children: [
  {path: '/', component: 'x-home-view'},
  {path: '/user', component: 'x-user-list'},
  {path: '/user/:user', component: 'x-user-profile'},
]

src/router.js, line 50 at r2 (raw file):
Previously, SomeoneToIgnore (Kirill Bulatov) wrote…
Sure, done, had written it in the place where method is used.
The reason for this is that I think we should call onBeforeLeave and disconnectedCallback in the same order.
Refer to the '/a/b -> /c' test:
await router.render('/c');

expect(callbacksLog).to.deep.equal([
'x-c.action',
'x-b.onBeforeLeave',
'x-a.onBeforeLeave',
'x-c.onBeforeEnter',
'x-b.disconnectedCallback', //this is called first only because we remove the elements recursively from the bottom
'x-a.disconnectedCallback',
'x-c.connectedCallback',
'x-c.onAfterEnter',
]);

I would say, it's OK to let the browser to decide the order in which it calls disconnectedCallbacks and if the users want to have a definitive order, they should use the onAfterLeave callbacks instead. So, if that does not prevent any of our internal use cases, then for the sake of simplicity and #UseThePlatform, I'd suggest to keep it as node.parentNode.removeChild(node);.
Also, I am not sure but I have a gut feeling that such manual recursive DOM removal might be considerably slower on large DOM trees (this of course needs checking).

Comments from Reviewable

Review status: 1 of 10 files reviewed, 4 unresolved discussions (waiting on @vlukashov, @SomeoneToIgnore, and @web-padawan)

demo/vaadin-router-getting-started-demos.html, line 160 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…
How about the tag name? It's still x-slotted-users.

Oops, fixed.

demo/vaadin-router-getting-started-demos.html, line 198 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…
The example with
children: [
  {path: '/([0-9]+)', component: 'x-not-found-view'},
  {path: '/:user', component: 'x-user-profile'},
]

looks a bit artificial.
How about something looking more like a real-life app (think of bakery or beverage buddy)?
Here is one example:
path: '/',
component: 'x-main-layout',
children: [
  {path: '/', component: 'x-home-view'},
  {path: '/user', component: 'x-user-list'},
  {path: '/user/:user', component: 'x-user-profile'},
]

Done.

src/router.js, line 50 at r2 (raw file):
Previously, vlukashov (Viktor Lukashov) wrote…
I would say, it's OK to let the browser to decide the order in which it calls disconnectedCallbacks and if the users want to have a definitive order, they should use the onAfterLeave callbacks instead. So, if that does not prevent any of our internal use cases, then for the sake of simplicity and #UseThePlatform, I'd suggest to keep it as node.parentNode.removeChild(node);.
Also, I am not sure but I have a gut feeling that such manual recursive DOM removal might be considerably slower on large DOM trees (this of course needs checking).

Ok, adjusted the code.

Comments from Reviewable

Reviewed 6 of 8 files at r1, 1 of 3 files at r2, 3 of 3 files at r3.
Review status: all files reviewed, 1 unresolved discussion (waiting on @web-padawan)

Comments from Reviewable

Reviewed 6 of 8 files at r1, 3 of 3 files at r3.
Review status: :shipit: complete! all files reviewed, all discussions resolved

Comments from Reviewable


too slow

The program is too slow, producing 127,000 for 13 minutes

SO WAT I DO SIR
On Sat, May 25, 2019 at 11:26 AM omegazoe<EMAIL_ADDRESS>wrote:

The program is too slow, producing 127,000 for 13 minutes
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/TheZ3ro/bitcoin-privatekey-db/issues/4?email_source=notifications&email_token=AKKFKERX4RMDYSEDY7OCPFLPXCWUTA5CNFSM4HPTWTSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GV2F5EQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKKFKET4Z6WYMCRUTANPPLTPXCWUTANCNFSM4HPTWTSA
.

¯_(ツ)_/¯

sir can you make these program to scan only addresses and match with own database addresses......will be faster!!!!.....as no need to check balances?


Teams Rooms Install Script

Link to setup script "CreateSrsMedia.ps1" is unavailable. (404)
An old copy of the script was unusable due to the required Windows 10 version being unsupported and unavailable.
While I assume it may have been removed for tweaking -- I open this Issue to bring light on the problem and seek remediation.
Thanks,
-Stephen

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

ID: 6f8b204f-9650-d268-8566-7a75ba0a1b6a
Version Independent ID: 9a963e63-6716-7522-8abe-c8a407d3a46d
Content: Configure a Microsoft Teams Rooms console - Microsoft Teams
Content Source: Teams/rooms/console.md
Service: msteams
GitHub Login: @dstrome
Microsoft Alias: dstrome

Thanks for the feedback. We're tracking this in #7135


use of undeclared type "SpringImageView"

use of undeclared type "SpringImageView"
am really new to swift so what shall i do? please help

If you have already included the Spring framework, try to write
import Spring
at the top of the Swift file where you want to use the SpringImageView :+1:

i added import Spring and still getting the error..
i only moved the spring file to my project and i didnt add anything.. am i missing something?

Please make sure to select Create groups and copy items if needed when dropping the Spring folder.
Thanks! Meng
On Mon, Jul 6, 2015 at 2:27 PM, oshiltawi<EMAIL_ADDRESS>wrote:

i added import Spring and still getting the error..
i only moved the spring file to my project and i didnt add anything.. am i missing something?
Reply to this email directly or view it on GitHub:
https://github.com/MengTo/Spring/issues/80#issuecomment-118947979

thank you allot! 1 more thing my image doesn't animate do i have to write some codes? or i can just use spring image view to animate it

In storyboard make sure to enable auto start. In code, use animate()
Thanks! Meng
On Mon, Jul 6, 2015 at 2:36 PM, oshiltawi<EMAIL_ADDRESS>wrote:

thank you allot! 1 more thing my image doesn't animate do i have to write some codes? or i can just use spring image view to animate it
Reply to this email directly or view it on GitHub:
https://github.com/MengTo/Spring/issues/80#issuecomment-118951904

i know i am a pain.. am really sorry its showing another error
http://i.imgur.com/FucacJr.png

EXC_BAD_ACCESS usually means, that an object is not initialised or already released.

thanks for your reply but i dont know what to do

That's hard to tell without seeing the code. It can be nearly everything and isn't directly related to the Spring framework.

http://i.imgur.com/lmFfes9.png

Maybe your SpringImageView is not connected to the Storyboard.

hmm if you would like to tell me the solution it will be amazing.
thanks

anyone?

Since the initial issue seems to be solved, I'll close it.
If you have any other issues related to the Spring framework, please let us know :+1:


Configure dir walker for "go to file"

see issues #1779 and #1605

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

Codecov Report

Merging #1780 (4a141eb) into master (5bc1e95) will increase coverage by 0.03%.
The diff coverage is 0.00%.

 Learn more

Thanks!


LWC packaging

Depends on #3.
An SBT task which packages an LWC into a neat tarball, has nothing quasar-s3-specific in it, is thoroughly documented and logs.

much documentation such comments :dog: wow


Adding RenFacScheme Getter

There is currently no way to access the current factorization scheme that MELA uses at any given point. This fixes that.
I've mimicked the pipeline of set_RenFacScheme to have get_RenFacScheme (it goes through ZZMatrixElement then through TUtil), where it returns the TVar::event_scales_type that someone can then access on their own.

One more request: get functions should have the const keyword associated. If possible, they should also return const-reference (I leave it to you to find out why).

This has been done.

One more request: get functions should have the const keyword associated. If possible, they should also return const-reference (I leave it to you to find out why).

This has been done.

What I meant was the function qualifier, not just the qualifier of its return type.

Please reopen a new PR reverting #46 and implementing the above comment.
In general, please do not push and/or flag as done before you are sure MELA actually compiles.


Eager Loading One-to-Many Relationship in Laravel Returns Empty Collection Despite Data Being Present

Laravel Version
11.14.0
PHP Version
8.2.12
Database Driver & Version
MySQL 8.0 on XAMPP
Description
I'm facing an issue with eager loading in Laravel where a one-to-many relationship returns an empty collection, even though there is data present in the database. The same relationship works correctly when accessed using lazy loading.
I have two models, Institution and Social, where an Institution has many Socials. Despite there being related records in the socials table, eager loading of the socials relationship returns an empty collection. However, the same relationship returns data when accessed lazily.
The $institution->socials relationship works as expected when accessed using lazy loading (e.g., $institution->socials outside of load).
The issue occurs specifically with eager loading.
Steps To Reproduce
Social Model:
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Social extends Model
{
    use HasFactory;

    public function institution()
    {
        return $this->belongsTo(Institution::class);
    }
}

Institution Model:
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Institution extends Model
{
    use HasFactory;

    public function socials()
    {
        return $this->hasMany(Social::class);
    }
}

Controller Code:
public function show(Institution $institution)
{
    $allInstitutions = Institution::whereNotNull('rank')
                                  ->where('category_id', $institution->category->id)
                                  ->orderBy('rank')
                                  ->get();

    $institution->load([
        'schooltype',
        'category.institutions',
        'term',
        'catchments',
        'state.institutions',
        'state.region.institutions',
        'socials',
        'levels.programs' => function($query) use($institution) {
            $query->wherePivot('institution_id', $institution->id);
        }
    ]);

    dd($institution->socials); // Returns empty collection
}

Database Schema
--Institutions Table

CREATE TABLE institutions (
    id VARCHAR(255) PRIMARY KEY,
    -- other columns
);

--Socials Table

CREATE TABLE socials (
    id INT AUTO_INCREMENT PRIMARY KEY,
    institution_id VARCHAR(255),
    -- other columns
    FOREIGN KEY (institution_id) REFERENCES institutions(id)
);

Query Log: Verified that the SQL query for loading socials executes correctly, but the collection returned is empty.
dd(DB::getQueryLog());

Direct Query: Manually querying the socials table shows that records with the correct institution_id are present.
$socials = Social::where('institution_id', $institution->id)->get();
dd($socials);

Cleared Caches: Used php artisan cache:clear, php artisan config:clear, and other cache clearing commands.
Data Integrity: Checked that the foreign key relationship is set up correctly and that the data in the socials table matches the institution_id.
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

Testing in Isolation: Tested the eager loading in isolation to see if other parts of the code are affecting the results:
$institution = Institution::find($id);
$institution->load('socials');
dd($institution->socials);

Using
Laravel 11,
XAMPP 8.2 (PHP 8.2, Mysql 8.0)
Thanks

can you please listen to QueryExecuted event and print all the executed queries?
use
Log::info($queryExecuted->connection
->query()
->getGrammar()
->substituteBindingsIntoRawSql($queryExecuted->sql, $queryExecuted->connection->prepareBindings($this->bindings)));
Would be a good ideea if you would define all your relations with all params and not let laravel guess them for you.

Also, instead of using load I would use ->with() on the query builder.

Also
public function show(Institution $institution)
{
$allInstitutions = Institution::whereNotNull('rank')
->where('category_id', $institution->category->id)
->orderBy('rank')
->get(); // collection here
$institution->load([
    'schooltype',
    'category.institutions',
    'term',
    'catchments',
    'state.institutions',
    'state.region.institutions',
    'socials',
    'levels.programs' => function($query) use($institution) {
        $query->wherePivot('institution_id', $institution->id);
    }
]);

dd($institution->first()?->socials);// try this

Hey there, thanks for reporting this issue.
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?
Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
laravel new bug-report --github="--public"

Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.
Thanks!

@bridgeyuwa Did you set the required properties for string primary keys?
class Social extends Model
{
    public $incrementing = false;

    protected $keyType = 'string';
}

@bridgeyuwa Did you set the required properties for string primary keys?
class Social extends Model
{
    public $incrementing = false;

    protected $keyType = 'string';
}

I remember this was an issue on another thread. I missed the fact that the id is a varchar. Great spotting.

@bridgeyuwa I had this issue before with the primary key not being int and the relations would not load. See also this https://github.com/laravel/framework/discussions/51135#discussioncomment-9166143
Your institution id being string, if you put it int it will not load the relations. Anyway you confirmed this is not the case, so it must be something in laravel 11. I never had this issue in 8 9 10. If it works in 10 for example then it is clearly a l11 bug.

I don't have laravel 11 locally. Until 12 is out, I'll not set 11 locally for stability reasons.

n't have laravel 11 locally.

I understand your concerns about stability. However, being an early adopter of Laravel 11 can be quite beneficial. The codebase in Laravel 11 introduces some significant changes compared to previous versions. Getting familiar with these updates early on can help ease the transition to future versions, such as Laravel 12, and give you a head start in adapting your projects

You've given an example of loading this, which seems to have nested "institution" relations.
    $institution->load([
        'schooltype',
        'category.institutions',
        'term',
        'catchments',
        'state.institutions',
        'state.region.institutions',
        'socials',
        'levels.programs' => function($query) use($institution) {
            $query->wherePivot('institution_id', $institution->id);
        }
    ]);

What happens if you just load the "socials" relation, or preferably use the "with" approach when building your initial query?
Are you certain that the "id" you're passing in actually has a Social associated with it?

Maybe I'm misunderstanding you, but with() can absolutely be used on a single instance.
E.g.
User::where('email', 'joe@microsoft.com')->with('teams')->first()

Would return the User model "Joe", and any "Teams" relations.
I'm trying to replicate the issue you're presenting, and I've got a combination of UUID (Char 36), ULID, and BigInt primary keys, with a mixture of relations, but I haven't managed to break it in the same way that you're demonstrating.

A question still remains, Why the lowercase cast?

@bridgeyuwa  - Interesting find!
I know that Laravel converts column names to lowercase, but wasn't aware it was also converting the values.  It makes sense given that some collations will throw a hissy fit.  And makes sense from a non-case-sensitive approach with indexing etc, but interesting to know.
I tend to use UUIDs/ULIDs for the most part, as a lot of the data is re-used across dozens of instances.

I can't reproduce this issue on a properly configured table, i replaced most of the query with CONFIDENTIAL but the bindings can still be seen.
The releation is self-referencing the same table, everything works like a charm, even with the format that we use in production: "ADV000000" it still searches as "ADV000000".
> CONFIDENTIAL::with('test')->find('TESTING')
= null

> DB::getQueryLog()
    [
      "query" => "select * from "CONFIDENTIAL" where "CONFIDENTIAL_id" = ? limit 1",
      "bindings" => [
        "TESTING",
      ],
      "time" => 1.49,
    ],
    [
      "query" => "select * from "CONFIDENTIAL" where "CONFIDENTIAL_id" in (?)",
      "bindings" => [
        "ADV1430468",
      ],
      "time" => 0.63,
    ],

This table is in production since Laravel was version 8 we went through all of the weekly updates and from version to version and never had an issue.

This is the output from your repo.

Hey there,
We're closing this issue because it's inactive, already solved, old, or not relevant anymore. Feel free to open up a new issue if you're still experiencing this problem.

For the record this is the answer https://github.com/laravel/framework/issues/52201#issuecomment-2291639293


MessageBox result closes application

I'm trying to use the AdonisUI.Controls.MessageBox for my AutoUpdater, but even though the result is true in the if statement, the code keeps going on until the OnExit event.
For example: I click on Yes when it asks me to update, and instead of showing the Window, it closes the application
 messageBox = new MessageBoxModel{
                            Text = $@"There is new version {args.CurrentVersion} available. You are using version {args.InstalledVersion}. Do you want to update the application now?",
                            Caption = @"Update Available",
                            Icon = AdonisUI.Controls.MessageBoxImage.Information,
                            Buttons = MessageBoxButtons.YesNo(),
                        };

                        AdonisUI.Controls.MessageBox.Show(messageBox);

if (messageBox.Result.Equals(AdonisUI.Controls.MessageBoxResult.Yes) || messageBox.Result.Equals(AdonisUI.Controls.MessageBoxResult.OK)) {
                        try
                        {
                            if (Models.AutoUpdater.DownloadUpdate(args))
                            {
                                AutoUpdateWindow autoUpdateWindow = new AutoUpdateWindow();
                                autoUpdateWindow.Show();
                            }

                        }
                        catch (Exception exception)
                        {
                            AdonisUI.Controls.MessageBox.Show(exception.Message, exception.GetType().ToString(), AdonisUI.Controls.MessageBoxButton.OK, AdonisUI.Controls.MessageBoxImage.Error);
                        }
                    }

It seems like it closes the application because I don't have an active window at that moment, since I'm using them in App.xaml.
Is there a way to do so?

New update: by debugging several times, I discovered that when it calls autoUpdateWindow.Show(), it raises the OnExit event of the App.xaml
Still looking for a way to fix this tho

I'm not sure this is specific to AdonisUI. This can happen when opening/closing a dialog when you don't have a main window open. Your best bet would be to enable explicit shutdown using the Application.Shutdown property: https://docs.microsoft.com/en-us/dotnet/api/system.windows.shutdownmode?view=windowsdesktop-6.0#system-windows-shutdownmode-onexplicitshutdown


Loading resources containing typed Dictionarys with values of type Resource causes a parse error

Tested versions

Reproducible in v4.4.dev2 [97ef3c837] and later snapshots (tested in v4.4.dev2, v4.4.dev5, v4.4.dev6, and v4.4.dev7)
Not reproducible in earlier versions, as support for typed dictionaries had not been added yet.

System information
Godot v4.4.dev7 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated Quadro M2200 - Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 threads)
Issue description
When using the load function to load a .tres file containing a typed Dictionary with values of type Resource (e.g. Dictionary[int, Resource]), the resource fails to load and the following errors are present:
E 0:00:01:0172   main.gd:5 @ _ready(): user://save.tres:7 - Parse Error: Expected ']'
  <C++ Source>   scene/resources/resource_format_text.cpp:41 @ _printerr()
  <Stack Trace>  main.gd:5 @ _ready()

E 0:00:01:0172   main.gd:5 @ _ready(): Failed loading resource: user://save.tres. Make sure resources have been imported by opening the project in the editor at least once.
  <C++ Error>    Condition "found" is true. Returning: Ref<Resource>()
  <C++ Source>   core/io/resource_loader.cpp:323 @ _load()
  <Stack Trace>  main.gd:5 @ _ready()

The expected behavior is that the resource loads successfully without errors.
The issue does not occur when using a class that inherits Resource. For example, using a custom class called CustomResource that extends Resource will not cause the error.
Additionally, adding an extra mismatched closing square bracket to the .tres file stops the error as well:
data = Dictionary[int, Resource]]({})

Steps to reproduce

Download and open the minimal reproduction project
Run the project
Check the Errors tab of the debugger, the above errors appear
In SaveData.gd, replace Dictionary[int, Resource] with Dictionary[int, CustomResource]
Run the project again and check the debugger, the errors are no longer thrown

Minimal reproduction project (MRP)
resource-loading-error.zip

I opened a pull request to solve this issue.


Adding try catch to linkedin return string.

Adding try catch to handle exceptions generated when url is not defined, specifically when a user clicks on cancel button it throws and exception on iOS.

Looks good!
Probably a silly thing to ask, but can I receive confirmation that you've tested that this works?
Thanks,

Yes, Tested on iOS 9.2 in iphone 6+, and iOS Emulator.

Thank you for contributing!


macos: tweak fsevents event delivery

Pointed out by @vtjnash in https://github.com/libuv/libuv/pull/3863#discussion_r1053424899:

Libuv calls FSEventStreamCreate() with latency = 0.05 (50 ms) - affects event coalescing. Not sure if it should be bigger or smaller.

Libuv discards events from before the uv_fs_event_init() call. Maybe it shouldn't.

Libuv doesn't call FSEventStreamFlushSync (or the async version.) Maybe it should (edit: but note it was removed intentionally in #1349)

Hopefully with the right tweaks event delivery gets more deterministic.

Can I work on this?

@bharsaklemukesh975 sure, go for it

@bnoordhuis Thanks, I will work on fsevents event delivery.

Changes I should do:

Libuv should not discards events from before the uv_fs_event_init() call.
Libuv should call call FSEventStreamFlushSync

right?

@bharsaklemukesh975 I'd rephrase that as: think about whether it makes sense to make those changes, because the changes themselves are fairly trivial. The important part is to think through the consequences and ramifications.
To take (2) as an example: should libuv discard those events? If yes, why? If not, why not? How are existing programs affected?

I’ll adjust some knobs and see how that works.


Scroll outside of bounds

Hello again, more questions!
I'd like to be able to scroll past the bounds of the image. Like if I'm zoomed in so the image is covering the entire screen, there is no way to scroll past the edge of the image.
I can set up so I can zoom out past the edges of the image using setMinimumScaleMode and setScaleLimits, but I still haven't figured out how (if even possible) to override the scrolling?

the latest release offers this feature


Razor Components JSInterop and Debug topics

Addresses #10717
Ye 'olde review topicals:

JS Interop
Debug

Moved to:

https://github.com/aspnet/Docs/pull/11314
https://github.com/aspnet/Docs/pull/11329


db.rel.findHasMany is not working

Finding it difficult to implement db.rel.findHasMany.  Can i get a detailed example of how it can be implemented?

same still not working for me, i'm trying to use queryInverse, added the index, but still not functioning.
Possible to get more examples ?

db.rel.findHasMany is actually working with an index
store.products = await Promise.all(     products_1.map(async (product: Product) => {       return {         ...product,         tasks: await relDB.rel           .findHasMany("tasks", "product", product.id)           .then((result) => {             relDB.rel.parseDocID(product.id).id;             console.log({ result }, "result.tasks", product.id);             return result.tasks;           }),       };     })   );

We use it it ember-pouch: https://github.com/pouchdb-community/ember-pouch/blob/0b7ebc6ee2dc45534acb38e1b5afc29bb11b125e/addon/adapters/pouch.js#L396
And we setup the index here: https://github.com/pouchdb-community/ember-pouch/blob/0b7ebc6ee2dc45534acb38e1b5afc29bb11b125e/addon/adapters/pouch.js#L248


JMX/Camel - Implement copy method name & Jolokia URL actions

We still haven't implemented the following actions in the JMX Operations view:

Copy method name
Copy Jolokia URL

Related to but not a duplicate of #273.

cc @joshiraez

I'll be picking this up after finishing the chart component

We'd like to have it in 0.3.0 so I'll take it. @joshiraez Please focus on #195 instead next, if you don't have other important tasks after Chart.

Hey Tada, I'm halfway here and I realized is for 0.3.0 and we need it for
the end of June.
Do you mind letting me finish it please?
El lun, 19 jun 2023 a las 11:48, Tadayoshi Sato @.***>)
escribió:

We'd like to have it in 0.3.0 so I'll take it. @joshiraez
https://github.com/joshiraez Please focus on #195
https://github.com/hawtio/hawtio-next/issues/195 instead next, if you
don't have other important tasks after Chart.
—
Reply to this email directly, view it on GitHub
https://github.com/hawtio/hawtio-next/issues/278#issuecomment-1596865943,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEEIPLHOOUZS5AQAZMXZH6LXMAN6LANCNFSM6AAAAAAXZPKM6A
.
You are receiving this because you were mentioned.Message ID:
@.***>


Accessing attributes of Y::Text inside ruby

Hello,
First place, amazing project you've got!
I am using yrb with rails, alongside quill and yquill on my frontend.
I have customized some attributes of quill to generate custom html formats inside my editor via Blocks.
However yquill serializes all the data into Y::Text and sends it to the WebSocket.  On my rails backend on the other hand, If I try to access the attributes of Y::Text it doesn't give me the option at all (e.g.: if I wanted to generate a PDF for download in my backend, I would have no way to access the attributes of the custom quill format I created).
Steps you can take to reproduce:
ydoc = Y::Doc.new
text = ydoc.get_text("quill")
ydoc.transact do
  text << "Hello"
  text.format(0, 4, {CustomTheme: "Format01"})
end

now the text object has no accessor method to lookup the format I just set.
From the original docs, there is a way to at least recover it by iterating over the deltas: https://docs.yjs.dev/api/shared-types/y.text
The only way I found so far with yrb is to somehow observe the mutations as they happen. However this is  not a solid plan as this would grow exponentially due to the amount of documents on my system.
Is there way good way to retrieve the formats for a text object? If there isn't and it requires implementation, I'd be more than glad to help implement it (just need a little guidance).

Hey,
@ArglosStudios thanks for reporting. I think this is a simple case of nobody requested that feature so far 😅. I think the most straightforward way would be to implement text.diff, the same way yrs supports it -> https://docs.rs/yrs/0.17.4/yrs/types/text/trait.Text.html#method.diff. Do you  think that would somewhat cover your use case? It might not be the most ergonomic way of dealing with formatting, but we could think about mitigating that in the Ruby. We need to implement a wrapper struct (or two structs for Diff and Change), and map the result into those structs. If you want to, please take a stab at it.

@eliias implementation looks really good (still going though the rust code since I am not too familiar with rust).
I will test the implementation later today on a dev environment.

With the proposal, I think assembling a documents final state would be something similar to:
new_document = Y::Doc.new
diffs = new_document.diff(current_document) # current document would be the edited document that has text and formats
new_document.restore(diffs)

new_document.get_text("quill").diff do | d |
 pp d.to_s
 pp d.attributes
end

is my understand correct ?

been toying with it.
Disregard my previous question.
I can easily reconstruct a document by using the implementation you've provided.
e.g.:
ydoc = Y::Doc.new
text = ydoc.get_text("quill")
text.insert(0, "hello", { format: "bold" })
text.insert(5, "world", { format: "italic" })
text.diff.each do |d|
  pp d.insert
  pp d.attributes
end

# prints:
#"hello"
#{"format"=>"bold"}
#"world"
#{"format"=>"italic"}

text.slice!(5..10)
text.diff.each do |d|
  pp d.insert
  pp d.attributes
end

# prints
# "hello"
# {"format"=>"bold"}

this is perfect for me :D

Sweet. Give me some time to clean up, and then I will break a new release.


problem when installing transformers-domain-adaptation

I have already manually installed the torch(version 1.7), but it still shown this error when I run.
ERROR: Could not find a version that satisfies the requirement torch<1.8,>=1.7 (from transformers-domain-adaptation) (from versions: 1.9.0, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch<1.8,>=1.7

use python 3.8


[Experiment] - Slice "delta" computation prototype

So we have a slice of the ethereum state valid for a given root (and subsequently a block), this exercise  points to get the best algorithm to determine the difference of the same slice for a different rule. This way, we can schedule the trie-node requests to update our slice. Get it?

Archiving this requirement


Added Lakshit.json

Added my json file, please check and accept it if its right and add the hacktoberfest-accepted label if any such things has to be done.
Thankyou!!!

I would like to ask that why this was not counted in my hacktoberfest PRs ?? any idea ... please help?


LED is not getting on in esp-idf/tree/master/examples/get-started/blink (IDFGH-4464)

Hi,
I am trying to blink an led on esp32s2 using example code in espidf. I programmed blink.c but the led is not blinking or even turn on. I have configured GPIO5 in menuconfig for LED. Also, the voltage on pin is 1.8V.
Please let me know any configuration I am missing
Thanks
Dipali

Hello @DipaliDh

which board are you using?
have you tried another GPIO? Maybe GPIO5 is already used for something else on your board?
are you sure the code is running? Do you get the correct output on the serial console? E.g.

Turning on the LED
Turning off the LED
...

Thanks
Felix

Hi, @felmue

I am using ESP32-S2-Saola-1_v1.2.
I also tried using another gpio. but it did not work.
The code is running and I am getting output on the serial monitor, i.e. Turning on the LED
Turning off the LED
But led is not getting on in the hardware

Hello @DipaliDh
hmm, that is strange. Maybe the LED is defective? Can you tell me how you've connected the LED?
Thanks
Felix

Hi, 470ohms resister is connected to the anode, and it's connected on gpio. A cathode is grounded.
Thanks
Dipali

Hello @DipaliDh
and I assume the LED lights up when you connect it to 3.3v and ground?
Thanks
Felix

Hi @felmue
I will test the LED with 3.3V... Now, doing another task so couldn't test it ...thank you for your help

Hi @DipaliDh,
are you still experiencing the issue?
If so, can you measure the voltage on the pin with nothing connected?
You should see a changing voltage between 0V and 3.3V.
This would rule out a possible overload and ensure you are connecting the LED to the correct pin.
If the above doesn't help you fix the issue would you mind posting a picture of your setup?
Thank you
Jan

Hi @DipaliDh,
are you still experiencing the issue?
If so, can you measure the voltage on the pin with nothing connected?
You should see a changing voltage between 0V and 3.3V.
This would rule out a possible overload and ensure you are connecting the LED to the correct pin.
If the above doesn't help you fix the issue would you mind posting a picture of your setup?
Thank you
Jan

This doesn't seem to an IDF bug and there is no recent activity discussing it. Therefore, I'm closing it.


Fixes to_json geo_location conversion in models.

This is an emergency fix as the to_json calls were failing.

I guess the tests don't address that yet?

Was wondering about that


privacyidea: 3.7.2 -> 3.7.3, fix build

Description of changes

Things done
ChangeLog: https://github.com/privacyidea/privacyidea/blob/v3.7.3/Changelog Failing Hydra build: https://hydra.nixos.org/build/190981743

Disable tests of werkzeug since a lot of it is now failing with unclosed file handle (partly just randomly) which is an indicator for a broken test-suite. Dependency updates that would help us to get rid of this hackery are apparently in progress upstream[1].

Disable checkPhase for Mako since it now requires lingua as checkInput, but it'd require click>8, however we use v7 here for the older flask. To avoid even more dependency chaos, I decided to just turn off the tests here.

Update disabled tests for privacyidea itself: a few tests are either removed or succeeding now (perhaps because we now set $HOME now for tests ;-) ). Documented on the remaining tests why they can't work in a nix-build.

[1] https://github.com/privacyidea/privacyidea/issues/2876

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg eval


Platform base

Subprojects, makefile, readme

@tomaszszymanski129 Why exactly do we need to use Makefile? The fewer things you have to install on your machine to use saleor-platform, the better. Also, it is additional maintenance for us to keep this file and its Windows version.


Don't show clear text password in databaseview/show

Seems like https://github.com/airbnb/caravel/pull/355 (accidentally?) got reverted in https://github.com/airbnb/caravel/pull/298
Original issue: https://github.com/airbnb/caravel/issues/354 (I am experiencing this on 0.10.0)
Idea:
Maybe one could use show_exclude_columns to not show the password, but still show some additional properties such as "Changed By"?

thx for the report @AndreasMeisingseth. taking a look at this today.

fixed with https://github.com/airbnb/caravel/pull/748

Thanks for the fast reply & PR @ascott