parser+typechecker: Implement default args for functions/methods

This PR adds the possibility to use default arguments for functions and method calls.
function say(text: String = "WHF", number: i64 = 5, boolean: bool = false, optional: String? = None) {
    println("{} {} {} {}", text, number, boolean, optional)
}

function main() {
    say()
}

// output: "WHF 5 false None\n"

Nice!
You'll probably want a few more tests, as there are some corner cases:

What if you only pass some, but not all, of the defaults?
What if the user makes some parameters required and others default?
If the user puts the default params before the required params, does it error?
Does this work for methods also?

Questions for future PRs:

do default params work for closures?
If so, what happens if one of the default values closes over a variable outside of the closure?

Hello!
One or more of the commit messages in this PR do not match the Jakt code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.

Nice!
You'll probably want a few more tests, as there are some corner cases:

What if you only pass some, but not all, of the defaults?
What if the user makes some parameters required and others default?
If the user puts the default params before the required params, does it error?
Does this work for methods also?

Questions for future PRs:

do default params work for closures?
If so, what happens if one of the default values closes over a variable outside of the closure?

What if you only pass some, but not all, of the defaults?

This is addressed in this test:
samples/functions/default_arguments_mixed.jakt
function say(text: String, number: i64 = 5, boolean: bool, optional: String?, byte: u8 = b'a') {
    println("{} {} {} {}", text, number, boolean, optional, byte)
}

function main() {
    say(text: "WHF", boolean: true, optional: None)
}

What if the user makes some parameters required and others default?

Not sure if I understand the case, but I think this test address it:
samples/functions/default_arguments_some_defaults.jakt
function say(text: String = "WHF", number: i64 = 5, boolean: bool = false, optional: String? = None) {
    println("{} {} {} {}", text, number, boolean, optional)
}

function main() {
    say(text: "Hello", optional: "World")
}

If the user puts the default params before the required params, does it error?

It does not, I address it in the following test:
samples/functions/default_arguments_default_before_required.jakt
/// Expect:
/// - output: "Hello 5 false WHF 121\n"

function say(text: String = "Hello", number: i64 = 5, boolean: bool = false, optional: String?, byte: u8) {
    println("{} {} {} {} {}", text, number, boolean, optional, byte)
}

function main() {
    say(optional: "WHF", byte: b'y')
}

Does this work for methods also?

It does. I address it in the following test
samples/functions/default_arguments_method.jakt
/// Expect:
/// - output: "Well, hello friends. My name is Jane and I am 36 years old.\n"

class Person {
    public function greet(this, name: String = "Jane", age: i64 = 36) {
        println("Well, hello friends. My name is {} and I am {} years old.", name, age)
    }
}

function main() {
    let p = Person()
    p.greet()
}

Cool, thanks for the clarifications.
We just landed a massive PR, so you'll need to fix a few conflicts before we can finish up.

good job - looks good!


Updates

remove torchtext.legacy obsolete package
change IMDB with AG_NEWS dataset
make a new train, evaluate function
Add pretrained embedding
fix bilibili missing video ids

Also, resolves https://github.com/NeuromatchAcademy/course-content-dl/issues/758


MS Sql server not connect

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/dialects/mssql/pymssql.py", line 72, in _get_server_version_info
r"Microsoft SQL Server.*? - (\d+).(\d+).(\d+).(\d+)", vers)
File "/usr/lib/python2.7/re.py", line 137, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or buffer

getting this error while creating db engine using pysqlalchemy in python 2.7
but in python3 works well... but open mining runs only in python 2.7

@abuvanth can you contribute to the project by sending this correction?

easy_install --upgrade pymssql


Get path for Python interpreter from settings

It'll allow to set path to custom python binary

There's a new python option for the setup that you can use :smile:

Cool, thanks!


Update the User Guides root page content

[x] I have spellchecked my content using Microsoft Word, Grammarly, or otherwise.
[ ] If required, update the DEA Tech Alerts and Changelog and the DEA Sandbox Updates banner.

Robbi flagged that the User Guides root page content was updates so I updated it to new content. It is very simple now but I plan to improve it in the future by adding an 'image grid' layout similar to this page.

An image grid on that page will be awesome!
Is is worth making some tiny updates here in this PR too? The Github link at the end is messed up, and it uses future tense "DEA will build on..."
https://pr-222-preview.khpreview.dea.ga.gov.au/guides/about/intro/

@robbibt Thank you for noticing that -- I'll make a second PR to fix those things.


Freeze the tip button and show success message while the tipping process is going on.

@Chima1707 maybe show the preloader?

How about have that tip form to hide when you click Tip (submit button)
then after a while the success/error messages appear as new popup with the result.

Why not. It’s easy to achieve.

But wait. I thinks that some preloading is less confusing.

But wait. I thinks that some preloading is less confusing.

but it might take a while to get the result and would be good to be able to close it before that. Like want to continue watching (the ui blocks the video) or want to tip several users one after other.
But i agree the original issue description is at least the minimum to be implemented

@mike-gusev-ae thanks for the PRs. I think we need disable as it already done and also maybe also show the preloader or hide that popup.

I mean place some preloader inside the tooltip.

@DeeJayElly can you help us to decide?

Agree with preloader


Add my school to the JetBrains database

School Website: https://smc.sa.edu.au

@MichelePip domains/au/edu/sa/smc.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@MichelePip domains/au/edu/sa/smc.txt: this request has an incorrect file path format, please ensure that you are familiar with this repository rules located at the bottom of this page and change your request accordingly. If you don't know how to change request, close it and open a new one. If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

Hey, thanks for the reply.
I'm unsure what you mean by incorrect file format, can you please confirm? I have just checked the rules at the bottom of the page and I am still unsure.

@MichelePip It is now fine already :) I added "lib" at the beginning to the filepath. Pull request merged. Thank you!

Thanks!

Hey, just trying to apply now, and the E-Mail is still invalid, is there a delay between this?


Removed Kafka identity

What changes were proposed in this pull request?
Removed Kafka identity in order to have only one "Datastore"

Did you change the documentation too?

yes https://stratio.atlassian.net/wiki/spaces/STRATIOSPARK/pages/110110956/Kafka+with+TLS


Use u64 instead of u32 for block height

Outstanding TODO in codebase.
We have plenty of time until we run out of blocks using u32 (approx. year 83667 if my back-of-the-envelope math is correct), however there are a few reasons why I agree it's worth cleaning up:

Mixed usage of u32 and u64 results in multiple typecasts including an awkward downcast in the consensus codepath
The space savings in the db are negligible since we only store the most recent block count vote for each peer

The space savings in the db are negligible since we only store the most recent block count vote for each peer

Since we use varint encoding, there is not space savings. Both types encode to same values. And if you were to change them to u64, everything should still work, assuming no one will be running old/current versions in the year 84689.


Does not record crashes of System UI.

I'm using https://f-droid.org/repo/taco.scoop_34.apk on the stock AOSP-derivative Fairphone FP5 OS, build FP5.TT4D.A.157.20240417. When com.android.systemui crashes, the event is not recorded in Scoop's GUI.

https://github.com/TacoTheDank/Scoop/issues/85#issue-2315003501

I hadn't completed https://github.com/TacoTheDank/Scoop/wiki/Home/76df7b439fa92c4da115615de9515fd0eaec819e#instructions-for-non-rooted-users yet.


"dotnet publish" strips out angular-specific tags used for CSS

Problem
When using "dotnet publish" to publish and the pack our project for deployment, the DOM-related tags in our Angular 4 project are stripped out. This affects some of our components that assume that the parent elements have styling, namely that they have their height set to 100%.
Build process that works:
C:\Dev\MPS\mps [RMS-5200 ↑5 +1 ~4 -0 !]> npm run-script build

<EMAIL_ADDRESS>build C:\Dev\MPS\mps
dotnet build && webpack --config webpack.config.vendor.js && webpack

Microsoft (R) Build Engine version <IP_ADDRESS>948 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 66.74 ms for C:\Dev\MPS\mps\mps.csproj.
Restore completed in 70.16 ms for C:\Dev\MPS\mps\mps.csproj.
Restore completed in 124.07 ms for C:\Dev\MPS\mps\mps.csproj.
mps -> C:\Dev\MPS\mps\bin\Debug\netcoreapp2.0\mps.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.17
Hash: 9aa766adcb359798b0c94a20433964185280358e
Version: webpack 2.7.0
Child
Hash: 9aa766adcb359798b0c9
Time: 6313ms
Asset     Size  Chunks                    Chunk Names
89889688147bd7575d6327160d64e760.svg   109 kB          [emitted]
vendor.js  3.33 MB       0  [emitted]  [big]  vendor
vendor.css   406 kB       0  [emitted]  [big]  vendor
Child
Hash: 4a20433964185280358e
Time: 6294ms
Asset    Size  Chunks                    Chunk Names
89889688147bd7575d6327160d64e760.svg  109 kB          [emitted]
vendor.js  3.6 MB       0  [emitted]  [big]  vendor
Hash: 729bea1577a4663ba9ce957cdd3206cc36698112
Version: webpack 2.7.0
Child
Hash: 729bea1577a4663ba9ce
Time: 32732ms
Asset     Size  Chunks                    Chunk Names
main-client.js  2.16 MB       0  [emitted]  [big]  main-client
main-client.js.map  2.55 MB       0  [emitted]         main-client
Child
Hash: 957cdd3206cc36698112
Time: 32723ms
Asset     Size  Chunks                    Chunk Names
main-server.js  6.66 MB       0  [emitted]  [big]  main-server
C:\Dev\MPS\mps [RMS-5200 ↑5 +1 ~4 -0 !]> dotnet run
Using launch settings from C:\Dev\MPS\mps\Properties\launchSettings.json...
Hosting environment: Production
Content root path: C:\Dev\MPS\mps
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
Note the _nghost and _ngcontent tags present in the source code below:

Build/publish process that doesn't work
C:\Dev\MPS\mps [RMS-5200 ↑5 +1 ~4 -0 !]> dotnet publish
Microsoft (R) Build Engine version <IP_ADDRESS>948 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 75.6 ms for C:\Dev\MPS\mps\mps.csproj.
Restore completed in 81.61 ms for C:\Dev\MPS\mps\mps.csproj.
Restore completed in 130.46 ms for C:\Dev\MPS\mps\mps.csproj.
mps -> C:\Dev\MPS\mps\bin\Debug\netcoreapp2.0\mps.dll
up to date in 11.459s
Hash: b2a50760c2c3639f51b8c69736d35fa559760d6a
Version: webpack 2.7.0
Child
Hash: b2a50760c2c3639f51b8
Time: 25133ms
Asset    Size  Chunks                    Chunk Names
89889688147bd7575d6327160d64e760.svg  109 kB          [emitted]
vendor.js  194 kB       0  [emitted]         vendor
vendor.css  365 kB       0  [emitted]  [big]  vendor
Child
Hash: c69736d35fa559760d6a
Time: 25241ms
Asset     Size  Chunks                    Chunk Names
89889688147bd7575d6327160d64e760.svg   109 kB          [emitted]
vendor.js  3.54 MB       0  [emitted]  [big]  vendor
Hash: d39aed335f5e65006542dc55b5d8250b61e440aa
Version: webpack 2.7.0
Child
Hash: d39aed335f5e65006542
Time: 37211ms
Asset     Size  Chunks                    Chunk Names
main-client.js  1.47 MB       0  [emitted]  [big]  main-client
Child
Hash: dc55b5d8250b61e440aa
Time: 37203ms
Asset    Size  Chunks                    Chunk Names
main-server.js  7.2 MB       0  [emitted]  [big]  main-server
mps -> C:\Dev\MPS\mps\bin\Debug\netcoreapp2.0\publish
C:\Dev\MPS\mps [RMS-5200 ↑5 +1 ~4 -0 !]> cd .\bin\Debug\netcoreapp2.0\publish
C:\Dev\MPS\mps\bin\Debug\netcoreapp2.0\publish [RMS-5200 ↑5 +1 ~4 -0 !]> dotnet .\mps.dll
Hosting environment: Production
Content root path: C:\Dev\MPS\mps\bin\Debug\netcoreapp2.0\publish
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
Note that the _ng tags are now missing from the source code:

Hey @SteveSandersonMS. Any word on this?

The <app> element does get replaced entirely when the Angular app is rendered into it, so this behavior is expected.
I would recommend putting your custom attributes on the parent element, e.g., <body> or on some new <div> that you wrap around the <app> element.

I see - thanks for the clarification.
I'm afraid that there's nothing in the JavaScriptServices code that proactively removes the _ng* attributes. The fact that they aren't present from a production-built app is under the control of the Angular portion of your app only. I don't know why their presence/absence is different in the two environments, but I'm afraid you'd need to follow up with the Angular docs for more information about that, as it's not something controlled by any code in this repo (at least not as far as I'm aware). Sorry I don't have a more useful answer!


Update multiple fields

Today there is updateField which allows to update one field of an entity. When we want to update 5 fields we need to do 5 of these patches. Perhaps we can change it to updateFields and allow multiple fields to be pass in as an object?
So for this:
const patches = [
  updateField<MyEntity>("myid", "field1", "value1"),
  updateField<MyEntity>("myid", "field2", "value2"),
  updateField<MyEntity>("myid", "field3", "value3"),
]

We would instead have this:
const patches = [
  updateFields<MyEntity>("myid", {
    field1: "value1",
    field2: "value2",
    field3: "value3"
  })
]

It could also be named updateEntity.


Add Number.ChangePrecision to change precision of numbers

Currently, the module will default to precision of '4' places. Example:
1.234billion
1,234,000,000 -- all numbers after the '4' are 0.
Users should have the opportunity to change the precision of all numbers by using a static method:
function Number.ChangePreicsion(n)
 -- change precision
end

The function has been added, but it doesn't affect math yet

I'm actually a bit confused on this function, from what I've seen the 1,234,000,000 example is false, and it'll go much further.
I tried printing IM.new(1234567890) and I got 1.234567890, 9 which is about 1.2 billion. I even printed the same number + 100 million and it gave me 1.33456789, 9, which is 1.3 billion.
Unless I'm misunderstanding the use of this function, this seems unneeded

The way the module is written, the amount of decimals stored in the first number doesn't affect performance at all, so I don't see much use in this function.
Maybe we could add a decimal precision function for displaying numbers, like with GetSuffix and ScientificNotation. Right now ScientificNotation will display the entire number while GetSuffix is limited to 1 decimal, so a function for actual decimal precision could be added if people want it.


shelephant_get: consider showing progress bar for reading checksums

What I doubt about is if the user will think that the program is already copying

What I doubt about is if the user will think that the program is already copying

This could be improved by adding the description "reading checksums"

This could be improved by adding the description "reading checksums"


Update Get-M365DataAtRestEncryptionPolicy.md

Docs Build status updates of commit 411f2e3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Get-M365DataAtRestEncryptionPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 411f2e3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Get-M365DataAtRestEncryptionPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


'No data channels found' with plot_psd() on misc channels

Issue:
Error of "No Data channels found" when attempting to plot_psd() on misc channels in a dataset which contains only misc channels. The dataset is created from raw numpy EEG data derived from a custom made device.
Platform
Platform:      Darwin-19.3.0-x86_64-i386-64bit
Python:        3.7.7 (default, Mar 10 2020, 15:43:33)  [Clang 11.0.0 (clang-1<IP_ADDRESS>)]
mne:           0.21.dev0
numpy:         1.18.2 {blas=openblas, lapack=openblas}
scipy:         1.4.1
matplotlib:    3.2.1 {backend=MacOSX}

Steps:
Create mne object from raw data
mne_data = create_mne_object(channels, data, samp_freq)
print(mne_data)
print(mne_data.info)

The output is shown below.
<RawArray | 2 x 1024 (4.1 s), ~25 kB, data loaded>
<Info | 7 non-empty values
 bads: []
 ch_names: CH1, CH2
 chs: 2 MISC
 custom_ref_applied: False
 highpass: 0.0 Hz
 lowpass: 125.0 Hz
 meas_date: unspecified
 nchan: 2
 projs: []
 sfreq: 250.0 Hz
>

Time-domain data does plot correctly. However, when attempting to plot psd:
picks = mne.pick_types(mne_data.info, misc=True)
print(picks)
spect = mne_data.plot_psd(picks=picks)

Output:
[0 1]
RuntimeError: No data channels found

Summary
This issue seems similar to the bug here. Is there a workaround at this point? I have tried passing picks=None without success.

as you can see you have:
chs: 2 MISC
and MISC are not consider data channels. If you pass picks then I
think its fair to expect it to work.
if it does not please provide a full gist to replicate the pb. From
creation of data to plotting.
thanks

The following code replicates the problem:
import numpy as np
import mne

fs = 250
channels = ['CH1', 'CH2']
data = 1e-3*np.random.rand(2, 1024)
print(data.shape)

info = mne.create_info(channels, fs)
mne_data = mne.io.RawArray(data, info)

print(mne_data.info)
plt = mne_data.plot()
picks = mne.pick_types(mne_data.info, misc=True)
print(picks)
spect = mne_data.plot_psd(picks=picks)

thanks

I can replicate the pb.
@drammock what's your feeling about this?
I am enclined to fix the behavior. If picks is None then default to what we call data channels but if you pass picks then plot whatever is requested.

agreed, seems to me like if the user passes picks we should give them what they ask for.

When picks = None, I get:
picks (NoneNone, treated as "data") yielded no channels, consider passing picks explicitly

yes we need to fix ...

Is there a temporary workaround for this in the meantime? How would I change it to a different type?

@gpeyton you can change the channel type with:
https://mne.tools/dev/generated/mne.io.Raw.html#mne.io.Raw.set_channel_types

@drammock do you want to work on the fix? If not, I can tackle it this week


add ucred(3C) support for illumos and Solaris systems

This series of routines allows the caller to determine the credentials
of another process by pid, or of the process on the remote end of a UNIX
domain socket.  The ucred_t is an opaque object with accessor routines,
and must be freed through ucred_free(3C) after use.

r? @JohnTitor
(rust_highfive has picked a reviewer for you, use r? to override)

cd libc-test && cargo test passes all tests on an illumos system.  For reference, the functions here are exposed in this header:
https://code.illumos.org/plugins/gitiles/illumos-gate/+/refs/heads/master/usr/src/head/ucred.h
... and documented in this manual page:
https://illumos.org/man/3C/ucred


fix current flow name variable calculation when CopyAllCallActivityOu…

…tVariables enabled

Coverage increased (+0.03%) to 68.123% when pulling cdb6571c4cba89e85c945f29c404f2e36c102d3e on current-flow-name-fix into 3f3a117da52a77d6b04da218082604ad805e9481 on master.


Add two new commands: Touch and SwapDB

See redis document.

Touch: https://redis.io/commands/touch
SwapDB: https://redis.io/commands/swapdb

I cannot build and run tests locally. I have to read travis-ci build log to know what's wrong right now. It's not efficient. Do you have any suggestion to improve the PR process? @vmihailenco

Current PR fails with some Go versions. I cannot find relation between my PR and the failure. Help wanted.

That is not your fault. Tests are flaky, because it is hard to write reliable tests for Redis Cluster failover.


Card Mod not working from examples

I have card mod installed and have some things set up based on examples from the docs and other issues, and some are working, some are not. For example here, the card background works and is the same color as the bar, but the date isn't red and past events aren't transparent.
card_mod:
  style: |
    .day.today .date {
      color: red;
    }
    .event.past {
      opacity: .3;
    }
    .event {
      background-color: var(--border-color) !important;
    }

It appears the "event.past" and "day.today" classes aren't being added to the div tags.

I think those are all in 1.5 which hasn’t been released on hacs


:sparkles: Feat: Implement evm api

Description
Implement the intial EVMts vm api
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

Current dependencies on/for this PR:

main

PR #638   👈

This stack of pull requests is managed by Graphite.


Fix errors related to fonts

Fixes error: ! LaTeX3 Error: Command '\FA' already defined! (posquit0, issue #234)
Fixes error: font not found (posquit0, PR #98)

@posquit0 Tested on macOS. The fix has already been proposed and mentioned in other issues and PRs.

@AntoniniP #98
@ashwinvis #234 / aminmkhan/Awesome-CV#6

Fixes my problems on Arch Linux. Would love to see this merged.

Thank you - I think many of us have made this or similar fixes over the years as posquit0's had other priorities. I have push access now to help maintain Awesome-CV; so I went with my old PR for this (#235/#344) for no reason other than my own familiarity, that I know it's been working for me.
Please do ping me/open another PR if something's still not right or I missed something though! Cheers.

Thanks a lot @OJFord, that's good update, and timely now for me to clean-up my #23 ...


how to check this and work in swift 3 with xcode 8.2

Version 0.1.8 was the last one that supported Swift 3, so you can use that one.

Ok i will check that thanks @fortmarek


Few small things

Just some small things I edited while was reading the code

If tuple (or a generator) is ever passed to _as_list , the behaviour will not be what is wanted (it would be iterable inside a list). Not sure if this can ever happen, but maybe better change it still?

Added the default cache also in the documentation

Made the default values for session_check and instant_refresh since if None, they will be set to True later on. It makes the help(function)` easier to read.

Thanks for the PR! I implemented a few of your suggestions directly, but the code had diverged too much to merge it easily now that i got around to reviewing pull requests. Time flies!


[Proposal] Migrate from ethers@5 to viem?

The wagmi-dev team is currently developing an alternative to ethers called viem. The maintainer is also discussing the possibility of integrating viem into future releases of wagmi.
In my opinion,

ethers@6 is relatively new and has yet to undergo extensive development and maintenance.
wagmi is the most popular library for dapps today.
viem appears to be a promising solution in many aspects.

I am considering transitioning the entire underlying stack to Viem. However, this process may take some time as it could potentially disrupt many elements in our system (e.g. the contract SDK, the indexer, and the sites). For now, I would like to wait and see how wagmi's migration goes. It may be the future, but we don't stand to gain anything from it more than ethers@5. Therefore, I am putting this on hold with a "?" and in the v1 milestone in anticipation of breaking changes.
Please let me know your thoughts.

I am happy to answer any questions ☺

@jxom Thank you! I had a chance to take a look at viem yesterday, and I must say it looks great! However, I'm concerned if it can handle the backend work our project requires, such as contract interaction and event listening, as it appears to be browser-oriented. I'm not sure if it will be a good fit.
What's more, we're using typechain to generate the ABI typings for ethers in our project. It looks like viem is using a similar technique to wagmi, which uses TypeScript inference. Is there something like the @wagmi/cli that can generate further types and functions, or do you think the current setup is sufficient?
Another question is: what is the anticipated status of viem? When will it reach maturity and become battle-tested? When will there be integration with wagmi?

I also tried to send a transaction but failed because of an error:
import { Wallet } from "ethers"; // v5
import { createWalletClient, createPublicClient, http } from "viem";
import { getAccount } from "viem/ethers";

const walletClient = createWalletClient({
	transport: http("https://rpc.crossbell.io"),
});
const publicClient = createPublicClient({
	transport: http("https://rpc.crossbell.io"),
});
const wallet = new Wallet(privateKey);
const account = getAccount(wallet);

const { request } = await publicClient.simulateContract({
	account,
	address: "0xa6f969045641Cf486a747A2688F3a5A6d43cd0D8",
	abi: [
		{
			inputs: [
				{
					components: [
						{
							internalType: "address",
							name: "to",
							type: "address",
						},
						{
							internalType: "string",
							name: "handle",
							type: "string",
						},
						{
							internalType: "string",
							name: "uri",
							type: "string",
						},
						{
							internalType: "address",
							name: "linkModule",
							type: "address",
						},
						{
							internalType: "bytes",
							name: "linkModuleInitData",
							type: "bytes",
						},
					],
					internalType: "struct DataTypes.CreateCharacterData",
					name: "vars",
					type: "tuple",
				},
			],
			name: "createCharacter",
			outputs: [
				{
					internalType: "uint256",
					name: "characterId",
					type: "uint256",
				},
			],
			stateMutability: "nonpayable",
			type: "function",
		},
	],
	functionName: "createCharacter",
	args: [
		{
			to: address,
			handle: genRandomHandle(),
			uri: metadataUri,
			linkModule: "0x0000000000000000000000000000000000000000",
			linkModuleInitData: "0x0000000000000000000000000000000000000000",
		},
	],
});
const hash = await walletClient.writeContract(request);

// util
function genRandomHandle() {
	const chars = "abcdefghijklmnopqrstuvwxyz0123456789";
	let handle = "";
	for (let i = 0; i < 10; i++) {
		handle += chars.charAt(Math.floor(Math.random() * chars.length));
	}
	return "a-random-handle-" + handle;
}

The error was emitted from the ether.js signTransaction, I think.
/Users/songkeys/GitHub/playground/node_modules/viem/dist/chunk-XMKUHSC7.js:3321
  return new TransactionExecutionError(cause, {
         ^

TransactionExecutionError: An error occurred.

Request Arguments:
  from:  0x00000081d48bA02DAa6C13D55C2916aD0570B652
  to:    0xa6f969045641Cf486a747A2688F3a5A6d43cd0D8
  data:  0xcd69fe61000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000081d48ba02daa6c13d55c2916ad0570b65200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000001a612d72616e646f6d2d68616e646c652d797265746a3374323538000000000000000000000000000000000000000000000000000000000000000000000000003c697066733a2f2f516d544d4436734c41374d346965674b446862644d50425a34484c6935666a57323777324a3136677163354362372f312e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000

Details: invalid object key - account (argument="transaction:account", value="[object Object]", code=INVALID_ARGUMENT, version=properties/5.7.0)
Version<EMAIL_ADDRESS>    at getTransactionError (/Users/songkeys/GitHub/playground/node_modules/viem/dist/chunk-XMKUHSC7.js:3321:10)
    at sendTransaction (/Users/songkeys/GitHub/playground/node_modules/viem/dist/chunk-XMKUHSC7.js:5090:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async writeContract (/Users/songkeys/GitHub/playground/node_modules/viem/dist/chunk-XMKUHSC7.js:5224:17)

I haven't taken a deep look though. Let me know if I did anything wrong or you need more info.


Update sbt-scala-native, scala3lib to 0.4.10

Updates

org.scala-native:sbt-scala-native
org.scala-native:scala3lib

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

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

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-native" }
}]

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

Superseded by #236.


DINO vs MAE

Hi,
Thanks for your amazing work. The study is very interesting. You are using DINO as feature extractor in your work, and I was just wondering if you tried using MAE or a different method? And do you have the same/similar results?
Thanks for your time,

Hi!
Thanks for finding interest in our work!
We did similar PCA visualizations for those in the paper with the ViT backbone of CLIP, and got similar results to those of the supervised ViT (relatively noisy maps, last layer first principal components tend to distinguish between classes). We did not apply these visualizations on MAE, feel free to try it out and submit a pull request 🙂


html file does not display as expected

Bij Les 3 van de "R voor beginners"opleiding zit er onder de oefening een link naar een html-pagina. Ik zou die willen laten zien, in plaats van hetgeen nu getoond wordt. De onderliggende .md uploaden zal niet het resultaat geven wat ik wil, want de bedoeling van deze oefening is dat deze html gereproduceerd kan worden vanaf een platte txt, zonder de stijl van de tutorials website.
Kan iemand mij uitleggen hoe ik dat het beste aanpak?

To do so, we should be able to configure 2 elements:

make sure the OmtezettenTekst.html file is also copied to the website pages (currently the file is ignored by settings of hugo)
change the URL to a HUGO-compliant link, probably something like
[link-name]({{< relref "/tutorials/r_beginners/Les3/Scripts/OmtezettenTekst.html" >}})

Unfortunately, I do not yet have a solution for the first element. Anyone else?

Note: the html file has been renamed to https://raw.githubusercontent.com/inbo/tutorials/8363ad3873add68772f7dd31b5606da9301ae035/content/tutorials/r_beginners/src/Rmarkdown_oefening_resultaat.html

@niconoe, this html file in src should be pushed as is to the website, but it is currently ignored by Hugo settings. Can you check if an exception can be made for this file?

Will do, thanks!

Thanks for uptaking this and other issues!
Something which might be related to this issue (and which I'm currently confronted with), is being able to show interactive leaflet/mapview maps (as well as ggplotly maps). Maybe it needs the same approach as this issue. An example is found here at the bottom (and another tutorial is underway).
The pathway of generating index.md from index.Rmd results in static images instead of embedded JavaScript (the latter is probably needed). If one puts a Pandoc-generated html file inside a tutorial's folder, it is used by Hugo instead of the index.md (hence interactive content works) but it misses the website formatting.


Support the market place task to run on ubuntu VM's

Is your feature request related to a problem? Please describe.
When we changed our vm pool image from windows latest to ubuntu:latest, out Build ADF and Publish ADF tasks started to fail
Describe the solution you'd like
Make it compatible with ubuntu VM's.
Describe alternatives you've considered
Nothing so far
Additional context
Starting: Publish-ADF-from-branch
Task         : Publish Azure Data Factory
Description  : Deploys entire ADF (v2) from JSON files to ADF instance (adftools)
Version      : 1.11.1070
Author       : Kamil Nowinski (SQLPlayer)
Help         : More Information
##[error]The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.
Finishing: Publish-ADF-from-branch
.

I'm closing this as a duplicated issue to this one: https://github.com/SQLPlayer/azure.datafactory.devops/issues/64
Consider using PowerShell Module of #adftools instead of AzureDevOps if you need to run under a Linux agent.


langchain.generate

code here seems to be not reasonable:
def generate(
        self,
        prompts: list[ChatPromptTemplate],
        n: int = 1,
        temperature: float = 1e-8,
        callbacks: t.Optional[Callbacks] = None,
    ) -> LLMResult:
        # set temperature to 0.2 for multiple completions
        temperature = 0.2 if n > 1 else 1e-8
        if isBedrock(self.llm) and ("model_kwargs" in self.llm.__dict__):
            self.llm.model_kwargs = {"temperature": temperature}
        else:
            self.llm.temperature = temperature

        if self.llm_supports_completions(self.llm):
            return self._generate_multiple_completions(prompts, n, callbacks)
        else:  # call generate_completions n times to mimic multiple completions
            list_llmresults = run_async_tasks(
                [self.generate_completions(prompts, callbacks) for _ in range(n)]
            )

            # fill results as if the LLM supported multiple completions
            generations = []
            for i in range(len(prompts)):
                completions = []
                for result in list_llmresults:
                    completions.append(result.generations[i][0])
                generations.append(completions)

            llm_output = _compute_token_usage_langchain(list_llmresults)
            return LLMResult(generations=generations, llm_output=llm_output)

i run the evaluate on cpu and memory, and encounter an error:
here 3
Llama.generate: prefix-match hit
Llama.generate: prefix-match hit
Llama.generate: prefix-match hit
GGML_ASSERT: /tmp/pip-install-dnbwilnk/llama-cpp-python_8aba6af1128d49b6bada62c4fe0fd870/vendor/llama.cpp/ggml.c:15149: cgraph->nodes[cgraph->n_nodes - 1] == tensor
GGML_ASSERT: /tmp/pip-install-dnbwilnk/llama-cpp-python_8aba6af1128d49b6bada62c4fe0fd870/vendor/llama.cpp/ggml.c:4039: ggml_can_mul_mat(a, b)
GGML_ASSERT: /tmp/pip-install-dnbwilnk/llama-cpp-python_8aba6af1128d49b6bada62c4fe0fd870/vendor/llama.cpp/ggml-alloc.c:453: view->view_src != NULL && view->view_src->data != NULL
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
        - Avoid using `tokenizers` before the fork if possible
        - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
        - Avoid using `tokenizers` before the fork if possible
        - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
        - Avoid using `tokenizers` before the fork if possible
        - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No stack.
The program is not being run.
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No stack.
The program is not being run.
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No stack.
The program is not being run.
Segmentation fault (core dumped)

i check the n is 3. so may this code be causing it:
list_llmresults = run_async_tasks(
                [self.generate_completions(prompts, callbacks) for _ in range(n)]
            )

can you help me, thanks!

which LLM are you using? if you are using an Opensource model or embedding could you share how your initiating that and the details

i initial my model use the following code:
`from langchain.llms import LlamaCpp
Make sure the model path is correct for your system!
model = LlamaCpp(
model_path="model/mistral-7b-instruct-v0.1.gguf",
temperature=0.70,
max_tokens=2000,
n_ctx=4096,
top_p=1,
verbose=True,
Verbose is required to pass to the callback manager
)`
and my package version is:
langchain==0.0.340
ragas==0.0.20

I see, this bug is due to LlamaCpp and async not working properly due to multithreading issues.

So, is there a workaround. How to solve this?


Formatting and docs

Two commits that do not really change anything except when you are a code nazi like me.

Sure, why not.


Problems with library ID when running zotcli configure a second time

When I run zotcli configure the first time, everything works as expected. However, if I try to run it a second time, I am prompted to enter my library ID (this prompt did not occur the first time). I have tried entering my Zotero login, but the configuration always errors with the following traceback:
Traceback (most recent call last):
  File "/home/joel/anaconda3/lib/python3.5/site-packages/pyzotero/zotero.py", line 284, in _retrieve_data
    self.request.raise_for_status()
  File "/home/joel/anaconda3/lib/python3.5/site-packages/requests/models.py", line 893, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.zotero.org/users/My%20Library/items/top?limit=100&format=json&since=1602

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/joel/anaconda3/bin/zotcli", line 11, in <module>
    sys.exit(cli())
  File "/home/joel/anaconda3/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/joel/anaconda3/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/joel/anaconda3/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/joel/anaconda3/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/joel/anaconda3/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/joel/anaconda3/lib/python3.5/site-packages/zotero_cli/cli.py", line 155, in configure
    zot = ZoteroBackend(config['api_key'], config['library_id'], 'user')
  File "/home/joel/anaconda3/lib/python3.5/site-packages/zotero_cli/backend.py", line 156, in __init__
    self.synchronize()
  File "/home/joel/anaconda3/lib/python3.5/site-packages/zotero_cli/backend.py", line 160, in synchronize
    new_items = tuple(self.items(since=self._index.library_version))
  File "/home/joel/anaconda3/lib/python3.5/site-packages/zotero_cli/backend.py", line 193, in items
    items = self._zot.makeiter(query_fn(**query_args))
  File "/home/joel/anaconda3/lib/python3.5/site-packages/pyzotero/zotero.py", line 127, in wrapped_f
    retrieved = self._retrieve_data(func(self, *args))
  File "/home/joel/anaconda3/lib/python3.5/site-packages/pyzotero/zotero.py", line 286, in _retrieve_data
    error_handler(self.request)
  File "/home/joel/anaconda3/lib/python3.5/site-packages/pyzotero/zotero.py", line 1342, in error_handler
    raise ze.HTTPError(err_msg(req))
pyzotero.zotero_errors.HTTPError:
Code: 500
URL: https://api.zotero.org/users/MyZoteroID/items/top?limit=100&format=json&since=1602
Method: GET
Response: An error occurred

Hi, go to zotero.com and login. Then click on Settings > Feeds/API.
You will see "Your userID for use in API calls is ID".
That's the ID you have to use, not your login.
I hope this helps.

Yes, that works, thank you!

I ran into the same problem. Thanks for the solution!
As I had to dig it up here and others may not be able to invest the time maybe it would be a good idea to put this in some kind of FAQ or clarify the prompt?

A more clear prompt is probably the way to go. Do I understand correctly that this is about the Please enter your library ID? message? How about Please enter your user ID for API calls instead?

Yes, that is definitely clearer.
I think part of of the problem is that if I enter "zotero user id for api calls" into a search engine, I don't get any immediately useful hints of where to go to find it. So, it might be worthwhile adding a line to the readme, spelling out how to get it.
If possible, getting the ID automatically somehow given the username would be a good way to go about it in my opinion. Maybe something here can help https://forums.zotero.org/discussion/42131/get-userid-from-username

I will look into it, thanks for the link!


Error: Building package icu:x86-windows failed with: BUILD_FAILED

It seems like the URL is wrong in the cmake. cvpkg can't download the file: http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20181211.tar.xz
Command log:
The following packages will be built and installed:

icu[core]:x86-windows
tesseract[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/2: icu:x86-windows
Building package icu[core]:x86-windows...
-- Using cached D:/SourceCode/CPP/Extra/OCR/vcpkg/downloads/icu4c-61_1-src.tgz
-- Applying patch D:/SourceCode/CPP/Extra/OCR/vcpkg/ports/icu/disable-escapestr-tool.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch D:/SourceCode/CPP/Extra/OCR/vcpkg/ports/icu/remove-MD-from-configure.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Acquiring MSYS2...
-- Downloading http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20181211.tar.xz...
-- Downloading http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20181211.tar.xz... Failed. Status: 7;"Couldn't connect to server"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:156 (message):
Failed to download file.
If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
variables to "https://user:password@your-proxy-ip-address:port/".
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
scripts/cmake/vcpkg_acquire_msys.cmake:76 (vcpkg_download_distfile)
ports/icu/portfile.cmake:75 (vcpkg_acquire_msys)
scripts/ports.cmake:71 (include)
Error: Building package icu:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: icu:x86-windows
Vcpkg version: 2018.11.23-nohash
Additionally, attach any relevant sections from the log files above.

Hi @abe4it , thanks for reporting this issue!
Please open a new issue if this is still a problem for you.
Thx.

@JackBoosY As requested, I opened a new issue because this is still / again a problem: #6660


Configurable Scanner Rules Path

Hi,
we need more flexibility in where to fetch rules for the scanners.
I've added a rules_path config key to define that.
If not specified rules will be searched as usual inside rules/ within the module path

Here's a handy checklist to ensure your PR goes smoothly.

[X] I signed Google's Contributor License Agreement
[X] My code conforms to Google's python style.
[X] My PR at a minimum doesn't decrease unit-test coverage (if applicable).
[X] All of the unit-tests
still pass
[X] Running pylint --rcfile=pylintrc passes.

These guidelines and more can be found in our contributing guidelines.

Please note that we should update the docs in gh-pages too as a follow-up PR.

Adding cla: yes label, as the PR author is a googler at the time of this PR was created.


Regenerate vision gapics

@theacodes Did you overlook my comment on undoing #5364?

@tseaver saw it, but we won't be fixing it here. We'll wait for the generator fix and re-generate.


[Feat]: Show projects randomly

What feature?
Currently, projects are shown in a straightforward manner that why only the projects created at the beginning are shown first, if we show the projects randomly then all projects can be on the first page.
I'm in GSSOC23.
I would like to work on this issue
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

yeah, we need to do this.
assigned to you

Completed. Thanks for your contributions 🎉 ❤


[EASI-4510] Adding the Rest of the Read View Tooltips

EASI-4510
Description

Added tooltips for questions in General Characteristics and Payments
Adjusted question rendering to match figma design (side by side)

How to test this change

Verify tooltips exist and match copy in figma

Are community partners involved? How so? in General Characteristics
Will any additional data need to be collected for claims? in Payments

You will need to add claims-based payments to What will you pay?

Verify What contractors will support your model? and In what capacity will they support your model? questions are side by side (matching figma)

PR Author Checklist

[X] I have provided a detailed description of the changes in this PR.
[x] I have provided clear instructions on how to test the changes in this PR.
[X] I have updated tests or written new tests as appropriate in this PR.
[ ] Updated the Postman Collection if necessary.

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
When approving a PR, provide a reason why you're approving it

e.g. "Approving because I tested it locally and all functionality works as expected"
e.g. "Approving because the change is simple and matches the Figma design"

Don't be afraid to leave comments or ask questions, especially if you don't understand why something was done! (This is often a great time to suggest code comments or documentation updates)
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.

Closing PR as per discussion with team


Error when trying to create a new application

When running:
npx -p devextreme-cli devextreme new angular-app app-name
We get:
18 error code ENOLOCAL
19 error Could not install from "****\AppData\Roaming\npm-cache_npx\11092" as it does not contain a package.json file.

This seem to be a problem with NPX that does not work if you are logged in in Windows using a username with space in it like "Bob Bobson". Workaround seem to be to change the cache folder to something like
"npm config set cache C:\tmp\nodejs\npm-cache --global"


Updated config example

Fixes RAI-13503

Should config.spec be updated or perhaps removed completely?

Should config.spec be updated or perhaps removed completely?

Yes, we discussed in the slack that we will drop the file as README is more than enough.


Clean up generator for generator specs

Don't force pluralization of the generator name in the generated spec and use the full generator name in the spec description.
Also clean up an extra whitespace and empty line in the template.
Note that the generator class constant cannot be directly used in the spec description as it isn't loaded by default.

I’m happy to merge it on green CI. I guess it’s a matter of removing two chars?

Done, totally missed the cucumber specs, sorry!

Thank you!


Make test failures

Golang 1.18.4
❯ make test
git submodule update --init --recursive
cp schemas/json/flagd-definitions.json pkg/eval/flagd-definitions.json
go install github.com/bufbuild/buf/cmd/buf@latest
cd schemas/protobuf && buf generate --template buf.gen.go-server.yaml
go test -cover ./...
go: downloading github.com/golang/mock v1.4.4
go: downloading github.com/stretchr/testify v1.7.4
go: downloading github.com/pmezard/go-difflib v1.0.0
pkg/generated/server.gen.go:11:2: no required module provides package github.com/deepmap/oapi-codegen/pkg/runtime; to add it:
	go get github.com/deepmap/oapi-codegen/pkg/runtime
pkg/generated/server.gen.go:12:2: no required module provides package github.com/go-chi/chi/v5; to add it:
	go get github.com/go-chi/chi/v5
make: *** [test] Error 1

@toddbaert I can take it.

Does this PR solve the test issue?
https://github.com/open-feature/flagd/pull/87

Does this PR solve the test issue?
#87

Yes you are right the changes in the go.mod and go.sum will probably solve the issue.

f


Multi monitor support for mouseMove and dragMouse

If the user has more than 1 monitor the coordinates of a monitor can be negative. Before the PR all the parameters for mouseMove and dragMouse were using size_t which is unsigned. That's why it was not possible to pass negative coordinates and move the mouse to a monitor with negative coordinates.

This is awesome! Thank you! I'll take a look this weekend.

@hristoterezov Nice! Have you made any updates since this PR? I'm interested in getting getPixelColor() working across multiple monitors, too. It looks like the bitmap_find.c/h, color_find.c/h, MMPointArray.c/h, and screen.c/h files all use MMPoint, as well.

Sorry everyone, releasing and building is currently difficult since I have to spin up a bunch of VMs. I'm going to work on getting TravisCI publishing so it's easier to test and deploy. Thanks for the PR!

But I think negative mouse position is actually normal. It depends where your primary monitor is. If your primary monitor is in middle between two monitors from left and right, then the mouse position on this primary monitor starts at 0x 0y from top left which this make more sense. So it's already fine.
However, it would be good if this can be changed per settings. Such like:
var robot = require("robotjs");
robot.removeNegativeMouse(true);

or something like this. The main reason is that many applications works already pretty fine with negative mouse and changing the mouse position logic will just cause more problems.

@jareddgotte Sorry for the delayed response! I haven't made any other changes after the PR and also nothing related to the getPixelColor.

@Chinafreak I'm a little confused from your comment and here is why:

If you pass negative coordinates to mouseMove and dragMouse on the code before my change, it won't work properly. The purpose of my PR is to fix this.
I don't understand why would you need removeNegativeMousePosition(true);. I don't think that the code without my fix will work "pretty fine" with negative mouse position. Actually I think it won't work! But after my changes it is supposed to work with negative mouse position!
"changing the mouse position logic will just cause more problems" - The consumers of the library won't need to change anything. Basically before the PR the multi monitor use case was not working and after the PR it will start working.
I don't think getPixelColor() is related to my PR.

Could you please explain what you mean with your comment? Am I missing something?

@hristoterezov
Hey sorry, I just read your issue again and I think I misunderstood it. I think I  thought you wanted to remove negative mouse position. I'm not even sure if I wrote this on wrong issue, because it was so long time ago.

@hristoterezov @octalmage Any updates on this? I see this is in PR for over a year. It would be awesome if we can get this in a new release soon.

@octalmage any word on this pr - looks like myself and a few others have been waiting for it for coming up on 2 years now - support for multiple monitors would be great, and @hristoterezov mentioned that the fix doesn't really effect other part of the code. Any status?

@octalmage Hey there! Is there anything we can do to help this one land? Not needing to rely on a fork would be ideal for us (Jitsi).

Thank you for your PR!

Thanks a lot @oktapodia! Any rough estimation on when this could make it into a release?


[BEAM-7726] Implement State Backed Iterables in Go SDK

This PR does a few things towards adding State Backed Iterables

Adds unit tests for the existing iterable protocols.
Refactors the two disparate read loops in datasource.go into a single loop, and introduces helper methods to clean up repeated code.

This further helps prepare for [BEAM-490] where CoGBK becomes first class.

Renames code that is fairly State API centric to to State from SideInput.
Most of the code was to help use the StateAPI for Side inputs, but it was really rather general.
Note: This only helps with Reading, and in particular Runner iterables from the state API, not doing anything towards Writing.
Actually implement the State backed protocol (with unit test)

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

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

R: @robertwb, @lukecwik
Note: This code diverges from the stated protocol for Iterables in beam_runner_api.proto [1] where multi-chunk iterables are prefixed with a 0. As implemented Go SDK, and Python SDKs [2] currently require a -1 instead. Either the SDKs need to change or the proto documentation should change to match.
[1] https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto#L582
[2] https://github.com/apache/beam/blob/master/sdks/python/apache_beam/coders/coder_impl.py#L702

Run Go PreCommit

cc: @herohde In case you've got thoughts on the refactoring.
Otherwise, I'm investigating the PreCommit failure. It looks like it's a Go Gradle thing WRT vendoring. It might be time to do away with it.

cc: @ananvay

R: @youngoli

Run Go PreCommit

R: @robertwb, @lukecwik
Note: This code diverges from the stated protocol for Iterables in beam_runner_api.proto [1] where multi-chunk iterables are prefixed with a 0. As implemented Go SDK, and Python SDKs [2] currently require a -1 instead. Either the SDKs need to change or the proto documentation should change to match.
[1] https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto#L582
[2] https://github.com/apache/beam/blob/master/sdks/python/apache_beam/coders/coder_impl.py#L702

Ah, thanks for catching that. The docs are wrong (java uses -1 as well [3], and otherwise there'd be ambiguity in encoding an empty list). https://github.com/apache/beam/pull/9099
[3] https://github.com/apache/beam/blob/release-2.13.0/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/IterableLikeCoder.java#L101

Run Go PostCommit

It seems that between Go Gradle, and the version of go we have it run (go 1.10) it looks like the Beam Go SDK is no longer compatible with go 1.10.
In a separate client, I validated that the gradle build is much happier with go 1.12 (which gogradle manages by itself anyway). I'll resolve that first in a separate PR and then ensure this passes here before merging it in.

Run Go PreCommit

Run Go PostCommit


Go over and decide wich plugins to have installed in opensearch

What should be investigated.
Go though all plugins in opensearch so we can decide which to keep.
What artifacts should this produce.
Pros and cons for all of the plugins, presented at an architecture meeting

I did a quick initial check and I would say that we can keep all of them except for the performance-analyzer.
It's a process that runs locally and collects performance metrics that can be vied in some PerfTop program.
There are some plugins that are available that customers need additional permissions for but I do think we can keep them installed.
Alerting and Monitoring:

opensearch-alerting: OK, people are already using
opensearch-reports-scheduler: OK, people are already using
opensearch-anomaly-detection: OK to keep, people have no permissions yet, needs some additional permissions to store results on custom indices
opensearch-performance-analyzer: Won’t use

Searching:

opensearch-sql: Okay
opensearch-asynchronous-search: Probably OK, I don't really see anyone needing this running our platform. This is used only via the API so they would have to issue API calls from the Dev tools page. They do not have permissions for this.
opensearch-knn: Why machine learning!? I didn't read to carefully about this one but it looks to require a combination of API calls along with index settings to function and train models or whatever. I did not find any permission in the security plugin so I assume that everyone can use the knn api. I don't know if we should keep this around or not, it is not visible in any tab in opensearch.

Replication:

opensearch-cross-cluster-replication: Okay I would say, won't every be used by us.

Observability:

opensearch-observability: Okay should require any additional permissions

Non negotiable:

opensearch-index-management (OK)
opensearch-job-scheduler (OK)
opensearch-security (OK)
repository-s3 (OK)

I guess my verdict after thinking about this a bit more is that unless we feel strongly about disabling some plugin I would just let upstream be upstream so to speak. Also I'm not a huge fan of the way to disable pluging using inti containers and copying files, see how we did it with elasticsearch.


Incorrect results returned from MATCH with class filter

OrientDB Version, operating system, or hardware.

v2.0 SNAPSHOT[ ] - .18[ ] .17[ ] .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]
v2.1 SNAPSHOT[ ] - .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]
v2.2 SNAPSHOT[ ] - .8[x] .rc1[ ] .beta2[ ] .beta1[ ]

Operating System

[x] Linux
[ ] MacOSX
[ ] Windows
[ ] Other Unix
[ ] Other, name?

On our production database, I am seeing incorrect results returned from a specific MATCH query involving a filtering step using the class: keyword after an edge traversal. Unfortunately, I was not able to construct a reproducible testcase that does not involve our proprietary data, and I am not able to share the data or the exact schema we are using.
Here is a schema and small dataset that capture some of the relevant relationships in our production setup:
CREATE CLASS Base EXTENDS V
CREATE PROPERTY Base.name String

CREATE CLASS AbstractFoo EXTENDS Base ABSTRACT
CREATE CLASS Foo EXTENDS AbstractFoo

CREATE CLASS AbstractMixin EXTENDS V ABSTRACT
CREATE CLASS GeneralBar EXTENDS Base
CREATE CLASS SpecificBar EXTENDS GeneralBar, AbstractMixin

CREATE CLASS Unrelated EXTENDS Base

CREATE CLASS AbstractFoo_Base EXTENDS E
CREATE PROPERTY AbstractFoo_Base.out LINK AbstractFoo
CREATE PROPERTY AbstractFoo_Base.in LINK Base

CREATE CLASS Unrelated_SpecificBar EXTENDS E
CREATE PROPERTY Unrelated_SpecificBar.out LINK Unrelated
CREATE PROPERTY Unrelated_SpecificBar.in LINK SpecificBar

CREATE VERTEX Foo SET name = 'foo'
CREATE VERTEX SpecificBar SET name = 'bar'
CREATE VERTEX Unrelated SET name = 'unrelated'
CREATE EDGE AbstractFoo_Base FROM (SELECT FROM Foo) TO (SELECT FROM SpecificBar)
CREATE EDGE Unrelated_SpecificBar FROM (SELECT FROM Unrelated) TO (SELECT FROM SpecificBar)

Expected behavior and actual behavior
Expected: queries that look like the following:
// query 1
MATCH {
    class: SpecificBar,
    as: origin,
    where: (name = 'bar')
}.in('AbstractFoo_Base') {
    class: Foo,
    as: endpoint
}
RETURN origin, endpoint

have the property that origin instanceof SpecificBar and endpoint instanceof Foo are both true, as the class: query keywords in the two match steps indicate.
Actual: we found a query on our production system for which one of the returned values was not an instance of the class with which it was supposed to be filtered in its match step. The query was similar to this:
// query 2
MATCH {
    class: SpecificBar,
    as: origin,
    where: (name = 'bar')
}.in('AbstractFoo_Base') {
    class: Unrelated,
    as: endpoint
}
RETURN origin, endpoint

Note that executing the above query on OrientDB 2.2.8, with the above schema and data, correctly returns no results. This is because the vertices of type Unrelated cannot and are not connected by an edge of type AbstractFoo_Base.
However, the analogous query to query 2 on our production OrientDB 2.2.8 returned one row -- the same row as query 1, for which endpoint instanceof Unrelated is not true as endpoint is of type Foo.
Steps to reproduce the problem
As I mentioned, I was not able to reproduce the problem outside of our production system. However, I narrowed down the set of conditions that must be true for the bug to appear, and was hoping that someone with deeper knowledge of the MATCH execution system could use that to find the problem. Here is what I found:

Replacing class: Unrelated with class: E has the same incorrect result.
Replacing class: Unrelated with a class that does not exist generates an error (correctly).
Replacing class: Unrelated with a class that has no entries that are connected via edges of any type to SpecificBar, correctly returns no results.
Replacing class: Unrelated with a class X such that the schema specifies an edge that connects X to SpecificBar, but there are no entries of type X or its subtypes, correctly returns no results.
Replacing class: Unrelated with any class Y that has entries connected by edges to a SpecificBar that is not the one selected by the first step in the MATCH, correctly returns no results.
Replacing class: Unrelated with any class Z that has entries connected by edges to the exact SpecificBar that is selected by the first step in the MATCH, generates the incorrect entry, even though Z is not a superclass of SpecificBar.

One additional thing that may be complicating things -- we have kept the same database (upgraded from version to version) from approximately OrientDB 2.1.5, so the issue may also depend on that upgrade process. I was not able to export/import the data into a completely-new OrientDB database due to #6758 / #6759.
This is also a serious problem that is currently impeding my GraphQL-to-MATCH compilation work, as the compilation generates correct outputs that nevertheless produce incorrect results.
Thanks in advance for looking into it, and please let me know if I can help your investigation and debugging.

As a follow-up, I tried rewriting the query to replace the class: in the second traversal step with a where: ($currentMatch instanceof Foo), but that seemed to always evaluate to false, regardless of whether the current match was actually of that class or not. I'm not sure if this is intended behavior or another bug.

Hi @obi1kenobi
Thank you for reporting, I'll check it asap
Thanks
Luigi

Hi @obi1kenobi
I think I already fixed this problem, any chance to try it on 2.2.12?
I'm doing the same in the meantime
Thanks
Luigi

Yep, I can confirm, it's already fixed in 2.2.12.
I'm closing it, please reopen if I'm missing something
Thanks
Luigi

Thanks, it appears it is fixed in 2.2.12, but I was not able to find it in the changelog.

mmm... right, probably we did not set the milestone on the related issue.
I'll see if I can find and fix it ;-)
Thanks
Luigi


Dynamically get Salesforce Object Names and their Field Names

Is your feature request related to a problem? Please describe.
Unless I'm missing something, it seems that for a Salesforce object to be queryable, the object name must be hard coded into the salesforce.spc config. Can the plugin dynamically query all available Object names and fields names through the connection?
Describe the solution you'd like
simpleforce library has a DescribeGlobal() function which returns a list of all objects.
https://github.com/simpleforce/simpleforce/blob/acf4ac67ef68eee62febf8e1afac93b55b0e6512/force.go#L336
(I believe field names are fetchable through this function)
Ideally, this plugin should behave more like the CSV plugin, where the number of .csv files, the names of the files, and the columns within each file could widely vary due not only to a SF instance's data model, but also the field-level and object security model.  The best way to handle this would be to dynamically get whatever the logged in user is allowed to see.  For the plugin description, make only 1 table available, and that is 'Objects' which would return a list of all objects available.
Describe alternatives you've considered
The alternative to hard code Object names is cumbersome and not practical, especially for instances which have hundreds of objects (like my company's)
Additional context
Access to objects and fields are defined at the user profile level, so having these pre-defined in the plugin may not be an accurate representation of what the logged-in user has access to.  For example, in Opportunity there is an out-of-box field called ExpectedRevenue.  In my company's instance we've disabled access to this field in lieu of a custom field. But in this plugin, no matter which query I execute on Opportunity (example: select id from opportunity limit 10)  I get the error "No such column 'ExpectedRevenue' on entity 'Opportunity'." which is from Salesforce.  I've been able to reproduce this in a new developer sandbox.

Hey @d416 , thanks for bringing that function/API to our attention, we hadn't seen that before!
We haven't tested that function yet, but if it's able to retrieve the list of objects in a timely and complete fashion, one way to use it would be to add glob wildcard support to the objects config arg, and then the plugin would match any patterns from objects against the list of retrieved objects.
Would this approach help you get the tables you need?
And for the additional info under Additional context, if you add the Opportunity object to the objects config arg, does that bring in the ExpectedRevenue column (will show up as expected_revenue I believe)? We added some tables as static tables in this plugin to provide the plugin with some initial tables in case users haven't setup the objects config arg yet and also to help generate some Hub documentation with examples, e.g., https://hub.steampipe.io/plugins/turbot/salesforce/tables/salesforce_opportunity. I think these tables can be overriden if included in the objects config arg, but my memory is a bit fuzzy.

Honestly there is no real reason to include any default tables as the access to these tables and fields may be blocked via user-level and/or connected app-level security.  Just get the metadata for what the logged-in user has access to and you're golden.
If you absolutely need to include tables as examples, just use Account and Contact as nearly every user will have access to these (it is CRM after all).  Id and Name fields every user must have access to and these cannot be disabled.  So perhaps just include this metadata for example purposes, and then probably just add it as a default to the config file instead of separate .go files
Re: >  if you add the Opportunity object to the objects config arg, does that bring in the ExpectedRevenue column (will show up as expected_revenue I believe)?
If a user or the connected app does not have access to the ExpectedRevenue field via Salesforce security settings, no amount of steampipe plugin config will grant them access to that.  I hope that helps.

While attempting to list the available objects using the DescribeGlobal API before table initialization, I encountered the error message json: cannot unmarshal array into Go value of type simpleforce.SObjectMeta). This error is preventing me from successfully making the API call.
To address this issue, I have raised an issue on the SDK team's GitHub repository. You can track the progress of the issue at: GitHub Issue #61.
Thank you for your understanding.

Hello @d416, we are closing the issues due to the API issue mentioned earlier. Once we have any updates, we will get back to it. If you have anything to share or talk about, please feel free to reopen the issue whenever you get a chance. I appreciate your understanding.


How to use an ErrorCode from a returned Result<_, Error>?

I'm trying to figure out how to use the returned Error/ErrorCode when I need to check for a certain value. Let's say I'm using ReadFile, and I want to check if GetLastError() was ERROR_IO_PENDING when using overlapped input. How would I do this nicely?
My idea was:
const ERROR_IO_PENDING: ErrorCode = ErrorCode::from_win32(bindings::windows::win32::system_services::ERROR_IO_PENDING);

let mut overlapped = OVERLAPPED::default();
match ReadFile(_, _, _, _, _, &mut overlapped).ok() {
    Ok(_) => ...,
    Err(e) if e.code() == ERROR_IO_PENDING => ...,
    Err(e) => ...,
}

Two drawbacks:

ErrorCode::from_win32 is crate-only pub, so I need to copy-paste the function into my own code.
It would be nicer if windows-rs could export the ErrorCode constants somewhere.

Is this how the ErrorCode is intended to be used?

A few thoughts.

We're trying to improve the metadata for error codes. https://github.com/microsoft/win32metadata/issues/159
Then we'll likely individual types for HRESULT, WIN32, and NTSTATUS that provide common const values for such error codes.
OVERLAPPED doesn't work yet as it requires nested structs and unions. That should be working in a few days.

Hey, thanks for the pointer to the discussion on the win32metadata repo. Sorry for spamming you a bit with issues, I'm just trying to keep track of everything that doesn't feel ergonomic to me in the windows-rs crate usage right now. The OVERLAPPED thing was just an example, there are other functions like InitializeProcThreadAttributeList that return an error on successful operation by API convention which the user should check for. I'll comment that on the other discussion and close the issue here.

No worries, appreciate the feedback - keep it coming! 😉


I'm unable to setup the pathMapping option

As I understand from the documentation, to setup the mappings I sould use:
    "vscode-edge-devtools.pathMapping": {
      "/": "/Users/sergiarias/ActiveCaramel/website/"
    },

first parameter being the root url (in my case localhost:3000) and second the folder where it points in my computer
But I'm not having any luck in opening the scss files with this setup.
Going to the browser and revealing sources I get this link though: https://localhost:3000/Users/sergiarias/ActiveCaramel/artcants2020/wp-content/themes/sage-artcants2020/resources/assets/styles/resources/assets/styles/caramel/_bootstrap-cc.scss
So I tried
    "vscode-edge-devtools.pathMapping": {
      "/": ""
    },

and
    "vscode-edge-devtools.pathMapping": {
      "/": "/"
    },

With no luck on either one. Is there something I am doing wrong? Can someone share some examples? I am using Mac Os Catalina.

I think I am getting confused with the Sourcemaps option...

Hi @SergiArias
I think this is a duplicate of this bug: #184
The behavior was fixed in here: #221 but we have not released a version that contains the fix (will do soon)
In the meanwhile you can workaround this issue by using absolute paths:
"vscode-edge-devtools.pathMapping": {
        "/": "C:\\testproject"
    }


Android 11 targetSDK 30 Problem when trying  image from gallery or pick file (the play store not submit new apps)

Hi. The play store now not allow upload new versions without targetSdkVersion 30.
When an app is targeting SDK 30 and devices Android 11 the problem occurs.
Library throws exception while selecting image from gallery:
com.kbeanie.multipicker.api.exceptions.PickerException: java.io.FileNotFoundException /.../IMG_20210814_085811.jpg: open failed: ENOENT (No such file or directory)
and when pick a file throws:
com.kbeanie.multipicker.api.exceptions.PickerException: java.io.IOException: Destination '.../sample.pdf' directory cannot be created
Could you find any solution with target SDK 30. Please provide solution. Thank you!

System.err: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
I am getting this error.

Seems to work if you set the caching method as INTERNAL_APP_DIR.
The default and other options seem to check for WRITE EXTERNAL STORAGE permission which you will not have in Android 30.
The issue is that in Android 30 there is no more permission to write to external storage, even if declared it does nothing unless your App has the MANAGE_EXTERNAL_STORAGE permission which is will require manual approval of your App, you will not get this approval in most cases.
While you always have access to internal App storage no permission necessary.
So when you create the picker set the Cache.

 val picker = MediaPicker(this)
 picker.setCacheLocation(CacheLocation.INTERNAL_APP_DIR)

@matale thank you very much for your help! you save me!


Mobile - Overview of the mobile app update supporting unified accounts

Describe the task
Overview of the mobile app update supporting unified accounts

[ ] Review
[ ] List of task to implement

BA doc: https://www.notion.so/Master-acccount-d99f9e17956343e9a11cae981a2eadfa?pvs=24
Design: https://www.figma.com/design/aEnkI859zkZaIpyzPidYwh/SubWallet-Apps?node-id=27728-156041&t=nhEjX9BcHmPIvhl8-4

Manage account:

[ ] Get address
[ ] Account List
[ ] Account detail
Create acc:

[ ] Create
[ ] Import Json
[ ] Import seedphrase

[ ] Migrate acc
[ ] Derive acc

[ ]  History

[ ] Addressbook

Transaction

[ ] SendFund
[ ] Swap
[ ] Earning
[ ] Unstake
[ ] CancelUnstake
[ ] Withdraw
[ ] Claim reward

Will resolve in

https://github.com/Koniverse/SubWallet-Mobile/issues/1826
https://github.com/Koniverse/SubWallet-Mobile/issues/1827
https://github.com/Koniverse/SubWallet-Mobile/issues/1828


Chrome/Firefox: Copy/Paste on Shell doesn't work when page is loaded with higher zoom levels

Rancher Version:
1.1.4
Docker Version:
1.10.3
OS and where are the hosts located? (cloud, bare metal, etc):
Ubuntu / Cloud
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Rancher host + 2 nodes, internal DB, no HA
Browsers tested:
Google Chrome 54.0.2840.59
Mozilla Firefox 47.0.1
Steps to Reproduce:

In Chrome, increase zoom to at least 150%
Open rancher shell (ie via kubectl or container execute shell)
right click on the terminal

Results:
Most of the time, Copy and Paste options are not available. Sometimes, they are mysteriously there, but their availability is fleeting; often seconds later in the same shell session they will no longer be available. Both Chrome and Firefox exhibit the issue, but it only happens in Firefox with zoom >= 220% which is quite large.
In Chrome, if you zoom down to 100% and then back to 150%, Copy and Paste work fine.
In Firefox, no zoom level will fix it if the page was loaded with >= 220%
Expected:
Copy/Paste should work on reasonable zoom levels
Workaround:
In Chrome, temporarily reduce your zoom to 100% and back before attempting to paste. The Copy/Paste will then work for the rest of the session. Returning to a shell will reset the bug, and so the zoom trick would need to be repeated.
In Firefox you must reload the page with a lower zoom level in order for Copy/Paste to return.

The terminal emulator is a 3rd-party library (https://github.com/sourcelair/xterm.js) so this would have to be fixed in there.  The way copy/paste works involves an overlapping layer that is synced with the content so it's not terribly surprising that it doesn't line up when the scale is changed.

Initial testing with 1.2.0 final is not showing the problem for me.

However there are other shell problems now, sometimes I cannot use arrow keys in vim and other ncurses programs

I'm going to close this one as I think a newer version of xterm.js helped to resolve most of the copy/paste issues and will eventually file a bug on the arrow keys issues as I learn more about it.


Added ability to use Sphinx with markdown.

The package sphinx_rtd_theme should be added to requirements.txt.
Theme error:
sphinx_rtd_theme is no longer a hard dependency since version 1.4.0. Please install it manually.

@polarina Done.


Too few arguments to function get_file_target

Hey, I've been trying to set up this file uploader for a little while now, however no matter what I do it never works. I've followed the instructions to a T yet it still doesn't work. I will admit that I don't really have much, or any for that experience with any of this so I very well may be doing something. A little bit of help would be wonderfully helpful.
Here's the info I've got.

( ! ) Fatal error: Uncaught ArgumentCountError: Too few arguments to function get_file_target(), 2 passed in D:\wamp64\www\upload.php on line 16 and exactly 3 expected in D:\wamp64\www\u\functions.php on line 27
( ! ) ArgumentCountError: Too few arguments to function get_file_target(), 2 passed in D:\wamp64\www\upload.php on line 16 and exactly 3 expected in D:\wamp64\www\u\functions.php on line 27
Call Stack
#TimeMemoryFunctionLocation
10.0000400472{main}(  )...\upload.php:0
20.0001400512get_file_target(  )...\upload.php:16

Thanks a ton, sorry if it's just something simple I'm messing up. >.<

Hi,
Thanks for spotting this, there was definitely something wrong in the repo, oddly enough i made the change locally but missed it off the PR. Thats my mistake. Here is the hotfix i put in place:
https://github.com/JoeGandy/ShareX-Custom-Upload/commit/cbdb3d609fada88c401d4844c5a35c426d43b3f9#diff-2f3c88ea110efbfb40f20a20f4cec143
Just update your local copy and it should all be fixed!
Thanks for reporting it!


Missing [project] in pyproject.toml

Building in nix results in this error https://github.com/pypa/setuptools/issues/3197 due to the upgraded version of setuptools. This can be fixed by adding the following to pyproject.toml as per https://stackoverflow.com/questions/76652773/how-to-fix-configuration-error-project-must-contain-name-properties-in
[project]
name = 'project name'
requires-python = ">=3.9"
version = "1.0.0"
authors = [
    {name = "Your Name", email =<EMAIL_ADDRESS>]

Thanks for creating this software!

@dansbandit thanks for the issue and comment about how you resolved it. This plugin switched to using Poetry for builds, but the documentation is a bit outdated for devs and there is some clutter that I'm working to resolve in a PR soon.


[move CLI] Update README

Updated CLI README. Added additional sections on modes and testing. Cleanup/updating throughout as well.
Rendered:
https://github.com/libra/libra/blob/ff09eb2353da6b16511ad95849e7a06fdf6f1ece/language/tools/move-cli/README.md

/land

:exclamation: Land has been canceled due to this PR being updated with new commits. Please issue another Land command if you want to requeue this PR.

/land

:broken_heart: Test Failed - Build images and run cluster test

/land


Realm crashes on create when using Haul

I've also reported this issue on Realm's github page as I'm not positive if the issue is more related to Realm or to Haul. You can follow it here https://github.com/realm/realm-js/issues/2627
Goals
I am trying to get Realm working with Haul. It was working fine when I was using the react native packager but I'm not able to use the react native packager as it always crashes on load in Release with only a generic error message.
Expected Results
Successful item creation.
Actual Results

TypeError: Cannot call a class constructor without |new|

create
    [native code]:0
<unknown>
    index.bundle?platform=ios&dev=true&minify=false:14530:29
write
    [native code]:0
<unknown>
    index.bundle?platform=ios&dev=true&minify=false:14529:26
invokeGuardedCallbackImpl
    index.bundle?platform=ios&dev=true&minify=false:187192:19
invokeGuardedCallback
    index.bundle?platform=ios&dev=true&minify=false:187370:40
invokeGuardedCallbackAndCatchFirstError
    index.bundle?platform=ios&dev=true&minify=false:187385:34
executeDispatch
    index.bundle?platform=ios&dev=true&minify=false:187516:46
executeDispatchesInOrder
    index.bundle?platform=ios&dev=true&minify=false:187541:24
executeDispatchesAndRelease
    index.bundle?platform=ios&dev=true&minify=false:187711:33
forEachAccumulated
    index.bundle?platform=ios&dev=true&minify=false:187692:16
runEventsInBatch
    index.bundle?platform=ios&dev=true&minify=false:187737:25
runExtractedPluginEventsInBatch
    index.bundle?platform=ios&dev=true&minify=false:187879:23
<unknown>
    index.bundle?platform=ios&dev=true&minify=false:189433:40
batchedUpdates$1
    index.bundle?platform=ios&dev=true&minify=false:203024:18
batchedUpdates
    index.bundle?platform=ios&dev=true&minify=false:189343:34
_receiveRootNodeIDEvent
    index.bundle?platform=ios&dev=true&minify=false:189432:21
receiveEvent
    index.bundle?platform=ios&dev=true&minify=false:189447:30
__callFunction
    index.bundle?platform=ios&dev=true&minify=false:139402:47
<unknown>
    index.bundle?platform=ios&dev=true&minify=false:139115:26
__guard
    index.bundle?platform=ios&dev=true&minify=false:139353:11
callFunctionReturnFlushedQueue
    index.bundle?platform=ios&dev=true&minify=false:139114:17
callFunctionReturnFlushedQueue
    [native code]:0

Steps to Reproduce

git clone https://github.com/theminerymike/realm-haul.git
yarn install
cd ios && pod install
cd .. && yarn haul start
run in Xcode
click the button "Click Me"

Code Sample
const Realm = require('realm')

class Setting {}
Setting.schema = {
    name: 'Setting',
    primaryKey: 'key',
    properties: {
        key: 'string',
        data: 'string'
    }
}

const realm = new Realm({
    schema: [
        Setting
    ]
})

realm.write(() => {
	realm.create('Setting', {key: 'test', data: 'test'}) // breaks here
})

Version of Realm and Tooling

Realm JS SDK Version: 3.4.2
Node or React Native: React Native 0.61.4 and Haul "@haul-bundler/cli": "^0.15.0"
Client OS & Version: macOS Catalina v10.15.1 running iPhone 11 simulator (also attempted on iPhone X simulator) on iOS 13.2.2

Are you using @haul-bundler/babel-preset-react-native?? If so, the classes are not compiled to functions so Realm is probably not instantiating Setting with new. You can try replacing class Setting { } with function Settings() { }.

 Totally did the trick :)


Failure running gulp ios

I have checked out the project, and have the android and web versions working well.  When I try to run ios, it fails.   I am running and building from update-to-date master.   I also have react-native 0.40.0 and react 15.4.2 running in a fresh react-native project successfully.
Actual Behavior
In file included from /Users/tischler/working/tripgrid/mobile/este/node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheetManager.m:10:
/Users/tischler/working/tripgrid/mobile/este/node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheetManager.h:12:9: fatal error: 'React/RCTBridge.h' file not found
#import <React/RCTBridge.h>
        ^

=== BUILD TARGET RCTText OF PROJECT RCTText WITH CONFIGURATION Debug ===

Check dependencies

** BUILD FAILED **

The following commands produced analyzer issues:

	Analyze RCTVibration.m
	Analyze RCTActionSheetManager.m
(2 commands with analyzer issues)

The following build commands failed:
	CompileC /Users/tischler/working/tripgrid/mobile/este/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/Objects-normal/x86_64/RCTLinkingManager.o RCTLinkingManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC /Users/tischler/working/tripgrid/mobile/este/ios/build/Build/Intermediates/RCTVibration.build/Debug-iphonesimulator/RCTVibration.build/Objects-normal/x86_64/RCTVibration.o RCTVibration.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

Installing build/Build/Products/Debug-iphonesimulator/Este.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Este.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Other issues
Could this be related to: https://github.com/facebook/react-native/pull/11899 ?
Any help would be appreciated!!

I don't know. Feel free to investigate it and send PR. Thank you.

Do you know if the baseline project works on a consistent basis some where? I.e. On some versions of some operating systems with some libraries it should be working out of the box?

Try to delete /build and reset iOS simulator. Feel free to reopen.

@tischler yes it is most likely related.
If you go to your directory iOS > build>

Do you have a Build folder? No.
Do you have a Products folder? Yes.
Then react-native run-ios can not find your application.  See the hard coded value here.
https://github.com/facebook/react-native/blob/master/local-cli/runIOS/runIOS.js
This would be solved with (facebook/react-native#11899)[https://github.com/facebook/react-native/pull/11899]


Fix the inconsistency in UM_USER_ROLE table.

Why we have to remove ON DELETE CASCADE?

ON DELETE CASCADE was removed as it was only maintained in oracle, oracle_rac and db2 scripts. The deletion of records are handled in the code [1] Therefore to have all scripts consistent the ON DELETE CASCADE was removed.
[1] https://github.com/wso2/carbon-kernel/blob/f6178393af02c0fdead961ce07f661999cf91329/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreConstants.java#L281

Thanks for the clarification @dewniMW


Jest is missing watchman version compatibility checks

In https://github.com/facebook/watchman/issues/428 the user rightly reports that the error message is a bit cryptic.
In this case, jest should be using a capability check to gate the use of watch-project.
An example of that can be found in the docs here:
https://facebook.github.io/watchman/docs/nodejs.html#checking-for-watchman-availability
Using literally that check will suffice to catch this specific problem; if the installed watchman server doesn't support relative roots (which is the capability that you need for watch-project to succeed), then the version command will fail with a more descriptive error message, and because you know that it failed during the capability check, you can tailor the jest specific error message to be more directive; just tell the user to upgrade their watchman server.

This seems like a nice to have, anybody interesting in contributing this check? :)

I call it!

So this is relating to the version of fb-watchman installed?
Upgrading jest will automatically update the version of fb-watchman, is there a scenario when we would have an older version running.
If watchman server is indeed running separately, then I don't remember setting it up for my usage of jest.
How do I recreate this issue? Do I already have watchman installed out of the box on ubuntu? Does jest internally install watchman server when setting it up.

I'm guessing in jest it just falls back to node js file crawler?

Not sure about Ubuntu. Jest doesn't install watchman for you. E.g. on macOS you need brew install watchman. fb-watchman is just a nodejs client: https://github.com/facebook/watchman/tree/master/node

Was just going through the docs. So I cannot test the change.

You can look at PR and the change. If that is enough to close this, go ahead and do so.
Or if you want someone with watchman installed to test this out. Then someone else can take this up.

Someone else can take this up. :)

after going through various tools including watchman I ended up back here realizing really this is a problem with someone at jest attributing this error in a way that anyone who's not at facebook would be right to be confused - maybe it's just a matter of elaborating the error message

@thymikee how can i test this or reproduce this error.  I have installed lower version of fb-watchman but not getting this error and everything works fine.
OS - windows 7 64 bit


Some coupons are only found in V1 API

Iterate V1 API coupons to activate some coupons that are visible in the app

Thanks for adding! :slightly_smiling_face:


Add theme types

This adds types from the documentation on the website

Going to close this PR as we're looking at improving ConnectKit's types and exports overall, which will include a revision on this.
Thanks again for your time!


metadata, Internal error, no servers available.

https://u.pcloud.link/publink/show?code=XZaDaNkZ4bapJodBqTjUBrpyMqUT8zqqCQHk

This error should be fixed now. It was a problem with the hosting provider.
Try clearing browser history and downloading again.


Start or Restart Nginx even in case of not resolvable services

Start or restart the Nginx process, even if not all services are online. This will change the current logic and in case of a miss configuration, the running Nginx process may die.

started on border controller now - everything working as expected - will let it run for a while and have an eye on it...

running since yesterday - looks stable for me, also regarding the memory allocation...


feat: offer lower speed in MuxPlayer

Description
Added 0.5x and 0.7x speed to MuxPlayer (ticket mentioned only 0.5x but it is VERY slow)
Issue(s)
Fixes PUPIL-852
How to test

Go to any page in the app with video in it
Video player should now offer 0.5x and 0.7x playback speeds

Screenshots
How it should now look:

Waiting for the green light from Alex Francis/Toby to merge this

:tada: This PR is included in version 1.625.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Now it's possible use variables in query and the field name

@marcusolsson , It's possible generate a new release with this feature?

Sure! I'll have time to publish this on Monday!


Product Review date in english format

Description:
In german language the date format is still in english
Environment:
Steps to reproduce:
create a review in german shop
Expected result:
should be locale specific
Actual result:
only in english format

[public] FixVersion Changed: This issue will be / was solved in Shopware version <IP_ADDRESS>.
[created from NEXT-8016, comment 508118]


Quickstart does not work on google colab with GPU instance Paid and free

What piece of documentation is affected?
I'm getting this error while running the quickstart commands: The following values were not passed to accelerate launch and had defaults used instead:
--num_processes was set to a value of 1
--num_machines was set to a value of 1
--mixed_precision was set to a value of 'no'
--dynamo_backend was set to a value of 'no'
To avoid this warning pass in values for each of the problematic parameters or run accelerate config.
/usr/bin/python3: Error while finding module specification for 'axolotl.cli.train' (ModuleNotFoundError: No module named 'axolotl.cli')
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/accelerate_cli.py", line 47, in main
args.func(args)
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 986, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 628, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'axolotl.cli.train', 'examples/openllama-3b/lora.yml']' returned non-zero exit status 1.
colab link for quick check: https://colab.research.google.com/drive/1cFqQFc4JfJu_0uZAHcHZgFy0ryO6tPev?usp=sharing
What part(s) of the article would you like to see updated?
A quickstart for colab needs to be added
Additional Information
No response
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this feature has not been requested yet.
[X] I have provided enough information for the maintainers to understand and evaluate this request.

You are changing directories wrong in Colab.
See this, and once you change the !cd to %cd, the notebook works and the model trains fine.

Thanks @Napuh ! I did a quick check and can confirm that !cd axolotl on it's own does not work as expected.

But, Napuh's recommendation of using %cd is probably the best way to handle this.


context.request().remoteAddress().host() May appear NullPointException.

context.request().remoteAddress().host(); This code may appear NullPointException.But I don't know which one of the apis is this exception.

is that your code or code in vertx ?

is that your code or code in vertx ?

"context.request().remoteAddress().host();"  --this is vertx's apis."context" is "Routingcontext".

is that your code or code in vertx ?

NullPointException occurred when I wanted to use this code to get the browser's ip address.

if that's you code you should separate this into multiple statements so you know where these is an NPE appearing

if that's you code you should separate this into multiple statements so you know where these is an NPE appearing

yes,I have already done the idea you said.Is NPE occurring because vertx's api is unstable?

no I want to undestand which part of the expression raise the NPE

no I want to undestand which part of the expression raise the NPE

I already know which expression raise the NPE.--context.request().remoteAddress()
When I split the code into multiple statements, I found that the NPE occurred by remoteAddress().

so the request is null ?

so the request is null ?

request.remoteAddress() is null.


[fix] Add a new line to Admin API responses. Fix #164

Coverage remained the same at 65.93% when pulling 5d24d82193bd67d882e50b91a94c29621a92f08b on fix/new-line into 29f3bd5f36f7b2237e3945437b8a4bbfdc62abeb on master.


fix: trigger on closed

add closed type to pull_request event triggers

Pull Request Test Coverage Report for Build 369

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 65.223%

Totals

Change from base Build 366:
0.0%

Covered Lines:
431

Relevant Lines:
600

💛  - Coveralls

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

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Quantum] [DRAFT - Do not merge] Add runtime-capability parameter

The CLI needs to set the RuntimeCapability property in the project file (i.e. pass it when invoking dotnet build), and pass it to the standalone executable.

This checklist is used to make sure that common guidelines for a pull request are followed.

Quantum


 This fixes a typo in my PR and tidies up cluttered part during merges.

No prob. Probably easier to just update one PR next time. then do another one like this if there's a need. Thanks for contributing!


UI play scrub bar hard to click?

Version
Latest
Description

Not sure what it is, but it seems the scrubbing section is either super particular where the mouse needs to be, or maybe some overlapping elements issue happening. Just hard to click and skip around the song if the UI doesn't register the click. Clicking the left-mouse button in the position the arrow is in the screenshot did not allow to skip the song ahead.
Steps

Play song
Scrub through at different heights of scrub bar

Expected Behavior
Scrub ahead in song.
Current Behavior
Sometimes doesn't register the click and doesn't scrub the song.
System information
Browser and version: Google Chrome 91.0.4472.124
Operating System: Windows 10 64-bit
Comments

Bump. Or maybe it's a hitbox issue.

We meet again, Stale Bot.