Unable to use (touchend) event on ion-range

I don't know if these events are of Ionic's resort but I can't use this event properly. In contrast, mouseup works great. It could also be fixed with an Ionic-specific event like ionBlur of something.
(By the way the issue template isn't working, so I can't setup a Plunker, thanks)

Hello, thanks for opening an issue with us! Sorry about the issue template, we switched the 2.0 branch over to master today and it broke the issue template. But, the good news is that i just fixed it a few minutes ago, so would you mind making a plunker for me that demonstrates this issue? Thanks for using Ionic!

Also, can you explain your use case?

I was trying to make a precise range across a large span of available data. So, the concept was after a 1.5 seconds without movement the span becomes shorter to allow for precise selection. On touchend, the zoom is removed. I'm closing this because after much testing, I realize this won't work.


fix: tree cell values can be an empty array and they must render blank

Related: https://github.com/gisce/webclient/issues/773

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Verify-Links.ps1 should use an Accepts header

Crates.io urls return a 404 if you don't specify an Accepts: header.  This isn't a problem with doc links as all users will be using browsers that send an Accepts: text/html header.

Fixed by #8887


My attempt at replacing fancyhdr with scrlayer-scrpage

I tested and found no visual difference between the files produced with fancyhdr and scrlayer-scrpage. Now, the warnings issued by LuaLaTeX are silenced. Feel free to improve upon my code.
I also fixed the ifxetex & ifluatex legacy package warnings and replaced the complicated if pdftex checks with a simpler macro.

@Wandmalfarbe, I have made all the changes you requested for. I think you can merge it now.


Hide flagged attachment in attachment carousel

Details

When we flagged an attachment as intimidation/bullying, the attachment becomes hidden in the chat screen. However, we didn't do the same when the user is viewing the attachment in the carousel. This PR hides the attachment in the carousel too.
Fixed Issues

$ https://github.com/Expensify/App/issues/22915
PROPOSAL: https://github.com/Expensify/App/issues/22915#issuecomment-1636675665
Tests

Same as QA Steps

[x] Verify that no errors appear in the JS console

Offline tests

Same as QA Steps
QA Steps

Send an attachment to user B
As user B, flag the attachment as Intimidation/Bullying
Open the flagged attachment
Verify you see the attachment is hidden with the same text (This message has been flagged...) and button (Reveal message) as hidden messages
Press the "Reveal message" button
Verify you can now see the attachment
Press the "Hidden message" button
Verify the attachment is hidden

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

https://github.com/Expensify/App/assets/50919443/8728ea71-639d-4f7a-83a7-4d1c56323bb1

Mobile Web - Chrome

https://github.com/Expensify/App/assets/50919443/6c19b397-c5de-44fc-808a-d82713584d77

Mobile Web - Safari

https://github.com/Expensify/App/assets/50919443/62bd4f99-d301-422c-b17e-100647670184

Desktop

https://github.com/Expensify/App/assets/50919443/56198334-e1d9-459e-bd8c-516a75c266fc

iOS

https://github.com/Expensify/App/assets/50919443/065ba33b-c8f8-407c-85e1-949b72c6d25d

Android

https://github.com/Expensify/App/assets/50919443/b86ed34b-2054-4df3-b724-dc104a04ca6a

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.69-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.70-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


Release Version: 2.0.5

Hi
@jamesward please can you release this version : 2.0.5
Thanks!

I'm not seeing that release at: https://github.com/Mottie/tablesorter/releases

unfortunately I need the old version
that's why I created another one https://github.com/Samigh/tablesorter
@jamesward  please can you fork this project

Ah.  It looks like this should be a different artifact so you were right all along.  Here is the fork:
https://github.com/webjars/christianbach-tablesorter


Agent: add support for code actions and "Ask Cody to Fix" command

Fixes CODY-1932
Previously, there was no way for agent clients to use the "Ask Cody to Fix" command. This PR fixes this problem by adding support for code actions. Code actions are the "quickfix" menu when you trigger option-enter over a diagnostic in the editor. With the new API, an agent client can open the same quickfix menu to trigger the "Ask Cody to fix" command.
Test plan
See newly added test suite for Fix.

I'm able to reproduce the failing test locally. You just need to run the test in replay mode multiple times. The prompt is unstable. Here is the diff:
-      "text": "This is part of the file: src/example-error.ts\n\nThe user has the following code in their selection:\n<SELECTEDCODE7662>export function fixCommandExample(): number {\n    return '42';\n}\n</SELECTEDCODE7662>\n\nThe user wants you to correct problems in their code by following their instructions.\nProvide your fixed code using the following instructions:\n<DIAGNOSTICS5668>\n<PROBLEMCODE4179>export function fixCommandExample(): number {\n    return '42';\n}\n</PROBLEMCODE4179>\n\nFix the following error from within <PROBLEMCODE4179></PROBLEMCODE4179>: Type 'string' is not assignable to type 'number'.\n</DIAGNOSTICS5668>"
+      "text": "This is part of the file: src/example-error.ts\n\nThe user has the following code in their selection:\n<SELECTEDCODE7662>export function fixCommandExample(): number {\n    return '42';\n}</SELECTEDCODE7662>\n\nThe user wants you to correct problems in their code by following their instructions.\nProvide your fixed code using the following instructions:\n<DIAGNOSTICS5668>\n<PROBLEMCODE4179>export function fixCommandExample(): number {\n    return '42';\n}\n</PROBLEMCODE4179>\n\nFix the following error from within <PROBLEMCODE4179></PROBLEMCODE4179>: Type 'string' is not assignable to type 'number'.\n</DIAGNOSTICS5668>"

Most likely, it's caused by the async/background nature of tree-sitter parsing. I suspect calling testing/awaitPendingPromises everywhere will fix the problem, but it would be nice to do this automatically (fine if only for tests).
https://sourcegraph.com/github.com/sourcegraph/cody/-/blob/vscode/src/jsonrpc/agent-protocol.ts?L154
Should be an easy fix. I just verified that commenting out the listener for vscode.window.onDidChangeVisibleTextEditors makes the failure deterministic
FYI @valerybugakov @umpox I am curious how much this non-deterministic behavior is causing problems in production. It might not be a problem because humans are slow to type/open documents. However, if parsing is so fast anyways, maybe we should just wait for parsing to complete instead of reading a stale AST from cache 🤔

The diff in the prompt when tree-sitter finishes parsing before/after triggering code actions, it's just a newline

Should be fixed by the latest commit, which enables awaiting on listeners from onDidChangeVisibleTextEditors and onDidChangeTextDocument. This makes the test pass deterministically for me locally.

@olafurpg, I agree with the tree-sitter proposal to expose an API to wait for recent edits to be applied to parse trees. Created an issue here: https://linear.app/sourcegraph/issue/CODY-1947/expose-an-api-to-wait-for-the-recent-document-edits-to-be-parsed-by


Capital Efficient Fee Escrow

We should escrow max(recv+ack, timeout) instead of the full total since that is what will be the max payout.
Discussed as a later improvement at some point but some users have expressed desire for this to exist sooner rather than later. cc: @womensrights

Currently the fee middleware supports assigning different coins for each of the messages that can be incentivised (and each of the coins can be of a different denomination). We can add the recv and ack fees and use sdk.Coins Max function to compare with the timeout fee, but the capital efficiency will be gained if all three fees are of the same denomination; otherwise the Max function will return all three fees if they are different.
Does this sound good, @AdityaSripal?

I was also thinking that maybe we should have timeout_fee = ack_fee instead of ``timeout_fee = recv_fee + ack_fee since it seems the relayer is doing one half of the work. We can simply refund or burn the left over recv_fee. (Introduce a burn mechanism to IBC?? O.o)

I would prefer refunding to burning.
I still think my original proposal makes sense
i do think it makes sense to incentivize timeout a bit more because we don't want the packet lifecycle to hang. I don't think there's a danger of relayers just processing timeouts only, since a relayer can always relay before the timeout and take the recv+ack fees for themselves

How do we want to handle the proto message:

Simply ignore timeout_fee, mark it deprecated, and use recv_fee + ack_fee instead.
Use recv_fee + ack_fee only if timeout_fee is empty. And otherwise, keep our current impl.
Remove timeout_fee and add a new proto version.

I will go with (1) in the implementation until we make a decision

How should we handle legacy fees? In my PR, the timeout_fee field is depracated and automatically set to zero when writing to storage (we could also enforce it in ValidateBasic()).
However, some legacy fees could be written to the storage with non-zero timeout_fee before this upgrade takes place. In these cases, I chose to handle it using the legacy logic. I also think there is a good case to be made for returning the timeout_fee to the sender and instead using the new logic to handle fees. What do you think @AdityaSripal ?

@srdtrk Is your idea then that if a timeout happens then the relayer will get recv_fee + ack_fee?
Just for understanding: is the reason to do this that we prevent that the user gets fees refunded after the packet lifecycle completes?

Yes @crodriguezvega, I see now that I initially misunderstood this issue a bit. But I'd say refunding fees to user is not very capital efficient, I'd rather not have any refunds. But I can easily modify it to the initial design in the issue if we want this.
Also, if we go with the original design, we probably need to do a store migration to differentiate between legacy fees and new fees to handle them separately. With timeout set to zero, we can easily differentiate.

Since I had an initial misunderstanding of the issue, I will write down what I've implemented and the advantages it has over what was proposed in this issue initially. I can change my implementation to what is proposed in this issue if we still want this.
The current implementation of fee middleware allows recv_fee, ack_fee, timeout_fee to all be different and then es-crows recv_fee + ack_fee + timeout_fee. The current implementation also refunds either the timeout_fee or recv_fee + ack_fee depending on whether or not the packet timeouts.
This issue initially proposed that

We escrow max(recv_fee + ack_fee, timeout_fee) instead of the total.
In order to be able to run Max, we only allow common denominations between all three fees.
We refund the difference abs(recv_fee + ack_fee - timeout_fee) depending on whether the packet timeouts.

This runs into the following challenges:

This is not fully capital efficient as we still need to process some refunds.
Requires store migration. If a chain upgrades from the current version of the fee middleware to the proposed implementation, then there is no way to differentiate between fees that were set in the older version vs the proposed implementation without a store migration.
We need to restrict fees to common denominations.

The implementation I made does:

Deprecate the timeout_fee by setting it to 0.
We always escrow recv_fee + ack_fee.
Timeout relayer is paid recv_fee + ack_fee if the packet timeouts instead of timeout_fee.

This doesn't run into any of the issues mentioned above since.

Just to clarify, the distinction you are making is that in your implementation you don't specify the timeout fee, instead you only specify recv and ack and then timeout = recv + ack?
Whereas the initial issue suggested you still keep all three fees, a user could specify each of them but then if timeout > recv + ack, you would escrow the timeout amount, then if the packet lifecycle completes successfully you would refund timeout - (recv + ack), if unsuccessful and packet timeouts there would be no refund. Also in this case if recv + ack > timeout the  opposite would be true, on success you would get no refund, on fail you would refund timeout - (recv + ack)?
I think it is a bit premature to remove the ability for a user to be able to specify each of the three fees granularly before we have actual data on how users end up using the Middleware in practise. I see this issue as just meaning you don't have to escrow more than you will ever spend on the fees rather than changing how you specify them.

That's right @womensrights. Notice that both suggestions change how fees must be specified. Initial issue requires that they are the same denom (or empty I suppose), whereas this implementation ignores timeout_fee.
The initial issue causes more complications when we consider async fees. Suppose a user pays fees in the wrong denom so the packet is stuck. We need to allow the user to submit a different denom using async fees. (I think we can solve this issue, but it is another complication.)
I'm happy to write a second implementation of initial issue, we can use the one we agree on. But I think we should reconsider refunds in that case. I'd be in favour of burning them or even sending them to the community pool like you suggested.

I think this issue can only apply to the case where recv, ack and timeout fees are all in the same denomination and when async fees are also in the same denom - it just matters that within the fee message the demons are the same, between messages it shouldn't matter, you should still be able to improve capital efficiency of escrow for  a given message.
When this isn't the case I don't think we should do anything to increase capital efficiency as it would need an oracle and generally be quite complicated to handle.

Yeah, I thought about it more and we can probably implement Max in a logical way without requiring denoms to be same. I'll adjust the PR according to the initial issue

As I mentioned in my comment above sdk.Coins Max function will work even if all three fees have different denoms, it will just simply return all three fees again. It will not allow for the most efficient capital escrowing, but it will work. So for escrowing, I don't think we treat the case of all fees having the same denom as a special case; however, when distributing/refunding fees we will probably need to implement some logic, since the amount to refund the user will be different depending on whether all fees had the same denom or not, I think.
I agree with @womensrights that for now it's better to implement Aditya's proposal and iterate from there.

Yes, I realized @crodriguezvega. I've already implemented the proposed issue. Will open the PR after I update the e2e tests

https://github.com/cosmos/ibc-go/pull/5571 r4r 🙂


Fix chrome livereload

Livereload does not work in chrome because of the illegal call to the window.console.log function. Log function in chrome is context aware (sensitive to the current value of 'this'). This commit fixes this chrome related bug by calling window.console.log directly, and hence in the right context.

This issue is affecting Chrome users. Please merge. LGTM :+1:

This change was originally introduced in #41 by @SteffanDonal . I think a better fix would be:
var __consoleLog = window.console.log.bind(window.console);
var __log = function(msg) {
   __consoleLog('LIVERELOAD: ' + msg);
};

Done.

Any update on this? Looks like @akozhemiakin applied the suggested change from @hiddentao.

Thanks

Awesome, thank you!


chore: update dgeni-packages to the latest version

Description:
This PR fixes an issue reported in #7009.
@carltheperson, it looks like that all we had to do was to update the dgeni-packages version to the latest. Thanks a lot for bringing this to my attention.

Related issue (if exists):
Closes #7009

Amazing!! Looking forward to seeing the docs reappear


CI test, do not merge

getting a weird GH actions failure around the yarn cache on this PR: https://github.com/remix-run/remix/pull/2027
seeing if i can repro with another commit

✅  Confirmed, this looks like a bug in bahmutov/npm-install... on Windows, installs fail when using bahmutov/npm-install@v1 (i.e. v1.8.16) but work when using<EMAIL_ADDRESS>

@jenseng Could you please file an issue on the upstream repo for this?

@MichaelDeBoey yup, issue filed here: https://github.com/bahmutov/npm-install/issues/146
Also opened this Remix PR to pin the version if it's not a quick fix: https://github.com/remix-run/remix/pull/3587

closing again, i have a simpler way to repro/debug :)


[SPARK-19029] [SQL] Remove databaseName from SimpleCatalogRelation

What changes were proposed in this pull request?
Remove useless databaseName  from SimpleCatalogRelation.
How was this patch tested?
Existing test cases.

Test build #70727 has started for PR 16438 at commit b38c53c.

Test build #70727 has finished for PR 16438 at commit b38c53c.

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

Merged build finished. Test PASSed.

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

cc @cloud-fan @yhuai

LGTM, merging to master!


tour: [Clarify that the trees are sorted]

Context: https://tour.golang.org/concurrency/8
When working through this example with a large number of students, about a third interpreted the directions:

The function tree.New(k) constructs a randomly-structured binary tree holding the values k, 2k, 3k, ..., 10k.

to mean that the trees were not even sorted, but simply trees with random structures and the listed values. Consequently students felt they needed to perform more complicated logic to determine whether or not the trees contained the same set of values.
Since the trees returned by tree.New() are in fact sorted, a simple recursive in order traversal will do, regardless of the structure of the trees.
Would it be possible to change the quoted line to the following?

The function tree.New(k) constructs a sorted (but randomly-structured) binary tree holding the values k, 2k, 3k, ..., 10k.

Or something along those lines?

In the context of CS and data structures, the term "binary tree" is almost always used for the "binary-tree data structure", which is sorted by definition, and not the (more general) notion of "tree with two children".
In any case it's a two word change, so it may be worth it. I'll send a change.

https://golang.org/cl/56171

Thanks for taking the time to make the change! Hopefully it helps more students avoid confusion if they're not super familiar with the standard context of trees in most data structures classes.


Bug report:: Virtual Display Driver May Cause Severe Canvas Stuttering and Crashes in Photoshop, Potentially Affecting more Apps.

Issue Description
After installing and enabling the virtual display driver from this project, I encountered first several crashed, then severe stuttering when dragging the canvas in Photoshop. And the problems disappeared after I disabled it.  Suspiciously, this may potentially affect other applications.
Steps to Reproduce

Install and enable the virtual display driver.
Open Photoshop and attempt to drag the canvas with mouse while pressing the space.
The canvas stutters significantly.
Continue using Photoshop; it crashes intermittently.

System Information

Operating System: Windows 11 23H2
Photoshop Version: Photoshop CC 2024
Graphics Cards:

Intel Iris Xe Graphics
NVIDIA RTX 2000 Ada Laptop

Attempts to Resolve

Updated and reinstalled Photoshop and graphics card drivers to the latest versions, but in vain.
Uninstalled my original display driver and disabled the virtual display driver in Device Manager , and the issue disappeared.

Additional Notes

It came so frustrating when the issues still occurred even if I had deleted all the virtual display I created in your application because I originally thought it would solve the problems.
The virtual display driver may not only causes issues in Photoshop but also has the potential to affect other applications,  but I didn't try it.

Are you doing these app operations on physical monitors, or on the virtual display?
I see you have 2 GPUs (integrated Intel & dedicated NVIDIA). VDD could use iGPU by default, try switching to NVIDIA with this guide https://support.parsec.app/hc/en-us/articles/4423615425293-VDD-Advanced-Configuration#parent_gpu, and make sure you have installed the latest GPU drivers before installing VDD (for both GPUs).

Are you doing these app operations on physical monitors, or on the virtual display?

Unfortunately, I was using Photoshop on my laptop's physical monitor. I had already given up the thought of using your app, plus with moonlight to turn my iPad into a second display.
Here are some suspicious actions leading to the bugs:
Before I noticed the issues, I created and deleted a new virtual display several times. After each creation, I tried to connect it to my iPad via GeForce Experience Shield. The connection was unsatisfactory as the indicator kept disappearing. After disconnecting my iPad, I attempted to switch the main display in the settings, but it seemed nothing changed. Btw the virtual displays I created had the same size but different refresh rates (physical display at 120Hz and virtual display at 144Hz).

By the time the issues when using ps occurred, I had deleted all virtual displays.
And thanks a lot for offering plans to help resolve the problem, but I'll wait until the app is more stable before trying them.


Why Modify standard PyTorch distributions?

RT, what is the problem if I use the standard  PyTorch distributions?

From my understanding, this is just an interface issue. In the Policy.act method different distributions are called with the same method calls but different distributions, i.e., different action types, require different preprocessing. And the mode method is something that is not implemented at all.
The code is basically using the standard PyTorch distributions but with a modified interface.

Yes, the problem was that they use a different interface so I had to adapt it.


Screen reader announces bullet point for unordered list as "dot" after reading list item text

This is easily fixed by adding accessible={false} to the Text component that displays the dot. All Text components are accessible by default but there's no need for a screen reader to announce the dot in this case.
<Text style={[modifiedInheritedStylesObj, styles.bullet_list_icon]} accessible={false}>
        {Platform.select({
              android: '\u2022',
              ios: '\u00B7',
              default: '\u2022',
        })}
</Text>

I image that if you used a FlatList instead of a View then it would be even more accessible as a semantic list but the above suggestion would at least make it less confusing and verbose for the time being.
I am happy to contribute and open a PR for this if you like...

Hey, this all sounds great, if you wouldn't mind writing the pull request i will merge :)

Hey, this all sounds great, if you wouldn't mind writing the pull request i will merge :)

Awesome! Pull Request opened! 🙏


CSS Renaming prefixes are no longer honored when generating renaming map

If I specify a renaming prefix, it seems to be lost in get renaming map JS.  If I go back to one before this commit https://github.com/google/closure-stylesheets/commit/d4476e5295f20780cf453df8e534ceeae991fcb9 it works fine with the same parameters.
Parameters I'm using to repro
--pretty-print
--css-renaming-prefix
ja_
--output-renaming-map-format
CLOSURE_COMPILED
--rename
DEBUG
--output-file
/whatever/styles.css
--output-renaming-map
/whatever/renaming_map.js
resources/CheckBox.css
resources/RadioInput.css
resources/TextArea.css
resources/TextInput.css

Thanks for the report. I'll try to take a look soon.

I did a little more digging, the root of the issue seems to be the hyphenated selectors.  If you have a selector like .foo-bar, that gets turned into .x_a-b in the CSS.  But in the map it becomes:
"foo": "a"
"bar": "b"

If you call RecordingSubstitutionMap.get("foo-bar") in the code it correctly returns .x_a-b (this is why the tests pass), but that doesn't help the generated map in javascript land.
Its not very clear where the prefix should go in that situation.  You could put it on both (and change the CSS appropriately) or you could add a third key for the combination.  It seems to me that putting it on both makes the most sense since that allows you to use each one individually and still be behind your desired prefix.

Has anything changed on this issue? It would appear that the most recent build will prepend the classnames with the prefix from the command line, but not set them in the "renaming map" file.
Setting goog.global.CLOSURE_CSS_NAME_MAP_FN only seems to work for initial calls, which makes sense if getCssName is a compiler primitive. Wrapping goog.getCssName also does not work.
--excluded-classes-from-renaming might be a solution, but it doesn't seem to work on class name components, like 'foo' in '.foo-bar'.
Any suggestions?


[FEATURE] add a new folder to put all the code related to tuning: reco_utils/tuning

Description

from a conversation with @anargyri:

It would be more appropriate to have a folder called tuning and, under that folder, azureml and nni and the spark tuning code. This would require testing again all the tuning notebooks, so I would leave it for a separate PR. Hyperdrive and NNI rely on several path names, so they will break as soon as you change the folder structure.

Related
https://github.com/Microsoft/Recommenders/pull/687

azureml may include o16n or remote-compute training related helper scripts in the future, not necessarily limited to tuning. What else do we expect to have other than NNI under the tuning folder?

My two cents, if in the tuning directory, there are just training scripts instead of "utility" function scripts, would it be better we place them together with the notebooks? Most likely the training scripts are not used by other scripts/notebooks.

interesting idea, @anargyri @loomlike are there any utility functions in the hyperparameter tuning code?

interesting idea, @anargyri @loomlike are there any utility functions in the hyperparameter tuning code?

I think putting the .py training scripts in the same directory as the notebooks does not look nice and may confuse the reader. I would prefer it as it is now, or maybe have a directory for SVD_hyperdrive, one for wide_and_deep_hyperdrive etc.
There are not any common tuning utils currently.

@anargyri what about put under a child folder (e.g. scripts) of the notebooks then? like
../notebooks/04_model_select_and_optimize/scripts/ ?

TBH most of these suggestions sound good to me. Just in the interest of housekeeping, having .py and .ipynb files together is a bit messy and you need to take care that it is clear which .py corresponds to each .ipynb.

We should probably revisit this issue when / if the hyperparameter tuning repo is open-sourced, since there are some utilities + Kubeflow notebooks there.


final step: "just wait longer"

I did all of the steps above and continued to get an error saying i was not authorized. looking at the troubleshooting guide revealed the tenant wasn't setup for external users, even after I enabled this. After several hours of troubleshooting, I went to bed, to come back the next day to find it works now.

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

ID: f737e278-7c89-e048-b60b-287615a829fb
Version Independent ID: 1df35258-7360-74c4-680a-e154c54291fe
Content: Microsoft Teams Guest Access checklist
Content Source: Teams/guest-access-checklist.md
Service: msteams
GitHub Login: @romanma
Microsoft Alias: romanma

@Mike-Crowley Thank you for this feedback
Yeah sometimes it takes time for things to show enabled. I agree this should be stated in the article.
I was able to get this into the backlog for the Teams/Skype for Business team. The team will get this prioritized into a sprint plan. Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.


Update Hello-world.java

What does the program do ?

In what programming language it is written?

Thank you for participating  in hacktoberfest ❣ if you liked working on this repo you can share it with friends and star this project for helping others


Add support for Windows (natively, not through WSL2)

Thanks to chezmoi being cross-platform, this should be possible. Also, this can possibly automate the installation of WSL2 itself.

Thanks to WinGet, I hope I won't need Chocolatey anymore.


Payment details mismatch

we integrated and tried a test card: We could not charge this card. Reason: Payment details mismatch. Please contact support . please what does the error means

Any update on this?

we gave up . you guys say you will reply but replying after more than 2
months. its hard to work like this.
Regards.
On Mon, Aug 31, 2020 at 4:38 PM SeunDaniel<EMAIL_ADDRESS>wrote:

Any update on this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gbozee/django-ravepay/issues/4#issuecomment-683784277,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB4TDAPXNPNFGF3UHQEN3YDSDORWPANCNFSM4MH2QL4A
.

--
Tanform Christen  CTO Ckoupons  contact (00237) 6 7069 2940

I’m not the author, but I hope the author will take note and fix the issue as the app is still relevant in 2020


Attempted import error: 'getDotPath' is not exported fom 'validbot' (imported as 'o')

Error when running yarn dev
package.json:
"react-hook-form": "^7.51.3",
"@hookform/resolvers": "^3.3.4",
"valibot": "^0.30.0"

Login.tsx:
import type { SubmitHandler } from 'react-hook-form'
import { valibotResolver } from '@hookform/resolvers/valibot'
import * as v from 'valibot'

Please downgrade @hookform/resolvers or upgrade valibot

Hey @fabian-hiller , please update here once the fix is made.

The fix is to downgrade @hookform/resolvers or upgrade valibot


Disable unreliable sync_large_checkpoints_testnet

Motivation
Several pull requests fail the CI because the sync_large_checkpoints_testnet are very unreliable.
Solution
Disable the test until we have more testnet instances(#1222)
Review
Anyone can review.

Thinking about this a bit more, to avoid bugs like #1778, we should leave a short TODO comment. We should also mention ticket number #1222.

Ok, done at https://github.com/ZcashFoundation/zebra/pull/1789/commits/294f8270b082ee270f840a0dd8485eae4e017e52


Provide id for headings that have them

Hey, thanks for writing this plugin! I just wanted to submit a patch that fixes an issue I was experiencing (similar to https://github.com/vcarl/remark-headings/issues/1). Let me know if there's anything I'm missing.
The remark plugin remark-heading-id allows the markdown to specify a custom id for their headings, which results in data.id and data.hProperties.id being available on the node.
In https://github.com/vcarl/remark-headings/issues/1,  it was suggested to generate anchor tags with a library like slugger, but this would ignore the custom id provided inside the markdown content.
This PR adds functionality to detect id on the heading node's data object and expose it as part of the headings list. id is omitted on a Heading if it does not exist in the node's data object.

Great, thanks for the contribution!

Published in 0.1.0!


selfhost/typechecker: Fix generic instace for enum variant

This adds several fixes to typechecking enum variants with generic types.
This aims to add a PASS to the test /samples/enum/simple_match.jakt

Fixes already done in different PRs

@adleroliveira - I landed a PR though you might want to have a look. It doesn't seem to pass that test, at least for me locally.


Allow to associate meta data with entities

It would be really handy to be able to associate custom meta data with entities to generate automated documentation.

I am not against this. You should update README and such and lets see what others say about this feature.

Thanks, updated the README as suggested


how to train tutorial_train.py using IPAttnProcessor.

Hello, IP-Adapter is a great work. When I am reproducing the result and train tutorial_train.py, I find that when you use ./all_models/stable-diffusion-v1-5/ as the args.pretrained_model_name_or_path, the cross_attention_dim in Line 300 will None. This will call the original cross attention (AttnProcessor) but not IPAttnProcessor.
Therefor, I want to know that I want to train the IP-Adapter (IPAttnProcessor), how to set args.pretrained_model_name_or_path? Thank you!

Sorry, I found that you use  IPAttnProcessor in unet.attn2.


[BUG] Cannot confirm one time code

Describe the bug
On an iPhone SE, I cannot confirm the one-time code sent via sms. The code input and submit button are not presented and blocks setup. I cannot see the code while I enter and cannot tap submit.  The keyboard is blocking them.
To Reproduce
Steps to reproduce the behavior:

Start Safer Illinois setup
Choose Capitol Staff
Enter a phone number
See error

Expected behavior
The screen can be scrolled so the code input and submit button can be seen.
Screenshots

Smartphone (please complete the following information):

Device: iPhone SE (1st gen)
OS: iOS 14.0
Browser [e.g. stock browser, safari]
Safer Illinois Version 2.8.11

Additional context
Add any other context about the problem here.

Fixed in 2.8.13 and above

Sorry now 2.9++


How to influence other settings not in the configmap

I'm wondering about things like bots and other servers settings. Is it possible to influence these via the ConfigMap as we can the maps, game types, time/capture limits, etc.?

Looking at the code it seems like the values pulled from /config/config.yaml would need to be mapped to the relevant values used by the q3 process, but this isn't currently in place. I will try to figure this out when I have some time.
This is pretty cool, btw, my friends and I got a real kick out of running Quake 3 on k8s. :)

Adding other settings should be pretty straight forward, just adding them to the Config, or relevant nested struct, here and map it to the actual Quake 3 setting with the name struct field tag.  I started to pull more stuff from http://www.joz3d.net/html/q3console.html but didn't have time to test which stuff worked so just left it with the settings I had for the time being and was going to circle back and try different stuff and add it.
I'm really glad to hear you and your friends got a kick out of it!

https://github.com/criticalstack/quake-kube/pull/10 was an attempt at addressing this, though I also think there's value in porting things over to the config yaml as appropriate.


Doc Feedback: This page needs to be written

Location : https://apim.docs.wso2.com/en/latest/observe/api-manager-analytics/analytics-pages/analytics-pages-traffic/

The content is available in https://apim.docs.wso2.com/en/latest/api-analytics/viewing/analytics-pages-traffic/


Implement Retrieve Dataset Stack Luigi workflow

This, at least initially, is for Dale's work on Peter Tan's workflow(s).
See #31

Implemented in 0.1.0-b20150505 (aka 0.1.0 2015-05-05 snapshot).
See the Band Stack workflow


update rails

@grosser @pschambacher

Probably worth upgrading everything, but I'll follow up later.

:+1:

Hmm this is running on 4.1... I need to come do my stuff :smile:
:+1:


Not building with newest LDC D compiler

Just found this issue in my fork and want to warn you @hanabi1224. So before merging the next PR maybe we could specify the version of compiler in build-d.yaml
The issue in the library's GitHub is already created. I will update this thread when new information will come.
Sorry for inconvenience.

So it seems the issue is fixed. And will be available in 1.32.1 version of LDC.

I couldn't compile the binary tree 1.d solution until I fixed the imports... not sure if that was written for very old D versions?
Here's what works for me with D v2:
/* The Computer Language Benchmarks Game
   https://salsa.debian.org/benchmarksgame-team/benchmarksgame/

   contributed by Jarkko Miettinen
   *reset*
*/

// binarytrees
class app {

  private static final int minDepth = 4;

  public static void main(String[] args) {
    final var n = args.length > 0 ? Integer.parseInt(args[0]) : 4;
    final var maxDepth = (minDepth + 2 > n) ? minDepth + 2 : n;
    final var stretchDepth = maxDepth + 1;
    var check = (TreeNode.bottomUpTree(stretchDepth)).itemCheck();
    System.out.println("stretch tree of depth " + stretchDepth + "\t check: " + check);

    final var longLivedTree = TreeNode.bottomUpTree(maxDepth);

    for (int depth = minDepth; depth <= maxDepth; depth += 2) {
      final var iterations = 1 << (maxDepth - depth + minDepth);
      check = 0;

      for (int i = 1; i <= iterations; i++) {
        check += (TreeNode.bottomUpTree(depth)).itemCheck();
      }
      System.out.println(iterations + "\t trees of depth " + depth + "\t check: " + check);
    }
    System.out.println(
        "long lived tree of depth " + maxDepth + "\t check: " + longLivedTree.itemCheck());
  }

  private static class TreeNode {
    private TreeNode left, right;

    private static TreeNode bottomUpTree(int depth) {
      if (depth > 0) {
        return new TreeNode(bottomUpTree(depth - 1), bottomUpTree(depth - 1));
      } else {
        return new TreeNode(null, null);
      }
    }

    TreeNode(TreeNode left, TreeNode right) {
      this.left = left;
      this.right = right;
    }

    private int itemCheck() {
      // if necessary deallocate here
      if (left == null) return 1;
      else return 1 + left.itemCheck() + right.itemCheck();
    }
  }
}

This is much slower than Java and Dart, for example, which seem very strange to me. Anyone has any idea why that would be? I suppose this problem is testing mostly the GC and speed of allocation, but still D shouldn't be 5x slower as it currently is, but I couldn't speed this up myself as I don't know D very well.

Hi @renatoathaydes
Current version is working for me on LDC 1.35 (macOS).
Which compiler version are you using?
Because
import std;
Should just works in many scenarios. It is not an optimal way - but it is fine way to use it.
Regarding the speed - you can see that on top of the list in this problem languages with VM - Dart and JVM like..
But of course D solution could be improved.
Also keep in mind that arena allocations are forbidden by the rules of the benchmark, otherwise languages like C++/Zig/Rust/D - will have much better performance than Java.

Ok. I've made some changes: more close to other solutions.. moved from class to struct. And it is working a bit faster on my machine.
Code:
`@safe:
import std;
extern(C) __gshared string[] rt_options = [ "gcopt=minPoolSize:300 initReserve:300" ];
const MIN_DEPTH = 4;
static empty = Node(null, null);
struct Node {
Node* left;
Node* right;
}
int check(Node* n) {
if (n.left is null)
return 1;
return 1 + check(n.left) + check(n.right);
}
Node* bottomUpTree(int d) {
if (d <= 0) {
return ∅
}
return new Node(bottomUpTree(d - 1), bottomUpTree(d - 1));
}
void main(string[] args)
{
auto n = args.length > 1 ? args[1].to!int() : 6;
auto maxDepth = max(MIN_DEPTH + 2, n);
auto stretchDepth = maxDepth + 1;
auto checkTree = check(bottomUpTree(stretchDepth));
writeln(format("stretch tree of depth %d\t check: %d", stretchDepth, checkTree));
auto longLivedTree = bottomUpTree(maxDepth);
for (int depth = MIN_DEPTH; depth <= maxDepth; depth += 2) {
    auto iterations = 1 << (maxDepth - depth + MIN_DEPTH);
    auto sum = 0;
    for (auto i = 0; i < iterations; i++) {
        sum += check(bottomUpTree(depth));
    }
    writeln(format("%d\t trees of depth %d\t check: %d", iterations, depth, sum));
}

writeln(format("long lived tree of depth %d\t check: %d", maxDepth, check(longLivedTree)));

}`
For comparison of performance:
Go version:

long lived tree of depth 18	 check: 524287
1,50 real         4,89 user         0,34 sys
Current D version:
long lived tree of depth 18	 check: 524287
1,09 real         1,05 user         0,03 sys
Updated D version:
long lived tree of depth 18	 check: 524287
0,63 real         0,59 user         0,04 sys

Hi @cyrusmsk
I was using gdc and that doesn't work on gdc. I am testing this on Linux.
I can compile your code using DMD and it does run, and is a bit faster.
DMD time:
➜  d dmd -of=main -O main.d
➜  d time ./main 18
stretch tree of depth 19	 check: 1048575
262144	 trees of depth 4	 check: 8126464
65536	 trees of depth 6	 check: 8323072
16384	 trees of depth 8	 check: 8372224
4096	 trees of depth 10	 check: 8384512
1024	 trees of depth 12	 check: 8387584
256	 trees of depth 14	 check: 8388352
64	 trees of depth 16	 check: 8388544
16	 trees of depth 18	 check: 8388592
long lived tree of depth 18	 check: 524287
./main 18   1.62s  user 0.12s system 99% cpu 1.740 total
avg shared (code):         0 KB
avg unshared (data/stack): 0 KB
total (sum):               0 KB
max memory:                313 MB
page faults from disk:     0
other page faults:         79522

LDC2:
➜  d source ~/dlang/ldc-1.35.0/deactivate
source: no such file or directory: /home/renato/dlang/ldc-1.35.0/deactivate
➜  d source ~/dlang/ldc-1.35.0/activate
(ldc-1.35.0)➜  d ldc2 -of=main -O main.d
(ldc-1.35.0)➜  d time ./main 18
stretch tree of depth 19	 check: 1048575
262144	 trees of depth 4	 check: 8126464
65536	 trees of depth 6	 check: 8323072
16384	 trees of depth 8	 check: 8372224
4096	 trees of depth 10	 check: 8384512
1024	 trees of depth 12	 check: 8387584
256	 trees of depth 14	 check: 8388352
64	 trees of depth 16	 check: 8388544
16	 trees of depth 18	 check: 8388592
long lived tree of depth 18	 check: 524287
./main 18   1.25s  user 0.16s system 99% cpu 1.416 total
avg shared (code):         0 KB
avg unshared (data/stack): 0 KB
total (sum):               0 KB
max memory:                312 MB
page faults from disk:     0
other page faults:         79508

I was surprised that DMD gets the same speed as LDC.
For reference, here's the Dart times (which I submitted in a PR), which is faster than the #1 Java solution (so this should be faster than the Kotlin one as well):
(ldc-1.35.0)➜  d dart compile exe tree.dart
Generated: /home/renato/programming/experiments/d/tree.exe
(ldc-1.35.0)➜  d time ./tree.exe 18
stretch tree of depth 19	 check: 1048575
262144	 trees of depth 4	 check: 8126464
65536	 trees of depth 6	 check: 8323072
16384	 trees of depth 8	 check: 8372224
4096	 trees of depth 10	 check: 8384512
1024	 trees of depth 12	 check: 8387584
256	 trees of depth 14	 check: 8388352
64	 trees of depth 16	 check: 8388544
16	 trees of depth 18	 check: 8388592
long lived tree of depth 18	 check: 524287
./tree.exe 18   0.65s  user 0.05s system 103% cpu 0.678 total
avg shared (code):         0 KB
avg unshared (data/stack): 0 KB
total (sum):               0 KB
max memory:                63 MB
page faults from disk:     0
other page faults:         15755

So D is still much slower, disappointingly.

Usually Dart will be much slower than D. Just this algorithm that proposed to be used for this problem not doing well..

For example you can find another approach of BinaryTrees.. https://github.com/BinaryTrees
this implementation should be much more efficient in compiled C++/D/Rust than in Dart/Java/Kotlin…

And there are also optimized solutions https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/binarytrees.html

Usually Dart will be much slower than D.

I also ran a HTTP Server and Dart again was quite a bit faster. In which problems is Dart slower?

Usually Dart will be much slower than D.

I also ran a HTTP Server and Dart again was quite a bit faster. In which problems is Dart slower?

Many of them actually. https://programming-language-benchmarks.vercel.app/dart-vs-d
Yeah - server implementation is just broken for D in this repo)
For HTTP server you can check something like this https://web-frameworks-benchmark.netlify.app/result?l=dart,d

The HTTP Server I tried was not from this repository but from the "canonical" servers in each language (Dart has one in the stdlib and for D I used Vibe.d).
In the comparisons page you linked, D is faster in some, slower in some, much faster in some, much slower in some, but mostly it's pretty close - with D perhaps having at most a small edge ... so I think your assertion that Dart is much slower than D doesn't reflect that page at all.

The HTTP Server I tried was not from this repository but from the "canonical" servers in each language (Dart has one in the stdlib and for D I used Vibe.d).
In the comparisons page you linked, D is faster in some, slower in some, much faster in some, much slower in some, but mostly it's pretty close - with D perhaps having at most a small edge ... so I think your assertion that Dart is much slower than D doesn't reflect that page at all.

Let's check closely. For more accurate analysis.
Where Dart is faster:

HTTP server - don't count. Because check the specific web-benchmark. ✅
Binarytrees, merkletrees - because of rules of the benchmark. Compiled langs forbidden to use arena/memorypool strategies, while VM-based langs most probably use it under the hood. If provide proper implementation in C++/Rust/D - it will be faster. See original benchmark games repo. ✅
Coro-prime-sieve - it was not my implementation (implemented by author of the repo who is not very good at D). Mostly it is based on async. Need to check D's implementation if it is could be better. It will be definitely more complex - because D doesn't have async/await. But not sure if it should be slower, if properly implemented. 🟡
Pidgins - used BigInt, which is quite slow for big values in the std. But it is possible to use GMP (and some langs just use GMP inside). ✅
Please try to compare this code (make sure you added gmp-d into dependency):

@safe:
import std;
import std.outbuffer : OutBuffer;
import gmp.z;

alias Z = CopyableMpZ;

void main(string[] args)
{
    auto digits_to_print = args.length > 1 ? args[1].to!int() : 27;

    immutable one = 1.Z;
    immutable two = 2.Z;
    immutable ten = 10.Z;

    int digits_printed = 0;
    auto k = 1.Z;
    auto n1 = 4.Z;
    auto n2 = 3.Z;
    auto d = 1.Z;
    Z u,v,w;

    OutBuffer b = new OutBuffer();
    while(true) {

        u = n1 / d;
        v = n2 / d;
        if (u == v) {
            b.writef("%s",u);
            digits_printed += 1;
            int digits_printed_mod = digits_printed % 10;
            if (digits_printed_mod == 0)
                b.writef("\t%d\n", digits_printed);

            if (digits_printed >= digits_to_print) {
                if (digits_printed_mod > 0) {
                    foreach(_; 0..(10 - digits_printed_mod))
                        b.write(" ");
                    b.writef("\t%d\n", digits_printed);
                }

                write(b.toString());
                return;
            }

            auto to_minus = u * ten * d;
            n1 = n1 * ten - to_minus;
            n2 = n2 * ten - to_minus;
        }
        else {
            auto k2 = k * two;
            u = n1 * (k2 - one);
            v = n2 * two;
            w = n1 * (k - one);
            n1 = u + v;
            u = n2 * (k + two);
            n2 = w + u;
            d = d * (k2 + one);
            k = k + one;
        }
    }
}

The HTTP Server I tried was not from this repository but from the "canonical" servers in each language (Dart has one in the stdlib and for D I used Vibe.d).
In the comparisons page you linked, D is faster in some, slower in some, much faster in some, much slower in some, but mostly it's pretty close - with D perhaps having at most a small edge ... so I think your assertion that Dart is much slower than D doesn't reflect that page at all.

Ok. With help of 'brianush1' the code for Coro-prime-sieve was prepared. It's slower than Go, but should be close in performance to Rust/Crystal I think. And I assume faster than Dart.
import core.thread;
import std;
import std.outbuffer: OutBuffer;

class Generator(T) : Fiber {
	private T value;

	this(void delegate() dg) {
		super(dg);
	}

	static void yield(T value) {
		(cast(Generator!T) Fiber.getThis()).value = value;
		Fiber.yield();
	}

	T getNext() {
		call();
		return value;
	}

	int opApply(scope int delegate(T) dg) {
		int result = 0;

		while (state != State.TERM) {
			result = dg(getNext());
			if (result)
				break;
		}
		return result;
	}
}

auto generate() {
	return new Generator!long({
		long i = 2;
		while (true) {
			Generator!long.yield(i);
			i += 1;
		}
	});
}

auto filter(Generator!long ch, long prime) {
	return new Generator!long({
		foreach (i; ch)
			if (i % prime != 0)
				Generator!long.yield(i);
	});
}

void main(string[] args) {
    long n = args.length > 1 ? args[1].to!long: 10;

    auto buf = new OutBuffer();
    scope(exit)
        write(buf.toString());

	Generator!long ch = generate();
	foreach (i; 0 .. n) {
		long prime = ch.getNext();
		buf.writef("%d\n",prime);
		ch = filter(ch, prime);
	}
}

Not sure if it's valid, but D has a very fast HTTP server as well: https://github.com/tchaloupka/httparsed
Also, are you also trying to speed up the Dart solution?

Not sure if it's valid, but D has a very fast HTTP server as well: https://github.com/tchaloupka/httparsed

D server unfortunately not very fast( httpparser is good yes.

Also, are you also trying to speed up the Dart solution?

No, I’ve never worked with Dart

No, I’ve never worked with Dart

Ok, but then I suggest you avoid making claims about Dart being much slower than whatever.

No, I’ve never worked with Dart

Ok, but then I suggest you avoid making claims about Dart being much slower than whatever.

Do you know type of programs, algorithms or something where Dart will have same performance as C++/Rust?

I don't know why you're asking about that, it has nothing to do with this thread. My original question was why D was running 2 to 3 times slower than Dart, which I found strange... but it seems quite a few Dart examples in this repo are faster than D... you then made an unfounded claim that Dart is much slower than D.
I feel I have to remind you of a non-motivation of the benchmark games:

We are profoundly uninterested in claims that these measurements, of a few tiny programs, somehow define the relative performance of programming languages aka "Which programming language is fastest."

I don't know why you're asking about that, it has nothing to do with this thread. My original question was why D was running 2 to 3 times slower than Dart, which I found strange... but it seems quite a few Dart examples in this repo are faster than D... you then made an unfounded claim that Dart is much slower than D.
I feel I have to remind you of a non-motivation of the benchmark games:

We are profoundly uninterested in claims that these measurements, of a few tiny programs, somehow define the relative performance of programming languages aka "Which programming language is fastest."

Please sorry if I sound offensive or something bad to Dart. I haven’t got any of these intentions.
For example, I thought it is a common knowledge that languages like JS, Ruby and Python in general quite slow in comparison to languages like C++/Rust/D. So I  thought that Dart is from the first category languages. It doesn’t mean that it is bad or something.

I don't know why you're asking about that, it has nothing to do with this thread. My original question was why D was running 2 to 3 times slower than Dart, which I found strange... but it seems quite a few Dart examples in this repo are faster than D... you then made an unfounded claim that Dart is much slower than D.

Answering at your question: it is because bad implementation in D, or some rules of the benchmark.
In theory D could have the same speed as C (aka C++/Rust level), which is the fastest languages currently presented in the benchmark.
Of course some implementations of standard library (Phobos) of D is not designed to be as much performant as possible. For that cases you need to create your own implementations usually.
But in general D could have same speed as C++/Rust.

@cyrusmsk no offense taken, I understand where your impression comes from and I think you're right that Dart is normally placed in the same category as JS and Python... but the interesting thing is that since Dart's turn to a fully static type system with null-safe and compilation directly to binary executables, it became a lot closer to languages like D and Go, actually... I think it's doing very well in the performance metrics I've seen (including this benchmark) so perhaps it's time for Dart to be considered in a different light.
I want to also mention I have nothing against D, to the contrary I am currently learning it and I like it a lot... and I understand that you're correct that it can achieve the same performance as C if you get out of your way to optimise it (though as you mention, the stdlib seems to not prioritize performance).
I know Dart much better than I know D, but am thinking of using D more and more because of its ability to go "lower" than Dart (and my other languages, Java, Kotlin, JS, Groovy...) and my unfortunate distaste of Rust, which would absolutely be the most obvious choice today (it's a great language, but the combination of requiring a large number of libraries for anything and the annoyingly slow compiler made me unable to continue using it). That should explain why I reached out to figure out what was going on with D not being much faster than Dart from my initial impressions! It's a lot clearer now what's going on.


SendDirectMessageService doesn't work correctly with big messages

We use SendDirectMessageService to send TaskData zips to other endpoints using the MQTT protocol. It works fine for small files but doesn't work for bit ones.
Agrirouter Server sends back the following error:
Message with ID 0c4bc8cd-667e-47e1-be8b-10444398a160 contains a payload of size 2877440 bytes. Max allowed size is 1468000 bytes

Here is how we use SendDirectMessageService:
messagesService = new SendDirectMessageService(mqttService);
var sendMessageParameters = new SendMessageParameters
{
    OnboardResponse = connect.OnboardResponse,
    ApplicationMessageId = MessageIdService.ApplicationMessageId(),
    TechnicalMessageType = TechnicalMessageTypes.Iso11783TaskdataZip,
    Recipients = new List<string> { endpointId },
    Base64MessageContent = content
};

sendMessageParameters.ApplicationMessageId = Guid.NewGuid().ToString();
await messagesService.SendAsync(sendMessageParameters);

Are we doing anything wrong or is it a bug in the SDK?
PS. We looked into the sources of the SDK - looks like the file is split into chunks, they are put into separate messages, but then all those messages are sent as a single MQTT message to Agrirouter. Could it be a source of the problem?

I have some additional information.
The file we tried to send was ~2Mb. But if we try to send a bigger file (~5.7 Mb), it works fine! So, can't it be some problems with message size estimation, e.g. https://github.com/DKE-Data/agrirouter-sdk-dotnet-standard/blob/25ab71af5a55fb6171292285613ca0c789148f07/agrirouter-sdk-dotnet-standard-impl/Service/Messaging/Abstraction/SendMessageBaseService.cs#L195-L199 ?
Anyway, there is another related problem: the SDK generates a new ApplicationMessageId for each chink and doesn't return them from Send()/SendAsync().

I think I discovered another problem in the implementation. Documentation states that if the TMT is encoded as a base64 string, then the content of every chunk must be a valid base64 string. This means that we need to take raw content, split it into chunks and base64-encode each chunk separately. But SendMessageBaseService.ChunkMessageContent() doesn't decode the content. Instead, it splits twice base64-encoded strings (for TMTs that are base64-encoded).
https://github.com/DKE-Data/agrirouter-sdk-dotnet-standard/blob/main/agrirouter-sdk-dotnet-standard-impl/Service/Messaging/Abstraction/SendMessageBaseService.cs#L208


Keyboard not working with NumberInput

Hello,
I'm working with iced_aw 0.9.3 and iced 0.12.1 and experiencing an issue with the NumberInput.
I can't write inside using the numpad or upper line of my keyboard; whether it's focused or if the mouse is over it.
I even tried to fork the repository and run the example and, I came to the same issue.
So before trying to fix it myself, I was wondering if it's my fault or not.
I'm running it on Archlinux with Rustc 1.79.0.
The issue also occurred on a computer running Windows.
Thanks in advance

You can write inside, but there are limitations atm till we figure out how to deal with them.
You can not write a - or a . Inside the text box. This is due to floating points and signed versus unsigned. We do not yet have a way to easily know the difference from a generic.
You can only write numbers, but that is limited to the min and max settings of the number input.

Maybe it's because of my French layout, but the numbers above the keyboard do not work and in the num pad I can only write 4 and 6 (2 and 8 acting as arrows and the rest does nothing)

Ahh yeah, idk if Iced supports different Layouts other than the qwerty English layout.

We do accept PR's so that is fine. I just dont know what the cause would be.

I don't know either, hence my question

oh I think you are right though the numberpad numbers do not output at all. I'll see why.

I found out why, and I'm going to correct it.
It's because the key on the number pad are named even when the number are activated, so the code never reach the part where it tries to add the number

we need to ensure that numlock is enabled before we look at the numbers though. I will let you know what I find in winit on how to know this.

With Numpad activated :
KeyPressed { key: Named(ArrowDown), location: Numpad, modifiers: Modifiers(0x0), text: Some("2") }

without
KeyPressed { key: Named(ArrowDown), location: Numpad, modifiers: Modifiers(0x0), text: None }

ok yeah they had no means or actually knowing but i guess this works with Text so its good that works.


fix werkzeug version

Pull Request Test Coverage Report for Build 985829176

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

Totals

Change from base Build 985712597:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


The operation couldn't be completed on iOS ()

Environment

Technology
Version

Flutter version
3.7.8

Plugin version
5.7.2+3  and 6.0.0-beta.22

Android version

iOS version
16.1.1

Device information:  Tested on iOS iphone 14, Android works fine
Description
Multiple taps in row (fast taps) cause an error. It is like webview is dellocated from memmory. Same error for navigating in webView and for loading new url.
Expected behavior:
WebView should load/redirect to new url.
Current behavior:
WebView crash with and error "The operation couldn't be completed (INSURLErrorDomain -999)"
Steps to reproduce

Load initial url
fast tap on webView to navigate to new url.
WebView crash

Images

Stacktrace/Logcat
"FlutterWebViewController - dealloc"
"WebViewChannelDelegate - dealloc"
"FindInteractionControl - dealloc"
"InAppWebView - dealloc"
"PullToRefreshControl - dealloc"
2023-03-30 11:16:17.655482+0200 Runner[30519:10068632] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2023-03-30 11:16:17.655552+0200 Runner[30519:10068632] [ProcessSuspension] 0x1230c04e0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=30536, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2023-03-30 11:16:47.624079+0200 Runner[30519:10068348] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

Faced the same issue:
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

Same problem

@DKrivec so, this has been fixed as the issue is closed?

Sorry for late response. There was some error in my code. After replace of my code with example code everything works fine. Try to copy example code from  git repo and then modify line by line to detect where is the problem.


An empty post in the Latest Post list top

There is always an empty post in the Latest Post list. It has no cover image, no title, and the creation time show as "Jan 01, 0001".

hey there, Can you give me any references?

Thanks you for your reply. I solved the problem.
Because I created a new "post" folder in the "content" directory, but did not create a new "_index.md" file in the "post" folder, there will be an empty top post in the Latest post list.
I solved this problem by creating a new "_index.md" file in the "post" directory. You can assess whether this is a problem that needs to be solved. This issue can now be closed. Thank you.


guiconstants.h: Fix datadirpath / registry issue

On Windows Namecore modifies/creates a Bitcoin registry entry (strDataDir) making Bitcoin disfunctional (if the Namecoin folder is not yet present).

ACK.  Thanks!


AttributeError: Can't gather from tf tensor.

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
binary
TensorFlow version
tf 2.13
Custom code
Yes
OS platform and distribution
<IP_ADDRESS>-microsoft-standard-WSL2
Mobile device
No response
Python version
3.8.17
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
12.2
GPU model and memory
No response
Current behavior?
Traceback (most recent call last):
File "o2k.py", line 11, in
k_model = onnx_to_keras(onnx_model, ['onnx::Cast_0', 'onnx::Cast_1'], name_policy='renumerate', verbose=True)
File "/root/miniconda3/envs/onnx/lib/python3.8/site-packages/onnx2keras/converter.py", line 175, in onnx_to_keras
AVAILABLE_CONVERTERS[node_type](
File "/root/miniconda3/envs/onnx/lib/python3.8/site-packages/onnx2keras/reshape_layers.py", line 87, in convert_gather
raise AttributeError('Can't gather from tf tensor.')
AttributeError: Can't gather from tf tensor.
Standalone code to reproduce the issue
please run the codes below to reproduce:

from onnx2keras import onnx_to_keras
import keras
import onnx
import sys
# sys.path.append("/root/MR")
onnx_model = onnx.load('fasttext_torch.onnx')
onnx_inputs = onnx_model.graph.input
print("===========================")
print(onnx_inputs)
# onnx_model = onnx.load('vgg11.onnx')
k_model = onnx_to_keras(onnx_model, ['onnx::Cast_0', 'onnx::Cast_1'], name_policy='renumerate', verbose=True)
keras.models.save_model(k_model, 'fasttext_torch.h5', overwrite=True, save_format="h5")

onnx file can be downloaded at https://pan.xunlei.com/s/VNf1LHoMqVe2TuzMTA8uhjO5A1?pwd=ibm3#

### Relevant log output

```shell
Traceback (most recent call last):
  File "o2k.py", line 11, in <module>
    k_model = onnx_to_keras(onnx_model, ['onnx::Cast_0', 'onnx::Cast_1'], name_policy='renumerate', verbose=True)
  File "/root/miniconda3/envs/onnx/lib/python3.8/site-packages/onnx2keras/converter.py", line 175, in onnx_to_keras
    AVAILABLE_CONVERTERS[node_type](
  File "/root/miniconda3/envs/onnx/lib/python3.8/site-packages/onnx2keras/reshape_layers.py", line 87, in convert_gather
    raise AttributeError('Can\'t gather from tf tensor.')
AttributeError: Can't gather from tf tensor.

This at most belongs to keras, not TF

Hi @pzy2000 ,
We can't say for sure whether it is related to tensorflow or keras since there is another library i.e onxx involved here.
Could you please submit a code without external libraries dependencies to reproduce the reported issue.We are not sure whether its bug in onxx or TF/keras.
Thank you!


Options to binary ops kwargs

Currently the default is join="inner". However, there can be applications where the majority of binary operations require join="outer", not "inner".
Addresses https://github.com/pydata/xarray/issues/1059
The solution we come up with is adding a default key/value to OPTIONS, and dynamically access/update it in code (_binary_op in both dataarray.py and dataset.py)
We've also added test modules in test_dataarray.py and test_dataset.py.  All tests passed.

Let's find a more descriptive name for this option than merely join. Maybe: compute_join, compute_align, arithmetic_join, math_join, ...?
Also please add documentation notes about this new functionality to this section of the docs and the "what's new" page.

Out of curiosity, how do I test inner-join vs. outer-join using only 1-D arrays?  I can certainly simplify the current tests to be 2D + 1D.

Set coordinates on the 1D -- something like [0,1,2] for the first, [1,2,3]
for the second. Then the inner join should have [1,2] vs [0,1,2,3] for
outer join.
On Fri, Oct 28, 2016 at 12:00 PM chunweiyuan<EMAIL_ADDRESS>wrote:

Out of curiosity, how do I test inner-join vs. outer-join using only 1-D
arrays? I can certainly simplify the current tests to be 2D + 1D.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pydata/xarray/pull/1065#issuecomment-257001251, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABKS1qyX-HigWTUAJnBuCpR4AqNFzyYaks5q4kXigaJpZM4Ki4oh
.

It occurs to me now that the other reason why people avoid global variables is because of concerns around thread safety and distributed computation. Even with the context manager, bad things will happen if you use set_options simultaneously from different threads.
I need to think about this a little more. Copious warnings in the docs might be enough, or maybe entering a set_options context should also enter an explicit threading.Lock() context.
On the other hand, the current implementation is basically identical to how functionality like NumPy's np.errstate() works, and people seem to be pretty happy with that.
@mrocklin does this seem like the sort of change we can do in xarray without seriously regretting it later? Xarray uses basically the same set_options machinery that dask has.

I haven't noticed people getting caught by using set_options from multiple threads.  It definitely isn't threadsafe but it's usually only used when constructing computations, which is often done from a single thread.
It would be good to ensure that this affects the graph and that the actual tasks don't depend on the global state.

It would be good to ensure that this affects the graph and that the actual tasks don't depend on the global state.

Indeed, we are safe here. align is turned into a bunch of NumPy or dask.array calls, so this option will simply effect how the graph is built.

Just checking in.  Is there something else that needs to be added to this PR before merge?

My concern is how this setting currently does not change how we join variables in Dataset math. Consider the current behavior -- it always does an inner join of the data variables:
In [2]: import xarray as xr

In [3]: ds1 = xr.Dataset({'foo': 1, 'bar': 2})

In [4]: ds2 = xr.Dataset({'bar': 2, 'baz': 3})

In [5]: ds1
Out[5]:
<xarray.Dataset>
Dimensions:  ()
Coordinates:
    *empty*
Data variables:
    bar      int64 2
    foo      int64 1

In [6]: ds2
Out[6]:
<xarray.Dataset>
Dimensions:  ()
Coordinates:
    *empty*
Data variables:
    bar      int64 2
    baz      int64 3

In [7]: ds1 + ds2
Out[7]:
<xarray.Dataset>
Dimensions:  ()
Coordinates:
    *empty*
Data variables:
    bar      int64 4

Logically, it makes sense for this option to switch this to an outer join instead.

Alright, if that's desired, I'd just change code in apply_over_both() of dataset._calculate_binary_op to react to different kwarg values, and adding a method in test_dataset.py.  Should be able to push before the weekend is over.

Thank you @chunweiyuan!

woohoo!


Many2Many performs extra Updates.

type Language struct {
    Id   int
    Name string
}

type User struct {
    Id        int
    Name      string
    Languages []Language `sql:"many2many:user_languages;"`
}

db.Model(&user).Association("Languages").Append([]Language{languageZH})

Last line will perform the following queries:

UPDATE users SET ...
UPDATE languages SET ..
INSERT INTO user_languages ...

@jinzhu any idea why I am getting extra updates ?
Note: &user and languageZH remains unmodified.

Should be caused by the dirty implement of Append, let me think a better solution to avoid the unnecessary Update
Thank you for your report.

Should be caused by the dirty implement of Append, let me think a better solution to avoid the unnecessary Update
Thank you for your report.

:+1:

Is it possible to define a self-referencing many2many relationship?
I'm doing
type User struct {
	Id int64
	Contacts []User `gorm:"many2many:user_contacts;"`
}

but getting pq: column "user_id" specified more than once error.

I've found  the solution of self-referencing many2many relationship. :smiley:
type User struct {
    Id int64
    Contacts []User `gorm:"foreignkey:user_id;associationforeignkey:contact_id;many2many:user_contacts;"`
}

Awesome! Thanks @dorajistyle :dancer:
Worked a charm!

Any updates on a way to do this with out the extra update?

Hi All,
The issue should be fixed, thank you.

is this working for anyone?  I am still experiencing extra updates.  I just want to create an association between two models (insert a record in the intersection table).  The following fires extra updates
db.Model(&model.Business{Id: businessId}).
		Association("Users").
		Append(model.User{Id: userId})

It still does extra and unwanted updates for me too, it tries to update both tables before inserting the joint record, instead of only inserting the joint record.


Run with import without gpu

This PR enables a user to run our GPU docker container without GPUs and successfully be able to run all tests. Previously we had try catches in a few places in the code for importing GPU specific packages. This PR remediates those try catches because in an environment where you have the package but no GPU you end up getting ccuda.pyx init failure. This is because, the package (i.e. cudf, dask_cudf, rmm) do exist but when they try to access information about GPUs it fails and throws an error something like:
collecting ... Traceback (most recent call last):
  File "cuda/_cuda/ccuda.pyx", line 3671, in cuda._cuda.ccuda._cuInit
  File "cuda/_cuda/ccuda.pyx", line 435, in cuda._cuda.ccuda.cuPythonInit
RuntimeError: Failed to dlopen libcuda.so
Exception ignored in: 'cuda._lib.ccudart.utils.cudaPythonGlobal.lazyInitGlobal'
Traceback (most recent call last):
  File "cuda/_cuda/ccuda.pyx", line 3671, in cuda._cuda.ccuda._cuInit
  File "cuda/_cuda/ccuda.pyx", line 435, in cuda._cuda.ccuda.cuPythonInit
RuntimeError: Failed to dlopen libcuda.so
Fatal Python error: Segmentation fault

This PR leverages the compat file, and makes it the single point of import for the main packages (cudf, cupy) and it adds a security around it that ensures you can only import those packages if GPUs are detected. So if you find yourself in a scenario where the package is installed but no GPUs are detected you can, now, still safely use the core package. Therefore, we can now run our containers with and without the --gpus=all flag in docker. This was a customer ask and it helps developers when trying to test cpu only environment on a resource that has GPUs.

Fatal Python error: Segmentation fault

The segmentation fault was fixed in cuda-python 11.7.1 , however that requires use of cudf 22.12 and above. With that in mind I think it might be ok to keep the import as it is and say that support for CPU-only environments that have cudf installed requries cudf >=22.12 ?

Having the cudf imports wrapped with HAS_GPU means that we are encapsulating in this the idea of having at least one visible device with the ability to import cudf for example

I've been recently working toward a similar goal in https://github.com/NVIDIA-Merlin/core/pull/244 , https://github.com/NVIDIA-Merlin/core/pull/243 and https://github.com/NVIDIA-Merlin/core/pull/236

Part of those changes involved adidng checks for HAS_GPU where relevant alongside checks of cudf. At one point HAS_GPU was the variable we were using to included the information of both whether we have a GPU, and cudf importable. We split that out in https://github.com/NVIDIA-Merlin/core/pull/211 . And  I suppose this is moving what was once HAS_GPU into compat.cudf. Which is clearer than what we had before in the HAS_GPU variable.
One reason we might consider keeping the compat.cudf separate from compat.HAS_GPU is mostly about edge cases and reporting of errors. here for example in the Dataset . And I've seen cases where pynvml fails to initialize for some reason, but cudf is still available. Which may result in some confusion if cudf includes this notion.  On the other hand, being able to refer to compat.cudf without checking compat.HAS_GPU does simplify our checks in tests quite a bit so on balance could be reasonable, if less explicit. And any code that does need to check for cudf availability (not including of visible CUDA devices), we can achieve that with a separate import elsewhere I suppose.

Having the cudf imports wrapped with HAS_GPU means that we are encapsulating in this the idea of having at least one visible device with the ability to import cudf for example

I mean, we cant ever use cudf without having a GPU, so that seems like the correct usage. Do you see a time when we can use cudf without a GPU?

Part of those changes involved adidng checks for HAS_GPU where relevant alongside checks of cudf. At one point HAS_GPU was the variable we were using to included the information of both whether we have a GPU, and cudf importable. We split that out in #211 . And I suppose this is moving what was once HAS_GPU into compat.cudf. Which is clearer than what we had before in the HAS_GPU variable.
One reason we might consider keeping the compat.cudf separate from compat.HAS_GPU is mostly about edge cases and reporting of errors. here for example in the Dataset . And I've seen cases where pynvml fails to initialize for some reason, but cudf is still available. Which may result in some confusion if cudf includes this notion. On the other hand, being able to refer to compat.cudf without checking compat.HAS_GPU does simplify our checks in tests quite a bit so on balance could be reasonable, if less explicit. And any code that does need to check for cudf availability (not including of visible CUDA devices), we can achieve that with a separate import elsewhere I suppose.

So if there is ever a time we cannot detect a GPU, we should not import cudf. Chances are it will also fail inside on internal imports in cudf. We should work to make sure that we detect GPUs and dask nvml should not have problems detecting GPUs. I have not seen that. We are no longer using pynvml to detect GPU.

@oliverholworthy in terms of the edge case you outlined https://github.com/NVIDIA-Merlin/core/blob/ec9a360485bc48e67bb6fe4b5c5ca092eca2a97c/merlin/io/dataset.py#L249-L261 We would first check to see if HAS GPU was available and if it was, then we would check on cudf. This is the exact same as what happens on compat. We first decide if you have GPUs then we try to import the package. I dont see how this is an edge case. The only thing we could change is the error message since we now rely on nvml in dask instead of pynvml.

we cant ever use cudf without having a GPU, so that seems like the correct usage. Do you see a time when we can use cudf without a GPU?

Yeah that's true, aside from the segfault in earlier versions of cudf. you still can't use cudf without a gpu even it it's importable.

I'm onboard with this change to wrap the imports in compat with HAS_GPU.


Using Client_ID for different szenarios (test, staging, prod)

Hi,
thanks for your work.
In your plugin the CLIENT_ID is mandatory. Do you know a best practice to change this on runtime of Xcode-Build without removing and adding the plugin everytime with new ID?
Because I currently try to build a CI project with using schemes in Xcode, but didn't really know how to change this parameter when using & building with this plugin with less effort. So I will end up in using two projects.

Hello!
I'm not super familiar with Xcode development, so I apologize if I'm not as helpful here, but I'll try to help figure out how to do this.
Are you using any framework on top of Cordova, or is this a vanilla Cordova app that you're building?
Also, is this a project for iOS-only for both platforms?

Hi, sorry for the late reply. I now doing dirty tricks with hooks and now it's working. So you can close this topic. Thanks!


onPrerenderStart hook not called

I am in the process of migrating from plain vike + react to vike-react, in order to remove some of the boilerplate. My app supports prerendering (SSG) and i18n. For that purpose I was using the onPrerenderStart hook, which was working fine.
However it seems that after integrating vike-react this onPrerenderStart hook stopped getting called altogether on build. I have properly configured vike({ prerender: true }), and even set ssr: true (even though it is apparently the default), but to no avail.
Here is a reproducer which reuses the example boilerplate in vike-react/examples/minimal: https://github.com/FlorianCassayre/vike-react-onPrerenderStart
The latest commit contains the actual changes and demonstrates that when running npm run build the hook is not called (expected behavior would be to throw an error).
It seems on the other hand that onBeforePrerenderStart works.

@FlorianCassayre Indeed, something's wrong. Let me dig into this.

Fix pre-released as 0.4.176-commit-1442a4a.
Btw. in case your company is up for it, Vike is looking for sponsors — it makes a massive difference!

Excellent, thanks for the quick fix. I'll patch my dependencies.

We're not using Vike at work (yet), however I'm happy to sponsor the project as an individual.

Thank you, it's much appreciated :green_heart:

This fixed a problem I was having (thank you!) but causes npm errors because I use vike-react which needs peer<EMAIL_ADDRESS>How often are Vike releases?

I use --force for the time being, I think I read somewhere that you could not override peer dependencies coming from monorepositories. You can also use patch-package to apply the one-liner fix.


Problem? when trained  on vid, det, coco and youtubebb, got my  EAO=0.164 in epoch 19

Can you tell me what problem? when trained siamrpn_r50_l234_dwxcorr_gpu on vid, det, coco and youtubebb, i only got  EAO=0.164 in epoch 19 in VOT2018. EAO=0.202 in epoch 14 in VOT2018.
i use siamrpn_r50_l234_dwxcorr_gpu to train, only modify row 136 in config.py  _C.DATASET.NAMES = ('VID', 'COCO', 'DET', 'YOUTUBEBB', 'MOT')  to _C.DATASET.NAMES = ('VID', 'COCO', 'DET', 'YOUTUBEBB')

No, that shouldn't affect the results. Maybe you are using the old version youtube crops that we provided ? Try with the new uploaded version. The old version is not correct.

@lb1100
Try with the new uploaded version.
when you upload the new uploaded version of youtube_bb?
thanks

@lb1100 Thank you for your rely.
1、I downloaded youtube dataset depend on your command(wget https://research.google.com/youtube-bb/yt_bb_detection_train.csv.gz)， Is it wrong?
2、I just only use one GPU1080TI, It takes six days to train once. Is it can get the best result?（config：siamrpn_r50_l234_dwxcorr_gpu）
thanks

I replied you just after uploading the new version. It's uploaded yesterday. So try the new version. Sorry for the inconvenience.

@lb1100
where is the new version? I cannot find it ,
thanks

Can you say the catalogue level of cropped YOUTUBE-BB in /training_dataset/yt_bb?

can you tell me how to train? I have some own video dataset and want to train in it. but i don't know how it works.

@chenbolinstudent
https://github.com/STVIR/pysot/blob/master/TRAIN.md
YOUTUBEBB (New link for cropped data, BaiduYun, extract code: 6dd5. NOTE: Data in old link is not correct. Please use cropped data in this new link.)
Please clik the BaiduYun

@Manguotree my catalogue level is as follows:
pysot-master
..trainning_dataset
....yt_bb
......crop511  train.json
........train0000~train0099

@liuyun19951104
This project is very detailed. I refer to its steps completely.

@qiusenhui
thanks , and when use these dataset，whether you can get the EAO=0.414?
whether I should change other ?
(such as  describe in #34  :Hi， is it your convenient to supply a download link about your croped youtube dataset? bug)
The width and height in the train.json file is the original value. You need to calculate the resize factor to resize the width and height. Refer the dataset.py to get the correct size.
thanks!

and the val dataset is not used in the code,right?

@chenbolinstudent

I am training now, the result will be publish.
youtube dataset do not need to modify, they have croped. link as above

@chenbolinstudent

I am training now, the result will be publish.
youtube dataset do not need to modify, they have croped. link as above

I have trained with new youtube dataset,but EAO=0.360.

what is the problem?
how much gpu you use?

what is the problem?
how much gpu you use?
2 pieces of 2080TI

@chenbolinstudent

I am training now, the result will be publish.
youtube dataset do not need to modify, they have croped. link as above

I have trained with new youtube dataset,but EAO=0.360.

I got EAO=0.344 on VOT2018. Would it be convenient for you to leave a contact information?I would like to ask you some questions  in details.（my wechat: gbzm571240083）

I still have a question. I want to train in my own dataset. Should i must crop it as 511511? My picture is 288288, is there any  question?

another question. Is val set is essential for training process?I don't set it

Since no further question is asked, I'm closing it for now.
Please reopen it or create a new issue if you have further question.

@liuyun19951104   Hi, do you know how to train siamrpn++ with your own dataset now?


NatNetwork NatGatewayIpAddress do not work - Element not found

Windows Version
Microsoft Windows [Version 10.0.19045.3930]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-1
Distro Version
kali-rolling 2023.4
Other Software
No response
Repro Steps
admin command prompt:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all
restart if prompted
go here and install the download from step 4.1.:
https://aka.ms/wsl2kernel
restart if prompted
normal command prompt:
wsl --set-default-version 2
go here and click install to open MS store:
https://apps.microsoft.com/store/detail/windows-subsystem-for-linux/9P9TQF7MRM4R
if the store page shows Get, click it
normal command prompt:
wsl --update
go here and click install to open MS store:
https://apps.microsoft.com/store/detail/kali-linux/9PKR34TNCV07
if the store page shows Get, click it
run kali once
admin command prompt:
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Lxss /t REG_SZ /v NatGatewayIpAddress /d <IP_ADDRESS> /f
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Lxss /t REG_SZ /v NatNetwork /d <IP_ADDRESS>/20 /f
restart
run kali
Expected Behavior
Expect WSL to use the configured subnet.
Actual Behavior
This output and the registry settings are changed:
wsl: Failed to create virtual network with address range: '<IP_ADDRESS>/20', created new network with range: '<IP_ADDRESS>/20', Element not found.
wsl: Failed to create network endpoint with address: '<IP_ADDRESS>', assigned new address: '<IP_ADDRESS>'
Diagnostic Logs
WslLogs-2024-02-10_13-10-52.zip

I'm pretty sure is intentional. I'm pretty sure we haven't documented this, because we don't want people to rely on it. We've had a lot of discussion about this internally. Would you rather have wsl not launch?

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Lxss /t REG_SZ /v NatGatewayIpAddress /d <IP_ADDRESS> /f
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Lxss /t REG_SZ /v NatNetwork /d <IP_ADDRESS>/20 /f

<IP_ADDRESS>/20 is not correct CIDR notation for a subnet. You set the number of mask bits to 20, but then set bits after the prefix to non-zero values.
What you probably meant is <IP_ADDRESS>/24, which is the subnet containing the IP addresses <IP_ADDRESS> - <IP_ADDRESS>.
(If you wanted to create a subnet of size /20 that includes <IP_ADDRESS>, it would be <IP_ADDRESS>/20, which contains the IP addresses <IP_ADDRESS> - <IP_ADDRESS>. You can use a calculator like this to check your CIDR notation.)
This might be the reason why WSL failed to create the virtual network.

@ReneZeidler Thank you so much! I can't believe I overlooked such a simple mistake for so long.
This feature works beautifully with WSL 2 in NAT mode (the default) to make sure the subnet being used doesn't conflict with something else in the environments you connect to. On or off VPN (Cisco AnyConnect / Secure Client here) it routes the packets and DNS as you'd expect. Thank you for making this feature available WSL team!
If this stays open, I guess the feature request would be to have it warn if an invalid NAT/gateway combo are configured.


Issues with Adblock extension

Laravel Version: 8.x
PHP Version: 7.4
Laravel-admin: v1.8

Description:
Use browser has install extension Adblock Plus when delete action, edit action not working.
But disable extension Adblock Plus is working !
Steps To Reproduce:

Also faced the issue and didnt quite understand why

I used Ublock Origin (kind of adblocker), never have this issue, perhaps it's the extension itself.


Fix test compilation with USE_INTERNAL_URDF

🦟 Bug fix
Fixes compilation with USE_INTERNAL_URDF == True
Summary
I noticed that the 10.7.0~pre1 debbuilds failed to compile some tests with complaints about finding urdf headers:

 https://build.osrfoundation.org/job/sdformat10-debbuilder/242

src/parser_urdf.cc:30:10: fatal error: urdf_model/model.h: No such file or directory
 #include <urdf_model/model.h>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/CMakeFiles/UNIT_ParamPassing_TEST.dir/build.make:257: recipe for target
 'src/CMakeFiles/UNIT_ParamPassing_TEST.dir/parser_urdf.cc.o' failed

It turns out the debbuilds are using USE_INTERNAL_URDF == TRUE since pkg-config is not listed as a build-depend in the debian metadata. I will resolve that shortly. In the meantime, this ensures that the USE_INTERNAL_URDF logic for include and windows compiler definitions used for libsdformat10 is repeated for tests that add parser_urdf.cc via target_sources.
Update: I've simplified the cmake logic using an interface library called using_parser_urdf.
Checklist

[X] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[X] codecheck passed (See contributing)
[X] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Codecov Report

Merging #800 (3df36ec) into sdf10 (1a2c406) will decrease coverage by 0.10%.
The diff coverage is n/a.

:exclamation: Current head 3df36ec differs from pull request most recent head 5c5894b. Consider uploading reports for the commit 5c5894b to get more accurate results

@@            Coverage Diff             @@
##            sdf10     #800      +/-   ##
==========================================
- Coverage   88.30%   88.20%   -0.11%
==========================================
  Files          66       70       +4
  Lines       10571    10641      +70
==========================================
+ Hits         9335     9386      +51
- Misses       1236     1255      +19

Impacted Files
Coverage Δ

src/urdf/urdf_model/link.h
20.00% <0.00%> (ø)

src/urdf/urdf_model/pose.h
79.62% <0.00%> (ø)

src/urdf/urdf_model/model.h
100.00% <0.00%> (ø)

src/urdf/urdf_model/types.h
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a2c406...5c5894b. Read the comment docs.

@osrf-jenkins run tests please

@osrf-jenkins run tests please

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-01-10/1228/1

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-03-25-fortress-edifice-citadel/1343/1

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1


Content - Add statistics about the catalyst process

Number of CAs, vCAs, Proposals per fund

Voters, wallets, participating ada

Bounty Level: Important
Complexity: Simple
Bounty: 50 Ada
Bounty Bonus: 5 Ada
Admin bounty: 50 Ada
Increase increment: internal


[QUESTION] Update for v12 ?

I wanted to know if this module was abandoned and if there was itnention to update it for v12.

I join the question.... but it seems that marcstraube has been absent since dec 2023

I have test it with Foundry VTT 12 and it work so i have create a PR to update it.
For those who don't want to wait from it to be avaliable here i have also create a release on my fork.
Fork scenery for Foundry VTT 12

Its not abandoned! I just didn't have the time to work on it. I will release an update in the next couple of days.

Nice 👏🏻

Scenery 1.2.0 with support for FoundryVTT v12 just released.


Fix Phabricator link

Make the link direct to task creation form which looks more intuitive than a workboard

Closing for age and conflicts. Please submit a new PR to get this through. It seems like a good idea.


Create logger

Implementation of the firebase logger to enable logs in cloud functions.
Some typo fixing
An issue appears in tests #17

I changed the description as I feel like descriptions should describe the option and not ask a question

Same as for the logger ads. On all the official extensions I've looked all the variables are defined as questions so I thought it was better to keep consistency for the users. But we can change it.

bors merge