feat: kcl lib v0.9.0-beta.1

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

feat: kcl lib v0.9.0-beta.1

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

49 of 91 (53.85%)  changed or added relevant lines in 17 files are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage increased (+1.1%) to 63.35%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/settings/utils_settings_yaml.go
4
6
66.67%

pkg/native/client.go
0
3
0.0%

pkg/service/grpc_server.go
0
3
0.0%

pkg/kcl/api.go
22
26
84.62%

pkg/service/rest_server.go
6
11
54.55%

pkg/service/client_kclvm_service.go
0
6
0.0%

pkg/loader/source.go
0
19
0.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/kcl/opt.go
1
60.8%

pkg/settings/utils_settings_yaml.go
1
75.65%

Totals

Change from base Build<PHONE_NUMBER>:
1.1%

Covered Lines:
3336

Relevant Lines:
5266

💛  - Coveralls


Times on departure boards shows as browser local time instead of UK time

Hi,
I'm based in The Netherlands so my laptop is set to CE(S)T and the departure board graphics show the current time and the time of the trains including expected time as the timezone set on the device rather than UK time.
The announcements do play as the correct UK time though. Is this something that can be adjusted so it always uses UK time?
Thanks!

On which board?

Aha it only seems to do this on the Blackbox Landscape LCD

Yeah, thought so :D


dart on windows: cannot delete directory

ref: https://github.com/flutter/flutter/issues/142877
    final dir = Directory("D:\\tools\\cygwin64\\main\\home\\xxxxxxxxx\\yyy\\testtest\\local\\testtest\\build\\windows\\x64\\runner\\Debug\\workspace\\ooo\\2a4d7a4841a6c3e0dc229757e87b4e8232928a2bae7d84f4f806627d9e8476d2"); // len = 175
    if (!dir.existsSync()) return;
    dir.delete(recursive: true);
    // or dir.deleteSync(recursive: true);
    // btw Directory("D:\\hello").delete(recursive: true) works ...

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PathNotFoundException: Deletion failed

it reported that OS Error, file not found; however, it passed exsitsSync and the folder already there.

flutter doctor -v

[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [version 10.0.22621.3007], locale ...)
    • Flutter version 3.16.9 on channel stable at ...
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (9 days ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at ...
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = ...
    • Java binary at: ...
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at ...

[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.19)
    • Visual Studio at ...
    • Visual Studio Community 2019 version 16.11.32901.82
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2023.1)
    • Android Studio at ...
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [version 10.0.22621.3007]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 121.0.6167.86
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 121.0.2277.98

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

• No issues found!

ref: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN

cc @brianquinlan

updated the root cause:
the folder path length is less than 260-12=248, however, if we unzip a package inside the folder and there maybe some file path great than 260, which causes Directory.delete fails; which means that the delete has pitfall ...
and the confusing thing is existsSync works but delete or deleteSync fails ...
we may need to have aligned behavior ...


[FEATURE REQUEST] select thumbnails from Unsplash

Describe the Feature
Let the user select images on gallery or on create post page directly from Unsplash.
Expected behavior
Ability of adding Thumbnail directly from create post page by search prompt that use Unsplash API.
Additional context
I want to here your Feedback and I'am planning to work on it on a pull request.

In additional to this I consider storing just the Unsplash URL of the Image not the Image itself so it can be fine on server usage

Hi
Thanks for the suggestion but this project is for educative purpose, to learn how to use Laravel in "real life". So I don't think we need this kind of feature!
Thanks!


[BUGFIX] Correctly read request credentials.

When reading credentials from the auth object on request, we try to access the first element of an array.
Unfortunately, the credentials object is not an array but a plain object.
By returning directly the auth.credentials in the session auth strategy, we can now access the current admin in the rest of the code.
This means we can use the useCurrentAdmin in custom component or that the profile menu (on top right) is now displayed, letting user to log out.

Unfortunately, the credentials object is not an array but a plain object.

This is not really true as it was an array while I was testing this locally. I believe it can be both either array of objects or a plain object, I'm not sure what affects this though. We could add a Array.isArray check I guess.

This is not really true as it was an array while I was testing this locally. I believe it can be both either array of objects or a plain object, I'm not sure what affects this though. We could add a Array.isArray check I guess.

I've added this check in latest commit. Let me know if it is ok.


DomainKeys Support

Add support for DomainKeys.
http://en.wikipedia.org/wiki/DomainKeys

This is a good idea, also AFAIK amavisd-new already supports DKIM. cf. http://www.ijs.si/software/amavisd/amavisd-new-docs.html#dkim

Indeed, something is already on the list ;)
https://github.com/modoboa/modoboa-amavis/issues/8

Since Domain Keys is considered as a deprecated technology, I don't see any interest about working on it. DKIM is the way to go now.


Errors manually triggering collection for Snapshot Summary

I get this error when manually triggering a collection for a snapshot summary. Clicking on Continue and restarting the app did not fix the issue.

Thanks for reporting this.  It will be fixed in the next release.

Fixed in 3.11 🚀


[DON'T MERGE] Prototype finder replacement for the whitehall finders

A prototype of a finder for everything on GOV.UK.
👉https://finder-frontend-pr-406.herokuapp.com/find-all-the-things!11!
Scoped to the education taxonomy:
https://finder-frontend-pr-406.herokuapp.com/find-all-the-things!11!?taxons=c58fdadd-7743-46d6-9629-90bb3ccc4ef0

Closing this to keep my open pull requests list clear, the work continues in https://github.com/alphagov/finder-frontend/pull/406 and https://github.com/alphagov/finder-frontend/pull/411.


Moves the jenkins scripts out of root into subdirectory

Fix #48

Move the jenkins scripts to a new directory named jenkins.
Remove the jenkins. prefix from their file names since it is now redundant.
Update the scripts to reflect the moved and renamed files

Note netci.groovy must remain in the root for CI to work.
There is no change to the test/jenkins.* files.  We could consider consolidating them too, but for now my motivation is to clean out the root directory.

@dilijev cc @mmitche

I'll squash the commits after review.

Re

For the linux scripts as defined, you'll want to make sure that the scripts are invoked relative to the working directory and not the script directory. I don't know if linux has an equivalent of %~dp0 for that purpose.

I haven't verified this yet.  It does appear that *nix shells do not have a %~dp0 equivalent.

Re squash: you should actually make two commits to help git. In the first, do all the renaming (and in the same commit is also a good place to preserve the execute bit). Then, actual code changes in the second.

LGTM

@dotnet-bot test ci please

@ianwjhalliday cmd scripts are subject to the copyright check as well :P

@dotnet-bot test ci please

@ianwjhalliday LGTM. I'll sign off when you finish the rebase.

Mostly LGTM after rebase. I confirmed the execute bits are set on all the sh scripts. CI was successful.
Only problem is I just merged #414 and now you've got a conflict. Sorry about that.

@dotnet-bot test ci please

@ianwjhalliday signed off. Good to merge when checks pass.


Serializing Plutus Nothing and Just Maybe values.

I am trying to utilize a contract that uses a Plutus Maybe in the Datum.
I am trying to serialize Nothing using the cardano-multiplatform-lib, when this is done in Haskell the cborHex output is "\128".
Is there any way currently to accomplish this?

Talk to Cardano Dev on the Live support page so that your issue can be looked into.

@Riley-Kilgore can you provide a more complex structure containing Nothing or Just values? That could help to reverse-engineer this a bit since I wasn't successful when looking through the haskell code (although maybe I was looking in the wrong spots).  When I try with that hex string (I had to pad it since it's odd-length) I get a CBOR unsigned integer 18, which doesn't seem like it could be Nothing. If I pad the other way I get an unsigned integer 1 with a trailing negative int after.
The binary spec (CBOR spec) for plutus datums doesn't have anything that could very obviously be Nothing/Some (unless Just x encodes to x) unless they are using the constrained plutus datums in some specific way (i.e. specific tags) but that doesn't seem to be the case with that 128 cbor hex.

I think you should be able to convert the datum to JSON and then import the JSON from CML

I think you should be able to convert the datum to JSON and then import the JSON from CML

We'd have to see what they would export the JSON from. The Haskell JSON format doesn't support JSON null (or true/false) so it would really depend on how Haskell turns the Haskell Nothing into JSON I guess.

I think you should be able to convert the datum to JSON and then import the JSON from CML

We'd have to see what they would export the JSON as. The Haskell JSON format doesn't support JSON null (or true/false) so it would really depend on how Haskell turns the Haskell Nothing into JSON I guess.

I was able to use Data.Aeson.toJSON on Nothing. When show is then applied, Null is yielded.

I have not as of yet had any resolution to this.
Is there a way for me to serialize Null yielded above to be used in the way that is intended here?
@rooooooooob
I have not seen json parsed by the cml, what does the usage look like for this? Or am I misunderstanding?
Thank you both for your time.

@Riley-Kilgore the JSON parsing in CML is found in plutus::encode_json_str_to_plutus_datum() and plutus::decode_plutus_datum_to_json_str(). (they are free-floating functions if you're using it from js/wasm) see code here. You'll want to use the detailed schema.
I'm a bit confused on if Nothing encoding is actually intended behavior in the haskell code though as you said you get 128 as your hex, as that results in integers as the datum, which is ambiguous. I'd have to see what it looks like when you use Nothing in a more complex situation like inside of a list/map to make sure of the format they're exporting too though.

Sorry, I have had a lot going on the past few days and was unable to get back to this thread.
The solution I have come to thus far is simply avoiding using Maybe in my Validation logic, creating my own alternative types when I need this kind of behavior.
If you'd like I can definitely go and experiment some more with Maybe serialization from Haskell and report back here -- but unless it's something of interest for you guys, you're also welcome to just close the issue. I feel that I have proper resolution at this point.
Thank you! :)


Error paypal sdk “react-paypal-js” and cypress

I have at error with cypress and paypal sdk "react-paypal-js" when I'm doing click in the paypal button I have the next error
"TypeError: o.removeEventListener is not a function" "Uncaught TypeError: Cannot read property 'stack' of null"
can it be integrated with cypress?
what would be the correct way to do it?

Hi @solangeDev, the PayPal JS SDK relies on using iframes. Cypress does not play nice with iframes and it looks like there's additional work to get it setup: https://www.cypress.io/blog/2020/02/12/working-with-iframes-in-cypress/. Could you try using Cypress with this demo page? https://developer.paypal.com/demo/checkout/. That will help us figure out if its a problem with this react library or the PayPal JS SDK in general.

Hi thanks!! I open the PayPal pop-up window, how can I access to log in? Is it possible to do this?. This window does not appear to be inside an iframe.
this is the test, it is working, but it just pulls up the pop up and it has no iframe:
import i18n from '@/lib/i18n';
import users from '@/cypress/fixtures/common/users';
const getIframeDocument = () => {
return cy
.get('[data-cy=invoice-btn-paypal]').find('iframe')
// Cypress yields jQuery element, which has the real
// DOM element under property "0".
// From the real DOM iframe element we can get
// the "document" element, it is stored in "contentDocument" property
// Cypress "its" command can access deep properties using dot notation
// https://on.cypress.io/its
.its('0.contentDocument').should('exist')
}
const getIframeBody = () => {
// get the document
return getIframeDocument()
// automatically retries until body is loaded
.its('body').should('not.be.undefined')
// wraps "body" DOM element to allow
// chaining more Cypress commands, like ".find(...)"
.then(cy.wrap)
}
describe('', () => {
Cypress.on('uncaught:exception', (err, runnable) => {
return false
});
before(() => {
cy.task('db:seed:invoices');
});
it(' - Validate app list', () => {
cy.login({ email: users[1].email, password: 'usertimg' });
cy.visit('/invoices');
cy.wait(8000);
getIframeBody().find('#buttons-container').click()
});
});


Can i use github to host and connect with google cloud

Is there any demo available

It can't be possible to use github. Github is only for static websites. Demo is not available, but you easily run it locally with free google cloud account.

Is it possible in other hosting


Transfer - button to offer NFT as a Gift

Transfert NFT free, as a Gift
TODO

Add a button to offer NFT as a Gift, opening a form (popup ?)  to enter the destination address

Design
HTML Integration
Svelte Integration

DONE
2. SmartContract: free transfer NFT, included in all ERC721 contracts

test

partir de la branche transferNft

Done in PR #102


Wrong STREAM_OUTPUT Descriptor

Hi *,
I am on master branch commit b77cddc8127c9d609c1d5cc4bccc34290aabc917.
I have an Openavb talker configured for 96kHz with 2 channels. But avdecccmdline doesn't show the correct values, which prevents any connection.
----------------------- STREAM_OUTPUT -----------------------
descriptor_type: STREAM_OUTPUT
descriptor_index: 0
object_name = Stream Output 0
localized_description = 65535
clock_domain_index = 0
stream_flags = 0x2
	clock_sync_source = 0
	class_a = 1
	class_b = 0
	supports_encrypted = 0
	primary_backup_valid = 0
	primary_backup_valid = 0
	secondary_backup_supported = 0
	secondary_backup_valid = 0
	tertiary_backup_supported = 0
	tertiary_backup_valid = 0
current_format_name = IEC61883-6_AM824_MBLA_96KHZ_8CH
backup_talker_entity_id_0 = 0x0
backup_talker_unique_0 = 0
backup_talker_entity_id_1 = 0x0
backup_talker_unique_1 = 0
backup_talker_entity_id_2 = 0x0
backup_talker_unique_2 = 0
backedup_talker_entity_id = 0x0
backedup_talker_unique = 0
avb_interface_index = 0
buffer_length = 0
number_of_formats = 1
	stream_format_0 = IEC61883-6_AM824_MBLA_96KHZ_8CH

It ought to be 96kHz and 2 channels.
Wireshark shows the correct values sent from the endpoint (FDF SFC: 0x4, Label Multi-Bit Linear Audio Count: 2):
Ethernet II, Src: IntelCor_3f:be:a3 (a0:36:9f:3f:be:a3), Dst: IntelCor_3f:be:a3 (a0:36:9f:3f:be:a3)
IEEE 1722 Protocol
IEEE 1722.1 Protocol
    .... 0001 = Message Type: AEM_RESPONSE (1)
    0000 0... = Status: SUCCESS (0x00)
    .... .000 1001 1100 = Control Data Length: 156
    Target GUID: 0xa0369ffffe3fbea3
    Controller GUID: 0xa0369fffff3fbea3
    Sequence ID: 4
    0... .... = U Flag: False
    .000 0000 0000 0100 = Command Type: READ_DESCRIPTOR (0x0004)
    Configuration: 0
    Descriptor Type: STREAM_OUTPUT (0x0006)
        Descriptor Index: 0x0000
        Object Name: Stream Output 0
        Localized Description: 65535
        Clock Domain ID: 0
        Stream Flags: 0x0002
        Stream Format
            0... .... = Version: 0x0
            .000 0000 = Subtype: 0x00
            1... .... = SF: True
            ..10 0000 = FMT: 0x20
            0000 0... = FDF EVT: 0x00
            .... .100 = FDF SFC: 0x4
            DBS: 0x08
            0... .... = Blocking Flag: False
            .1.. .... = NonBlocking Flag: True
            Label IEC 60958 Count: 0
            Label Multi-Bit Linear Audio Count: 2
            0000 .... = Label Midi Slot Count: 0
            .... 0000 = Label SMPTE Slot Count: 0
----------------------8<---------------------------------------------------------

Any advice?
Best,
Ck

Hi Chris,
I think IEC61883_AM824_MBLA_96KHZ_2CH  = 0x00A0040240000200
I don't think this matches your wireshark capture?

Ok, I found the problem.
avdecccmdline analyzes the dbs value as channel count and seems to ignore the mbla channel count. I set a 2 as dbs value and now it is correct.
I am not sure, but I don't think this is correct behavior. dbs only gives information about the structure of the mbla channel count. at least that is how I understand it. having to channel count fields does not make sense in another way...

1722-2016 has
<IP_ADDRESS> DBS (data block size) field
The 1-octet DBS field has the same definition as IEC 61883-1, which is the size of data blocks in quadlets,
as follows:
 0: 256 quadlets
 1 to 255: 1 to 255 quadlets
For AVTP, the DBS field shall not be set to a value that would cause the AVTPDU length to exceed the
MTU of the network. All AVTPDUs of this format shall contain an integral number of data blocks as
defined in IEC 61883-1.

Yeah, so I think using the DBS field as channel count is indeed wrong. It is a value that is used to correctly receive AVTP packets, but it should be ignored in connection establishment process. Or am I wrong?

I interpret iec61883-1 Data Block Size to mean the count of the number of quadlets in a data block. And if a data block consists of data from a single sample period, then DBS will change with the number of channels in a packet. I don't know that you are wrong - the specs are not very clear....

@chris-kuhr - are you on the IEEE1772.1 reflector? I guess we could ask for clarification there.

Ok. I will make a pr to avtp pipeline. fixing at least those problems.


exc_info is an optional positional argument in start_response for wsgi

Closes #504

I can confirm this fixes it for me!

Now released as 0.5.12.
Thanks!


single item inference request fails

This project is marked as deprecated, yet still seems to be used for sklearn model hosting in Sagemaker. The default_input_fn when parsing csv input calls squeeze on the parsed result: https://github.com/aws/sagemaker-containers/blob/526dda90d636c7fb0c25791e6c57d077bd972000/src/sagemaker_containers/_encoders.py#L117
That causes inferences with just single item to fail as the input array becomes 1D instead of 2D

we are working with the team that owns the scikit-learn images to have them migrate to https://github.com/aws/sagemaker-inference-toolkit
The updated implementation looks to not make this squeeze() call: https://github.com/aws/sagemaker-inference-toolkit/blob/master/src/sagemaker_inference/decoder.py#L43-L57

Thanks for the response! Is there any timeline for the migration?
I guess it's still useful to keep the issue open for the time being in case someone has a similar issue in the meantime

Is there any timeline for the migration?

Sorry, I've reached out to the team, but don't have any timeline to share at this time.


Configurable option to control stack sizes

It would be useful to have (initial) stack size be a configurable option. The size of async stacks is already a configurable, but we should probably have our own separate option.

This issue, as described, has resolved in a previous patch by @frank-emrich. One useful addition would be to expose these facilities in the C API.

We should also have configurable options to control the stack allocation policy (initial stack pool soze, growth rate, growth technique).


Unable to work with routes using private types.

It seems to be unable to mock navigator interactions when code in tests depends on types that are not publicly visible.
It's not uncommon that the Flutter SDK uses internal types that cannot be used outside the sdk. E.g. trying to test that DropdownButton pushes a dropdown menu will throw due to the when method generic type param that cannot be stubbed.

Attempting the above will fail with:
Exception has occurred.
TestFailure (No matching calls. All calls: MockNavigator.canPop(), MockNavigator.push<_DropdownRouteResult<String>>(_DropdownRoute<String>(RouteSettings(none, null), animation: null))

Mock navigator should expose a way of working around internal types (or maybe there already is one that I'm unaware of).

Hi @tomwyr, can you share a minimal example to reproduce this issue?


Command to stop chainlit running on local machine.

their should be a command to stop chainlit, same as control + c on mac to stop many things

ctrl/cmd + c stops it everywhere

ctrl/cmd + c stops it everywhere

but its not working on mac, i tried and then only i've raised this issue.

Sorry, I misunderstood the Q.
It's been a while since I used a Mac. Can you try ctrl + d?
https://stackoverflow.com/a/18047735/9792001

that too didn't worked!

ctrl+c should work on mac.


new CSP rules broke FF on localhost

It appears https://github.com/excalidraw/excalidraw/pull/1379 broke Firefox (doesn't load at all) on localhost:

/cc @Shriram-Balaji

I'm not a security expert but I wonder if it makes sense to use CSP rules on the localhost (in the dev mode)...
If we need to use it to suppress the warning mentioned in https://github.com/excalidraw/excalidraw-desktop/issues/82 then we could just put a wilecard * into the CSP header in the dev mode...

@tomdohnal Agreed, we could actually do that. I had a hunch that the connect-src csp was a little restrictive and might just break things unintentionally, but the other policies should ideally work on development also - as we have set to default-src to be self.


Os 1219 rover control cli

Status
Ticket/Issue

Ready/Hold
Ticket

Main changes

Screenshots (feature, test output, profiling, dev tools etc)
[insert screenshots here]
Other notes (e.g. implementation quirks, edge cases, questions / issues)

Manual testing tips

Tag anyone who definitely needs to review or help

Would it make more sense to offer the option of any named web server in the SDK? e.g.pi-top web rover or whatever name of a web server you want to spin up? Seems a bit more scalable to me.

Would it make more sense to offer the option of any named web server in the SDK? e.g.pi-top web rover or whatever name of a web server you want to spin up? Seems a bit more scalable to me.

Yeah that is a good suggestion, thanks.
While writing this I started to think it could be better to manage the server with systemd. We want to add management of the rover controller to the web portal and that would provide a better interface to get the status etc.
I'm gonna mark the PR as a draft while we give more thought to how it integrates

closing in favour of https://github.com/pi-top/pi-topOS-Web-Portal/pull/355


Fix Vimeo instantiation error catching

Errors happening during instantiation of the Vimeo player (for example: a private video or 404) were not caught and passed to the error handler.
This change calls player.ready() right after instantiation (which returns a promise), allowing us to check if everything is OK (in which case we attach all the listeners), or not (in which case we pass the error on to our onError method).
More info: https://github.com/vimeo/player.js/issues/165

https://github.com/CookPete/react-player/commit/d34d2286239bbf5caf1236fa4f6fa58bcb8a801e should fix this, but there is still a bug with the Vimeo API that renders the player useless after the initial error occurs: https://github.com/vimeo/player.js/issues/166.
Thanks for the PR!


AttributeError: 'BigVGAN' object has no attribute 'decode'

Checks

[X] This template is only for usage issues encountered.
[X] I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
[X] I have searched for existing issues, including closed ones, and couldn't find a solution.
[X] I confirm that I am using English to submit this report in order to facilitate communication.

Environment Details
windows/macos
python 3.10.13
Steps to Reproduce
1、according to option 2: Local editable (if also do training, finetuning)
2、f5-tts_infer-gradio
✔ Expected Behavior
using f5-tts_infer-gradio with vocoder_name="bigvgan".
❌ Actual Behavior
...
  File "E:\F5-TTS\src\f5_tts\infer\infer_gradio.py", line 208, in basic_tts
    audio_out, spectrogram_path, ref_text_out = infer(
  File "E:\F5-TTS\src\f5_tts\infer\infer_gradio.py", line 127, in infer
    final_wave, final_sample_rate, combined_spectrogram = infer_process(
  File "E:\F5-TTS\src\f5_tts\infer\utils_infer.py", line 380, in infer_process
    return infer_batch_process(
  File "E:\F5-TTS\src\f5_tts\infer\utils_infer.py", line 465, in infer_batch_process
    generated_wave = vocoder.decode(generated_mel_spec)
  File "C:\ProgramData\miniforge3\lib\site-packages\torch\nn\modules\module.py", line 1688, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'BigVGAN' object has no attribute 'decode'

ref to #463

Some problems with parameter passing, solved!  And thanks!

check and fix
https://github.com/SWivid/F5-TTS/blob/84db0029ce822f75593ba66997cc687327658e71/src/f5_tts/infer/utils_infer.py#L458-L462
I haven't used the gradio to inference and you can use infer_cli

same issue on the trainer.py at line 331 and 343 during using bigvgan for model training.

check and fix
I have got same issue after 17 epochs. Could you please suggest to me why this issue is raised?
Epoch 17/1000: 100%|█████████████████████████████████████████████████████| 2939/2939 [43:43<00:00,  1.12step/s, loss=0.729, step=49963] Epoch 18/1000:   1%|▋                                                      | 36/2939 [00:37<51:01,  1.05s/step, loss=0.711, step=50000] [rank0]: Traceback (most recent call last): [rank0]:   File "/raid/TTS_RND/F5-TTS/src/f5_tts/train/train.py", line 226, in <module> [rank0]:     main() [rank0]:   File "/raid/TTS_RND/F5-TTS/src/f5_tts/train/train.py", line 219, in main [rank0]:     trainer.train( [rank0]:   File "/raid/TTS_RND/F5-TTS/src/f5_tts/model/trainer.py", line 462, in train [rank0]:     vocoder.decode(batch["mel"][0].unsqueeze(0)), [rank0]:   File "/home/u001/miniconda3/envs/f5-tts/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1709, in __getattr__ [rank0]:     raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") [rank0]: AttributeError: 'BigVGAN' object has no attribute 'decode'


Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/DeadBoolean/ioBroker.zoneminder

[ ] [E106] Title should not have word "adapter" in the name. It is clear, that this is adapter. Now: ZoneMinder adapter
[ ] [E112] extIcon must be the same as an icon but with github path
[ ] [E114] No adapter are allowed in the repo without admin3 support
[ ] [E116] No SPDX license found. Please use one of listed here: https://spdx.org/licenses/
[ ] [E117] Licenses in package.json and in io-package.json are different
[ ] [E125] External icon not found under URL: https://raw.githubusercontent.com/ioBroker/ioBroker.template/master/admin/template.png
[ ] [E300] Not found on travis. Please setup travis
[ ] [E402] Types of adapter in latest repository and in io-package.json are different "alarm" !== "general"
[ ] [E405] Icon must be in the following path: https://raw.githubusercontent.com/DeadBoolean/ioBroker.zoneminder/master/
[ ] [E407] Meta URL(latest) must be equal to https://raw.githubusercontent.com/DeadBoolean/ioBroker.zoneminder/master/io-package.json
[ ] [E802] No topics found in the repository. Please go to "https://github.com/DeadBoolean/ioBroker.zoneminder" and press "Manage topics"
[ ] [E603] NO "## Changelog" found in README.md
[ ] [E604] No "## License" found in README.md
[ ] [E701] No actual year found in LICENSE. Please add "Copyright (c) 2020 DeadBoolean<EMAIL_ADDRESS>at the start of LICENSE

I have also found warnings that may be fixed if possible.

[ ] [W113] Adapter should support compact mode

Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Do you need help fixing the bugs?


[MediaBundle] changed downloadAction (dispositionType)

Tasks:

[x] test coverage
[x] gather feedback for my changes
[x] submit changes to the documentation
[x] added changelog line

Informations:

Q
A

Fixed tickets
fixes #1125

BC Breaks
none

Doc
sulu-io/docs#16

Test is missing :-)

Documentation: https://github.com/sulu-io/docs/pull/16

i think it is ok. i have speak to @chirimoya he thinks this is a good solution so we can merge it after you have answered my comments!

I've added validation, twig extension and some test cases - thanks for the help! Please review.

@thomasduenser please make this PR mergable

@thomasduenser could you please add a docu for this new twig extension and the configuration of that?

@wachterjohannes Yes - to "docs" or "sulu-docs"?

sulu-docs please (=

@wachterjohannes Pull Request for Documentation: https://github.com/sulu-io/sulu-docs/pull/36


Sniffing Fails on Complex Hostnames

Which version of Elastic are you using?

[ ] elastic.v2 (for Elasticsearch 1.x)
[x] elastic.v3 (for Elasticsearch 2.x)

Using elasticsearch 2.2.1
Please describe the expected behavior
It should be able to split and pick the hostname or the IP address (unsure which is the proper to choose) from the http_address section.
Please describe the actual behavior
It grabs the entire http_address and attempts to connect to it:

2016/03/25 15:40:33 elastic: http://myelk.local/<IP_ADDRESS>:9200 joined the cluster
F0325 15:40:34.133720   30624 company_volume.go:57] Couldn't connect to ES: no Elasticsearch node available

Any steps to reproduce the behavior?
When sniffing the connection to determine what the http address is, the client takes into account the condition where inet is present in the http_address, but not when there is a hostname + ip address.
Here's an example from http://myelk.local:9200/_nodes/Hathor/http?pretty=1
{
  "cluster_name" : "myelk",
  "nodes" : {
    "CIH2quEoTpqkR_UV4wI3oQ" : {
      "name" : "Hathor",
      "transport_address" : "<IP_ADDRESS>:9300",
      "host" : "<IP_ADDRESS>",
      "ip" : "<IP_ADDRESS>",
      "version" : "2.2.1",
      "build" : "d045fc2",
      "http_address" : "myelk.local/<IP_ADDRESS>:9200",
      "attributes" : {
        "master" : "true"
      },
      "http" : {
        "bound_address" : [ "[::]:9200" ],
        "publish_address" : "<IP_ADDRESS>:9200",
        "max_content_length_in_bytes" : 524288000
      }
    }

Elasticsearch-py handles this by splitting the url on /, which is probably what is needed.
The offending code doesn't seem to take the / into account.
To accomplish this configuration in Elasticsearch, I have this set: -Des.network.bind_host="<IP_ADDRESS>" -Des.network.publish_host=myelk.local (it runs in docker so it has a different bind_host than publish_host, as publish_host is the docker_host).

Thanks for reporting. Will look into it and strive to do the same as the official clients.

@olivere thanks! Love the client.

@tebriel Just released a new client. I hopefully fixed it correctly. Can you please try again?

@olivere I'll try to do it today, if not I'll do it on Monday. Wow thanks for the fast turnaround!

Confirmed working. Thank you! Sorry for the slow turnaround!
On Mar 25, 2016, at 5:10 PM, Oliver Eilhard <notifications<EMAIL_ADDRESS>wrote:
@tebrielhttps://github.com/tebriel Just released a new client. I hopefully fixed it correctly. Can you please try again?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com/olivere/elastic/issues/251#issuecomment-201504747


Generated interfaces for input types should use undefined instead of null

Description
When a field is optional in the schema, graphqlgen generates the types as
    firstName: string | null;
    lastName: string | null;
  }

It is expected to rather generate using undefined instead of null or the ? shorthand.
  export interface UserInput {
    firstName?: string;
    lastName?: string;
  }

This issue only occurs when tsconfig.json has strict: true which comes with graphql-boilerplate.
Steps to reproduce
Clone this repo and do a tsc build to see the errors.
https://github.com/cyrus-za/graphqlgen-example
Expected results
No error.
Actual results
src/resolvers/Query.ts:3:14 - error TS2322: Type '{ user: (parent: {}, args: ArgsUser, ctx: Context) => User | undefined; }' is not assignable to type 'Type'.
  Types of property 'user' are incompatible.
    Type '(parent: {}, args: ArgsUser, ctx: Context) => User | undefined' is not assignable to type '(parent: {}, args: ArgsUser, ctx: Context, info: GraphQLResolveInfo) => User | Promise<User | nul...'.
      Type 'User | undefined' is not assignable to type 'User | Promise<User | null> | null'.
        Type 'undefined' is not assignable to type 'User | Promise<User | null> | null'.

 export const Query: QueryResolvers.Type = {

Versions

graphqlgen: 0.3.0
OS name and version: MacOS 10.14.1

PS. This is related to https://github.com/prisma/graphqlgen/issues/50 but I was asked to create a new issue. @schickling

@cyrus-za Everything looks fine for me :

It was not working before, and had been fixed days ago in one of last releases, as said @schickling on #50 :

I assume this has been fixed by the latest version. Please open a new issue if this problem still occurs.

This is your custom https://github.com/cyrus-za/graphqlgen-example/blob/master/src/types.ts which is not valid and cause the error.
You might ask why using ? is not valid ? In fact that's somehow difficult to understand.
The TypeScript language indeed use ? for optional values, BUT GraphQL servers can't return undefined values.
GraphQL servers automatically map undefined values as null in client responses.
On the other hand, using strict: true enables the strictNullChecks option of TypeScript, which make you aware, for example, if one of your function return undefined instead of null (without the option, TypeScript doesn't care, and GraphQL will gently handle it by mapping undefined to null for responses).
And this is what happening in your code here : https://github.com/cyrus-za/graphqlgen-example/blob/master/src/resolvers/Query.ts#L5
The typing mismatching is between :

generated.ts definition of your user query , which should return either User or null
your findOne returning User or undefined https://github.com/cyrus-za/graphqlgen-example/blob/master/src/types.ts#L2

@kevinmarrec We still have an issue with input types though.
An optional GraphQL input field can either be undefined (in the sense of typescript), null, or have a value.
Given the following schema:
input UserInput {
  field: String
}

type Query {
  users(input: UserInput): [User!]!
}

The following queries are all valid:
{
  users { ... }
}

{
  users(input: null) { ... }
}

{
  users(input: { ... }) { ... }
}

We need to change the typings for input types and make optional GraphQL fields for input types defined as so: field?: type | null

@Weakky Alright, I didn't go deep testing GraphqlGen with inputs types yet.
Anyway, if I'm right, there is already an opened issue about the input types.
The error in Actual Results section of this issue isn't related on input types, it's about his custom service returning undefined. But if he fixes it, he then will have the input types issue, I guess.

@cyrus-za I don't know where it says that, but maybe here : https://github.com/graphql/graphql-js/issues/731

@kevinmarrec that is graphql-js which we are not using. We using a schema file directly. Nowhere in the facebook graphql spec does it say that undefined means null. Neither will it as some languages dont even have a null type.
This is an opinionated approach one way or another. I am just of the opinion that if a model interface has optional question mark (which as per typescript documentation means T | undefined) then the resolver typings should also use T | undefined or even better: just add the question mark similar to the actual interface of the model.

Alright then I don't know.
All I know is that if your make your resolver return undefined, it's resolved to null in client response 😁

That is dependent on your framework. GraphQLjs maybe. Apollo server does
not resolve null into null or undefined. It actually discards the property
completely. Yoga does the same as it is built on top of Apollo.
On Wed, Nov 14, 2018, 20:07 Kevin Marrec<EMAIL_ADDRESS>wrote:

Alright then I don't know.
All I know is that if your make your resolver return undefined, it's
resolved to null in client response 😁
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/prisma/graphqlgen/issues/278#issuecomment-438760667,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABwqZSzLBlUJRQTAVMElWXjflSertkKZks5uvFvBgaJpZM4YX9XS
.

I think there is a misunderstanding. @kevinmarrec is talking about "value types", things the server returns to the client, but @Weakky (and I think @cyrus-za as well) are talking about "input types", things the client sends to the server. As far as I can tell, no one actually disagrees with each other, you're just talking about different things.
My 2 cents:
The GraphQL spec only says that undefined values returned to the client will be replaced with null.

If result is null (or another internal value similar to null such as undefined or NaN), return null.

The spec does not say anything about undefined inputs sent to the server being replaced with null. The most it says is

In addition to not accepting the value null, it [a non-nullable input] also does not accept omission.

Which implies that there may be a difference between passing null and leaving an input undefined.
Given that some JavaScript implementations of GraphQL will pass omitted inputs as undefined, the generated types for inputs should cover this extra case. argName?: argType | null

Well said!
I am definitely talking about inputs. The returned value is already defined
in the models. It is the input that is auto generated that is the problem.
Given a returned value of undefined in the interface, it is expected that
the generated input will allow undefined, but it only allows an explicit
null and not a onmited value. The generated js from the ts will actually
allow onmited values but ts does not compile.
On Thu, Nov 15, 2018, 15:52 Joshua T Shaffer<EMAIL_ADDRESS>wrote:

I think there is a misunderstanding. @kevinmarrec
https://github.com/kevinmarrec is talking about "value types", things
the server returns to the client, but @Weakky https://github.com/Weakky
(and I think @cyrus-za https://github.com/cyrus-za as well) are talking
about "input types", things the client sends to the server. As far as I can
tell, no one actually disagrees with each other, you're just talking about
different things.
My 2 cents:
The GraphQL spec only says that undefined values returned to the client
will be replaced with null.
If result is null (or another internal value similar to null such as
undefined or NaN), return null.
The spec does not say anything about undefined inputs sent to the server
being replaced with null. The most it says is
In addition to not accepting the value null, it [a non-nullable input]
also does not accept omission.
Which implies that there may be a difference between passing null and
leaving an input undefined.
Given that some JavaScript implementations of GraphQL will pass omitted
inputs as undefined, the generated types for inputs should cover this extra
case. argName?: argType | null
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/prisma/graphqlgen/issues/278#issuecomment-439046803,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABwqZeoo3521Yyvl_J2smSNwQK3YiYrCks5uvXG4gaJpZM4YX9XS
.

I think this issue shows up when using Prisma with graphqlgen.
Prisma generates the following interface:
export interface UserUpdateInput {
  email?: String;
  name?: String;
  password?: String;
  emailVerified?: Boolean;
  posts?: PostUpdateManyWithoutAuthorInput;
}

GraphQlGen does this:
export interface UserUpdateInput {
  email: string | null
  name: string | null
  password: string | null
  emailVerified: boolean | null
  posts: PostUpdateManyWithoutAuthorInput | null
}

Here's the mutation in schema.graphql
# import UserUpdateInput from './generated/prisma-client/prisma.graphql'
type Mutation {
    updateUser(data: UserUpdateInput!): User!
}

type User {
    email: String!
    id: ID!
    name: String!
}

User in datamodel.prisma
type User {
    id: ID! @unique
    email: String! @unique
    name: String!
    password: String!
    emailVerified: Boolean
    createdAt: DateTime!
    updatedAt: DateTime!
}

After generating the code with prisma generate, followed by graphql get-schema then graphqlgen, I get the error when implementing the resolver for createuser mutation:
Type 'import(".../src/generated/graphqlgen").MutationResolvers.UserUpdateInput' is not assignable to
Type 'import(".../src/generated/prisma-client/index").UserUpdateInput'.
Types of property 'name' are incompatible.
Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'. [2322]

Is there a workaround for this (or am I doing something wrong)?  Here is the full problem:
GraphQL does indeed accept null as input type when a field is nullable, and from the perspective of graphqlgen, we should indeed type the input fields as field?: type | null
The problem is that prisma-client does not accept null for its input type. My guess is that it didn't make sense to accept such a value when querying your Prisma GQL API using prisma-client when it was designed.
This means that even if we fix this issue on graphqlgen right now and type all the nullable input field as field?: type | null, there will still be a type mismatch because undefined | null !== undefined
@schickling @timsuchanek: What do you think we should do here?

I just found out that the same problem applies to the Flow client as well! I've added a note to the corresponding issue in the prisma repo: https://github.com/prisma/prisma/issues/3621#issuecomment-443246332

Hello!
I made PRs for graphqlgen and graphql-binding based on how resolvers and binding actually work in this example:
const { graphql } = require("graphql")
const { makeExecutableSchema } = require("graphql-tools")
const { Binding } = require("graphql-binding")

const schema = makeExecutableSchema({
  typeDefs: `
    type Query {
      echo(input: [String]): [String]
      binding(input: String): [String]
    }
  `,
  resolvers: {
    Query: {
      echo: (root, { input }) => {
        const output = Array.isArray(input)
          ? input.map(e => (e === null ? undefined : e))
          : input
        console.log("resolver input", input)
        console.log("resolver output", output)
        return output
      },
      binding(root, { input }, { binding }, info) {
        console.log("binding input", input)
        return binding.query.echo({ input }, info).then(output => {
          console.log("binding output", output)
          return output
        })
      }
    }
  }
})

const root = undefined
const context = {
  binding: new Binding({ schema })
}
const queries = [
  "{ echo }",
  "{ echo(input: null) }",
  '{ echo(input: "1") }',
  '{ echo(input: ["1", null]) }',
  "{ binding }",
  "{ binding(input: null) }",
  '{ binding(input: "1") }'
]

queries.reduce(
  (promise, query) =>
    promise.then(_ => {
      console.log("query", query)
      return graphql(schema, query, root, context).then(result => {
        if (result.errors) {
          console.error("Err", result.errors.map(e => e.message))
        } else {
          console.log("Ok", result.data)
        }
        console.log("---")
      })
    }),
  Promise.resolve()
)

Output:
query { echo }
resolver input undefined
resolver output undefined
Ok { echo: null }
---
query { echo(input: null) }
resolver input null
resolver output null
Ok { echo: null }
---
query { echo(input: "1") }
resolver input [ '1' ]
resolver output [ '1' ]
Ok { echo: [ '1' ] }
---
query { echo(input: ["1", null]) }
resolver input [ '1', null ]
resolver output [ '1', undefined ]
Ok { echo: [ '1', null ] }
---
query { binding }
binding input undefined
resolver input null
resolver output null
binding output null
Ok { binding: null }
---
query { binding(input: null) }
binding input null
resolver input null
resolver output null
binding output null
Ok { binding: null }
---
query { binding(input: "1") }
binding input 1
resolver input [ '1' ]
resolver output [ '1' ]
binding output [ '1' ]
Ok { binding: [ '1' ] }
---

Types:
interface BindingArgs {
  input: string | null | undefined
}
interface ResolverArgs {
  input: Array<string | null> | null | undefined
}
type ResolverReturns = Array<string | null | undefined> | null | undefined
type BindingReturns = Array<string | null> | null

For ResolverArgs graphqlgen generates now:
interface ResolverArgs {
  input: Array<string | null | undefined> | null | undefined
}

I have not found a way to pass undefined element to array, it always replaced with null but
and I can't remove  | undefined because I don't know is this argument or return type in function printFieldLikeType (isInput is not true for scalars in arguments).

Any update on what to do? For now I'm switching my types to field?: string | null but I don't know if this the the correct solution.

@nickluger There is definitely a difference between null and undefined/omitted. I looked at the source code of the reference implementation, graphql-js. It makes meaningful distinctions between null and omitted arguments. For example, omitting arguments causes a default value to be used if a default is defined. This means that clients are supposed to allow the omission of arguments. However, passing an explicit undefined is impossible because GraphQL uses JSON and JSON cannot serialize things like { x: undefined }. So, leaving an argument undefined should be allowed, but defining an argument to be undefined is impossible.
@Weakky Unfortunately, Flow seems unable to make a type that allows both {} and { x: "some value" } but does not allow { x: undefined }. It seems the best type to use is { arg?: argType }. This would allow both {} and { arg: null } to comply with the standard. This would also allow { arg: undefined } which is not ideal, but I think the client implementations will just have to deal with it. They can just remove all arguments with values of undefined when serializing the queries.
@b33son For now I recommend using args: { arg?: argType } on your resolvers and args: { arg: argType | null } on the client side. This will ensure your resolvers can handle both omitted and null arguments while also preventing your clients from passing values of undefined which might not be handled well.

I've been copying graghqlgen.ts to my client project and using the Mutation ResolverArgs for type safety on an automated way.
export interface ArgsSignup {
    email: string;
    password: string;
    username: string;
    fullName: string | null;
    phone: string | null;
    profileImgUrl: string | null;
    facebookHandle: string | null;
    instagramHandle: string | null;
    twitterHandle: string | null;
    snapchatHandle: string | null;
  }

const variables: MutationResolvers.ArgsSignup = {
      email<EMAIL_ADDRESS>      password: `${randNumber}`,
      username: `test-${randNumber}`,
      fullName: `test-${randNumber}`,
      phone: "",
      profileImgUrl: `test-${randNumber}`,
      facebookHandle: `test-${randNumber}`,
      instagramHandle: `test-${randNumber}`,
      twitterHandle: `test-${randNumber}`,
      snapchatHandle: `test-${randNumber}`,
    }

This will work great once the interface defines optional fields correctly. Currently, I have no option other than to use all the fields.

I have posted a comment with code samples on the prisma end of this thread here https://github.com/prisma/prisma/issues/3621#issuecomment-446452288.
The TL;DR for TypeScript is that we should, I think:

nullable prisma client input args should be typed x?: null | Foo
graphqlgen, for nullable graphql input args with null default, should produce x: null | Foo if there is no gql default
graphqlgen, for nullable graphql input args  without defaults, should produce x?: null | Foo

My PR #329 should take care of point 2 coincidentally.

Hey everyone, worked a bit on this tonight, moving the existing PR forward. Almost there, except https://github.com/prisma/graphqlgen/pull/331#issuecomment-451056843. I think I'll have it done this week, or next.

The PR also addressed resolver return types, not just resolver params. I'm not sure that was mentioned in this thread so just mentioning it.
I chose not to allow undefined in resolver return types but rather only explicit null. This improves DX by preventing developers from accidentally not returning. Its also smart enough to account for Arrays. Thanks to @kinolaev who originally started the PR!


Admin\Operations - External user can edit an Operation

Dependencies:

Blocked by #1694

Description:

"Edit" modes of Operation Information page
Acceptance Criteria:
Given I am an authenticated external user
When I click on the Operation Information page and click the 'Edit' button
Then I am able to edit the data fields relevant to my Operation
Edit:
Figma wireframe
Development Checklist:

[ ] don't sweat over the green checkmark if data validation from live editing is too computationally expensive or dev-intensive
[ ] edited data that is 'submitted' propagates to the database
[ ] Checklist item
[ ] Meets the DOD

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

Review notes:
On the Operations table page I'm a bit confused by the the difference between actions in the Facilities column and the Actions column.
For example: For Operation 16, under Facilities it says "Edit details" which when clicked, takes you to the facility page in edit mode. But under Action, you click "View Operation" which takes you to the Operation Information page in view only mode. Then on the Operation Information page you click on "edit" if you want to make changes.
I'm not clear why the steps are different between facility and operation. I think my expectation here was that it would say "view facility" in a similar way and then on the facility information page they click "Edit" if they need to change something. Would love some more context on this!

@patriciarussellCAS I think that's fair though that wasn't part of this ticket. The Operation DataGrid is implemented as the wireframes are shown, so maybe something to bring up with the designers.
I'd also note that the Facility DataGrid shows View Facility for an SFO Operation if that single Facility information has been saved. It shows Edit Details if there is no Facility saved for that SFO Operation. I forget the details but I think this might be for Operations imported through swrs? So I think it's intentional to have View Operation for Operations that are Registered, and Start Registration/Continue Registration is similar to the idea behind Edit Details.
Though the other day I noticed the Start Registration and Continue Registration links in the DataGrid should probably take you to the Registration form, not the Operation details form and created a ticket:
https://github.com/bcgov/cas-registration/issues/2270

Thanks Marcel - I agree it's a bit unrelated to this specific ticket. Just wanted to note it before I forgot. Thanks for creating a follow-up ticket ;)


Fixed undefined variable bug in XArrayInterface

Fixed undefined variable bug when slicing with tuples and added unit tests for grid slicing.

[x] Add unit tests

Ready to merge, test data was updated due to previous issues (so we can ignore the failing push build).

I restarted the push build anyway and it is now green. Merging.


Add Zarr to upstream CI build

xref https://github.com/zarr-developers/zarr-python/issues/668

[ ] Tests added / passed
[ ] Passes black dask / flake8 dask

Here's the upstream build with the development version of Zarr installed. Tests are failing, but that's a separate issue (xref https://github.com/dask/dask/issues/6148)


change int64 -> null.Int64

Similar to #9  changing to null.Int64 allows to disconnect users from voice channels in this case.

That's correct. null.Int64 indeed does not work with string tag. I had two solutions in mind. One was to use null.String similar to #9  however I thought it might be better to define a custom datatype and use it in all places where nullable IDs are allowed for ease of use.
Let me know what you think and in that case probably the field in #9  can also be updated to use *nullIntID.


Adding Assset type to Lineage

Is it possible to make entityDef as the subtype of the type Process and instead of DataSet, it uses Asset types to make a lineage?
I made an attempt to create an entityDef called Process_new and created a parent-child relationship using Asset however once i try to hook up the process into asset types it doesn't show up in the lineage. To keep it short is it possible to visually add Asset types and hook them to process to display server, database, data warehouse types in Purview Lineage

Thank you for using PyApacheAtlas @eserco !  Pretty much everything depends on the DataSet type in Microsoft Purview it seems. You may consider changing the server, database, etc. to DataSet subtypes rather than Asset Types. That would be consistent with the way the Microsoft Purview team has modeled the Azure databases in Microsoft Purview.
Alternatively look at #263 to see if Manual Lineage might work?


Fix "method_lines" issue in ACycle/ViewModels/DatabaseMigrationViewModel.cs

Method PerformMigrationAndMerge has 28 lines of code (exceeds 25 allowed). Consider refactoring.
https://codeclimate.com/github/lightyears1998/a-cycle-maui/ACycle/ViewModels/DatabaseMigrationViewModel.cs#issue_63fae4b018dd8700010000a3

Fixed by https://github.com/lightyears1998/a-cycle-maui/issues/8.


tensorflow.python.data.ops.dataset_ops.BatchDataset to HDF5

Hello,
I need to load large image datasets (JPEG and other types) with tensorflow and then transform them to HDF5, I have loaded the dataset with the following code, but I don't know how to transform it to HDF5.**
img = tf.keras.preprocessing.image_dataset_from_directory(
'/home/tiny-imagenet-200/train/',
labels="inferred",
label_mode="int",
class_names=None,
color_mode="rgb",
batch_size=32,
image_size=(256, 256),
shuffle=True,
seed=None,
validation_split=None,
subset=None,
interpolation="bilinear",
follow_links=False,
)
I tried to do it like it did in python, but it doesn't work:
for i in range(len(img)):
Imagen = cv2.imread(img)
Imagen = cv2.resize(Imagen, (224, 224), interpolation=cv2.INTER_CUBIC)
Imagen = cv2.cvtColor(Imagen, cv2.COLOR_BGR2RGB)

The error:
typeError                                 Traceback (most recent call last)
 in
---> 10     Imagen = cv2.imread(img)
11     Imagen = cv2.resize(Imagen, (224, 224), interpolation=cv2.INTER_CUBIC)
12     Imagen = cv2.cvtColor(Imagen, cv2.COLOR_BGR2RGB)
TypeError: Can't convert object of type 'tensorflow.python.framework.ops.EagerTensor' to 'str' for 'filename'
I guess it is because of the type of object it generates that it is: tensorflow.python.data.ops.dataset_ops.BatchDataset
Please I would appreciate if someone can help me to know how to transform this to HDF5. Thank you.

Will this work?

@bethven
We see that the issue template has not been filled, could you please do so as it helps us analyse the issue [tf version, steps followed before you ran into this error or stand alone code to reproduce the issue faced].
also please refer this comment.    Thanks


Copyright

I was looking at  https://github.com/php-fig/container/pull/4 , and it seems the repos under http-interop could explicitly mention that this can move to php-fig and copyright for both.
What do you think ?
As it is MIT for me there is no issue, but was looking at @michaelcullum comment.

The current license is assigned to FIG.

Yep. We'll be getting these repos moved under php-fig soon enough anyway. I just need to sort out logistics with Woody.

Great. Looks all is well and can close this issue.
Thank you.


Honor XDG_CONFIG_HOME / XDG spec

Would be nice if the config file wasn't hardcoded and it supported the XDG standards - https://wiki.archlinux.org/index.php/XDG_Base_Directory_support https://specifications.freedesktop.org/basedir-spec/latest/
Probably should default it to something like $XDG_CONFIG_HOME/slackcat/config if  XDG_CONFIG_HOME exists. Better support would set the config file to use xdg if any of the XDG_* variables exist and default XDG_CONFIG_HOME to $HOME/.config as per the standard, falling back to $HOME/.slackcat all together but I think just honoring the variable is a win.
The number of applications supporting it is increasing, and at the very least i think an environment variable should exist for overwriting.

Thanks for the suggestion @derimagia -- support for XDG_CONFIG_HOME per standard has been added here and will be included with the next release

XDG basedir support is now available in the latest release


Install failure through git.sh

Description
When I build image and install git through git.sh
it fails when going to
downloadUrl=$(get_github_package_download_url "github/hub" "contains(\"hub-linux-amd64\")")
and here is the error
jq: error (at <stdin>:1): Cannot index string with string "prerelease" jq: error (at <stdin>:1): Cannot index string with string "tag_name"
I think github/hub transfer to another url to download, so the output json is like
{
"message": "Moved Permanently",
"url": "https://api.github.com/repositories/401025/releases?per_page=100",
"documentation_url": "https://docs.github.com/v3/#http-redirects"
}
So please add some try catch in install.sh to avoid 301 response,
thanks.
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[X] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
"Set up job" -> "Runner Image" -> "ubuntu20/20230611.1".
Is it regression?
no
Expected behavior
Expected to install git through git.sh
Actual behavior
jq: error (at :1): Cannot index string with string "prerelease"
jq: error (at :1): Cannot index string with string "tag_name"
Repro steps
I transfer json to packer to build image and execute git.sh it fails.

Duplicate of https://github.com/actions/runner-images/issues/7734


Could this be in the stdlib

Seems like this could be something in the stdlib.  Have you thought about trying to get this in the Crystal Compiler?

Good question. ioctl(2) is mainly a *nix C function, where as Windows has a different function for performing ioctls on devices. The ioctl macros and codes are mostly OS specific. Crystal stdlib seems to have a policy of not exposing all of libc's functions, especially the "dangerous" or OS specific ones.


fix(sparkline): incorrect types for setData

Sparkline accepts two arguments in setData that are not covered by the current types, this PR fixes that.

Thanks @lucasbento 🙏

Thanks @lucasbento 🙏

Released as 4.8.21

Released as 4.8.21


Show available balance in asset selector when withdrawing

Story
As a user
I want to see balances when using the asset selector for withdrawals
So that I can more easily find the asset I'm looking for
Acceptance Criteria

[ ] I can see the balance of the general account next to each asset

Tasks

[x] Explore and sketch
[ ] Team and stakeholder review
[ ] Visual Design
[ ] Team review
[ ] Dev
[ ] test

Sketch
See exploration in the Miro board

Additional details / background info

Slack conversations:

https://vegaprotocol.slack.com/archives/C037STCKMGC/p1680102585845039
https://vegaprotocol.slack.com/archives/C037STCKMGC/p1680187258874979

Related to #3314

Assuming the ID is mostly used for differentiating assets with the same name, could we only show the ID when there are two assets with the same name?

I'd say it would be more useful to show the contract address (at least for now whilst we only deal with ERC20), but I wouldn't want to ever show only the contract address. Some combination of symbol (or name) with contract address (or truncated contracted address) would be best

@joellecharlotte, me and @mattrussell36 just met and agreed to go with concept H (embedded above) which preserves the contract address
Could you please work up a design for this?

Here are the designs + the Figma link ↳
These use DEPOSITS as the example but the pattern is the same for WITHDRAWELS.


Error : 0 : MessageId is too high

I used the sock5 proxy to connect.
my code:
TdApi.ProxyType proxy = new TdApi.ProxyTypeSocks5(proxyProp.username(), proxyProp.password());
TdApi.AddProxy addProxy = new TdApi.AddProxy(proxyProp.host(), proxyProp.port(), true, proxy);
 client.send(addProxy, result -> {
                logger.info("Telegram add proxy result: {}", !result.isError());
                result.error().ifPresent(e -> {
                    logger.info("Telegram add proxy error result: {}", e);
                });
            });

When my application starts, everything is normal.
But after a few minutes, it seemed like the connection was disconnected.
the error:
[ 2][t 4][1684218084.129693984][Session.cpp:628][#1][!Session:5:main]
Session connection with 0 pending requests was closed: [Error : 0 : MessageId is too high] Session:5:main::Connect::TCP::Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:50928]

Could you restart the app, set log verbosity level to 5, set log stream to a logStreamFile, wait when the issue is reproduced again and send the log to https://t.me/tdlib_bot?

Could you restart the app, set log verbosity level to 5, set log stream to a logStreamFile, wait when the issue is reproduced again and send the log to https://t.me/tdlib_bot?

yes,I have already sent it to tdlib_bot,it didn't reply to me

full log :
2023-05-16T17:18:35.966+08:00  INFO 2562442 --- [   Thread-11060] it.tdlight.TDLight                       : [ 3][t 3][1684228715.966884136][Session.cpp:846][#1][!Session:5:main][&net_query]	Mark as unknown [message_id:7233707411566812612][Query:[id:1703936][tl:0x03173d78][state:Query]]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11061] it.tdlight.TDLight                       : [ 3][t 3][1684228715.966988086][Session.cpp:504][#1][!Session:5:main]	Close session (external)
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11062] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967098236][NetQuery.h:326][#1][!Session:5:main][&net_query]	Receive error [Query:[id:1703936][tl:0x03173d78][state:Query]] [Error : 202 : ]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11063] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967188119][NetQuery.h:83][#1][!Session:5:main][&net_query]	Resend [Query:[id:1703936][tl:0x03173d78][state:Error][Error : 202 : ]]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11064] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967268228][NetQuery.cpp:27][#1][!Session:5:main][&net_query]	[Query:[id:1703936][tl:0x03173d78][state:Query]] [state:sent to main session multi proxy DcId{5}]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11065] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967362165][ConnectionCreator.cpp:607][#1][!ConnectionCreator][&connections]	Request connection for [client:0xe92c41ac] to DcId{5} [allow_media_only:false]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11066] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967453956][ConnectionCreator.cpp:816][#1][!ConnectionCreator][&connections]	In client_loop: [client:0xe92c41ac]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11067] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967535257][ConnectionCreator.cpp:990][#1][!ConnectionCreator][&connections]	[client:0xe92c41ac] set timeout in 3.198095
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11068] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967647075][NetQuery.cpp:27][#1][!SessionProxy:5:main][&net_query]	[Query:[id:1703936][tl:0x03173d78][state:Query]] [state:SessionProxy:5:main: sent to session]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11069] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967733144][Session.cpp:376][#1][!Session:5:main][&net_query]	Receive query [Query:[id:1703936][tl:0x03173d78][state:Query]]
2023-05-16T17:18:35.967+08:00  INFO 2562442 --- [   Thread-11070] it.tdlight.TDLight                       : [ 3][t 3][1684228715.967802286][NetQuery.cpp:27][#1][!Session:5:main][&net_query]	[Query:[id:1703936][tl:0x03173d78][state:Query]] [state:Session:5:main: pending]
2023-05-16T17:18:36.267+08:00  INFO 2562442 --- [   Thread-11071] it.tdlight.TDLight                       : [ 3][t 3][1684228716.267309188][ConfigManager.cpp:606][#1][!Recoverer][&config_recoverer]	On connecting false
2023-05-16T17:18:36.267+08:00  INFO 2562442 --- [   Thread-11072] it.tdlight.TDLight                       : [ 3][t 3][1684228716.267606019][ConfigManager.cpp:792][#1][!Recoverer][&config_recoverer]	Successfully connected in 1.047987 seconds
2023-05-16T17:18:36.267+08:00  INFO 2562442 --- [   Thread-11073] it.tdlight.TDLight                       : [ 3][t 3][1684228716.267747163][ConfigManager.cpp:867][#1][!Recoverer][&config_recoverer]	Wakeup never
2023-05-16T17:18:36.267+08:00  INFO 2562442 --- [   Thread-11074] it.tdlight.TDLight                       : [ 3][t 3][1684228716.267833232][Td.cpp:3996][#1][!Td][&td_requests]	Sending update: UpdateConnectionState {
  state = ConnectionStateConnectingToProxy {
  }
}
2023-05-16T17:18:36.267+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228716.267944097][Client.cpp:293][&td_requests]End to wait for updates, returning object 0 0x7fd7d8444c50
2023-05-16T17:18:36.268+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228716.267987966][Client.cpp:280][&td_requests]Begin to wait for updates with timeout 0.000000
2023-05-16T17:18:36.268+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228716.268037319][Client.cpp:293][&td_requests]End to wait for updates, returning object 0 (nil)
2023-05-16T17:18:36.268+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228716.268120050][Client.cpp:280][&td_requests]Begin to wait for updates with timeout 2.000000
2023-05-16T17:18:38.268+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228718.268876075][Client.cpp:293][&td_requests]End to wait for updates, returning object 0 (nil)
2023-05-16T17:18:38.269+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228718.268997907][Client.cpp:280][&td_requests]Begin to wait for updates with timeout 2.000000
2023-05-16T17:18:39.169+08:00  INFO 2562442 --- [   Thread-11075] it.tdlight.TDLight                       : [ 3][t 3][1684228719.168877124][ConnectionCreator.cpp:1021][#1][!ConnectionCreator][&connections]	[hash:0xe92c41ac] wakeup
2023-05-16T17:18:39.169+08:00  INFO 2562442 --- [   Thread-11076] it.tdlight.TDLight                       : [ 3][t 3][1684228719.169157981][ConnectionCreator.cpp:816][#1][!ConnectionCreator][&connections]	In client_loop: [client:0xe92c41ac]
2023-05-16T17:18:39.169+08:00  INFO 2562442 --- [   Thread-11077] it.tdlight.TDLight                       : [ 3][t 3][1684228719.169255018][ConnectionCreator.cpp:707][#1][!ConnectionCreator][&connections]	Create: Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5}
2023-05-16T17:18:39.169+08:00  INFO 2562442 --- [   Thread-11078] it.tdlight.TDLight                       : [ 3][t 3][1684228719.169805049][ConnectionCreator.cpp:719][#1][!ConnectionCreator][&connections]	Create new transparent proxy connection Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]
2023-05-16T17:18:39.169+08:00  INFO 2562442 --- [   Thread-11079] it.tdlight.TDLight                       : [ 3][t 3][1684228719.169922113][ConnectionCreator.cpp:765][#1][!ConnectionCreator][&connections]	Start Socks5: Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]
2023-05-16T17:18:39.170+08:00  INFO 2562442 --- [   Thread-11080] it.tdlight.TDLight                       : [ 3][t 3][1684228719.170036077][ConnectionCreator.cpp:990][#1][!ConnectionCreator][&connections]	[client:0xe92c41ac] set timeout in 0.999759
2023-05-16T17:18:39.170+08:00  INFO 2562442 --- [   Thread-11081] it.tdlight.TDLight                       : [ 3][t 3][1684228719.170433044][ConnectionCreator.cpp:976][#1][!ConnectionCreator][&connections]	Start check: Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890] without auth data
2023-05-16T17:18:39.170+08:00  INFO 2562442 --- [   Thread-11082] it.tdlight.TDLight                       : [ 3][t 3][1684228719.170649290][RawConnection.cpp:93][#1][!PingActor<Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]>]	Send handshake packet:
00000000 00000000 00000001 00000000 00000090 be7e8ef1 44500b28 a3450a6f f65ca029 27637f9c d992647a a32c5082 fbdeb1ad de492f48 7391b7cc 8e31cae5
634a7cca 0abf71f1 997e4c30 0f8f1803 5357c926 dcd07c47 2b3daae3 7e084194 6a00fe4e 35568dcf 13a09996 8992cf75 e5152c10 1d8bf432 199ad836 981f66d8
bd4dd6a2 f8260fbc 8bbb5e3c f0afc55f 78d3746e d673f4d9 6309e79d 1a1b26bf 14138472
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   Thread-11083] it.tdlight.TDLight                       : [ 3][t 3][1684228719.220943927][ConfigManager.cpp:606][#1][!Recoverer][&config_recoverer]	On connecting true
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   Thread-11084] it.tdlight.TDLight                       : [ 3][t 3][1684228719.221221208][ConfigManager.cpp:790][#1][!Recoverer][&config_recoverer]	Failed to connect for 0.000002 seconds
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   Thread-11085] it.tdlight.TDLight                       : [ 3][t 3][1684228719.221329927][ConfigManager.cpp:864][#1][!Recoverer][&config_recoverer]	Wakeup in 20.0s
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   Thread-11086] it.tdlight.TDLight                       : [ 3][t 3][1684228719.221409082][Td.cpp:3996][#1][!Td][&td_requests]	Sending update: UpdateConnectionState {
  state = ConnectionStateConnecting {
  }
}
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228719.221528053][Client.cpp:293][&td_requests]End to wait for updates, returning object 0 0x7fd7d8444620
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228719.221603155][Client.cpp:280][&td_requests]Begin to wait for updates with timeout 0.000000
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228719.221679210][Client.cpp:293][&td_requests]End to wait for updates, returning object 0 (nil)
2023-05-16T17:18:39.221+08:00  INFO 2562442 --- [   TDLib thread] it.tdlight.TDLight                       : [ 3][t 0][1684228719.221781015][Client.cpp:280][&td_requests]Begin to wait for updates with timeout 2.000000
2023-05-16T17:18:39.627+08:00  INFO 2562442 --- [   Thread-11087] it.tdlight.TDLight                       : [ 3][t 3][1684228719.627008199][RawConnection.cpp:93][#1][!PingActor<Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]>]	Send handshake packet:
00000000 00000000 00000001 00000000 00000030 be7e8ef1 5f8188f1 aaedd032 07f6e8b6 3b5722d6 49366c51 dcf0444f 951399d6 7dd525e9 ded9ff9c 2d393720
daea61a6
2023-05-16T17:18:39.756+08:00  INFO 2562442 --- [   Thread-11088] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756090879][ConnectionCreator.cpp:952][#1][!PingActor<Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]>][&connections]	Ready connection (checked) 0x7fd7d8198280 [rtt:128.8ms] Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]
2023-05-16T17:18:39.756+08:00  INFO 2562442 --- [   Thread-11089] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756418228][ConnectionCreator.cpp:1005][#1][!ConnectionCreator][&connections]	Add ready connection 0x7fd7d8198280 for [client:0xe92c41ac]
2023-05-16T17:18:39.756+08:00  INFO 2562442 --- [   Thread-11090] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756510019][ConnectionCreator.cpp:816][#1][!ConnectionCreator][&connections]	In client_loop: [client:0xe92c41ac]
2023-05-16T17:18:39.756+08:00  INFO 2562442 --- [   Thread-11091] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756627082][ConnectionCreator.cpp:832][#1][!ConnectionCreator][&connections]	Send to promise [connection:0x7fd7d8198280]
2023-05-16T17:18:39.756+08:00  INFO 2562442 --- [   Thread-11092] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756732940][Session.cpp:1294][#1][!Session:5:main]	Finished to open connection Session:5:main::Connect::TCP::Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]
2023-05-16T17:18:39.756+08:00  INFO 2562442 --- [   Thread-11093] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756855249][NetQuery.cpp:27][#1][!Session:5:main][&net_query]	[Query:[id:1703936][tl:0x03173d78][state:Query]] [state:Session:5:main: send to an MTProto connection]
2023-05-16T17:18:39.757+08:00  INFO 2562442 --- [   Thread-11094] it.tdlight.TDLight                       : [ 3][t 3][1684228719.756964206][Session.cpp:1165][#1][!Session:5:main][&net_query]	Send query to connection [Query:[id:1703936][tl:0x03173d78][state:Query]] [message_id:0x64634a94a2e0a670][invoke_after:{}]
2023-05-16T17:18:39.960+08:00  WARN 2562442 --- [   Thread-11095] it.tdlight.TDLight                       : [ 2][t 3][1684228719.959823131][SessionConnection.cpp:330][#1][!Session:5:main]	[session_id:0x0000000000000000] [msg_id:0x64634a94a2f8467c] [seq_no:0x00000002]: MessageId is too high. Session will be closed
2023-05-16T17:18:39.960+08:00  WARN 2562442 --- [   Thread-11096] it.tdlight.TDLight                       : [ 2][t 3][1684228719.960134029][Session.cpp:731][#1][!Session:5:main]	Session failed: [Error : 0 : MessageId is too high]
2023-05-16T17:18:39.960+08:00  WARN 2562442 --- [   Thread-11097] it.tdlight.TDLight                       : [ 2][t 3][1684228719.960247039][Session.cpp:269][#1][!SessionProxy:5:main]	Generate new session_id<PHONE_NUMBER>340580016 for auth key<PHONE_NUMBER>0799842090 for main DC5
2023-05-16T17:18:39.960+08:00  WARN 2562442 --- [   Thread-11098] it.tdlight.TDLight                       : [ 2][t 3][1684228719.960460186][Session.cpp:628][#1][!Session:5:main]	Session connection with 1 pending requests was closed: [Error : 0 : MessageId is too high] Session:5:main::Connect::TCP::Socks5 [<IP_ADDRESS>:7890] --> [<IP_ADDRESS>:443] to DcId{5} from [<IP_ADDRESS>:58890]

I need full log from app launch as a file.

yes,I have already sent it to tdlib_bot,and you can download the full log file at: log file

I need full log from app launch as a file.
yes,I have already sent it to tdlib_bot,and you can download the full log file at: log file

I need full log from app launch as a file.

yes,I have already sent it to tdlib_bot,and you can download the full log file at: log file

I need full log from app launch as a file.

I have already sent it to the tdlib_bot,the max verbosity level  is 5.

The latest TDLib version should correctly recover after such errors.


Only first 10k players taken

The database is about nearly 15k players wide, and the main players page only shows the "first 10 thousand players". A fix for it could be separately dumping bronze, then silver, then gold players. As no quality exceeds 10k players, taking them all should be seamless.

Hi @Ntonio36,
Sorry for the extremely late reply. You're right about this issue. I will try to fix it when I have time. :)

@Ntonio36,
Thanks for bringing up this issue - I would've assumed it was pulling all players if you hadn't. When I just counted, I got about 20K (the number should be lower since the last page probably doesn't have 48 players):
gold=99
silver=198
bronze=121
pagesize=48
pagesize * (gold + silver + bronze)
20064
If we wanted to pull all players, would we also need any other categories (Icons, etc.)?
Also, do you know how to get an official count? I'm not sure how accurate futhead is and I don't see any easy way to get any official counts from EA.

Hey @tkue.
To be fair, I'd personally expect Futhead to get full information from EA's database, so I don't believe there are "holes" or missing parts in their player catalog. I might be wrong, though, but if they really are the player database they claim being... There must not be any missing players out there at Futhead, so I'd personally consider them 100% complete.
Icons and other In-Forms are listed under their respective quality sections (>=75 ovr IFs are in Gold, >= 64 are in silver, etc. etc.), so it's definitely straightforward and definitely easy to completely pull all players.... or so I hope. But for your last question, I don't quite know if that's possible, knowing how silent EA is on many aspects of the game.


[SPARK-6209] Clean up connections in ExecutorClassLoader after failing to load classes

ExecutorClassLoader does not ensure proper cleanup of network connections that it opens. If it fails to load a class, it may leak partially-consumed InputStreams that are connected to the REPL's HTTP class server, causing that server to exhaust its thread pool, which can cause the entire job to hang.  See SPARK-6209 for more details, including a bug reproduction.
This patch fixes this issue by ensuring proper cleanup of these resources.  It also adds logging for unexpected error cases.
This class was renamed and heavily-refactored in Spark 1.3+, so I'll open a separate PR to fix this issue there.

Test build #28358 has started for   PR 4935 at commit cc685a8.

This patch merges cleanly.

/cc @pwendell

This actually turns out to be a much more subtle issue than I originally anticipated, since we might need to do other work to handle HttpUrlConnection's KeepAlive behavior: http://docs.oracle.com/javase/7/docs/technotes/guides/net/http-keepalive.html.

Test build #28358 has finished for   PR 4935 at commit cc685a8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28358/
Test PASSed.

I'm going to close this PR and re-open against master, since it looks like the conflicts shouldn't be too bad.

I've opened an updated PR against the master branch at #4944 and added a regression test (which was slightly non-trivial to write).


Update kerbalstuff URL

I'm sorry but I have to reject this.
The URL pointing only to the mod identifier will keep working in the future even if the mod is renamed, while this change makes it so that the link might break in the future.
Sorry, but thanks for contributing!

i've corrected the URL according to CKAN/Spec.md, because the mod wasn't updated for weeks


🚀 Feature: Enhance About Page UI

🔖 Feature description
The current About page is not properly designed, and the visibility of the word "DocsGPT" is insufficient, making it difficult for users to grasp the key features and usage of the application. This feature aims to redesign the About page for improved visibility and a more modern, user-friendly look.
🎤 Why is this feature needed ?
The About page is often the first point of contact for users to learn about DocsGPT. An improved UI will help convey important information more effectively and encourage users to explore the application further. In my use case, a more visually appealing design will enhance the user experience and retention.
✌ How do you aim to achieve this?
I plan to achieve this by:

Implementing a cleaner layout with appropriate spacing.
Using modern typography for better readability.
Incorporating consistent color schemes that align with the overall theme of the application.
Ensuring the design is responsive and user-friendly across devices.

🔄 Additional Information
Old About Page Screenshot:

New About Page Screenshot:

👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

Are you willing to submit PR?
Yes I am willing to submit a PR!

Hi @Ayushjhawar8
There is already an update in the queue, which will replace the about section.
Thanks.


Update index.ts

Would it be possible to implement a change similar to this idea? (perhaps as a separate strategy?)
Where instead of only having the option of having a range, it will have the tokenId and weight?
Perhaps a range or tokenID built-in as an option? { length: (end - start) || tokenId / step + 1) an so on?
Question # .
Changes proposed in this pull request:

Hello,
Thank you for the response!
Unfortunately, this does not provide the Strategy that I am looking to
utilize.
I need to be able to list individual Token ID's and each ID have a specific
weight instead of the strategy that you sent.
If you look at what I suggested in the request - would this be possible to
add?
Thank you once again in advance,
Nathan
On Sun, Feb 13, 2022 at 1:10 PM Chaitanya @.***> wrote:

@.**** requested changes on this pull request.
Hello @illLoomiNate https://github.com/illLoomiNate you can use
https://snapshot.org/#/strategy/erc721-with-tokenid-weighted for that :)
let me know if it doesn't work for you
—
Reply to this email directly, view it on GitHub
https://github.com/snapshot-labs/snapshot-strategies/pull/381#pullrequestreview-881027155,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHS2YBKFMDRQOCGSTGU6BGLU27XX5ANCNFSM5OIG37IQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

@illLoomiNate Oh I see what you are referring to, I think it better to pass an optional param (weights) to this strategy https://snapshot.org/#/strategy/erc20-balance-of-weighted and map weights to tokens, is it possible to create a new PR?

@ChaituVR This would work for the erc721 tokenid?
I would like to set ranges and then have the weight set to those ranges
Additionally weight that can be assigned to individual lists of erc721TokenIds as well
Just as I mentioned in the first comment and in the changes suggested here as well.
I think the changes I proposed should give a direct understanding of the main concept of the strategy
Thank you once again in advance!

@illLoomiNate Oh I see what you are referring to, I think it better to pass an optional param (weights) to this strategy https://snapshot.org/#/strategy/erc20-balance-of-weighted and map weights to tokens, is it possible to create a new PR?

Hello, Did you have an opportunity to check my latest message?

@illLoomiNate i didn't quite get what you are trying, you mean tokenIDs from 1 to tokenID ?

@ChaituVR
I just want to replace the range with tokenID as shown here - so we can have different tokenIDs that count as more votes

I don't quite understand it, Can you share an example with your contract and tokenIDs,, here for example your tokenID is 100, you want voting power from 1,100 ??

Or create a new PR with new strategy, with your contract and tokenIDs in examples.json. this strategy is being used by other spaces so can break that

Closing this as stale, feel free to reopen if needed


Language Config

Hi, how do we change the laguage on GRBL-Panel?
i install it on a French Windows install, but i want to have an English interface? any option to change?
Thanks

I think for now the best thing to try is to delete the fr directory or rename it. I am working on an installer, I will add language selection to the choices to make.

Thanks work perfectly with renaming the fr directory


[sfml] update to 2.6.0

Library name
sfml
New version number
2.6.0
Other information that may be useful (release notes, etc...)
https://github.com/SFML/SFML/releases/tag/2.6.0

I'm a maintainer for SFML so I can answer any questions you may have about what changed. As far as building SFML, little has changed. I do know that the arm64 patch is no longer needed but the other patch about dependencies is potentially still necessary.


adding knowledge university,Iraq-Erbil

knowledge university of Iraq, Erbil.
knu.edu.iq

@TheKurdishProgrammer First stage of verification passed, official domain is knu.edu.iq as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@philipto Any update regarding this?

Pull request merged. Thank you!


Problem with formatting Hash

Steps to reproduce
I hvae simple .psd1 like this.
#
# Module manifest for module 'PSPublishModule'
#
# Generated by: Przemyslaw Klys
#
# Generated on: 17.04.2019
#

@{

    # Script module or binary module file associated with this manifest.
    RootModule           = 'PSPublishModule.psm1'

    # Version number of this module.
    ModuleVersion        = '0.7.1'

    # Supported PSEditions
    CompatiblePSEditions = 'Desktop', 'Core'

    # ID used to uniquely identify this module
    GUID                 = 'eb76426a-1992-40a5-82cd-6480f883ef4d'

    # Author of this module
    Author               = 'Przemyslaw Klys'

    # Company or vendor of this module
    CompanyName          = 'Evotec'

    # Copyright statement for this module
    Copyright            = '(c) 2011 - 2019 Przemyslaw Klys. All rights reserved.'

    # Description of the functionality provided by this module
    Description          = 'Simple project allowing preparing, managing and publishing modules to PowerShellGallery'

    # Minimum version of the Windows PowerShell engine required by this module
    PowerShellVersion    = '5.1'

    # Name of the Windows PowerShell host required by this module
    # PowerShellHostName = ''

    # Minimum version of the Windows PowerShell host required by this module
    # PowerShellHostVersion = ''

    # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
    # DotNetFrameworkVersion = ''

    # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
    # CLRVersion = ''

    # Processor architecture (None, X86, Amd64) required by this module
    # ProcessorArchitecture = ''

    # Modules that must be imported into the global environment prior to importing this module
    # RequiredModules = @()

    # Assemblies that must be loaded prior to importing this module
    # RequiredAssemblies = @()

    # Script files (.ps1) that are run in the caller's environment prior to importing this module.
    # ScriptsToProcess = @()

    # Type files (.ps1xml) to be loaded when importing this module
    # TypesToProcess = @()

    # Format files (.ps1xml) to be loaded when importing this module
    # FormatsToProcess = @()

    # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
    # NestedModules = @()

    # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
    FunctionsToExport    = 'New-PrepareModule', 'Remove-Comments'

    # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
    CmdletsToExport      = @()

    # Variables to export from this module
    # VariablesToExport = @()

    # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
    AliasesToExport      = @()

    # DSC resources to export from this module
    # DscResourcesToExport = @()

    # List of all modules packaged with this module
    # ModuleList = @()

    # List of all files packaged with this module
    # FileList = @()

    # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
    PrivateData          = @{

        PSData = @{

            # Tags applied to this module. These help with module discovery in online galleries.
            Tags       = 'Windows', 'MacOS', 'Linux', 'Build', 'Module'

            # A URL to the license for this module.
            # LicenseUri = ''

            # A URL to the main website for this project.
            ProjectUri = 'https://github.com/EvotecIT/PSPublishModule'

            # A URL to an icon representing this module.
            IconUri    = 'https://evotec.xyz/wp-content/uploads/2019/02/PSPublishModule.png'

            # ReleaseNotes of this module
            # ReleaseNotes = ''

        } # End of PSData hashtable

    } # End of PrivateData hashtable

    # HelpInfo URI of this module
    # HelpInfoURI = ''

    # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
    # DefaultCommandPrefix = ''

}

I've run a command that strips white chars and comments and this gives me this:
@{RootModule = 'PSPublishModule.psm1'
    ModuleVersion = '0.7.1'
    CompatiblePSEditions = 'Desktop', 'Core'
    GUID = 'eb76426a-1992-40a5-82cd-6480f883ef4d'
    Author = 'Przemyslaw Klys'
    CompanyName = 'Evotec'
    Copyright = '(c) 2011 - 2019 Przemyslaw Klys. All rights reserved.'
    Description = 'Simple project allowing preparing, managing and publishing modules to PowerShellGallery'
    PowerShellVersion = '5.1'
    ScriptsToProcess = @()
    FunctionsToExport = 'New-PrepareModule', 'Remove-Comments'
    CmdletsToExport = @()
    AliasesToExport = @()
    PrivateData = @{PSData = @{Tags = 'Windows', 'MacOS', 'Linux', 'Build', 'Module'
            ProjectUri = 'https://github.com/EvotecIT/PSPublishModule'
            IconUri = 'https://evotec.xyz/wp-content/uploads/2019/02/PSPublishModule.png'}}}

And during runtime of formater:

If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17763.316
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.316
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }

1.17.1
1.18.0

writeErrorStream      : True
PSMessageDetails      :
Exception             : System.IndexOutOfRangeException: Index was outside the bounds of the array.
                           at Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.PlaceCloseBrace.GetIndentation(Token[] tokens, Int32 closeBracePos, Int32 openBracePos)
                           at Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.PlaceCloseBrace.GetCorrectionsForBraceShouldBeOnNewLine(Token[] tokens, Int32 closeBracePos, Int32 openBracePos,
                        String fileName)
                           at Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.PlaceCloseBrace.GetViolationForBraceShouldBeOnNewLine(Token[] tokens, Int32 closeBracePos, Int32 openBracePos, St
                        ring fileName)
                           at Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.PlaceCloseBrace.AnalyzeScript(Ast ast, String fileName)
                           at Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer.<>c__DisplayClass82_1.<AnalyzeSyntaxTree>b__2()
TargetObject          :
CategoryInfo          : InvalidOperation: (:) [Invoke-Formatter], IndexOutOfRangeException
FullyQualifiedErrorId : RULE_ERROR,Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands.InvokeFormatterCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at Format-Code, C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSPublishModule\Private\Format-PSM1.ps1: line 17
                        at Merge-Module, C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSPublishModule\Private\Merge-Module.ps1: line 80
                        at New-PrepareModule<Process>, C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSPublishModule\Public\New-PrepareModule.ps1: line 221
                        at <ScriptBlock>, C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSPublishModule\Publish\Manage-Module.ps1: line 143
PipelineIterationInfo : {0, 1}

Thanks, I can repro. This seems to be a bug from day 1 as the rule has not changed since 2017. The problem happens on this line where openBracePos is 0 when trying to close the outmost brace.

Great! Thank you. I can wait for a fix. Temporary I've disabled that rule. I only use comments/whitespace stripping for publishing modules (leaving only comments that are "help"). Rest of the comments/whitespace is stripped. So not really a big deal for me.

Ok, there is no need for whitespace trimming if you publish to the PSGallery or NuGet based feed like Azure Artifacts because a module gets downloaded/uploaded as a NuGet package, i.e. it gets compressed, therefore the trimming does not have much of an impact on the size anyway.

I do it for a bit different purpose. I actually clean up all my dev comments, old commented out code, new commented out code that is not yet ready and some other stuff that shouldn't be in code when publishing.
You can see the diff here:

https://www.powershellgallery.com/packages/PSWriteHTML/0.0.28/Content/PSWriteHTML.psm1 (3766 lines)
https://www.powershellgallery.com/packages/PSWriteHTML/0.0.30/Content/PSWriteHTML.psm1 (2192 lines)

Or here:

https://www.powershellgallery.com/packages/PSSharedGoods/0.0.69/Content/PSSharedGoods.psm1 (7560 lines)
https://www.powershellgallery.com/packages/PSSharedGoods/0.0.72/Content/PSSharedGoods.psm1 (5157 lines)

Functionality is the same, output much smaller, less junk. So I apply my code that strips down comments but while it does it strips down any formatting (including whitespaces). And then I bring back formatting/whitespaces that make code readable using your formatter.
If one wants to have original data all code is available on GitHub https://github.com/EvotecIT/PSWriteHTML with each function having a separate file. So this process is only used for publishing (merging into 1 file, cleaning up and so on). I believe it makes my modules a bit faster to load (in case of just merging it can take 12-15 seconds to load unmerged module vs 250ms for merged.

Bug is boiled down. It is due to the hashtable opening character @{ being the first token and the code resulting in a PSCloseBrace violation. Code path that creates this violation was looking at the token before the opening brace, which caused it to crash because it was the first token, I opened a PR to make it handle this edge case

Thank you!