Native implementations in Linalg.

@karlnapf @lambday I would like to work on this. Currently HAVE_LINALG_LIB is defined provided eigen3 & viennacl are found, and supported c++11 compiler is used. We can change it to defining HAVE_LINALG_LIB only when the supported c++11 compiler is used. This can be achieved by altering shogun/CMakeLists.txt alone.
We can give runtime errors for the operations that can't be implemented natively in linalg. Please list down the operations that can be implemented natively (i guess Vector/Matrix dot and sum are one of them).

Nice to hear from you @lambday :D. I think not disturbing HAVE_LINALG_LIB is a good idea. Looking forward to your modifications.

@sanuj check PR #2672. I have just added dot to check if the NATIVE backend thing is working. Once this change is merged, you can start working on native implementations for other operations in similar fashion.
Please make sure that everything compiles even in absence of eigen3/viennacl. Unit-tests for NATIVE should work even when we don't have any external libs.
Another cleanup work would be to use this linalg::dot(a, b) instead of the existing dot methods (replace everywhere dot operation is used without specifying any backend since it is safe now).

@lambday Great! The PR looks good :) I'll start the clean up work and add more native implementations in a similar fashion as soon as the PR is merged. Loads of functions can be cleaned up and more can be implemented natively (list is in the mailing list, Should I add it here just so we have a record?).

@sanuj cool. So the key to add native implementation to linalg is that we'll keep those operations (in modules) outside of the HAVE_LINALG_LIB guard. No other special tricks required. Please keep in mind that we don't intend to provide native implementation for everything . Just the basic trivial things (most of them were already there in SGVector and SGMatrix). Before you push, you must check locally (compile and run the unit-tests)

with all the backends configured
without the backends configured
(I do a silly thing - I just temporarily rename the include dirs of eigen3 and viennacl to something else so that cmake can't find them. Maybe there is a better way to turn this off just by cmake.)

Don't worry about adding the list here. We have the mailing list archived already :)
Wait for this PR to be merged first :) Once I hear green from @iglesias I will merge it.

Oh and please use viennacl 1.5.x and not 1.6. I noticed some compatibility issues with that locally. I'll have to address that later after the release. You need to install opencl as well.

Got it :+1:

@lambday @iglesias
I'm not sure if CMath::dot can be replaced by linalg::dot<linalg::Backend::NATIVE> everywhere in shogun since it needs to be surrounded by if defined(HAVE_CXX0X) || defined(HAVE_CXX11). So when HAVE_CXX0X or HAVE_CX11 are not defined then the compiler will throw errors. I was thinking of removing CMath::dot entirely but now I'm not sure whether it will work on not. What do you think?

I think that's actually a very good point, @sanuj.
@lambday, is it possible to refactor linalg so that C++11 is an optional dependency so we can have parts of it (e.g. dot product) that do not depend on it?

@iglesias I guess at present the only c++11 thing that is there in linalg is the enum class thing (rest, variadic templates etc are now removed). I'll see if we really need enum class or just enum will do. hard to test locally since I don't have a compiler that doesn't support c++11 :P
@sanuj well, the idea is to use just linalg::dot(...); instead (without specifying any backend). What's the use of having eigen3/viennacl powered dots if we plan to use native always! :D let dot use default which anyways falls back to native if 3rd party libraries are not found! makes sense?

@iglesias why aren't we using a compiler in travis that supports c++11? that's not in our hand? gcc supports c++11 from 4.6.x itself (IIRC). IMO if people still use a compiler that doesn't support c++11 they should be punished :D

@lambday Yes indeed. But if we use linalg::dot(...) then also we would need to surround the code by if defined(HAVE_CXX0X) || defined(HAVE_CXX11). So I guess for now we shall use CMath::dot till c++11 dependency is resolved.

@sanuj ya I got that. I think just replacing the enum class thing with enum we should be fine (all linalg::Backend::EIGEN3 [and so...] would also have to be changed by just EIGEN3 [and so...] as well since enum doesn't have their own scope). if that works then we don't need c++11 for linalg.

Yeah, I agree, @lambday. For me it would be fine to make C++11 a compulsory dependency. But I guess there might be some cons with that? @karlnapf @vigsterkr @lisitsyn @sonney2k

Fine from my side, we should take advantage of all the modern stuff in the language these days anyways.
I much rather prefer a modern code over being compatible to ancient computer systems.

And also, it is just a matter of saying, Shogun v. x.x.x onwards requires a gcc v. > y.y.y., otherwise use an older version of Shogun. It is not like Shogun would not be usable at all in old systems.

I believe that as long as we are source-based not distribution-based modern compiler is ok.

So is there any conclusion here?
Make c++11 mandatory?

We will wait (at least a bit) with c++11 (see discussion on mailing list)
As eigen3 is now always enabled, we dont need the native implementations anymore


Removed pow dtype checking

What do these changes do?
pow's dtype checking was causing an IndexError: index out of bounds error. Since we are in the process of revamping our dtype checking anyways, we remove the dtype checking from pow temporarily.
Related issue number
Fixes #345

[x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
[x] passes black --check modin/

Merged build finished. Test PASSed.

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


Update .editorconfig

Coverage remained the same at 100.0% when pulling 07075af5df991ffaba29d6cf20591f468f545bdd on voyula:patch-2 into 207acac048652a35d4762a737d59e317aedc02df on slimphp:4.x.

This should also be done on all other repos. Slim-Psr7, Slim-Http, etc.


Not working with extensions

When trying to generate barel from extensions - barel file stays empty
extension Services on List<SelectListItem> {
  String toServicesString() {
    return this.map((e) => e.value).join('    ');
  }
}

I do not understand what do you mean with it. Could you please be more specific? Could you provide an example where I can recreate it?

I'm closing the issues since there's been no response 😉

If I have extensions file in the folder and run generator barel files stays empty

Can you provide a folder example or something where I can generate such error?

I have provided file content. Create .dart file with code I pasted above
and try to run generator
On Thu, Feb 25, 2021, 6:18 PM Miquel de Domingo i Giralt <
<EMAIL_ADDRESS>wrote:

Can you provide a folder example or something where I can generate such
error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mikededo/dartBarrelFileGenerator/issues/6#issuecomment-786064793,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA54ZF6HQYY2R2ENR37QH3LTA2A55ANCNFSM4X64BQOQ
.

Sure. If tried using the following folder scheme:
test
└── main.dart

And after running the generator I get
test
├── main
└── test.dart

Where test.dart contains the main.dart export.

I will try to put more info soon

I am not sure what is happening but sometimes it does not work. e.g.
I had file in folder with commented code. I used generator for that folder all worked good. After i uncommented the code and new file is not added into barel file but generator says it has generated all succefully:

as you can see items_list_helper


Poster

https://www.overleaf.com/project/5df5a2a09a2bf900017eda30

is there space RHS white column  for list of beliefs we need to check?

maybe summarize the starter ideas
https://docs.google.com/presentation/d/1i3O0S1Ywa4UxIFVSkZgjUl6YjFBsEU5-G_b_PEadHdE/edit

update EMBLEM page in arXiv add link to it on poster

Tuning empirical SE for Computational Science, we learning better predictor from learning the language model of the softwares within the community.

can we predict for quality software? the suovodeep analysis


Optimization about PartB Sequential Part

I have unrolled the nested loops and replace it using the 9 lines of codes as the hints say, but the performance is still far slower than the baseline, why is that?

A follow up question. Is there any hard requirement that we must follow when we implement this? Or as long as we can achieve the performance, it will be ok.
Say, can I change the memory layout of image. If the answer is yes, does the time used to reconfigure the image count as a part of the reported time? Also, can I use O2 optimization instead of O3. My current implementation works way better under O3. But if I do not change anything of the source code provided, switching to O3 won't give me any noticeable benefit.

Hi @noah822
I don't think there is any hard requirement like you said. Feel free to use anything you can think of to speedup your parallel programs. You can use -O3 for compilation, but you need to specify in your report that how did the -O3 compilation helped to speedup your program. For example, which optimization option took effect.
Improving the performance is an endless job. Please complete the basic parallel implementation first, and make sure that you know how to solve a parallel computing problem and how to write parallel programs with acceptable performance. After that, if you still have time and want to take one step further, you may consider some advanced optimization techniques for extra speedup and extra credits. After all, this course is for parallel programming, not for high-performance computing.

Hi @szjiozi
I think replacing the nested loop of the size-3 filter should be enough to get the baseline performance. Maybe the memory access sequence is not optimized? If you still cannot get the baseline performance, don't stick to the sequential program and focus on implementing the six parallel programs. After all, the sequential implementation will not be marked.


rustc: apply patch to fix thin archive reading

Description of changes
https://github.com/NixOS/nixpkgs/pull/212811#issuecomment-1411173622
built mesa on x86_64-linux on master

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

What about the other two commits that were reverted in the same PR?

Yeah, I think we should apply all of them, as they've all been heavily tested from the discussion in the PR -- no point to diverge, I'd say, unless there was a specific reason you did?

I don't think these two commits are in 1.67.0

switching to staging-next: https://github.com/NixOS/nixpkgs/pull/214010


Add tentative syllabus.

This pull request is created for discussing the syllabus.  @jjhuang314 and @tjwei, could you comment?

seems fine to me.

I merge the tentative syllable into the master, so that we can further develop it and discuss sub issues.


/dashboard/system/files/storage formatting

Bold to bluecaps.
add HRs
Lets add some help text to the tab on the right:
By default concrete5 stores the images and documents your website shows in the /files/ directory on your webserver. You can setup additional file storage locations in the cloud as well. From the File Manager you can choose which storage location to use for any Directory of files.

This is outdated. We're doing another UX pass.


The input protocol dosen`t work on real keyboards.

The Input protocol only works in a vm.

Hi! Please provide more information about the code you ran, the environment (software versions etc.) you used, and so on. Without context, we can't do much about it.

The Input protocol does not get user input on a real computer.

FYI: I slightly edited your reply to use proper Markdown.

Maybe the problem is in the Input protocol.
When I compile the project and test the .efi  file with a vm it works.

This line doesn't look right to me:
input_protocol.wait_for_key_event().unwrap();

This is just getting an Event, it's not actually waiting for a key to be pressed (see https://docs.rs/uefi/latest/uefi/proto/console/text/struct.Input.html#method.wait_for_key_event). You'll need to use boot::wait_for_event to actually wait for a key press.

It sill does not work.

Can you describe in what way? Is it panicking somewhere? Does the boot::wait_for_event call ever return? Is key ever Some?

From boot::wait_for_event I get 0 and key is not Some.

The Input protocol does not work in a real pc.

The problem probably is the Input protocol not getting the pressed key.

The issue is still active.

The issue is still active.

We are all maintaining this in our free time 😉 You can be sure that @nicholasbishop and I have seen this issue. But at this time, none of us had the time to investigate this further, unfortunately.

I think I've identified the issue. I trimmed your example code down and verified what you saw: key presses worked in a VM, but not on real hardware. The device I tested on is a Lenovo X1C gen 9. The issue is this line: system::with_stdin(|stdin| stdin.reset(true).expect("Failed to reset stdin"));. Once I removed that, it started working.
Here's the complete code I tested:
// In cargo.toml:
// uefi = { version = "0.33.0", features = ["panic_handler"] }

#![no_main]
#![no_std]

use uefi::prelude::*;
use uefi::println;
use uefi::proto::console::text::Input;

#[entry]
fn main() -> Status {
    uefi::helpers::init().unwrap();

    let handle = boot::get_handle_for_protocol::<Input>().unwrap();
    let mut input_protocol = boot::open_protocol_exclusive::<Input>(handle).unwrap();

    loop {
        println!("before wait");
        boot::wait_for_event(&mut [input_protocol.wait_for_key_event().unwrap()]).unwrap();
        println!("after wait");
        let key = input_protocol.read_key().unwrap();
        println!("key: {key:?}");
    }
}

Thanks, I turned your code into the input processing code and pasted my own code for handling  commands in.


Implement Textual Diff Management

Summary
Whether it is operating in standard or file-host mode (see the design from #29), the language server needs the ability to deal with and communicate with the client using textual diffs so that the client and server representations of the code remain in sync.
Value
The client and server can ensure that they are operating on the same representation of the Enso program.
Specification

Implement a synchronize message that updates the whole state of the file(s).
Implement diff messages that send changesets to and from the client.
Implement a 'save' message that commits any in-memory changes to disk.

Acceptance Criteria & Test Cases

The language server is capable of reasoning about and working with messages pertaining to the program text.

Superseded by a new plan.


⚠ Bofrost.be has degraded performance

In c9d6d73, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1676 ms

Resolved: Bofrost.be performance has improved in 797e566.


Make 'token select' hitbox bigger on swap UI

Can we increase the size of the hitbox (the interactive area that you can click on) for the 'token select' UI?
Right now, the hitbox is small enough that it's easy to miss and click outside of the drop-down menu. Clicking the token and its icons don't activate the dropdown.
See loom video for example: https://www.loom.com/share/f3efb9a080a045808d8ce5ec83ec78a2

Thank you! 🚀

Thanks Jon!

Can we implement this on the Single-Asset LP swap as well?


Bug: Adapter does not fail a job with "Out of memory" errors

Expected Behaviour
If rendering fails, we expect that the task is in FAILED status.
Current Behaviour
If rendering using Redshift fails with "Rendering failed: Out of memory", the job is classified as SUCCEEDED.
Reproduction Steps
I submitted a Redshift job to a Windows CMF instance with low GPU memory.
BYOLFarm_BYOL-Windows-Queue_session-c1f3baa0741f445dbae0dda6c85befa6.log
Code Snippet
I assume that this should be similar to effort for https://github.com/aws-deadline/deadline-cloud-for-cinema-4d/issues/51. I wonder if there is a way to generalize this so that all types of Cinema 4D failures result in tasks getting failed?

Just ran into this issue today. For me, the job never failed or completed, it just froze. on this error:
2024/10/07 15:16:21-07:00 ADAPTOR_OUTPUT: STDOUT: Rendering frame 0 at <Mon Oct  7 22:16:21 2024>
2024/10/07 15:16:30-07:00 ADAPTOR_OUTPUT: STDOUT: Error: RenderDocument: 1

The error gets printed on these few lines:
https://github.com/aws-deadline/deadline-cloud-for-cinema-4d/blob/01a7c3f935d3a47a50745dff9f7e726dc1d69c61/src/deadline/cinema4d_adaptor/Cinema4DClient/cinema4d_handler.py#L71-L74
Digging a bit deeper, I found that error code 1 comes from c4d.RENDERRESULT_OUTOFMEMORY which is what took me to this github issue.
There's actually a large number of possible errors that we are not checking for at that spot in the code. A more complete list is here: https://developers.maxon.net/docs/py/2024_0_0a/consts/RENDERRESULT.html

This is kind of off topic, but, in my case, the "Out of memory" error was actually caused by a licensing issue. I fixed it for my c7i.2xlarge Windows CMF machine by just setting the redshift_LICENSE environment variable to point to port@host for the port and hostname of my license server.
Either way, we need better error handling, but I just want to call out that this specific error could actually be a licensing thing.


DOCS: How long until poser picks up new package?

Can we please have a sentence somewhere on the page that explains how long does it take for poser to pull for new projects from packagist, even if it is instantaneous.
Thanks

that's a great idea, would you like to provide this?

I would if I knew how it works
On Thu, 27 Apr 2017 at 9:29 pm, Giulio De Donato<EMAIL_ADDRESS>wrote:

that's a great idea, would you like to provide this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PUGX/badge-poser/issues/168#issuecomment-297687883,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXHqrATKLZ7I_CwbpD-M1B8ZywSdjVLks5r0HwXgaJpZM4NJ1gl
.

What about just using any url with name of new package? It's updates instantly if package at packagist.org

Is it actually instantaneous ? I don't get the right badge for knplabs/knp-menu-silex. Is it because it is a new package (and not only a new release ) ?
Btw, the search on https://poser.pugx.org does not find it.

Is it ok now?

well, it is OK now for this package now.
But it makes me think that there is a delay for badges to be updated, and this makes the request of this issue even more relevant: documenting on the website that there is such a delay, and what kind of delay it can be (is it minutes, hours or days ?)

Looking forward for this info too. Or for a button "refresh now".

It feels like a delay of at least a day?

Could the PURGE HTTP method be implemented, if we want to force reload a badge?
GitHub supports this:
curl -X PURGE {url of cached badge image}

in badge-poser there are no cache layers, if there are delays they are due to the bees of packagist or github! ;)

I think github is caching images in their camo proxy.


Fix for new deepnet structure with residual networks

@mmerce - This should fix the problem we saw with "learn_residuals = True" and the new deepnets.  It's just the one commit so you can cherry-pick if that's more convenient.

@mmerce - This should fix the problem we saw with "learn_residuals = True" and the new deepnets. It's just the one commit so you can cherry-pick if that's more convenient.

Probably it's the best option. I have an open PR just now, so I'll try to add it there.


ccal: init at 2.5.3

Description of changes
ccal is cal but in Chinese calendar
http://ccal.chinesebay.com/ccal.htm
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

darwin build failed due to hardcoded g++, fixing

Any particular reason not to use upstream's make install and make install-man?
ccalpdf has a PATH-based dependency on ps2pdf. That should probably be made into an absolute path. The reference to ccal in the same script should ideally be absolute as well.

zettlr doesn't seem to actually provide ps2pdf, so it still fails. ghostscript is probably where you want to get it.
Also, adding $out to PATH in the wrapper will make the reference to ccal itself work, even when ccalpdf is called without it having been installed. (Such as when doing ${pkgs.ccal}/bin/ccalpdf in a nix string generating a shell script somewhere)

Use ghostscript_headless since it seems smaller than ghostscript. Also add coreutils since the script uses dirname.

Yeah, ghostscript_headless is better. ccalpdf works for me now, and the closure size isn't bad.
I don't see the use of dirname you're talking about, though. Am I blind?

dirname lies in ps2pdf, ps2pdf14 and ps2pdfwr.
Yes this should be handled in ghostscript package, let me remove it and pr ghostscript later.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/844


[CONTROLLER/DB] adds prometheus synced_at

This PR is for:

Server

adds prometheus synced_at
Checklist

[ ] Added unit test.

Backport to branches

main

 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.zhengya 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.


Fixed navbar hover colors and interactivity of logo and theme toggler

All navbar buttons now react to hover and change color according to their theme in index.html
Also, theme toggles now feels more interactive as the cursor changes to a pointer instead of being static
Logo also grows on hover and cursor chagnes to pointer instead of text cursor.

Can you add some screenshot to your implementation

The color on light theme for the logo has also become dark according to the theme
Plus added these changes to navbars across the html files

Please look at issue #60 too


Name resolution failure attempting to reach service in region      | e-west-2

Hi
Am trying to run this but get the following response :
Line |
635 |      $managedPolicies = Get-IAMPolicyList -OnlyAttached $true
|                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Name resolution failure attempting to reach service in region
| e-west-2 (as supplied to the -Region parameter or from
| configured shell default). Operation timed out Operation timed
| out. Possible causes:  - The region may be incorrectly
| specified (did you specify an availability zone?).  - The
| service may not be available in the region.  - No network
| connectivity. See
| https://docs.aws.amazon.com/general/latest/gr/rande.html for
| the latest service availability across the AWS regions.
From the output not sure if the "u" is being dropped for some reason when entering the region but am entering as follows :

Running this on a mac - catalina v10.15.6.
Using PowerShell 7.0.3

Hi @Iwishiwasfry, Thanks for raising this issue.
You encountered a very weird bug... don't know why the "u" letter got out from the "region" parameter.
Anyway.. I fixed it the last code change.
I changed it entirely, now the scan doesn't ask the user for a "default region" at all. That because it doesn't really matter, the scan only perform queries to the IAM service, and IAM is cross regions.
So the scan sets the default region automatically to "us-east-1".
Please try again the scan!
And feel free to update me if there are other errors.
Thanks
Asaf


whatever

This change is

#1681
#1680  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alonh5 and the rest of your teammates on  Graphite


RTL: TableDetailWizard : Alignment issues

Step text gets cut off in RTL but not in LTR

Progress bar should be to the right of the steps

"x" stay right-aligned on body but it should go to the left of the whole thing

Error message highlight does not right align

still valid

:tada: This issue has been resolved in version 2.104.6 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update sbt-scala-native to 0.3.9

Updates org.scala-native:sbt-scala-native from 0.3.8 to 0.3.9.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a nice day!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "org.scala-native", artifactId = "sbt-scala-native" }]

Codecov Report

Merging #891 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #891   +/-   ##
======================================
  Coverage    87.9%   87.9%
======================================
  Files          65      65
  Lines        1497    1497
  Branches        5       5
======================================
  Hits         1316    1316
  Misses        181     181

Continue to review full report at Codecov.

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

LGTM! Many thanks ... merging :-)


k3s: use default buildGoModule [V2]

Finishing off the PR @ck3d opened. We can patch k3s to fix the go 120+ build issue and remove the dependency on the deprecated go builder.

Thanks for taking over!

Thanks for taking over!

Thanks for spotting it!


Fix late initialization error for Analytics.userProperty

Fixes:

https://github.com/dart-lang/tools/issues/238

TLDR: initialization logic within the Session class's constructor body expects Analytics.userProperty to be initialized, this moves that constructor body logic from Session into a separate method (Session.initialize) we will call at the end of the Analytics class's constructor after we are sure all necessary fields have been initialized

[x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Contribution guidelines:

See our contributor guide for general expectations for PRs.
Larger or significant changes should be discussed in an issue before creating a PR.
Contributions to our repos should follow the Dart style guide and use dart format.
Most changes should add an entry to the changelog and may need to rev the pubspec package version.
Changes to packages require corresponding tests.

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

Going to merge this in now and publish so we can have a fix, filed a separate issue to refactor session handler

https://github.com/dart-lang/tools/issues/240

Going to merge this in now and publish so we can have a fix, filed a separate issue to refactor session handler

Refactor analytics session handler to use File.lastModifiedSync for _lastPing #240

Can we also refactor all the late/late final fields to something safer? I feel like unless one can reason globally about all the state in this package and all possible edge cases, it's impossible to know that users won't hit another LateInitializationError.

Definitely, I captured here: https://github.com/dart-lang/tools/issues/241

Definitely, I captured here: #241

nice, thanks!


Minecraft Java instance 'world type' option under minecraft adding extra character to server.properties file

OS Name/Version: Ubuntu 18.04.4 LTS
Product Name/Version: AMP v<IP_ADDRESS> Minecraft Java Instance
Problem Description: attempting to set "world type' option in config to "skyblock:skyblock-type" causes an extra character to generate in the server settings config file:  "skyblock:skyblock-type"
Steps to reproduce:
Step 1 Create new minecraft java instance and set world type to skyblock:skyblock-type
Step 2 start instance and connect a user to the world to make sure the world fully generates
Step 3 check server.properties file in amp/.ampdata/instances/INSTANCENAME/Minecraft and line "level-type="
should read: "level-type=skyblock:skyblock-type"
instead reads: "level-type=skyblock:skyblock-type"
Actions taken to resolve so far: manually edited file, revered after server reboot. left world type blank and manually edited file, reverted to blank after server reboot.
Thank you for your time.

the backslash didn't show up in the issue text but you can see it in the picture.

A similar issue was raised on Discord about a year ago and this was Mike's response: https://discord.com/channels/266012086423912458/640672668084994058/652160939445059584

Closing based on Mike's response. If more information is found that shows it's an issue with AMP this can be reopened.


Fill a virtualList with some text when it has no items

It would be nice to have the ability to fill the virtual list with some text, when it has no items.

Not really possible to unify it as many may want custom type of such information (list, block, text, etc...)
Just do manually something like :
if (myListData.length === 0) $('.virtual-list').html('nothing here');

Why not a creation attribute like this?
f7.virtualList('.selector', {
  items: [],
  emptyTemplate: '
'+
        ''+
          '
'+
              '
You can add an item by clicking the plus icon on the right top.
'+
          '
'+
       ''+
   '
'
});

Flexible and pretty simply reusable.


Fix to Issue #27 - Metadata

Preventing Overwrites on Creators and Royalties
I assumed we should only allow public keys for the "Creators" field. To enforce this, I set up an add_metadata function. It checks if any fields passed are public keys and errors out if they are. This way, we ensure that the only way to add metadata (aside from royalty data) is through this controlled process, safeguarding against overwrites.
for metadata_arg in args {
    // Check if the field is a public key
    match Pubkey::from_str(&metadata_arg.field) {
        Ok(_) => {
            return Err(MetadataErrors::InvalidField.into());
        },
        Err(_) => {
            ctx.accounts.update_token_metadata_field(Field::Key(metadata_arg.field), metadata_arg.value.to_string())?;
        }
    }
}

Updating Creators
Instead of separate instructions for adding and removing creators, I took advantage of the way the update_metadata instruction works: it either creates a new field (if it doesn't exist) or updates an existing one.
To remove creators, I used a combo of remove_key instruction and a custom check against the current metadata. If a creator isn't in the new list, we remove them.
// Identify and remove creators no longer needed
let keys_to_remove: Vec<String> = metadata
    .additional_metadata
    .iter()
    .filter_map(|(key, _)| match Pubkey::from_str(key) {
        Ok(pubkey) => {
            if !creators_arg.iter().any(|creator| creator.address == pubkey.to_string()) {
                Some(key.clone())
            } else {
                None
            }
        },
        Err(_) => None,
    })
    .collect();

for key in keys_to_remove {
    ctx.accounts.remove_token_metadata_field(key)?;
}

Note: For the remove_key instruction I'm sticking with creating it raw for now. Let me know if you think we should add a macro for it in the BrisgeSplit Repo
Problem created by this instruction: Account Lamport Adjustments
Ran into an issue where update_account_lamports_to_minimum_balance doesn't account for reductions in account space. I whipped up update_account_lamports_to_minimum_balance2 to handle cases where the space decreases. It attempts to refund lamports, but since the Mint needs to sign, this might not fly in production. Might need to include this check in all instructions since we could have this problem even if the instruction doesn't decrease the space in that exact instruction.
Updated the distribution instruction to only search for creators when issuing payments
When distributing payments, I made sure we only consider valid creator public keys. Any invalid keys are ignored, simplifying the process.
.filter_map(|(key, value)| match Pubkey::from_str(key) {
    Ok(pubkey) => Some(CreatorShare {
        address: pubkey,
        pct: u8::from_str(value).unwrap(),
    }),
    Err(_) => None,
})
.collect::<Vec<CreatorShare>>();

Add validation to Add Royalties to ensure all creators are valid pub keys
Added a quick check to ensure all creators are valid public keys before adding royalties. This catches any invalid keys early on.
for creator in args.creators {
    // Ensure each creator has a valid public key
    match Pubkey::from_str(&creator.address) {
        Ok(_) => {
            total_share = total_share
            .checked_add(creator.share)
            .ok_or(MetadataErrors::CreatorShareInvalid)?;
            ctx.accounts
            .update_token_metadata_field(Field::Key(creator.address), creator.share.to_string())?;
        },
        Err(_) => return Err(MetadataErrors::CreatorAddressInvalid.into()),
    }
}

I also added a sanity check to make sure the royalty fee basis points don't exceed 10000, preventing future errors.
require!(args.royalty_basis_points <= 10000, MetadataErrors::RoyaltyBasisPointsInvalid);

Conclusion
Let me know your thoughts or if there's anything else i should tweak! I left the test folder to simplifying the process of testing the implementation i did. Once it's tested could be left out of the merge.
Once it's all good and ready to merge i'll create the example for the new instruction i created!

I pushed the remove_metadata instruction. If you guys want i could create something similar to the modify for creators for metadata (so merging add and remove and make sure that there is only one struct for Royalties and one for Metadata instead of just passing in the values)

Yes I think this is a good idea, if a user tries to remove a pub key or the ROYALTY_BASIS_POINTS reserved key it should fail using this new IX. And the dedicated remove creator IX should make sure royalty shares still add up to 100. If the user want's to get rid of all royalties, we'll need to remove all pub key fields and basis points field and reset the transfer hook, though not sure what to set it to in that case.

Yes I think this is a good idea, if a user tries to remove a pub key or the ROYALTY_BASIS_POINTS reserved key it should fail using this new IX. And the dedicated remove creator IX should make sure royalty shares still add up to 100. If the user want's to get rid of all royalties, we'll need to remove all pub key fields and basis points field and reset the transfer hook, though not sure what to set it to in that case.

So this is already what is happening:

remove_metadata make sure that the arg passed in are not Pubkeys so the user doesn't have the possibility of removing Creators with that instruction.
removing/adding creator instruction always make sure that the total share adds up to 100%.

What i was referring is just to leverage the same way the modify instruction work in royalties. Instead of adding/removing single fields we can always make sure that the additional_metadata is the args passed in and use a single instruction called modify_metadata.
For the last point I can create another instruction that just remove creators (or leverage the modify instruction to check if the arg is empty or not -> if it is, remove the transfer hook and set it to Pubkey::default()).

Yes let's do that, just do a modify creators instruction for both add and remove, and then a remove royalties IX that nullifies the transfer hook. Is setting to pub key default the best way?

@L0STE tag when done


Can ShouldBeEquivalentTo mutch by lambda?

public class Failure
{
    public string Code { get; set; }
    public IEnumerable<string> ErrorMessages { get; set; }
}

var expectedCodes = new[] { "123", "456", "789" };
var expectedErrorMessages = new[] { "Required" };

var failures = new List<Failure>	{
new Failure { Code = "123", ErrorMessages = new List<string> { "Required" } },
new Failure { Code = "123", ErrorMessages = new List<string> { "Required" } }};

Can I do with ShouldBeEquivalentTo similar to pseudo code?
failures.ShouldBeEquivalentTo(x => expectedCodes.Any(x.Code) && x.ErrorMessages.ContainInOrder(expectedErrorMessages));

Because right now I can do that with custom extension method.

No, you can't do that. Instead, you could create another List<Failure> that contains the data as you expect them, and pass that to ShouldBeEquivalentTo using option WithStrictOrdering.

@TerraVenil does this answer your question?

Yes, please close this issue.


Tooling for integration testing

MT provides great abstraction layer over transport implementations and includes built-in in-memory adapter. Having those capabilities it is actually very easy to setup integration test environment (think: https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-3.1) for our applications. Consider some trivial .NET Core application, say a typical boring API:
public class Startup
{
  public void ConfigureServices(builder)
  {
      builder.AddMassTransit(c =>
      {
        c.AddBus(x => Bus.Factory.CreateUsingRabbitMq(bfc =>
        {
          // some setup
        });
      });
  }
}

public class MyController
{
  private readonly ISendEndpointProvider sep;

  [HttpGet("my-action")]
  public async Task<string> MyAction()
  {
    // some processing

    var se = await sep.GetSendEndpoint(...); //

    await se.Send<IMyCommand>(...);

    return "woohoo!";
  }
}

And integration test for such endpoint:
public class MyActionsTests : BaseApiTests
{
  [Fact]
  public async Task ShouldReturnWooHoo()
  {
      using var response = await HttpClient.GetAsync("/my-action");
      using var body = await response.ReadContentAsString();

      response.StatusCode.ShouldBe(HttpStatusCodes.OK);
      body.ShouldBe("woohoo!");
  }
}

public abstract class BaseApiTests : IAsyncLifetime
{
  protected HttpClient HttpClient;
  protected ApiFactory ApplicationFactory;
  protected TestSendObserver SendObserver;
  private ConnectHandle sendObserverHandle;

  public async Task InitializeAsync()
  {
    TestSendObserver = new TestSendObserver(...);
    ApplicationFactory = new ApiFactory();

    HttpClient = ApplicationFactory.CreateClient(Application);
    sendObserverHandle = ApplicationFactory.Server.Host.Services.GetRequiredService<IBus>().ConnectSendObserver(SendObserver);
  }

  public async Task DisposeAsync()
  {
    sendObserverHandle.Dispose();
    ApplicationFactory.Dispose();
  }
}

public class ApiFactory : WebApplicationFactory<ApiStartup>
{
  protected override void ConfigureWebHost(IWebHostBuilder webHostBuilder)
  {
    webHostBuilder
      .ConfigureTestContainer<ContainerBuilder>(builder =>
      {
        builder.AddMassTransit(c =>
        {
          c.AddBus(x => Bus.Factory.CreateUsingInMemory(bfc =>
          {
            // configure similar to real app
          });
        });
      });
  }
}

Please note that integration tests use in-memory instead of RabbitMq transport. Having this setup we can easily add some extra assertions:
  public async Task ShouldReturnWooHoo()
  {
      using var response = await HttpClient.GetAsync("/my-action");
      using var body = await response.ReadContentAsString();

      response.StatusCode.ShouldBe(HttpStatusCodes.OK);
      body.ShouldBe("woohoo!");

      // check messaging:
      var command = SendObserver.Select<IMyCommand>().FirstOfDefalult()?.Context.Message;

      command.ShouldNotBeNull();
      command.SomeProperty.ShouldBe("blah");
  }

This works quite well for send-only buses, however the true benefits kick in when we're having consumers, especially complex ones like state machines, and we want to check more advanced scenarios. I actually use it with great success with mentioned state machines and in-memory saga storages.
More advanced test case example:
  public async Task ShouldReturnWooHoo()
  {
    // input - input SendEndpoint of configured in-memory bus
    // sendObserver - sendObserver attached to in-memory bus
    // repo - InMemorySagaRepository

    await input.Send(new CreateSaga { Id = "abc", ... });

    repo.ShouldContainSaga("abc"); // exists in MassTransit.Testing
    repo["abc"].MyProperty.ShouldBe("my-value");

    await input.Send(new DoSth { SagaId = "abc", ... });
    await input.Send(new DoSthElse { SagaId = "abc", ... });

    repo.ShouldContainSaga("abc");
    repo["abc"].MyProperty.ShouldBe("my-value-after-DoSth-and-DoSthElse");

    var someOtherEvent = sendObserver.Select<SomeOtherEvent>.FirstOrDefault()?.Context.Message;

    someOtherEvent.ShouldNotBeEmpty();
    someOtherEvent.Result.ShouldBe("this event was send during DoSth processing");

    await input.Send(new DoSomeFinalization { SagaId = "abc", ...});

    repo.ShouldNotContainSaga("abc");
  }

Problems?

As message handling is asynchronous it is difficult to wait for messages to be processed. Naive approach is to simply Task.Delay(...). MassTransit in its own tests makes heavy use of TaskCompletionSource, corresponding Task Ready completed in "mocked" message handler and await consumedMessage.Ready inside tests, however here I'm not sure if we could somehow add such thing.
TestSendObserver / TestConsumeObserver could maybe expose some methods like "no more messages observed"?

Not well documented, but there is a bus activity monitor that can be used to determine if the bus has settled down: https://github.com/MassTransit/MassTransit/blob/develop/src/MassTransit.Tests/BusActivityMonitor_Specs.cs#L69

I definitely thing there can be some improvements to the testing namespace, particularly by integrating the activity monitor and a few other things. I've also created a separate set of the Consumed, Sent, etc. collections to check that are async friendly and use the activity monitor to short-circuit more quickly when the bus has settled down.

Another thing that I've forgotten to mention in need for some more reliable in-memory scheduler than Quartz.NET.

@Crozin I am trying to use WebApplicationFactory to test my API controller that uses MassTransit. Your code is great but since I'm brand new to Autofac I don't understand how to register MassTransit. For instance your code is assuming a lot of stuff that isn't shown.
builder.AddMassTransit(..)

My builder doesn't have AddMassTransit because it's not registered. I haven't figured out how to register it. Can you show me how you did it?

Don't worry about it. I ended up creating my own fake Bus which serves my purposes.

@phatboyg Thanks for pointing into right direction, I'll take closer look at BusActivityMonitor.

@phatboyg OK, so after a short break I've took a closer look at BusActivityMonitor. Looks promising but I'm not sure if I understand it correctly.

I'm creating activity monitor using IBus.CreateBusActivityMonitor(TimeSpan). Later in my tests I check if bus is inactive using await activityMonitor.AwaitBusInactivity(TimeSpan) == true. Both timeouts are set to values around one second. This is enough for the application to actually complete all the logic.
Any advices regarding how those should/could be set? It seems that timeout provided for AwaitBusInactivity have to be larger than inactivity timeout, right? As otherwise BusActivityReceiveIndicator might not have enough time to signal inactivity. Also not using timeout for AwaitBusInactivity seems like asking for never-entering or never-ending SemaphoreSlim.WaitAsync in case of integration tests?
Is there any particular reasoning behind default value of 5 seconds for inactivity timeout for most indicators?
I think the only purpose of BusActivityConsumeIndicator is to indicate never-ending/dead-locked/seconds-of-magnitude-slow consumers?
Correct me if I'm wrong but it seems BusActivitySendIndicator and BusActivityPublishIndicator aren't even connected as send/publish observers when used with IBus.CreateBusActivityMonitor? They're also not provided with ISignalResource which should be BusActivityMonitor?

So, in vnext I've already incorporate the inactivity monitor to the test harness. It's in there by default, and the async message lists will complete once it signals. Took a lot of tests down from 30 seconds to 1s or less now. I also added async methods and enumerators for the message lists.

Can you please post an example of integration testing with masstransit? When will this be added to the documentation?

@xaviergxf testing is already documented: https://masstransit-project.com/usage/testing.html

Just a heads up, MassTransit v8.0.3 will now properly reconfigure the bus when using the test harness to be in-memory, as shown in this sample.


Update oci-java-sdk-common-httpclient-jersey, ... to 3.4.0

Updates

com.oracle.oci.sdk:oci-java-sdk-common-httpclient-jersey
com.oracle.oci.sdk:oci-java-sdk-objectstorage

from 3.3.0 to 3.4.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.oracle.oci.sdk" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.oracle.oci.sdk" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #222.


Istio CRDs are not removed after disabling Istio

rancher/rancher:master 7a23ff88

Create a cluster
Check for istio CRD in embedded kubectl

kubectl get crd | grep istio | wc -l
returns 0

Enable Istio and wait for it to be deployed
Disable Istio
Check for istio CRD in embedded kubectl

kubectl get crd | grep istio | wc -l
returns 53

Expected:
The istio CRDs should be removed after istio is disabled

Link to https://github.com/rancher/system-charts/pull/62

rancher/rancher:master-head 66beb03f

Create cluster
Checked istio crd count before enabling istio:

kubectl get crd | grep istio | wc -l = 0

Enable istio
kubectl get crd | grep istio | wc -l = 23
Disablio istio
kubectl get crd | grep istio | wc -l = 0


wait promise await async at custom field

how to make it wait for the promise and async value?

function test(): Promise<String> {
    return new Promise((r, e) => {
        r("test")
    })
}

custom(){
   test().then(r => {
        return r
   })
}

This is answered here: https://github.com/aldeed/simple-schema-js#asynchronous-custom-validation-on-the-client
There is no way to await, but you can manually add validation errors after the promise resolves. It's possible this won't work in your case, but there are no plans to add async support.


NameError: undefined local variable or method `package_json'

Bug Report
Describe the bug
While executing rails stimulus_reflex:install on a brand new application using esbuild as js bundler, I get the following error during the yarn step:
--- [yarn] ----
rails aborted!
NameError: undefined local variable or method `package_json' for #<Rails::Generators::AppGenerator:0x0000000107302b38 @argv=[#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex>], @gem_filter=#<Proc:0x00000001073029a8 /Users/robison/.rvm/gems/ruby-3.0.6/gems/railties-7.0.8/lib/rails/generators/app_base.rb:105 (lambda)>, @behavior=:invoke, @_invocations={}, @_initializer=[[#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex>], {}, {:destination_root=>#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex>}], @options={"skip_namespace"=>false, "skip_collision_check"=>false, "ruby"=>"/Users/robison/.rvm/rubies/ruby-3.0.6/bin/ruby", "database"=>"sqlite3", "skip_git"=>false, "skip_keeps"=>false, "skip_action_mailer"=>false, "skip_action_mailbox"=>false, "skip_action_text"=>false, "skip_active_record"=>false, "skip_active_job"=>false, "skip_active_storage"=>false, "skip_action_cable"=>false, "skip_asset_pipeline"=>false, "asset_pipeline"=>"sprockets", "skip_javascript"=>false, "skip_hotwire"=>false, "skip_jbuilder"=>false, "skip_test"=>false, "skip_system_test"=>false, "skip_bootsnap"=>false, "dev"=>false, "edge"=>false, "main"=>false, "no_rc"=>false, "api"=>false, "javascript"=>"importmap", "skip_bundle"=>false}, @app_path=#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex>, @args=[], @shell=#<Thor::Shell::Color:0x000000012c5f1b58 @base=#<Rails::Generators::AppGenerator:0x0000000107302b38 ...>, @mute=false, @padding=0, @always_force=false>, @destination_stack=["/Users/robison/Documents/Development/ruby/stimulus_reflex"], @indentation=0, @after_bundle_callbacks=[], @source_paths=["/Users/robison/.rvm/gems/ruby-3.0.6/gems/railties-7.0.8/lib/rails/generators/rails/app/templates"], @package_json_path=#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex/package.json>, @package_list=#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex/tmp/stimulus_reflex_installer/npm_package_list>, @dev_package_list=#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex/tmp/stimulus_reflex_installer/npm_dev_package_list>, @drop_package_list=#<Pathname:/Users/robison/Documents/Development/ruby/stimulus_reflex/tmp/stimulus_reflex_installer/drop_npm_package_list>>
Did you mean?  package_json_path

To Reproduce

rails new stimulus_reflex -j esbuild
bundle add stimulus_reflex --version 3.5.0.rc3
rails stimulus_reflex:install

Expected behavior
No errors after running the install command.
Screenshots or reproduction
NA
Versions
StimulusReflex

Gem: 3.5.0.rc3
Node package: I guess the step that is failing is supposed to install the JS package

External tools

Ruby: 3.0.6
Rails: 7.0.8
Node: v20.3.0

Browser

NA

This should be resolved with the release of v3.5.0.rc4. I'm going to close this issue, but please feel free to re-open if you are still seeing something unexpected!


Is there any way to gate data usage by the user

Hey. Thank you for this great API library
But It seems that there is no way to get data usage by a user. Or may be I'm wrong.

Hi, @manatech!
You can get data usage all of users and filter it:

async function main() {
  try {
   const { bytesTransferredByUserId } = await outline.getDataUsage()
   const userId = "0"
   console.log(`user with ${userId} transfer ${bytesTransferredByUserId[userId]} byte of data`)
  } catch (error) {
    console.error(error)
  }
}

I can provide new method on outline-server for get data usage of specific userId, if it is important method.

@manatech, you can install 2.2.0 version of package, and use:
outline.getDataUserUsage(userId)

@murka Sure. Thank you


Deprecated TEMPLATE_DEBUG setting is required by sorl-thumbnail

The TEMPLATE_DEBUG setting which was deprecated in Django 1.8 and 1.9, and is missing from 1.10's docs (so I assume it's now obsolete) is required by sorl-thumbnail.
Without a TEMPLATE_DEBUG setting I get this when I try and use the {% thumbnail ... %} tag in a template:
'Settings' object has no attribute 'TEMPLATE_DEBUG'
If I add it to my settings, the template tag works.

Try installing directly from Github (add to requirements.txt):
-e git+https://github.com/mariocesar/sorl-thumbnail.git#egg=sorl-thumbnail
Looks like latest version on pip is 12.4a1 and doesn't reflect Django 1.10 changes.

Are there any plans on getting a new version uploaded to pip?

I would also appreciate a new version on Pypi.

I have the same trouble

@mariocesar Could you please update the PyPI package?

Tests are not passing for te master branch, it needs first to pass and take care of that.
Hope to have the time soon , however anyone is welcome to give it look and commit

Please update the PyPi package.

Please update it.

sorl-thumbnail is now part of Jazz Band, anyone can join and contribute fixes, and a new version on PyPI should be released automatically if the tests pass.

WHy this is closed?! Issue is not fixed

@adi- This issue is not closed. As you can see at the top of the page, this issue is still open.

Damn, I have looked at the status two comments above. Sorry.

just hit this myself, with latest django any chance of an updated package any time soon on pip ?

@olymk2 A new version on PyPI is waiting on @jazzband/roadies or @mariocesar, as they are the only ones who have access to the PyPI package. See #507 and https://github.com/jazzband/roadies/issues/69 .

I actually have an issue with this package on heroku.
it doesnt migrate with heroku run python3 manage.py migrate and the table is not create ? Any ideas ? Thank you

@dimitry your method doesn't work for me :( Django 1.11

Just released. https://pypi.python.org/pypi/sorl-thumbnail/12.4.1


HTTP status codes

We are discussing some changes to specification here: https://github.com/Prestaul/jsend/issues/11
I think, specification need to be updated to define HTTP statuses too.

Maybe you should ask for some contribution from this guy:
https://medium.com/@bojanmajed/standard-json-api-response-format-c6c1aabcaa6d

Noted.


feat(datastore): draft of selective sync on initial sync operation

Smoke tested with a basic case.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Largely ready for review, but plan to add unit tests

The overall design makes sense, but I'm not joyful about the growth of the DataStoreConfiguration interface, and I don't like passing that whole configuration object around to the underlying components. Comments inline

The overall design makes sense, but I'm not joyful about the growth of the DataStoreConfiguration interface, and I don't like passing that whole configuration object around to the underlying components. Comments inline

Regrading the configuraiton object being unwieldy, that is the worst case scenario.  For customers only wanting to specify a selective sync, it would look something like this:
            let syncExpression1 = DataStoreSyncExpression.syncExpression(Todo.schema, where: {
                Todo.keys.tag == AppDelegate.tagToSearch
            })
            let dataStorePlugin = AWSDataStorePlugin(modelRegistration: AmplifyModels(),
                                                     configuration: .custom(syncExpressions: [syncExpression1]))

Are you still concerned about bloating this interface?


How to cancel ScrollTimeline using only JS API

Hi, awesome work on polyfill! Hope this will land in all major browsers soon.
I was wondering how we can cancel/disconnect the scroll timeline after we don't need it anymore, for example when changing route etc.
I want to avoid creating all timelines without properly disconnecting the previous ones. Also, I'm not using it with the animation API.
Here is example for built-in ScrollTimeline API in Chrome:
// starting the timeline
const timeline = new ScrollTimeline()

// works fine
console.log(timeline) // -> ScrollTimeline {source: html, axis: 'block', currentTime: CSSUnitValue, duration: CSSUnitValue}

// ... some code, a small observer to get `timeline.currentTime`

// later, when the route changes, I need to cancel this `timeline` before the route change to avoid running endlessly in bg

// is this possible without `el.animate().cancel()`?
timeline.cancel()

Can someone please advise how to stop the timeline (Scroll or View Timeline) after we start it?
const  timeline = new ScrollTimeline() // or new ViewTimeline()

// how to stop it manually?
timeline.stop()

I can't find it anywhere in the docs or in the css draft documentation.
Any suggestion is welcome, maybe I'm missed something.

I’m going to close this issue as your problem is more of a general question unrelated to the polyfill. The aim of this polyfill is to support what the native implementation supports. Your issue is related to the Web Animations API in general, not the polyfill.

@bramus  Thanks for the reply and suggestion, but I mean to use ScrollTimeline without Web Animation API, i.e. without using element.animate(), so I can't use animation API:
animation.commitStyles();
animation.cancel();

Maybe I asked the wrong question, so I'll rephrase it.
Is it necessary to stop the timeline after it is started, with this polyfill or native implementation in Chrome?
My use case is, I want to start a timeline and then observe the progress of the timeline as it scrolls.
I don't need to use any extra animation API, all I need is timeline.currentTime to convert it into progress and then use that progress for other stuff. Also, this all works great, but I'm worried that if I create a timeline multiple times, without manually stopping it, it will run infinite in the background and maybe negatively impacts on site performance.
I hope this makes more sense now.

Is it necessary to stop the timeline after it is started, with this polyfill or native implementation in Chrome?

Animations automatically get cleaned up when the nodes get trashed. If you have an instance of ScrollTimeline lingering around after you have trashed all the nodes, you can set it null to actually destroy it.
let st = new ScrollTimeline(…);

// … use it as the `timeline` for some animations

// … remove all animations

st= null;

My use case is, I want to start a timeline and then observe the progress of the timeline as it scrolls. I don't need to use any extra animation API, all I need is timeline.currentTime to convert it into progress and then use that progress for other stuff.

Aha, got it what you want to do now.
To do this today, you need to attach your timeline to an animation and then read the progress from that animation. There is active discussion about progress events on animations, but that’s still in the works. For now, you’ll have to read the effect’s progress in requestAnimationFrame and use that. I have done this in https://www.bram.us/2023/06/21/synchronize-videos-3d-models-to-scroll-driven-animations/ and have extracted away the functionality into a package named @bramus/sda-utilities
import { trackProgress } from '@bramus/sda-utilities';

// Update text of the `.animation-subject` element with the effect progress
trackProgress(document.querySelector('.animation-subject').getAnimations()[0], (progress) => {
  document.querySelector('.animation-subject').innerText = `${(progress * 100).toFixed(5)}%`;
});

I’ll make note of you requesting a way to get a timeline’s progress without needing to attach it to an animation first.

... you can set it null to actually destroy it.

I think this information 👆, if I understood correctly, is all I need. So after all, it's super simple to do (stop the timeline), if this 👇 is true?
// start the timeline normally via JS API
let st = new ScrollTimeline(…);

// ...
// observing the `st.currentTime` in `requestAnimationFrame` on each tick, and converting it to 0-1 progress (custom function)
// ...

// later when I don't need it anymore, or change route in SPAs etc...,
// I simply stop the `requestAnimationFrame` and set this `st` to null
// so that the timeline also finishes its processes
st = null;

Also, thanks again for the help and links, all this information is very useful and hard to find without tips. I will definitely be checking out this sda-utils package and using it as inspiration, it's something similar to what I had in mind.
Overall, I think all developers can be very happy when this polyfill and API lands and becomes a standard because it's definitely a game-changer and makes a lot of work easier.

Yes, that's correct. If there are no animations running on the timeline then removing the last reference will clean up all memory associated with it. Running animations implicitly keep the timeline alive until they are finished.

... then removing the last reference will clean up all memory associated with it ...

Ok, that's what I was wondering about, how to manually clear all memory associated with the timeline when needed.
Thanks for confirmation. 👍

Hi, just wanted to note that reassigning the timeline to null doesn't work for the polyfill as expected, the scroll and observe events still fire after that.
Also, for native Chrome timelines I can't test properly so please give me some feedback.

Polyfill Tests
Here's a simple example of how I tested this in polyfill:

Add console.log to scrollListener function inside of ScrollTimeline class in polyfill:

This will tell us when the scroll event is triggered:
// `scrollListener` function is inside `ScrollTimeline` class

const scrollListener = () => {
  // Sample and store scroll pos
  details.sourceMeasurements.scrollLeft = source.scrollLeft
  details.sourceMeasurements.scrollTop = source.scrollTop

  console.log('scroll test') // 👈 add this line here

  for (const ref of details.timelineRefs) {
    const timeline = ref.deref()
    if (timeline) {
      updateInternal(timeline)
    }
  }
}

Add simple code to test polyfill:

import { ScrollTimeline } from './polyfill'

let scrollTimeline = new ScrollTimeline()

// check the browser console, it works as expected as it outputs 'scroll test'...

setTimeout(() => {
  scrollTimeline = null
}, 500)

// after 500 ms, I expect that reassigning the `timeline` to `null` would disconnect all scroll and observe events

// check browser console, still outputs 'scroll test'... infinite time

Polyfill solution
I have a local polyfill solution to solve this:
// add simple `cancel()` method to ST class:

class ScrollTimeline {
  // ...
  cancel() {
    const details = sourceDetails.get(this.source)
    details.disconnect()
  }
  // ...
}

// starts timeline
const st = new ScrollTimeline()

setTimeout(() => {
  st.cancel() // 👈 disconnects all timeline events as expected
}, 500)

But now I'm still worried if this will really stop all events for Chrome's built-in timelines, since I can't test it like the examples above?


[Twinkle-0000] Launch legacy solution

[ ] Create build ms sql docker image for testing applications purpose;
[ ] Configure correct path to resource folder.

https://mkyong.com/jdbc/jdbc-class-forname-is-no-longer-required/


Milestone progress off

How do we calculate this? In this case, GitHub says 37%, GitHawk says 20% (checked with VoiceOver)

Bug Report Dump (Auto-generated)

Version 1.17.0<PHONE_NUMBER>)
Device: iPhone X (iOS 11.2)
TestFlight: true

I’ll check the query. It’s a count of open and closed issues. I wonder if I’m not counting PRs...
Sent with GitHawk

Limitation of GraphQL API, see:
https://platform.github.community/t/milestone-has-no-pull-requests-connection/4528

Well that's an oversight... 🤔 Anything in V3 land to compensate for the time being?
@rnystrom

Probably but then we are adding another network request to the mix.
Sent with GitHawk

🤦♂ 😞
Sent with GitHawk


Save custom fields to new subscriptions and get active subscriptions?

Description
Hi, this is more of a question rather than a bug (apologies, but discussions are not open here).
The native subscriptions in Craft Commerce have the ability to set custom fields in POST subscriptions/subscribe

fields[...] Subscription custom field values, indexed by their handles.

How can I achieve this with this new plugin?
I saw that custom field can be attached to subscriptions as well.
Because of the redirect to Hosted Checkout of Stripe, I assume I have to keep this in a session or submit the values I want to store in the thankYou-URL as GET parameter?
What would be the most robust place to do this - after a new subscription was sucessfully paid? 🤔
Use case: I want to store some additional fields to a subscription, e.g. discountType for a reduced membership like senior, student, etc. (same product) + some uploaded files for verification. The user enters this information beforehand and pays -and I wanted to store the data and uploaded files within the subscription.
Also I'm wondering how I get all current active subscriptions for a user? In craft commerce it was like this:
craft.subscriptions.user(currentUser).status('active').all()

I'll dig into source code of this plugin, guess it's just not documented in README.md yet?
Thanks very much in advance!
Additional info

Craft version: 5.x
My current state of knowledge (Discord post)

Hi, thanks for getting in touch!
Yes, you could store that info in the session and retrieve it when displaying the success page or pass it in the success URL (in the query string). You could also use custom_fields which are available when creating a Stripe checkout session (when you use the checkout links or form, Stripe plugin creates a checkout session).
If your success (thank you) URL is configured to pass the session ID back to the page (that’s the ?session={CHECKOUT_SESSION_ID} part), you could then retrieve the session by its id. It’ll have the data submitted to the custom fields (if you choose to use those) and the subscription ID (if it was a subscription that was created). You could then retrieve that session by id, grab the data you need (from custom fields, session or the URL) and process it as you wish.
You could also intercept the checkout.session.completed event (which will have the submitted data and the subscription id if the purchased product was a recurring one) and process the data the way you want. Please note that until Stripe plugin 1.2 is released, you’d have to listen for that event on your own (more info here: https://github.com/craftcms/stripe/pull/20).
There are some caveats when using custom fields. You can specify a maximum of 3 custom fields, and they can only be text, number, or dropdown type.

Also I'm wondering how I get all current active subscriptions for a user?

You can do that via the element query, like so:
craft.stripeSubscriptions.user(currentUser).status('live').all()
Or, via behaviour attached to the user, like so:
currentUser.getStripeSubscriptions().where('stripeStatus', 'active').all()
I hope this clarifies things a bit.
I’ll close this now, but if you have any further questions or if anything above doesn’t make sense, feel free to reach out again!

Hi @i-just,
thanks very much for the detailed and quick response 👍  (For the current project, we decided to stay with the current way / not use this new plugin - but your answer helped very much to evaluate both options. Much appreciated!)
I just wondered one thing about the new way:
I can choose to add custom fields to subscriptions in the plugin settings, but these are just meant to be filled later via twig or PHP?

I guess that's what confused me, because in the old plugin these can be inserted via POST subscriptions/subscribe directly while subscribing.

Hi @mandrasch,
Not a problem at all! I’m glad you found it helpful. We had a chat about the points you made, and we should make adding custom data to subscriptions easier.
We’ll have a look at a few options and see how we can improve this.

Stripe 1.2.0 is out with this improvement. Thanks again!


Tor integration

As of August 26, the openbazaar-go codebase doesn't seem to have code for Tor integration. The intent of this issue is to push forward discussion about Tor integration, as this one of the most requested features for OpenBazaar. I'll start with a couple questions:

Is Tor integration planned for the OB2.0 initial release?
I tried to find a Tor library in Go but couldn't find anything satisfactory. Which Tor library is planned to be used for the integration?

TOR support will come from a TOR transport for IPFS which needs to be written. There is an issue for it here: https://github.com/ipfs/notes/issues/37
There's not much happening with it. If anybody was interested in working on one it would be a great way to contribute to OB IMO.

It should probably:

Detect if tor is running by querying the control port
If it's running and tor hasn't been set in the config
2a) stop initialization and ask them if they want to use tor.
2b) if so, configure tor and proceed with startup.

It should also have the option to run in onion only mode or dual stack mode.

Here's a guid to implementing another transport https://github.com/ipfs/examples/blob/bdfef47c851cdb5c41a32af80ec4d7cd0587fa49/examples/transport/readme.md

Ideally we should be able to make it also use the socks proxy to connect to clearnet nodes via Tor. That might be more complicated as I think we'd have to modify the libp2p dialer. On the other hand, I'm not sure if that functionality will be desired. Connection only to onion or dual-stack nodes from Tor is probably sufficient.

Another requirement for this should be a full node wallet implementation. The spv wallet likely leaks more private data than a Tor user would find acceptable. This would require a wallet implementation that either connects to bitcoind or packages btcd as an alternative.

I just created a $100 (USD) bounty for the solving of this issue (i.e. integration of Tor into openbazaar-go).
https://www.bountysource.com/issues/37322830-tor-integration

I have it roughly working here https://github.com/cpacia/openbazaar-go/tree/tor
But i'm waiting for IPFS 0.4.5 because I integrate it because there were tons of dependency issues that I had to manually fix that will probably be fixed in 0.4.5

@cpacia , Glad to hear it! I think Bountysource automatically dispenses the bounty when its bots detect that the open issue has been officially marked as Resolved to the dev whose pull request resulted in the completion of the issue.

PR #342

cpacia, once your PR is accepted and issue is closed, follow my earlier link to claim the bounty.


Remove unused config file

This file appears to be a leftover remnant of some autogenerating code from long ago that was never removed

Confirmed we aren't referencing AutowiringConfig.h in platform, leapserial, LeapResource, leaphttp, os-controls (other than an embedded subrepo).


cherry-pick(1.0.x):  test: bump pinned AMIs for 1.31 (#7136)

Fixes #N/A
Description
Also includes upstream dep bump
How was this change tested?
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

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

Totals

Change from base Build<PHONE_NUMBER>8:
0.0%

Covered Lines:
5955

Relevant Lines:
7505

💛  - Coveralls


[OTP-21] Remove get_stacktrace calls to be compatible with OTP21

Hey Carlos, here's the change we discussed: https://github.com/cabol/cross_db/issues/9

I can see Dialyzer check failed, not sure why:
%%% xdb_meta_SUITE ==> {{badmatch,["xdb_mnesia_adapter.erl:92: Function rollback/2 has no local return\n",
            "xdb_test_mnesia_repo.erl:266: Function rollback/1 has no local return\n",
            "xdb_lib_SUITE.erl:136: The created fun has no local return\n",
            "xdb_lib_SUITE.erl:140: The created fun has no local return\n",
            "xdb_lib_SUITE.erl:144: The created fun has no local return\n"]},
 [{ktn_meta_SUITE,dialyzer,1,
                  [{file,"/home/travis/build/cabol/cross_db/_build/test/lib/katana_test/src/ktn_meta_SUITE.erl"},
                   {line,73}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1546}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1062}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,994}]}]}

Yes, no idea what dialyzer is complaining of, we should track where might be a spec violation maybe. BTW, if you run dialyzer locally (rebar3 dialyzer) what happen?

@cabol locally dialyzer checks pass on this branch

@cabol hi, I updated the PR but not sure how to trigger CI build now, I'm sure it should pass :) could you check?

@cabol Hi, I updated the PR but not sure how to trigger CI, could you check?

I added a spec generation to xdb_transform because new Dialyzer is very strict and requires no_return() spec explicitly, in our case for the rollback function

I'm going to replace this PR with a fresh one


_gui_input method doesn't take z_index into account

Godot version
v4.1.3 (f06b6836a)
System information
Godot v4.1.3.stable - macOS 13.3.1 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)
Issue description
Control nodes don't seem to take z_index into account when calculating mouse interactions. For example, if a child extends outside its parent, it can be covered by a sibling of the parent. Setting the z_index of the child fixes this, causing the child to render above the parent's sibling once again. However, the part of the child that extends outside the parent (the part that would otherwise be obscured if not for z_index) does not receive input events.
Steps to reproduce
Implement a basic scene with the following:

A control to act as a grid cell with a fixed, square, custom minimum size, e.g. 50x50
A GridContainer with at least 2 rows of the cells
A control to receive input events with a fixed custom minimum size taller than the grid cells, e.g. 50x100 and a z_index of 2 or more
The control to receive input events added as a child to a grid cell on the top row

Notice that the input event receiver renders above the grid cells on the second row but does not receive input events over the lower half of the control. It is not draggable from the lower half, it does not receive method calls to _gui_input() over the lower half.
Minimal reproduction project
N/A

Hi! Yes, this is expected. This is why when you change z-index on a control node, you get a configuration warning stating "Changing the Z index of a control only affects the drawing order, not the input event handling order."

When introducing the Z index to Control nodes, this topic was discussed and at the time. See for reference #68070 and https://github.com/godotengine/godot-proposals/issues/839.

Hi! Yes, this is expected. This is why when you change z-index on a control node, you get a configuration warning stating "Changing the Z index of a control only affects the drawing order, not the input event handling order."

Hey YuriSizov, thanks for the reply. I'm glad this is already known but that doesn't help me solve the problem?

When introducing the Z index to Control nodes, this topic was discussed and at the time. See for reference #68070 and godotengine/godot-proposals#839.

Thanks for this reply, I don't see anything in that thread discussing a way to solve this issue?

Also we should probably change the documentation reading:

The event won't trigger if:

control is obstructed by another Control on top of it, which doesn't have mouse_filter set to MOUSE_FILTER_IGNORE;

Because there's no way to know what "on top of" means for this edge case

There is no suggestion on how to solve this because it's not an issue or a bug, it's a limitation.

I appreciate the time you're taking to respond, as a software engineer I can sympathize with how exhausting it is to have to interact with users given the contextual gap. That being said, I do consider this a semantic bug. It contradicts the meaning of "on top of". How hard do you have to squint to make it make sense? is a pretty good heuristic to go by in my experience when trying to identify bugs in semantics. Even worse, their impact can be hard to quantify. Users can end up leaving without saying a word. If only there were crash reports and telemetry for "confusion" 😆

if you need to change the input order you need to move nodes in the tree rather than change the z-index

This is great for reference and I apologize for not making the context of my issue more explicit. As was noted in the previously linked issue's thread, the order of the nodes in the tree also dictates the layout of the nodes. For my situation I need the layout to stay the same. It sounds like this isn't possible as such.. I'll keep searching for a workaround, cheers and happy Monday!

For my situation I need the layout to stay the same.

For UI where you want to preserve the same layout you would likely need to add an extra control to capture input on top of the highlighted element, a control which is not a child of your container, but is on top of it using the tree order. It can be totally invisible and only catch input, you just need to sync its position and size with the active element.


[dv/top] Update dmem copy resolution

fixes #14552
Pad dmem copy to 64B.
It's not clear this is the right fix, but it gets around the problem
for now.
Signed-off-by: Timothy Chen<EMAIL_ADDRESS>

I really don't know if this is the right fix, but it allows this to work in DV again.
I still don't know why it hasn't failed in CI FPGA though.

This should not be necessary once https://github.com/lowRISC/opentitan/pull/14567 is merged.


cmd/cgo: program got a SIGBUS signal

What version of Go are you using (go version)?

$ go version
go version go1.12.4 darwin/amd64

Does this issue reproduce with the latest release?
yes, go version go1.12.4 darwin/amd64 is the latest version I can download.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/duanbing/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/duanbing/Project/Go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.4/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.4/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/xxxxx/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/35/1f0_9bnn0dvc0mdr0kv8dy08cm5r19/T/go-build681850907=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I write a cgo program, and use go test to run the unit test.
but if I set GOGC=off,  go test run as I expect.
What did you expect to see?
tests finished without crash when GOGC=on.
What did you see instead?
I got SIGBUS signal if I just run go test.

Thanks for the report.
It's possible that this is caused by issues with the cgo part of your program. It's possible that the bug is in the C code of your program, and not in the Go runtime.
Can you provide a (possibly small) reproducer? Otherwise it won't be possible to investigate this.

You can find all the information in the link below.
https://gist.github.com/40345839668/31e75de1a47233faa00d7dc33aaac0fd

Thanks, @ALTree .  the codes are too large, so I didn't post it here.  I will mimic a simple one to reproduce it. BTW, can you give me some tips about what kinda scenario  I will get this error?

this is the associated issue, https://github.com/WAVM/WAVM/issues/151 , its maybe helpful.

@ALTree  https://github.com/WAVM/WAVM/blob/master/Lib/Platform/POSIX/Thread.cpp#L148 is the source of SIGBUS.

@duanbing Thanks for the investigation.
Unfortunately, as I wrote above, this kind of crashes are often caused by issues in the C code, so I'm afraid this issue won't be actionable from the Go project's side unless you're able to to reduce your large code into a smaller reproducer.
I'll leave this open with a WaitingForInfo label, so feel free to post updates here.

I fixed it by allocating the memory in mmapped seactions, not in current stack.
Thanks all!


Always on edit mode for all rows

I am trying to make all rows in always on edit mode without having to click on the "Edit" button for each individual row to edit. I tried adding material text fields in the render property for the columns and it shows all the data after my API call and I can edit it as well without the button but when I do the onBlur I get the previous state data value, not the recent one. Can anyone please lead me to the right direction?
Thank you!

I'm closing for #5069.


[Add-ins] (quick start) Refresh screenshots (#763)

[Add-ins] (quick start) Refresh screenshots

Clean up screenshot

Tweaks

Docs Build status updates of commit 619589b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/add-ins/images/quick-start-button-1.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-button-2.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-button-owa-1.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-button-owa-2.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-button-owa.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-button.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-task-pane-1.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-task-pane-2.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-task-pane-3.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-task-pane-owa-1.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-task-pane-owa.png
:white_check_mark:Succeeded

docs/add-ins/images/quick-start-task-pane.png
:white_check_mark:Succeeded

docs/add-ins/quick-start.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Train PPT but got Loss = nan

Thanks for sharing the code!
We follow the readme to prepare the enviorment and run the command:
sh scripts/train.sh -g 4 -d nuscenes -c semseg-ppt-v1m1-0-nu-sk-wa-spunet -n semseg-ppt-v1m1-0-nu-sk-wa-spunet
However, the loss turn to Nan in the middle of the training. Could the authors kindly help me with this problem?

Try again or set amp False. It does occur from time to time. Maybe clip loss within a range can solve it but I have not try it.

Try again or set amp False. It does occur from time to time. Maybe clip loss within a range can solve it but I have not try it.

Thank you for your timely responce. I have tried twice but all get loss = nan during the training. I will try to set amp False.

Try again or set amp False. It does occur from time to time. Maybe clip loss within a range can solve it but I have not try it.

I have tried semseg-ppt-v1m2-0-nu-sk-wa-spunet to use the decoupled segmentation head to train the network. It successfully runs through the training procedure but fails during the testing procedure as shown in the Fig. Can you help me with this problem so that I can successfully run the testing procedure?


Suggestion: add Korean font mod

If you're able to add this mod as an option in your tool that would be cool. I'd rather have your tool than have to use another one to do this.
https://killerskins.com/frosted-fire/mods/fonts/uttumdotum-korean-font/

If you're able to add this mod as an option in your tool that would be cool. I'd rather have your tool than have to use another one to do this.
https://killerskins.com/frosted-fire/mods/fonts/uttumdotum-korean-font/

you cannot use skin changer and change the font from a different source?

you cannot use skin changer and change the font from a different source?

You can use both. I'd rather just have one tool to do everything than have to use multiple tools.

you cannot use skin changer and change the font from a different source?

You can use both. I'd rather just have one tool to do everything than have to use multiple tools.

Where can i find tutorial on how to use the font?

Where can i find tutorial on how to use the font?

youtube


feat(congregations): support import and export data

:tada: This PR is included in version 3.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Dev doesn't preload plugins on install

On a fresh install, the dev branch will not work since plugins are not downloaded on first start

The following plugins are not shipepd with the dev branch:

lspkind
nvim-tree
staline
Which throws errors at launch

Fixed by running <Space>pi in order to install missing


virtual printer

I'm new here, I need to simulate a bluetooth device on Android, it should work as a virtual printer, and what is sent to it should be in a file, can someone give me a way. everything must happen inside a real android device

What protocol is your scenario going to use?

@Eonassis If you want to run a virtual Bluetooth device purely on Android, Bumble may not be a good solution for you, since it is written in Python. While it's technically possible to run some python code inside an Android app, that's highly complex and quite inefficient. Or did I misundertand your use case?

What protocol is your scenario going to use?

simulate  BLE Printer

@Eonassis If you want to run a virtual Bluetooth device purely on Android, Bumble may not be a good solution for you, since it is written in Python. While it's technically possible to run some python code inside an Android app, that's highly complex and quite inefficient. Or did I misundertand your use case?

I understand this question, but I need to simulate a BLE bluetooth printer, could you help me how would I do this??

What protocol is your scenario going to use?

simulate BLE Printer

AFAIK there is only a Basic Printing Profile which is not very common and Android doesn't support it. Most printers use their customized apps to interact with printers (usually via GATT), so if you want to simulate a printer, you need to get the spec of protocol you are going to simulate, and then implement the GATT server using Bumble.
You may begin with examples/run_gatt_server.py and use some apps like nRF connect to understand how GATT works.

Thanks in advance for your help, I can run run_gatt_server.py within Android, as it is a real device with Android 7.1, I also checked that there is [https://github.com/google/bumble/tree/main/extras/android/RemoteHCI] , does this app solve my problem?

First, I cannot understand what's your problem. We don't know what's the spec of the "printer", and we don't even know you want to "simulate Android as a printer" or "simulate a printer and make it connect to Android". If you want to do the previous one, then you can use RemoteHCI. For the other one, getting a Bluetooth dongle will be much easier.

And even if you want to simulate "on Android", it would be much easier to achieve this by writing an Android GATT server app with Android SDK.

And even if you want to simulate "on Android", it would be much easier to achieve this by writing an Android GATT server app with Android SDK.

The GATT server only simulates a BLE device for another cell phone, in this case I need two devices with Bluetooth to work. However, I would like to do everything on the same device.
I need to simulate a bluetoothLE virtual device on Android, the android must connect to it and exchange information, and what is sent to the ble device must be saved in a file inside the android, everything must happen inside a real Android device simulating a bluetoothLE virtual device.
I have apk's that only send prints via a bluetoothLE device, however we will no longer use printers, in the app there is no option to save as a PDF or send it to the Android printer.
I don't have access to the application source to make changes directly to the source code.
Faced with the problem, my idea would be to create a virtual BLE device where the android could virtually connect to it and send the data that would be saved in a file. This is my problem.

Then in short, the answer is NO. Bumble cannot do this.
Your requirement can only be met by replacing the Bluetooth HAL of your Android device with an Bluetooth simulator. You will need an entire Android codebase and many hacks to achieve that. It's not worthy.


Problem with game.renderer.resize and canvas, global stage not resized (Phaser 3.1.0)

Hi, i made a simple test here : https://tim.cgmatane.qc.ca/phaser/v3/
It seems to show a problem with game.renderer.resize().
To see the problem, start with your browser small and expand it, the canvas element will receive new dimensions, but the background color set in the config object wont stretch with it.
Unless i am doping somenthing wrong, i think this is not the intended behaviour.
Here is a direct link to the script : https://tim.cgmatane.qc.ca/phaser/v3/assets/js/main.js
See resizeGame function
Edit : It seems that the Phaser main stage is not resized at all, but the canvas element is
Edit 2: It seems that the official example is having the trouble too

Please see the new Game.resize function that is ready for testing in the master branch. This will resize the renderer, input system and game config values accordingly. If you find errors with it please open a new issue specific to them, thank you.


[admin-client] 'rebalance' command for functions worker

Motivation
The rebalance feature is currently exposed only to the REST api.
It can be useful to have this command in the Admin CLI because the rebalance work is performed only by leader of Functions workers so the client needs to eventually follow redirects and the user may not be aware.
The Admin CLI follow the redirect under the hood
Modifications

Added a new command bin/pulsar-admin functions-worker rebalance (no parameters needed)
Added a unit test to verify the REST api is triggered

Notes:

the user doesn't need to specify the functions worker leader
it works with and without enabling authentication

Does this pull request potentially affect one of the following parts:

The admin cli options: (yes) -> new command

Documentation

[x] no-need-doc

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

@lhotari @michaeljmarshall @codelipenghui PTAL


Core: fix Label line break mode in Gtk

Made label widget in Gtk respect LineBreakMode and MaxLines properties, the way it does on other platforms. By doing this labels won't crop text with dashes in any part of the word and they keep the words complete.
These properties were added to ILabel interface, as it is in MAUI main branch.

Superseded by #46


Add Github Action for testing on Windows

See https://github.com/Senzing/template-go/issues/90

Pull requests:

https://github.com/Senzing/go-messaging/pull/31


gcp : add alloydb group

Description of your changes

Fixes #371
Adds resources for:
google_alloydb_backup
google_alloydb_instance
google_alloydb_cluster
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

I deployed instances of the 3 new kinds to to a minikube cluster. These were based on the generated examples, adapted for my test GCP project.
I then used make run, which created the expected resources in my project.
Each of these resource became "ready". Deleting the k8s resources deletes the resources from GCP.
Cluster:

Instance:

Backup:

 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.jcockbain 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.

/test-examples="examples/alloydb/instance.yaml"

@turkenf are you able to assist with the failure on ci/check-diff? Running make check-diff from my workstation is passes fine.

Hi @jcockbain,
After running make generate there seem to be changes you didn't commit, can you run make generate again and commit all the changes?

@turkenf thanks. I have updated my branch, and changed the commits to show the manual and then the generated changes. make generate does not create any new files on my branch now, so hopefully the CI will be okay.

@jcockbain, could you please rebase your branch to the main, run make generate, and commit all the changes again?

Thanks very much for your comments @turkenf, I have attempted to resolve them all in the above commit.
I also retested with the examples and added screenshots to the summary of this PR.

One thing I am not certain on is what to name example resources, for my testing I gave the resources different names as default is already used for some of the resources in my test project. So I left these test names in the example manifests, but I can change them back to the generated ones if that would be better.

/test-examples="examples/alloydb/cluster.yaml"

/test-examples="examples/alloydb/cluster.yaml"


Write to memory stream

Version information

fluent-ffmpeg version: 2.1.2
ffmpeg version: 3.0.1
OS: Windows 10

Code to reproduce
const ffmpegPath = require('ffmpeg-static-electron').path,
      ffmpeg = require('fluent-ffmpeg'),
      streams = require('memory-streams');

ffmpeg.setFfmpegPath(ffmpegPath);

let stream = new streams.WritableStream();
let test = ffmpeg()
  .fps(15)
  .size('1920x1080')
  .input('desktop')
  .inputFormat('gdigrab')
  .videoCodec('libx264rgb')
  .outputOptions([
    '-crf 0',
    '-preset ultrafast'
  ])
	.on('end', function(){
    console.log('done');
    console.log(stream.toString());
	})
	.on('error', function(err){
    console.error(err);
  })
  .duration('0:15')
  .format('gif')
  .output(stream);

test.run();

(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
I am wanting to write an output of ffmpeg to a memory stream so I can decide if I want to write to disk. I'm using this memory stream library https://www.npmjs.com/package/memory-streams.
Observed results
Error: ffmpeg exited with code 1: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument.
Checklist

[X] I have read the FAQ
[X] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
[X] I have included full stderr/stdout output from ffmpeg

Turns out gif and mp4 format need to be able to seek the stream which isn't possible. I've fixed this by using a format such as AVI.


Cannot create folders in v2.0.0-alpha5

Pasted @Dhavanor 's question from https://github.com/UniSharp/laravel-filemanager/issues/80#issuecomment-439255165 :
Hi guys, I implemented s3 disk configuration on v2.0.0-alpha5 and have 2 differents issues:
1- I can't create folders, when i try it, a modal show me "Folder name cannot be empty!"
2- I can't delete any file, and the problem is at Class "DeleteController" - "getDelete()", because "$item_names = request('items');" is returning null everytime.
I have tried to see, what is returning on the request() with "dd(request->all());" and this is the result:
array:1 [▼
"working_dir" => "\1"
]
any suggest ?

Fixed in v2.0.0-alpha6.


feat: port Data.FinEnum

Initial commit. All working, but need to clean up

v zaxioms can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

bors r+