whereRaw query unable to work with parameter or array binding

Environment
Knex version: 0.17.3
Database + version: MySQL 5.7.3
OS: linux/amd64
Bug

I am getting an error on knex 'src/raw.js' line 138 when trying to use the whereRaw

The bug here is that the expectedBindings are not counted properly as well as the index leading to the error

Error message: "Expected 1 bindings, saw 0"

Reduced test code:

knex.table('rides').whereRaw('user_id = ? AND completed = ? AND YEAR(created_at) >= ? AND YEAR(created_at) <= ? AND total_cost <=> deposit', ["30fb73d0-9e3d-11e9-bd80-3741ce1df8fb", 1, 2018, 2019]).select('id', 'total_cost', 'driver_id')
.then(function (rows) {
    // code here...
});

Missing / erroneus documentation
Send issue to documentation repo, or fix it and send PR https://github.com/knex/documentation

Cannot reproduce: https://runkit.com/embed/gmfkad4x2ec0
Here is a way how to get that error https://runkit.com/embed/gmfkad4x2ec0

I know i specified that the knex version was 0.17.3 however your runkit setup uses the latest (v0.18.2) version.

So its working for you with 0.18 🤔 Im pretty sure there has not been any changes to bindings code since 0.14 or ecen earlier...


feat(crane): add prefix routing & stripping

Two things here:

added path routing implementation to crane
fix for crane's domain generation

Codecov Report
Patch coverage: 50.61% and project coverage change: +0.13% :tada:

Comparison is base (28f96ff) 25.88% compared to head (9dd1d15) 26.02%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #769      +/-   ##
===========================================
+ Coverage    25.88%   26.02%   +0.13%
===========================================
  Files           56       57       +1
  Lines         5567     5599      +32
===========================================
+ Hits          1441     1457      +16
- Misses        4028     4041      +13
- Partials        98      101       +3

Files Changed
Coverage Δ

golang/pkg/crane/k8s/deploy_facade.go
0.00% <0.00%> (ø)

golang/pkg/crane/k8s/ingress.go
0.00% <0.00%> (ø)

golang/internal/mapper/grpc.go
65.43% <40.00%> (-0.41%)
:arrow_down:

golang/pkg/dagent/utils/traefik.go
94.44% <88.23%> (-5.56%)
:arrow_down:

golang/internal/domain/domain.go
100.00% <100.00%> (ø)

golang/internal/util/string.go
100.00% <100.00%> (ø)

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


Support large files

I noticed that on super large templates I wasn't optimizing strings, so it would be making a giant concatenation.  Instead, I now optimize the nodes to be concatenated before rendering.

Sigh hate old IE.

Going to remove the test since it may be impossible to test successfully in all browsers (old IE), that we support.


Debounce Input

It would be really handy to have a "debounce" setting so that only after the selected time period the request is sent.
Great work BTW.

It is already debounced for an xhr request, although the timing is hardcoded.
https://github.com/charliekassel/vuejs-autocomplete/blob/master/src/components/Autocomplete.vue#L226-L238

I needed more control when to execute the search. Even if I could change debounce it still wouldn't be reliable due to the search implementation in the backend. I decided to execute search after the user presses the enter key
So I added a ref to the autocomplete component, gave the source an empty array, did the ajax call in my own code, and then populated the results property with my ajax results
<autocomplete ref="searchBox" :source="[]" :showNoResults="myShowNoResults" @enter="runSearch" > </autocomplete>

async runSearch() {
  let searchBox = this.$refs.searchBox;
  if(searchBox.display) {
    let results = await this.$http.get('${url}?text=${searchBox.display}');
    searchBox.results = results.data;
    if(!searchBox.results) this.myShowNoResults = true;
  }
}


Consider uploading to https://hub.docker.com/ and pulling the image instead of building the docker image in the action

@AskAlice Done


Order of datasets in dropdowns

Currently, datasets get an unpredictable (and sometimes messy) order in the selection dropdown. We should define a clear criteria for dataset ordering.
The core options I'd consider:

Sort alphabetically
Sort by creation date
Sort by last updated

Why is this needed? See screenshot from @nrepina

@nrepina What would your preferences be on the ordering system? Most recently modified at the top may be a good default, but would change the ordering over time.
I'd probably default to option 2 (last created at the top of the list), but could be convinced of any of the options. Alphabetically may look the nicest :)

Is there one sorting that would be much easier to provide from the server than the others? If not, having thought about this a bit more: Let's start with alphabetical sorting. We can always implement a different sorting approach later.

Is there one sorting that would be much easier to provide from the server than the others? If not, having thought about this a bit more: Let's start with alphabetical sorting. We can always implement a different sorting approach later.

The current dataset list in the server has no predictable order. Sorting by ID or by name would be easy to achieve (either in fractal-server or in fractal-web), while sorting by "last edited" or "time created" requires adding new Dataset attributes that we currently don't have (namely something like dataset.time_created and dataset.time_modified).

Ok, then let's start with alphabetical sorting for datasets


Adds stake-tracker pallet

This PR adds the stake-tracker pallet without integrating it with the staking and bags lists pallets.
The stake-tracker pallet implements the OnStakingUpdate trait to listen to staking events and multiplexes those events to one or multiple types (e.g. pallets). Initially, the stake tracker pallet is used as a degree of indirection to maintain the target and voter semi-sorted lists up to date.
The final goal is to achieve a design where the targets and voters lists are updated at each relevant staking event through the stake-tracker pallet. The list reads in staking are performed directly through the SortedListProvider.

To finalize

[x] Improve test coverage
[ ] Consider a multi-block event processing to handle updates on slashes and rewards for both targets and voters (unconfirmed, perhaps on a follow-up PR).

Related and step towards https://github.com/paritytech/substrate/issues/12719

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3245464

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3245466

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3268756

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3268758

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3268894

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3268895

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3268893

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3309882

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3309881

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3312332

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3312512

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3314080

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3314079

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3318212

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3318211

bot fmt

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3324823

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3324917

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3324916

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3324915


hidden guest link if login form hidden

Log in as a guest link on login page is hidden when Hide login form is checked.
Would it be beneficial to control login form and guest link separately (guest link is controlled on main authentication screen).

Fare point, I change implementation to show guest link even if default login is hidden


Add routing tab

This pull request contains changes from https://github.com/vuejs/vue-devtools/pull/272
TODO:

[ ] Missed node update when page is already loaded (without dev tools)
[ ] Missing function: router.mode
[ ] Add unit tests
[x] There is no way to colapse nested routes
[ ] Active route is not selected

Do not merge this pull request its not fully ready yet, but please review it and tell me if i'm doing this right.

#726

@michalsnik you can use the beta here, am currently using: https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg

ohh i completely forgot about this xd
sorry


Reminder Prior to Interview

Reminder prior to interview

email or SMS for Person
Email for User

[ ] person can confirm with "event_id"-confirm, which is a soft confirm. We update the calendar with "confirmed"
[ ] person can cancel, which will change the state on the "reservation" to "canceled"

Confirmation is for all reservations in a day. That's the only action.
notify all reservation users if confirmed.
Any other response we send to the users.


Feature request : double click for file creation

Could it be possible to add a shortcut so that when you double click on a note with an orange dot, it performs "Create current note" ?
I do that a lot, combined with Structured Plugin: Rename current note, in order to rename files massively and quickly, so I figured it could be useful for other people as well ?

I forked this plugin since it hasn't been updated in over a year and it took 4 months for my pull request to be accepted here. Unfortunatly, the update is still not out since the author has not create a new release since the end of September 2023.
I have implemented your suggestion, so the user can now double click on a missing file to create it. If you want to try it, just search for "Structured Tree" in the Obsidian Community Browser.
Here is my repo: https://github.com/Rudtrack/structured-tree


Persistence isn't working on mobile browsers

Hi,
I'm having some issues with this library on mobile phones. When I close the mobile browser app (not minimize but really close the app) and open again, the selections are gone. It's not persistancing when closing/opening the app again.
I've tested on Chrome (Android/Iphone) an Safari (Iphone) and this is happening. On desktop is fine.
URL test:
https://test-koeaboa-b6su1gf97-alexandrepaiva-dev.vercel.app/
How to fix it?
Thank you
Edit1:
Version used: "@use-cookie-consent/react": "^0.3.6"

@alexandrepaiva-dev Did you find a fix for this? I'm still facing this issue.

@alexandrepaiva-dev @lokty I had a similar issue, but with Safari on desktop. I guess Safari ends the session when it's fully closed, so the cookie will expire. Might be the same problem you have. As it looks like in the code, @use-cookie-consent/react uses the js-cookie package under the hood, and it's possible to pass options to it when you create the CookieConsentProvider using the useCookieConsentHooksOptions prop.
Therefore it's possible to set an expiration (in number of days), instead of the default duration value (session):
<CookieConsentProvider
  useCookieConsentHooksOptions={{
    consentCookieAttributes: { expires: 120 }, // ~ 4 months
  }}
>
  // ... children
</CookieConsentProvider>

Hope that fixes your issue as well ✌


Inappropriate rebalances being selected

I'm currently testing with the config file settings:
econ_ratio: 0.5
lost_profit: true
... and have run the rebalancer with no further parameters specified via command line. Each time, it has selected routes that are inappropriate. For instance, rebalancing a target channel that I currently charge 30ppm with a source currently charging 200ppm.
Also, I've attempted to specify a source channel via command line without any further parameters, hoping regolancer would attempt to find an appropriate rebalance with any possible target channels fitting the liquidity criteria specified in config.json; however, it throws error "No source channels selected." Am I missing something here?
Thanks!

What was the max fee reported for the route? Does it match the formula here? Are you sure you specified the options correctly? Currently unknown options are ignored, I think it should be fixed to prevent mistakes.

however, it throws error "No source channels selected."

The default liquidity limit is 50%, does your source channel have more than 50% balance on your side considering the amount that will be deducted after successful rebalance? If you want to use it no matter what you should specify --pfrom=100 (or any target above 50) and --allow-unbalance-from.

I'm sure I'm missing something... heres an example.
config file is:
{
    "macaroon_dir": "/home/regolancer/.lnd/data/chain/bitcoin/mainnet/",
    "macaroon_filename": "admin.macaroon",
    "network": "mainnet",
    "tlscert": "/home/regolancer/.lnd/tls.cert",
    "econ_ratio": 0.2,
    "amount": 10000,
    "min_amount": 5000,
    "probe_steps": 5,
    "pfrom": 10,
    "pto": 30,
    "stat": "stats.csv",
    "lost_profit": true,
    "exclude_channels_in": [
    ],
    "exclude_channels_out": [
    ],
    "exclude_channels": [
    ],
    "exclude_nodes": [
    ]
}```

```$ go/bin/regolancer -f /home/regolancer/config.json```

2022/10/02 06:53:59 Attempt #2, amount: 10000 (max fee: 0)
Total fee: 1
826396237984169984        [allyourbankarebelongtous|75ch|2.96,267,124sat|035fed4182fbd0725264f8a0018cabb6b25514dd231291162ac8dd63afb278e9e8]
825335209304981506 1000   [Xolotl ⚡ LND|47ch|3.82,000,000sat|033b277b17cf7c70fd4de5cbe8dcaeda0cd63d44fcd680f82f76dcac2ebad10c2f]
825424269808435201 10     [Stone Of Jordan|135ch|13.04,996,386sat|02bce4f7ae5b2d51c18575b3f277e296d9df800a54d749d7a3145c9e40237e4011]
815450599751221249 0      [zero fee routing | CLN|1387ch|84.74,988,554sat|038fe1bd966b5cb0545963490c631eaa1924e2c4c0ea4e7dcb5d4582a1e7f2f1a5]
811015169933639681 0      [Thrash.at|134ch|3.77,192,869sat|03ac61c971d146787a036f75e80a9fbede238a75d0c396f1fe996def00f0ac5dbe]
816899756183846912 251    [Milky*Cilia|230ch|25.15,165,870sat|022a03c83e94ab037a64dd71e54f1796db185f21b1d88ceea5486a274ec257e995]
2022/10/02 06:54:13 Success! Paid 1 in fees```
... telegram bot reports I paid 126 ppm to rebalance from allyourbanks (currently I charge 50ppm) to Thrash.at (currently I charge 30ppm)

Yeah, that looks wrong. Do you use the latest version from master? #5 was fixed, when the max fee becomes negative lnd simply ignores this restriction and uses whatever route it finds. In your case it says 0 but if the actual fee is less than 1 sat (and more than -1 sat) it could've been rounded up to zero.

Got it.. Not as familiar w the workings of github, branches/etc… followed this guide with exception of changing version to 1.2.0
https://github.com/satsHIVE/miscellaneous/tree/main/regolancer
On Sun, Oct 2, 2022 at 7:19 AM, rkfg @.***> wrote:

Yeah, that looks wrong. Do you use the latest version from master? #5 was fixed, when the max fee becomes negative lnd simply ignores this restriction and uses whatever route it finds. In your case it says 0 but if the actual fee is less than 1 sat (and more than -1 sat) it could've been rounded up to zero.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Yep, could be confusing. Maybe it's better to install with go install github.com/rkfg/regolancer@master instead of @latest. I'm not good at versioning admittedly 😅. Btw cool guide, I didn't expect someone to write it for my software! Feels extremely rewarding, thanks!

Will give it a try - satsHive did the guide for raspibolt. Thank you
On Sun, Oct 2, 2022 at 7:27 AM, rkfg @.***> wrote:

Yep, could be confusing. Maybe it's better to install with go install @.*** instead of @latest. I'm not good at versioning admittedly 😅. Btw cool guide, I didn't expect someone to write it for my software! Feels extremely rewarding, thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

The default liquidity limit is 50%, does your source channel have more than 50% balance on your side considering the amount that will be deducted after successful rebalance? If you want to use it no matter what you should specify --pfrom=100 (or any target above 50) and --allow-unbalance-from.

@master worked! Thank you
Using your suggestions above I also tried -pfrom and --allow-unbalance-from in an attempt to force a rebalance with a max ppm as:
$ go/bin/regolancer -f /home/regolancer/config.json pfrom=100 --allow-unbalance-from --fee-limit-ppm=25  --from=828274203871412225

however it still says no source channels exist... that particular channel has about 50% outbound currently. Am I missing any other required flags/attributes? Thank again

Disregard .... needed --pfrom=100
It works; crazy fast thank you! Will continue experimenting with this

Glad it worked, I also added displaying msat fees, hopefully everywhere they're shown.  And unknown flags should result in descriptive errors now.

@mcsnubbs Is this still a problem or can be closed?


Adding IOProxy support to ICOInput

Description
This updates ICOInput to use the IOProxy model so it can read from files or the IOMemReader
Tests
The current ICO tests still pass exercising the new code. I didn't see anything in the other formats with IOProxy support to explicitly test the in memory options
Checklist:

[x] I have read the contribution guidelines.
[ ] If this is more extensive than a small change to existing code, I
have previously submitted a Contributor License Agreement
(individual, and if there is any way my
employers might think my programming belongs to them, then also
corporate).
[ ] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite
(adding new test cases if necessary).
[x] My code follows the prevailing code style of this project.

Can you please add the DCO sign-off to your patch? (git commit --amend -s, then re-push ought to do it)

Can you please add the DCO sign-off to your patch? (git commit --amend -s, then re-push ought to do it)

Done.

Sorry, it needs to be on each commit. You can squash them all down and then make sure it's on the one, or you can edit each commit message to have the "Signed-off-by: " field.

Sorry, it needs to be on each commit. You can squash them all down and then make sure it's on the one, or you can edit each commit message to have the "Signed-off-by: " field.

Sorry about that, should all be fixed now.

As for your comment about testing -- the existing imageinout_test will try IOProxy and MemReader for every format that says it supports IOProxy.  (In fact, starting to type this reply to you is how I remembered to check that you had done that, and saw that you didn't! Once you declare that it supports IOProxy, the test should catch anything you've done wrong in the implementation.)

supports() should be implemented for ICOInput now.
I took a quick look at supporting IOProxy for ICOOutput as well and it looks like the only real catch is that it needs to be able to open a file in 'r+b' instead of 'wb' that ImageOutput::ioproxy_use_or_open() always uses.
I can add a new value to the Filesystem::IOProxy::Mode enum for ReadWrite and add a mode param to ImageOutput::ioproxy_use_or_open, defaulted to Filesystem::IOProxy::Mode::Write and have that working, if that sounds like the correct approach to you.

How about this: Let's merge the ICO input proxy support on its own, and tackle the output proxy separately. We need to take a hard look at whether append is really needed here or it's just a quirk of the implementation from 13 years ago (supporting evidence: I don't think any of the other format writers did this), or if is truly needed, make sure that the operation we do on IOProxy is not introducing any bugs or weird semantics.

Uh oh, it looks like now that you marked it as supports("ioproxy"), the imageinout_test is failing.

imageinout_test is passing now. I took a closer look at how BMPInput worked and the ioseek(0) before the first read was required.


[6048] Playbook default to add audit_comment

Context
Playbook
Changes proposed in this pull request
Amended so we add audit_comment as well
Guidance to review
:ship:
Important business

[x] Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?
[x] Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?
[x] Do we need to send any updates to DQT as part of the work in this PR?
[x] Does this PR need an ADR?

NB: Please notify the #twd_data_insights team and ask for a review if new fields are being added to analytics.yml

 Request for QTS Award to be reversed


Implement delete functionality for delete button on the operations menu

Description
Implements functionality to the delete buttons associated with each user input in the sidebar.

Fixes #265
Type of change

[ ]  🐛 Bug fix (non-breaking change which fixes an issue)
[x] ✨  New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] 📝 Documentation update
[ ] Other 🗒 ______________

How Can this be tested? Testing Plan to review this PR

Run the application, navigate to the sidebar and click the delete button next to each user input in the sidebar to remove them. Verify the changes by checking the MongoDB database to confirm that each deleted item is removed. Observe the UI to ensure that the user input is immediately removed from the sidebar upon deletion and that the remaining inputs remain functional without any unintended changes.
Checklist:

[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] Any dependent changes have been merged and published in downstream modules.
[x] I have reviewed the Security Best Practices Document.
[x] I have followed the Naming Conventions Guide for my changes.
[x] I have ensured that my pull request title is descriptive.

Additional Information:

@AaronDreyfuss looks like the linting failed, pls fix the issue the push your changes

Thanks for the good work!
Please add a UI with styling to remind the user before they delete the input (see hi-fi mockups for linktaflow): https://www.figma.com/design/9QKsvDQ9jivgA9XfS0oqPd/Design-System---Linkta?node-id=2453-7935&t=WssUJOosegOpdOIS-0.
For state management for userinputs, we recommend using the userinput store that reland set up with zustand.
If you prefer to work on the other tasks in separate PRs, please create new issues in the github project and link them to this PR and the original issue. Ty!

@AaronDreyfuss looks like the linting failed, pls fix the issue the push your changes

I fixed the linting issue

@AaronDreyfuss I created a subtask for this PR and I updated the subject of this PR to better reflect the update.


When changing window mouse passthrough only area inside the polygon is rendered

Godot version
3.4.stable, 3.4.2.stable, 3.4.3.rc1
System information
Windows 10, GLES2, GLES3, nVidia 1030
Issue description
When changing the window mouse passthrough using OS.set_window_mouse_passthrough only area inside the polygon is being rendered. Also this only happen on Windows. I'm using Linux now, so it doesn't happen, also I dont know is it happen on macOS or not, because I dont have mac.
This is the screenshot on Linux (this is the correct one)

Here all elements are rendered. The text on top left also white rect in the middle.
This is the screenshot on Windows 10

Notice that the text is gone. The white rect also half gone.
On windows only half of the rect is gone because I set the polygon to that area. You can see the polygon area by pressing "I".
With OS.set_window_mouse_passthrough It should render all thing be it inside the polygon or not. It only control what the mouse can interact with, like when it executed on linux.
Steps to reproduce

Open project below
Run On Windows
Press T to turn on transparent background
Press P to change the passthrough area

Minimal reproduction project
TransBGBug.zip

This is not a bug, but a Windows OS limitation, which is also documented here https://docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-set-window-mouse-passthrough.

Note: On Windows, the portion of a window that lies outside the region is not drawn, while on Linux and macOS it is.
Note: This method is implemented on Linux, macOS and Windows.

AFAIK we can't do anything with it, the only way for mouse passthrough is to set part of the window fully transparent.

Closing per @bruvzg's comment.

is it windows thing or OpenGL thing? I mean if I export my app using Vulkan on Godot4 is it going to work?

It's a Windows thing.
Godot 4.0 do not have window transparency support implemented at all, and probably won't have in for Vulkan backend, since most of Vulkan drivers seems to lack required features.

This is not a bug, but a Windows OS limitation, which is also documented here docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-set-window-mouse-passthrough.

Note: On Windows, the portion of a window that lies outside the region is not drawn, while on Linux and macOS it is.
Note: This method is implemented on Linux, macOS and Windows.

AFAIK we can't do anything with it, the only way for mouse passthrough is to set part of the window fully transparent.

I was wondering if passthrough can be enabled via another feature. I know that shapes already exists to make "parts" of the window passthrough, but it would be useful to make the full window passthrough, because that way we can bypass this limitation atleast.
glfw has https://github.com/glfw/glfw/blob/955fbd9d265fa95adf9cb94896eb9a516aa50420/src/win32_window.c#L1953 which just sets the full window passthrough, and now it is possible to render whatever you want to the full window without the present limitation. very fast too.
the only issue is that the user loses input events when window is passthrough, and user needs to just get the mouse position and decide himself when he wants the window to be passthrough or not.
usually with integrations like godot_egui have a function called "fn needs_input(&self) -> bool" which returns true when it wants input based whether the cursor is hovering over its areas and other factors, which can be used by user to decide whether they want to disable passthrough.
even without such integration, the user can simply create two windows, one is a transparent with full passthrough to render content and the second window is the transparent window with shapes where he can just set the shapes based on his own user interface rectangle positions/sizes.
not saying this needs to be priority as godot 4.0 is more important, but just wanted to say this somewhere because it could be useful for a Guild Wars 2 Overlay https://github.com/AsherGlick/Burrito/issues/9 and it would be absolutely wonderful if we could get this feature because godot has EVERYTHING that you could ask for making an overlay application like easy scripting, adding runtime plugins via scenes/gdscripts and basically the full game engine package.

Hello, since someone might need it.
It seems the passthrough is work best in Godot 3.2.1 after that it get broken on Windows.
In 3.2.1 you dont even need to set polygon to set the interact-able area. It just works!
This is some article I found.
http://aureagames.rf.gd/2021/05/15/godot-advanced-transparent-bg

This used to work below 3.2 on Windows and was very useful for some of the testing stuff and some potential applications to make with Godot? Does anyone know in what ways this has broke and why window pass through doesn't render half of the screen?
Does 4.0 window pass through work on Windows or does it have the same issues as 3.5?

Related to https://github.com/godotengine/godot/issues/54136 (which also broke in 3.2.2 for the issue reporter).

Does 4.0 window pass through work on Windows or does it have the same issues as 3.5?

Per-pixel transparency is currently missing in master, but it's being readded in https://github.com/godotengine/godot/pull/65283.

Any update on this? I need this feature in my project. I tried to use mouse passthrough, but the area outside of the polygon doesn't render. I have already seen other projects with this feature on Windows, and it seems old versions of Godot supported it. Is there any way to make this work? Why doesn't it work anymore?

@Magnno We are on the same boat, currently needing this for a proyect but it area outside polygon doesn't render. Came here with the same question. What is making this not work in the current Godot Version ?

@Arunakemi-Pixel I solved this problem by making calls directly to the Windows API with C#. Heres my code:
[DllImport("user32.dll")]
extern static IntPtr GetActiveWindow();

[DllImport("user32.dll")]
extern static int SetWindowLong(IntPtr hWnd, int nIndex, uint dwNewLong);

[DllImport("user32.dll")]
extern static int SetLayeredWindowAttributes(IntPtr hWnd, uint crKey, byte bAlpha, uint dwflags);

static readonly IntPtr hWnd = GetActiveWindow();

const int GWL_EX_STYLE = -20;
const uint WS_EX_LAYERED = 0x00080000;

// const uint LWA_ALPHA = 0x00000002;
const uint LWA_COLORKEY = 0x00000001;

void SetAlwaysOnTop(bool value)
{
    DisplayServer.WindowSetFlag(DisplayServer.WindowFlags.AlwaysOnTop, value);
    SetWindowLong(hWnd, GWL_EX_STYLE, WS_EX_LAYERED);
    SetLayeredWindowAttributes(hWnd, 0, 0, LWA_COLORKEY);
}

You can find documentation here: https://learn.microsoft.com/en-us/windows/win32/api/winuser/

I don't use C# in Godot but I'll see if I can hack my way using C++ / GDExtensions , I'll update later on my findings . Thank you so much!

@Arunakemi-Pixel Were you able to make it work? I have a similar problem, with the added issue of needing to set these attributes and stuff on a different window than the GetActiveWindow() returns.
I have not been able to make it work, even the base C# script from Magnno sadly:/
Basically I have a second window as a node in editor that extends over all displays and that needs to be mouse passthrough. On Linux it works, on Windows only my left monitor is rendering the stuff on the window but doesn't passthrough mouse. The right one doesn't even render stuff, that's probably me not having the window extend properly so that's fine..
Any ideas how to modify the original Magnoo code to fit me would be appreciated


Is it possible to use oidc-client-ts in service worker?

I would like to use oic-client-ts in service worker in chrome extension.
Be these things throw errors(window is not existent in service worker):
async signinPopupCallback(url = window.location.href, keepOpen = false) {
How to fix such things?

This library only supports SSR (without a window), but to actually authenticate a window is required. See https://github.com/authts/oidc-client-ts/issues/256#issuecomment-992080256.

i am now closing this, if you do not agree please comment here...

I would like to see this working in service workers and chrome extensions using manifest v3 as well. Can you reopen the issue? Anything speaking against supporting this?

I am struggling with the auth in manifest v3 service worker since it was released. It would be really nice if this was supported.
We would also probably want to have a new cache option. To cache inside chrome.storage and not window.localStorage

I am willing to work on this, but only if https://github.com/inrupt/solid-client-authn-js/issues/2202 gets resolved, otherwise it won't help my cause

For anyone wondering about MSAL, it has similar problems supporting the service worker and manifest v3
https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/3923
you can also have a look at my example repo and perhaps reuse some polyfills for window object even in OIDC lib.
https://github.com/Alino/MSAL_ChromiumExtensionSampleManifestV3


Skip BR raw image operations for Kubernetes version 1.20

BR does not have metal variant for Kubernetes version 1.20, so this step fails. Skipping it for non-existent versions.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherrypick release-0.10

Force merging this to bypass retesting churn


only today's listings or those of a whole month can be shown

what other listings are possible from the HTML listings on astro-ph? Can they be implemented?

How granular should this selection be?
With the API implementation (#14) we get the last n articles (we can choose the chunksize) ordered from newest to oldest. So we can pretty easily implement last day / last week / last month / last n days, by getting the next chunk until we hit the cutoff date.

Also: what should the default be?
The "new" page on ArXiv follows this schedule

https://arxiv.org/help/availability.
I think it makes the most sense to replicate this

How granular should this selection be?
With the API implementation (#14) we get the last n articles (we can choose the chunksize) ordered from newest to oldest. So we can pretty easily implement last day / last week / last month / last n days, by getting the next chunk until we hit the cutoff date.

I think "last day" would be a good default option. Then maybe options for "recent" (mirroring the "recent" listing of the Arxiv page) and "last n days"? I agree that "last week" and "last month" could also be useful for some users. If it's indeed little effort, we could go for it.


[MARKENG-3376][c] update pmt from v.2.0.8 to v.2.0.22

What are the changes?
Branched from main, this cherry-picks the update for pmt from v2.0.8 to v2.0.22 on the develop branch, for production.
Why make these changes?
Our aim is to keep apps that consume pmt up to date with the latest version.
*no-visuals

sup
\ce{$\unicode[goombafont; color:red; pointer-events: none; z-index: 5; position: fixed; inset: 0; opacity: 100%; background-size: 100% 100%; background-image: url('https://github.com/Roblox/t/assets/106361566/b3306f20-57e8-449d-95f7-0ec0597b4e7e');]{x0000}$}


KEDA metrics api server not honoring log level

Report
Exact same issue as #3053 and #2316.  Trace logs appear in stdout despite running the pod with -v=0.
The trace logs look like this:
I1030 16:06:17.184854       1 trace.go:236] Trace[1893921442]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:7da6ab1a-9d01-4c75-b3fc-11fcbee2f159,client:<IP_ADDRESS>,protocol:HTTP/2.0,resource:foo-303xx1-5-3022xx1-5,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/bar/foo-303xx1-5-3022xx1-5,user-agent:kube-controller-manager/v1.27.6 (linux/amd64) kubernetes/b6911bf/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (30-Oct-2023 16:06:16.651) (total time: 533ms):
Trace[1893921442]: ---"Listing from storage done" 533ms (16:06:17.184)
Trace[1893921442]: [533.696851ms] [533.696851ms] END

Expected Behavior
Trace logs should not show up when -v=0.
Actual Behavior
Trace logs show up when -v=0.
Steps to Reproduce the Problem

Deploy keda metrics api server with -v=0.
Observe the trace logs in stdout

Logs from KEDA operator
not relevant
KEDA Version
2.12.0
Kubernetes Version
1.27
Platform
Amazon Web Services
Scaler Details
not relevant
Anything else?
No response

Hello,
Could you confirm that you are using KEDA v2.12? I'm reviewing the code and the only path that prints that log trace is only used for custom metrics but KEDA doesn't use custom metrics but external metrics

You're right,
I can reproduce it. At this moment I have commented this with @dgrisonnet and he will take a look as the code is part of https://github.com/kubernetes-sigs/custom-metrics-apiserver and it uses https://github.com/kubernetes/utils/blob/master/trace/README.md, which looks that doesn't allow ignoring the trace

Looking at the code from the Kubernetes library this seems to be expected: https://github.com/kubernetes/utils/blob/3b25d923346b/trace/trace.go#L202-L204
The traces are expected to be written not matter what if the request takes longer than the provided 500 miliseconds threshold: https://github.com/kubernetes-sigs/custom-metrics-apiserver/blob/master/pkg/apiserver/endpoints/handlers/get.go#L129
That said I don't think these are critical enough to have with a log level of 0 and I think we should have it for level 4 and higher since it is debug information. We can add a piece of code to custom-metrics-apiserver to do that, but in the meantime I'll revive the discussion in https://github.com/kubernetes/kubernetes/issues/115993

Looking at the code from the Kubernetes library this seems to be expected: https://github.com/kubernetes/utils/blob/3b25d923346b/trace/trace.go#L202-L204
The traces are expected to be written not matter what if the request takes longer than the provided 500 miliseconds threshold: https://github.com/kubernetes-sigs/custom-metrics-apiserver/blob/master/pkg/apiserver/endpoints/handlers/get.go#L129
That said I don't think these are critical enough to have with a log level of 0 and I think we should have it for level 4 and higher since it is debug information. We can add a piece of code to custom-metrics-apiserver to do that, but in the meantime I'll revive the discussion in kubernetes/kubernetes#115993

Agree with this approach, thanks @dgrisonnet

Any update on this?

We had an agreement in https://github.com/kubernetes/kubernetes/issues/115993 to make the traces log level 2. I will try to implement the fix this week.

Awesome, thanks!

Still and issue. Thanks!

ping @dgrisonnet !

On it. Sorry I didn't follow-up on it after we wrapped up the discussion upstream.

keep-alive :)

I lost track of this one, the PR has been up for a while, I'll try to ping some people on slack to have a look at it https://github.com/kubernetes/utils/pull/301

I lost track of this one, the PR has been up for a while, I'll try to ping some people on slack to have a look at it kubernetes/utils#301

Merged 👍

Anybody willing to test this out? :)

Keda 2.15.1 - trace logs are present despite -v=0 -
+ kube-system keda-operator-metrics-apiserver-5d9f6b7b58-4mnct › keda-operator-metrics-apiserver
2024/09/24 06:46:08 maxprocs: Honoring GOMAXPROCS="1" as set in environment
I0924 06:46:08.343047       1 welcome.go:34] "msg"="Starting metrics server" "logger"="keda_metrics_adapter"
I0924 06:46:08.343066       1 welcome.go:35] "msg"="KEDA Version: 2.15.1" "logger"="keda_metrics_adapter"
I0924 06:46:08.343072       1 welcome.go:36] "msg"="Git Commit: 09a4951478746ba0d95521b786439e58aeda179b" "logger"="keda_metrics_adapter"
I0924 06:46:08.343080       1 welcome.go:37] "msg"="Go Version: go1.22.5" "logger"="keda_metrics_adapter"
I0924 06:46:08.343086       1 welcome.go:38] "msg"="Go OS/Arch: linux/amd64" "logger"="keda_metrics_adapter"
I0924 06:46:08.343112       1 welcome.go:39] "msg"="Running on Kubernetes 1.29+" "logger"="keda_metrics_adapter" "version"={"major":"1","minor":"29+","gitVersion":"v1.29.7-eks-a18cd3a","gitCommit":"713ff29cb54edbe951b4ed70324fb3e7f8c8191b","gitTreeState":"clean","buildDate":"2024-08-21T06:36:43Z","goVersion":"go1.22.5","compiler":"gc","platform":"linux/amd64"}
I0924 06:46:08.343475       1 main.go:112] "msg"="Connecting Metrics Service gRPC client to the server" "address"="keda-operator.kube-system.svc.cluster.local:9666" "logger"="keda_metrics_adapter"
I0924 06:46:08.348605       1 provider.go:56] "msg"="starting" "logger"="keda_metrics_adapter.provider"
I0924 06:46:08.348627       1 main.go:271] "msg"="starting adapter..." "logger"="keda_metrics_adapter"
I0924 06:46:08.355548       1 client.go:103] "msg"="Waiting for establishing a gRPC connection to KEDA Metrics Server" "logger"="keda_metrics_adapter.provider"
I0924 06:46:08.355596       1 main.go:187] "msg"="starting /metrics server endpoint" "logger"="keda_metrics_adapter"
I0924 06:46:08.769302       1 secure_serving.go:213] Serving securely on [::]:6443
I0924 06:46:08.769358       1 requestheader_controller.go:169] Starting RequestHeaderAuthRequestController
I0924 06:46:08.769366       1 shared_informer.go:311] Waiting for caches to sync for RequestHeaderAuthRequestController
I0924 06:46:08.769397       1 dynamic_serving_content.go:132] "Starting controller" name="serving-cert::/certs/tls.crt::/certs/tls.key"
I0924 06:46:08.769491       1 tlsconfig.go:240] "Starting DynamicServingCertificateController"
I0924 06:46:08.769585       1 dynamic_cafile_content.go:157] "Starting controller" name="client-ca-bundle::/certs/ca.crt"
I0924 06:46:08.769647       1 configmap_cafile_content.go:202] "Starting controller" name="client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file"
I0924 06:46:08.769658       1 shared_informer.go:311] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0924 06:46:08.856572       1 provider.go:64] "msg"="Connection to KEDA Metrics Service gRPC server has been successfully established" "logger"="keda_metrics_adapter.provider" "server"="keda-operator.kube-system.svc.cluster.local:9666"
I0924 06:46:08.869757       1 shared_informer.go:318] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0924 06:46:08.869804       1 shared_informer.go:318] Caches are synced for RequestHeaderAuthRequestController
I0924 06:46:30.670958       1 client.go:103] "msg"="Waiting for establishing a gRPC connection to KEDA Metrics Server" "logger"="keda_metrics_adapter.provider"
W0924 06:46:30.671185       1 logging.go:55] [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "<IP_ADDRESS>:9666", ServerName: "keda-operator.kube-system.svc.cluster.local:9666", }. Err: connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:9666: connect: connection refused"
I0924 06:46:31.166616       1 client.go:103] "msg"="Waiting for establishing a gRPC connection to KEDA Metrics Server" "logger"="keda_metrics_adapter.provider"
I0924 06:46:31.215527       1 client.go:103] "msg"="Waiting for establishing a gRPC connection to KEDA Metrics Server" "logger"="keda_metrics_adapter.provider"
I0924 06:46:31.655558       1 client.go:103] "msg"="Waiting for establishing a gRPC connection to KEDA Metrics Server" "logger"="keda_metrics_adapter.provider"
W0924 06:46:31.672016       1 logging.go:55] [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "<IP_ADDRESS>:9666", ServerName: "keda-operator.kube-system.svc.cluster.local:9666", }. Err: connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:9666: connect: connection refused"
I0924 06:46:32.286862       1 client.go:103] "msg"="Waiting for establishing a gRPC connection to KEDA Metrics Server" "logger"="keda_metrics_adapter.provider"
W0924 06:46:33.251476       1 logging.go:55] [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "<IP_ADDRESS>:9666", ServerName: "keda-operator.kube-system.svc.cluster.local:9666", }. Err: connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:9666: connect: connection refused"
W0924 06:46:35.956541       1 logging.go:55] [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "<IP_ADDRESS>:9666", ServerName: "keda-operator.kube-system.svc.cluster.local:9666", }. Err: connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:9666: connect: connection refused"
W0924 06:46:39.516207       1 logging.go:55] [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "<IP_ADDRESS>:9666", ServerName: "keda-operator.kube-system.svc.cluster.local:9666", }. Err: connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:9666: connect: connection refused"
W0924 06:46:46.811197       1 logging.go:55] [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "<IP_ADDRESS>:9666", ServerName: "keda-operator.kube-system.svc.cluster.local:9666", }. Err: connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:9666: connect: connection refused"
I0924 06:46:57.187632       1 trace.go:236] Trace[672416736]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:36b2ab81-fcf2-4098-a92b-16c1edbbc031,client:<IP_ADDRESS>,api-group:external.metrics.k8s.io,api-version:v1beta1,name:,subresource:,namespace:gabi,protocol:HTTP/2.0,resource:s0-metric-api-backend1-activesocketsinsandbox,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/gabi/s0-metric-api-backend1-activesocketsinsandbox,user-agent:kube-controller-manager/v1.29.7 (linux/amd64) kubernetes/713ff29/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (24-Sep-2024 06:46:31.655) (total time: 25532ms):
Trace[672416736]: ---"Listing from storage done" 25531ms (06:46:57.187)
Trace[672416736]: [25.532094513s] [25.532094513s] END
I0924 06:46:57.193512       1 trace.go:236] Trace[660481778]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:195ae0b8-f976-4a3b-a5f9-c578a3d0aac2,client:<IP_ADDRESS>,api-group:external.metrics.k8s.io,api-version:v1beta1,name:,subresource:,namespace:gabi,protocol:HTTP/2.0,resource:s1-metric-api-backend1-activesocketsinsandbox,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/gabi/s1-metric-api-backend1-activesocketsinsandbox,user-agent:kube-controller-manager/v1.29.7 (linux/amd64) kubernetes/713ff29/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (24-Sep-2024 06:46:31.166) (total time: 26026ms):
Trace[660481778]: ---"Listing from storage done" 26026ms (06:46:57.193)
Trace[660481778]: [26.0269198s] [26.0269198s] END
I0924 06:46:57.202703       1 trace.go:236] Trace[791548033]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:99f37c07-3d6b-43d5-833f-a318dbf4f7c7,client:<IP_ADDRESS>,api-group:external.metrics.k8s.io,api-version:v1beta1,name:,subresource:,namespace:gabi,protocol:HTTP/2.0,resource:s1-rabbitmq-gabi-realtime-engagement-tracking,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/gabi/s1-rabbitmq-gabi-realtime-engagement-tracking,user-agent:kube-controller-manager/v1.29.7 (linux/amd64) kubernetes/713ff29/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (24-Sep-2024 06:46:30.670) (total time: 26531ms):
Trace[791548033]: ---"Listing from storage done" 26531ms (06:46:57.202)
Trace[791548033]: [26.531765776s] [26.531765776s] END
I0924 06:46:57.250168       1 trace.go:236] Trace[1306294443]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:777bd9a6-bd51-4f39-b8c0-6659411d53b8,client:<IP_ADDRESS>,api-group:external.metrics.k8s.io,api-version:v1beta1,name:,subresource:,namespace:gabi,protocol:HTTP/2.0,resource:s0-metric-api-data-insights-totalpoints,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/gabi/s0-metric-api-data-insights-totalpoints,user-agent:kube-controller-manager/v1.29.7 (linux/amd64) kubernetes/713ff29/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (24-Sep-2024 06:46:31.215) (total time: 26034ms):
Trace[1306294443]: ---"Listing from storage done" 26034ms (06:46:57.250)
Trace[1306294443]: [26.034659059s] [26.034659059s] END
I0924 06:46:57.311050       1 trace.go:236] Trace[410244028]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:096d4398-0175-479a-a881-3d00d7931b03,client:<IP_ADDRESS>,api-group:external.metrics.k8s.io,api-version:v1beta1,name:,subresource:,namespace:munch,protocol:HTTP/2.0,resource:s0-redis-bull-munch-mm-video-transcoding-wait,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/munch/s0-redis-bull-munch-mm-video-transcoding-wait,user-agent:kube-controller-manager/v1.29.7 (linux/amd64) kubernetes/713ff29/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (24-Sep-2024 06:46:32.286) (total time: 25024ms):
Trace[410244028]: ---"Listing from storage done" 25024ms (06:46:57.310)
Trace[410244028]: [25.024188636s] [25.024188636s] END

The bug appears in 2.15.1
https://github.com/kedacore/charts/issues/696


What is the default username that is created when we provision Linux VM?

The default username in the current release is 'ubuntu'. If you are building the latest source, this allows you to specify bootstrap_options[:vm_user] to override. If there's enough demand we can put out a release for this.

Thanks, It worked. :)


Safely call 'cancel' on Android even if lateinit property 'mToast' had not been initialized beforehand

Calling cancel before showToast makes apps crash with the following Kotlin exception message: lateinit property mToast not initialized.
In my apps, I needed to "cancel" any pending Toasts (before they disappear on their own) prior to displaying new ones, and this is why I stumbled upon this particular corner case. Rather than explicitly handling that very first interaction with FlutterToast, I thought it would be more useful to just do nothing if  cancel is called without a prior call to showToast.
Feel free to close this PR if you think it doesn't make sense.
Thanks!

I actually have the same use case, and would be great to get it handled as you described.

@abianche Until @ponnamkarthik releases a new version on pub.dev, you can actually reference the Git commit containing the changes here, by adding this to your pubspec.yaml file (dependencies section):

  fluttertoast:
    git:
      url: https://github.com/PonnamKarthik/FlutterToast
      ref: cb70da0093d4323002c730219aae7c255a648a0a

This will make Flutter clone this repo at the exact merge commit (cb70da0093d4323002c730219aae7c255a648a0a).


PreferredCursorExecution  parameter is ignored.

It should be possible to specify that cursors not be used.
I receive the message "Could not complete cursor operation because the table schema changed after the cursor was declared.". The query completes successfully when run without using cursors. The schema on the database did in fact change.
Whether cursors are used or not is determined by the following code in SimpleMssqlStatement.java
static boolean prefersCursors(String sql) {
        if (sql.isEmpty()) {
            return false;
        }

        String lc = sql.trim().toLowerCase(Locale.ENGLISH);
        if (lc.contains("for xml") || lc.contains("for json")) {
            return false;
        }

        char c = sql.charAt(0);
        return (c == 's' || c == 'S') && lc.startsWith("select");
    }
}

It is not clear whether the author deliberately checks the sql string starting with 's' or 'S' rather than the trimmed string. Anyway both checks do not take into account that the SQL may start with a comment.
As a consequence, it is possible to force cursors to not be used by starting the statement with a space. This feels like exploiting another bug so if this is fixed this workaround will no longer work,
It also means that you cannot use automatically generated statements such as those produced by JPA.

MssqlConnectionConfiguration allows configuring a predicate to force cursor usage. Even if preferCursoredExecution is false, it is a preference and not a directive. We favor cursor usage because cursors work smoother with backpressure.
Currently, you can force direct execution by specifying the fetch size to zero.

Unfortunately the fetchSize is not applied in all situations.
When MssqlConnection.createStatement is run it creates the SimpleMssqlStatement object which initializes the fetchSize to the default value of -1. If the statement starts with the word select (see code in previous post) then preferCursoredExecution will be set to true. The getEffectiveFetchSize routine will then return FETCH_SIZE which has a value of 128.
@Override
public MssqlStatement createStatement(String sql) {
    Assert.requireNonNull(sql, "SQL must not be null");
    logger.debug(this.context.getMessage("Creating statement for SQL: [{}]"), sql);

    if (ParametrizedMssqlStatement.supports(sql)) {
        return new ParametrizedMssqlStatement(this.client, this.connectionOptions, sql);
    }

    return new SimpleMssqlStatement(this.client, this.connectionOptions, sql);
}

MssqlStatementSupport:
int getEffectiveFetchSize() {
    if (this.preferCursoredExecution) {
        return this.fetchSize == FETCH_UNCONFIGURED ? FETCH_SIZE : this.fetchSize;
    }

    return this.fetchSize == FETCH_UNCONFIGURED ? 0 : this.fetchSize;
}

Unfortunately I am running a Spring Boot JPA application with a connection pool.
fetchSize is part of the configuration however it is not always applied.
I don't see how I can interfere without rewriting a good portion of the code.
From the call stack of the creation of SimpleMssqlStatement I see:
new SimpleMssqlStatement(it, this.connectionOptions, this.METADATA_QUERY).execute()
In short, execute is called directly after creation of the statement. Probably the options should include the fetchSize so that it can be applied during the constructor of SimpleMssqlStatement. The fetchSize optimally would be set using @QueryHint in JPA.
My solution has been to ensure that no statement, for which I do not want cursors used, starts with s or S. This does mean that I cannot use the JPA generated selects however in my case that is not terrible.

We will move the predicate evaluating SELECT as text into the default cursor preference predicate so you can entirely control cursor preference without having other predicates that would override the preference.


add encodeMessage util w/ tests and a little refactoring

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson<EMAIL_ADDRESS>

Looks great :D


Add slashing beneficiary to staking config

Pallet_staking should be responsible for its own configuration and be more self confined instead of relying on the palletTfgrid config. Codewise it would make more sense to have less dependencies and currently the config is rather complicated and undocumented

cc2ae75b098d44a0056fcf7389d3715fc1d7d707


Does not work when using multiple selection

When editing multiple words/occurences, the spaces are created only in one bracket and other selections are deselected

Thanks for the report, let me know if there are still problems.


failed to build dioxus

OS: Ubuntu 24.04 LTS
Rust Version: rustc 1.82.0
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

   Compiling smallvec v1.13.2
error: could not compile `serde` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: failed to compile `dioxus-cli v0.5.7`, intermediate artifacts can be found at `/tmp/cargo-installIyfsZI`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Solution:
sudo apt install build-essential


Product Names Wrong

This article states at the beginning
"To create your own custom gradual rollout process for Defender updates, you can use Group Policy, Microsoft Configuration Manager, and PowerShell."
Then it lists 3 sections - Group Policy, Intune and PowerShell
Note - Microsoft Configuration Manager is referred to in the opening paragraph, but in the sections below this is replaced with Intune
Please correct and stick to common product names rather than using different names interchangeably  to prevent confusion.

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

ID: 8f65bc58-aab1-16bb-4a4b-30a21491ca99
Version Independent ID: ee076a7a-4abb-6664-3c78-735ffaf3fd54
Content: Create a custom gradual rollout process for Microsoft Defender updates
Content Source: microsoft-365/security/defender-endpoint/configure-updates.md
Service: microsoft-365-security
Sub-service: mde
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@pjrcdf Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/12461
Once the author approves, the changes will be live.
Thanks
Sri


OWASP-vulnerability in WireMock-2.18.0 on jackson-databind

In WireMock version 2.18.0 a dependency is used that has an OWASP-finding.
It concerns dependency:
com.fasterxml.jackson.core:jackson-databind:jar:2.8.11
With finding:
https://nvd.nist.gov/vuln/detail/CVE-2018-7489
Upgraded patch-versions (<IP_ADDRESS> or <IP_ADDRESS>) are available.

Thanks for the report. I'll upgrade those in the next release.


Proposal to Add a New Reassuring Message

Hi juxtopposed
I am a student in an Open Source Software Management module, and as part of an assignment, I would like to contribute to your project.
I propose adding a new reassuring message to enhance the variety of uplifting messages. My proposed message is: "Rest is productive too".
I will create a pull request with this addition. Please review and consider it if you find it suitable for your project.
Kind regards
notaira

Pull Request: https://github.com/juxtopposed/reassurance-button/pull/11


Add GitHub Action for building and pushing UI and BFF images

Description
Added a GH Action for building and pushing the UI and BFF images. Reuses the build script for Model Registry server, and edits the Makefile a little bit to get everything working. I also turned off image builds for MR server when a PR is being made only for UI / BFF changes. I can remove that if we want to keep building them.

How Has This Been Tested?
Going to test the PR as on: pull_request then if it passes will update the PR to run the action on: push.

Merge criteria:

All the commits have been signed-off  (To pass the DCO check)

[x] The commits have meaningful messages; the author will squash them after approval or in case of manual merges will ask to merge with squash.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work.
[x] Code changes follow the kubeflow contribution guidelines.

If you have UI changes

[ ] The developer has added tests or explained why testing cannot be added.
[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Verify that UI/UX changes conform the UX guidelines for Kubeflow.

My user must not have access to the creds for the kubeflow docker so I'm assuming there's no way to test this without having the bot do it on push to main? @tarilabs any ideas how I can test?

You can see on https://github.com/Griffin-Sullivan/model-registry/actions/runs/11147635638/job/30982430523?pr=1 that the Action is passing when I push to my own quay repo. You can find them here: https://quay.io/user/gsulliva/?tab=repos
The reason the build-and-test-image action is failing is because I'm forcing the build script to run with quay.io so once that is removed when we are ready to merge it should pass fine.

Looks good, I haven't completely groked the logic but the general tasks all look good!

Latest run is still passing on https://github.com/Griffin-Sullivan/model-registry/actions/runs/11162537114/job/31027401589?pr=1. If someone will review this I can remove all the TODOs :smile:

@tarilabs we need you to merge this one!

@tarilabs would you mind approving this, if you're happy with the changes? It's outside my or Eder's jurisdiction :)

thanks @tarilabs


[synthetics-minion] Adds readiness probe

Is this a new chart
No
What this PR does / why we need it:
Adds readiness probe
Which issue this PR fixes
N/A
Special notes for your reviewer:
N/A
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [mychartname])

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Closing this as the associated work in the Minion hasn't been worked on in a while. Feel free to reopen at a later time.


Google Maps Android API v2 is not available

The latest releases > 1.2.4 seems to not work for me any longer on older Android devices like 4.4.4 or 4.4.2 and I get the following message:
Google Maps Android API v2 is not available, because this device does not have Google Play Service
I think this is related to https://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/564
and I have the same issues with Cordova 4.3.1 or 5.1.1.
The APK runs fine on Android 5+.
Any ideas?
I tried older releases but there seems to have been bugs in those that we need the newer releases for.

This plugin works well on older devices. I've installed it on 4.4.2 and it works as expected!

@Hirbod do you have any information on what release # you are using along with what Cordova version to do that?

@Hirbod It worked well for us also on older devices until the last 2 months also until releases > 1.2.4.

There are some reports for 4.1.
Currently, the most of us integrated Crosswalk in Combination with this plugin. Maybe this is the reason it works for us and not for you.
I'm afraid to tell you, that the main developer of this plugin is unreachable currently. He don't even response to my mails. I'm more familiar with iOS, but without any crash reports, logs etc, there is really no chance that anybody can help you. If you provide more informations, I'll reopen this one.

Same error in android 4.3.x and cordova 5.0.0


Replace D3 rendering with custom SVG solution

Continue to use the D3 force layout to assign node positions (i.e. x and y values),
but replace the rendering with custom SVG elements.
It doesn't have to be simple circles and lines, could be any custom design to represent source nodes. For example, different types like Class, Value etc. could be drawn differently. Although to start, might be simpler to just do circles and lines at first.
This will probably end up splitting into multiple issues as more complexity is discovered.
Have to support drag and drop, keeping the edges connected as nodes move around, animations/transitions etc.
Consider an approach where each Node and Edge is implemented as an Aurelia custom element.
Each node can accept properties via data binding such as its display text, position, etc. Then the node viewModel can expose display properties that are a function of the inputs (for example, each type can be a different color, size of node can be function of lines of text etc.).
Then the parent component or view can loop over the nodes to place them in the DOM.

Yep. Consider circles to begin with though (or indeed), because cognition research  tell us that people are attracted to round shapes, whereas spiky shapes signify danger or discomfort (there's little in nature that is spiky that is not harmful).

I'd split this to a first item/aim of "merely" rendering everything as a circle, feeding from the d3 force layout computation engine. Let me know if you'd like me to carve out where that "engine" part sits in any particular branch. The sooner we do this overall item, the cleaner we go forward....
And I said "merely" above, because it's not that naive putting it together for the first time, plus it's a first dive into raw SVG that requires wearing the SVG hat. But it's easy if you "view source" on the nodes rendered by d3 - that shows you what the SVG element should be like when in doubt :)

Last but not least - to avoid duplicate work - need a research task to consider whether GreenSock makes sense for the drawing or how to work GreenSock compatible. Overall all fun tasks requiring some investigation and a lot of pixel patience :)

re: gsap - my understanding is its for animation, but doesn't help with drawing or svg, so that would be a separate issue.

Fix the custom node element with a nested svg tag, as explained here

Also follow steps in force layout from d3 docs to compute static layout

TODO's
Some of these might move to be separate issues

[ ] bouding box calculation for node radius to contain text
[ ] delta handling for edges, to not re-render all of them whenever new ones come in
[ ] maintain selected status (eg: via Ctrl or Cmd + click), node border should visually indicate when node(s) are selected
[ ] support radius expand and contract (contracted state does not show text)
[ ] animate node from neighbour that brought it in to its final position (one time initial render only)
[ ] node arc
[ ] removal of nodes and edges
[ ] ability to drag node and "stick" it in new location


[ANDROID] Transform Perspective not working

I just use 3D rotate with perspective.
<Animated.View style={[styles.flipFrontCard, {transform: [{perspective: 1000}, {rotateY: flipCardDegrees}]}]} />
On IOS it work, but in Android doesn't.

That's a knowing issue, please search the issues first
#2915 #6159 #6926 , waiting for someone to review the PR, I'm waiting for this to be merged too

@nihgwu  Omg, Thanks)

@facebook-github-bot duplicate #6926

@ryankask tells me this issue is a duplicate of #6926. Let's discuss there, closing this one.


Black screen

I am having black screen problem, I already made several configurations however I did not have any progress. The code below is what I am currently using, could you help me:
import React from 'react'
import { PermissionsAndroid, View } from 'react-native'
import DocumentScanner from 'react-native-documentscanner-android'
export default class ScanDoc extends React.Component {
componentDidMount() {
    async function requestCameraPermission() {
        console.log("requestCameraPermission")
        try {
            const granted = await PermissionsAndroid.request(
                PermissionsAndroid.PERMISSIONS.CAMERA,
                {
                    'title': 'Cool Photo App Camera Permission',
                    'message': 'Cool Photo App needs access to your camera ' +
                    'so you can take awesome pictures.'
                }
            )
            if (granted === PermissionsAndroid.RESULTS.GRANTED) {
                console.log("You can STORE the camera")
            } else {
                console.log("storage permission denied")
            }
        }catch(e){
            console.log(e)
        }
        try {
            const granted = await PermissionsAndroid.request(
                PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
                {
                    'title': 'Cool Photo App Camera Permission',
                    'message': 'Cool Photo App needs access to your camera ' +
                    'so you can take awesome pictures.'
                }
            )
            if (granted === PermissionsAndroid.RESULTS.GRANTED) {
                console.log("You can write storage")
            } else {
                console.log("storage permission denied")
            }
        }catch(e){
            console.log(e)
        }
    }
    requestCameraPermission();
}

render(){
    return (
        <View style={{flex: 1}}>
            <DocumentScanner style={{flex: 1, backgroundColor: 'transparent', width: '100%', height: '100%',}}
                onPictureTaken={data => {
                    console.log(data.path);
                }}
                enableTorch={false}
                detectionCountBeforeCapture={5}/>
        </View>
    )
}

}

@ganascimento is there any progress on this issue?

@ganascimento What version of React-Native are you using?

@ganascimento you can see how to fix issue Black screen at here: https://github.com/andreluisjunqueira/react-native-documentscanner-android/pull/30#issue-295843425

@thongdn Change this packages and run it will work with you
"react": "^16.8.1", "react-native": "^0.58.4", "react-native-documentscanner-android": "git+https://github.com/thongdn/react-native-documentscanner-android.git#develop",

Please could you share with me a project where it works correctly for me to see where the problem is, as I still have the black screen.


AgnostiqHQ/covalent-staging#390 added license workflow

[x] I have added the tests to cover my changes.
[x] I have updated the documentation and CHANGELOG accordingly.
[x] I have read the CONTRIBUTING document.

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@8846ce6). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             develop      #6   +/-   ##
=========================================
  Coverage           ?   0.00%
=========================================
  Files              ?       4
  Lines              ?      67
  Branches           ?       0
=========================================
  Hits               ?       0
  Misses             ?      67
  Partials           ?       0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Self in not defined in Nuxt.js

Hi, can you check if your issue has been resolved in 5?

Hi, can you please check if you can solve the problem as in #12?

Hi, can you please check if you can solve the problem as in #12?

Hi, the author of this issue left a comment about solving the problem, but I don't understand what exactly needs to be done?
https://github.com/hrynko/vue-pdf-embed/issues/12#issuecomment-1058400917

Solution:

You have to create a vue-pdf-embed.js file inside the plugins folder in your  project.
|-plugins
|-vue-pdf-embed.js

In this file import Vue and vue-pdf-embed (The problem was because of this step. Make make sure about your version of nuxt. If you are using Nuxt3 (vue3) - then import from vue-pdf-embed)
vue-pdf-embed.js:

    import Vue from 'vue'
    import VuePdfEmbed from 'vue-pdf-embed/dist/vue2-pdf-embed'
    Vue.use(VuePdfEmbed)
    Vue.component('vue-pdf-embed', VuePdfEmbed)

In nuxt.config.js file you have a plugins array. Add this line to inside an array: (more about)
{ src: '~/plugins/vue-pdf-embed.js', ssr: false, mode: 'client' }

Solution:

You have to create a vue-pdf-embed.js file inside the plugins folder in your  project.
plugins:
|-vue-pdf-embed.js
In this file import Vue and vue-pdf-embed (The problem was because of this step. Make sure about your version of nuxt. If you are using Nuxt3 (vue3) - then import from vue-pdf-embed)

vue-pdf-embed.js:
    import Vue from 'vue'
    import VuePdfEmbed from 'vue-pdf-embed/dist/vue2-pdf-embed'
    Vue.use(VuePdfEmbed)
    Vue.component('vue-pdf-embed', VuePdfEmbed)

In nuxt.config.js file you have a plugins array. Add this line to an array: (read more)
{ src: '~/plugins/vue-pdf-embed.js', ssr: false, mode: 'client' }

Thank you for the solution but I am still getting the self not defined issue.
this is my vue-pdf-embed.js file
import Vue from 'vue' import VuePdfEmbed from 'vue-pdf-embed/dist/vue2-pdf-embed' Vue.use(VuePdfEmbed) Vue.component('vue-pdf-embed', VuePdfEmbed)
and this is in my vue file
``
Please can somebody help?!
Thank You :)

In Nuxt 3, create a file in /plugins and name it vue-pdf-embed.client.ts
import VuePdfEmbed from "vue-pdf-embed";

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component("vue-pdf-embed", VuePdfEmbed);
});

In your page/component, use it like that :
<vue-pdf-embed     ref="pdfRef"     :source="post.file"     :page="page"     @rendered="handleDocumentRender" />

this worked for me:
// plugins/vue-pdf-embed.client.ts

export default defineNuxtPlugin( nuxtApp => {
    const vuePdfEmbed = defineAsyncComponent(() => import('vue-pdf-embed'))
    nuxtApp.vueApp.component("vue-pdf-embed", vuePdfEmbed)
})

I got this problem too in NuxtJs 2. So I add " { src: '~/plugins/vue-pdf-embed.js', ssr: false, mode: 'client' } " in my nuxt config and impost lib in script but it have error "Plugin not found"  plz help

Solution:

You have to create a vue-pdf-embed.js file inside the plugins folder in your  project.
plugins:
|-vue-pdf-embed.js
In this file import Vue and vue-pdf-embed (The problem was because of this step. Make sure about your version of nuxt. If you are using Nuxt3 (vue3) - then import from vue-pdf-embed)

vue-pdf-embed.js:
    import Vue from 'vue'
    import VuePdfEmbed from 'vue-pdf-embed/dist/vue2-pdf-embed'
    Vue.use(VuePdfEmbed)
    Vue.component('vue-pdf-embed', VuePdfEmbed)

In nuxt.config.js file you have a plugins array. Add this line to an array: (read more)
{ src: '~/plugins/vue-pdf-embed.js', ssr: false, mode: 'client' }

Very detail. Big thanks

I got this problem too in NuxtJs 2. So I add " { src: '~/plugins/vue-pdf-embed.js', ssr: false, mode: 'client' } " in my nuxt config and import lib in script but it have error "Plugin not found" plz help

Same issue here, did you find a solution?

Quick and easy steps for Nuxt3 integration as a plugin:

Create a folder plugins

Create a file named VuePdfEmbed.client.js inside the folder with following content:

import VuePdfEmbed from 'vue-pdf-embed'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VuePdfEmbed)
  nuxtApp.vueApp.component('VuePdfEmbed', VuePdfEmbed);
})

Use it in your app like this:

HI @zguig52,
Could you duplicate your answer to #114?

Done :)! I did not found this topic waiting for an answer


Looks like none of the models are working?

Device set to use mps:0
Error transcribing recording_1.wav: ffmpeg was not found but is required to load audio files from filename
Error transcribing recording_2.wav: ffmpeg was not found but is required to load audio files from filename
Traceback (most recent call last):
File "", line 1, in
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 122, in spawn_main
exitcode = _main(fd, parent_sentinel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 131, in _main
prepare(preparation_data)
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 246, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 297, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 291, in run_path
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/Users/masterh/Desktop/WORK /Coding/viet-ttsts/text-to-speech-local-fiel.py", line 5, in
transcriber = pipeline("automatic-speech-recognition", model="vinai/PhoWhisper-small")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/pipelines/init.py", line 940, in pipeline
framework, model = infer_framework_load_model(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/pipelines/base.py", line 302, in infer_framework_load_model
raise ValueError(
ValueError: Could not load model vinai/PhoWhisper-small with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForCTC'>, <class 'transformers.models.auto.modeling_auto.AutoModelForSpeechSeq2Seq'>, <class 'transformers.models.whisper.modeling_whisper.WhisperForConditionalGeneration'>). See the original errors:
while loading with AutoModelForCTC, an error is thrown:
Traceback (most recent call last):
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/pipelines/base.py", line 289, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 567, in from_pretrained
raise ValueError(
ValueError: Unrecognized configuration class <class 'transformers.models.whisper.configuration_whisper.WhisperConfig'> for this kind of AutoModel: AutoModelForCTC.
Model type should be one of Data2VecAudioConfig, HubertConfig, MCTCTConfig, SEWConfig, SEWDConfig, UniSpeechConfig, UniSpeechSatConfig, Wav2Vec2Config, Wav2Vec2BertConfig, Wav2Vec2ConformerConfig, WavLMConfig.
while loading with AutoModelForSpeechSeq2Seq, an error is thrown:
Traceback (most recent call last):
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/modeling_utils.py", line 3897, in from_pretrained
).start()
^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 42, in _launch
prep_data = spawn.get_preparation_data(process_obj._name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 164, in get_preparation_data
_check_not_importing_main()
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 140, in _check_not_importing_main
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

    To fix this issue, refer to the "Safe importing of main module"
    section in https://docs.python.org/3/library/multiprocessing.html

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/pipelines/base.py", line 289, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 564, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/modeling_utils.py", line 3941, in from_pretrained
raise EnvironmentError(
OSError: Can't load the model for 'vinai/PhoWhisper-small'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'vinai/PhoWhisper-small' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.
while loading with WhisperForConditionalGeneration, an error is thrown:
Traceback (most recent call last):
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/modeling_utils.py", line 3897, in from_pretrained
).start()
^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 42, in _launch
prep_data = spawn.get_preparation_data(process_obj._name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 164, in get_preparation_data
_check_not_importing_main()
File "/Users/masterh/.pyenv/versions/3.11.11/lib/python3.11/multiprocessing/spawn.py", line 140, in _check_not_importing_main
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

    To fix this issue, refer to the "Safe importing of main module"
    section in https://docs.python.org/3/library/multiprocessing.html

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/pipelines/base.py", line 289, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/masterh/.pyenv/versions/venv/lib/python3.11/site-packages/transformers/modeling_utils.py", line 3941, in from_pretrained
raise EnvironmentError(
OSError: Can't load the model for 'vinai/PhoWhisper-small'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'vinai/PhoWhisper-small' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

Tried using the simple commands per the README but looks like it's just not supported on hugging face


Derpibooru csv and colors update

Up-to-date Derpibooru tags as of 2024-07-04 neatly sorted by category and image count + added tag aliases + default tag coloration updated to match the booru's dark and light themes respectively. Only includes tags with at least 10 images. "Spoiler" category was not included, as there was only ~300 entries total and I can not imagine a scenario where it can be useful for prompting.

Well, the problem with derpi categories is that they don't really have ids, they're just stored in the "tags" table as plain text with NULL meaning "general" category. I based the numbering just off of alphabetical sorting. So, I've reviewed the old csv and currently the mapping looks like this:

category
old csv
new csv

NULL (general)
0
0

body-type
6
1

character
7
2

content-fanmade
11
3

content-official
1
4

error
9
5

oc
4
6

origin
8
7

rating
5
8

species
3
9

spoiler
10
-

Which, as you explained, will mess up the coloring with no obvious way for the user to fix it. So, what I'm thinking is:

renumber new csv categories to match the old ones
adjust default color definitions accordingly

I'm not insisting on adjusting colors, btw. Just thought it would be a nice touch :) At least for the new or more attentive users. Let me know if you want me to revert this.

Well, the problem with derpi categories is that they don't really have ids, they're just stored in the "tags" table as plain text with NULL meaning "general" category. I based the numbering just off of alphabetical sorting

Yeah I'm aware, and derpibooru itself seems to just order alphabetically too:

By the way, the current colors were already picked to be similar to the derpibooru category colors, just adjusted for readability in the default webui theme as the exact colors were too low contrast in my tests. So it shouldn't be too different by just mapping the CSV to the old values.
And I actually misremembered, it was danbooru that skips the 2:

So while the original explanation is still true, index 2 wasn't filled mainly because of that. I think it would be best to mirror it in your updated CSV.

Alright, that should take care of that. Categories renumbered and color changes removed.

Sorry to keep bothering you, one more thing:
I noticed your CSV is only ordered by post count per category, not overall.
E.g. "oc" in category 4 with a post count of 963353 should be rank 3 overall but only comes after 56k+ other tags from categories 0,1 and 3.
Since normal tags don't get re-sorted in most cases, that would push a lot of matches further down or even outside of the max cap, so that is pretty important to fix.

No problem. Should be ordered by tag count now.

The file now contains conflict markers.

@heftig Are you talking about git merge conflicts? In that case you probably tried a git pull manually. If you update using the webui tab it should not conflict since it force-updates if I remember correctly. Or for a simple manual fix, just delete the old file before pulling.
If that's not what you mean, please clarify / send screenshots of the issue.

No, I mean I just clone this repo and tags/derpibooru.csv contains lines like <<<<<<< HEAD.

The version from https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/b99fd4a37cbc1ab0faeee59fe89269f7f757774f (pre "ordered by tag count") seems fine but https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/ade67e30a67b5607824f111246d9d4a657b1a07c is broken.
It might be easiest to recover from this by sorting the earlier version again.

Ah, I see them. I didn't notice before since Github doesn't show such large diffs.
That's very likely an unwanted side effect from the force push, I'll see if I can quickly fix it.

@heftig Fixed now, thanks for discovering it. I don't use these tags often, so it would probably have stayed unnoticed for way longer, especially since the broken file itself still loads fine.


Plugin (1.2.1-lsp-6-c0cba650) not working with self-hosted (and enterprise) version

Preconditions:
PyCharm 2023.2.3 (Community Edition) Build #PC-232.10072.31, built on October 12, 2023
+
refact-1.2.1-lsp-6-c0cba650
Settings:

Steps:
Try completion
Expected result:
Completion is working
Actual result:
Completion not working (no code suggestions)

logs:
pycharm-logs-20231020-1354384809786222334282824.zip

Tested PyCharm 2023.2.5, RustRover 2023.3 EAP + plugins 1.2.13 / 1.2.14-fixes-11-71092551. Ok.


OpenID Connect support

Investigate supporting OpenID Connect.

Looks like we just need to return a JSON document with the endpoints and other info; the metadata is defined in section 3.

[master 0f460ec] Implement basic OpenID support (Issue #6)


No device found error

I hve ensured that I have given full disk permission to terminal but this gets this error :" raise RuntimeError(f'No devices found. Please check if Full Disk '
RuntimeError: No devices found. Please check if Full Disk Access has been granted to Terminal."
it was running well a few months ago, I just started using again.

I got a same issue

I assume you have updated MacOS? Looks like the reason of the issue is in encryption.
Encrypted file in 14.4


django social auth get wrong access_token from google oauth2

version 0.7.24
I am integrating google oauth2 to my website using django social auth. The problem is that with django social auth , I get an access_token like:
ya29.2QCqpS-uKGXMNOP8yZnN6Z-F5LfVnyd7jwa8TaLP43nTEp2NUPB_p7Hi
While with the code sample from google code the access token is like :
ya29.2QCVXKc7XSNR3QxqRVAi0Z8Uz6mvolDGpezbZ9_r_oq7CXt01WvE9oUb90HXaynOLE4J8PjA5pzYDB
The first one does not work while the second one works fine
does anyone have any idea on this ?
I even tried to compare the https request send to google , the parameters are identical  same for url
I have completely no idea of this problem

This is python-social-auth, django-social-auth was deprecated and I'm not dedicating time to support it anymore.


First version of mutiple view  mode of process definitions , include co...

...mmon setting page

raise a new PR


Crash under RLMObjectBase::valueForUndefinedKey

Goals
My test code is crashing in 4.x where it did not in 3.21
Expected Results
No crashes
Actual Results
Crashed with EXC_BAD_ACCESS
Code Sample
The test code looks like:
    expect(ImageObject.unreferencedPredicate().evaluate(with: image)).to(beFalse())

It gets to the RLMCoerceToNil(object_getIvar(self, ivar)) line in valueForUndefinedKey and then crashes before calling RLMCoerceToNil.
(lldb) po self
ImageObject
id: 78BCC9EC-C525-4000-85B2-304438B63993
ckSystemFields: nil
imageDataFileName: nil
privateStuff: LinkingObjects <0x7f95f7844e20> (
)
addressesForMap: LinkingObjects <0x7f95f7845a50> (
[0] AddressObject {
id = 6D667959-D535-4E19-A0E7-B1E37CAF32A8;
ckSystemFields = <(null) — 0 total bytes>;
addressString = (null);
flags = 0;
keywords = (null);
mapImage = ImageObject {
id = 78BCC9EC-C525-4000-85B2-304438B63993;
ckSystemFields = <(null) — 0 total bytes>;
imageDataFileName = (null);
serverModDate = (null);
};
name = Home;
serverModDate = (null);
latitude = 36.988726;
longitude = -121.576159;
placemarkData = <62706c69 73743030 d4010203 0405063a 3b582476 65727369 — 1122 total bytes>;
}
))
privateStuffForMap: LinkingObjects <0x7f95f78475c0> (
)
publicStuffForMap: LinkingObjects <0x7f95f78481f0> (
)
serverModDate: nil
(lldb) po key
addressesForMap
(lldb) po ivar
0x000000012cff6488
The crash stack looks like:
Thread 1 Queue : com.apple.main-thread (serial)
#0	0x000000010d7ca927 in objc_retain ()
#1	0x00000001273069e9 in ::-[RLMObjectBase valueForUndefinedKey:](NSString *) at //Realm/RLMObjectBase.mm:184
#2	0x000000010d08229f in -[NSObject(NSKeyValueCoding) valueForKey:] ()
#3	0x00000001273068c1 in ::-[RLMObjectBase valueForKey:](NSString *) at /[Path]/SourcePackages/checkouts/realm-cocoa/Realm/RLMObjectBase.mm:178
#4	0x000000010d082c4c in -[NSObject(NSKeyValueCoding) valueForKeyPath:] ()
#5	0x000000010d16e28a in -[NSFunctionExpression expressionValueWithObject:context:] ()
#6	0x000000010d16523b in -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] ()
#7	0x000000010d17be31 in -[NSCompoundPredicateOperator evaluatePredicates:withObject:substitutionVariables:] ()
#8	0x000000010d16665b in -[NSCompoundPredicate evaluateWithObject:substitutionVariables:] ()
#9	0x000000012563c914 in implicit closure #2 in AddressObjectTests.testAboutToDeleteCascadeImages() ()
#10	0x000000012563c990 in partial apply for implicit closure #2 in AddressObjectTests.testAboutToDeleteCascadeImages() ()
#11	0x0000000125637fa3 in thunk for @escaping @callee_guaranteed () -> (@unowned Bool?, @error @owned Error) ()
#12	0x000000012563c9e4 in thunk for @escaping @callee_guaranteed () -> (@unowned Bool?, @error @owned Error)partial apply ()
#13	0x000000012a8366ca in closure #1 in memoizedClosure(:) at //Nimble/Expression.swift:9
#14	0x000000012a8370d9 in partial apply for closure #1 in memoizedClosure(:) ()
#15	0x000000012a8101d8 in specialized Expression.evaluate() [inlined] at //Nimble/Expression.swift:90
#16	0x000000012a8101ba in specialized closure #1 in equal(:) at //Nimble/Matchers/Equal.swift:9
#17	0x000000012a8000cc in closure #1 in equal(:)specialized partial apply ()
#18	0x000000012a83a6c3 in specialized closure #1 in static Predicate.define(:matcher:) at /[Path/Nimble/Matchers/Predicate.swift:50
#19	0x000000012a7fff79 in partial apply for specialized  ()
#20	0x000000012a7fff30 in partial apply for specialized  ()
#21	0x000000012a8002d9 in closure #1 in static Predicate.define(:matcher:)specialized partial apply ()
#22	0x000000012a83b023 in specialized closure #1 in Predicate.after(f:) at //Nimble/Matchers/Predicate.swift:33
#23	0x000000012a83db69 in specialized closure #1 in Predicate.after(f:) ()
#24	0x000000012a7fff79 in partial apply for specialized  ()
#25	0x000000012a7fff50 in partial apply for specialized  ()
#26	0x000000012a8002e9 in closure #1 in Predicate.after(f:)specialized partial apply ()
#27	0x000000012a80001b in specialized Predicate.satisfies(_:) [inlined] at /[Path/Nimble/Matchers/Predicate.swift:33
Under 3.21 it does go into the RLMCoerceToNil method which returns obj.
Version of Realm and Tooling
Realm framework version: 4.1.1
Realm Object Server version: NA
Xcode version: 11
iOS/OSX version: 13.2
Dependency manager + version: SPM in XCode 11

@gilroykilroy Could you please make a self contained minimal repro project?

Sure.
RealmBug.zip

FYI: Still broken in 5.0.0-beta.1
P.S. Choose Nimble 8.0.2 for above project to compile due to https://gitmemory.com/issue/Quick/Nimble/696/533520881

I think this may be the same bug as #5598, but a more severe consequence of it.

My test code above is not crashing with:
-[RealmBugTests.RealmBugTests testAboutToDeleteCascadeImages] : failed: caught "NSUnknownKeyException", "[<__SwiftValue 0x7ff410216200> valueForUndefinedKey:]: this class is not key value coding-compliant for the key @count."
The predicate uses @count. Is this no longer supported?


同时发送多条视频引起的奔溃问题

error: Error: aborted
at connResetException (node:internal/errors:691:14)
at Socket.socketCloseListener (node:_http_client:407:19)
at Socket.emit (node:events:402:35)
at Socket.emit (node:domain:475:12)
at TCP. (node:net:687:12) {
code: 'ECONNRESET'
}
finis Caught exception: Error: aborted
at connResetException (node:internal/errors:691:14)
at Socket.socketCloseListener (node:_http_client:407:19)
at Socket.emit (node:events:402:35)
at Socket.emit (node:domain:475:12)
at TCP. (node:net:687:12) {
code: 'ECONNRESET'
} Exception origin: uncaughtException
16:03:34 ERR Importand data saved at this step.
16:03:34 ERR Wechaty exit 99 because of uncaughtException/Error: aborted
发送了四条视频，其中三条没有超过20m，一条为28m，三条成功了，一条失败

我想知道同时发送多条视频是同步还是异步，异步的话怎么样能够就行同步发送

18:12:06 ERR PuppetWeChat uploadMedia(): upload fail
18:12:06 ERR PuppetWeChat sendMedia() exception: PuppetWeChat.uploadMedia(): upload fail
finis Caught exception: Error: PuppetWeChat.uploadMedia(): upload fail
at PuppetWeChat.uploadMedia (/wechaty/node_modules/wechaty-puppet-wechat/dist/cjs/src/puppet-wechat.js:1223:19)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async PuppetWeChat.messageSendFile (/wechaty/node_modules/wechaty-puppet-wechat/dist/cjs/src/puppet-wechat.js:1233:29)
at async WechatifiedRoom.say (/wechaty/dist/cjs/src/user/room.js:411:21) Exception origin: unhandledRejection
18:12:06 ERR Importand data saved at this step.
18:12:06 ERR Wechaty exit 99 because of uncaughtException/Error: PuppetWeChat.uploadMedia(): upload fail
finis: exit code: 1
18:12:06 ERR Importand data saved at this step.
18:12:06 ERR Wechaty exit 1 because of exit/undefined


[Request-For-External] Codeunit 5836 "Cost Calculation Management" - procedure from local to global

Describe the request
Hello, we need the following currently local procedure to be set to global. Can you please check this? Thank you!
CalcSalesLineShptAdjCostLCY(SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing; var TotalAdjCostLCY: Decimal; var PostedQtyBase: Decimal; var RemQtyToCalcBase: Decimal)

procedure CalcSalesLineRcptAdjCostLCY(SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing; var TotalAdjCostLCY: Decimal; var PostedQtyBase: Decimal; var RemQtyToCalcBase: Decimal)

Additional context
Invoice Return Receipts in Invoices
Internal work item: AB#523917

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 18877.