[Do not merge] ssb test

last test concludes that H2 is the other culprit. even it if shows the data loader was successful. there's no columns returned from h2. we will not commit this test for CI, only enabled for performance testing later


FileNotFoundError: [Errno 2] No such file or directory: '0_gt_wavs'

Everytime I push model training button, I came out to this problem.
How can I solve this problem?
Traceback (most recent call last):
File "/home/naoki/.local/share/virtualenvs/min_pipenv-XR_P2WaS/lib/python3.8/site-packages/gradio/routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "/home/naoki/.local/share/virtualenvs/min_pipenv-XR_P2WaS/lib/python3.8/site-packages/gradio/blocks.py", line 1006, in process_api
result = await self.call_function(fn_index, inputs, iterator, request)
File "/home/naoki/.local/share/virtualenvs/min_pipenv-XR_P2WaS/lib/python3.8/site-packages/gradio/blocks.py", line 847, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/naoki/.local/share/virtualenvs/min_pipenv-XR_P2WaS/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/naoki/.local/share/virtualenvs/min_pipenv-XR_P2WaS/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/naoki/.local/share/virtualenvs/min_pipenv-XR_P2WaS/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "infer-web.py", line 792, in click_train
set([name.split(".")[0] for name in os.listdir(gt_wavs_dir)])
FileNotFoundError: [Errno 2] No such file or directory: '/home/naoki/Downloads/Retrieval-based-Voice-Conversion-WebUI/logs/test/0_gt_wavs'

Perhaps you should click on One click training

Does space exists on
(1)Your rvc root folder path
(2)Your logs/exp_name folder path

I have supported space now.
You can update RVC from github and try again, or modify the path without space.

@RVC-Boss Pls update colab


Various issues with tree icons (hidden page, deprecated, don't mark for completion)

Add new page, add hide or unmark optional property & check box... the icon doesn't appear in tree (this is only an issue for newly created pages - adding a hide page or unmark on existing pages works fine)

Add hide or unmark optional property to an existing page & check box. Then copy the page... the icons on the page you copied & newly created page disappear & won't reappear even with unchecking / checking box (this is only an issue for pages where optional properties have only just been added - if you add property, check box, refresh webpage & then copy the page, the icons show as expected)

When copying a page where the icons are already on tree (so add property, check box, refresh webpage, copy page), checking / unchecking the box or deleting the property on the newly created page will not will not add / removed icon on page... it's stuck there until page refresh. The icon for page that was copied remains working ok though.

Hidden icon:

There's an error when you try to delete the 'hide page' optional property that prevents it from being removed

Ah....
Whe a new node is created in the tree, the icons should be there as well, and should be hidden by default. That's not the case now.
I'll fix that. That should probably fix the first 3 items.
I'll investigate the last item.

@faycross I'm offline at the moment but hadn't noticed any of this so will test and report back asap

I think the last item is just because of a typo in the code (hiddenImg instead of hiddenIcon) but I'll leave it to you to sort @torinfo if you're looking at the rest of it :)

Hi Fay, yes, found and fixed the typo.
This is no fun at all.....
When you change things directly on the treenode using jquery and ID's, this is not replicated when you request the node using jstree.
Ok, no problem I thought. Just make sure to update the jstreenode as soon as you change something, but that doesn't work either, because it does some special things with the  tag, and so all the icones are multiplied!
Sigh. So I will fix it, but it will take a bit longer.


option to select the delay

It would be cool to have as launch argument a delay option. Seems like 500ms may be way too fast. Had multiple "Api rate limites", and seems like it's somewhat heavy to let it run on the background.

Seems like a very reasonable ask to me let me see what I can do :)

https://github.com/ianmarmour/nvidia-clerk/releases/tag/v1.6
Closing this now that the feature was added :)

Perfect ! Thank you


Running it Live

How would you go about using the tool to predict tomorrows price given a dataset. For instance if I have data on Facebook from 2017 until last friday (2017-10-12) could I predict the price for 2017-10-15 by running the scripts directly?

Same thing here,. if you find the answer please help me also thanks


fra install csdid not working: missing _gcsgvar.ado

Small issue; the following does not work:
. fra install csdid, replace
checking csdid consistency and verifying not already installed...
file https://friosavila.github.io/stpackages/csdid/_gcsgvar.ado not found
could not copy https://friosavila.github.io/stpackages/csdid/_gcsgvar.ado
(no action taken)
r(601);

The following works, however:
net install csdid, from(https://raw.githubusercontent.com/friosavila/stpackages/main) replace

This is my version on fra:
*! v0.01 Own Installer
program fra
        syntax [anything], [all replace force]
        local from "https://friosavila.github.io/stpackages"
        tokenize `anything'
        if "`1'`2'"==""  net from `from'
        else if !inlist("`1'","describe", "install", "get") display as error "`1' invalid subcommand"
        else net `1' `2', `all' `replace' from(`from')
        qui:net from http://www.stata.com/
end

Thank you very much!
This seems to be a bug with how github is set up.
What i ll be doing is changing fra "from" to the one you suggest.
Thanks!
On Tue, Jan 16, 2024 at 4:49 PM Marcelo R. Avila @.***>
wrote:

Small issue; the following does not work:
. fra install csdid, replace
checking csdid consistency and verifying not already installed...
file https://friosavila.github.io/stpackages/csdid/_gcsgvar.ado not found
could not copy https://friosavila.github.io/stpackages/csdid/_gcsgvar.ado
(no action taken)
r(601);
The following works, however:
net install csdid, from(https://raw.githubusercontent.com/friosavila/stpackages/main) replace
This is my version on fra:
*! v0.01 Own Installer
program fra
syntax [anything], [all replace force]
local from "https://friosavila.github.io/stpackages"
tokenize anything'         if "1'2'"==""  net from from'
else if !inlist("1'","describe", "install", "get") display as error "1' invalid subcommand"
else net 1' 2', all' replace' from(`from')
qui:net from http://www.stata.com/
end
—
Reply to this email directly, view it on GitHub
https://github.com/friosavila/stpackages/issues/5, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASZKKFQY274IQAB65LPMSCDYO3YVRAVCNFSM6AAAAABB5QMFX2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DKMBSGE3TKOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Make function len call len (from Python) if it exists

I've also added a couple of tests for the len function. Notably, it is still rather different from the len in Python: it does not throw errors for things that "do not have a length", like numbers, None or whatever. However, such fine-grained compatibility is not necessary. What is necessary, in my opinion, is to use __len__ when the object has it.

Looks fine to me!

Wow, thanks, this is some impressive speed :+1:
If you can remember of the top off your head, I would appreciate it if you explained the "special attributes" case: why would you need to count the "non-special" attributes of an object and return it as its length?


⚠ SceneTime has degraded performance

In be781b8, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1059 ms

Resolved: SceneTime performance has improved in 1a047b3 after 9 minutes.


refactor: list questionnaires

Fetch questionnaires using REST. This aims to avert the case where lforms couldn't render null returned by graphql client

Review Checklist

Summary*

[ ] fix: Bug fix for Add the items tackled here as checklists
[x] feat: Completed task
[ ] chore: Incomplete task

[ ] test: Sub-task 1

Structure*

[ ] The Pull Request has a proper title that conforms to our MR title standards
[ ] The Pull Request has one commit, and if there are more than one, they should be squashed
[ ] The commit should have a proper title and a short description
[ ] The commit must be signed off
[ ] Unused imports are not present
[ ] Dead code is not present
[ ] Ensure dry running library to confirm changes

Tests

[ ] Proper and high quality unit, integration and acceptance(if applicable) tests have been written
[ ] The coverage threshold should not be lowered

Sign off*

[ ] All comments have been resolved by the reviewers
[ ] Approved by Czar {replace_with_czar_name}
[ ] Signed off by second reviewer {replace_with_name}
[ ] Ensure all checks are done before merging :warning:
[ ] All PRs needs to be signed before merging :warning:

N/B:

Add a checklist if more than one item is done.
Add screenshots and/or images where necessary
Indicate any breakages caused in the UI :exclamation:
Where necessary, indicate which issue the Pull Request solves (Closes #)
Any new files are updated in the folder structure in the README

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-14 of 24 (41.67%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 83.066%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/clinical/presentation/rest/handlers.go
0
14
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
6720

Relevant Lines:
8090

💛  - Coveralls


Switch dependency: Maxwell -> Tesla

Coverage remained the same at 100.0% when pulling 8ade6efcd932f4da6dd35e390cf4b193315a0905 on tesla into fd7b347b0276f2b668f1060779c0a9b949bd7acf on master.


Fix IE11/Edge listbox interference bug

This PR fixes a weird edge case in IE/Edge where the listbox height gets stuck after it closes. This causes it to interfere with elements below it on the page. The closed listbox is no longer visible, but clicking in the rectangle where it had been unexpectedly re-opens it.

A little experimenting revealed that this only occurs when max-height and overflow properties are specified on the listbox.
[role=listbox] {
    max-height: 240px;
    overflow: auto;
}

So it’s not at all obvious, but use of these properties with the listbox element is probably common.

@dcmouyard can you review the change? Thanks.


”Bogdana” is listed in the drop-down menu

Description:
"Bogdana" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Bogdana" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Bogdana, VASLUI".


Paragraph Font Weight

Issue by atomgroomdesign from Wednesday Oct 07, 2015 at 15:25 GMT
Originally opened as https://github.com/donejs/donejs/issues/191

We have some user feedback that the font weight in the paragraph text is hard to read.  If we remove the anti-aliasing css, it becomes easier to read.  This points more toward font-weight, than the anti-aliasing property.
We should consider making it a bit bolder than it currently is.

Comment by moschel from Wednesday Oct 07, 2015 at 23:03 GMT

The font in the code samples is still very pixelated and hard to read. The fix you applied didn't affect that text.

Comment by atomgroomdesign from Thursday Oct 08, 2015 at 01:52 GMT

Fixed in https://github.com/donejs/donejs/issues/214

Comment by justinbmeyer from Thursday Oct 08, 2015 at 02:45 GMT

@moschel @atomgroomdesign what about making the font 16px instead of bold?
The reason is that if we were doing our code-highlighting right, JS keywords like function would probably be bold.  I'd like to reserve the ability to bold these in the future.  If 16px font looks readable, lets do that.

Comment by moschel from Thursday Oct 08, 2015 at 04:00 GMT

Yeah I didn't mean make it bold. Code blocks are harder to read now than they were before.
Remember when we first talked I showed you how just removing that antialiased property made code blocks noticeably more readable?
How they look after your change (can't distinguish syntax highlighting colors):

How they looked without your change, antialias property on (faded letters):

How they look without your change, and without the antialias property (a lot clearer):

Completed.


Subversion missing DLL

Subversion is broken, it requires msys-crypto-1.0.0.dll, but msys2 has msys-crypto-1.1.dll.
Actually there is msys-crypto-1.0.0.dll in original package, but after upgrade it's replaced with msys-crypto-1.1.dll.

Update all packages


RecyclerView Gone

I have implemented swipe to refresh and whenever i swipe from top 3 to 4 times the recyclerview will be gone the whole view become blank

Sometimes i got the below error and app will crash:-
UncaughtException: java.lang.OutOfMemoryError: Could not allocate JNI Env
at java.lang.Thread.nativeCreate(Native Method)
at java.lang.Thread.start(Thread.java:745)
at com.allattentionhere.autoplayvideos.AAH_CustomRecyclerView.playAvailableVideos(AAH_CustomRecyclerView.java:91)
at com.allattentionhere.autoplayvideos.AAH_CustomRecyclerView$1.onScrollStateChanged(AAH_CustomRecyclerView.java:76)
at android.support.v7.widget.RecyclerView.dispatchOnScrollStateChanged(RecyclerView.java:4655)
at android.support.v7.widget.RecyclerView.setScrollState(RecyclerView.java:1386)
at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4791)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:926)
at android.view.Choreographer.doCallbacks(Choreographer.java:735)
at android.view.Choreographer.doFrame(Choreographer.java:664)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:912)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)

For 1st problem, try resetting the adapter when swipe refresh, or even try removing all items from adapter list and adding them again on swipe refresh.
For 2nd problem, there could be many reasons for OutOfMemory errors, I could help more if you share some code reproducing the behaviour. Also could be just due to very large videos and low RAM on device.

thank you for the solution

I have used stopVideos() method in onPause() when i redirect from current activity to new activity, but the issue is video sound not stop when new activity started in some devices

I tested it on Moto E device and it worked well. However, I am calling recyclerView.stopVideos() in onStop()

ok i have one plus device with android version 7.0 and used the same method but still the sound play

ok i have one plus device with android version 7.0 and used the same method but still the sound play

I don't have a physical device with Android 7.0. However I have created another branch with name soundfix. Please pull that branch and try it.

I hope the issue is fixed, feel free to re-open this issue if it is not solved.


Bump revision to 3 for release 102.0.5005.61-3

The tag for 102.0.5005.61-2 did not include a proper revision bump, as such this version skips revision 2
This day really is exceptionally busy :sweat_smile:

Someone updating patches next time should remember to revert it to 1 :D


Make planner reusable

Planner should be re-usable so it can be re-used for FFT's of the same size

Add regression tests to make sure fft_64/fft_32 gives the same results as fft_64_with_opts_and_plan/fft_32_with_opts_and_plan

@Shnatsel I also added a criterion based benchmark based on these benchmarks. In addition, this new benchmark takes into account that Planner32/Planner64 are now re-usable.
I am thinking we can use criterion's BenchmarkGroup to add rust-fftw3 and RustFFT for comparison. Ideally, this would replace the current benchmarks.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@2df2f00). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage        ?   99.30%
=======================================
  Files           ?        8
  Lines           ?      868
  Branches        ?        0
=======================================
  Hits            ?      862
  Misses          ?        6
  Partials        ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Windows version of flutter application freeze after a period of time

Steps to reproduce
For the Windows version of the Flutter application, after running (without any user interaction) for a period of time, the application seems to 'freeze,' and clicking any button does not elicit any response.

run windows version application
without any user interaction

Expected results
after a period of time, click button can has response
Actual results
after a period of time, click button can has no response
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.19045.3570], locale en-US)
    • Flutter version 3.13.9 on channel stable at D:\flutter_windows_3.13.9-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (1 year, 1 month ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

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

[☠] Android toolchain - develop for Android devices (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X Exception: Android toolchain - develop for Android devices exceeded maximum allowed duration of 0:04:30.000000
    •

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.34)
    • Visual Studio at D:\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.34601.136
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2024.1)
    • Android Studio at D:\Android\Android Studio
    • 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.9+0--11185874)

[√] IntelliJ IDEA Community Edition (version 2023.3)
    • IntelliJ at D:\JetBrains\IntelliJ IDEA Community Edition 2023.3.7
    • 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

[!] Proxy Configuration
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[√] Connected device (4 available)
    • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86    • Android 9 (API 28) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19045.3570]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 131.0.6778.86
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 131.0.2903.70

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

@NicholasHwang
You are on old version of the framework. Current stable is 3.24.5, so I recommend to upgrade to latest stable and re-run your scenario to check if the issue still persist or not.
If yes, please provide us minimal code sample without third party package implementation that still shows the reported behavior.
I will close this for now, as the version you are on is old.


Refactor the calculation of $lastest_release & $latest_prererelease

Motivation
We need to:

Make sure the  latest_prerelease calculation select the latest by creation date, element in the response from the GitHub API:  See https://github.com/prefapp/action-deployment-dispatch/issues/22

Support the latest_release_vX,  latest_release_vX.Y format in the specification, to select the latest release in the major or major.minor lineage

Check: https://github.com/prefapp/action-deployment-dispatch/compare/v2...v2.1
See https://github.com/prefapp/action-deployment-dispatch/blob/e9423f3d559f15ede112bd4244e366141e8f86be/utils/ImagesCalculator.js
Acceptance criteria

[x] latest_prerelease obtained from the GitHub API makes sure that use the latest pre-release according to the creation date.
[x] Support for latest_release_vX,  latest_release_vX.Y format is added.
[x] Support for highest_release_vY, and highest_pre_release_vY
[x] #63

Closed as completed


Find zeroconf services on network

Can you provide an example how to find a bonjour service on the network. Using the code I am looking for example that would print the port number and ip or hostname of any service on the network named @"_some_service_of_type._tcp"
So far the documentation I have tried on the home page is not working

most likely you would need a device or service  that is broadcasting MDNS.  The  device/service would have a  name set. thats the name you want to add to your config and info.plist
example, my device is broadcasting mDNS with the name of _localctl so my plist would be
	<array>
		<string>_localctl._tcp.</string>
	</array>```

<img width="367" alt="Screen Shot 2020-10-23 at 11 48 58 PM" src="https://user-images.githubusercontent.com/5834998/97070102-7d7dd200-158a-11eb-838b-39d14c72441d.png">


gen_zig.py: add compile time branches for self-hosted support

This adds compile-time switches to have the generated code be compatible with both stage1 and self-hosted.
The asRange change has to do with the self-hosted compiler not passing structs/arrays by reference in all cases.
In debugging why the triangle example wasn't rendering, the GL state showed that the gpu-side buffer was filled with bad data (ie. not the verts specified in the source). Upon further inspection, even though the buffer data was being read from the text segment, it was being copied into an array on the stack inside asRange, and the ptr to that array was then being returned in the Range, and then the data on the stack was getting stomped on the way to the call to upload it to the GPU.
This does seem like a bug in the compiler at the moment. However, it also sounds like the language spec says that the compiler can either pass by value or by reference depending on what is optimal. So, even though it would likely be optimal to always pass by reference to asRange, to comply with the spec I think a pointer to the struct/array has to be passed to asRange.  https://github.com/ziglang/zig/wiki/Self-Hosted-Compiler-Upgrade-Guide#escaped-pointer-to-parameter seems to say that passing by pointer is the intended way.
This is a breaking change (I've updated the examples: https://github.com/floooh/sokol-zig/pull/26).

Thanks for all the work :)
So the meta.FnPtr() makes it compatible both with the new self-hosted syntax and the old 9.x compiler? If so very cool, because that would mean that there doesn't need to be a separate branch of the bindings for the self-hosted compiler until 10.0 is released).
I guess/hope the pass-by-value vs -reference won't be a problem in other places, like:
pub fn makeBuffer(desc: BufferDesc) Buffer {
    return sg_make_buffer(&desc);
}

...because that doesn't return any pointers to stack data(?).
I hope taking the address of a function argument will be allowed in the future though, and that the compiler instead produces an error when trying to return a pointer to stack data (this is also a dangerous trap in much simpler situations currently).
I'll need to tinker with the PR a bit before merging (especially try out the asRange() change). I'll do the merge probably some time next week.
Cheers!

Thanks for all the work :)
So the meta.FnPtr() makes it compatible both with the new self-hosted syntax and the old 9.x compiler? If so very cool, because that would mean that there doesn't need to be a separate branch of the bindings for the self-hosted compiler until 10.0 is released).

No problem, thanks for sokol and these bindings!
Yes, the idea behind meta.FnPtr is just to add on the *const  to the definition to comply with the new syntax rules. However, I didn't realize it hadn't made it to the release zips yet - I was working from zig master looking into the instancing stack overflow issue.

I guess/hope the pass-by-value vs -reference won't be a problem in other places, like:
pub fn makeBuffer(desc: BufferDesc) Buffer {
    return sg_make_buffer(&desc);
}

...because that doesn't return any pointers to stack data(?).

Yea, in this case it's fine because desc lives (either internally as a copy or a reference) until the end of makeBuffer, and sg_make_buffer doesn't save that pointer to the desc it was passed.

I hope taking the address of a function argument will be allowed in the future though (for instance in Odin this isn't allowed, which is a bit awkward because one needs to create an explicit copy of the function arg first), and that the compiler instead produces an error when trying to return a pointer to stack data (this is also a dangerous trap in much simpler situations currently).

I think it will always be allowed to take the address, but it seems there are plans to do escape analysis to make sure you don't return that address and create essentially a use-after-free. It's mentioned here: https://github.com/ziglang/zig/issues/3180#issuecomment-680259699. I believe it will also always be a const ptr when you take the address of a parameter.

I'll need to tinker with the PR a bit before merging (especially try out the asRange() change). I'll do the merge probably some time next week.
Cheers!
PS: ah ok, looks like it still needs a recent compiler for the meta.Fn() to work:
https://github.com/floooh/sokol/runs/8056635032?check_suite_focus=true
I need to think a bit about how to handle this, so that the sokol-zig main branch is compatible with 9.x until 10.x is released, and the code-gen changes are instead placed into a zig-10.x branch in the meantime... I'll probably need to keep your changes in a separate branch and update the bindings manually, otherwise the automatic bindings generation (via GH Actions) would update the sokol-zig repo with a version that doesn't work in the current stable zig version.

Yea this might be tricky since the mechanisms for switching on stage1 aren't there in 0.9.x. Makes sense to wait to go to the main branch. The examples do compile/run with -fstage1 on 0.10.x against the new bindings, conveniently passing arrays/structs as a pointer uses the previously existing pointer branch so that works fine. However, that still requires meta.FnPtr to exist.
Cheers!

...I'll look into merging this PR into a zig-0.10.0 branch now, and update the sokol-zig bindings manually (also in a separate zig-0.10.0 branch).

Ok, the content of this PR is now sitting in a branch zig-0.10.0, waiting until zig 0.10.0 officially releases. Once that happens I'll merge the zig-0.10.0 branch into master and hopefully this PR will then resolve automatically too. I have converted the PR to 'draft' so that I don't accidentially hit the merge button :)
Thanks for the PR!

Ok, and this one is merged too, just waiting for the bindings CI pipeline to verify that everything works as expected.


Unhandled Exception: Null check operator used on a null value

on country select i am getting following bug in console.
Refer the image

This i fixed
I was not given onCityChanged that was causing the issue.
Just add onCityChanged
I think there are required parameters so add it.


DLL naming question

Works only if using wininet.dll tested on Windows 11 24h2 AMD Ryzen 7 5700x3d + Radeon RX 6700XT. Generally something with asi loader.  Try newest Special K but no go.

You could try loading SO4Fix as a plug-in with Special K and just remove the asi loader DLL.


Errors when running ext-service-s4hc-suppliers-ui

Hi,
I did a clone and npm install of below cap project:
https://github.com/SAP-samples/cloud-cap-risk-management/tree/ext-service-s4hc-suppliers-ui
And immediately, I get below errors:
jhodel: cloud-cap-risk-management git@ext-service-s4hc-suppliers-ui > cds watch

cds serve all --with-mocks --in-memory?
watching: cds,csn,csv,ts,mjs,cjs,js,json,properties,edmx,xml,env,css,gif,html,jpg,png,svg...
live reload enabled for browsers
        _______________________

[ERROR] db/schema.cds:29:9-14: Element or variable “risks” has not been found (in entity:“sap.ui.riskmanagement.Suppliers”/element:“risks”)
[ERROR] db/schema.cds:29:17-28: No artifact has been found with name “Association” (in entity:“sap.ui.riskmanagement.Suppliers”/element:“risks”)
[ERROR] db/schema.cds:29:29-31: Extraneous TO, expecting ‘,’, ‘.’, ‘:’, ‘(’, ‘}’, ‘@’

jhodel: cloud-cap-risk-management git@ext-service-s4hc-suppliers-ui > cds version
@sap/cds: 5.5.4
@sap/cds-compiler: 2.7.0
@sap/cds-dk: 4.8.1
@sap/cds-foss: 3.0.0
@sap/xssec: 3.2.8
Node.js: v14.19.0
cpapp: 1.0.0
home: /Users/jhodel/Downloads/cloud-cap-risk-management/node_modules/@sap/cds

Upgrading to "@sap/cds": "^6.0.4" fixed the issue though.
Thanks and regards,
Jhodel

Hi @jcailan,
Thank you for reporting this issue, I will update the branches to use the latest version of CDS which is what we recommend. You would also need to install two new dependencies as described here.
Best regards,
Manju

Hi @manjuX ,
No problem and thanks for the advice!
Thanks and regards,
Jhodel

Hi @jcailan,
I updated the branches, here is the diff (link) for your reference.
I am closing the issue now. If you still have questions, feel free to open a new issue.
Best regards,
Manju


[Editor] Change the enableML pref for enableAltText (bug 1905923)

We want to use this pref to make a Nimbus experiment in the next weeks.

/botio integrationtest

It looks like the bots not responding is because of https://www.githubstatus.com/incidents/5yx1d67vq9hg, so once that is resolved they will either trigger at that time or we'll have to try again.

/botio integrationtest


E2: Add Vehicle Exit Point functionality

Simple. Add functionality of Vehicle Exit Point to Expression 2:
entity:setVehicleExitPos(vector): Sets exit position of a vehicle.
vector=entity:getVehicleExitPos(): Gets exit position of a vehicle.
React to this issue:
Vote 👍 to support; otherwise 👎
Consider independent E2s. I support :)

It probably is a good idea, The exit point controller does half of this functionality (if it still exists in wire-mod).
Unsure about if it should be left on by default though, maybe it would be better as an E2 extension?

The exit point controller does half of this functionality (if it still exists in wire-mod).

Yes, of course it exists.

Unsure about if it should be left on by default though, maybe it would be better as an E2 extension?

Given that Vehicle Exit Point exists, I see no reason why would it be made as (disabled) E2 extension in the first place, it is core Wire tool..

The only thing to take care of here is that the input vector must be validated/checked (such as the point must be inside of world)..

If it's possible with core wiremod it should be possible with e2, imo. I don't get this penchant for disabling things by default either.

The reasoning is that E2 is already too powerful. Some people think it's boring that you can do literally anything with one single entity.
It's also to stop bloating. Many other programming languages already suffer from this, and a good example is PHP. In PHP, there are even so many plugins and extensions that there are often several libraries that all do the exact same thing, and all of them are included and enabled by default (for example mysql, libraries). We don't want E2 to become as bloated as PHP.
In fact, some people argue that we should remove features from E2 to make it less powerful and less bloated, but we don't want to do that either because that may break everyone's old dupes and saved E2s.
A very good compromise to make everyone happy is to not add every feature ever to E2 just "because we can", and instead allow server owners to install plugins to make E2 as powerful as they want. This is what we've been doing for the past few years. Instead of adding a dozen random shitty features a week, we only add those that are objectively useful in every use case.
Whether this specific use case matches this description is debatable. I think it doesn't.

The reasoning is that E2 is already too powerful. Some people think it's boring that you can do literally anything with one single entity.

I don't think the proper response to something as opinionated as "e2 is too powerful" is to forgo things are objectively useful. Their arms aren't being twisted here, they don't have to use it.

in PHP, there are even so many plugins and extensions that there are often several libraries that all do the exact same thing

Okay, but this is about adding functionality that isn't there yet.

A very good compromise to make everyone happy is to not add every feature ever to E2 just "because we can", and instead allow server owners to install plugins to make E2 as powerful as they want.

Sounds good in theory, but in reality it just doesn't happen. What does happen is exactly what you said you want to prevent - 500 third party extensions that all do the same thing but with differing functions. You never know what will work where.

I don't think the proper response to something as opinionated as "e2 is too powerful" is to forgo things that are objectively useful. Their arms aren't being twisted here, they don't have to use it.

That argument doesn't work for all servers. For example, take a combat server where the goal is to build tanks and stuff to kill each other. What if they want to play capture the flag with their tanks? Having essentially player setpos (exit point - even if it's distance limited) would be kinda op since people would just teleport to the flag and back again.
Personally, I don't really care about this, but other people do, so I have to think about that as well.
Maybe we could add a way to make it easier to block any function you want in E2, like it already is with tools via admin mods, but is that a good idea? That would mean E2 on different servers would probably be even more different than it already is (and that's the argument Syranide gave against adding such functionality).

Okay, but this is about adding functionality that isn't there yet.

Yes, exactly. Your point?

Sounds good in theory, but in reality it just doesn't happen. What does happen is exactly what you said you want to prevent - 500 third party extensions that all do the same thing but with differing functions. You never know what will work where.

No, what I want to prevent is this happening to the official wire repo. If admins want to do it to themselves then it's their funeral.
As I said earlier, we could make it easier to block arbitrary functions and then go crazy and add everything ever, but it seems like that would make you upset as well because then you'll definitely never know what works where. Applyforce will be blocked. setMass will be blocked. Find functions will be blocked. And so on (Of course, it's already possible to do this, it's just harder so not many servers bother). See? The solution that makes the least amount of people upset is the one we are already using. At least now you can be reasonably sure that the server will have the default set of functions.
Again, if we do add a way to block arbitrary functions, personally I wouldn't mind because I only play on a few select servers anyway. I'm basing my arguments here from what other people tell me, and forming a compromise, not from what I think.

What if they want to play capture the flag with their tanks? Having essentially player setpos (exit point - even if it's distance limited) would be kinda op since people would just teleport to the flag and back again.

Do you realize a thing then?
They can use Vehicle Exit Point still (unless they limited it, in which case they should have modified wire or written some code already, so they will also have to modify E2).
Ok, lets say I do this as a new E2 core extension (enabled by default obviously). Admins/Owners will just have to simply disable it via menu then, just like they should have for Vehicle Exit Point (also this itself doesn't have menu yet).. problem solved?

Since you have just said one "game idea". What I usually do, is provide "anti-cheat" for E2 games, like the one you have described. With my anti-cheat in place (doesn't require PP, it uses data-signals), it is so simple to detect "cheaters", that is a player who uses Vehicle Exit Point (either E2 or wire entity).
So, it boils down to the matter of do we really need this as E2 core extension?

Do you realize a thing then?
They can use Vehicle Exit Point still (unless they limited it, in which case they should have modified wire or written some code already, so they will also have to modify E2).

I already talked about this in my previous comment, about 4 lines down from the line you quoted. Any self-respecting admin mod these days has the ability to limit individual tools.

Since you have just said one "game idea". What I usually do, is provide "anti-cheat" for E2 games, like the one you have described. With my anti-cheat in place (doesn't require PP, it uses data-signals), it is so simple to detect "cheaters", that is a player who uses Vehicle Exit Point (either E2 or wire entity).

oookay? Seems like a waste of server resources to use E2 to detect these things, since E2 uses way the fuck more than plain lua. but sure whatever

So, it boils down to the matter of do we really need this as E2 core extension?

correct, this is the question

Generally speaking, I support continuing adding functions to the E2 core, as many server admins don't care or don't bother with configuring Wiremod correctly (yet many people in those servers seem to use it). Having to ask an admin to add an E2 extension - and the admin actually doing it - takes a significant amount of time. Otherwise, the number of serious Wiremod servers loaded with all the extensions you want and with admins who actually care about configuring Wiremod is in very limited supply.
However, this extension is not one that should be added to core, because it covers an edge case that seems to give more opportunities for exploitation than genuine application. With this extension, you can basically teleport to any position in the map you want - and what if you mess up your coordinates or decide to use this to trap people? The RP and non-sandbox people won't seem too happy and will be more pressured to remove E2 (or even Wiremod altogether!) if they have not already.

The RP and non-sandbox people won't seem too happy and will be more pressured to remove E2 (or even Wiremod altogether!) if they have not already.

 We pretend it doesn't exist. But yeah all your points are correct

With this extension, you can basically teleport to any position in the map you want

You are very wrong there. Don't make the judge until you see the code. For your information: I have made it co-operate with "wire_pod_exit_distance" ConVar.
I am working on this, PR is in progress.. I am changing it around a bit. I will provide 2 PRs here, one without E2 extension and another with E2 extension.

Dead. I do still have a backup of the repository on my old hard drive tho.. I don't know if I have enough motivation to ditch this. RIP...


Implement test filtering by name

Fixes Issue
Fixes https://github.com/Hyperfoil/Horreum/issues/1412
Changes proposed
The main purpose of this change was to add a name filtering on AllTests page.
As part of this new feature, I had chance to optimize, clean and refactor all tables trying to remove code duplication as much as possible.
Client-side:

[x] Rename Table to CustomTable to differentiate with the Patternfly one
[x] Use patternfly 5 tables, rather than raw tables
[x] Reduce number of internal calls to the backend when changing sorting (it was calling the same endpoint two times, thus refreshing the UI two times in a row)
[x] Performing server-side ordering on AllTests page (in prod it is performing client-side ordering, which is actually a page-isolated ordering)
[x] Fix Runs ordering by Datasets size (there was wrong accessor)
[x] Removed patternfly react-deprecated Dropdowns for all table columns, e.g., watching and actions
[x] Moved pagination component inside the CustomTable itself to avoid duplication

Server-side:

[x] Added new query parameter named name on TestSummary endpoint
[x] Added test on that method

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.

Below you can find some of the changes, but I'd encourage you to give it a try locally as the changes impacted all places where a Table was/is used:
Filter by name:

Improved a little bit the dataset comparison by wrapping it into a PageSection:

The only doubt I have is whether we want to add the filtering on the Schemas as well (this would be appreciated, see https://github.com/Hyperfoil/Horreum/issues/1198). I know that all changes regarding the schemas have been put on hold, but I am not expecting huge effort to extend this mechanism to the Schema entities (especially considering that we don't know when we can start the schema refactoring). wdyt @johnaohara ?

The only doubt I have is whether we want to add the filtering on the Schemas as well (this would be appreciated, see #1198). I know that all changes regarding the schemas have been put on hold, but I am not expecting huge effort to extend this mechanism to the Schema entities (especially considering that we don't know when we can start the schema refactoring). wdyt @johnaohara ?

Lets implement Schema name filtering in a separate PR

@lampajr please can you squash commits?

@lampajr please can you squash commits?

Squashed and applied all your suggestions!


[feat] Add the number badge to the comment icon

Description
This PR adds the feature of showing the number badge to the comment icon
Fixes #154
Type of change

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
This has been tested manually. On opening any play the correct comment count should be displayed.
eg. On opening, React-Gradients play it shows 1
Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Hi @sudipkundu999
Please correct the build error

@sudipkundu999 Thanks for fixing the build.. However the comment system breaks now

Visit Preview

Please test it out from the preview build: https://react-play-git-fork-sudipkundu999-issue-154-reactplayio.vercel.app/

Visit Preview

Please test it out from the preview build: https://react-play-git-fork-sudipkundu999-issue-154-reactplayio.vercel.app/

Hold on @sudipkundu999
I have found one Giscus env variable was wrongly set on the preview build.. I have now corrected and triggered a build. We both will test on it once it is complete.

https://react-play-git-fork-sudipkundu999-issue-154-reactplayio.vercel.app/

Ok commenting cowrks now as I have updated the env correctly..
However the count doesn't work due to the CORS policy on the URL you are tying.

I remember, other contributor also faced the similar issue. Please check how to fix it.


IList methods do not throw exceptions for fixed size arrays

Instead of throwing NotSupportedException:

IList.Insert does nothing
IList.Add does nothing and returns -1
IList.Remove removes an element
IList.RemoveAt throws TypeError: list.System$Collections$IList$removeAt is not a function at Function.IsIList
IList.Clear assigns null to existing elements

Steps To Reproduce
https://deck.net/30cb3c32279b4fbe587048a8aa63b975
https://dotnetfiddle.net/AtaSgF
public class Program
{
    public static void Main()
    {
        var arr = new int[] { 1, 2, 3 };
        var ilist = (IList)arr;

        try
        {
            ilist.Insert(0, 0);
            Console.WriteLine("No Exception");
        }
        catch (Exception ex)
        {
            Console.WriteLine("[Error]: " + ex.Message);
        }
    }
}

Expected Result
Console output:
[Error]: Collection was of a fixed size.

Actual Result
Console output:
No Exception

See also

[#3583] IList.IsFixedSize returns incorrect result

After the fix, the fix also applied for #3585 implies in an incorrect exception message for the test case presented here.

Fixed the fix, and the fix for the fix. So, all working. And the correction will make it to the next Bridge release (see milestone).


Help

[x] I have carefully read the README file and haven't managed to resolve my issue.

[x] I have searched the issues of this repo and believe that this is not a duplicate.

[x] I am running the latest version of KickThemOut.

OS name & version: Ubuntu 18.04.02 LTS

Python version: 3.6

Kamene version: 3.0.0

Nmap version: 7.60

Link of Gist:

Description: Tried to run sudo python3 kickthemout.py, Was working earlier on but now just does nothing and asks me to manually enter ip and mac address. Program then fails to work.

Nevermind I did a complete reinstall of ubuntu and it seemed to have worked

Nevermind, did a complete reinstall of Ubuntu 18.04.02 and it began working.


Ideas for trimming the resulting library

When you create a plugin, and do not want to extend at runtime, maybe we could trim the fat?
Some directional ideas:
             //                 "-Xlinker", "-mark_dead_strippable_dylib",
             //                 // This one is just to experiment for now
             //                 // Probably need to try the -why_live SYMBOL
             //                 "-Xlinker", "-dead_strip_dylibs",
             //                 "-Xlinker", "-why_live",
             //                 "-Xlinker", "_$s10SwiftGodot013AnimationNodeC0C8PlayModeOMf"

See #555 that tracks this properly.


Proposed changes for Morning session

⚠ Issue 1

I strongly suggest you use absolute paths in your href's i.e. ./file_name as it's even easier to link to files that are outside your file folder structure.
I can see a nested nav menu inside another nav menu. It would be better if a nav menu was by itself since a portfolio website can only have a single nav bar.
In your CSS file, I found a commented-out piece of code. I think it's better to practice to get rid of commented-out code when pushing code to your main Github repo. This helps in improving code security and it makes your code more readable.
I can also see that the stylesheet linters are failing. For security purposes and good design, it would be better if all the html/css Linters passed.

All task was completed. Thanks for the Correction and contributions


btf: Allow referencing an enum value to pull in enum definition

It's useful to be able to reference an enum value to have bpftrace pull
in the enum definition from BTF. This is especially useful for anonymous
enums which cannot be correctly referenced.

This PR depends on #1268 and #1269. Will rebase away all but the last commit when the previous ones are in.

nice result of that refactoring you did before, I don't see any problem


Static code analysis for Phoenix (Sobelow)

"AS an OS developer,
I WANT to build security into our development and deployment processes,
SO THAT security vulnerabilities are addressed each time we update the OS software.
Acceptance Criteria:

Implement Continuously Integrated code analysis tool for all phoenix apps which performs checks for things like
** Insecure configuration
** Cross-Site Scripting
** SQL injection
** Command injection
** Code execution
** Directory traversal
** Unsafe serialization
Configuration of new security checks can be pulled in automatically (e.g. the library can be pulled in as latest)
Write cards to fix any problems and enable automatic build failing when complete.

Technical Notes:

Andi, Discovery-Streams and Discovery-api
It would be optimal if this tool was configurable to opt in or out of specific checks.

Note, this came from the pre-groomed list of cards, from meetings with Warner, Johnson, Jessie, Ben B and Rob.
06-24-19: Migrated from SMRT-1341"

Duplicate of a card completed before migration - closing


bug: pin functionality is not working

@hkirat it was always working but only when the content (pin , copy  , delete etc ) were clicked , but i have fixed that small issue .

@hkirat It is working for me, in the current code the admin can only pin one comment if they try to pin another comment while there is already one pinned comment, the existing pinned comment gets unpinned and the new one gets pinned

@hkirat It is working for me, in the current code the admin can only pin one comment if they try to pin another comment while there is already one pinned comment, the existing pinned comment gets unpinned and the new one gets pinned

Yeah , working the same but if you click the item other than the content of the item(pin, delete etc) then it will just close the dialog .

@hkirat It is working for me, in the current code the admin can only pin one comment if they try to pin another comment while there is already one pinned comment, the existing pinned comment gets unpinned and the new one gets pinned

Yeah , working the same but if you click the item other than the content of the item(pin, delete etc) then it will just close the dialog .

Yeah i just saw that now


what changes would we need to do if we used our own dataset?

Thanks for the awesome explanation. Could you tell me which changes we need before training the model on our data?

Hello,
Thanks for the appreciation. I apologize that should have been part of the README , I have updated it now.
Can you take a look - https://github.com/explainingai-code/DDPM-Pytorch/blob/main/README.md#training-on-your-own-images and let me know in case you face any issues

thanks for the modification in the repo for training the model on custom dataset. however i am facing this issue when i triad  the model on my own data. my dataset with the name of ultrasound256CH1 contain train and test images. all the images have 256*256 size, channel 1.

Can you tell me the im_path value you used in the config ?
And also the directory structure of your dataset. Is it $REPO_ROOT/ultrasound256CH1/train/*.png ?

Can you tell me the im_path value you used in the config ? And also the directory structure of your dataset. Is it $REPO_ROOT/ultrasound256CH1/train/*.png ?
The error basically means that the code wasn't able to find any png files in the location it was searching.

yes the dataset is in the repo root, still getting this error, kindly how can i solve it.

Got it. Create a subfolder 'images' inside train directory and put all training png files in there.
So $REPO_ROOT/ultrasound256CH1/train/images/*.png
Leave the config as it is to point to "ultrasound256CH1/train" .
Can you try that and let me know if it works?

yes i tried, unfortunately it does not work.

Can you print the directory and path the code is searching at https://github.com/explainingai-code/DDPM-Pytorch/blob/main/dataset/mnist_dataset.py#L40 and share that.
print(d_name, os.path.join(im_path, d_name, '*.{}'.format(self.im_ext)))
Also comment line https://github.com/explainingai-code/DDPM-Pytorch/blob/main/dataset/mnist_dataset.py#L42

that error has been resolved. that error was occurring  because of the arrangement of the dataset. i created 5 classes of the different images for the train data and used "data/train/" as a path and its worked.
now encountering this error

that error has been resolved. that error was occurring because of the arrangement of the dataset. i created 5 classes of the different images for the train data and used "data/train/" as a path and its worked.
now encountering this error:

You are training on cpu as of now right ?
Also can you confirm if your conda environment has python3.8 and have the requirements installed as mentioned in https://github.com/explainingai-code/DDPM-Pytorch/tree/main?tab=readme-ov-file#quickstart

hi sir, i kept the batch size 10, just want to run for 40 epochs and the total images are only 828. could you pleases tell me why the model required so heavy computational power(memory) and how can i handle this issue?
RuntimeError: CUDA out of memory. Tried to allocate 640.00 GiB (GPU 0; 14.75 GiB total capacity; 2.16 GiB already allocated; 11.63 GiB free; 2.17 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF.

Its because the images are 256x256 and by default the model config does downsampling only twice.
Few things you can try to ensure you are able to train.

Resize the images to 64x64 in the loader and train diffusion model on these 64x64 images
Have all three down blocks to downsample by placing down_sample : [True, True, True] in the config
Try with  num_mid_layers : 1 in the config

I think that should reduce the model size considerably.

Thanks, the model works very well i trained on my datasets.
I would request you to add a few more things to the repo for better results and comparative analytical analysis between the original and the generated images like classifier free guidance, exponential moving average, IS and FID score.  looking forward to your outstanding and easy implementation!

Yes, I wanted to have this repo as a intro to diffusion which is why didn't want to add those and leave this as a bare minimum diffusion repo. I do plan to create a stable diffusion repo which should have some of these incorporated. Once that is done I will try to put the parts you mentioned here as well (if I am able to do that without adding too much complexity to the current implementation ).

Hello,
I made all the relevant changes mentioned in the readme and in this thread but after my images are loaded I get an AttributeError.

Hello @thatdev6 , this code expects the path to have png files. But seems like thats not the case for the path you have provided. Is it npy file?
Cause In that case you would have to change this line

Hello @thatdev6 , this code expects the path to have png files. But seems like thats not the case for the path you have provided. Is it npy file? Cause In that case you would have to change this line

No my path has png files

Are you using the same code or have you made some modifications ? Your list at the end of dataset initialization is a list of numpy.ndarray objects(according to the error), which cannot be because the dataset class during initialization just fetches the filenames.

Ok so i changed that line and also had to change the im channels to 3, but the model doesnt train. Do you think this issue is related to the filepath issue mentioned above

Are you using the same code or have you made some modifications ? Your list at the end of dataset initialization is a list of numpy.ndarray objects(according to the error), which cannot be because the dataset class during initialization just fetches the filenames.

Yes, I modified the loader function to load and downsample my images. They are rectangular and have a jpg format
I figured out my mistake and it has corrected
This is how modified the loader function

I also changed the im channels to 3, Now I get a runtime error while training

Before converting to tensor by any chance did you forget to convert the numpy arrays from HxWx3 to 3xWxH ?

Before converting to tensor by any chance did you forget to convert the numpy arrays from HxWx3 to 3xWxH ?

How would i do that?

I also modified the sample function for rectangular images

I dont think the 3xwxh is an issue because the error says that your image shapes are 3xWxh so thats fine. But I think your path does not have all same size images. Some images are 3264x2448 and some are 2448x3264 .
Can you check this.

I dont think the 3xwxh is an issue because the error says that your image shapes are 3xWxh so thats fine. But I think your path does not have all same size images. Some images are 3264x2448 and some are 2448x3264 . Can you check this.

Yes, I think your right so the solution would be to downsample all of them to 64x64?

Yes center square crop of (2448x2448) and then resize to 64x64.

Yes center square crop of (2448x2448) and then resize to 64x64.

Around 600 images

These are changes i made to the loader and getitem function, I assume there is no problem here but for some reason the training gets interrupted (^C)

Couple of things. Move the image reading to the data loader get_item method just like the code in repo. Simply collect the filenames from their. You can do the cropping and resize also in get_item method.
Secondly can you check why its printing "Found 19 images" when actually it should be 600.

Couple of things. Move the image reading to the data loader get_item method just like the code in repo. Simply collect the filenames from load_images method and nothing else. You can do the cropping and resize also in get_item method. Secondly can you check why its printing "Found 19 images" when actually it should be 600.

Okay so first of all i should leave the loader function as it is just modify for the jpg images, secondly i should do the image formatting in the get item function
It says found 19 images because at the moment i have only uploaded a subset of the dataset, It was quite annoying to wait for the images to load only to encounter an error in training

I guess i have encountered the final boss

I have sampled down my images to 64x64 and also have the changes you mentioned to the previous person before me but still  am running out of memory
Any suggestion?

Reduce the batch size to 16. That should work I think.

Reduce the batch size to 16. That should work I think.

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 4.00 GiB. GPU 0 has a total capacity of 14.75 GiB of which 2.31 GiB is free. Process 85462 has 12.44 GiB memory in use. Of the allocated memory 9.43 GiB is allocated by PyTorch, and 2.87 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

Reduce the batch size to 16. That should work I think.

It started to train on batch size 4

I cannot generate the results

I have also tried changing my dataset, the new data set had square images of size 128x128. Yet i encountered the same runtime error while generating the pictures

Whats the shape of xt that you get here and noisy_im here ?

Whats the shape of xt that you get here and noisy_im here ?

I was able to solve this one out. I had to reshape the tensors. But I do have a question will the reshaping affect my results?

after training on the complete dataset this is my output(x0)

I dont think you would need to do any reshaping. Can you just let me know the shapes of those two tensors? They should be of the same shape.
These results are after how many epochs of training ?

I dont think you would need to do any reshaping. Can you just let me know the shapes of those two tensors? They should be of the same shape. These results are after how many epochs of training ?

After 40 epochs of training, okay I am posting the shapes

Whats the shape of xt that you get here and noisy_im here ?

Shape of noisy_im: torch.Size([4, 3, 64, 64])
Shape of xt: torch.Size([100, 3, 28, 28])

So if you set xt as 100x3x64x64, you are saying you get an error?

So if you set xt as 100x3x64x64, you are saying you get an error?

I didnt explicitly set it this from the unmodified code where i get the error when i start generating

This was being it as 100x3x28x28 because the config has im_size=28 and the code was for training on mnist(28x28).
It will be the same shape as your noisy images during training, so for your case xt should be number of samplesx3x64x64

This was being it as 100x3x28x28 because the config has im_size=28 and the code was for training on mnist(28x28). It will be the same shape as your noisy images during training, so for your case xt should be number of samplesx3x64x64

okay that makes sense but I dont understand it my sample size is different han the configured sample size so do i have to change the configuration as at the momment i am generating 1oo samples after  my reshaping but i should be generating 4. did i get that right?
also does the reshaping affect my results?

You can generate how many samples you wish, you would not need any reshaping anywhere.
Assuming you have trained your diffusion model on images of size 3x64x64.
Then xt during sampling should be Nx3x64x64 where N is the number of samples you want.
Can you clarify where/why you require reshaping? Maybe I am misunderstanding something.

I cannot generate the results

after i had trained my model and got to generation the code showed me this output, after debugging i saw that the sizes in the unet file were indeed different so i made the following chanages

after this i got another error leading me to the linear scheduler file and there were to some size mismatches so i made the following changes

after i this i could generate the images and they full of noise, so at the moment i am training on BW images to see if i get better results

Okay, I would suggest to remove all the resize portions that you added in both these places, the could should work without any of these. If its not then their might be some other issue but no resize is required anywhere other than dataset class.
After you have made changes in data loader to resize the images(assuming its WxH )
You should train the model on 3xWxH and sample with xt being Nx3xWxH

The BW images generated the same result this is at x0

Okay, I would suggest to remove all the resize portions that you added in both these places, the could should work without any of these. If its not then their might be some other issue but no resize is required anywhere other than dataset class. After you have made changes in data loader to resize the images(assuming its WxH ) You should train the model on 3xWxH and sample with xt being Nx3xWxH

Okay, so firstly remove all the modifications in the unet and linear scheduler, but then how would i resolve the errors while generating?

For images of different sizes, you would continue to do what you were already doing in your dataset class. That is centre crop and resize to 64x64.
Then train your model on these 64x64 images and generate an image with xt as 64x64.
To avoid any confusion you can also change the im_size here to 64(instead of 28).
So basically the only change from the repo code that you should need to do is that centre cropping.

For images of different sizes, you would continue to do what you were already doing in your dataset class. That is centre crop and resize to 64x64. Then train your model on these 64x64 images and generate an image with xt as 64x64. To avoid any confusion you can also change the im_size here to 64(instead of 28).
So basically the only change from the repo code that you should need to do is that centre cropping. You dont need to actually train a model to test this, just run the sampling script on a randomly initialized model and see if it still throws an error. If it does just share it here and I will take a look.

Okay i will get back to you with that, also should i change the im channels to 3 for rgb pictures?

For images of different sizes, you would continue to do what you were already doing in your dataset class. That is centre crop and resize to 64x64. Then train your model on these 64x64 images and generate an image with xt as 64x64. To avoid any confusion you can also change the im_size here to 64(instead of 28).
So basically the only change from the repo code that you should need to do is that centre cropping. You dont need to actually train a model to test this, just run the sampling script on a randomly initialized model and see if it still throws an error. If it does just share it here and I will take a look.

Okay so I was able to get outputs now without changing anything except the changing im size and im channels in config and data loader function.
But do you know the reason i am getting such noisy outputs? . Currently batch size is 4 and epochs is 50

This is actually fine. When I was also training on an rgb dataset , I first used to get these outputs, so more training should lead to actual outputs(close to dataset images) ultimately.
In these generation results, when you see x0_400/500 were they closer to your actual dataset images?
Also did you end up training for more epochs? Did the outputs improve?

When you say continous training, how would I achieve that, doesn't the model overwrite itself, I am actually using the free resources of Google CoLab for training so how could I save my progress and train multiple times for better results.

I mean train it for more epochs like 200 epochs.

I mean train it for more epochs like 200 epochs.

Okay so multiple epochs, also do you think the reduced batch size is effecting results?

Thats something you would have to experiment with and tune but I am assuming you are anyway limited by compute and 4 is the max you can go ?

Yes 4 is the highest I can go

Yes 4 is the highest I can go, I will obviously need help in tuning the model parameters for better results so I will keep you updated.
Thank you so much for the help in the mean time.

Is there any way i can save my progress while training, what i want to do is say train up to 130 epochs stop my training and then continue training from 130 epochs again?

this is my result after 100 epochs on batch 6

Why are the generated outputs getting so dark, shouldnt they start to mimic the actual images at some point

This is actually fine. When I was also training on an rgb dataset , I first used to get these outputs, so more training should lead to actual outputs(close to dataset images) ultimately. In these generation results, when you see x0_400/500 were they closer to your actual dataset images? Also did you end up training for more epochs? Did the outputs improve?

This is at x0_500

And this is at x0_999

for reference these are some dataset images

I would also like to mention that as of now my training time per epoch is 40s so to train 100 epochs it took me a little over an hour, I remember in your yt video you trained your model for around 3 hours on 60 epochs, so my dataset might also be a limiting factor over here(257 images after split)
Let me know what think of this conclusion, also how would you update the model params to get better results

->Is there any way i can save my progress while training, what i want to do is say train up to 130 epochs stop my training and then continue training from 130 epochs again?
For resuming training, this should be already happening when the code is loading the checkpoint here So all you would need to do is after 130 epochs, download the checkpoint and before running the next 130 epochs, simply place this downloaded checkpoint in the right path.
->so my dataset might also be a limiting factor over here(257 images after split).
Yes 250 images are very less, the number that I gave was for training mnist, 60000 images of 28x28 on NvidiaV100, where I trained for ~50 epochs with batch size 64, so which means about 50000 steps. With 250 images and batch size 6, effectively that means 40 steps in one epoch so even after 100 epochs thats actually just 4000 steps.
I would suggest doing the following things:

If you can get more data then that would definitely help.
Continue training for longer if by analyzing the x0-x999 images you are continuing to see improvement in models generation capabilities.
Use augmentations, flipping , and even cropping, based on your images, I am assuming your goal is to generate images with those cracks, so you could take multiple crops from the same images like below

So

->Is there any way i can save my progress while training, what i want to do is say train up to 130 epochs stop my training and then continue training from 130 epochs again? For resuming training, this should be already happening when the code is loading the checkpoint here So all you would need to do is after 130 epochs, download the checkpoint and before running the next 130 epochs, simply place this downloaded checkpoint in the right path.

Are the checkpoints saved in the .pth file? So I would have to transfer that file before starting training then

Yes download the .pth file after one iteration of training, and put it back in the necessary path before starting the second iteration.

Okay, I work on the suggestions, in your opinion what is the better alternative
Opting for a larger dataset with images from different sources and sizes
Or a the same images cropped to form a larger dataset

I would say a larger dataset is beneficial and then using cropping you can further increase the images that diffusion model gets to see during training.

these are my images after crop and resize in the data loader function are these okay?, i think they have lost a lot of quality
Also i do i have a larger dataset around 45k images but the images in it are to inconsistent in every manner size, quality
so what effect will my my current crop in data loader function will have on images which are not 3264 x 2448 and Size: 2448 x 3264

For the 45K images, my guess is that the centre crop and resize to 64x64 should handle the inconsistencies in size(I dont know how inconsistent they are in quality). But if you have 45K iamges, I would say why not try with that just to see how best of a output quality you get from ddpm.

Yes that is the goal right, But training those images will take a considerate amount of time and if the output is still noisy, all the time spent will have been wasted

For the 45K images, my guess is that the centre crop and resize to 64x64 should handle the inconsistencies in size(I dont know how inconsistent they are in quality). But if you have 45K iamges, I would say why not try with that just to see how good of an output quality you get from ddpm.

Yes diffusion models require decent amount of data to train so unless you throw in more compute power, I dont see any other way to reduce the time.
The single color outputs are normal to occur during the training process(as I mentioned it happened during my training as well). And I would suggest to not compare based on epochs, 100 epochs on a dataset of 200 is not the same as 100 epochs on a dataset of 50000 images. Rather use the number of steps/iterations that has happened in your training, in your case its just 5K steps(compared to the 80K steps that I used in the video). I dont think you need as many steps as that cause you have lesser variation in your dataset but still just wanted to give a perspective.

Yes diffusion models require decent amount of data to train so unless you throw in more compute power, I dont see any other way to reduce the time. The single color outputs are normal to occur during the training process(as I mentioned it happened during my training as well). And I would suggest to not compare based on epochs, 100 epochs on a dataset of 200 is not the same as 100 epochs on a dataset of 50000 images. Rather use the number of steps/iterations that has happened in your training, in your case its just 5K steps(compared to the 80K steps that I used in the video). I dont think you need as many steps as that cause you have lesser variation in your dataset but still just wanted to give a perspective.

I am finally starting to see results on the 257 image dataset after 400 epochs of training. I am assuming there are always going to be noisy images in the generated batch even if i train on the 45k images for around 500 epochs.
Also is there a way I can rescale the generated images into a higher resolution after generation.

Great. I dont think that assumption is correct, once your model has converged(looks like that point maybe somewhere around 1000 epochs) it will not have these noisy images at all. And with 45K images around after 200 epochs you will most likely be able to see decent outputs(obv you will have to experiment to assert that).
For higher resolution, you can try with pre-trained super resolution models(just searching on the web should give you some models and you can test them to see how good of a result you are getting with that.
Or you can go the stable diffusion route by first training autoencoder to convert from 256x256 to 32x32, training diffusion models on 32x32 images, generating latent 32x32 images at sampling and then decoding them to 256x256 using autoencoder. But that would require training multiple(diffusion and autoencoder) models.

Hello its me again
I have a question, can this model generate images based on prompts, for example say I prompt to generate an image with snow and cracks, is this achievable?

hello, i have a question with my model
i  want to train on my data with the config params like that

and my image is in jpg format. I have tried another methods like Dataparallel but it doesn't work.
so please help me with this

Yeah, can you try with 64x64 . In config set im_size as 64 and in dataset class's getitem method, resize the image to 64x64.
Can you see if that gets rid of the error ?

i have tried with 64x64 and it worked. but i want to train with the shape 128x128 because of my study. let me introduce about my study and can you give me some essential suggests, please?
i have a dataset with the image in 150x150 image, and i have a blured images with the motion blur and i want to use DDPM model to restore the image the the highest quality. so i want to train my model with the shape 128x128 or 256x256 to suit my data shape. so i have some questions that:

if i devided my image (for example 128x128) into 64x64 parts and train with this 64x64 part, so when i used this trained model with the shape 128x128, does it work good?
i've tried many model like GANs but the results didn't good, so now i try with the DDPM and may be the next stable diffusion, can you give me some must try models for my study?
thank you

If your images are from a dataset(or match a dataset) that has a super resolution model available, then you can train DDPM on 64x64 images and then use that super resolution model checkpoint to get 128x128 image. Or you can train a super resolution model yourself.
The second option is like you said to try with LDM, so then your trained auto-encoder will take care of converting 256x256 images to 64x64 latents(as well as converting 64x64 generated latents to 256x256). And diffusion model will need to be trained on the smaller, 64x64 latent images.

oh yes, i see, thank you so much

i have another question that, if my data is about motion blur or exposure blur, so if i only use the original code for this blur, does it  work? or i must train the model with adding more noise like motion blur and light blur rather than only gaussian noise?

@dangdinh17 , apologies for the late reply. But I have responded to your issue on Stable Diffusion repo. Do take a look at the repo mentioned in that reply - https://github.com/explainingai-code/StableDiffusion-PyTorch/issues/21#issuecomment-2248046225 . I think that implementation does exactly what you need.

@dangdinh17 Hey, just dont allow the network to compute attentions on resolution 128. Only in lower resolution. This should solve your memory issues.


Terminal/Logs viewers should resize responsively with the viewport

currently these panes do not resize with the viewport, causing information to be lost or unnecessarily wrapped.

fixed in recent commit


Dataset Builder

Your dataset builder is a great idea. There are multiple distinct datasets that I currently have to scrape using regex keywords. I think one can probably create tiny little templates around it.
Executive Compensation Details:
Comprehensive data on salaries, bonuses, stock options, and other compensation elements for top executives across companies.
You might have to have a separate one for options as it is quite specific.
Employee Benefit Plans: Details on retirement plans, health benefits, and other employee compensation schemes.
Mergers and Acquisitions (M&A) Activities: Information on M&A deals, including deal terms.
There are many others to include here, but thought I will keep it shorter

Hey @firmai, very useful issue. If you have more ideas, I'm happy to hear them.
Btw - I should be releasing an always up to date parsed SEC archive this month. Once that is up, I'll build the always up to date alternative datasets on top of it.


ANSYS/PyAnsys version management

From Costas Vogiatzis at Honeywell (Phoenix):
As we are starting to use PyAnsys for Methods work we are trying to determine the best way to support multiple ANSYS versions. For context, most of PyAnsys Methods work so far involves only MAPDL. We are using PyAnsys to read RST/RTH results and to a lesser extent drive MAPDL. Python literacy among ANSYS users is low so we are wrapping PyAnsys functionality in MATLAB code so users can perform these operations from within MATLAB without using Python/PyAnsys directly. These utilities are distributed as part of a larger, general purpose MATLAB library that I maintain.
We typically have users using releases going back up to 3-4 years and we also have archived data that go back even more. Depending on ANSYS version, users would need different PyAnsys module versions and possibly different Python versions. Often times the same user would need to work with multiple ANSYS versions depending on project. Managing dependencies for different ANSYS versions can be done with virtual environments and tools like pyenv for multiple Python versions. However that becomes too complex for a casual ANSYS user: users would need to be guided through Python and module installation and virtual environment use. Also, managing the environments is somewhat fragile because of version conflicts depending on what else the user has installed on that box.
This will be an issue with deployment of PyAnsys based utilities. The concern is that it will be complex for end users to manage and they will not work reliably. We would like to understand how ANSYS envisions multiple versions of ANSYS+PyAnsys would be managed on a single computer in a robust way. Ideally we would like everything relating to PyAnsys to be included in the MAPDL installation so users would not need to manage that.
A related issue is that per the docs the legacy RST reader will be phased out. However DPF does not seem to support older ANSYS versions. That will be an issue if we transition tools to PyAnsys and then find that we cannot use them with some earlier ANSYS result. We would like to understand what tool version can read what MAPDL result file version.
Regards,
Costas Vogiatzis
Aero & Mechanical Sciences
Honeywell Aerospace

Excellent points. I'm pulling information from internal shareholders and we're formulating a response. However, a few points I'd like to make first:

It would be awesome to be able to MATLAB directly with a package hosted in our https://github.com/ansys organization as a semi-supported package that we also upload to the MATLAB file exchange. This isn't the first time a customer has used MATLAB with PyAnsys
"A related issue is that per the docs the legacy RST reader will be phased out. However DPF does not seem to support older ANSYS versions."  That does indeed need to be addressed, and if this is a customer request, we need to determine the best bast forward.

Hi @agrishin
The topics you are mentioning here are very interesting. I will drop my 2 cents with regard PyMAPDL perspective.

Matlab support. We had some requests about this, not sure how trivial will be to expose PyAnsys libraries to MAPDL. I guess it should be possible: https://www.mathworks.com/help/matlab/call-python-libraries.html

Regarding versions support. In PyMAPDL, we are aiming to have only one version of the python library, meaning that the latest version of PyMAPDL should work with any given Ansys version.  In that sense, the compatibility problems should be reduced. I believe the rest of PyAnsys libraries follow a similar approach. Documentation is another story.

Regarding documentation versioning. This is an on-going project and @akaszynski  can probably give you more information. But I believe after finished we will have different versions of MAPDL documentation available online. In my opinion, and this is not yet fully agreed/decided, PyMAPDL documentation will reflect all MAPDL versions by using notes, warnings, deprecation messages, etc. Check the following links:

https://numpydoc.readthedocs.io/en/latest/format.html#deprecation-warning
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-versionadded

But this is my opinion on a topic that it is still developing. It might change later. The easier will be probably have different documentation versions and the user needs to choose the correct one.

Managing multiple Ansys versions + PyAnsys. Because of the 'version support' point, I guess it should not be very difficult to manage different Ansys version with only one PyAnsys (PyMAPDL) library version. Furthermore, in PyMAPDL now you can choose your executable using an environment variable: https://github.com/pyansys/pymapdl/pull/1741

About PyAnsys end user complexity. I understand what you mean. For new Python users, some of the python nuances (i.e. virtual environments) seem complex. I don't think there are easy solutions for this. At end, it is how Python is built and we cannot change that much into this. We already shipped a python environment with Ansys installation, but still the user needs to activate it and properly use it. It might still be complex enough for some users. I think we should still work a bit more on this, but there are some limitations difficult to overcome.

Regarding legacy reader and DPF. DPF is shipped with last Ansys installer versions, but I believe it supports most of the available RST versions. @rlagha can confirm/deny this.

We will probably discuss it internally in the coming weeks. We shall let you know if some interesting points are raised in these internal meetings. Please ping us again in couple of weeks if we haven't get back to you.


Fork and Clone a repository

I have added a python script to fork and then clone a repository in Github.

Please reference the issue which was assigned to you. :)


How to train new language

Hello
I'm trying to train tesseract on Mongolian language but it said that "Error opening data file /content/tessdata/eng.traineddata". There is mon.traineddata in /content/tessdata folder.
Is it possible to train with renaming mon.trainneddata to eng.trainneddata?
command:
make training MODEL_NAME=mon
mon-ground-truth folder:
0.png
0.gt.txt
......

Read the documentation, follow instructions and use tesseract user forum for asking questions.


[objc] Enable class name customization via RegisterAttribute

As a library creator, I want to enable fine grained control over the public API that I present so that my users find my library intuitive and easy to use. One aspect of this is conforming to naming conventions in the objc/Cocoa community. Xamarin.iOS's RegisterAttribute provides a natural vehicle for this, objcgen just needs to honor it.

I duplicate filed this here:
https://github.com/mono/Embeddinator-4000/issues/612
A rough impl draft was here: https://github.com/mono/Embeddinator-4000/pull/366


Lightweight sink connector faces some error after initial load and then truncates all tables

I'm trying sync data from RDS Mysql. I used the sink-connector-lightweight.
It created the tables and started syncing all the data. But once it was done it threw the following error
clickhouse-sink-connector-lt-1  | 2024-09-04 17:34:47.833 ERROR - Error during binlog processing. Last offset stored = null, binlog reader near position = /4
clickhouse-sink-connector-lt-1  | 2024-09-04 17:34:47.850 ERROR - Producer failure
clickhouse-sink-connector-lt-1  | 2024-09-04 17:34:48.055 ERROR - Error parsing precision, scale : columnName`state`
clickhouse-sink-connector-lt-1  | 2024-09-04 17:34:51.088 ERROR - Error parsing precision, scale : columnName`support_email`

I'm not sure what the issue is. Am I doing something wrong to see this error?

This was the issue. thanks!!

Hello everyone,
I have the same problem, I would like to know if there is a way to recover the binglog so that the sink connector can complete the process. I am using Aurora Serverless Mysql.
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.241 INFO  - Snapshot - Final stage
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.241 INFO  - Snapshot completed
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.241 INFO  - Snapshot ended with SnapshotResult [status=COMPLETED, offset=BinlogOffsetContext{sourceInfoSchema=Schema{io.debezium.connector.mysql.Source:STRUCT}, sourceInfo=BinlogSourceInfo{currentGtid='null', currentBinlogFilename='mysql-bin-changelog.000053', currentBinlogPosition=90509983, currentRowNumber=0, serverId=0, sourceTime=2024-09-26T08:25:47Z, threadId=-1, currentQuery='null', tableIds=[], databaseName=''}, snapshotCompleted=true, transactionContext=TransactionContext [currentTransactionId=null, perTableEventCount={}, totalEventCount=0], restartGtidSet='e5eafe0e-1211-3aa5-b34b-3c9583e98979:1-2184075', currentGtidSet='e5eafe0e-1211-3aa5-b34b-3c9583e98979:1-2184075', restartBinlogFilename='mysql-bin-changelog.000053', restartBinlogPosition=90509983, restartRowsToSkip=0, restartEventsToSkip=0, currentEventLengthInBytes=0, inTransaction=false, transactionId='null', incrementalSnapshotContext=IncrementalSnapshotContext [windowOpened=false, chunkEndPosition=null, dataCollectionsToSnapshot=[], lastEventKeySent=null, maximumKey=null]}]

clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.525 INFO  - Connected to binlog at , starting at BinlogOffsetContext{sourceInfoSchema=Schema{io.debezium.connector.mysql.Source:STRUCT}, sourceInfo=BinlogSourceInfo{currentGtid='null', currentBinlogFilename='mysql-bin-changelog.000053', currentBinlogPosition=90509983, currentRowNumber=0, serverId=0, sourceTime=2024-09-26T08:25:47Z, threadId=-1, currentQuery='null', tableIds=[], databaseName=''}, snapshotCompleted=true, transactionContext=TransactionContext [currentTransactionId=null, perTableEventCount={}, totalEventCount=0], restartGtidSet='e5eafe0e-1211-3aa5-b34b-3c9583e98979:1-2184075', currentGtidSet='e5eafe0e-1211-3aa5-b34b-3c9583e98979:1-2184075', restartBinlogFilename='mysql-bin-changelog.000053', restartBinlogPosition=90509983, restartRowsToSkip=0, restartEventsToSkip=0, currentEventLengthInBytes=0, inTransaction=false, transactionId='null', incrementalSnapshotContext=IncrementalSnapshotContext [windowOpened=false, chunkEndPosition=null, dataCollectionsToSnapshot=[], lastEventKeySent=null, maximumKey=null]}
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.526 INFO  - Waiting for keepalive thread to start
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.526 INFO  - Creating thread debezium-mysqlconnector-embeddedconnector-binlog-client
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.532 ERROR - Error during binlog processing. Last offset stored = null, binlog reader near position = /4
clickhouse-sink-connector-lt-1  | Sep 26, 2024 8:25:50 AM com.github.shyiko.mysql.binlog.BinaryLogClient$5 run
clickhouse-sink-connector-lt-1  | INFO: threadExecutor is shut down, terminating keepalive thread
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.533 INFO  - threadExecutor is shut down, terminating keepalive thread
clickhouse-sink-connector-lt-1  | 2024-09-26 08:25:50.534 ERROR - Producer failure
clickhouse-sink-connector-lt-1  | io.debezium.DebeziumException: Cannot replicate because the source purged required binary logs. Replicate the missing transactions from elsewhere, or provision a new replica from backup. Consider increasing the source's binary log expiration period. The GTID set sent by the replica is 'e5eafe0e-1211-3aa5-b34b-3c9583e98979:1-2184075', and the missing transactions are 'e5eafe0e-1211-3aa5-b34b-3c9583e98979:2184076-2789502' Error code: 1236; SQLSTATE: HY000.
clickhouse-sink-connector-lt-1  |       at io.debezium.connector.binlog.BinlogStreamingChangeEventSource.wrap(BinlogStreamingChangeEventSource.java:1190) ~[app.jar:?]
clickhouse-sink-connector-lt-1  |       at io.debezium.connector.binlog.BinlogStreamingChangeEventSource$ReaderThreadLifecycleListener.onCommunicationFailure(BinlogStreamingChangeEventSource.java:1235) [app.jar:?]
clickhouse-sink-connector-lt-1  |       at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:1101) [app.jar:?]
clickhouse-sink-connector-lt-1  |       at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:653) [app.jar:?]
clickhouse-sink-connector-lt-1  |       at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:954) [app.jar:?]
clickhouse-sink-connector-lt-1  |       at java.lang.Thread.run(Thread.java:833) [?:?]
clickhouse-sink-connector-lt-1  | Caused by: com.github.shyiko.mysql.binlog.network.ServerException: Cannot replicate because the source purged required binary logs. Replicate the missing transactions from elsewhere, or provision a new replica from backup. Consider increasing the source's binary log expiration period. The GTID set sent by the replica is 'e5eafe0e-1211-3aa5-b34b-3c9583e98979:1-2184075', and the missing transactions are 'e5eafe0e-1211-3aa5-b34b-3c9583e98979:2184076-2789502'
clickhouse-sink-connector-lt-1  |       at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:1065) ~[app.jar:?]

Thanks!


Bogo Sort | Haskell

Bogo Sort in Haskell
I will provide a bogo sort algorithm, implemented in Haskell. Mostly to show how to tackle randomness and loops in a purely functional language.
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] Other language

Self Check

Ask for issue assignment before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Happy Coding,

Please assign this issue to me. :)

Closing this, as Haskell apparently does not have a random generator in standard library. I'll try to implement it in Python instead, as it has randomness in std. Created a new issue for this.


fix(whitelist): remove the whitelist from annoations if its empty

This removes the unnecessary warnings from router logs
WARNING: Field "router.deis.io/whitelist" value "" does not satisfy constraint /^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))?(\s*,\s*)?)+$/ -- skipping this field and using default value "[]".

Current coverage is 87.02% (diff: 75.00%)

Merging #1060 into master will decrease coverage by 0.02%

@@             master      #1060   diff @@
==========================================
  Files            42         42
  Lines          3619       3621     +2
  Methods           0          0
  Messages          0          0
  Branches        612        613     +1
==========================================
+ Hits           3150       3151     +1
  Misses          309        309
- Partials        160        161     +1

Powered by Codecov. Last update 8d287b9...8782775


Feature Request: default save folder

When saving a capturefor the first time after starting RenderDoc, the Save As dialog defaults to the Capture Executable directory. Given that I prefer to save my captures in a less volatile location, I have to navigate to a completely different folder every time I do a new capture.
Could we get an option for specifying a default folder for saving captures to?

Good point, I hadn't thought of that! I think by default it was just using whichever directory windows picks for the save dialog, which is probably whichever directory was last browsed to. For lack of another better default I've left that alone, but I've also added an option to the settings menu to choose a default directory for your captures.

I just got 0.31 and the default works great for File->Save Log, but it doesn't work on the Save option when you right-click a capture from the "captures collected" list (what's a better name for that?). Once I open a capture and then save it, the right-click Save option does start using the default.
In addition, this seems to force the save dialog to always go to the folder set in preferences. I'm used to having the option as a 'default' but all saves after that would default to the last folder you saved to. This behavior is exactly how it worked before this version.
As I was writing this, I found that I can't even un-set the new option to test w/ it disabled :/
For reference, the reason I asked for this is because in my workflow. I have a root folder that I save my captures under, but each task/bug I work on goes into a different folder under that folder.

Thanks for the feedback. The inconsistent behaviour between the save options was just me forgetting that there's two different save dialogs (some of the log handling is shared between windows but not that one apparently). I can fix that easily enough.
Also you should have been able to set it back to blank to go back to the old behaviour, but it seems like that doesn't work properly, I'll fix that too. In the meantime you can manually edit %APPDATA%\renderdoc\UI.config and erase the contents of <DefaultCaptureSaveDirectory>.
As to the behaviour you want though, I'm not sure that's entirely possible to do :(. As far as I'm aware the windows built-in file dialog has two modes - one where you specify the directory, and one where you leave it blank and then it goes to the windows default behaviour, which it seems is the one where it picks up whichever folder was last browsed to by a file dialog.
I'm worried that even if it was feasible, there will then be someone who wants the opposite behaviour - ie. always picking the same folder rather than sometimes picking the folder from the settings and sometimes from previous browsing.

There doesn't seem to be a built-in way to do what you're after. I found that a reasonable compromise was to just remember whether or not a capture had been saved, and if so use that directory instead of the one in the settings window. It'll remain sticky until the UI is closed, it'll default back to the settings-specified directory next time you launch.
I think this should now do what you're after. Please take a look at a nightly build after today to see if it behaves as you expect. If so, I'll leave it as-is and hopefully no-one will want a slightly different variant on that behaviour :).

Apologies for the quite late response. I tried again with 0.32 and it's definitely looking like what I was after!


Error on landing

https://i.imgur.com/333OrKd.png

Can't reproduce the issue on current released version. Need more details.

018e2aa0-bd8d-9d49-4c04-f10473d09766 is a r2modman code for all the mods i use.
I use advanced company for landing speed edits afaik.

Makes beehives have 0 value.

Closing due to not being able to reproduce this issue on latest release and lack of comments saying they are also having the same issue.
If the issue persists, make another issue where you post the logs file of when this happens and what mods are being used when this happened.