WR02 doesn't boot

After finally learning to flash these things (https://github.com/libretiny-eu/ltchiptool/issues/5) i proceeded to building esphome for my device. And it doesn't boot up. I made this minimalist .yml for testing:
esphome:
  name: yndx-0007

libretiny:
  board: wr2
  framework:
    version: latest
  # verbose/trace/debug/info/warn/error/fatal
  loglevel: debug
  # suppress chip's SDK log messages
  # (same as LT_UART_SILENT_ALL above)
  sdk_silent: false
  # disable SWD/JTAG so that all GPIOs can be used
  # set to false if you want to attach a debugger
  gpio_recover: false

logger:
api:
  password: ""
ota:
  password: ""

wifi:
  ssid: "MyWifi"
  password: "TopSecret"
  ap:
    ssid: "yndx-0007"
    password: ""

captive_portal:
web_server:

And... Here goes nothing! I get no new IP on wifi; no AP, nothing. Silence. The boot log says only this:
ROM:[V0.1]
FLASHRATE:4
BOOT TYPE:0 XTAL:40000000
IMG1 DATA[1168:10002000]
IMG1 ENTRY[8000541:100021ef]
IMG1 ENTER
CHIPID[000000ff]
read_mode idx:0, flash_speed idx:0
calibration_result:[1:9:9][5:d]
calibration_result:[2:13:7][1:d]
calibration_result:[3:3:3][1:3]
calibration_ok:[2:13:7]
FLASH CALIB[NEW OK]
OTA2 ADDR[80d0000]
OTAx SELE[fffffffc]
OTA1 USE
IMG2 DATA[0x8073b90:3720:0x10005000]
IMG2 SIGN[RTKWin(10005008)]
IMG2 ENTRY[0x10005000:0x8033c55]
===== Enter Image 2 ====
System_Init1
OSC8M: 7fea9f
boot reason: 0
System_Init2

I guess this means the application isn't alive. Shouldn't it say at least "Hi" on the debug log ? Note i've cranked up all the debug options.
I am flashing the device using "python -m esphome upload wr02-basic.yml", so it shouldn't be wrong file chosen.

And here comes the first problem. I've found a generated C++ code, and right in the beginning it says:
  logger_logger = new logger::Logger(115200, 512);
  logger_logger->set_uart_selection(logger::UART_SELECTION_UART0);
  logger_logger->pre_setup();
  logger_logger->set_component_source("logger");
  App.register_component(logger_logger);

which is obviously wrong, since i want UART2. Anyways UART0 pins are occupied by other functions (LED and button). But the framework doesn't let me select it! According to original ESPHome docs, i write in my UML:
logger:
  hardware_uart: "UART2"

And the python script swears at me:
Failed config

logger: [source wr02-basic.yml:18]

  Unknown value 'UART2', did you mean 'UART0'?.
  hardware_uart: UART2

Something unsupported/unimplemented ?

The current version considers "UART0" as the default UART port. To choose other ports you have to use SERIAL# instead of UART#.  This will be fixed in the future (feature/libretiny-prerelease branch, you can test it already if you want).
The "default" port, however, is chosen based on the available pins. Since your board has the TX2/RX2 on the back, and it's not programmed into the pinout diagrams, LT considers it as unavailable, and chooses UART1 as the default output port. This should be fixed as soon as I add the correct pinout.
TL;DR use generic-rtl8710bn-2mb-788k instead. It has all the pins available.

Just found out SERIAL2, tried this setting, the same result. Well, going generic...

board: generic-rtl8710bn-2mb-788k
hardware_uart: "SERIAL2"
Worked, i am getting signs of life. But it crashes at "Starting wifi scan", i guess that's another story


Completed the unfinished code

Fixes #2 by completing the unfinished code in 'scraping notebook.ipynb' and saving it as 'Scrape_Data.csv'.

Great Job on completing the Issue @Arg-10!

Thanks for merging :)


Fixing Vbutton 1-frame delay

Relocating Vbutton tick to be above player tick to fix 1-frame delay response in Vbutton verbs

Messed up by stacking multiple commits in the same branch. Will resubmit these two separate issues as separate PR's


updating ERC20Detailed to inherit from ERC20, not IERC20.

Fixes #1536

Changing ERC20Detailed to inherit from ERC20 instead of IERC20 to better match the other ERC20X contracts and to allow a token to inherit only ERC20Detailed instead of both ERC20Detailed and ERC20.

Closing this as it might warrant more discussion


Automated cherry pick of #295: Update config file names Cherry pick of #295 on v1.0-branch. #295: Update config file names

/lgtm

INFO     root:util.py:72 failed to build kfApp from URI /mnt/test-data-volume/kubeflow-kfctl-presubmit-kfctl-upgrade-316-26655db-2024-8ac8/kfctl-0ee8/tmp.yaml: couldn't generate
KfApp:  (kubeflow.error): Code 500 with message: kfApp Generate failed for kustomize: kustomize generate failed Error:  (kubeflow.error): Code 500 with message: couldn't copy app
lication kfserving-gateway

It actually test against kfdef v1.0.0 which uses v1.0.0 manifest. I remember v1.0.0 doesn't have kfserving-gateway yet, it's been added to v1.0.1?
One thing we can do is update to v1.0.2. Once this https://github.com/kubeflow/manifests/pull/1111/files is merged, this one should be unblocked

/retest

/approve

/approve

/lgtm
/approve


On release created now activates a pre-release push to docker and nuget

Breaking change

Proposed change

Trigger pre-releases when new releases are created from the dev-branch
Type of change

[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (which adds functionality to an existing integration)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue:
Link to documentation pull request:

Checklist

[ ] The code change is tested and works locally.
[ ] Local tests pass. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the [development checklist][dev-checklist]
[ ] The code compiles without warnings (code quality chek)
[ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated for www.home-assistant.io

I am not sure the edited trigger is needed but I think so since new PRs updates the release


Incorrect Validation in Graph class

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
On github, in langgraph/langgraph/graph/graph.py:
97   class Graph:
...
241     def validate(self, interrupt: Optional[Sequence[str]] = None) -> None:
...
259         for source in all_sources:
260             if node not in self.nodes and node != START:
261                 raise ValueError(f"Found edge starting at unknown node '{source}'")

Error Message and Stack Trace (if applicable)
N/A
Description
node in line 260 of langgraph/langgraph/graph/graph.py should instead be source to properly validate that all edges have a known source.
System Info
N/A

This has been fixed in #442


Support npm package aliases

https://github.com/npm/rfcs/blob/main/implemented/0001-package-aliases.md
https://gitlab.com/fluidattacks/universe/-/jobs/3625766243
Related to #860

as a workaround, declaring the aliased package works

Addressed in https://github.com/fluidattacks/makes/issues/1043


Export Attribute not working in C#. Not showing any variables in Inspector.

Godot version:
Latest Beta2 from the Website
OS/device including version:
Windows 10
Issue description:

Steps to reproduce:
See the image below. All I did was create a C# script in Godot and added it to a Sprite and when tried to use the Export Attribute(on both private and public variables and also recreated the Sprite and the Script), but it just doesn't work. ??  [ I haven't tried creating a new project and trying yet. Trying more things/alternatives. ]

[x] I searched the existing GitHub issues
for potential duplicates.

You need to build the project every time you add, remove or modify an export variable because they aren't seen by godot until the project is built.

I think this is a duplicate of #12518

Yes, it's a duplicate. Note that I plan to make the editor build the project automatically. I just have other stuff to focus on first.

You need to build the project every time you add, remove or modify an export variable because they aren't seen by godot until the project is built. This is a C# only issue.

thanks, I forgot this kkkkkkk

You need to build the project every time you add, remove or modify an export variable because they aren't seen by godot until the project is built. This is a C# only issue.

Thank you so much for this answer! Just got started with Godot Mono, and I had this problem, this fixed it! Thanks again!

For someone who happens to stumble upon this, the attributes will not show (and the script won't be applied at all) if the class name doesn't match the file name. This is easily overlooked, although it is briefly mentioned in the docs https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_basics.html#example

Please check the other issue that this is a duplicated of for context


250 error - Giveup

if i am sending email i got the below error
Expected response code 250 but got code "530", with message "530 From/Sender name is not valid " Log data: ++ Starting Swift_SmtpTransport << 220 mail.mydomainname.in ESMTP Postal/VJ9FDP >> EHLO apps.mydomainname.in << 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN >> AUTH CRAM-MD5 << 334 PGRmYjVmNDgyMWE5ZDU4ZjAxZjdmQG1haWwubWFpbGxlYWRlcnMuaW4+ >> bWFpbGxlYWRlci9tYWlsbGVhZGVyIDY5NmU5NDJkMDlkY2Q5ODIyZjkzMjg4ZTZmOWYxNjU5 << 235 Granted for maille/maille ++ Swift_SmtpTransport started >> MAIL<EMAIL_ADDRESS><< 250 OK >> RCPT<EMAIL_ADDRESS><< 250 OK >> DATA << 354 Go ahead >> . << 530 From/Sender name is not valid !! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid " (code: 530)

'From/Sender name is not valid' implies that your domain may not be verified for the credential used so you should also check that mydomainname.in is part of your mailleader/mailleader server.
P.S. you should remove the base64 strings above and change your credential as the credential is in there.

base64 strings from which credential ? you mean from postal? if yes there where?

The opening comment of your issue contains base64 strings in your error which evaluate to the credential you're using for your Postal. For security, you should change that credential and remove the strings from the error.

my domain is verified but i got 250 error.
For more information: from where i am sending email that system work properly with other SMTP but if i use poster SMTP i got 250 error and showing give up
What will be the solution?

250 isn't an error code, can you send a screenshot of what you are seeing?

i already send complete error msg..please check above msg
i got same error msg

Then make sure that the domain is in the same organisation that has the credential.

Yes, it's a same domain organisation.

Then the only other thing that might be wrong is if you have entered the wrong password. If you've definitely entered the right details then you've missed something somewhere that we've already covered.


support php 8.4

need https://github.com/vimeo/psalm/pull/10928

Hello @nikow13!
Thanks for your contribution, we need to wait psalm I think to see if all tests will be green


Recheck PRs doesn't check all pull requests

Hello,
Thanks for providing CLA assistant to the public for free. I found it incredibly handy.
The recheck PR feature is incredibly handy for repositories where the CLA is added afterwards, but it does not check all PRs, as can be seen in this picture:

Is this issue already solved for you? I couldn't find any open PR without status from CLA assistant in your repo...

@KharitonOff I accidentally deleted a branch which the PRs in question were based on, thus closing those PRs. By reopening the PRs one by one, cla-assistant was triggered and the status appears again.
As far as I am aware, this is still a bug.

@KharitonOff Thanks for the fix! :)


chore(Packit): Add missing ci.fmf to synced files

Missing ci.fmf sync causes fedora message being not recognized
in dowsntream and thus expected tests to be marked as failed
even when tests might be run and passing.
Signed-off-by: Tibor Dudlák<EMAIL_ADDRESS>

I'm not very familiar with this packit/tmt/tf settings yet. What is the impact of this file not being synced? Aka what issue it is fixing?

I will update commit message with same text as in PR description.


Allow use of poison 4.0

Just a tiny tweak to allow the use of Poison 4.0 (which works fine) without an override.

@garyf 👍


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>

:tada: This PR is included in version 7.7.12 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


do not force set the api logger to log.Printf

the logger already defaults so do not force set it in SetAPI since that would overwrite one I set in the API before calling SetAPI

@djgilcrease  This one just needs an update with regenerated bindata


Search by Owner on Archived + Search Version Level by keyword

https://issues.redhat.com/browse/RHOAIENG-14022
https://issues.redhat.com/browse/RHOAIENG-13056
Description

RHOAIENG-14022  : See screenshot showing that the filer is now working in Archived Models by Owner - Results when there is a match vs no results when not match

RHOAIENG-13056 See screenshot showing that a model that has a version coming back by that keyword and is showing up by that version label even on the model level search by Keyword

How Has This Been Tested?

On the UI
Test Impact

Added tests for the hook and fixed other tests
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[x] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

/retest


Tooltip for Information that is not rendered because we have an opinionation in place

In several spots we decided to not render information into the datamodel if it matches some internal opinionation. This is done to keep the datamodel simple and not pollute it with too much information for beginners. In these cases it would be nice to have a hover tooltip that spells out the suppressed information.
Example:
Native types.
model Test{
    int   Int       @db.Integer
    text String @db.VarChar(1337)
}

We would not render the @db.Integer because that's our default type for that scalartype. The native type on the text field would be rendered though since it deviates from the default.
There are similar mechanics for index names I think.
Also m2m relations are an opinionation which could explain how they're implemented.

I'm sure if we ask around a bit we can find more cases where this would be helpful.

I'm sure if we ask around a bit we can find more cases where this would be helpful.


Adding Instagram

Open sourcing Instagram connector created by Microsoft team.

@sriyen-msft please review, as well.


Disappeared from the ecosystem

AWS::Session depends on this for parsing INI files, but I noticed that this module is no longer available for zef to install.

If you're looking for someone to take over maintenance, I'm willing.

And it's back.


--p2p-host does not accept dns-names "valid advertisement host required"

Description
For users with a dynamic IP-address the option "p2p-host" does not work very well. Using a dns name for example besu.dyndns.org linked to ip-address result in the error message "valid advertisement host required".
With prym you can run p2p-host-dns=besu.dyndns.org. Read more here https://docs.prylabs.network/docs/prysm-usage/p2p-host-ip#broadcast-your-public-ip-address
This is not a bug but a very important feature for us with a dynamic IP or VPN users who care about their privacy. Please implement this.

The P2P network of Ethereum works only with IP addresses, not with domain names. That is why --p2p-host is not accepting domain names.
If I understand the docs of Prysm correctly they only support static IP addresses. Correct me if I am wrong, but I would assume they only look up the IP address of the domain name at start up, but don´t update it afterwards anymore.

Correct me if I am wrong, but I would assume they only look up the IP address of the domain name at start up, but don´t update it afterwards anymore.

I thought this feature existed specifically to help everyone with a dynamic IP. I dont know either but it makes sense to me if the feature works like this. That the DNS resolver checks the dns name from time to time whenever someone needs to connect to the node... If its configured to run with the p2p-host-dns besu.dyndns.org.

I thought this feature existed specifically to help everyone with a dynamic IP. I dont know either but it makes sense to me if the feature works like this. That the DNS resolver checks the dns name thats broadcasted from time to time whenever someone needs to connect to the node... If its configured to run with the p2p-host-dns besu.dyndns.org.

I would clarify this with the Prysm team, just to be sure.
As for Besu we can consider that, but I cannot give you any guarantees or timeline for it. But I understand your need for it. Do you maybe know how often your IP address changes and how often it would make sense to check if it has changed?

I would clarify this with the Prysm team, just to be sure.

Directly from @nisdas / Nishant (Prysm team@Discord);

For discovery, it is only a one time resolution at startup
But for libp2p peers, multiaddresses support dns identites. So it helps with peers who have dynamic ips. I am guessing in besu's case, they use devp2p not libp2p. So its a different case

It is very hard to estimate :(. It can be three times a day but also once a week. I dont know anything about the tech behind this or how an "established connection" is stored or how they communicate....... But in a dreamworld... I wish it would broadcast the dns name only, and everyone who cannot connect to the dns name anymore (because of the first resolved IP is not correct/working) would retry and hopefully get the new IP.
(written by someone who doesnt know a damn thing about this :D)
_

So to provide some context...
Execution clients use devp2p for connections between nodes and discovery v4 for the UDP based node discovery.  Both of those only support IPs and DNS can't be used.
Consensus clients use libp2p connections between nodes and discovery v5 for the UDP based node discovery. discv5 has two key improvements over v4 - firstly it supports using dns names when advertising nodes, but it also supports automatic detection of your external IP address so it works fine with dynamic IP addresses and doesn't actually need to use DNS.
The difference between devp2p and libp2p doesn't really matter here because it's the discovery layer that you need to make work and it can propagate information about IP changes about as quickly as DNS will. So sadly your consensus client will just work automatically if you don't specify an external IP to advertise and let it detect the right one - it will automatically update each time your IP changes.  But execution clients have no way of doing that until discv5 gets adopted at the execution layer.
The bigger issue you're likely to have with a dynamic IP that changes regularly is that each time it changes you're going to lose all peers and take some time to reconnect, purely because IP change will interrupt all the existing TCP connections to peers you've discovered.
If you only need to look up the external IP to advertise at startup, you could do this with a wrapper script that uses host or nslookup to resolve the IP and then sets that as the advertised IP for besu. But if the IP changes often while you're running you'd need to setup a monitoring script that restarts besu each time the IP changes.

Hi, Any update on this? or still this is an open issue? Cant we provide DNS name in p2p host as of now?

The execution layer (which besu implements) still uses devp2p so only supports IP addresses.  There are no plans to support DNS at the protocol level that I'm aware of which means at best besu could support DNS for private networks using a custom modification to devp2p.

Thanks @ajsutton for response. While searching I came across Node allowlists support domain names in enode URLs as an early access feature. Use the --Xdns-enabled option to enable domain name support. The link for the same is as below. Will this setting work to resolve "Valid advertisement host required issue"?
Link -: https://besu.hyperledger.org/en/stable/private-networks/how-to/use-permissioning/local/

I would also like this feature, I've noticed my client takes a really long time to find peers, probably because my node runs behind a VPN with an IP that often changes and I don't have a good way to set this option

Just to clarify ...


BUG: scipy.linalg.eig fails for symmetric real matrices

Describe your issue.
Hello,
the documentation mentions that scipy.linalg.eig solves generalised eigenvalue problem of a square matrix.
But I found that is fails for the example of symmetric real matrix I attached here (test_array.pck)
I would like to suggest to at least change the documentation to "non-symmetric" matrices instead of "ordinary or generalised"
Reproducing Code Example
import pdb
import numpy as np
import scipy.linalg as splinalg
import pickle

f = open("test_array.pck", "rb")
M = pickle.load(f)["M"]
f.close()

print("M is symmetric:", np.all(np.isclose(M, M.T))) ### test symmetry of M
M[np.isclose(M, np.zeros(M.shape))] = 0 # remove numerical zeros

E, U = splinalg.eigh(M) ### eigendecomposition for symmetric matrices
E = np.real(E) # remove tiny imaginary numbers
U = np.real(U)
sort = np.argsort(E)[::-1] # descending order
E = E[sort]
U = U[:, sort]

Ec, Uc = splinalg.eig(M) ### eigendecomposition for general matrices
Ec = np.real(Ec) # remove tiny imaginary numbers
Uc = np.real(Uc)
sort = np.argsort(Ec)[::-1] # descending order
Ec = Ec[sort]
Uc = Uc[:, sort]

print("All eigenvalues are equal:", np.all(np.isclose(E, Ec))) # True
print("All eigenvectors are equal:", np.all(np.isclose(U, Uc))) # False

### Recovering M from Eigendecomposition ####
SS = np.sqrt(np.diag(E))
tX0 = np.real(U.dot(SS))
Gram = tX0.dot(tX0.T)

SSc = np.sqrt(np.diag(Ec))
tX0c = np.real(Uc.dot(SSc))
Gramc = tX0c.dot(tX0c.T)

print("Gram matrices are the same:", np.all(np.isclose(Gram,Gramc))) # False
print("sp.linalg.eigh recovers M:", np.all(np.isclose(Gram, M))) # True
print("sp.linalg.eig recovers M:", np.all(np.isclose(M, Gramc))) # False

Error message
M is symmetric: True
All eigenvalues are equal: True
All eigenvectors are equal: False
Gram matrices are the same: False
sp.linalg.eigh recovers M: True
sp.linalg.eig recovers M: False

SciPy/NumPy/Python version information
1.7.3 1.21.5 sys.version_info(major=3, minor=10, micro=4, releaselevel='final', serial=0)

Hi @AlexiaNomena thanks for reporting. Please don't share pickled or compressed files for security reasons. Most errors can be reproduced with small plain text data.

The issue can be reproduced with the matrix M created with
rng = np.random.default_rng(121263137472525314065)

d = np.diag([1, 2, 2])
v = special_ortho_group.rvs(len(d), random_state=rng)
M = v @ d @ splinalg.inv(v)

In fact, any symmetric matrix with repeated eigenvalues will likely reproduce the result.  Because eig does not "know" that the matrix is symmetric, it cannot gaurantee that the two eigenvectors associated with the repeated eigenvalue 2 will be orthogonal. In general, they won't be orthogonal.
@AlexiaNomena, can you modify your script to also print E?  I expect to see repeated values in there.

Generalized problem means a matrix pair (A, B) is used so it is not relevant for this issue. Nonsymmetricity shouldn't matter as it is not typically a problem but for repeated eigenvalues you have to make sure the sorting is done carefully in case it hits a Jordan block due to precision issues. So typically you shouldn't sort them blindly or remove imaginary parts. If it is working without the sorting or the imaginary part removal then this is not an issue.

Hi @AlexiaNomena thanks for reporting. Please don't share pickled or compressed files for security reasons. Most errors can be reproduced with small plain text data.

@tupui Alright, thanks for the info, I changed it to a txt file
@WarrenWeckesser Thanks, there are indeed repeated eigenvalues (now printed). But I don't understand why you say that the bug is in my test script. My conclusion from this (and also from your symmetric matrix example) is that one should not use eig for symmetric matrices.
@ilayn Thanks, actually I forgot to mention that M is positive semi-definite and this is why I removed the imaginary part. Now, I run this without sorting or removing imaginary part, but it is still not working for eig. It's just that I interpreted  the term "generalized" as "for all" and this why I suggested to replace it, my simulation problem is already solved by using  eigh.

My conclusion from this (and also from your symmetric matrix example) is that one should not use eig for symmetric matrices.

I think this is a question of expectations.  You might be expecting too much from eig.
If you know that your matrix is symmetric, and you expect the matrix of eigenvectors to be orthogonal, then you should use eigh instead of eig.  That is true.
Your comments, however, seem to suggest that you think something is wrong with eig.  In fact, the result returned by eig is not incorrect.  If you use eig instead of eigh, the eigenvectors associated with repeated eigenvalues will not (in general) be orthogonal (and therefore the matrix of eigenvectors will not be an orthogonal matrix), but they will still be valid eigenvectors.  Check the result with the eigenvalue equation, and you'll see that (other than normal numerical noise) the returned values do, in fact, solve the equation.  (For a single eigenvalue λᵢ, the equation is Avᵢ = λᵢvᵢ.  When written for the entire decomposition, the equation is AV = V diag({λᵢ}) where V is the matrix of eigenvectors.  Using the notation from the script, that would be M @ Uc = Uc @ np.diag(Ec).)  For example,
In [72]: from scipy.linalg import eig

In [73]: M = np.loadtxt('test_array.txt')

In [74]: Ec, Uc = eig(M)

In [75]: np.allclose(M @ Uc, Uc @ np.diag(Ec))
Out[75]: True

So eig has returned a correct result. The result doesn't have the additional structure that you would get if you used eigh, but it is not wrong.

So eig has returned a correct result. The result doesn't have the additional structure that you would get if you used eigh, but it is not wrong.

@WarrenWeckesser thanks, you are right, I guess I didn't understand that orthogonality of eigenvectors was my real problem here. But still, it would be nice to have this information on the documentation, that eigh always computes orthogonal eigenvectors (if that is True) while eig does not necessarily do so.


Use azure storage V10 to get async storage usage

This issue is with high importance.
We need to upgrade to storage client to V10 in order to get async operations.
The current implementation is not async.
In version 10 the Azure Storage Java SDK was separated into 2 sub-modules:
azure-storage-blob
azure-storage-queue

In order to use these modules, they must be added as dependencies to the ingest/pom.xml file, instead of the currently used azure-storage dependency: (Correct to the date of writing this comment)
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-storage-blob</artifactId>
    <version>10.1.0</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-storage-queue</artifactId>
    <version>10.0.0-Preview</version>
</dependency>

Note that currently the azure-storage-queue is a preview version
Migrating to version 10 will require a substantial rewrite of any component that interfaces with Azure Storage.
Here is a list of the classes in the “ingest” module that are involved with the Azure Storage SDK: (correct to the date of writing this comment)

AzureStorageClient.java
IngestClientImpl.java
IngestionStatus.java
TableReportIngestionResult.java
IngestClientImplTest.java
AzureStorageClientTest.java

Should be followed with performance comparison
Note that blob storage v8 does upload to blob blocks multithreaded

#240


Intellij run error: scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK

I get this error: Error:scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK scala-library-2.12.6-sources.jar when trying to run a test (utest) in IntelliJ. I have added what seems to be the correct scala libraries under project structure, and restarted IntelliJ:

This happened to me only the first time I generated Idea project with Mill. I fixed it by setting Java SDK and Scala SDK manually and since then GenIdea works as expected. It works properly even when I remove .idea/, .idea_modules/ and out/ directories, close Idea, regenrate Idea project and open it in Idea again. So I suspect that is is related to Idea caches outside the project root.
I'm using Idea community 2018.1 with Scala 2018.1.10 on macOS, just for the reference.

great, thx for the message, save me a lot of time.

closing due to inactivity


Remove initialize event

Im Traying  a  write a bot for users download photos,when photos class was initialize the initialize event is work fine but i need sametimes deactive or remove initialize event ,
How  can i do this ?
Forexample:
$(".ImgClass").initialize( function(){
//Codes etc...
});
I want This :
$(".ImgClass").initialize.delete();
Its Possible  ?

Initialize() returns https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver so just call disconnect() on it.
obs = $.initialize()
obs.disconnect()

See also #24

By the way, your code example is using the old API. See #6.


ros_canopen: 0.6.6-0 in 'indigo/distribution.yaml' [bloom]

Increasing version of package(s) in repository ros_canopen to 0.6.6-0:

upstream repository: https://github.com/ros-industrial/ros_canopen.git
release repository: https://github.com/ros-industrial-release/ros_canopen-release.git
distro file: indigo/distribution.yaml
bloom version: 0.5.25
previous version for package: 0.6.5-1

can_msgs

No changes

canopen_402
* do quickstop for halt only if operation is enabled
* Contributors: Mathias Lüdtke

canopen_chain_node
* refactored EMCY handling into separate layer
* do not reset thread for recover
* properly stop run thread if init failed
* Merge pull request #201 <https://github.com/ros-industrial/ros_canopen/issues/201> from ipa-mdl/bcm-sync
  Added support for external sync providers
* deprecation warning for SHM-based master implementations
* implemented canopen_sync_node
* added object access services
* implement level-based object logging
* added node name lookup
* wait only if sync is disabled
* Contributors: Mathias Lüdtke

canopen_master
* refactored EMCY handling into separate layer
* print EMCY to stdout
* send node start on recover
  needed for external sync to work properly
* pass halt on error unconditionally
* added canopen_bcm_sync
* added object access services
* implemented ObjectStorage::getStringReader
* implemented ExternalMaster
* Contributors: Mathias Lüdtke

canopen_motor_node
* do not call handleReadread in HandleLayer::handleRecover
  this prevents a race condition, it is not needed anyway.
* protect ObjectVariables with mutex
* added test for norm function
* introduced per-controller enforce_limits parameter
* implemented per-joint limits handling
* backport: check if hardware interface matches mode
* Contributors: Mathias Lüdtke

ros_canopen

No changes

socketcan_bridge

No changes

socketcan_interface
* stop CAN driver on read errors as well
* expose socketcan handle
* implemented BCMsocket
* introduced BufferedReader::readUntil
* Contributors: Mathias Lüdtke

http://build.ros.org/job/Ibin_arm_uThf__canopen_402__ubuntu_trusty_armhf__binary/ got stuck


vendor: update sqlite to fix "database is locked" errors

closes #2040
upstream commit: https://github.com/mattn/go-sqlite3/commit/acfa60124032040b9f5a9406f5a772ee16fe845e

I tried locally make test-sqlite, but seems it's not resolved.

But anyhow, a vendor update is LGTM

LGTM


Error trying to use commands that query or cancel single orders.

When I try and use the commands query_order and cancel_order, I keep getting the same error that the specified orders do not exist.
For example I would open a stop loss order on DOGEUSDT with a specified origClientOrderId and this order would appear as so when i print the order.
{'orderId': 123929928, 'symbol': 'DOGEUSDT', 'status': 'NEW', 'clientOrderId': '12345678', 'price': '0', 'avgPrice': '0', 'origQty': '150', 'executedQty': '0', 'cumQuote': '0', 'timeInForce': 'GTC', 'type': 'STOP_MARKET', 'reduceOnly': True, 'closePosition': False, 'side': 'SELL', 'positionSide': 'LONG', 'stopPrice': '0.160000', 'workingType': 'CONTRACT_PRICE', 'priceProtect': False, 'origType': 'STOP_MARKET', 'time':<PHONE_NUMBER>202, 'updateTime':<PHONE_NUMBER>202}
But if I use the single command with query_order and the specified id, I keep getting the error saying it does not exist. I have tried with using either orderId or origClientOrderId and by passing them as both a str and int and none seem to work
this is the command I am using:
futures_client.get_order(
symbol =    'DOGEUSDT',
origClientOrderId = '12345678'
)
Of course I have tried using OrderId also and even retrieving the specific ID's from get_orders and still I get the error that those don't exist. Also it seems this error is persistent with commands that seek a specific order, because I get the same error when I try the command cancel_order with a specified ID.

hello, do you found any solution for this? having the same issue, this giving me headache for last 3 days

Hello, you can use solutuon like this: https://github.com/Binance-docs/binance-futures-connector-python/issues/8#issuecomment-1013658618

Please try again with latest release. thanks.

I created the duplicate of this issue just because I am not that smart to link the pull request with a fix to it.


Fix prefix caching + speculative decoding

What does this PR do?
Following #2402, it was remarked by @ZTianle that enabling speculative decoding when using prefix caching was resulting in incorrect results. We also internally noticed that it sometimes caused CUDA device-side assertion failures.
The root cause was determined to be incorrect slot assignments that were occurring when calling slots.expand and incrementing the slots by arange_int. This assumed that the next slots in the allocation were the next ordinal slot IDs, but when using prefix caching, this often is not the case. Due to the radix tree format, slot IDs are frequently discontiguous, and so we need to expand the slot_indices and use those to index into the allocated slots rather than expanding the slots directly.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
cc @OlivierDehaene @Narsil @danieldk

Thanks for the PR, accepting this one since the fixed seems to work (will patch main directly after)

Thank you @tgaddair for fixing the speculative decoding issue with prefix caching. I've noticed that while this fix works well with flash decoding+prefix caching, there still appear to be compatibility issues when using speculative decoding together with flashinfer  - specifically, it continues to generate incorrect outputs.
Has there been any investigation into making speculative decoding work properly with the flashinfer and flashinfer + prefix caching combination? Would be helpful to understand if this is on the roadmap or if there are known technical challenges preventing this integration. @Narsil @danieldk


autopep8 is destroying my code everytime I save it

Problem Description
When I use "ctrl" + "s", to save my code autopep8 is rearranging my code and adding a comment in an import statement. The import statement that gets broken up with comment is always the third import statement. Which effectively means I can't save my code in running order, because autopep8 keeps breaking it. I know it is autopep8 that is causing it, because when I turn off autopep8 it stops happening. This is pretty frustrating because my code is both useless and I can't structure it the way I want to.
I should also mention I have not adding anything to my setting.json file in regards to autopep8. The only thing I have added to my settings.json file is:
"flake8.args": ["--max-line-length","160"],
Since the last attempt I made to get help with this issue flagged my issue as "not-this-repo". I should clarify that I am posting my code show the effects of the bug with in autopep8. I am not looking for help with the code itself. But I am looking for help with the bug that autopep8 has where it rearranges the code and destroys the code after saving the document. When it auto-formats the code, it SHOULD NOT be adding in comments into import statements.
Before autopep8
import os
import numpy as np
from skimage.feature import hog
from PIL import Image, ImageFilter
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
from numpy import asarray
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_val_score
from sklearn.metrics import confusion_matrix, accuracy_score

"""
Set folders and define classes
"""
# Set file location for Training and Testing
folder_training = 'Lego_dataset_2/training/'
folder_testing = 'Lego_dataset_2/testing/'

# Class labels for LEGO categories
classes = {
    '2b1': 0,  # 2x1 brick
    'rec': 1,  # Rectangle
    'cir': 2,  # Circle
    'squ': 3   # Square
}

After autopep8
# Set file location for Training and Testing
import os
import numpy as np
from skimage.fea  # ture import hog
from PIL import Image, ImageFilter
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
from numpy import asarray
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_val_score
from sklearn.metrics import confusion_matrix, accuracy_score
folder_training = 'Lego_dataset_2/training/'
folder_testing = 'Lego_dataset_2/testing/'

"""
Set folders and define classes
"""
# Class labels for LEGO categories
classes = {
    '2b1': 0,  # 2x1 brick
    'rec': 1,  # Rectangle
    'cir': 2,  # Circle
    'squ': 3   # Square
}

My Set Up
VS Code: 1.95.3
autopep8: 2.3.1
Flake8: 7.1.1
tomli: 2.2.1
mccabe: 0.7.0
pycodestyle: 2.12.1
pyflakes: 3.2.0

Since the last attempt I made to get help with this issue flagged my issue as "not-this-repo". I should clarify that I am posting my code show the effects of the bug with in autopep8. I am not looking for help with the code itself. But I am looking for help with the bug that autopep8 has where it rearranges the code and destroys the code after saving the document. When it auto-formats the code, it SHOULD NOT be adding in comments into import statements.

This is still not the autopep8 project repository, please report it there instead.

Since the last attempt I made to get help with this issue flagged my issue as "not-this-repo". I should clarify that I am posting my code show the effects of the bug with in autopep8. I am not looking for help with the code itself. But I am looking for help with the bug that autopep8 has where it rearranges the code and destroys the code after saving the document. When it auto-formats the code, it SHOULD NOT be adding in comments into import statements.

This is still not the autopep8 project repository, please report it there instead.

Where is that, this is the github that the link on the autopep8 website sent me to


pkg/container-collection: Add omitempty tag to Container struct

Add omitempty tag to Container struct
It is useful for the local-gadget list-containers command.

I agree with using omitempty.


Remove invisible redundant table cell

Not sure what I changed on line 607 (see Github diff).

lgtmf


[Bug]: Playwright browsers keeps triggering Windows Credentials via SSO

Version
1.49.0
Steps to reproduce
`  Playwright.CreateOptions createOptions = new Playwright.CreateOptions();
Map<String, String> map = new HashMap<>();
    map.put("PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD", "1");
    map.put("PLAYWRIGHT_NODEJS_PATH", System.getenv(PropertiesConstants.PLAYWRIGHT_NODE_JS_PATH));
    createOptions.setEnv(map);
    try (Playwright playwright = Playwright.create(createOptions)) {
        Browser browser = playwright.chromium().launch(new BrowserType.LaunchOptions().setChannel("msedge").setHeadless(false));
        Page page = browser.newPage();
        page.navigate("URL-BEHIND-SSO");
    }

`
Just a simple opening of a new microsoft edge browser that, as a first step, opens URL of Web application, that is behind SSO (single sign on) in Microsoft Edge that is already present on the machine.
Also because of our workstation policy, we need to use the node.exe in already installed folder, hence passing the property.
Expected behavior
Browser opens in an incognito mode, which triggers a redirect to SSO , that opens without any credentials being passed from the browser.
Actual behavior
SSO redirect happens, but is pre-filled with the username of the user that is logged in on the machine.
Additional context
Hi,
I am trying to automate a web application that is behind an SSO in our company (this SSO is  internally done here where I work).
This SSO (as confirmed by the team responsible for it) asks for Windows Credentials via pop-up, to pre-fill the screen and, if successfull (the retrieval of the Windows credentials) , it will also ask for 2FA token on the redirect screen.
If it fails (to retrieve the windows credentials), it will not pre-fill the screen and will trigger a different redirect, to username+password screen, without 2FA (so non human, machine users can log in).
I tried to do the same action in manually opened browser, in an incognito mode and it works as expected (the incognito does not pass any windows credentials, so it triggers the username+password). Also Selenium does the same.
Playwright however, keeps redirecting me to the other redirect, where 2FA is needed, hence blocking the automation.
I tried several things as explained here :
https://github.com/microsoft/playwright/issues/15367
https://github.com/microsoft/playwright/issues/29297
https://stackoverflow.com/questions/64549577/prevent-sso-with-playwright
Which suggests to pass an extra argument of  --auth-server-allowlist="*" or --auth-server-allowlist="_"
but none of that worked.
I would greatly appreciate any support,
Thank you very much!
Environment

Operating system - Windows 10
Browser - Microsoft edge Version 130.0.2849.46 (Official build) (64-bit)
JDK 21
Playwright version 1.49.0

How did you pass the extra args? Via setArgs? Thats also the first idea which I'd have to pass --auth-server-allowlist="_" there.

How did you pass the extra args? Via setArgs? Thats also the first idea which I'd have to pass --auth-server-allowlist="_" there.

Yes, that's what I tried, like this
` public static void main(String[] args) {
Playwright.CreateOptions createOptions = new Playwright.CreateOptions();
Map<String, String> map = new HashMap<>();
    map.put("PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD", "1");
    map.put("PLAYWRIGHT_NODEJS_PATH", System.getenv(PropertiesConstants.PLAYWRIGHT_NODE_JS_PATH));
    createOptions.setEnv(map);
    try (Playwright playwright = Playwright.create(createOptions)) {
        Browser browser = playwright.chromium().launch(new BrowserType.LaunchOptions().setChannel("msedge").setHeadless(false).setArgs(List.of("--auth-server-allowlist=\"_\"")));
        Page page = browser.newPage();
        page.navigate("URL-BEHIND-SSO");
    }
}`

But it still ends up with successfully retrieving the credentials apparently, which triggers a redirect to a login with 2FA, where the windows username is already filled.

Its probably Enterprise Policies which are taken into account when using branded browsers - you could check/open chrome://policies which might pre-install extensions, require login etc. so there is unfortunately no way of getting around that besides running the tests on another non-provisioned machine or running tests with just chromium which does not take enterprise policies into consideration.

That first came to my mind, but using the same .exe of edge/chrome , when used in incognito, manually, it does not trigger the SSO. It also does not trigger the SSO when used in incognito via Selenium. But when I use the same .exe via Playwright, even when it claims its in incognito, it keeps triggering it. There must be something extra.....


Fix &runtimepath list insertion index

This corrects the intended behavior of inserting dein's runtime path immediately prior to $VIMRUNTIME, and addresses the edge case where $VIMRUNTIME is the first path in &runtimepath.
Brief
Whenever I opened an Objective-C++ file in MacVim, as opposed to any CUI variant, my custom filetype.vim was ignored and &filetype was nroff.  MacVim's default settings were being prioritized over all of my overrides, most notably my custom filetype.vim.
Details
I encountered the bug because I cull non-existant directories from &runtimepath early in $MYVIMRC - see the snippet below - and, when using MacPort's build of MacVim 8.0, this leaves $VIMRUNTIME at the beginning of &runtimepath.  In this case, the offending line uses an insertion index of 0 - 1 which places dein's runtime path (the anchor for all subsequent insertions) at the end of rtps.  After call dein#end(), &runtimepath looks similar to the following: [$VIMRUNTIME, {plugin paths}, g:dein#_runtime_path, {plugin after-paths}, ...].
if has('vim_starting')
  ...

  let s:dirs = split(&runtimepath, ',')
  call filter(s:dirs, 'isdirectory(v:val)')
  let &runtimepath = join(s:dirs, ',').','
  \.$XDG_DATA_HOME.'/vim/repos/github.com/Shougo/dein.vim'

  if has('packages')
    let s:dirs = split(&packpath, ',')
    call filter(s:dirs, 'isdirectory(v:val)')
    let &packpath = join(s:dirs, ',')
  endif
  ...

endif
...

if dein#load_state({path to plugin base path directory})
  call dein#begin({path to plugin base path directory})

  call dein#add({path to dein.vim directory})
  call dein#add('Shougo/neocomplete.vim')
  ...

  call dein#end()
  call dein#save_state()
endif

Note
This could affect users if they somehow depend on the dein runtime path preceding both $VIMRUNTIME and the paths that NeoVim/Vim/MacVim/gVim inserts before $VIMRUNTIME.
On my machine, with non-existant-directory culling:

In NeoVim, $XDG_DATA_HOME/nvim/site now appears first in &runtimepath.
In Vim, $VIM/vimfiles now appears first in &runtimepath.
In MacVim, dein-controlled plugin paths now properly precede$VIMRUNTIME in &runtimepath.

OK.  Merged.


Weird mismatched-arg-count lint on gtx_pipeline! macro.

I'm new-ish to rust and don't know if the error is in the code or in the analyzer.
Opening https://github.com/PistonDevelopers/piston-examples/blob/master/examples/cube.rs in vscode makes rust-analyzer complain about mismatched-arg-count on lines 25-32.  The exact message is a bit stranger still:
{
	"resource": "<redacted>",
	"owner": "rustc",
	"code": {
		"value": "mismatched-arg-count",
		"target": {
			"$mid": 1,
			"external": "https://rust-analyzer.github.io/manual.html#mismatched-arg-count",
			"path": "/manual.html",
			"scheme": "https",
			"authority": "rust-analyzer.github.io",
			"fragment": "mismatched-arg-count"
		}
	},
	"severity": 8,
	"message": "expected 7 arguments, found 4",
	"source": "rust-analyzer",
	"startLineNumber": 25,
	"startColumn": 1,
	"endLineNumber": 32,
	"endColumn": 4
}

The message says it expects 7 arguments, but found 4. Neither of these numbers make sense in any way I can think of.
Code of the macro:
/// Defines a set of pipeline-associated structures, and also
/// adds `new` constuctor for the `Init` structure.
#[macro_export]
macro_rules! gfx_pipeline {
    ($module:ident {
        $( $field:ident: $ty:ty = $value:expr, )*
    }) => {
        #[allow(missing_docs)]
        pub mod $module {
            #[allow(unused_imports)]
            use super::*;
            #[allow(unused_imports)]
            use super::gfx;
            gfx_pipeline_inner!{ $(
                $field: $ty,
            )*}
            pub fn new() -> Init<'static> {
                Init {
                    $( $field: $value, )*
                }
            }
        }
    }
}

Application of the macro:
gfx_pipeline!( pipe {
    vbuf: gfx::VertexBuffer<Vertex> = (),
    u_model_view_proj: gfx::Global<[[f32; 4]; 4]> = "u_model_view_proj",
    t_color: gfx::TextureSampler<[f32; 4]> = "t_color",
    out_color: gfx::RenderTarget<::gfx::format::Srgba8> = "o_Color",
    out_depth: gfx::DepthTarget<::gfx::format::DepthStencil> =
        gfx::preset::depth::LESS_EQUAL_WRITE,
});

It happens when for some reason (wrong type inference/trait solving, wrong macro expansion, unsupported features like const generics) we pick up the wrong function.
It would really help if you can extract a reduced test case, but it's all right if you can't or don't have the time.

This is still happening, and really confusing. Here's a small reproduction:
fn foo(s: gfx::TextureSampler<[f32; 4]>) {
    let (a, b, c, d);
    s.bind_to(a, b, c, d);
}

Hovering over bind_to shows
gfx::pso::DataBind

pub fn bind_to(&self, RawDataSet: {error}, _: {error}, _: {error}, _: {error}, _: {error}, AccessInfo: {error}, _: {error})

---

Dump the given data into the raw data set.

but going to the definition shows the following code:

/// The "bind" logic portion of the PSO component.
/// Defines how the user data translates into the raw data set.
pub trait DataBind<R: c::Resources> {
    /// The associated "data" type - a member of the PSO "data" struct.
    type Data;
    /// Dump the given data into the raw data set.
    fn bind_to(&self,
               &mut RawDataSet<R>,
               &Self::Data,
               &mut c::handle::Manager<R>,
               &mut AccessInfo<R>);
}

which clearly takes 4 parameters. I don't understand how we can have two different definitions here.

The reason for that is that we fail to parse the param list properly here. Because of that error recovery kicks in which parses each path segment as a new parameter, so Self::Data becomes two, and c::handle::Manager<R> becomes 3 parameters totalling 8 parameters.

Given anonymous parameters are a hard error since the 2018 edition we could consider this a wontfix

If we do end up with a shared parser, we might have to fix this anyway.

Well, it might be a wontfix-until-shared-parser then ;)

gfx is also kind of deprecated; there are probably few maintained crates that use anonymous parameters.


[#4] Fix: Some typos identified and could be fixed

https://github.com/nimblehq/git-template/issues/4
What happened 👀
Fixed some typos
Use American English for behavior (previously behaviour).
Insight 📝
N/A
Proof Of Work 📹
N/A

@malparty Can we update these changes in our git template  issue templates? We can refer to this Git template issues  content as a single source of truth and then update other projects later so all GitHub issue templates to keep the content same every repo. What do you think?

e update these changes in our git template issue templates

At the moment I did a manual fix in https://github.com/nimblehq/git-template/pull/20
But in the long term, whenever this repo change, it could be interesting to run a quick set of many COPY/PASTE PR... I'm wondering if this is something we can automate maybe... 🤔


Chart in dialog to Dashboard

I tried how to make chart in dialog and it's success,
but how to replace chart of admin LTE dashboard ? could somebody give me a solution? thank you so much

Very easy actually with Serenity, that's the magic of this framework.
This is way i did on my app:

I wanted to display panels with charts + icon to be able to refresh panel content.
Basically i use partial view of MVC.
1/ Create a service provider (endpoint) for data to be displayed
My endpoint looks like this :
[RoutePrefix("Services/Charts/CardAccounts")]
 public class CardAccountChartController : Controller
 {
   ///
   /// Get Card Account Statistics
   ///
   [Route("refresh")]
   [HttpGet]
   public ActionResult Refresh()
   {
     var model = Dependency.Resolve<ICardAccountChartService>().Refresh();

     return PartialView("~/Modules/Charts/_CardAccountChart.cshtml", model);
   }
 }

2/ I have created a Model of data to be displayed
Basically a key values classical model
public class CardAccountChartModel
 {
   public List<string> Keys { get; set; }
   public List<int> Values { get; set; }
 }

3/ An interface that define my unique method to refresh data source
  public interface ICardAccountChartService
  {
    ///
    /// Refresh Card Accounts
    ///
    /// <returns></returns>
    CardAccountChartModel Refresh();
  }

4/ A class implementing the Refresh Service
In this example i am calling a view to get data
public class CardAccountChartService : ICardAccountChartService
 {
   public CardAccountChartModel Refresh()
   {
     var model = new CardAccountChartModel();

     using (var connection = SqlConnections.NewByKey("DBServices"))
     {
       var results = connection.Query(
               new SqlQuery()
                   .From("V_BOL_CHART_CARD_ACCOUNTS")
                   .Select("CARD_SCHEME", "CARD_SCHEME")
                   .Select("NB_ITEMS", "NB_ITEMS"));

       model.Keys = new List<string>();
       model.Values = new List<int>();

       foreach (IDictionary<string, object> row in results)
       {
         model.Keys.Add(((Enums.CardScheme)Int16.Parse(row["CARD_SCHEME"].ToString())).ToString());
         model.Values.Add(Int32.Parse(row["NB_ITEMS"].ToString()));
       }

       return model;
     }
   }
 }

5/ A partial View (in .cshmtl) to manage panel update
@model SOM.GUI.Modules.Charts.CardAccountChartModel

Comptes Cartes Actifs

        @Ajax.ActionLink(
                                                  " ",
                                                  "refresh",
                                                  new { controller = "CardAccountChart" },
                                                  new AjaxOptions
                                                  {
                                                    UpdateTargetId = "divCardAccountChart"
                                                  },
                                                  new { @class = "btn btn-box-tool fa fa-refresh", @id = "refreshButton" }
                                                  )
        <button class="btn btn-box-tool" data-widget="collapse"></button>

      <canvas id="pie-chart"></canvas>

    Plus d'infos

6/ Now last step is to include this panel into main dashboard
In DashboardIndex.cshmtl

      @{
        Html.RenderPartial(MVC.Views.Charts.CardAccount._CardAccountChart, Model.CardAccountChart);
      }

And that's it !
The more i use this framework the more i find it the best software i have ever used. So powerful.

thank a lot @kilroyFR , I will try latter , I very apreciated your solution . but my issue just solved I see #2342

@kilroyFR ,
this would make up a great wiki entry (https://github.com/volkanceylan/Serenity/issues/4572). Would you mind to put it into the wiki for others to easily find it? :-)
Would be great.
With kind regards,
John

@kilroyFR and @JohnRanger , Please tell me about :
@model SOM.GUI.Modules.Charts.CardAccountChartModel
becouse always found an error.. thank you..

I recommend using D3 as it is more powerful and popular. It has a steep learning curve but it's worth it.


Export control_plane.identifier as a gauge label

The /stats handler returns control_plane.identifier, but /stats/prometheus does not.
I need to have this value in prometheus to display it in a pane in grafana.
Since control_plane.identifier is not a metric, but a string envoy could export fake gauge with this identifier as a label, for example: envoy_control_plane{identifier: "CP-identifier"} 1.
If you agree to add such a gauge, I am able to implement this feature.

Great, I will submit a PR soon.

Great, I will submit a PR soon.

I recently had no time to implement it. I will submit a PR this week.


Add ngf-allow-dir to ngf-select as well.

Hi Danial,
I made a small change to allow ngf-allow-dir behavior on ngf-select as well. When set, the "webkitdirectory" and "directory" attributes are added to the input element to allow "upload dir" behavior on Chrome. This does not affect other browsers.
I would appreciate if you accept the pull request (after review).
Alin

Thanks for the pull request. I would change the name ngfAllowDir to ngfDirectory to be able to use just directory property for input type file. So that would need to be changed in the drop code too.

I switched the ngf-allow-dir to ngf-directory when used in ngf-select. Changing it in ngf-drop would break existing code.
Alin

Danial,
If you are happy with my changes, can you please merge my branch.
Thanks,
Alin

I have ported most of the code into TypeScript for angular2 and gonna have a back port version of it for angular 1 so the whole code structure will change. So most probably next version gonna replace most of this code. If there are more delay in pushing the new angular2 version then I will have another version of this code and gonna merge this. You can try to send a pull request for ng2 branch where the typescript code is instead of master. Also when you do pull request just commit the changes that are actual logic changes, There are many changes in the index.html file. Also you have updated the docs to have ng-directory for both drop and select but the drop source code has not changed.
I will try to bring this logic to ng2 branch if you don't send a pull request for the next versions.

Hi Danial,
My code changes are small and follow what you already had in place. If you do not happen to port my changes during the TS rewrite, I will happily do so.
Thanks,
Alin


Remove unnecessary block in lambda expressions after refactoring

Piranha transforms:
someConsumer.accept((x) -> {
                                        if(exp.isTreated(STALE_FLAG)){
                                           doSomething(x);
                                        }
                                        else{
                                           domeSomethingElse(x);
                                        }
                                       );

to
someConsumer.accept((x) -> {
                                           doSomething(x);
                                        }
                                       );

Rather it should:
someConsumer.accept((x) -> doSomething(x););

I would like to fix this issue.

Note: I think the above should be
someConsumer.accept((x) -> doSomething(x));

without the extra semicolon. Also, you don't need the parenthesis around the lambda argument for the single argument case.

Correct. Let me fix this and then i ll update you.


New version: MeasureBase v0.9.5

Registering package: MeasureBase
Repository: https://github.com/cscherrer/MeasureBase.jl
Created by: @cscherrer
Version: v0.9.5
Commit: bbae5401acba9ba4507105658dfe878b54f268e6
Reviewed by: @cscherrer
Reference: https://github.com/cscherrer/MeasureBase.jl/commit/bbae5401acba9ba4507105658dfe878b54f268e6#commitcomment-76109560

wait

This is a breaking change, so the correct PR is
https://github.com/JuliaRegistries/General/pull/62366


RHBRMS-349: New Item Menu: No Project selected, all items enabled after Perspective reset

See https://issues.jboss.org/browse/RHBRMS-349
This PR ensures the MenuItems enabled/disabled state is initialised correctly when the Menu's items are requested (by, for example, navigating to the Authoring Perspective).

Part of an ensemble:

https://github.com/uberfire/uberfire/pull/483
https://github.com/droolsjbpm/kie-wb-common/pull/437

@ederign @cristianonicolai @paulovmr Mind taking a look?

+1.

Thanks @ederign


Power usage

Is your feature request related to a problem? Please describe.
No, not a problem
Describe the solution you'd like
The LG Thinq app shows you the power usage for the washer and dryer per month, it would be nice that this information is available in this plugin.
Describe alternatives you've considered
Use a seperate power socket for each device and connect this to home assistant
Additional context
/

Same here but for my portable AC

@ollo69 given that we have the energy dashboard in HA now, would you be interested in implementing this, or would this not be interesting enough to spend your time on?

Did you check in the payload (from diagnostics) if this power usage is available?
IMHO what you see in LG app are not real power usage but only a value based on the programs that you run in the months

Its good to know if its based on what it thinks or real power usage. Either way both types of information would be interesting to have available in HA.
With the estimates you can still see the same graph in the app in your HA dashboard.

But if this is a calculated value, it should be calculated in the same way inside HA based on template sensor and do not require any modification on integration!

This might be relevant?
            "EnergyMonitoring": {
              "valueMapping": [
                "soilWash",
                "temp",
                "spin"
              ],
              "powertable": {
                "1": 1,
                "2": 2,
                "3": 3,
                "4": 4,
                "5": 5,
                "6": 6
              }
            },

But I can't find anything with an actual power value.

Attach here your diagnostic file, I will take a look when I will have some available time.

@ollo69
smartthinq_sensors-cb1cd37be597738d2bef24a02a049347-Top Load Washer-76d6605022d06c6224373b41e2d526cc.json.txt

any updates on this @KTibow @ollo69  ?


Determine cause of SetBit benchmark's wide execution time ranges

pilosactl bspawn $GOPATH/src/github.com/pilosa/pilosa/cmd/pilosactl/multidbspawn.json
gives results like: min:173.408µs max:581.302146ms avg:295.155µs
173µs to 581ms is a massive range - gonna try to figure out why and see if it can be fixed.

I'm going to close this - benchmarking SetBit is fairly silly since it's way slower than importing, and I don't think this is really a problem.


CORE-10422 Temp PR on a stable rudiments version - Interop integration Initating and Initiated Interop Flows via Interop new topic

This temp PR closed as it is superseded by https://github.com/corda/corda-runtime-os/pull/3499


Validator list

mockups: https://www.figma.com/file/8dwSyYOOm3vlgbvxPGT29p/Block-Explorer-(Post-Launch)?type=design&node-id=6092-212988&mode=design&t=y5RJp5Wyw0HndnoP-0
current UI: https://explorer.dev.oasis.io/mainnet/consensus/validators
API endpoint: http://nexus.oasis.io/v1/consensus/validators

we need rank prop, we need to track it in http://nexus.oasis.io/v1/consensus/validators/{entity_id / address} as well
Do we need to sort by rank by default or we are fine with current sorting. It is escrow, right?

[@Andrew7234 ] added rank (sorted by active escrow balance) in #686(wip)

Provide data to media prop. Currently we do not have data for props like logotype etc. Sometimes name is missing too. Oasis Scan sample https://api.oasisscan.com/mainnet/validator/list?pageSize=500
add uptime prop. Our mockups require detailed historical uptime data for validators, but it seems like overkill. Maybe we can simplify it to Oasis Scan style - badge with "100%" label. Their API has uptime:t "100%" prop. If we can have historical data that is ofc a better option.

[@mitjat] In product syncs we discussed (and IMO Jernej supported too) a "24h uptime" stat. The % uptime wrt full history is not very informative.
TODO: How is uptime/liveness of a node defined? @Jan Berčič to explore.
[@Andrew7234 ] Block signers (wip in #646) should be a good proxy for this, but open to suggestions. Either way, this requires an additional PR)

filtering by status active/inactive. (In mockups I can see waiting as well, not sure what it is). Imo we should push back as we do not support list filtering anywhere.
add delegators (number) prop

[@Andrew7234 ] wip in #686

add escrowChange24 (string ) prop

Related to #813
Probably best to track each validator's total shares and staked tokens for every epoch (= at the starting block of an epoch?) (Unknown: Are rewards disbursed in the first or last block of an epoch?)
Might be a good project for Jan
It's not easy to know whether a given block is first/last in an epoch. But we don't need to, probably: Update the epoch's stats on every block, but only if the current block is the max height block that we've seen so far for this epoch.

Yikes but to update the table, we need to query the balances of 120+ validators, in 120+ node calls.
So this is best done as a separate analyzer. Then we'll also know which heights are first/last in an epoch because the analyzer can look it up in existing tables.

Get list of epochs that need to be processed (from chain.epochs , ignoring epoch with end_height == max height seen so far)
For each epoch:

Find validators in the DB (only the ones active in this epoch? all validators seen so far?)
Query the node
Record historical staking balances+shares of validators in a new table in the DB

[@Andrew7234 ] The required data will be indexed in #703. Note that it only tracks active/debonding escrow balances (since we don't need to track voting power). A follow-up PR may be needed for the api work

add voting prop. Let's use the same convention/notation for voting and current_rate props. I don't remember how we deal with percentage values in other places in API

[@Andrew7234 ] wip in 686, Implementation note: we return the voting power of the entity (int64) and the total voting power (int64) and let the explorer calculate the percentage.

how we want to handle cumulative voting

[@Andrew7234 ] wip in 686, since we return the raw voting power of each validator the frontend can calculate this.

view also has "stats section". Oasis scan adds additional props to list endpoint. We can add them to other endpoint too I don't care. We would need props like active_validators , waiting_validators, inactive_validators , delegators , bond_rate . However, I think we should push back that idea and kill stats section in the list view.
we also need to render chart with "Active/Inactive/Waiting" how current props map to these three states?

[@Andrew7234 ] need more research into this, but will likely be added as part of #686

Subtasks:

[ ] #860
[x] Add %24hr escrow change for validators - #732

Copying old comment from @Andrew7234:

See also the #861 . The big chunk of remaining work is to support uptime/participation rate. I think the block signers/proposer data can be used as a proxy for this. Warren has a #646  which tracks this data, but we will need a follow-up PR to expose this data in the validators api.

The remaining part is tracked in https://github.com/oasisprotocol/nexus/issues/860. I will close this to avoid duplicated tasks.


Ruby-Capstone Project team

Our team consists of three members.
Student A: @ethred
Student B: @AliRezaBmeDu
Student C: @vikas924
We will build the ruby capstone under the milestone of Microverse Module-4 following the Kanban Board

STATUS: APPROVE :heavy_check_mark: :heavy_check_mark:  :champagne:
Hi @AliRezaBmeDu, @ethred, and @vikas924
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉 :clap: :clap: :100:

To highlight :champagne:

All requirements are present in cards :heavy_check_mark:

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please ping me @tresorsawasawa when you comment so I can receive the notification or use slack with the same name.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


INSERT with JSONEachRow format does not use DEFAULT value for the Date column

Hi,
Just faced with the issue where using clickhouse-client/HTTP-interface I was unable to populate a column with default value calculated with a function toDate(.
Conditions
Table schema:
CREATE TABLE timeseq
(
    `_time` DateTime,
    `_date` Date default toDate(`_time`),

    body String
) ENGINE = MergeTree(`_date`, (`_time`), 8192)

The query which we are going to use in order to insert test data:
echo '{"_time":"2018-02-07T11:33:14","body":"something here"}' | clickhouse-client -q "INSERT INTO timeseq FORMAT JSONEachRow"
Expectations:
We expect that once the row is inserted into the table there will be _date field populated with value '2018-02-07'.
Issue
Our expectations are not met. Once the query is executed there is a row created in table 'timeseq' but field _date is populated with '0000-00-00' value instead of the one given in the dataset.
Note: We also tried to do the same insert query using CSV format and make the data CSV-compatible. In this case _date field was populated correctly.
Hope that is clear enough.
Thanks!

Please check https://github.com/yandex/ClickHouse/issues/75

https://github.com/arkhipov is going to do this.


Dodo helper and costregener crash, and map dropper crashes randomly。

Hello, I found some software problems while using the latest R20 version, such as the random crash of map dropper caused by dragging the small map in the upper left corner too fast. I need some time to test this problem and send you the video attachment. Also, the cost regen of Dodo helper and regenerator will crash. This is not random. For example, after I click the star buttopper left corner too fast. I need some time to test this problem and send you the video attachment. Also, the cost regen of Dodo helper and regenerator will crash. This is not random. For example, after I click the star button of Dodo helper, the software will crash and close directly. I want to ask if you have a good solution. Thank you! I want to ask if you have a good solution. Thank you!

For the first bug, it's extremely random and rare.
Sometimes I can drag the map very long time without any problem.
Other times it might crash as soon as I move the map.
https://user-images.githubusercontent.com/816502/168427661-e24aa44f-0c3a-4930-b5f0-7b1860cacf2f.mp4
I have added many checks and locks to try to prevent it. But I still cannot be 100% sure it will not happen again.
I believe there might be some bug in the "Windows Form app" that only Microsoft can fix...
Please try to update to R21 and see if that fixes the issue for you.
It should be available very soon.
As for the second bug, you need to show me exactly where it happens in order to identify the problem.
https://user-images.githubusercontent.com/816502/168427965-a703313b-99a2-461c-ad23-bcc9133d9497.mp4
,

I recorded a video. I don't know why. I can't upload it to GitHub for you. It seems that the video recorded by NVIDIA is too large.

I'll try to suppress it, or I hope you can point out what I need to provide you.

Using map dropper, you can use the up, down, left and right direction keys to move, which may not be easy to crash,
Maybe this is the first solution.

https://user-images.githubusercontent.com/92638461/168457873-ba146ee6-67a4-420b-991b-269abbf9b1ff.mp4

I took a screenshot and found that it shows that please recover later, and then the software is disconnected from switch.

Oh, I see your problem.
If you want BOTH dodo helper and map regen to work together, you need to enable dodo helper inside the map regen menu.

The dodo helper that is on the main menu is used for the Freezer.
There are two ways to do map regen:

The old one: Map regenerator. Item regen is controlled by Poker. It allows the ignore empty space (Moogle Regenja). But require Poker to be running all time and monitoring everything.
This needs the special dodo helper in the same menu to work with.

The new one: The Freezer. Item regen is handled on the Switch itself. You can close Poker after the freeze and the item regen will still work.
This can use the main menu standalone dodo help.

It can be like this, thank you! I wish you a happy life!

Then close the topic. Thank you for your patience


Increase timeout for OpenJcePlusTests

increase timeout to 2hrs
related: https://github.com/eclipse-openj9/openj9/issues/19200

Grinder

FYI @jasonkatonica

This PR will be backported into v1.0.1-release via https://github.com/adoptium/aqa-tests/pull/5175


Add error messages for non-existing files give as arguments, add more…

Hi @Nima-Jamshidi
I've made some final refinements for Milestone02. I think there isn't much more to do. Once you give it a look over, you can tag the release and submit on Canvas. If you would like me to do it, just tag me and let me know :)

the milestone2.Rmd file still needs a bit of work perhaps, it is very similar to our milestone1 Rmd file. I know you made changes according to TA feedback to the original milestone1 file, so it might not be identical to our actual submission, but we should still change it up some more since one of the criteria is

[ ] Be a new, different document than the EDA document you submitted for milestone1 (though you can liberally borrow from your report, particularly the introduction)

it is still unclear to me whether this draft report is part of this week's milestone still-- I'm not sure if this Rmd was moved to next week along with the script to knit this Rmd, or if only the script to knit has been moved.

Hi @dy-lin !
I was struggling with the outputting PDF file. It's resolved now.
Regarding the context of the milestone2.Rmd, I believe that they are not expecting anything new. They have just requested not to put the same file as milestone1.Rmd, especially by not including inline R codes for producing the plots.
Although, if it was okay to use inline codes, we could make the report much cleaner by using references and captions. I could not find a solution to include those without the use of inline codes.


Select all tests is not working for grouped tests

Steps to reproduce

Login to Zebrunner
Open test runs tab
Select test run
Select Class/Package/Tags (groups are collapsed)
Select checkbox
Expand gruop

Actual behavior
Nothing is selected

Environment
ui: 1.1.0 server: <IP_ADDRESS>2-SNAPSHOT

Verified in ui: <IP_ADDRESS>7-SNAPSHOT server: <IP_ADDRESS>4-SNAPSHOT.


Libba's Epic

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Stream Analytics:0.17782584,Service Bus:0.15358351,Storage:0.13925494'

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Stream Analytics:0.17782584,Service Bus:0.15358351,Storage:0.13925494'


How do I prevent CXF from publishing the service (in client-only scenarios)

I built a Camel Quarkus application which exposes a REST API and calls the remote SOAP serivce - i.e. it acts as a SOAP client. I noticed, however, that CXF Handler is still trying to create a Web Service Web Service org.apache.camel.component.cxf.jaxws.DefaultPayloadProviderSEI on / and fails. Im wondering if it is possible to disable the service creation completely. What I see in the docs at https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/dev/client.html is:
Without any further configuration Quarkus-CXF assumes a service to be published at [http://localhost:8080/{service-path}](http://localhost:8080/%7Bservice-path%7D), where {service-path} is derived from
config property quarkus.cxf.path (if present); and the
SEI’s lowercased class name

This is a bit confusing, since my intention is not to publish any service but consume a remote service published elsewhere.

I wonder what is the difference between the CXF client integration test and your use case? If there is no substantial difference, then does problem you describe occur also in the test?

As of Camel Quarkus 2.13.1 and Quarkiverse CXF 1.5.7, the client only use cases are better tested and should work as expected. Please feel free to reopen this issue if your scenario still does not work @javaduke


Re-used images only show up in editor after reload

When inserting an image into a story which was already in use in another story (via "Reuse"), the list of available image files in this story is not immediately updated. Only after a manual browser-reload the image is available in the list. So the assignment works, but the visible list is not automatically updated.
I already checked the error logs and the JS-console in the browser, without finding any corresponding entries. We can reproduce this issue in all browsers tested (Chrome 76, Firefox 69 and Safari 12.1). I am unsure whether this is a general Bug in Pageflow or if it is specific to our self-hosted instance (v14.4.0).
I would appreciate any hints or useful insight. Please let me know if further information is required to narrow down the exact nature of the problem.

Sorry for the late reply. I cannot reproduce the issue on our instances. Do you see any errors in the browser console after selecting an image for reuse? Reusing a file should trigger a reload of the generated entry stylesheet which contains the background-image CSS rules. If you have the network panel open in the dev tools while selecting a file, you should see a request of the form:
.../revisions/611.css?p=14.4.0&v=pageflow%2Frevisions%2F611&reload=1568734182204.
If you have configured the asset host to use a CDN, you might need to check in the CDN configuration that the query string is part of the cache key. Otherwise you might see stale data. On the other hand, this should cause the problem to persist across reloads as well...

Hey tf,
Thanks for the reply.

Do you see any errors in the browser console after selecting an image for reuse?

Unfortunately not.

If you have the network panel open in the dev tools while selecting a file, you should see a request of the form:
.../revisions/611.css?p=14.4.0&v=pageflow%2Frevisions%2F611&reload=1568734182204.

I only see this request on the initial pageload. Not while/after inserting an image via "reuse". The only thing i see during the insertion is an XHR-Request to editor/entries/118/files/image_files/reuse
The response body is:
Turbolinks.clearCache()
Turbolinks.visit("http://DOMAIN.com/entries/118", {"action":"replace"})

The log on the server contains these entries:
I, [2019-09-19T10:17:15.461056 #23755]  INFO -- : Started POST "/editor/entries/118/files/image_files/reuse" for XXX.XXX.XXX.XXX at 2019-09-19 10:17:15 +0200
I, [2019-09-19T10:17:15.463124 #23755]  INFO -- : Processing by Pageflow::Editor::FilesController#reuse as JSON
I, [2019-09-19T10:17:15.463253 #23755]  INFO -- :   Parameters: {"file_reuse"=>{"other_entry_id"=>14, "file_id"=>72}, "entry_id"=>"118", "collection_name"=>"image_files", "file"=>{"file_reuse"=>{"other_entry_id"=>14, "file_id"=>72}}}
I, [2019-09-19T10:17:15.493504 #23755]  INFO -- : Redirected to http://DOMAIN.com/entries/118

Thanks for your help

Interesting. Since our instances do not use Turbolinks, the reuse request is just a plain redirect in our case. I wonder if Turbolinks might somehow mess things up here.
The overall flow should look like this: The success handler of for the reuse XHR request triggers a use:files event. That event triggers the stylesheet reload.
If you do not see the stylesheet reload, then it is clear that images will not be displayed correctly. The remaining question is why the reload doesn't happen. Maybe you can use the JS debugger to trace down at which points the process fails.

Hey tf,
I was somehow under the impression that turbolinks is a dependency added by pageflow. After inspecting our Gemfile I realised, that I was mistaken. Removing turbolinks seems to fix the problem.  Now I see the request for the stylesheet and the new image pops up in the image-select-window.
Thank you for your help!

Happy to hear that! :+1:


Check for missing type parameter names in JSDoc template tags

Fixes #36692
Co-authors @alejo4373 @joseph-p-pasaoa

Oops, we forgot to merge this and I ended up re-fixing this incorrectly in #42851. I'm going to merge now.


Updated CI, resolved pytest collection warning

pytest would warn on every run about an error with test collection because TestableManager, a non-test suite class beginning with "test," was included in the same file as actual test suites. Because of its name, during collection it is mistaken for an actual test suite, resulting in a warning in every full unit test run. Renaming this class and other associated identifiers addresses this.
Additionally, as part of https://github.com/CCI-MOC/esi/issues/330, this project will now lint check and run unit tests during CI for versions of Python between 3.6, the earliest version that doesn't cause major dependency breakages-- thru 3.11, the newest version currently available by default on the Ubuntu 20.04 CI runner. (Ubuntu 20.04 is itself, currently the newest version of Ubuntu with Python 3.6 installed by default)

Nice catch!


Make sure the desired XR has type metadata

This is required for it to survive a round-trip through JSON marshalling and unmarshalling, which patching depends on. If it doesn't have a kind field, the Unstructured type's UnmarshalJSON method will return an error.
Fixes https://github.com/crossplane-contrib/function-patch-and-transform/issues/8

If I run xrender against 2ce28cba6d1510c47811ac6fbfec070e3df6f56a I get:
$ git co main
$ go run . --insecure -d
2023-09-29T15:55:15.898-0700    INFO    function-patch-and-transform/fn.go:29   Running Function        {"tag": ""}
2023-09-29T15:55:15.899-0700    DEBUG   function-patch-and-transform/fn.go:96   Processing resource template    {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-network-eks"}
2023-09-29T15:55:15.899-0700    DEBUG   function-patch-and-transform/fn.go:153  Found corresponding observed resource   {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-network-eks", "ready": false, "name": "existing-xnetwork"}
2023-09-29T15:55:15.899-0700    INFO    function-patch-and-transform/fn.go:170  Cannot render ToComposite patches for composed resource {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-network-eks", "warning": "cannot apply the \"ToCompositeFieldPath\" patch at index 5: Object 'Kind' is missing in '{\"status\":{\"subnetIds\":[\"subnet-a\",\"subnet-b\"]}}'"}
2023-09-29T15:55:15.899-0700    DEBUG   function-patch-and-transform/fn.go:96   Processing resource template    {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-cluster-eks"}
2023-09-29T15:55:15.899-0700    INFO    function-patch-and-transform/fn.go:182  Cannot render FromComposite patches for composed resource       {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-cluster-eks", "warning": "cannot apply the \"FromCompositeFieldPath\" patch at index 12: status: no such field"}
2023-09-29T15:55:15.899-0700    DEBUG   function-patch-and-transform/fn.go:96   Processing resource template    {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-cluster-services"}
2023-09-29T15:55:15.899-0700    INFO    function-patch-and-transform/fn.go:201  Successfully processed patch-and-transform resources    {"xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-templates": 3, "existing-resources": 1, "warnings": 2}

Whereas after this change I get:
$ go run . --insecure -d
2023-09-29T15:57:00.271-0700    INFO    function-patch-and-transform/fn.go:31   Running Function        {"tag": ""}
2023-09-29T15:57:00.272-0700    DEBUG   function-patch-and-transform/fn.go:110  Processing resource template    {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-network-eks"}
2023-09-29T15:57:00.272-0700    DEBUG   function-patch-and-transform/fn.go:138  Resource template corresponds to existing composed resource     {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-network-eks", "metadata-name": "existing-xnetwork"}
2023-09-29T15:57:00.272-0700    DEBUG   function-patch-and-transform/fn.go:167  Found corresponding observed resource   {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-network-eks", "ready": false, "name": "existing-xnetwork"}
2023-09-29T15:57:00.273-0700    DEBUG   function-patch-and-transform/fn.go:110  Processing resource template    {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-cluster-eks"}
2023-09-29T15:57:00.273-0700    INFO    function-patch-and-transform/fn.go:196  Cannot render FromComposite patches for composed resource       {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-cluster-eks", "warning": "cannot apply the \"FromCompositeFieldPath\" patch at index 12: status: no such field"}
2023-09-29T15:57:00.273-0700    DEBUG   function-patch-and-transform/fn.go:110  Processing resource template    {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-template-name": "composite-cluster-services"}
2023-09-29T15:57:00.273-0700    INFO    function-patch-and-transform/fn.go:215  Successfully processed patch-and-transform resources    {"tag": "", "xr-version": "aws.caas.upbound.io/v1alpha1", "xr-kind": "Cluster", "xr-name": "aws-spoke-01", "resource-templates": 3, "existing-resources": 1, "warnings": 1}


New extension: Meme generator

Description
Extension that uses Imgflip API to generate memes from most favorite templates.
Screencast
https://user-images.githubusercontent.com/15653065/193561575-92be114f-55b6-43d8-95db-5bb64fa8277b.mp4
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Is it possible to show the selected template while filling in the values? Would help with usage / no need to remember where those texts are shown again 🤔

Sadly the information about text boxes positions does not come in API response, so I would have to generate image on every text input change to get the preview. It is doable, but would definitely increase the number of API calls.
Also I'm not sure how would I display form and preview image in the same view in Raycast. It might slow down the whole process, toggling back and forth between two views... But if you have any idea let me know and I can try 😊

@pernielsentikaer Hi!
Thanks for your feedback. I just tried to generate meme using the same codebase and its working fine for me. 😁
Can you can please check if there are some filled values in extension preferences? They should be empty to use the shared user. Also I checked with Imgflip and requests to the API may be rate-limited if there is a lot of requests.

Should be fixed now, you can see what I changed @timoransky 🔥

@pernielsentikaer thanks for the fix! 👍


Allow external compiler launch from Ant

Forked execution of the compiler is more compatible for some projects,
and avoids having to place the error_prone_ant.jar file in your local
Ant install directory (it can be checked in, downloaded, etc.).

@garricko - I'm sorry we lost track of this pull request. Is this something you're still interested in contributing?
Since you opened the PR, we finally did another release and the ant plugin got re-arranged a bit.

I think it still makes sense to have an external launcher, since that allows you to control things (like memory) that are off-limits for in-process compilers. I rebased to the latest code and added a few improvements.

Agreed, it'd be good to support.
Something funny happened to the rebase, though: e4642135594d128c7aae1af4121e141a96180eea and bd9b73f5e167c6cfb07bfb16b2cb70d5537dab9b ended up on either side of all the other patches.
Also, can you please fill out a CLA?

I couldn't figure out how to fix that rebase mess, so I created a new pull request 293 and am closing this one. I filled out the CLA as requested.

Thanks, SGTM


cargo does not load workspace .cargo/config.toml

Problem
my project is a cargo workspace, and i put .cargo/config.toml in workspace root, but seems cargo does not load it:
[source.crates-io]
replace-with = "ustc"

[source.ustc]
registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"

[http]
timeout = 60

[net]
retry = 5

I read cargo docs, it says should find it first
Steps

put .cargo/config.toml in workspace root
cargo install package
source replace-with not work

Possible Solution(s)
No response
Notes
No response
Version
cargo 1.79.0 (ffa9cf99a 2024-06-03)
release: 1.79.0
commit-hash: ffa9cf99a594e59032757403d4c780b46dc2c43a
commit-date: 2024-06-03
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Ubuntu 24.4.0 (noble) [64-bit]

This is similar to #14001

So if I'm understanding, you are wanting cargo install to use the config file from the --git repo, right?
Config is environmental and not tied to the project (#2930, see #12738 for finding ways the right abstraction for representing config in the project).  According to these rules, cargo install should use the config of your current-dir independent of where the source is.  You can see this if you do cargo check --manifest-path <some-dir> that the config from <some-dir> won't be used, instead requiring something like #10098.  For various reasons, cargo install varies from this pattern and only the user-wide configuration is used and not the config for the current-dir.


clean up use of coda calls

Sometimes we use coda:: and sometimes not. Also we do note export as.mcmc.list.

Looking in MCMC_run.R, it looks like I generally used correct coda:: scoping for coda::as.mcmc.list(), but failed to do so for as.mcmc().  Feel free to add this scoping, where ever necessary
Both as.mcmc() and as.mcmc.list() are used and required by runMCMC(), which appears to have grown into the main way that users are accessing the MCMC.

Actually in looking back at "Writing R extensions" it doesn't seem like we need the :: if we have a given function in importsFrom in NAMESPACE, so I am just putting as.mcmc.list in importsFrom and leaving out coda:: entirely.


[Java] Test failure in Dataset regarding TestAllTypes

Describe the bug, including details regarding any error messages, version, and platform.
There is a test failure regarding parquet based test cases in Dataset module. This issue was identified here.

I am working on it at the moment :slightly_smiling_face:

@kou I cannot build the JNI libraries in both Ubuntu and Mac due to a different reason. I am working on that...

Could you also show dpkg -l | grep libstd?

(pyarrow-dev) vibhatha@abeykoon:~/github/fork/arrow/java$ dpkg -l | grep libstd
ii  libstdc++-11-dev:amd64                     11.4.0-1ubuntu1~22.04                                 amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++6:amd64                           12.3.0-1ubuntu1~22.04                                 amd64        GNU Standard C++ Library v3
ii  libstdc++6:i386                            12.3.0-1ubuntu1~22.04                                 i386         GNU Standard C++ Library v3

Could you remove llvm installed by conda?

Or could you also install clang by conda?

clang was installed by conda.

@kou I was able to fix my dev environment and thanks for the tips.
Also I can verify that the issue recorded here can be reproduced in Ubuntu 22.04.4 LTS

@kou looking into the issue, in high level what's happening is that there is a comparison between in memory generated Arrow Java data which is later written to the disk vs a predefined  test file alltypes-java.parquet which has been introduced here: https://github.com/apache/arrow-testing/blob/ad82a736c170e97b7c8c035ebd8a801c17eec170/data/parquet/README.md. In the description it mentions Parquet file written by using the Java DatasetWriter class in Arrow 14.0.... I am just thinking out loud, some modification happened in Arrow 15.0 could be causing this?

Could you try git bisect to identify which commit is related to this?

@kou the main change in the source is associated with https://github.com/apache/arrow/pull/39681
Here we introduce the Float16, if we do it here, don't we have to update the alltypes-java.parquet in accordance with that?

If we check the testing in the main: https://github.com/apache/arrow-testing/tree/ad82a736c170e97b7c8c035ebd8a801c17eec170
And if we check the latest commit, we don't find what is introduced by this PR: https://github.com/apache/arrow-testing/pull/99

Seems like we have to update the submodule?

Issue resolved by pull request 40662
https://github.com/apache/arrow/pull/40662


Introduce a :or type

It's missing docs still, but I think this is a pretty low hanging fruit. Reasons why I'm okay with this:

the error message comes out nicely by combining all the error messages
"casting" works okay by just casting as the first matching type
I've used this a billion times through {:custom, ...} in my code already eheh

Thoughts before I write docs? :)

Sounds good to me! I am just not sure if :or is the best name. As it can cause confusion with one_of. Not sure of suggestions though.

@josevalim I know, it should be one_of for this feature and member_of for what today is called one_of 😭 Maybe we can call this :alternatives, not sure 😕

I think it is fine to name this or if we name the one member_of or in. Maybe we can deprecate one_of as in.

@josevalim I think the clearest options are:

call this :one_of
call the other one :member_of

If that's fine, I propose to:

Rename :one_of to :member_of with warning
Call this :or for now

In the next release, we can rename :or to :one_of if we want to, and call it a day. Thoughts?

I would prefer to not do a double renaming. Which is why I went with in/or. In is also a common idiom in Elixir. I think anything starting with one_of will be ambiguous

Okay, lets go with in and or 🙃

@josevalim ready for another review :)


Remove usage of org.jetbrains.kotlin.android.extensions plugin in snippets

It is deprecated since Kotlin 1.4.20

@bot-gradle test this

I've triggered the following builds for you:

PullRequestFeedback build

@bot-gradle test and merge

I've triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

I've triggered a build for you.


Wrapper for running MSE sims cross multiple OMs and HCRs

There is currently a parallel wrapper function for running an MSE (with a specific OM and HCR combination) multiple times with different random seeds. This will need to be extended to work across multiple OMs, multiple HCRs, and multiple simulation seeds.
The way I handled this for the PWS MSE was to use expand.grid to create a factorial table with all combination of OMs, HCRs, and seeds, and then looped over that table in parallel, while parsing out the correct object inputs for the MSE simulation function. Something similar is probably viable here, but there might be a nicer way to do this...

I do it the old fashioned way where I have an excel spreadsheet of variables I want to change, after which I call them in through R... but I think expand.grid is probably better than that...

Will probably make a function run_mse_multiple(oms, hcrs, seeds, ...) that accepts lists of OMs, HCRs, and simulation seeds, and creates a grid of combinations to run in parallel.
Will need to make a modification to how HCRs are defined in order to handle HCRs that include harvest caps and stability constraints.

Closed by a99c2004f4bd448e4a0c2e83a6aa1b4e953309b8


TCP node: topic cached when connection always on

When configuring a TCP request to be connected all the time, it seems the node will cache the msg.topic, it will only output the first msg.topic it gets ignoring further updates.  I'm not sure if this is a bug or a feature... Here's a video demo:

I encountered the same problem - I find this is a bug!