improve rlimit handling in smtio.py

This should fix #692 and cleanup #691.
Please test @hotwolf @arjenroodselaar @mmicko.

Works under WSL

Will try out tonight to confirm, but looks there is some issue how it is
handled in python 3.x  that causes trouble
On Wed, Nov 7, 2018 at 3:34 PM Clifford Wolf<EMAIL_ADDRESS>wrote:

@cliffordwolf commented on this pull request.
In backends/smt2/smtio.py
https://github.com/YosysHQ/yosys/pull/693#discussion_r231527744:

 if sys.getrecursionlimit() < smtio_reclimit:

     sys.setrecursionlimit(smtio_reclimit)

if resource.getrlimit(resource.RLIMIT_STACK)[0] < smtio_stacksize:

   resource.setrlimit(resource.RLIMIT_STACK, (smtio_stacksize, smtio_stacklimit))

smtio_stacksize = 128 * 1024 * 1024
current_rlimit_stack = resource.getrlimit(resource.RLIMIT_STACK)
if current_rlimit_stack[0] != resource.RLIM_INFINITY:

   if current_rlimit_stack[1] != resource.RLIM_INFINITY:

       smtio_stacksize = min(smtio_stacksize, smtio_stacklimit)

   if current_rlimit_stack[0] < smtio_stacksize:

       resource.setrlimit(resource.RLIMIT_STACK, (smtio_stacksize, current_rlimit_stack[1]))

@mmicko https://github.com/mmicko That sage issue is about the message
for EINVAL, but @arjenroodselaar https://github.com/arjenroodselaar
says in our case we get EPERM.
Anyway, I've now pushed another commit that limits the stack size we
attempt to set to 16 MB on Darwin. Grrr. This is not very satisfying..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/YosysHQ/yosys/pull/693#discussion_r231527744, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADdKSMxcs8hfkpsQzqXv-Rgn_imi_CHYks5usu-NgaJpZM4YQCFy
.

Confirming working fine on macOS
On Wed, Nov 7, 2018 at 3:36 PM Miodrag Milanovic<EMAIL_ADDRESS>wrote:

Will try out tonight to confirm, but looks there is some issue how it is
handled in python 3.x  that causes trouble
On Wed, Nov 7, 2018 at 3:34 PM Clifford Wolf<EMAIL_ADDRESS>wrote:

@cliffordwolf commented on this pull request.
In backends/smt2/smtio.py
https://github.com/YosysHQ/yosys/pull/693#discussion_r231527744:

 if sys.getrecursionlimit() < smtio_reclimit:

     sys.setrecursionlimit(smtio_reclimit)

if resource.getrlimit(resource.RLIMIT_STACK)[0] < smtio_stacksize:

   resource.setrlimit(resource.RLIMIT_STACK, (smtio_stacksize, smtio_stacklimit))

smtio_stacksize = 128 * 1024 * 1024
current_rlimit_stack = resource.getrlimit(resource.RLIMIT_STACK)
if current_rlimit_stack[0] != resource.RLIM_INFINITY:

   if current_rlimit_stack[1] != resource.RLIM_INFINITY:

       smtio_stacksize = min(smtio_stacksize, smtio_stacklimit)

   if current_rlimit_stack[0] < smtio_stacksize:

       resource.setrlimit(resource.RLIMIT_STACK, (smtio_stacksize, current_rlimit_stack[1]))

@mmicko https://github.com/mmicko That sage issue is about the message
for EINVAL, but @arjenroodselaar https://github.com/arjenroodselaar
says in our case we get EPERM.
Anyway, I've now pushed another commit that limits the stack size we
attempt to set to 16 MB on Darwin. Grrr. This is not very satisfying..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/YosysHQ/yosys/pull/693#discussion_r231527744, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADdKSMxcs8hfkpsQzqXv-Rgn_imi_CHYks5usu-NgaJpZM4YQCFy
.

Sorry, I wasn't fast enough to try out the "rlimit" branch before it was removed. But,I can confirm that my WSL problem is resolved in the current "master" branch.


repo: create a celestia specific changelog

Currently, we don  not really keep track of the LL specific changes in a changelog.
Some changes we tracked in the tendermint and most we did not track at all. Keeping track of the changes in the tendermint changelog is not desired for many reasons: merge conflicts, hard to understand what the LL specific changes were, and much more. Having a separate LL-specific changelog is what we want.

can close since #534


moment("05-03-1997").isValid() in chrome returns true but at firefox returns False!

i used latest moment .js but still the issue exist , basically moment("05-03-1997").isValid() at chorme returns true , at fire fox retuns false , and for all "-" dates
i used moment("05-03-1997". replace(/-/g , "/") ).isValid()  as a work around ,
kindly i would like to participate on its fix , can anyone tell me form where i begin trace at momentjs repositoy ?
thanks in advance

Please review these docs: http://momentjs.com/docs/#/parsing/string/
If you aren't using one of the listed formats (ex, YYYY-MM-DD), then you must supply a format string.  Otherwise the value is passed down to the browser (where the behavior varies wildly) and you get a deprecation warning also.
Example:
moment("05-03-1997","DD-MM-YYYY").isValid()


Bug: Login page

Fix the login page when logging out after a page refresh.

closed with laravel-enso/core@69e4147


Move Demo to separate repository

The demo needs to be in a separate repository, as it will avoid lot of confusions.

Not going to happen as deprecation happened. So closing.


fix to ignore updating ssh config if file already exists

fix to ignore updating ssh config if file already exists

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 22.168%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
1143

Relevant Lines:
4601

💛  - Coveralls


Date text is rendered lower than other elements in status bar

Date text is rendered lower than other elements in the status bar as of Atom Version 1.17.0

Thank you for this. I'll look into it ASAP, as the rendering position has been an issue for quite a while. On which platform you experienced this problem?

I am experiencing this in Windows...

I'm fixing this right now. It seems to be a thing on OS X as well.

Removing all the CSS and adding the inline-block class to the clock element seemed to fix it for me.
atom-clock.less:
@import "ui-variables";

.atom-clock {
  // display: inline-block;
  // margin-left: 1em;
  // margin-right: 0.5em;
  // position: relative;
  // vertical-align: middle;
  //
  // .span {
  //   text-align: left;
  // }
}

atom-clock-view.js:
drawElement() {
    this.element = document.createElement('div')
    this.element.className = 'atom-clock inline-block'
    this.element.appendChild(document.createElement('span'))

    this.statusBar.addRightTile({
      item: this.element,
      priority: -1
    })
  }

See before (top) and after (bottom)

I actually did not change the code, just the style file, adding some stuff for the icon. The result seems to be pretty much the same.
@import "ui-variables";
@import "octicon-mixins";

.atom-clock {
  display: inline-block;
  position: relative;

  .icon:before {
    .icon-size(14px);
    top: 1px;
    margin-right: 3px;
  }

}

Actually, the atom-clock class should also have margin-left set to @component-padding, so that there will be space between the clock and the element to the left.

Seems to be reasonable. I still don't know whether this is the right solution, or the css style is useless.

The inline-block class seems to add margin-left: 1.5em so maybe the CSS could just be used to move the icon around. Up to you I guess


API Lvl 26+ issues with BatteryManager.isCharging() [T10.06]

I logged batteryManager.isCharging() in onCreate and it always returned false in API 26 and API 27.
Worked as expected in 23.
Somewhere between API 23 and 26, BatteryManager.isCharging() broke. The code using the intentFilter and registerReceiver worked as expected in API lvl 26 and 27.

Closing.
Dependencies have been updated to API 28. Android Gradle Plugin and gradle have also been updated.


unable to reinstall after update destroys my Dev pc:(

I have wasted a day, just because I said 'OK' to the latest update, now my dev PC is fucked. Running   InstallCleanup.exe -i did not work, deleting the install folder did not work. What a mess.The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26208.0)
Incomplete components
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26208.0)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26208.0)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26208.0)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26208.0)
You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.
Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.
Package 'Microsoft.Net.CoreSDK.50,version=1.0.23908' failed to install.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.CoreSDK.50;PackageAction=Install;ReturnCode=1632
Impacted workloads
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26208.0)
Impacted components
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26208.0)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26208.0)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26208.0)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26208.0)
Log
C:\Users\doug\AppData\Local\Temp\dd_setup_20180701185023_112_Microsoft.Net.CoreSDK.50.log
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.CoreSDK.50,version=1.0.23908\netfx_NETCoreSDK.msi, Properties:  REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1  MSIFASTINSTALL="7"
Return code: 1632
Return code details: The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder. - yet i have 200gb free!

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

ID: 2a3b0ef4-76d9-9c1e-4625-9cd56689b43a
Version Independent ID: e882e8dc-8fb1-231d-d0bb-1f3e9dfec90d
Content: Remove Visual Studio 2017 - Visual Studio
Content Source: docs/install/remove-visual-studio.md
Product: visual-studio-dev15
GitHub Login: @heaths
Microsoft Alias: tglee

For support, please use the Feedback tool from the Visual Studio installer to send necessary logs through the appropriate channel.

@timberzen Thanks for your feedback. You might have noted the response from HeathS, which is the best method of reporting errors to us so that it's routed to the right team. For more information about how to do this, please see the How to report a problem with Visual Studio 2017 page.


Home App Extension

Would be great to control HomeKit devices using raycast

Would be interesting to see.
sidenote: I access my Homekit devices via Home Assistant but of course you need a Home Assistant server running, which of course is not the same as your request.


finsihed faq questions required ui implementation

give @rohan2734 75 points

@mann27 @ExpressHermes  there is one small wierd problem, that is the plus signs are initially visible for the first two faq, and not the other two, but when u click the other two on the question, then the plus and minus signs show normal behaviour.
but i dont know why it is happening like this, is it due to margintop? on the question?

and can i add some animation?

No, we don't need animation here. Also, get rid of the image in the page.

The revert was a mistake and I haven't reverted anything. As I have merged these changes simply make a new PR and that will be considered into this only.


Sizing the profiles on the team section

The project managers and executives in the team sections are sized differently; it may be nice to keep them consistent with each other.
EDIT: I just realized it's very hard to tell the difference between my screenshots because GitHub compresses them to be the same size anyways. The first set are at like 1800px and the second are at like 795px if you want to see what I'm talking about on your own device

At large sizes, I prefer the way that the Project Managers are sized (there's a nice margin on the side)
At smaller screen sizes, I think the margin is less important, so I like how the execs are sized (PM's seem a little squished here)

Could you take a look at this and write it so that they have the same (or very similar) sizing/margin rules, and so that there is more of a margin at high screen widths and less of one at low screen widths? The css clamp function could be useful. You can also look at the rules Amanda used for the homepage's margins in general. LMK if you think you can do this.

I can take a look at this, but it won't be until after the showcase due to other priorities.

Ok that's fine. Can you merge your Event stuff ASAP so I can take a look at it?

Sorry, accidentally closed the issue. The events section is merged.

Ok so from my understanding, you want the execs to have larger margins for larger screen widths and the PMs to have smaller margins for smaller screen widths, correct? Also to be consistent with the rest of the code I have written, 750px is the breakpoint between larger and smaller screen widths.

Yup, that's correct, and we want the profiles for both to be the same size if possible.


Observability stack and op-geth dashboard

Creates a new docker compose project at observability-stack/.
PR includes dashboard with key Sync, Builder, RPC, and P2P metrics for the L2<>L2 Proposer (aka op-node).

Is GetPayloadV3/NewPayloadV3 also observable? The devnet uses V2s only because it's running pre ecotone (equivalent of dencun update). The production services mostly run with post ecotone which uses V3 apis.

Is GetPayloadV3/NewPayloadV3 also observable? The devnet uses V2s only because it's running pre ecotone (equivalent of dencun update). The production services mostly run with post ecotone which uses V3 apis.

Good to know, thanks for the heads up. They will also be observable.


But why?

Why would you do this?

To see if I could

For a more detailed answer, since a lot of people have asked:
I had been using terraform for a couple months. I found the terraform-provider-aws docs to be kinda disappointing so I frequented the codebase to see how it handled the data I provided.
From there, I got familiar with the CRUD style interface that terraform provides, and decided to implement one myself. I had already been familiar with Spotify as a fairly large API that I could try to wrap, so that was a natural choice for me to pick.

Nice one, might be good to throw in the top of the readme as a bit of an intro

I found the terraform-provider-aws docs to be kinda disappointing

We're always looking for ideas on ways to improve. If you have some themes, let us know!

@YakDriver I am now full time GCP engineer, and found with the AWS docs, there was a clear lack of examples talking about the code that you'd just told us how to use.
Take load balancing K8's
https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html - very in your face, so many words

https://cloud.google.com/kubernetes-engine/docs/concepts/ingress - explains what you're doing and why, then gives the code examples.


can't return 'false' as a body

In platform-api we try to answser a request with a body containing only a boolean.
{ headers: {}, body: true, status: 200 }
If the boolean is false, there will be no body added to the response because of this check in the request-response-handler:
if (body) { ...add body code... }
Not sure if a body like this is good practice but it might be good to at support it.
┆Issue is synchronized with this Wrike Item by Unito

We could turn the check into if (body !== undefined), but if we turn the body back into a response stream (for example on line 193 in the NodeHttpRequestResponseHandler it expects either a string or a Buffer, so that's something to keep in mind. We would need a conversion of some kind if it's possible.


Can this component be prepopulated with any OptGroup value selected? i dont find any way to do that. Thanks in advance

AlI I want is to prepopulate the select2 with "All Brooklyn" (which is a parent) already selected on the page load, Is there any way or workaround to implement it?

I have got the solution.
The solution is already implemented in this optgroup lib.
if on the page reload we manually set all the children as selected values, then the parent automatically gets selected.
$('#target').val([1, 2, 9]).trigger('change');
Thank you Ben for creating this library.
So grateful to you.


WIP: Loader RFC updates

Updates based on ideas/discussions in #3276

For #

Background

Change List

Coverage decreased (-2.6%) to 78.841% when pulling b3a450f827a6c898735514e89d1cbd3a268534d4 on ib/rfc-loader-updates into 4ce79254c33f501db1b2746fbbd157661f77432c on master.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Ib Green seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Hello! May I inquire if the LayerNorm module has not been quantized in this model?

Hi,
In this work, the output (activation) of LayerNorm is quantized, while retaining the floating-point computation of LayerNorm itself.

Our method follows the settings of the previous PTQ4ViT and APQ-ViT, so comparisons with the PTQ4ViT and APQ-ViT are exactly fair.


Fixing issue regarding trending plots

Fixing issue regarding trending plots
https://issues.jenkins-ci.org/browse/JENKINS-45682

:white_check_mark: Build hpe-application-automation-tools-plugin latest.111-qxmtdwta completed (commit https://github.com/hpsa/hp-application-automation-tools-plugin/commit/46b6939530 by @bamh)

Approved for test build.


How to place a limit sell order?

Hey!
This is more of a question for Newton devs but seeing that this library has a way of creating order, I thought you may have created one successfully. So in trying this library I am trying to create a limit sell order and keep getting Problem creating order.
An example of successful call or any pointer will be highly appreciated!
Thanks!

Hey!!
Sorry for the late response. Busy week ☺
The limit order is not fully working, this is a limitation from newton.co. I opened a support.ticket with them and waiting for its resolution.
They are actively working on it. Here is a Reddit post sharing some progress.
https://www.reddit.com/r/newtonco/comments/m8pevl/state_of_the_newtonverse_friday_march_19

Does the orders/new endpoint work at all?

After checking out your code, I was able to see what I was doing wrong with authentication. I was not including the v1/.... path in the encoded signature. Thanks!
Now that I'm playing with it, I wonder if there are any options beyond LIMIT? Is there a STOP order type?

Here is the link to the swagger they provided me with. It has few other options.
https://github.com/docs-newton/newton-api-docs/blob/157680fd686aed5009f2ec7bd1c062bef5621c70/reference/Newton-API.v1.yaml#L213
I hope this helps 🙂

Thank you!


Check ESLint warnings and errors in npm run build

Fixes #440
Test plan:
echo foo() > template/src/index.js
npm run build

Expected output:
Creating an optimized production build...
Compiled with warnings.

Warning in ./template/src/index.js

E:\dev\create-react-app\template\src\index.js
  1:1  warning  'foo' is not defined  no-undef

✖ 1 problem (0 errors, 1 warning)

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

followed by npm errors.
Should not show "Compiled successfully." message.
Also, when running npm start and there are warnings, but the server is still started, this should appear after the warnings:
The app is running at:

  http://localhost:3000/

Note that the development build is not optimized.
To create a production build, use npm run build.

Thanks! I’m currently on a little hiatus so I will review this in bulk before cutting 0.3.0.

(In the meantime please make sure Travis doesn't fail.)

Travis build fixed. Should I squash the commits or is it ok to keep them separate?

Keeping separate is OK, GitHub will squash them on merge.

Here is what I see on a lint warning:

Instead of npm cryptic crash, I would like the regular build output at the end. It should still build the project successfully if only warnings were encountered.
Let’s also change the error output in the error case (I mean actual build error) to make it more like npm start output when build fails. I mean the red “Failed to compile.” message that is missing in npm run build output.

In this discussion, we agreed that ESLint warnings should fail the build :)

Haha, sorry :P. I now think it might make more sense to do three things:

Do not fail on lint warnings
Fail on build or lint errors
Promote "no-undef" to be an error (#498)

Does this make sense? Sorry for the churn.

Yeah, makes sense, I'll try to update this soon :+1:

Hi, do you think you’ll have time to finish it?

Yes, but I don't know when exactly :)
If someone else can find time for it sooner, I won't mind if they finish it instead.

Okay, no worries for now, but please let us know if you can’t pick it up within a couple of weeks.
Cheers!

I’m closing as this is outdated and the PR has been open for more than a month.
I’m happy to review it again if you revive it addressing the comments!

Hi !
I'm building a chrome extension using create-react-app, and due to this change in 0.7.0, I can't use chrome because it's undefined obviously in the code base. I think that undef can be left as warning instead because you never know what env create-react-app is being used.

For now I've just used global comment (which works) as all chrome related calls reside in one file in my case.

That's the intended solution. Alternatively you can probably read window.chrome.


query.get_sql(dialect=Dialects.POSTGRESQL) does not provide correct empty arrays for postgresql

When passing it an array to insert such as [] it will convert to ARRAY[] which returns the following error in PostgreSQL:
ERROR:  cannot determine type of empty array at character XXX
HINT:  Explicitly cast to the desired type, for example ARRAY[]::integer[].

The correct thing to do is to return '{}' instead of casting to a specific type that is probably unknown to Pypika. '{}' gives PSQL the right to cast it according to the column type.

Running into the same issue. Does anyone have a workaround?

This will probably require a simple change to the Array class in pypika.terms. Would you be interested in creating a PR for this? If so, we are happy to review it.
Cheers

This will probably require a simple change to the Array class in pypika.terms. Would you be interested in creating a PR for this? If so, we are happy to review it.
Cheers

Seems like the problem still exists in 0.48.4 version


WebUI enhancement

[x] I have checked the existing issues to avoid duplicates
[x] I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Describe the bug
When the title is too long to show in one line, it will cause some UI issues, including:

Causing the sibling columns to squeeze: Size, S / L.
Causing the position of paginator to change.

[SCREENSHOT REDACTED DUE TO VISIBLE CONTENT METADATA]
Environment Information (Required)

Bitmagnet version: [0.7.14]
OS and version: Ubuntu 22.04
Browser and version (if issue is with WebUI): [Firefox 124.0.2]
Please specify any config values for which you have overridden the defaults: none

Suggestions

Consider trimming the title when it's too long, or make the rest of the columns with fixed length and position.
Pin the paginator at the bottom right of the results div or top right of the table, just don't scroll with the page.

This is fixed in v0.9.0


Tx metadata included in fee calculations

Context
ADP-307
Adding metadata to transactions increases their size on chain. Therefore metadata incurs fees.
Decision

Include metadata in any call to computeTxSize.

Acceptance Criteria

Adding metadata to a transaction must increase its size, and therefore its fee.

Development
As above.
QA

Added unit test "metadata incurs fees" to lib/shelley/test/unit/Cardano/Wallet/Shelley/TransactionSpec.hs ⇒ PR #2108.
Added integration test "TRANS_ESTIMATE_xxx - fee estimation includes metadata" to lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs ⇒ PR #2096.

I have managed to brake it:
It seems that estimating fee with too large metadata (and actually sendindg such tx too) results in 500:

metadata used: meta-fee.txt

Result:
Code = 500,
Message = Something went wrong

In the log there is:
[2020-09-03 11:01:12.86 UTC] [RequestId 0] [POST] /v2/wallets/1ceb45b37a94c7022837b5ca14045f11a5927c65/payment-fees
generated a coin selection with an excessively large fee.
actual fee: 3.194 Ada
coin selection:
  inputs: - 1st d1727eae (~ 22490393 @ 0150e277...8094ee36)
  withdrawal: -0
  reclaim: -0
  outputs: - 1000000 @ 013e8da9...8094ee36
  change: [18296768]
  deposit: -0

CallStack (from HasCallStack):
  error, called at src/Cardano/Wallet/Primitive/Fee.hs:182:9 in cardano-wallet-core-2020.8.3-EUxOQdVGrF0B4QcgxDCOoV:Cardano.Wallet.Primitive.Fee
  adjustForFee, called at src/Cardano/Wallet.hs:1288:24 in cardano-wallet-core-2020.8.3-EUxOQdVGrF0B4QcgxDCOoV:Cardano.Wallet

I have created PR extending tx meta tests -> https://github.com/input-output-hk/cardano-wallet/pull/2110.
TRANSMETA_CREATE_03, TRANSMETA_ESTIMATE_03  - seem to cover that case there and are currently failing.

 I think that's because the guard which checks whether metadata are too large occurs only when one tries to submit the transaction, which happens after this invariant is triggered. We should move the transaction size guard earlier in the pipeline.

BTW, Seems that latency benchamark failed for the same reason -> https://buildkite.com/input-output-hk/cardano-wallet-nightly/builds/630#f25ae394-5bd6-4422-ae66-12bf6700a0b3

lgtm.
The issue no longer occurs. When metadata is too big error message is presented for both: sending tx and fee estimation:
Code = 400,
Message = {"code":"transaction_is_too_big","message":"I am afraid that the transaction you're trying to submit is too large! The network allows transactions only as large as 16384 bytes! As it stands, the current transaction only allows me to select up to 0 inputs. Note that I am selecting inputs randomly, so retrying *may work* provided I end up choosing bigger inputs sufficient to cover the transaction cost. Alternatively, try sending to less recipients or with smaller metadata."}


[bug]: Textual Inversion triggers are often different to those published

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
8GB
What version did you experience this issue on?
2.3.5
What happened?
When using some textual inversion's the trigger words are different to those published (list below). It looks like the InvokeAI is using the name inside the TI data.pkl but the published trigger seems to be the filename. Sometimes the differences are trivial and obvious but other times, completely different. Perhaps we can have an option to trigger off filename or internal name?
e.g.

InvokeAI trigger	Published Trigger and filename
Fel10-400-1-Sta-1300-7-Lou-800-4	VeronicaCipher
nbdy-celine-sd15-v4	nbdy-celeste-sd15
nbdy-scarlet-sd15-2	nbdy-julia-sd15
nbdy-scarlet-sd15-v2.2	nbdy-isabella-sd15
optionalAIv4-590	optional_styleAI
sarahgtm-120	evalyn_noexist

We've noticed many creators not following the training trigger as well.
We plan to transition to filename as trigger in 3.0.


Preprocess not working as expected

Using latest version 2.4.4. There seems to be a problem with preprocess.
I have a simple iris dataset where the "Class" field has categorical values.
Sample:
Sepallength | Class | Sepalwidth | Petallength | Petalwidth
-------------+-------------+------------+-------------+------------
5.1 | Iris-setosa | 3.5 | 1.4 | 0.2
4.9 | Iris-setosa | 3 | 1.4 | 0.2
4.7 | Iris-setosa | 3.2 | 1.3 | 0.2
4.6 | Iris-setosa | 3.1 | 1.5 | 0.2
5 | Iris-setosa | 3.6 | 1.4 | 0.2
The command I tried to run as per documentation
SELECT pgml.train(
project_name => 'preprocessed_model',
task => 'classification',
relation_name => 'iris',
target => 'Class',
preprocess => '{
"Class": {"encode": "target"}
}'
);
ERROR: function pgml.train(project_name => unknown, task => unknown, relation_name => unknown, target => unknown, preprocess => unknown) does not exist
LINE 1: SELECT pgml.train(
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.

target should be y_column_name for the training function.
TEXT y_column_names (targets) aren't well supported. You can't target encode the target variable, because target encoding relies on calculating the average of all values in that class, but the average value in the target class is by definition the only value, but more problematically, it's a string rather than numeric value. You could ordinal encode it, but decoding after prediction is not currently done for targets, so you're going to get values like 1, 2, or 3, rather than your class labels.

We could add decoding to make this Just Work™. The short term fix is to encode the values yourself by creating a lookup table, with the class name, and an id, and replace the class name with that id in your training dataset, then you can do the decoding outside the model by referencing your lookup table.


⚠ Fortnite has degraded performance

In bfc9fe8, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1574 ms

Resolved: Fortnite performance has improved in 517733d.


[Feature] Upgrade to Laravel 8

Thank you for great package 👍
Just want to know the plan to support Laravel 8.
We trying to update our codebase, but unable to since this package doesn't support Laravel 8 yet.

Thanks for your kind words) Feel free to contribute. I don't think there is breaking changes

@matchish thanks. I have opened up a PR from a different account of mine. Please do have a look

Done


Fix package metadata

@ajaybhargavb @Tratcher

Note that I dropped "ASP.NET" from the package metadata because these are not specific to ASP.NET.

:shipit:

Well, good evening! And thanks :smile:

https://github.com/aspnet/Caching/commit/6f5cb6c7fea3aabd94990b38f5bae33091de7e24


Fix GreeeeeeeeenText

Adding Fixing a language

[x] The code displays "Hello World" (tio.run may help for testing)
[x] I have no association with the language
[x] There are no copyright issues with this code
[x] The language HAS not been added prior to this pull request

Modified GreeeeeeeeenText to actually print Hello World as per screenshot attached. Unfortunately *gets output* does not work :^(.

Link to programming language:

https://github.com/jz-feng/greentext

Created Issue #1465 for discussion if needed.

Different language altogether?


add support for short/long help

This would allow a short help to displayed with -h but more detailed explanation in --help. Would like to support version text as in #899 and subcommand`s about as in #898

Closed with v2.23.1


Troubles with tag_index in cassandra

I add attribute with api and export spans via JaegerGrpcSpanExporter
We are using cassandra as storage backend.
Finally I have that attributes as tags in table tag_index. It affects cassandra's permormance drammaticaly.
An example of warning from cassandra

large_data - Writing a partition with too many rows [opentelemetry/tag_index:myApp:status.code:0] (207365 rows)

What is the right way to put additional attributes with jaeger backend?
Is there any way to disable that index?

You can exclude certain tags from being indexed via --cassandra.index.tag-blacklist

Thank you for your answer, I disabled it as you recomended.
But, I stille have troubles with another tables.
Is it really to many data for one service? Can you give any advice how it can be fixed?

Maybe you can bump the corresponding settings in Cassandra, I don't recall seeing these warnings for just 100,000 entries. Beyond that there's not much that can be done. There is an internal sharding/bucketing done by jaeger, it's possible to increase the number of buckets (although it might be hard coded and will need code changes to expose the param), but it will make the reads slower since at read time there is a fan out to all buckets.

Thanks for answer. We switched to Elasticsearch, this is no longer relevant


Support layer to copy and paste directly without importing SVG again to copy the layer (Beta)

Layer replication is supported to avoid the need to re-import and more complex operations when a copy of some layers in SVG is needed after the full SVG has been imported

I assume you mean the ability to copy individual layers and paste duplicate versions of them into the project?
I started looking into this. I wasn't sure if copying a layer should also copy its property animation blocks as well. But yeah, I agree with you that this should be something that exists.

It should copy the timeline at the same time, almost all animation software, if I need to make the same animation but the duration is different, this is very useful.


PlatformException

Flutter doesn't work after upgrading to 3.3.1, please update.
Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Unexpected platform view context. When constructing a platform view in the factory, use the context from PlatformViewFactory

+1

Solution：Introducing git, Flutter 3.3.0 & 3.3.1 & 3.3.2 can also be used perfectly.
scan:
git:
url: https://github.com/xiaoxie/flutter_scan.git
ref: main

Solution：Introducing git, Flutter 3.3.0 & 3.3.1 & 3.3.2 can also be used perfectly. scan: git: url: https://github.com/xiaoxie/flutter_scan.git ref: main

build apk failed, change 'androidx.appcompat:appcompat:1.4.2' to '1.2.0'

compile on   • Flutter version 3.3.4 on channel stable  , It' work


fix issue 68.

fix issue #68 by split workload name into multiple lines.

Will you consider replacing workload to its alias? For example, replace core.oam.dev/v1alpha2.ContainerizedWorkload with containerized. This can also shorten the length of column APPLIES TO.

what will show? Can you print an example

cmd output like below:


please two problem error why The model cannot be called in?

blender 2.8 cats plugin 1.50

That first error can't be fixed, but that second error sounds like that pmx file is broken. Try importing it into pmx editor and then export it again to see if that fixes it


Create Helm Hook Job for DB users and permissions (closes #196)

This PR updates helm hook job for iglu so that it includes a job for setting the dev db postgres user in Azure. Up until now the postrgres user for dev db was created using a local-exec, we are moving this to a helm hook job

Please update the CHANGELOG too.

Does the values-azure.yaml.tmpl need updating to reflect the addition of the Azure block ?

Does the values-azure.yaml.tmpl need updating to reflect the addition of the Azure block ?

@Andy-Hay yes you are right, updated it as well


Add C++ Solution for Problem Of The Day | 18 January 2023

Comment below if you're interested in working on this issue and would like to be assigned to it.

Please assign this issue to me


Prepare the Newlife workshop

Definition of done

[ ] everything ready to run the workshop

https://www.notion.so/tonomy-foundation/Newlife-cb9123a3e412409dac3b68d1bb6bb5c5?p=70bf5f59173440258ee77e984ac64377&showMoveTo=true

https://miro.com/app/board/uXjVPJP2ogY=/


Enhancement: Move remaining inline styles in HTML report to a separate CSS file

To allow the generated HTML reports to better comply with W3C Content Security Policy (CSP) specifications, it would be helpful to move the few inline styles within the generated HTML output to instead reference a separate CSS file.

+1 this seem to break publishing HTML coverage reports on Jenkins due to default Content-Secuity-Policy https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy

Problem isn't just with the inline-style, but also with the 'sandbox' CSP, since HTML publisher loads the report in an iframe:
Blocked script execution in 'https://<jenkins/Coverage_Report/index.html' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.inject

+1


Skip noarch build if --noarch-platform == build_platform

See https://github.com/prefix-dev/rattler-build/issues/1175 for context.
When --noarch-platform is set, the noarch builds will be skipped if they are being built on a different platform than the platform set.

It's an opinionated flag, and the idea is to make it easy to build single repos rattler-based forge. By setting this flag to linux-64 for example, all the noarch packages of the forge will be only built on the linux-64 CI runs and not the others.
If that too specific for rattler-build, let me know and I will close.

I did a tiny bit of cleanup to remove the unwrap :)
I am wondering if we shoudl call this --noarch-build-platform=..., and similar in the code. I think that would make it very clear? What do you think @hadim?


Couple of incorrect usages of platform_heap_id hid in BTree unit-tests: Could potentially lead to ASAN failures.

Describe the bug
During some prototype development of other features that exercise platform_heap_id, discovered following two instances of code snippets that are potentially flawed.

unit/btree_test.c: In leaf_split_tests(), use of scratch arg as hid parameter to btree_leaf_incorporate_tuple() is potentially flawed. Way deep down in writable buffer code, we mistakenly think that this 'scratch' space handle is the heap-handle. And code flows into attempts to free memory from this handle. Currently, nothing is majorly wrong, but instrumentation to track allocs / frees are tripping up messages, indicating that this call-site is the source of the aberrant usage.

416       bool success = btree_leaf_incorporate_tuple(
417          cfg, scratch, hdr, key, bigger_msg, &spec, &generation);
418       if (success) {

unit/btree_stress_test.c: In this test, the insert_thread_params{}  struct has two instances of heap_id variables:

 29 typedef struct insert_thread_params {
 30    cache           *cc;
 31    btree_config    *cfg;
 32    platform_heap_id heap_id;
[...]
 38    platform_heap_id hid;
 39 } insert_thread_params;

This causes code to be confused as to which one to use. E.g., here in insert_tests() function we mistakenly use both handles; one to alloc and one to free.
312    uint8 *keybuf      = TYPED_MANUAL_MALLOC(hid, keybuf, keybuf_size);
313    uint8 *msgbuf      = TYPED_MANUAL_MALLOC(hid, msgbuf, msgbuf_size);
314
[...]
330    platform_free(heap_id, keybuf);
331    platform_free(heap_id, msgbuf);

Currently it's not a real issue as both heap_ids are NULL, so we pretty much end up using malloc and free.
In some future prototype work, this mixed-up usages of platform_heap_id is causing ASAN runs to flag memory allocation errors.
Reproduction steps

Nothing can be seen in /main with ASAN runs. These are latent issues which will surface if we ever change heap-memory handling.

...
Expected behavior

Potential fix is to use hid rather than scratch when invoking said function.
Potential fix is to purge heap_id variable from insert_thread_params{} and consistently use only hid variable.

Additional context
No response

@rtjohnso - I logged this issue; fyi. #1 has also been posted on internal slack thread, here.
The 2nd one, I stumbled upon it while running ASAN-build tests in my dev code to implement shared memory support.
I have patched fixes for these in my dev-branch . Would you have time to fix these in /main? If yes, I'll let you take a crack at it. If not, I'll get to this after I get some control on my main task of insert perf benchmarking. (These are minor irritant blockers for that dev-work, but I've patched-fixed them  in my dev-branch to keep my progress moving along.)

Fixed by this commit to /main:
a49f4a7 gapisback 32 hours ago Tue, 08-Nov-2022, 06:28:59 AM (Authored: Tue, 08-Nov-2022, 06:28:59 AM)
 (#463) Fix incorrect usages of heap-ID in BTree unit tests. (#472)


release: v3.1.4

Please read and mark the following check list before creating a pull request:

[x] I read and followed the CONTRIBUTING.md guide.
[x] I read and followed the New Feature Checklist guide.

Short description of what this resolves:

Closes #357
Closes #358

Hi,
Do you have any news about reviews? (it's about this issue/358)
Thx


TypeError: _styles.withStyles is not a function[Learn More]

It seems like the issue is related to withStyles, but added withStyles the suggested way from the docs and issues still brings up with TypeError. Page won't render.

I removed react-autosuggest for now.

This issue was due to having my app component wrapped with mui. This is not needed in mui v1.


Control 'Touch Keyboard and Handwriting Panel Service' warning

Summary of the Pull Request
Add a setting to turn off the warning  if 'Touch Keyboard and Handwriting Panel Service' is disabled.

References
#8095
https://github.com/microsoft/terminal/issues/7886#issuecomment-729350169

PR Checklist

[ ] Closes #xxx
[x] CLA signed. If not, go over here and sign the CLA
[ ] Tests added/passed
[ ] Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
[ ] Schema updated.
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments
The service might not start in some case, and it doesn't affect the input in some computer.
This PR turn off the warning even if the service is disabled.
The setting name is  "inputServiceWarning".
part of settings.json:
// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": false,

// If disabled, don't show warning if 'Touch Keyboard and Handwriting Panel Service' disabled.
"inputServiceWarning": false,

Validation Steps Performed
I manually set the service to "Disabled", restarted the Terminal, verified the warning up, then set "inputServiceWarning" to false and restarted the Terminal, and the warning didn't appear.

Hey, thanks for writing this up! I'm not as averse to this setting as I was in the linked issues, but we'll need a little bit to review this. It's a busy week for the team -- since 1.6 just came out, we have a bit of a backlog. Thanks for understanding!

Thank you for your contribution!


Added an option to not use slurm when starting jobs

Added an option for disabling the usage of slurm when running a Job.

Did you test this also on Windows computers? Because what command executes the job if not on slurm (where you have sbatch)?

Unfortunately I don't have access to a windows machine with ADF. How it works is it will create the input- and runfiles. If we detect that slurm is available and the use_slurm argument is True, then we call the sbatch {options} {jobname}.run command. Otherwise, we simply call the runscript directly (./{jobname}.run). This works on unix machines, but might cause some issues on DOS. I think these days windows has WSL2 which can do it, and also powershell should have no problems. It also depends on how they have set up their python environment, on my windows computer I think it uses sh to call python, so it should be able to run executables.
But I'm not an expert at all on this. Would be nice if someone could test it.


Introduction of paper and inspiration

introduction and background of the research paper and write a summary of it

when dealing with polluted data, minimizing
the sum of squared errors makes LDA easily affected by
outliers and noise. This may lead the projection vectors
to drift from the desired directions. Moreover, the classical L2-norm-based LDA may suffer from the small sample size (SSS) problem since it is difficult to evaluate the scatter matrix accurately in this situation. Here L2 Norm refers to the vector divided by the Euclidian distance from the origin.


Built an x86_64 executable

I'm on an M1 Max and followed the README and it built the wrong architecture.
zsh: illegal hardware instruction  ./bin/sam -t 16 -i ../img.jpg -m ../ggml-model-f16.bin
(base) sam@m1macbookpro build % file bin/sam
bin/sam: Mach-O 64-bit executable x86_64
(base) sam@m1macbookpro build %

% uname -mps
Darwin arm64 arm

Ultimately had to install a new version of brew to get an arm64 version of cmake.

Sorry that I couldn't help in time. Glad you were able to resolve it yourself.

For future reference, to uninstall:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

Reinstall:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then run:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"


Support KSQL's WITHIN

KSQL supports the 'WITHIN' keyword for stream-stream joins. The syntax is as follows:
WITHIN [(before TIMEUNIT, after TIMEUNIT) | N TIMEUNIT]

See the syntax reference
This PR adds support for the WITHIN statement inside a join.

Coverage increased (+0.2%) to 83.107% when pulling 0214d8cb50a6abeeb91b9447aff3252237258ae8 on lmontrieux:ksql-within into 11be71561824c36e43d0a6aee7c79821ba6e04da on JSQLParser:master.

@wumpz if a new SNAPSHOT has not yet been release, would you be so kind to release it?

@rcillo Sorry. Try to do it tonight.


Fix bitmask creation also for simd comparisons with scalar

Which issue does this PR close?

Closes #1285 (now also for comparisons with a scalar).
Rationale for this change
Followup to #1286, which only fixed the bitmask creation for comparing two arrays, but missed the same bug when comparing with a scalar.

Noticed by @JasonLi-cn and @alamb in https://github.com/apache/arrow-rs/commit/411171ac7ad3efe9391b2a0f8709f7fe97672a20. Sorry again for missing this earlier.

Thanks @jhorstmann  -- I'll get this in and spin up a new RC 👍

For reference, before the fix tests with the larger inputs tests would fail like this:
---- compute::kernels::comparison::tests::test_primitive_array_eq_scalar stdout ----
thread 'compute::kernels::comparison::tests::test_primitive_array_eq_scalar' panicked at 'assertion failed: `(left == right)`
  left: `BooleanArray
[
  false,
  false,
  true,
  false,
  false,
  false,
  false,
  true,
  false,
  false,
  ...80 elements...,
  false,
  false,
  true,
  false,
  false,
  false,
  false,
  true,
  false,
  false,
]`,
 right: `BooleanArray
[
  false,
  false,
  true,
  true,
  true,
  true,
  true,
  true,
  true,
  true,
  ...80 elements...,
  false,
  false,
  true,
  false,
  false,
  false,
  false,
  true,
  false,
  false,
]`', arrow/src/compute/kernels/comparison.rs:2518:9


temp view table left behind after delete

Hi there,
I ran into an issue experimenting with migrations and views in v0.13.1
I am using JS migrations to create collections and views, so that might play into the reproduction.
Steps:

Create 2 collections in JS
Create 1 view with an inner join involving those two collections in JS
Delete the view (unsure if this happened in the Admin UI or not)
Observe future migrations fail on a _temp_xxxx view table error (involving recreating the table that wasn't inner joined) SQL logic error: error in view _temp_j2yj1: no such table: main.table_name(1)
manually enter SQLite and delete view _temp_j2yj1
functionality returns to normal, migrations recreate that collection without failure

Hope this helps, I really dig the project!

I'm not able to reproduce the issue but I'm also not sure that I understand the provided reproduction steps.
Please note that we currently don't keep track of what collections/tables currently takes part in a view query and it is possible that if you delete a collection (or some of its field(s)) that the view uses, it will thrown an error when trying to access the view. This is expected, although not documented very well at the moment. Users in this case have the option to update the related view collection query if they still want to keep it.
If you are still able to reproduce it, feel free to provide more details and I'll try to investigate it.

Thanks, I'm working on creating a file that reproduces this.  In the described scenario, all three collections were deleted and the _temp view left was blocking the recreation of a collection.  It could have been a fluke.
I've run into another interesting issue in the process, if I find anything reproducible by file I'll let you know

@azurewraith Just to let you know that earlier another user reported similar issue related to the view collections import in #2044 and a fix was implemented in v0.13.3 release.

good to know, thanks!  hopefully that was it but I'll keep an eye out.  My testbed is better now and it starts everything out from a zero database state.


[WIP] Table syncer

It assumes there's a cartodb_id column in both source and target. It
does not perform unnecessary actions. It respects augmented columns in
target table, if they exist. It is meant to be efficient.

@jgoizueta although this is pretty complete now, I'd like to try and integrate it w/ Geocodings before going any further. There are things that may impact the function and its signature that I cannot clearly foresee yet. E.g: should it accept an array of columns to exclude? the_geom and the_geom_webmercator?
I also want to give us some time to think about this in different contexts: CartoFrames, Geocodings and Import API.
cc/ @javitonino

The test failure in PG11 :disappointed:
$ cat regression.diffs
*** /home/travis/build/CartoDB/cartodb-postgresql/expected/test/CDB_AnalysisCheckTest.out	2019-05-27 16:09:45.063543994 +0000
--- /home/travis/build/CartoDB/cartodb-postgresql/results/test/CDB_AnalysisCheckTest.out	2019-05-27 16:12:39.770847666 +0000
***************
*** 5,12 ****
  CREATE TABLE
  CREATE TABLE
  CREATE TABLE
- (analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5,public,analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5)
  (analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94,public,analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94)
  0

  1
--- 5,12 ----
  CREATE TABLE
  CREATE TABLE
  CREATE TABLE
  (analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94,public,analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94)
+ (analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5,public,analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5)
  0

  1

For the geocoding we'll need to it to ignore the_geom and the_geom_webmercator from the source, so I think that having an array of columns to ignore in the source would be a good solution.
Besides integrating this into the geocoding I'll  try to think about other use cases to look for other requirements.
This looks great!

I would like to test some variations with some big tables and compare the performance of each of the three phases (DELETE, INSERT, UPDATE).
Operating without the tmp tables: (⚠ buggy sketch of code following)
 -- Deal with deleted rows: ids in dest but not in source
  EXECUTE format(
    'DELETE FROM %s _dst WHERE NOT EXISTS (SELECT * FROM %I _src WHERE _src.cartodb_id=_dst.cartodb_id)',
    fq_dest_table,
    src_table);
  GET DIAGNOSTICS num_rows = ROW_COUNT;
  RAISE NOTICE 'DELETED % row(s)', num_rows;

   -- Deal with inserted rows: ids in source but not in dest
  EXECUTE format('
      INSERT INTO %s _dst (cartodb_id,%s)
      SELECT cartodb_id,%s FROM %I _src WHERE NOT EXISTS (SELECT * FROM _dst WHERE _src.cartodb_id=_dst.cartodb_id)
  ', fq_dest_table, quoted_colnames, quoted_colnames, src_table);
  GET DIAGNOSTICS num_rows = ROW_COUNT;
  RAISE NOTICE 'INSERTED % row(s)', num_rows;

   -- Deal with modified rows
  update_set_clause := __CDB_GetUpdateSetClause(colnames, 'changed');
  EXECUTE format('
    UPDATE %1$s dst SET %2$s
    FROM (
      SELECT * FROM %3$s src
      -- WHERE  md5(ROW(src.*)::text) <> md5(ROW(dst.*)::text)
    ) changed
    WHERE dst.cartodb_id = changed.cartodb_id;
  ', fq_dest_table, update_set_clause, src_table);
  GET DIAGNOSTICS num_rows = ROW_COUNT;
  RAISE NOTICE 'MODIFIED % row(s)', num_rows;

And, for the modified rows, compare using the hash comparison vs just updating all the rows (commented WHERE).


Awaiting RenderFragment to render

The issue is about server-side blazor.
I am trying to follow the Manual RenderTreeBuilder logic topic in order to initialize a child component from a parent component.
// ParentComponent.razor
@inheirts ParentComponentBase
...
<button @onclick="@OnClick">Add another component</button>
...

// ParentComponent.razor.cs

public class ParentComponentBase : ComponentBase
{
    public RenderFragment RenderFragment { get; set }
    public ChildComponent ChildComponentRef  { get; set; }

    public async void OnClick()
    {
        ....
        RenderFragment += CreateChildComponent;
        StateHasChanged();

        ChildComponentRef.Show();
    }

    private RenderFragment CreateChildComponent() => builder =>
    {
            builder.OpenComponent(0, typeof(ChildComponent));
            builder.AddComponentReferenceCapture(1, childComponentRef =>
                     ChildComponentRef = (ChildComponent)childComponentRef);
            builder.CloseComponent();
    };
}

// ChildCompoent.razor.cs
public class ChildComponent : ComponentBase {
      public void Show() { ... }
}

The basic idea is: when the button in the ParentComponent is clicked, the ChildComponent is dynamically initialized and then its Show method is called.
The problem I am facing is that the OnClick handler runs asynchronously:
    public async void OnClick()
    {
        ....
        RenderFragment += CreateChildComponent;
        StateHasChanged();

        // ChildComponentRef is null
        ChildComponentRef.Show();
    }

so the call ChildComponent.Show() throws a null reference exception as the code in CreateChildComponent hasn't finished yet (probably due to the call to StateHasChanged()). If StateHasChanged isn't called, then the fragment is not rendered at all.
I tried things like wrapping the call in a Task.Run():
    public async void OnClick()
    {
        ....
        await Task.Run(() =>
       {
             RenderFragment += CreateChildComponent;
             StateHasChanged();

       }).ContinueWith(() =>
       {
            ChildComponentRef.Show();
       });
    }

but this fails with an exception:

The current thread is not associated with the renderer's synchronization context. Use Invoke() or InvokeAsync() to switch execution to the renderer's synchronization context when triggering rendering or modifying any state accessed during rendering.

so this surely isn't the blazor way of doing things.
Interestingly, making a JS interop call makes the OnClick method run "synchronously", so the fragment is appended and the ChildComponentRef.Show() is working:
    public async void OnClick()
    {
        ....
        var result = await JSRuntime.InvokeMethodAsync(...);  <-- fixes the issue

        RenderFragment += CreateChildComponent;
        StateHasChanged();

        // ChildComponentRef is NOT null
        ChildComponentRef.Show();
    }

Why the JS interop call fixes the problem? Is there another way to append a fragment that initializes a component and then use this component right away in a synchronous manner?

@SteveSandersonMS @rynowak @javiercn Can you add some quick thoughts on the above as this is somewhat blocking for me. Is this approach valid in general?

Thanks for contacting us, @Stamo-Gochev.
@SteveSandersonMS what would be the recommended approach here?

If you want a parent to perform some actions on a child, use the combination of ref and OnAfterRender.
ref captures a reference to a child, which becomes initialized during the next render. Then OnAfterRender can perform invocations on that child.

@SteveSandersonMS This is indeed what I used as the JS interop call wasn't necessary in the real scenario. Still, I cannot figure out why such a call fixes the async behavior.

Still, I cannot figure out why such a call fixes the async behavior.

@ref fields aren't populated until after rendering, because the thing you want to reference is created as an aspect of rendering.
Closing as the question seems to be answered :)

@SteveSandersonMS I agree, it is seems reasonable for a child component and its ref to be populated after OnAfterRender. I meant that I still cannot figure out why making a JS interop call in:
public async void OnClick()
    {
        ....
        // the JS interop call
        var result = await JSRuntime.InvokeMethodAsync(...);

        RenderFragment += CreateChildComponent;
        StateHasChanged();

        // ChildComponentRef is NOT null
        ChildComponentRef.Show();
    }

makes the ChildComponentRef  available right away - I am not moving the ChildComponentRef.Show(); to the OnAfterRender method. My assumption was that this has something to do with the lifecycle, but it is still unclear.

Your JS interop call is async, so you're interrupting the method's execution while the JS interop call occurs. Blazor is performing a render in the meantime, which populates your ChildComponentRef. So by the time execution continues after your await, the reference is populated.


Fix insecure Minecraft traffic from host device

The homelab is currently just exposing port 25565 wholesale in order to let the Rainmire Minecraft server's TCP/UDP traffic through, but we really should be routing this through nginx in the interest of security.
┆Issue is synchronized with this Trello card by Unito

 Fix insecure Minecraft traffic from host device


Option to remove apps that are bloatware

Is your feature request related to a problem? Please describe.
I wish that there was a feature where we could remove Microsoft and third-party bloatware that shows up on the Start Menu. I use this tool for everything but I am constantly digging through my start menu removing apps myself.
Describe the solution you'd like
Perhaps a little checkbox in the Tweaks section that would remove any apps deemed bloatware, such as these:
'Get-AppxPackage Microsoft.Microsoft3DViewer | Remove-AppxPackage',
'Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage',
'Get-AppxPackage Microsoft.GetHelp | Remove-AppxPackage',
'Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage',
'Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage',
'Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage',
'Get-AppxPackage Microsoft.MixedReality.Portal | Remove-AppxPackage',
'Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage',
'Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage',
'Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage',
'Get-AppxPackage SpotifyAB.SpotifyMusic | Remove-AppxPackage',
'Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage',
'Get-AppxPackage Microsoft.People | Remove-AppxPackage',
'Get-AppxPackage Microsoft.Todos | Remove-AppxPackage',
'Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage',
Describe alternatives you've considered
I did build my own script to do so in Python, but since I have no knowledge of how to implement this in the toolbox, I was unable to make a pull request myself.
Additional context

This is the code I made in Python to remove the bloatware.

I would love to see something like this idea get implemented, great suggestion

Yes, a GUI that lists the system applications with their description and lets you choose which ones to uninstall would be nice.


Ways to use CASE WHEN

Hello everybody!
Is there a way i can use CASE WHEN in SELECT?
Thank you

not currently supported. But might be on radar. :)

in develop try it out!


emojionearea.css.map

I try to add emoionarea to my project Laravel, for compile using command
npm run dev.
I added files appropriate resouces/assests/css/emoionarea.css
//For emojionearea @import 'emojionearea';
and resouces/assests/js/emoionarea.js
// for emoticons require('./emojionearea'); $(document).ready(function() {     $("#comment").emojioneArea({     }); });
But i get error:
WARNING in ./node_modules/css-loader??ref--8-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--8-4!./node_modules/sass-loader/lib/loader.js??ref--8-5!./resources/assets/sass/app.scss
(Emitted value instead of an instance of Error)   resolve-url-loader cannot operate: CSS error
ENOENT: no such file or directory, open '/home/oleg/public_html/laravel-blog/resources/assets/sass/emojionearea.css.map'
at Object.fs.openSync (fs.js:579:3)
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
What is the file emojionearea.css.map ?
Thanks.

Looks like postcss loader trying to parse css.map file what is missed in the project, I think you can disable to parse css.map
I wix this behavior in the next release

Thanks.
How can I disable to parse css.map ?

Using postcss loader, there must be options for this


inputRef should support React.createRef #176

For cases when custom components reference ReactS3Uploader's input through a React.createRef(), for example:
  const uploaderInputRef = React.createRef();
  ...
      <ReactS3Uploader
        ...
        inputRef={uploaderInputRef}
      />
      <button onClick={() => { uploaderInputRef.current.click(); }}>upload file</button>

Looks good. @odysseyscience please merge.


speed

Thanks for your work.  Could you please tell me briefly what is the approximate running speed of your network under what kind of hardware?

Sorry for the late reply. The network part is fast, as quoted from our optical expansion paper
The expansion and motion-in-depth networks take 15ms for KITTI-sized images on a TITAN Xp GPU, giving a total run time of 200ms together with flow.

Together with the segmentation head, it took roughly 300ms per pair with a resolution of 1k as I remember.
The rigid motion fitting part is quite slow due to RACSAC and some inefficient CPU operations. The total run is around 2s.

Thans a lot for your reply! I would like to know if it is possible for me to use the depth map, optical flow map and expansion map obtained independently by other methods (such as using tensorrt engine to accelerate calculation respectively) to calculate the cost map in this network? i.e. can I just use the motion segmentation sub-network and turn it into a TensorRT model? If so, could you plsease tell me roughly how to strip this sub-netwok (I have little programming experience with deep learning)?

It's a bit clunky but this part should be the one to look at.
DytanVO might be relevant. I remember they used rigidmak as a submodule and swapped out the flow with a faster PWCNet.

It's a bit clunky but this part should be the one to look at.
DytanVO might be relevant. I remember they used rigidmak as a submodule and swapped out the flow with a faster PWCNet.

Ok, thanks sincerely!

Hi. In the function get_intrinsics()(Line 589 in file submodule.py), why for the test time dfx and dfy also equal 1.0?

These two values may not always be 1 during testing, right? After all, they are also related to the main function parameter 'testres'

You are right, dfx=dfy=1 assumes --testres 1, and a more generic version should be
dfx=dfy=1/testres

Thanks for your reply! I have read the code of rigidmask and of DytanVO. I found that DytanVO did use the rigidmask as a submodule but did not swap the flow part (VCN) in rigidmask. They additionally used a PWC-based module to estimate flow map only one time and used this flow (firstly be masked by the result of fg/bg segmentation from motion-seg-net) as an input of the pose net. They added this PWC-module because for the first iteration the rigidmask submodule doesn't work since the pose of camera is unknown yet. I don't know why they didn't directly use this PWC-based flow result to sawp the VCN-based flow result in rigidmask ( yes in the paper they said that they swap it but in the code actually did not).
I want to only use the cost-map-built module and seg-heads of your code. I will use other faster networks to produce flow result (for both left images) and stereo image disparity (for left and right images), and combining these two results can give the flow-expan for left images. It seems easy to estimate the out-of-range confidence score of flow by directly putting the final flow result into the ”oor_module“ (according to your code, is it right?). The problem is how to estimate the uncertainty of the flow-expan since I don't use the expansion network? Can you give me some advice?
Sincerely waiting for your reply.

Or can I just directly remove 3D P+P cost (it requires flow-expan) in the cost-map? Since I already had relatively reliable depth of both left images in the steroe camero situation, maybe I could even only remain the depth-contrast cost in the cost-map ( since it doesn't cause any ambiguity of motion segmentation) and remove all of the other costs? The other costs seem to be specially designed for the monocular situation since depth-estimation is not reliable enough?

My general advice is to make minimum modifications to the working pipeline (which is the stereo example in the codebase) and gradually swap things. Also, since the segmentation head is trained with all costs, setting a cost to other values might be "out-of-distribution" for the seg head.
From this perspective, you may want to keep the expansion module as is and only swap the flow and depth input, where expansion can be computed from the new flow.
In the case of discarding the expansion network, setting expansion's log uncertainty to 0 as might work, which assumes having unit variance.
Still, re-training the segmentation head would be the safest way.


Tufts University

Added file for Tufts University students,
@philipto please merge.
Actually hold on, it might be there under https://github.com/JetBrains/swot/tree/master/lib/domains/edu.. checking, github UI cut off at 1000 files, so i can't see past "m" files

@aramatev Pull request merged. Thank you!


Usage without ngrok

Is this just a case of removing these lines and setting up a reverse proxy on the machine to point at port 8000 on the response container?
https://github.com/monzo/response/blob/97e35de75cd78eb3b6cd4db0a2b3f99a5ce582c8/docker-compose.yaml#L40-L47

Yes, that would be fine.
You shouldn't even need to remove that though. The response container is accessible on localhost:8000 so you can stick whatever you like in front of it.


Indicate that a job is being created after the user clicks "Create"

Problem
When a user clicks the "Create" button to create a job, we stay on the job creation form until the server returns that the job has successfully been created. Once the job is created, we navigate to the list view. During the intermediate state, we should visually indicate to the user that the job/dob def is being created.
Proposed Solution
We might consider using a green panel level notification banner for this purpose. That way, when we show an error upon job creation, users would be looking there.

Alternative proposal: disable the "Create" button after a user clicks it, then re-enable it if there's an error that causes the user to remain on the create jobs page.

Might be useful to show some sort of loading state on the Create button + a disabled state, to indicate that there is an asynchronous operation happening


Discussion of what sort of heteropolymer support we want

A couple thoughts for discussion on building heteropolymers- please chime in @tlfobe and @cwalker7 on your thoughts?
There's a moderate amount of heteropolymers support in the code right now.  There needs to be a little tweaking for it to run correctly, but it looks like it is possible to define a dictionary for each monomer, each with their own backbone backbone bond lengths, sigma and epsilons. and then have as many different monomers as one likes.
Two things that it DOESN'T look like it it is supported right now is:

having different types of sidechain beads or backbone beads in the same monomer - i.e. one could have two beads in a sidechain (or a backbone), but they would have to have the same parameters.
bond constants, bond angle, and torsion angle parameters that depend on anything than whether the beads are backbone or sidechain.  So, a bb-bb-bb-sc torsion always has the same values, no matter how many different types of backbone beads there are in a monomer.

It would take a moderate amount more work to support such changes - so the question is whether it would be best to get it up and running as is, or to retool a lot more code and get it working.
My instinct is to get working what's currently almost working, i.e. with the drawbacks identified above, and go with that, then work on expanding the bead potentials within particles, and generalizing the torsional potentials.  A lot of the stuff we would want to do in the near future (ABAB or ABCABC  heteropolymers with fixed backbone but and different sidechains) can be supported with this.
Thoughts?

Comments @cwalker7, @tlfobe?

I think the multiple backbone bead types in one monomer is less an issue, since we could split it into multiple monomers. But I can see where we would want multiple side chain bead types, and be able to specify the connectivity - maybe even allowing for nonlinear side chains eventually.
I think we could start with the heteropolymers having 1 type of backbone bead / 1 type of sidechain bead within each monomer type. The angles and torsions shouldn't be that hard to generalize if we have the bond list - we'd mostly just need to update the get_bond_angle_list and get_torsion_list in the cgmodel code.

I'm also for getting what results we can get from this current model. As long as we can ask the scientific questions we want to get out in the first paper we should be okay. That being said, we should keep in mind what changes would be needed to add this missing functionality.
These details will have a pretty big impact on how we convert structures/energy functions from CGPyRosetta to CGOpenMM, so at least having an idea of how much input/output will change will be useful.

OK, I think that I can get the code with limitations up and running very quickly (like a couple of days).
To get more control over the sidechains will involve having arbitrary bead types, instead of just sidchain and backbone beads.  This will make get_angle/get_torsion calls pretty easy.  The issue will be to build in topology for the beads, i.e. to say what the ordering and connectivity of the beads are within each monomer. That will be a bit hard to build the bond list for.  But we can cross that bridge when we get there.  I think that when specifying a monomer, if we just have a dictionary of bond lists within the topology, that will be sufficient to specify the topology - it's just getting that information out to the cg_model structure that may require some revamp.  I'll start a new issue on this once we have this part updated.

Here's my proposal for a more general heteropolymer build syntax.
We have a new type of data structure, particles, like so:
a = {"particle_name": "a", "mass": 72 amu, "sigma": 0.3 nm, "epsilon":0.1 kilojoule/mole }
b = {"particle_name": "b", "mass": 72 amu, "sigma": 0.4 nm, "epsilon":0.2 kilojoule/mole }
c = {"particle_name": "c", "mass": 72 amu, "sigma": 0.2 nm, "epsilon":0.3 kilojoule/mole }
for all of the parameters below, the label is just a concatenation of the particle names.
This next line is optional: if "epsilons" is defined, then it overwrites the individual epsilons; but for parameter combinations it's not defined for, then standard combining rules are used (the combination rules used should become a setting of initializing the CG model)
epsilons = {"aa_eps": 0.1 kilojoule/mol, "ab_eps":0.2 kilojoule/mol,"bc_eps":0.5 kilojoule/mol}
same for sigmas:
sigmas = {"aa_sigma": 0.1 nm, "bc_sigma":0.2 nm,"ac_sigma":0.3 nm}
since with the number of particle types, there will be so many different possible bonded parameters, I propose implementing a default bond length / torsion periodicity, etc. that can be defined for the model (not just hard coded for all models).  Something like:
bond_lengths = {
"default_bond_length": 3.0 nm,
"a_b_bond_length": 2.0 * nm,
"b_c_bond_length": 2.0 * nm,
"a_c_bond_length": 2.0 *nm,
}
bond_force_constants = {
"default_bond_force_constant": 500 kilojoules/mol*nm^2,
}
torsion_force_constants = {
"a_b_c_a_torsion_force_constant": 20 kilojoules/mol,
"default_torsion_force_constant": 10 kilojoules/mol
}
Then monomers defined as:
A = {  # a weird triangular backbone, with 2-bead side chain
"monomer_name": "A",
"particle_sequence": [a,a,a,b,c],
"bond_list": [[0,1], [1,2],[0,2],[1,3],[3,4]]
"start": 0,
"end": 2,
}
B = {   # a 1-1 bead
"monomer_name": "B",
"particle_sequence": [b,c],
"bond_list": [[0,1]],
"start": 0,
"end": 0,
}
C = {   # a 1-2 bead
"monomer_name": "C",
"particle_sequence": [b,c,c],
"bond_list": [[0,1], [1,2]],
"start": 0,
"end": 0,
}
This allows arbitrary connectivity between the atoms in the monomer, and arbitrary particles.  The bond list for the polymer should be easy to construct, since one knows which atom in which monomer connects with each one.  The random builder will have to be revisited, though, to account for rings, but we probably won't experiment with those until an extended builder is ready anyway.  For now, probably worth doing a scan for rings, and failing the random builder.
The get force routines should be pretty easy to generalize, since we now just have more than 2 types, otherwise the labels are the same.

That was pretty bad formatting. Fixed.

OK, this is implemented in PR #37.  I think that resolves most of the concerns brought up here.


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Using Sprig in a plugin template

I'm looking to add a page to the admin CP (have already got a plugin created and added to the nav, and can get a basic template/page showing) that makes use of the awesome Sprig, but when adding the component to the page I get an error to say the component/template cannot be found.
I was hoping to keep the component in a /templates/_components folder, but I've yet to find the correct path for this to be referenced. I'm guessing it's because the plugin path doesn't match up with the path displayed in the browser?

Found in the Extending Craft docs there's a section related to Template Roots. I've set a reference to the _components folder within the plugin's core PHP file

So does that solve it? Care to share your solution for others?

Seems to so far. Here's my e.g:
In my /project/plugins/company/plugin-name/src/plugin-name.php I have the following included:
use craft\events\RegisterTemplateRootsEvent; // Added this line
use craft\web\View; // Added this line
use yii\base\Event;

public function init()
{
    parent::init();

    // Added the below event
    Event::on(
        View::class,
        View::EVENT_REGISTER_SITE_TEMPLATE_ROOTS,
        function(RegisterTemplateRootsEvent $event) {
            // My component is in the project-root/templates/_components.
            // The following creates a reference to the above path - I've used ['_components'] to keep it simple.
           // Whatever gets entered into the brackets can then be used in the plugin template file e.g. {{ '_helloworld/componentname' }}
            $event->roots['_helloworld'] = __DIR__ . '/../../../../templates/_components';
        }
    );
  // End of additional code
}

By default, Craft will be looking in the control panel templates, so the following would work if you put the template in your plugin's template directory.
{{ sprig('plugin-handle/template-name') }}

I had tried that, but couldn't get it to work. Have just noticed that the pluginfactory.io generator had added a '-' to the handle.
Least I have 2 options :)


Video shows static frame when jumping back and forth after removing the silence

What's your platform?
Python Version: 3.10.2 64-bit
Platform: Windows 10 amd64
FFmpeg Version: N-105325-g7512293cf9
FFmpeg Path: C:\Program Files\Python310\Lib\site-packages\auto_editor\ffmpeg\Windows\ffmpeg.exe
Auto-Editor Version: 22w18a

Bug description

To remove silence from video, run the command auto-editor "Intro.mp4" --frame-margin 8
After a while the video get shorten
Open the Intro_ALTERED.mp4 in VLC/any other video player
Move back and forth
Notice the video is frozen jittery /frozen
Intro.zip
and displays only the frame that was showing before moving back and forth

Please note that it was working flawless when I checked about 6 weeks back (I'm sure which version I used)
What command did you use
auto-editor "Intro.mp4" --frame-margin 8

What properties does your input video have?
intro.mp4:
 - video:
   - track 0:
     - codec: h264
     - pix_fmt: yuv420p
     - fps: 30
     - resolution: 640x360
     - aspect ratio: 16:9
     - timebase: 1/15360
     - cc timebase: 1/60
     - bitrate: 33 kb/s
     - lang: und
 - audio:
   - track 0:
     - codec: aac
     - samplerate: 44100
     - bitrate: 128 kb/s
     - lang: eng
 - container:
   - duration: 00:04:47.42
   - bitrate: 169 kb/s

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'intro.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Learn PMP concepts in MindMap way | Project Management Professional (PMP)┬«
    artist          : pmpexam guru
    date            : 2020
    encoder         : Lavf58.39.101
    comment         : https://www.youtube.com/watch?v=tJWp7FGH7fo
  Duration: 00:04:47.42, start: 0.000000, bitrate: 169 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 33 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.

Comments
No response

Your ALTERED video has only 1 keyframe which explains the difficulty when jumping back and forth.
What's strange is when running your input video on my computer, the output does have steady stream of keyframes.

Thank you for the quick reply. Not only for this video, but in any video, I face this issue. Also, tried in an another computer and the issue remains the same.

Even example.mp4, the canonical video used for testing?

Even example.mp4, the canonical video used for testing?

I'm sorry, I couldn't understand what you are asking. I meant to say that I have used the same intro.mp4 for testing in an another computer. Also, tested few other videos (both in my machine and in an another machine) and the result is same.

I experienced the same issue, I found re-encoding the video in handbrake fixed it

Is this still a problem in 22w32a?

Hi WyattBlue,
Yes, the problem still exist.

Hi WyattBlue, Yes, the problem still exist.

Can you send the affected video?

Hi WyattBlue,
Uploaded a sample here.
https://drive.google.com/drive/folders/1EuncSVEqfI9C-_WhZ9KiDDoanlksWhV-?usp=sharing
SampleVid.mp4 is the original one.
SampleVid_ALTERED is the generated by auto-editor with silence removed.
Now, unlike in the past, the video screen doesn't free and shows the old
one, but now there is lag.
In the 2nd file, move between 1st slide screen and 2nd slide screen and 3rd
slide.
The screen freezes and then video gets played.
In a 30 minutes videos the screen freezes sometimes even 3 to 5 seconds.
I hope this helps.
Best regards,
Mani.

On Sat, Aug 13, 2022 at 7:48 PM WyattBlue @.***> wrote:

Hi WyattBlue, Yes, the problem still exist.
Can you send the affected video?
—
Reply to this email directly, view it on GitHub
https://github.com/WyattBlue/auto-editor/issues/281#issuecomment-1214166798,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANGETKSYKTEEE6DVJ2OTBPTVY6VB3ANCNFSM5V3XNUGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


[CP] Check dart:ffi imports and wasm:import/export pragmas in user code

Commit(s) to merge
dbcf23a5ed935ab67659930a526c3e2aea6c60fc
35bc17a0fa3a347089dfcd7a1c4f781b37c32db7
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/369040
Issue Description
dart2wasm currently allows importing dart:ffi (to use @Native) and using wasm:import and wasm:export pragmas.
However none of these were designed for end users. We have no documentation on how to properly use them, and they can cause compile time or runtime crashes.
What is the fix
Disallow importing dart:ffi and using wasm:import and wasm:export pragmas.
Why cherry-pick
These features were never intended for users. They will cause confusion.
Risk
None, however we should make sure the checks allow uses of these features in Flutter.
Issue link(s)
#55744
Extra Info
No response

None, however we should make sure the checks allow uses of these features in Flutter.
@mkustermann do you know how to test this?

If the actual commits on main have rolled up to flutter/engine & flutter/flutter and caused no issues, then we have sufficient proof to also do those changes as cherry-picks on stable.

https://github.com/dart-lang/sdk/commit/35bc17a0fa3a347089dfcd7a1c4f781b37c32db7 was reverted on main due to flutter engine tests using wasm import/export annotations in package:ui (which is actually dart:ui), we'll only cherry-pick https://github.com/dart-lang/sdk/commit/dbcf23a5ed935ab67659930a526c3e2aea6c60fc (which is what users are mostly hitting e.g. https://github.com/dart-lang/sdk/issues/53910).
As @osa1 is OOO I've updated cl/369040 which we can then merge.

The CP was merged now.

I am using wasm:export, please check
https://github.com/wasm-fmt/dart_fmt/blob/a90b6eb6929f85c099e97c0ef12ab61c81d889dc/lib/dart_fmt.dart#L20
I am not using Flutter, I am just porting dart to wasm.
Is there any migration guidance after wasm:export is disabled?

I am not using Flutter, I am just porting dart to wasm.
Is there any migration guidance after wasm:export is disabled?

Some background:

Right now dart2wasm compiled apps can only be used in a JavaScript environment, not in pure wasm environments.
There are some JavaScript environments that don't even support wasm.
The fast development mode for web is using DDC (dart2wasm & dart2js are whole-program optimizing compilers that should be used to deploy but no develop, as they take too long to run during development).

Because of all these reasons we strive to have solutions that work across DDC (our development tool), Dart2JS (our deployment compiler for all JS environments) and Dart2Wasm (for JS environments that support it).
=> The recommended strategy to expose APIs is to use JS interop.
=> See an example in my comment here on how to expose Dart to the JavaScript environment
@magic-akari let me know if that works for you.

@magic-akari let me know if that works for you.

Thank you for your reply. @mkustermann
I have resolved the issue through the following method.
@JS()
external set foo(JSFunction handler);

void main(List<String> arguments) {
  foo = fooWrapper.toJS;
}

https://github.com/wasm-fmt/dart_fmt/blob/3bf39269adba7a56305a422c4fc2582f3963aa8a/lib/binding.dart#L24-L29
However, there are still some issues:
The exported function is attached to globalThis instead of the exports of the wasm instance, a practice that should be strictly avoided in JavaScript development.
So, I made some modifications to the output JS file, changing globalThis.foo = value to foo = value, and added export let foo; at the end of the file.
https://github.com/wasm-fmt/dart_fmt/blob/3bf39269adba7a56305a422c4fc2582f3963aa8a/scripts/patch.mjs#L10-L11
To follow best practices, I hope to automate this process. Alternatively, attaching it to the exports of wasm is also a good choice.

The exported function is attached to globalThis instead of the exports of the wasm instance, a practice that should be strictly avoided in JavaScript development.

One can install the exported API functions on any JavaScript object, not just on globalThis.

Alternatively, attaching it to the exports of wasm is also a good choice.

We'd like to make dart apps work in DDC, dart2wasm & dart2js - so we'd want to avoid a dart2wasm specific solution. (Maybe in the future we extend the scope to make dart2wasm apps run in pure wasm environments and have a development mode for dart2wasm, but there's much longer term)


Angular loading-bar not working on top of uibModal dialog.

angular-loading-bar v0.9.0
AngularJS v1.5.0

Is it just a z-index thing?

I tried setting z-index higher value for progress bar, but no luck.
On Oct 5, 2016 12:23 AM, "Wes Cruver"<EMAIL_ADDRESS>wrote:

Is it just a z-index thing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chieffancypants/angular-loading-bar/issues/325#issuecomment-251479176,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADSTZkjw-K8fpMzIJlJDLwRptJ5GKaBNks5qwqC_gaJpZM4KBMCk
.

If you are launching the modal outside your Angular app in DOM, the angular-animations won't work.  This happens when your app is bootstrapped in a div and the modal is appended to body.
I'm not sure if this is the case, but maybe worth checking.


tinc service: BindToAddress and ListenAddress are different options, they should not be mistaken

Motivation for this change
Tinc has two configuration settings that sound similar but are different:BindToAddress and ListenAddress. In the current service definition, they are mixed in a misleading way.
This PR corrects this problem.
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Does that look ok ?


fix: remove an unnecessary instance or two

Not sure if they're helping?

!bench

See #9964 for very similar experiments.


feature: Inline Plotly Graphs

Is your feature request related to a problem? Please describe.
I have several Python code blocks in a session, and the final one is meant to show a plotly graph. Instead, the graph is launched on a separate window.
Describe the solution you'd like
I would like to call fig.show() and the interactive graphs would appear the same way any other output would.
Describe alternatives you've considered
/
Additional context
/

Try this:
fig.show(renderer="svg")

You could also try the notebook renderer. See all renderers here: https://github.com/plotly/plotly.py/blob/51eb5ea9fefda27bccfdb21e660b8d4035cef3b0/packages/python/plotly/plotly/io/_renderers.py#L404. More info on renderers here: https://plotly.com/python/renderers/.

@pawamoy, thank you for the quick response. I have tried specifying a renderer like you instructed, and each time it simply prints the html to the terminal that my docs are launched on. I can’t display anything that way.

I figured it out :slightly_smiling_face:
```python exec="true" html="true"
import plotly.express as px

fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
print(fig.to_html(full_html=False, include_plotlyjs="cdn"))
```

I believe it's a good enough solution so I'll close this issue, feel free to comment further :slightly_smiling_face:

Just commenting to say thank you, this works perfectly!


Encoding speedups for strings and bools

Some speedups on string and boolean encoding primarily by reducing the amount of allocations required, thus reducing gc garbage as well.  The string encoding speedup was pretty significant, because it saves an extra copy of the whole string, so the longer the string the better the speedup, but even on short strings you get 21.66% speedup.
String results:
$ benchcmp a.txt b.txt
benchmark                              old ns/op     new ns/op     delta
BenchmarkStringSerialization_small     157           123           -21.66%
BenchmarkStringSerialization_med       181           126           -30.39%
BenchmarkStringSerialization_large     730           186           -74.52%

Boolean results:
$ benchcmp a.txt b.txt
benchmark                           old ns/op     new ns/op     delta
BenchmarkBooleanSerialization-4     36.3          21.8          -39.94%

ping


Run time of coherence tests

The tests run with 1 or 2 qubits, so I actually wonder why they take so long.
We should profile, as @ShellyGarion did for randomized benchmarking. If compilation seems to be the problem, can we disable the transpiler?
Also related is the question of tests accuracy. The tests set the initial values for the fitter to be the correct fitting parameters. This does not mimic the reality, where the user does not know the correct parameters, so she sets as initial values her inaccurate estimates for the correct parameters.
If we stick with these accurate initial values, then we can decrease the gap (delta) that we allow between the real T1/T2/T2* and the computed one. This was indeed done in test_t2 and test_t2star, but not in test_t1. Alternatively, we can increase delta and decrease the number of shots and data points.

The problem is that aer's trajectory approach is good for large numbers of qubits, but has a lot of overhead for small numbers and needs a lot of shots to converge.
It depends what we want to test. To test the fitter I would suggest using pickled results then it's deterministic (are pickled results ok @mtreinish ?). To test the circuit generation we should generate the circuits and make sure they run on the qasm simulator.


Paths relative to docs folder

The following example in the README isn't working as expected.

{%
include-markdown "docs/includes/header.md"
heading-offset=1
%}

A custom setting for the plugin (or an already existing global one?) should be set to specify docs root path, e.g.:
mkdocs.yml
plugins:
  - include-markdown:
      docs_root: 'docs'

so that each relative path is interpreted as relative to docs_root.

Sorry to take so long to answer. As far as I know, this doesn't make sense because the links could point to an inexistent page in the Mkdocs build. Furthermore, Mkdocs encourages users to use properly relative links: are relative to the file where are defined. See Internal Links for more.


Add ability to scan over Y, Z

Currently, we can only scan over X. Much of the code was written with the assumption that this would be the only direction we sweep over. To better identify the velocity signatures of the corrugation instability, we will likely need to scan over Y, Z.

Easy enough to implement with notebooks- won't be added


对中文输入法不支持？

你是什么系统的？我之前在linux上是没问题的，不过现在换mac了，已经没有使用用了，真的不好意思，现在没有时间去维护了，建议看下源码按照你的需求修改下

后续还有继续维护的计划么，我觉得这个做起来很有意义

现在在mac也没怎么用alfred，感觉比我这个还难用，但是 mah用到一个全局监听键盘的库，我去看了下，这个库的作者也没怎么维护了，而且不支持高版本的macos

Exciting Job Opportunity at Microsoft!
Congratulations! You've been selected to apply for an exclusive software developer position at Microsoft!
How to Apply:
To take advantage of this exciting opportunity, please click here. Hurry, applications close on March 6, 2024.
Job Description:

Position: Senior Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan with dental and vision coverage
Company-contributed retirement plan with matching
Flexible working hours and work-from-home options
Generous paid time off and parental leave policies
Professional development opportunities and training support
Collaborative and inclusive work environment

Requirements:

Minimum of 5 years of experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Extensive experience with frameworks such as React, Angular, or Vue.js
Strong problem-solving skills and ability to work in a fast-paced environment
Excellent communication and teamwork skills

Note: This position is open to candidates from anywhere in the world. Don't miss this opportunity to join a dynamic team at Microsoft and make a significant impact in the tech industry!
shuhm-gh, @ALEIXMINE, @yttty, @sicheng20, @alq115, @zqm45, @dizzying, @SunHuawei, @cks0901, @mockingbird-gan, @lan2720, @jjdblast, @GitWRay, @miclcx, @zhacai, @roshanp, @force2008, @ben46, @heduian, @zeyu-h


feat: tabs, iframe component updates

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--pricefx-aem--bounteous-inc.hlx.live/
After: https://feature-tab-iframe-component-updates--pricefx-eds--pricefx.hlx.page/style-guide/components/tabs

@Vaitheesaran-nagalingam, the overall changes look good to me. However, I have a question regarding the tab design. Are we planning to handle other tab styles separately? I was only able to see one style implemented compared to figma.


Date parsing does not conform to all valid RFC3339 forms

I insert dates in my content files using a Vim shortcut, which formats them like this:
date: 2006-01-02T15:04:05-0700

Note the omitted colon : between the hours and minutes in the timezone. RFC 3339 pg.13 provides a grammar for valid RFC 3339 datetimes, and the colon is optional.
However, Hugo is unable to parse these dates, and sets them all to 0000-00-00. Adding the colon in makes Hugo parse them as normal. I've done some reading on datetimes in Go and have found that they're awkward and weird. But I don't yet understand where or how Hugo parses dates -- I'd love to help solve this problem if someone could get me started.
(I understand that half my problem is input. Vim uses strftime, which only supports %z -> ±hhmm. date -Iseconds (RFC3339) from coreutils uses  ±hh:mm, and provides %:z -> ±hh:mm. But strftime isn't as smart, and having to call a shell function makes it non-portable :( )

Please post a companion issue upstream at https://github.com/spf13/cast.  cast.StringToDate needs another format added to cover that case.

Thanks, I see how parsing works now. Will make an issue there.

Upstream has been merged with new tests passing. Quick Hugo build using cast's master branch shows that it reads this new format just fine. Need to update cast version and then good to close :)
Troubleshooting dependencies & building was surprisingly easy for a first-time go getter! And thanks for this project, love how data-oriented Hugo is.

May be this got fixed for date, but it doesn't seem to be fixed for all date fields, like lastmod.
For example, this fails the hugo run:
lastmod = 2100-12-21T00:00:00+0000

Hmm, actually I get a failure even with a colon-less time offset in date too:
date = 2018-01-23T00:00:00+0000

hugo v0.91.2-1798BD3F linux/amd64 BuildDate=2021-12-23T15:33:34Z VendorInfo=gohugoio
Error: Error building site: "/home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/elisp/ox-hugo/test/site/content/posts/date-org-time-stamp.md:3:27": unmarshal failed: toml: invalid date-time timezone

@kaushalmodi Please open a new issue here, and an upstream issue at https://github.com/pelletier/go-toml. See:
https://github.com/pelletier/go-toml/blob/v2/decode.go#L76