RC Test: Density, Buoyancy, Buoyancy: Basics 1.2.0-rc.1

RC Test
Mentions: @DianaTavares @arouinfar @zepumph @AgustinVallejo @samreid @KatieWoe @kathy-phet @Nancy-Salpepi
Simulation links

github repository for issues

density

phet top-level directory
sim: all_phet.html
phet-io wrapper index
link to phet-io zip file

Test Matrices

General Test Matrix
PhET-iO Test Matrix

buoyancy

phet top-level directory
sim: all_phet.html
phet-io wrapper index
link to phet-io zip file

Test Matrices

General Test Matrix
PhET-iO Test Matrix

buoyancy-basics

phet top-level directory
sim: all_phet.html
phet-io wrapper index
link to phet-io zip file

Test Matrices

General Test Matrix
PhET-iO Test Matrix

Features included

[x] PhET-iO
[x] Dynamic Locale
[x] Alternative Input
[x] UI Sound
[ ] ~Sonification~
[ ] ~Description~
[ ] ~Voicing~

Focus and Special Instructions

We have completed 2 QA dev tests and are ready for the full production RC.1. This should be a thorough test. We addressed many issues in the recent dev test.

The Buoyancy "Compare" screen and the Buoyancy: Basics "Compare" screens are identical, so that can be used to reduce testing.
Please be aware of the preferences menu, and test those settings. Please test the query parameter:
Please test these 3 query parameters: https://github.com/phetsims/density-buoyancy-common/blob/3028e1553538d6d6a7ec6e404a890237e6202fad/js/common/DensityBuoyancyCommonQueryParameters.ts#L16-L36
Please include testing PhET-iO migration from Density 1.1.
Please assign discovered issues to @zepumph @samreid

Issues to Verify
These issues should have the "status:ready-for-review" label. Unless an issue says to close after verifying, assign the
issue back to the developer.

[x] https://github.com/phetsims/density-buoyancy-common/issues/316#issuecomment-2338498145

For QA...

General features

What to Test

Click every single button.
Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.

If there is sound, make sure it works.
Make sure you can't lose anything.
Play with the sim normally.
Try to break the sim.
Test all query parameters on all platforms. (
See QA Book for a list of query parameters.)
Download HTML on Chrome and iOS.
Make sure the iFrame version of the simulation is working as intended on all platforms.
Make sure the XHTML version of the simulation is working as intended on all platforms.
Complete the test matrix.
Don't forget to make sure the sim works with Legends of Learning.
Test the Game Up harness on at least one platform.
Check this LoL
spreadsheet and notify AR or AM if it not there.
If this is rc.1 please do a memory test.
When making an issue, check to see if it was in a previously published version.
Try to include version numbers for browsers.
If there is a console available, check for errors and include them in the Problem Description.
As an RC begins and ends, check the sim repo. If there is a maintenance issue, check it and notify developers if there
is a problem.
As the RC ends, please review the QA credits in the about dialog. If the QA credits are complete and correct, please
add a comment in the RC test issue indicating so. If not, please open a new issue and specify what changes should be
made.

PhET-iO features

What to Test

Make sure that public files do not have password protection. Use a private browser for this.
Make sure that private files do have password protection. Use a private browser for this.
Make sure standalone sim is working properly.
Make sure the wrapper index is working properly.
Make sure each wrapper is working properly.
Launch the simulation in Studio with ?stringTest=xss and make sure the sim doesn't navigate to youtube
For newer PhET-iO wrapper indices, save the "basic example of a functional wrapper" as a .html file and open it. Make
sure the simulation loads without crashing or throwing errors.
Load the login wrapper just to make sure it works. Do so by adding this link from the sim deployed root:/wrappers/login/?wrapper=record&validationRule=validateDigits&&numberOfDigits=5&promptText=ENTER_A_5_DIGIT_NUMBER

Further instructions in QA Book
Conduct a recording test to Metacog, further instructions in the QA Book. Do this for iPadOS + Safari and one other
random platform.
Conduct a memory test on the stand alone sim wrapper (rc.1).
Test one platform combination with ?phetioDebug=true on the Studio and State wrapper.
If Pan/Zoom is supported, make sure that it works when set with PhET-iO State.
Test that the sim works offline:

Click the link to the phet-io zip file (at top of issue) to download the zip file.
Unzip it to a spot locally.
Open index.html by double clicking it on your desktop or in a Finder-view.
It should look like the standalone version of the sim in PhET-iO brand.

Accessibility features

What to Test

Specific instructions can be found above.

Make sure the accessibility (a11y) feature that is being tested doesn't negatively affect the sim in any way. Here is
a list of features that may be supported in this test:

Alternative Input
Interactive Description
Sound and Sonification
Pan and Zoom
Mobile Description
Voicing

Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.
Test all keyboard navigation inputs (if applicable).
Test all forms of input with a screen reader (if applicable).

If this sim is not in this list or up to date there, make an
issue in website to ask if PhET research page links need updating. Please
assign to @terracoda and @emily-phet.

Screen Readers
This sim may support screen readers. If you are unfamiliar with screen readers, please ask Katie to introduce you to
screen readers. If you simply need a refresher on screen readers, please consult the
QA Book, which should have all of the information
you need as well as a link to a screen reader tutorial made by Jesse. Otherwise, look over the a11y view before opening
the simulation. Once you've done that, open the simulation and make sure alerts and descriptions work as intended.

Platforms and Screen Readers to Be Tested

Windows 10 + Latest Chrome + Latest JAWS
Windows 10 + Latest Firefox + Latest NVDA
macOS + Safari + VoiceOver
iOS + Safari + VoiceOver (only if specified in testing issue)

Critical Screen Reader Information
We are tracking known screen reader bugs in
here. If you find a screen reader bug,
please check it against this list.

Keyboard Navigation
This sim supports keyboard navigation. Please make sure it works as intended on all platforms by itself and with a
screen reader.
Magnification
This sim supports magnification with pinch and drag gestures on touch screens, keyboard shortcuts, and mouse/wheel
controls. Please test magnfication and make sure it is working as intended and well with the use cases of the
simulation. Due to the way screen readers handle user input, magnification is NOT expected to work while using a screen
reader so there is no need to test this case.

FAQs for QA Members

There are multiple tests in this issue... Which test should I do first?
Test in order! Test the first thing first, the second thing second, and so on.

How should I format my issue?

We typically assign the developer who opened the issue in the QA repository.

My question isn't in here... What should I do?
You should:

Consult the QA Book.
Google it.
Ask Katie.
Ask a developer.
Google it again.
Cry.

Calling QA here

Thanks, we will continue in the discovered issues. Closing.

https://github.com/phetsims/density/issues/1
https://github.com/phetsims/buoyancy/issues/1
https://github.com/phetsims/buoyancy-basics/issues/1


Bluetooth: controller: Add Kconfig for Optimize for Speed

Add Kconfig option to support building the controller
optimized for speed.
Fixes #21601.
Signed-off-by: Vinayak Kariappa Chettimada<EMAIL_ADDRESS>

@ayworld Please verify if this fixes #21601.
@jhe labelled it for v2.2, if this is approved in time for tagging, else we drop it to after.

@jhe labelled it for v2.2, if this is approved in time for tagging, else we drop it to after.

It fixes a medium priority issue, so I'd say it's quite desirable for 2.2. My plan is to tag rc3 this weekend (unless there are still open qualification issues) and then the final release next week.

I want to just double-check that the code does what you want it to do.
Is it intentional that optimizing for size is now a user-configurable option, and not a hard-requirement (when BT_CTLR_LE_ENC) ?
If not, the prompt should be removed.

Yes, this is intentional. So that other vendors can override, and the default is still speed optimized, as most of the controller code executes as ISR.

It used to be that the controller would, in certain situations on certain nrf platforms, not meet a hard-realtime requirement when we built for size. Is this still the case?
If so we should make the prompt conditional on this.
We don't want to allow users to configure the BT controller in an invalid way.

The Kernel introduced random ISR latency are seen upto 100 us on nRF51, this effects nRF51 platform with encrypted connection support (BT_CTLR_LE_ENC). Is there  a way to select BT_CTLR_OPTIMIZE_FOR_SPEED if nRF51 and BT_CTLR_LE_ENC ? and for other platforms it has to be user selectable.

Is there a way to select BT_CTLR_OPTIMIZE_FOR_SPEED if nRF51 and BT_CTLR_LE_ENC ? and for other platforms it has to be user selectable.

Yes,
we can make it so that it is not user-selectable when (nRF51 AND BT_CTLR_LE_ENC).
This is done like this:
	bool
        prompt "Optimize for Speed" if ! (SOC_SERIES_NRF51X AND BT_CTLR_LE_ENC)


object appears as private and complete, but isn't marked as private or complete

This item appears in DPUL, marked as private, despite all volumes and the overall object being marked as open, and all volumes and the overall object being marked with Takedown.
https://dpul.princeton.edu/marquand/catalog/vt150j33m

I don't think this is a bug, maybe just a vocabulary problem. In DPUL when that checkbox for "public" is un-ticked, it means people can't discover/access it if they're not an admin. So what happens is when an item is "taken down" in Plum, it makes it un-public in DPUL. That way any custom curator fields/modification aren't deleted, but the public won't have access to it until it's not taken down anymore.

@joycebcat Can we close this?


[AMORO-2286] The mixed hive should be allowed to be dropped when the hive table has already been dropped

Why are the changes needed?

Close #2286.
Brief change log

-Not sync if the hive table does not exist during hive schema sync
-If the hive table doesn't exist at the time of drop table, it is skipped.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

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


[MINOR][DOCS] add tip to schema evolution

Replenish: #6344
Change Logs
Impact
none
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed


Combined PRs

Combined PRs ➡📦⬅
✅ The following pull requests have been successfully combined on this PR:

#147 Bump com.gradle.common-custom-user-data-gradle-plugin from 1.11 to 1.11.1

⚠ The following PRs were left out due to merge conflicts:

#146 Bump com.gradle.enterprise from 3.13.4 to 3.14

This PR was created by the github/combine-prs action

@dependabot rebase


Break BC of QueryBuilder with select('count(*)') in 2.0.14

What steps will reproduce the problem?
echo (new Query)->select('COUNT(*)')->from('tbl_order')->createCommand()->getRawSql();
// SELECT COUNT(*) FROM "tbl_order"
echo (new Query)->select('COUNT(*)')->select('COUNT(*)')->from('tbl_order')->createCommand()->getRawSql();
// SELECT * FROM "tbl_order"

What is the expected result?
echo (new Query)->select('COUNT(*)')->select('COUNT(*)')->from('tbl_order')->createCommand()->getRawSql();
// SELECT COUNT(*) FROM "tbl_order"

What do you get instead?
echo (new Query)->select('COUNT(*)')->select('COUNT(*)')->from('tbl_order')->createCommand()->getRawSql();
// SELECT * FROM "tbl_order"

Additional info

Q
A

Yii version
2.0.14

PHP version
7.0

Operating system
Ubuntu

Fixed in https://github.com/yiisoft/yii2/commit/1b3526d8db208fbc834e98c8563993ec9c2c6f1a


dev docs

authentication end-point
plugin settings
GoApplicationAccessor request accessors
handling web requests

merging this myself since its dev docs.


fix(sec): upgrade github.com/btcsuite/btcd to 0.23.2

What happened？
There are 1 security vulnerabilities found in github.com/btcsuite/btcd v0.22.0-beta.0.20220207191057-4dc4ff7963b4

CVE-2022-44797

What did I do？
Upgrade github.com/btcsuite/btcd from v0.22.0-beta.0.20220207191057-4dc4ff7963b4 to 0.23.2 for vulnerability fix
What did you expect to happen？
Ideally, no insecure libs should be used.
How can we automate the detection of these types of issues?
By using the GitHub Actions configurations provided by murphysec, we can conduct automatic code security checks in our CI pipeline.
The specification of the pull request
PR Specification from OSCS

@realize096, remember to re-request review from reviewers when ready

@realize096, remember to re-request review from reviewers when ready

@realize096, remember to re-request review from reviewers when ready

@realize096, remember to re-request review from reviewers when ready

@realize096, remember to re-request review from reviewers when ready

closed due to inactivity


fix: failed to save delegated address

关联的Issues (Related Issues)

close
改动 (Proposed Changes)

附注 (Additional Info)

自查清单 (Checklist)
在你认为本 PR 满足被审阅的标准之前，需要确保 / Before you mark the PR ready for review, please make sure that:

[ ] 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
[ ] 具有清晰明确的commit message / All commits have a clear commit message.
[ ] 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
[ ] 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
[ ] 通过必要的检查项 / All checks are green

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/v1.10@ffe7aa0). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files

@@               Coverage Diff                @@
##             release/v1.10     #128   +/-   ##
================================================
  Coverage                 ?   33.49%
================================================
  Files                    ?       40
  Lines                    ?     2457
  Branches                 ?        0
================================================
  Hits                     ?      823
  Misses                   ?     1496
  Partials                 ?      138

Flag
Coverage Δ

unittests
33.49% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


[add-to-app] SafeArea doesn't work when background mode is transparent

I am adding flutter to Android with the guide https://github.com/flutter/flutter/wiki/Experimental:-Add-Flutter-Activity;
FlutterActivity.CachedEngineIntentBuilder builder = FlutterActivity.withCachedEngine(engName);
// builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.transparent);  //1
// builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.opaque);  //2
Intent intent = builder.build(activity.getApplicationContext());
activity.startActivity(intent);

but I found that when start the activity with
builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.transparent);

then SafeArea not work anymore;
in fact, if I comment this line, then there is always SafeArea;
by the way:
FlutterActivityLaunchConfigs is not public, I have to make my code belong to  package io.flutter.embedding.android;
[✓] Flutter (Channel beta, v1.12.13+hotfix.1, on Mac OS X 10.15.1 19B88, locale zh-Hans-CN)
    • Flutter version 1.12.13+hotfix.1 at /opt/google/flutter
    • Framework revision 5b07015393 (24 hours ago), 2019-12-03 00:12:02 -0800
    • Engine revision c1e322b685
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /opt/google/android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /opt/google/android/sdk
    • ANDROID_SDK_ROOT = /opt/google/android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
      instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.8.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (2 available)

Hi @wanjm
could you please provide a minimal code sample to reproduce the problem?
Thank you

create one empty directory and enter in;
flutter create -t module --org cn.plaso -a java  flutter_module
use Androd Studio to create one App with basic Activity in the same dir; one app with a float button;
build flutter_module with  flutter build aar
modify build.gradle and MainActivity.xml as the guide tells;
set up new FlutterHelper.

package io.flutter.embedding.android;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import java.util.HashMap;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.android.FlutterActivityLaunchConfigs;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.FlutterEngineCache;
import io.flutter.embedding.engine.dart.DartExecutor;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;

public class FlutterHelper {
    private static  FlutterHelper instance=new FlutterHelper();
    private static final String CHANNEL = "plaso_inner_module";
    private MethodChannel channel;
    private Context context;
    final String engName="my_engine_id";
    private FlutterHelper(){}
    public static FlutterHelper getInstance(){
        return instance;
    }
    public void init( Context context ){
        this.context=context;
        FlutterEngine flutterEngine = new FlutterEngine(context);

        channel=new MethodChannel(flutterEngine.getDartExecutor(), CHANNEL);
        flutterEngine
                .getDartExecutor()
                .executeDartEntrypoint(
                        DartExecutor.DartEntrypoint.createDefault()
                );
        FlutterEngineCache
                .getInstance()
                .put(engName,flutterEngine);
    }
    public void startActivity(Activity activity){
        FlutterActivity.CachedEngineIntentBuilder builder = FlutterActivity.withCachedEngine(engName);
        builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.transparent);
        // builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.opaque);
        Intent intent = builder.build(activity.getApplicationContext());
        activity.startActivity(intent);
    }
}

modify MainActivity.java in onCreate;

    FlutterHelper.getInstance().init(getApplicationContext());
    fab.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
        FlutterHelper.getInstance().startActivity(MainActivity.this);
      }
    });

then you will find and the flutter  page is SafeAreaed or not is controlled by

builder.backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode.transparent);

instead of by SafeArea in dart code;

by the way,  when click , there will black screen before flutter page shown;
I fact, I am work for this problem and found SafeArea problem;
if you have any information on how to stop it from shine, it will be thankful;

cc @matthew-carroll for thoughts

Removing the regression tag since I don't think the old embedding had transparency support.

Fixed here: https://github.com/flutter/engine/pull/16208

{
  "flutterSdkVersion": "1.22.4"
}

still not work

{
  "flutterSdkVersion": "1.22.4"
}

still not work

@krmao
this issue is closed from 11 months and it is not actively worked on
can you open a new issue providing a minimal reproducible code sample and your flutter doctor -v

@krmao
this issue is closed from 11 months and it is not actively worked on
can you open a new issue providing a minimal reproducible code sample and your flutter doctor -v

@iapicca may be it's FlutterBoost bug, not yours, thanks for the reply!

@iapicca may be it's FlutterBoost bug, not yours, thanks for the reply!

@iapicca may be it's FlutterBoost bug, not yours, thanks for the reply!

it make sense, flutter_boost uses a very old version of flutter
which probably does not contain the fix for this bug

@iapicca may be it's FlutterBoost bug, not yours, thanks for the reply!

it make sense, flutter_boost uses a very old version of flutter
which probably does not contain the fix for this bug


[Bug] User display picture does not update after upload

Description

Display picture is not updated when user uploads from the file picker (jpg and jpeg work fine)

Steps to reproduce the behaviour:

Go to profile and click Upload Display Picture
Select an image and upload
Observe a shift on the view
Refresh page and observe a momentary 'Remove' appear under the profile pic

Important Details

Version: Cloud
OS: Win10
Browser: Chrome
Environment: Release

When the Display picture is uploaded successfully, It doesn't reflect in AppHeader.
(click on the below image to check video)

@ramsaptami could not reproduce this on release, checked both on mac and win10.
https://user-images.githubusercontent.com/13262095/133734404-267350d2-4cf6-4b41-a23e-2ebadeb4d87d.mov

could you please verify this again? If you still see the issue, please let me know the format and size of the image

it's a PNG of size 2475KB that's not working

@Pranay105 @ramsaptami I would love to work on this

@ashish921998 go for it!

@Nikhil-Nandagopal @ramsaptami this is not reproduceable, can you please ask someone to link a video on how to reproduce this

Hey @ashish921998, so this is a specific edge case where a PNG file of size that's close to the size limit fails.
Other image file types can be successfully uploaded.

Fixed already


reproduce experiment on ACDC dataset

Thank you for this great work. I just used my own created split (in my previous works) rather than the one provided by the author. After training for 300 epochs, the dice scores using 1 case and 5 cases are both around 20, far lower than 86 reported in this paper. I couldn't find a reason for it. did anyone ever succeed in reproducing the results on ACDC dataset?

Hi, have you tried our provided splits?

i'm trying the split you provided, and the setting is 1 case
here is the log you provided for the first epoch

here is the log of my reproduction:

ill wait for 300 epochs and get back to you later

hi, i've tried your provided split and finished training, here are the results
val dice score:

training loss:

the final dice score is around 15.48 and best dice score is 17.01

Hi, thank you for your feedback. I will re-run and re-check the code these two days. Could you upload the training log as well? Thank you.

thank you for response, here is the log file
20230920_025111.log

Sorry for the late reply. I have re-run my code, and achieved similar results as our paper on all settings. Below are the training logs, tensorboards, and checkpoints. Please check if you have modified our code.

Labeled cases
1
3
7

Results
85.5
88.7
89.5

Download
log | tensorboard | ckp
log | tensorboard | ckp
log | tensorboard | ckp

thank you for your reply, i checked the codes, the only part i modified is the dataloader, which shouldn't have contributed to such a huge gap between your results and mine.
idk, maybe we can see if others can reproduce the experiments on ACDC dataset.
Thank you again, appreciate your time for rerunning all experiments.

@LiheYoung Hi Young, thanks for your work.
I am trying to reproduce the result on ACDC dataset.
I have found your training-logs and wonder where is the  'labeled_id_path': 'partitions/acdc/3/labeled.txt'?
Similar, the 'partitions/acdc/1/labeled.txt' and 'partitions/acdc/7/labeled.txt'.
Can you provide the dataset split?
Thanks,
Chen

@LiheYoung Hi Young, thanks for your work. I am trying to reproduce the result on ACDC dataset. I have found your training-logs and wonder where is the 'labeled_id_path': 'partitions/acdc/3/labeled.txt', 'unlabeled.txt'? Similar, the 'partitions/acdc/1/(un)labeled.txt' and 'partitions/acdc/7/(un)labeled.txt'. Can you provide the dataset split?
 Looks like I've found the relevant files, here.
I'll report on any future updates on the reproduction results as well.

Hi @xhu248, I just tried the split provided, and the setting was 3 case.
The UniMatch worked well on ACDC dataset and obtained similar results. (88.7 v.s. my 87.58)
In my exp, the Dice under 3 labelled cases was 87.58% after 300 epochs.
Here is the log.
20241029_103523.log


useFormState API change suggestion

Currently the suggested use of this API is as follows:
  const [formState, { text, email, password, radio }] = useFormState();
  return (
    <form onSubmit={() => console.log(formState)}>
      <input {...text('name')} />
      <input {...email('email')} required />
      <input {...password('password')} required minLength="8" />
      <input {...radio('plan', 'free')} />
      <input {...radio('plan', 'premium')} />
    </form>
  );

What I don't like about this is the duplicated { text, email, password, radio } list. You have to repeat every input type you're using there. When you add or remove inputs in your form you possibly have to edit this list. I think adding or removing inputs should only involve adding/removing the <input> line.
To achieve that we can use the current API as follows:
  const [formState, inputs] = useFormState();
  return (
    <form onSubmit={() => console.log(formState)}>
      <input {...inputs.text('name')} />
      <input {...inputs.email('email')} required />
      <input {...inputs.password('password')} required minLength="8" />
      <input {...inputs.radio('plan', 'free')} />
      <input {...inputs.radio('plan', 'premium')} />
    </form>
  );

At this point, it seems to make sense to combine formState and inputs so that useFormState returns only one object:
  const form = useFormState();
  return (
    <form onSubmit={() => console.log(form.state)}>
      <input {...form.text('name')} />
      <input {...form.email('email')} required />
      <input {...form.password('password')} required minLength="8" />
      <input {...form.radio('plan', 'free')} />
      <input {...form.radio('plan', 'premium')} />
    </form>
  );

This also makes it clear which form each input belongs to, if you happen to have multiple forms within the same component.
I think this would be a nicer API. What do you think?
I know this would be a breaking change so I understand if you're not willing to implement this.

Hi @emlai

At this point, it seems to make sense to combine formState and inputs so that useFormState returns only one object:

It's hard for me to see a big different between the following:
// this
const form = useFormState();
// vs
const [state, form] = useFormState();

<input {...form.text('name')} />
<input {...form.email('email')} required />
<input {...form.password('password')} required minLength="8" />
<input {...form.radio('plan', 'free')} />
<input {...form.radio('plan', 'premium')} />

In both of your examples above, the inputs are still name spaced, so the difference is only with destructuring the array [state, ____] = into two variables, which I don't see as a big difference.
That said, I will take into consideration for the 1.0.0 release as I'm planning on adding new features and API design changes in the future.
Thanks!


Added DFS and BFS: closes #138

Added iterative implementations of DFS and BFS on unweighted graphs and included documentation in accordance with CONTRIBUTING.md. Closes #138
Recursive implementations could be added in the future.

LGTM! Ngl, we really need to cleanup this repository.


indexmap: expose PowerOfTwo, Bucket and Pos

This change allows the create custom structs based on IndexMap with size arguments outside
the heapless crate itself.
For example:
use heapless::consts::*;
use heapless::{ArrayLength, Bucket, FnvIndexMap, Pos, PowerOfTwo};

struct CustomMap<S>
where
    S: ArrayLength<Bucket<u8, u16>> + ArrayLength<Option<Pos>> + PowerOfTwo,
{
    map: FnvIndexMap<u8, u16, S>,
}

impl<S> CustomMap<S>
where
    S: ArrayLength<Bucket<u8, u16>> + ArrayLength<Option<Pos>> + PowerOfTwo,
{
    fn new() -> CustomMap<S> {
        CustomMap {
            map: FnvIndexMap::<_, _, S>::new(),
        }
    }
}

fn main() {
    let mut bla = CustomMap::<U8>::new();

    bla.map.insert(8, 16).unwrap();
}

I can imagine that exposing these types is not preferable, but at least it would help for my usecase. Or is there a way where exposing these types is not needed?

I am not 100% sure on the design-though behind this, could you have a look @japaric ?

bors r+


Workflows with error in onExit handler never finish

Summary
What happened/what you expected to happen?
When Argo fails to run an onExit handler in a workflow, it never marks the workflow as finished, even if all the nodes in it are fulfilled.
Expected: the workflow is marked as errored.
Diagnostics
What Kubernetes provider are you using?
EKS 1.19, kind v0.10.0
What version of Argo Workflows are you running?
3.0.2
Paste a workflow that reproduces the bug, including status:
# kubectl get wftmpl -o yaml test-exit-handler
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: test-exit-handler
  namespace: test
spec:
  entrypoint: argosay
  onExit: exit-handler
  templates:
    - name: argosay
      container:
        name: main
        image: 'argoproj/argosay:v2'
        command:
          - /argosay
        args:
          - echo
          - hello argo
    - name: exit-handler
      templateRef:
        name: nonexistent
        template: exit-handler

# The bug only manifests when the workflow is created via workflowTemplateRef.
# kubectl get wf -o yaml test-exit-handler
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: test-exit-handler-
  namespace: test
spec:
  workflowTemplateRef:
    name: test-exit-handler

Paste the logs from the workflow controller:
These entries show up in the logs every 30 minutes after the workflow is created:
# kubectl logs -n argo $(kubectl get pods -l app=workflow-controller -n argo -o name) | grep ${workflow}
time="2021-05-05T19:30:40.534Z" level=debug msg="Syncing all CronWorkflows"
time="2021-05-05T19:30:44.497Z" level=info msg="Get leases 200"
time="2021-05-05T19:30:44.521Z" level=info msg="Update leases 200"
time="2021-05-05T19:30:49.497Z" level=info msg="Get leases 200"
time="2021-05-05T19:30:49.512Z" level=info msg="Update leases 200"
time="2021-05-05T19:30:49.677Z" level=info msg="Processing workflow" namespace=test workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.683Z" level=debug msg="Evaluating node test-exit-handler-s77sx: template: *v1alpha1.WorkflowStep (argosay), boundaryID: " namespace=test workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.683Z" level=debug msg="Resolving the template" base="*v1alpha1.Workflow (namespace=,name=)" depth=0 tmpl="*v1alpha1.WorkflowStep (argosay)"
time="2021-05-05T19:30:49.683Z" level=debug msg="Getting the template" base="*v1alpha1.Workflow (namespace=,name=)" depth=0 tmpl="*v1alpha1.WorkflowStep (argosay)"
time="2021-05-05T19:30:49.683Z" level=debug msg="Getting the template by name" base="*v1alpha1.Workflow (namespace=,name=)" depth=0 tmpl="*v1alpha1.WorkflowStep (argosay)"
time="2021-05-05T19:30:49.683Z" level=debug msg="Node test-exit-handler-s77sx already completed" namespace=test workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.683Z" level=info msg="Running OnExit handler: exit-handler" namespace=test workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.684Z" level=debug msg="Evaluating node test-exit-handler-s77sx.onExit: template: *v1alpha1.WorkflowStep (exit-handler), boundaryID: " namespace=test workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.684Z" level=debug msg="Resolving the template" base="*v1alpha1.Workflow (namespace=,name=)" depth=0 tmpl="*v1alpha1.WorkflowStep (exit-handler)"
time="2021-05-05T19:30:49.684Z" level=debug msg="Getting the template" base="*v1alpha1.Workflow (namespace=,name=)" depth=0 tmpl="*v1alpha1.WorkflowStep (exit-handler)"
time="2021-05-05T19:30:49.684Z" level=debug msg="Getting the template by name" base="*v1alpha1.Workflow (namespace=,name=)" depth=0 tmpl="*v1alpha1.WorkflowStep (exit-handler)"
time="2021-05-05T19:30:49.684Z" level=error msg="Mark error node" error="template 'exit-handler' type is unknown" namespace=test nodeName=test-exit-handler-s77sx.onExit workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.684Z" level=error msg="error in exit template execution" error="template 'exit-handler' type is unknown" namespace=test workflow=test-exit-handler-s77sx
time="2021-05-05T19:30:49.726Z" level=debug msg="Check the workflow existence"
time="2021-05-05T19:30:50.504Z" level=debug msg="Syncing all CronWorkflows"
time="2021-05-05T19:30:54.541Z" level=info msg="Get leases 200"
time="2021-05-05T19:30:54.599Z" level=info msg="Update leases 200"
time="2021-05-05T19:30:59.619Z" level=info msg="Get leases 200"
time="2021-05-05T19:30:59.661Z" level=info msg="Update leases 200"

It appears that upon encountering an error during the execution of the onExit template, the operator() function simply exits and never actually marks the workflow as an error.

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@jesse what's your take on this? I think the workflow should be failed, but want to double-check.

Think you tagged the wrong Jesse. Here it is @jessesuen
My two cents: +1 to fail the workflow in this case. An analogue to this is the finally block in Python which would raise exception as well if there's any.


⚠ AtmoLive03 Server has degraded performance

In d88b223, AtmoLive03 Server ($ATMOLIVE03) experienced degraded performance:

HTTP code: 200
Response time: 6941 ms

Resolved: AtmoLive03 Server performance has improved in 19e11eb.


mcap record all ros1 topics, or matching subset

Duplicate rosbag record but in rust and for mcap.
Need to poll or get updates when new topics appear.
How to even get a rostopic list?  Does roslibrust expose anything through node handle?
The rosmaster api https://wiki.ros.org/ROS/Master_API has interaction for getting lists of topics?

rosbag record calls doCheckMaster once a second https://github.com/ros-o/ros_comm/blob/obese-devel/tools/rosbag/src/recorder.cpp#L661-L666 and uses ros::master::getTopics(topics) to get a current list of topics.

Had to expose several things in roslibrust https://github.com/lucasw/roslibrust/tree/pub_master_client in order to be able to create a MasterClient on the outside https://github.com/lucasw/mcap_tools/blob/main/mcap_tools/src/bin/rostopic_list.rs

Now how to subscribe without deserialization, just get a vector of bytes?  If I could instantiate a normal subscriber then adding a next_raw() function would be easy, but can I turn string into a message type to create the subscriber in the first place?
(also once it is time to record into the mcap, I need to have the message definition- I think I can get that from roslibrust)

Get the connection header without subscribing - modify roslibrust as needed
Subscribe without having a type, return raw bytes from next- maybe a lot of surgery required, a full parallel subscription.rs or a lot within it
Write to an mcap as in mcap/rust/examples/conformance_writer.rs, the message definition becomes the schema and other fields map

Example of recording to mcap from ros in C++ (which has topic_tools::ShapeShifter for the generic message subscription)
https://github.com/lucasw/ros_one2z/blob/main/one2z/src/topic_to_mcap.cpp

Try detecting if subscriber type is std_msgs ByteMultiArray and if so fill response with raw message bytes, and configure subscriber in first place with connection header information

rospy.AnyMsg: https://github.com/ros-o/ros_comm/blob/d5a1b6dae32e6db636d628a11c7633abe3f01974/clients/rospy/src/rospy/msg.py#L48

Receiving raw bytes is now working in https://github.com/lucasw/roslibrust/tree/subscribe_any and https://github.com/lucasw/mcap_tools/blob/main/mcap_tools/src/mcap_record.rs
But need to rebase roslibrust on latest changes to upstream roslibrust.
Next will need to get information out of the connection_header when writing messages to disk- can that be returned with each next_raw() call?

See this somewhat frequently under moderate load (e.g. 26% cpu), maybe the queue size needs to be larger:
2024-08-09T14:12:52.074Z ERROR [mcap_record] Err(Lagged(61))
2024-08-09T14:13:13.723Z ERROR [mcap_record] Err(Lagged(4))
2024-08-09T14:13:21.676Z ERROR [mcap_record] Err(Lagged(4))
2024-08-09T14:13:24.279Z ERROR [mcap_record] Err(Lagged(5))
2024-08-09T14:13:26.322Z ERROR [mcap_record] Err(Lagged(177))

Went down probably a wrong path in subscribe_any_next_fn, try again with a function created in subscribe_any or regular subscribe() that gets used in next()

test roslibrust
ROS_PACKAGE_PATH=`rospack find std_msgs`:`rospack find geometry_msgs`:`rospack find sensor_msgs`:`rospack find std_srvs` cargo test --features ros1 -p roslibrust

I think the last rebase removed the ability to get a new list of topics in mcap_record

This looks to exclude example_package
ROS_PACKAGE_PATH=`rospack find std_msgs`:`rospack find std_srvs` cargo test --release -p roslibrust  --features ros1_test test_subscribe_any -- --show-output

See missing messages when running mcap record currently, try making a standalone subscriber node or a roslibrust integration test with 100 hz publishing

Additional experimentation with rosbag record -a shows it is also dropping about the same amount of messages, so not going to worry about this for now.

https://github.com/Carter12s/roslibrust/discussions/195

Need to disable statistics when doing a rosbag play -> rosbag record / mcap_record test, or conversely enable statistics but remap any statistics topic within the bag.

I thought plotjuggler fully supported ros1 mcap, and it loads and plots them fine, but one feature that doesn't work is the ROS Topic Re-Publisher, I wonder if it gives up on any topic where it doesn't find an md5sum.
(rosbag stores the md5sum in the message)
The foxglove go code is using the md5sum in the conversion process only to handle the case where two different md5sums appear on the same topic (from different publishers presumably), but it doesn't actually write them to the mcap schema or channel.
rostopic echo needs the md5sum from the publisher
When I use ros1_play_mcap.py I'm using roslib get_message_class() to look up the message and that gets the md5sum.

Now have playback working with md5sum generation https://github.com/lucasw/roslibrust/commit/04bb108823f42e97352c0c71dc441cbaa928c0ad (subscribe_any branch)


Fixes span name selector

The span name selector UI was calling getTraces instead of getSpanNames.
This happened during the switch to the json api. This change fixes that
and clarifies the confusing naming that was used in the web handlers.
Fixes #748

Pushing version 1.13.3 immediately. Will take an hour or so to reach docker


Collection exercise page cleanup

What and why?
A UI update to the collection exercise overview page
How to test?
Trello
https://trello.com/c/tjhZWp42/1600-rops-improvements-collection-exercise-overview-page-cleanup

/deploy manna

/deploy manna


cli_tools_distributor.rb:122:in `ensure in take_off': uninitialized constant Fastlane::VERSION

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

i tried to fastlane beta on jenkins.
fastlane is show this error
i tried to rbenv, ruby, fastlane update
but there not working
Command executed

fastlane beta
Complete output when running fastlane, including the stack trace and command used

 [15:29:03 /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `ensure in take_off': uninitialized constant Fastlane::VERSION (NameError)
15:29:03 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
15:29:03 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/bin/fastlane:23:in `'
15:29:03 	from /usr/local/bin/fastlane:22:in `load'
15:29:03 	from /usr/local/bin/fastlane:22:in `'
15:29:03 Build step 'Execute shell' marked build as failure
15:29:03 Finished: FAILURE]

Environment

✅ fastlane environment ✅
### Stack

Key
Value

OS
10.13.6

Ruby
2.6.0

Bundler?
false

Git
git version 2.17.2 (Apple Git-113)

Installation Source
~/.rvm/rubies/ruby-2.6.0/bin/fastlane

Host
Mac OS X 10.13.6 (17G5019)

Ruby Lib Dir
~/.rvm/rubies/ruby-2.6.0/lib

OpenSSL Version
OpenSSL 1.1.1b  26 Feb 2019

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
10.1

System Locale

Variable
Value

LANG
ko_KR.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.119.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

executable-hooks
1.6.0

bundler-unload
1.0.2

rubygems-bundler
1.4.5

slack-notifier
2.3.2

atomos
0.1.3

CFPropertyList
3.0.0

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.6

xcodeproj
1.8.2

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

unicode-display_width
1.5.0

terminal-table
1.8.0

plist
3.5.0

public_suffix
2.0.5

addressable
2.6.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.6.5

tty-cursor
0.6.1

tty-spinner
0.9.0

babosa
1.0.2

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.62.0

faraday
0.15.4

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20180417

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.5

gh_inspector
1.1.3

json
2.1.0

mini_magick
4.5.1

multi_json
1.13.1

multi_xml
0.6.0

rubyzip
1.2.2

security
0.1.3

xcpretty-travis-formatter
1.0.0

dotenv
2.7.2

faraday_middleware
0.13.1

naturally
2.2.0

simctl
1.6.5

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.2

mime-types-data
3.2019.0331

mime-types
3.2.2

jwt
2.1.0

signet
0.11.0

memoist
0.16.0

os
1.0.0

googleauth
0.6.7

httpclient
2.8.3

google-api-client
0.23.9

google-cloud-env
1.0.5

google-cloud-core
1.3.0

digest-crc
0.4.1

google-cloud-storage
1.16.0

emoji_regex
1.0.1

bundler
2.0.1

forwardable
1.2.0

logger
1.3.0

ipaddr
1.2.2

openssl
2.1.2

ostruct
0.1.0

date
2.0.0

fileutils
1.2.0

rexml
3.2.0

psych
3.1.0

mutex_m
0.1.0

generated on: 2019-04-09

Duplicate of #14463

My problem was due to crashes caused by rvm.
Thank you for your help.


Nest exceptions when multiple tasks fail

Seemed a bit arbitrary to just silently ignore tasks exceptions in the case multiple tasks fail. This should allow all of them to bubble up as suppressed exceptions.

Looks good apart from some small comments.


fixed error not installing requirements.txt

ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
HINT: You are attempting to install a package literally named "requirements.txt" (which cannot exist). Consider using the '-r' flag to install the packages listed in requirements.txt

Hey @RMehdid Thanks for the PR and the issue!
I know you might have done this already but be sure to reset your client secret since it has been mistakenly exposed in this PR.
Thanks Again <3

Also the Username isn't the name of your account I should clarify this in the docs more clearly but you should be using the ID
Which you can get by visiting your Spotify account on web
Example:
https://open.spotify.com/user/**aqowup3436r3wevilsyu2cldhw**
That will be your user ID
Thanks!


feature request: use [][0] instead of void 0

@zaoqi
We played around with this idea, but we have to decline.
It's true that [][0] is one character shorter, but it also requires the JavaScript engine to create an array, then access its 0th member every time we need an undefined literal value in the code.
@nreid260 created a test at jsperf.com that showed a definite negative impact on performance to using [][0] instead of void 0. Unfortunately, I don't have the link to it now, but I expect anyone interested wouldn't have much trouble recreating it.


how do i get cli to copy random files to dist folder?

versions: angular-cli: 1.0.0-beta.14
node: 5.10.1
i needed to copy random files into the dist folder. it's not clean from the the documentations how to accomplish the same.
appreciate any help.
thanks in advance.

This capability was lost a few weeks ago - you and I and others are eagerly hoping for its return. I feel like there is an inevitable opening for such a mechanism to be misused, so it would be great to do without it - but without it, too many projects will be driven away from CLI. Therefore, I hope it returns.)
(For some use cases you can work around it by copying extra files to "dist" after running ng build; for other that won't work, because that doesn't make the files available at top level URLs during development with ng serve.)

Im writing a chrome extension in Angular 2 with the cli and chrome extensions need a manifest.json file in the root of the app, so I would really like this feature back as manually copying files sucks! :(

I am on 1.0.0-beta.14
Look in your angular-cli.json file for "assets" under "apps".  The default value is "assets", which represents the name of the folder you need to create under your "src" folder.  This folder, and its contents, will be copied to the "dist" folder during "ng build".
Of course you can change the name of this folder to whatever you want, as long as it matches what is in your angular-cli.json file.  IE:
"assets": "myAssets"
src -> myAssets

This works

How do you get it to copy a file that exists in the root /src/manifest.json

I'm trying to build a PWA and need to move the manifest.json to the root.  Currently I am moving this with a shell copy script but would be nice to incorporate this into the ng build process.
@Lightw3ight - did you find a solution?

On the next release, this should be available: https://github.com/angular/angular-cli/pull/2570

write manifest.son  in assets, file anuglar-cli.json
"apps": [     {       "root": "src",       "outDir": "dist",       "assets": [         "assets",         "favicon.ico",         "manifest.json"       ],


Bug: java.lang.IllegalArgumentException: Problem decoding into existing bitmap

Hi, I'm receiving the following crash on scrolling on an emulated device:
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  java.lang.IllegalArgumentException: Problem decoding into existing bitmap
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:769)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at ovh.plrapps.mapcompose.utils.Source_androidKt.toImage(Source.android.kt:19)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at ovh.plrapps.mapcompose.core.TileCollector$worker$1.invokeSuspend(TileCollector.kt:132)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
2024-12-11 23:31:01.956  9779-9813  System.err              org.king.openzedmaps.androidApp      W  	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
2024-12-11 23:31:01.965  9779-9809  AndroidRuntime          org.king.openzedmaps.androidApp      E  FATAL EXCEPTION: TileCanvasThread
                                                                                Process: org.king.openzedmaps.androidApp, PID: 9779
                                                                                java.lang.IllegalArgumentException: Problem decoding into existing bitmap
                                                                                at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:769)
                                                                                at ovh.plrapps.mapcompose.utils.Source_androidKt.toImage(Source.android.kt:19)
                                                                                at ovh.plrapps.mapcompose.core.TileCollector$worker$1.invokeSuspend(TileCollector.kt:132)
                                                                                at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
                                                                                at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
                                                                                at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
                                                                                at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
                                                                                at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
                                                                                at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
                                                                                at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
                                                                                Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@cc42ada, java.util.concurrent.ScheduledThreadPoolExecutor@330db0b[Running, pool size = 1, active threads = 1, queued tasks = 1, completed tasks = 352]]
2024-12-11 23:31:01.983  9779-9809  Process                 org.king.openzedmaps.androidApp      I  Sending signal. PID: 9779 SIG: 9

Emulator specs:
Properties
avd.ini.displayname              Rooted AVD
avd.ini.encoding                 UTF-8
AvdId                            Rooted_AVD
disk.dataPartition.size          6G
fastboot.chosenSnapshotFile
fastboot.forceChosenSnapshotBoot no
fastboot.forceColdBoot           no
fastboot.forceFastBoot           yes
hw.accelerometer                 yes
hw.arc                           false
hw.audioInput                    yes
hw.battery                       yes
hw.camera.back                   virtualscene
hw.camera.front                  emulated
hw.cpu.ncore                     4
hw.device.hash2                  MD5:d1059e12633e5f5c541cb4a6eac71aeb
hw.device.manufacturer           Google
hw.device.name                   pixel_8_pro
hw.dPad                          no
hw.gps                           yes
hw.gpu.enabled                   yes
hw.gpu.mode                      auto
hw.initialOrientation            portrait
hw.keyboard                      yes
hw.lcd.density                   480
hw.lcd.height                    2992
hw.lcd.width                     1344
hw.mainKeys                      no
hw.ramSize                       2048
hw.sdCard                        yes
hw.sensors.orientation           yes
hw.sensors.proximity             yes
hw.trackBall                     no
image.androidVersion.api         30
image.sysdir.1                   system-images/android-30/google_apis_playstore/arm64-v8a/
PlayStore.enabled                true
runtime.network.latency          none
runtime.network.speed            full
showDeviceFrame                  yes
skin.dynamic                     yes
tag.display                      Google Play
tag.displaynames                 Google Play
tag.id                           google_apis_playstore
tag.ids                          google_apis_playstore
vm.heapSize                      256

Here is my tile provider:
...
    private fun getTileStreamProvider(): TileStreamProvider {
        val mapFloorLevel = 0
        val fileFormat = "jpg"
        val mapUrl = "https://map.projectzomboid.com/maps/SurvivalB417812"

        return TileStreamProvider { row, col, zoomLvl ->
            try {
                val url =
                    "${mapUrl}L${mapFloorLevel}/map_files/${zoomLvl}/${col}_${row}.${fileFormat}"
                val responseChannel = client.get(url).bodyAsChannel()
                responseChannel.readBuffer.buffered()
            } catch (e: Exception) {
                e.printStackTrace()
                null
            }
        }
    }

Here is my map state:
    val state =
        MapState(
            23,
            fullWidth,
            fullHeight,
            workerCount = 16,
            tileSize = 1024,
        ) {
            scale(1f)
            minimumScaleMode(Fill)
        }.apply {
            shouldLoopScale = false
            addLayer(tileStreamProvider, placement = BelowAll)
        }
}

And here is my map instance:
MapUI(state = viewModel.state)

I'm using KTor rather than Java httpio in my code but I am still getting back a buffered Source object so I'm not really sure why that would make a difference. I also get some tiles rendered but others not before the crash.  Help would be greatly appreciated! Cheers :)

Hi, it looks like some tiles don't fit in previously allocated memory for other tiles. The library tries to reduce memory allocations by reusing existing "slots" when decoding a tile.
To check if this is indeed the issue, you will have to disable this feature by changing those lines in TileCollector.kt L.133:
val image = resultBitmap.toImage(
      tilePool.get(),
      bitmapConfiguration.highFidelityColors
) ?: continue

to:
val image = resultBitmap.toImage(
      null,
      bitmapConfiguration.highFidelityColors
) ?: continue

Please report back the result. If this fixes your issue, then your tiles of level 0 don't have uniform encoding and tile pooling cannot be easily achieved. A change to the library will be required to defend against that.

Cheers for the quick response!  I'm having a bit of trouble importing the library locally. I have it in the root of my project and I've added it to settings.gradle.kts
implementation(":MapComposeMP")

But when I try a gradle sync I get the following:
e: ...MapComposeMP/build.gradle.kts:4:24: Unresolved reference: androidApplication
e: ...MapComposeMP/build.gradle.kts:5:24: Unresolved reference: androidLibrary
e: ...MapComposeMP/build.gradle.kts:6:24: Unresolved reference: jetbrainsCompose
e: ...MapComposeMP/build.gradle.kts:7:24: Unresolved reference: kotlinMultiplatform
e: ...MapComposeMP/build.gradle.kts:8:24: Unresolved reference: composeCompiler

Gradle doesn't seem to pick up the versions toml. Any ideas why?

Hi, I did some further investigation and I arrived at the conclusion that the crash was occurring because the top level map tiles i.e. row 0-1, col 0-1. zoom 0 were larger than the lower levels of tiles on my map I managed to fix this in my use case by enforcing a min scale.
    val state =
        MapState(
            23,
            fullWidth,
            fullHeight,
            workerCount = 32,
            tileSize = 1024,
        ).apply {
            shouldLoopScale = true
            addLayer(tileStreamProvider!!, placement = BelowAll)
            minimumScaleMode = Forced(0.01f)
            maxScale = 1f
            scale = 0.01f
            setMapBackground(Color.Black)
        }

Would it be worth making the tile-pool toggle-able? How bad would the performance impact of this be? Thanks very much for your help @p-lr  you definitely put me on the right track! :)

Instead of entirely toogling off the tile-pool, it should be possible to make a first attempt with using it - and if it fails, fallback to new tile allocation.
I'll make the change.
I'm curious, do you plan to use the library on an ios device ?

That would be good thank you! Happy to help if you'd like!
I am planning on a multiplatform app. I've not tested it on iOS yet though.

Thanks, I have made the changes. However, I'm having an issue during the publication process on maven. The gradle task of some "iosArm64 bundle" signature is failing. While there's absolutely no issues on android, desktop or other targets, I cannot publish a new version of the lib without the ios artifacts.

Amazing thank you so much!


CLI refactoring

The Runner and the CLI were coupled quite tightly. This PR loosens their relationship. I also added unit tests for the CLI and cleaned it up a bit.

Nice! Thanks for this.


ld: library not found for -lPods when running in XCode using Ionic

Description
I installed the plugins per the installation instructions, did ionic cordova prepare ios and run in XCode I get a build error - ld: library not found for -lPods

Repro Steps
Please list the steps used to reproduce your issue.

Create blank Ionic app.
Do cordova platform add<EMAIL_ADDRESS>Follow steps at https://docs.microsoft.com/en-us/appcenter/sdk/getting-started/cordova

Details

Which SDK version are you using?

Followed steps at https://docs.microsoft.com/en-us/appcenter/sdk/getting-started/cordova

Which OS version did you experience the issue on?

n/a

What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?

Cordova 8.1.2, Cocoapods 1.7.5, Ruby 2.3.7p45

Hey, @daviddickson, thanks for getting in touch!
Can you tell me, which file are you opening in XCode? It looks like you are opening xcodeproj file, is that correct?

Correct.
On Thu, Aug 8, 2019 at 11:27 AM Dmitrii Chichuk<EMAIL_ADDRESS>wrote:

Hey, @daviddickson https://github.com/daviddickson, thanks for getting
in touch!
Can you tell me, which file are you opening in XCode? It looks like you
are opening xcodeproj file, is that correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/appcenter-sdk-cordova/issues/103?email_source=notifications&email_token=AAQDIVWR4RXGI4HPONE2J73QDQ3PDA5CNFSM4IKDKDP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD337QJY#issuecomment-519567399,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQDIVWTK6EVBESV4MR3C53QDQ3PDANCNFSM4IKDKDPQ
.

@daviddickson CocoaPods generates .xcworkspace. It should be used instead of the .xcodeproj file.


What does ['verify' => false] mean in $client = new Mosparo\ApiClient\Client() function

Hello,
I have a question.
What does the ['verify' => false] mean in the function:
$client = new Mosparo\ApiClient\Client($url, $publicKey, $privateKey, ['verify' => false]);

Hi @SuitDeer
The fourth client parameter is an array with the options for the Guzzle client. They are directly passed to the Guzzle Client object in line 220 (https://github.com/mosparo/php-api-client/blob/master/src/Client.php#L220).
With the verify option, you can disable the verification of the server's SSL certificate (https://docs.guzzlephp.org/en/stable/request-options.html#verify). This is useful if you host your mosparo installation on a host with a self-signed SSL certificate. In a production environment, you should not need 'verify' => false usually since you should have a valid SSL certificate there.
Please let me know if that helps you or if you have other questions.
Kind regards,
zepich

Thanks for the fast answer.
Perhaps your explanation of this parameter can be integrated into the README.md of this repository.
I was a little bit worried about this parameter.

Hi @SuitDeer
Thank you very much for your suggestion.
Yes, I agree. I will update the example code and adjust the documentation.
Thank you very much for your help in making mosparo better!
Kind regards,
zepich

Hi @SuitDeer
I've updated the README.md. What do you think?
Kind regards,
zepich

Hi @zepich, the new comments about the Guzzle arguments are good 👍

Hi @zepich, the new comments about the Guzzle arguments are good 👍


result symlink stops buildPythonPackage

Running on the nixos-16.03 channel, I get this problem with buildPythonPackage which I didn't have on nixos-15.09.
I have a Python project outside of nixpkgs with a default.nix which looks something like this:
# put this default.nix into a clone of https://github.com/pypa/sampleproject
{ sampleproject ? { outPath = ./.; name = "sampleproject"; }
, pkgs ? import <nixpkgs> {}
}:

let
  pkg = with pkgs.python35Packages;
    buildPythonPackage rec {
      name = "sampleproject-${version}";
      version = "1.2.0";
      src = [ sampleproject ];
      propagatedBuildInputs = [ peppercorn ];

      # workaround
      #buildInputs = [ (reallyEnsureNewerSourcesHook { year = "1980"; }) ];
    };

  reallyEnsureNewerSourcesHook = with pkgs; { year }: makeSetupHook {}
    (writeScript "ensure-newer-sources-hook.sh" ''
      postUnpackHooks+=(_reallyEnsureNewerSources)
      _reallyEnsureNewerSources() {
        echo "hack hack"
        '${findutils}/bin/find' -L "$sourceRoot" \
          '!' -newermt '${year}-01-01' -xtype l -print -exec rm '{}' '+'

        '${findutils}/bin/find' "$sourceRoot" \
          '!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
      }
    '');

in
  pkg

The problem is, second time I build, it will fail with this message:
these derivations will be built:
  /nix/store/h2056zzy5yf27qhvvd0xnd508maalh7h-python3.5-sampleproject-1.2.0.drv
building path(s) ‘/nix/store/di8plg0vw2kfzimww8vqsxyzkm96m69f-python3.5-sampleproject-1.2.0’
unpacking sources
unpacking source archive /nix/store/qyw10kw3va5j7xlpf1swf6lgh2i781bx-sampleproject
source root is sampleproject
touch: setting times of 'sampleproject/result': Operation not permitted
builder for ‘/nix/store/h2056zzy5yf27qhvvd0xnd508maalh7h-python3.5-sampleproject-1.2.0.drv’ failed with exit code 1
error: build of ‘/nix/store/h2056zzy5yf27qhvvd0xnd508maalh7h-python3.5-sampleproject-1.2.0.drv’ failed

If I uncomment the workaround above, problem goes away.
Considering that symlinks can't be included in the Python Wheel zip file, one solution could be to delete the symlinks in the ensureNewerSourcesHook. Another solution could be to silently ignore errors coming from the touch command.
Cheers

Hmm, do you understand what's causing line touch: setting times of 'sampleproject/result': Operation not permitted

Hi!
It's because the target of the result symlink is in the nix store (/nix/store/1qr1slnjq3i4cd2lmmrh1n4ygqc7m2m1-python3.5-sampleproject-1.2.0) and owned by root user. My nix build is running as nixbld1, so can't touch it.
I also have other symlinks to read-only locations which would also cause problems, even if result were removed.

Oh, and the touch comes from ensureNewerSourcesHook.

Looking at the git history, I think I should cc @vcunat.

Well, I expect we should make the hook refuse touching symlinks, e.g. like this:
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9729e29..c2df1e9 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -264,6 +264,7 @@ let
       postUnpackHooks+=(_ensureNewerSources)
       _ensureNewerSources() {
         '${findutils}/bin/find' "$sourceRoot" \
+          '!' -type l -a \
           '!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
       }
     '');

Would you test it?

@vcunat yes, I just tested that patch and it works. Thanks.

Hmm, although if some python sources contained a symlink, we might get into problems. @domenkozar: any estimate if that's likely to happen?
If it possible, this should be a surer way:
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9729e29..d5381db 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -264,7 +264,7 @@ let
       postUnpackHooks+=(_ensureNewerSources)
       _ensureNewerSources() {
         '${findutils}/bin/find' "$sourceRoot" \
-          '!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
+          '!' -newermt '${year}-01-01' -exec touch -h -d '${year}-01-02' '{}' '+'
       }
     '');

Sometimes people do a symlink README.rst -> doc/index.rst or similar so it might happen.

Hi @vcunat I think touch -h is a good solution. I have tested it and it has the following two properties:

symlinks into /nix/store are ignored and don't appear in the wheel.
symlinks within a project (e.g. symlinked python files) are kept. Both the link target and the symlink appear in the wheel. The symlink becomes a copy of its target.

The effect should be that the symlink itself is touched instead of its target (no removals such as in your work-around). A quick search suggested that Linux and Darwin does support that.

OK thanks @vcunat, so the touch -h option fixes this issue (symlinks to /nix/store), and doesn't break existing usage of symlinks (within python package tree). I think if you committed that change it would close this issue.

Thanks @vcunat @domenkozar


There should be a config option in the renderer to be able to make wolf heads smaller

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
You can do this by making a custom renderer (i made one tell me if youre interested) and register them like an entity, it will override the vanilla renderer.

Hi, I'm not sure this feature is a good fit for this mod, especially considering the baby wolves do not have any of the new functionality introduced to the adult wolves.  However, I will consider supporting any mod that enables this new functionality!
Thanks for the suggestion!


Breaks if html file starts with comment

Breaks if the first line of html is a comment

Having a comment at the start of an html file may be unusual but in this case i have. And when i wanted to format it, the html file code became corrupt.

I could just format and add the comment later, or i could carry comment elsewhere but after all, a bug is a bug and here i am.

Input
The code looked like this before beautification:

  a span

Expected Output

  a span

Actual Output
The  code actually looked like this after beautification:

     a span  <
    /body> <
    /html>

This only happens on http://jsbeautifier.org/, in the the beautifier core.
It is caused by looks_like_html here.


Address Security Issue via node-pre-gyp/tar

This updates the node-pre-gyp dependency and removed the tap devDependency in favour of a very simple test-runner.
Tap used to be OK, but it has since taken on dependencies on everything and the kitchen sink. npm audit shows a security issue with a transitive dependency, which is why I decided to finally get rid of tap here too.

Since there are not code-changes (only tests & packaging) and the tests pass I'll merge this.

Can you explain how upgrading node-pre-gyp fixes the tar security warning (https://github.com/mapbox/node-pre-gyp/issues/446)? Between versions ^0.10.0 and 0.12.0, there is no change in their dependencies, they still only specify tar@^4. If node-pre-gyp were to fix this issue, we would see their tar dependency changed to<EMAIL_ADDRESS>

I believe that because we are bundling node-pre-gyp (for use during installation) that should also bundle tar.
So a simple republish should have done it as well.
For a permanent solution you are right. But that’s as much as we can do for now. I’m monitoring node-pre-gyp for an update to tar.
For an even more permanent solution we should deprecate v1.x entirely thus obviating the need for node-pre-gyp entirely.

Huh, I did an install and it did choose the latest tar version 4.4.8. I guess thats just how npm resolves work. Thanks for the explanation! Lets hope dependent packages follow suit with 2.x as well!


extended to work with alt shells

By adding the same keys to the HKEY_CLASSES_ROOT\Folder\shell\ location and extending the commands with Set-Location -LiteralPath ‘%L'; to move into the directory the command was called from, ytdl-explorer will also work with alternative shells such as Freecommander XE (and presumably also TotalCommander), which call the shell context menu within a folder instead of the directory one.

And of course now I see my c&p error. You'll want to remove the \Background in [-HKEY_CLASSES_ROOT\Folder\Background\shell\YoutubeDL], since I'm not using that particular sub key.


-opengl instruction on Linux Simulator Build

Got this error when following the instruction from readthedocs, looks like -opengl, is not working with the command to run the simulator. Spoke with Pedro about it, sounds like epic is deprecating support for opengl and using vulcan instead, and the patch for this did not work in the most recent build (1.14). Since UE4 does not want to support opengl any longer, we should consider removing this flag from the Linux build instructions

closed with #271


Fix getSubscriptions Android types; add platform enum and tests

Motivation
When I updated react-native-iap to 12.0.3 in my project, I realized that getSubscriptions on Android no longer returns anything resembling what the typings say they do.
Instead, I got back output that was very different on iOS and Android.
    const subscription = {
      subscriptionOfferDetails: [
        {
          pricingPhases: {
            pricingPhaseList: [
              {
                recurrenceMode: 1,
                priceAmountMicros: '49990000',
                billingCycleCount: 0,
                billingPeriod: 'P1Y',
                priceCurrencyCode: 'USD',
                formattedPrice: '$49.99',
              },
            ],
          },
          offerTags: [],
          offerToken: 'dGVzdA==',
        },
      ],
      name: 'MyApp Pro: Annual Plan',
      productType: 'subs',
      description: '',
      title: 'MyApp Pro: Annual Plan (MyApp - Productivity App)',
      productId: 'app_4999_1y_1w0',
    };

Fix

Update the Typescript typings
Since the subscription types are now very different between the different platforms, I updated the logic to add a new additional platform: SubscriptionPlatform field to the returned subscriptions. This allows calling code to switch based on them more easily

Testing

Added an automated test to test the typings
Created an installable branch with the lib and installed it in my own project using yarn add wanderlog/react-native-iap#12.0.3-wanderlog.1
Tested fetching subscriptions on a real Android phone

I realize this is causing some typechecking to fail with the example app so will work on fixing that.

@andresesfm I updated this to fix the typings. I also adjusted the typings for requestSubscription and requestPurchase to use intersection types. I added some comments about how this works.

Thank you for your contributions @hsource


feat: remove event fields exclusion

Pull Request Test Coverage Report for Build 360226753

13 of 13 (100.0%)  changed or added relevant lines in 3 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.02%) to 58.234%

Files with Coverage Reduction
New Missed Lines
%

internal/agent/event_sender.go
1
72.56%

Totals

Change from base Build 359833315:
0.02%

Covered Lines:
11235

Relevant Lines:
19293

💛  - Coveralls


Library unusable : installing problem ?

Hi !
I'm a beginner on Android , maybe it's easy to succes to my problem.
I would like to display every snippets of the markers simultanemously  on the map.
But the library doesn't work....
When I run app I get that :
java.lang.NoClassDefFoundError: com.google.maps.android.ui.BubbleDrawable
at com.google.maps.android.ui.IconGenerator.(IconGenerator.java:60)
at com.easyspaceproject.MapsActivity.onLocationChanged(MapsActivity.java:320)
line 320 : IconGenerator icon = new IconGenerator(this);
Thanks

same problem here
any solution?

Looks like some files have been mysteriously stripped from the 0.4.2 release. I'll push out a 0.4.3 release with everything back in.
In the mean time, you can link the project in via source if you're super keen.

And that's done now. Whenever maven updates with the latest package, your problems should be resolved.
Please comment back here if you find anything else broken - and thanks for the report.


Different behavior between equivalent put-files

I was working with a user with 1.4.2 deployed.    The file is still there.  This is maybe not a huge surprise because the file was potentially corrupted (maybe it was seen as empty and the metadata was left there).  But, just for kicks, we tried:
$ pachctl start-commit metabrepotest master
$ pachctl delete-file metabrepotest <commit id> 025_CRa_H9M5_M470_C03_K1_alternate_neg_high_mr.mzML
$ pachctl finish-commit matabrepotest <commit id>

And it worked!  The file was then missing from the list-file.  It was my impression that these operations were equivalent (i.e., that -c basically took care of the start/finish commit for you).  Thus, I was surprised when I saw a difference in these operations.  Is this expected?

It looks like your first command was trying to delete a file from the closed commit and that's why it didn't disappear. That certainly should have errored if that's the case -- which I think is a known issue.
Unless I'm missing something, delete-file needs to be called in a open commit and does not have any of the sugar that put-file does.

stale


CLIP-guided-diffusion updates

Katherine has released a better notebook for the CLIP-guided-diffusion. Outputs on a P100 is quite slow; but results can be very good. I've put the new notebook in my current repo as the "HQ" version.
Is there any chance of using these concepts for diffusion in a similar way? Main issue I'm seeing is that the output from guided-diffusion is 256x256xRGB rather than 16x16 or 32x32 patches. It's also a much larger checkpoint than the VQGAN and diffusion is sort of inherently tough to reason about in my experience.
https://github.com/afiaka87/clip-guided-diffusion

Here is a link to the original notebook - which may include updates while the method is refined:
https://colab.research.google.com/drive/12a_Wrfi2_gwwAuN3VvMTwVMz9TfqctNj

Thanks for the links, I will give it a try, it would definitely be great to try the same idea there

"diffusion is sort of inherently tough to reason about in my experience." Yes, one difficulty I see here is that if we apply the same kind of idea on diffusion, we would need to backprop through a huge chain (1000 steps in the paper, but I also saw a section about 'optimizing' the steps schedule at test/sampling time, and they could use a different schedule at sampling time from training ) which means it would be hard to optimize

Another thing is, diffusion models are already iterative, so the  "feed forward" aspect wouldn't apply here, we still need to go through all the timesteps to generate the image. The feed forward model could however make sampling much much faster, we could imagine using it to "jump" to a timestep directly from the input prompt, then we can continue the sampling to generate the final image, in this case it would still be helpful. So basically the feed forward model would take an input prompt and generate a blurry image with the general aspect, then we use the diffusion model for the rest of the steps to add the details.

Another thing is, diffusion models are already iterative, so the "feed forward" aspect wouldn't apply here, we still need to go through all the timesteps to generate the image. The feed forward model could however make sampling much much faster, we could imagine using it to "jump" to a timestep directly from the input prompt, then we can continue the sampling to generate the final image, in this case it would still be helpful. So basically the feed forward model would take an input prompt and generate a blurry image with the general aspect of the image, then we use the diffusion model for the rest of the steps to add the details.

Interesting - this is a notion which I asked Katherine about in a discord discussion. She seemed to think finetuning the diffusion checkpoints would be easier perhaps. @crowsonkb would love your input/corrections here btw.
I still haven't taken a deep dive into the guided-diffusion codebase itself; but CLIP-driven is indeed riddled with issues which are present with the VQGAN. There are plenty of efforts to resolve that. One idea was to finetune the guided diffusion checkpoint to introduce a bit more diversity than just ImageNet. I think that's the biggest issue? It's heavily biased towards photos in imagenet; and photorealism more generally. Anecdotally, the more abstract of a caption you use with clip-guided-diffusion; the less likely you are to get a matching result.
Anyway what do you think the feasibility of using a transformer/mlp-mixer to learn good starting timestep embeds for a given caption? If it's not too difficult; it might be worth pursuing.
If you are approaching this from the replication angle ; it's certainly worthwhile to experiment on this (clip guided diffusion, specifically) because they seem to make some claims about how doing so is impractical on their github repo. I think krowsonkb's work has already shown that not to be true however.


update to swatinem/rust-cache@v2

rust-cache@v1 seems to generate some deprecation warnings, so better update to v2.

I wonder why dependabot didn't update this? :thinking:


Make use of Podfile.lock if present?

Just wondering about a possible optimization: When running pod dependencies for the first time, the whole CocoaPods/Spec repo gets cloned, which is taking quite some time. Wouldn't it make more sense to just parse Podfile.lock, if present, esp. if none of the options to create fancy graphics is specified, but all the caller wants is a list of the dependencies printed to the console?

Indeed it would


SSRProvider appends to a string prefix to avoid ID collisions

SSRProvider appends to a string prefix to avoid ID collisions
Closes https://github.com/adobe/react-spectrum/issues/2277
Putting this up as a draft to see if y'all are interested. If so, I'm happy to fix it up.
✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

Does this need a changeset? And if so, would you give this a minor version bump because of the potential for snapshot changes?

Thanks! Yes, we will release this as a minor. We will be doing some testing in the next few days and probably releasing early next week. We'll take care of the version bumps and release notes. In the meantime, you're welcome to use our nightly releases.


Low resolution  of cropped image

Hi,
Nice code
But do you know why the image is alterated with your library (low quality compared to camera resolution)
I am trying to fix it but didnt see yet
Rgds

Hi davemg3,
Thank you for your comment. Because this app is demo app for auto detecting corners of receipt, I reduced resolution of image to handle it more quickly

the autodetection of corner is almost as good as CamCard. Wondering if a change on contrast or using bicolor black and white will not improve the autodetection.
Clean code anyway.


Fixed Deserialization of inherited class with different namespaces not possible with Migration (Issue 612)

:white_check_mark: Build ExtendedXmlSerializer <IP_ADDRESS>-lueiwvfe completed (commit https://github.com/ExtendedXmlSerializer/home/commit/a7044b50ad by @)
Install it by running the following command in Package Manager Console:
Install-Package ExtendedXmlSerializer -Version <IP_ADDRESS>-lueiwvfe -Source https://ci.appveyor.com/nuget/extendedxmlserializer-preview

Problems with the above command? You may be running into this known issue here:
https://github.com/NuGet/Home/issues/7189

:white_check_mark: Build ExtendedXmlSerializer <IP_ADDRESS>-eokcxlhx completed (commit https://github.com/ExtendedXmlSerializer/home/commit/eaa39a2629 by @)
Install it by running the following command in Package Manager Console:
Install-Package ExtendedXmlSerializer -Version <IP_ADDRESS>-eokcxlhx -Source https://ci.appveyor.com/nuget/extendedxmlserializer-preview

Problems with the above command? You may be running into this known issue here:
https://github.com/NuGet/Home/issues/7189

:white_check_mark: Build ExtendedXmlSerializer <IP_ADDRESS>-ghguxgph completed (commit https://github.com/ExtendedXmlSerializer/home/commit/b93ce79a4b by @)
Install it by running the following command in Package Manager Console:
Install-Package ExtendedXmlSerializer -Version <IP_ADDRESS>-ghguxgph -Source https://ci.appveyor.com/nuget/extendedxmlserializer-preview

Problems with the above command? You may be running into this known issue here:
https://github.com/NuGet/Home/issues/7189

Closes #612
Closes #614


Long-term Velero backup retention

Is your feature request related to a problem? Please describe.
Make it possible to configure Velero backup retention for long-term backup storage.
Describe the solution you'd like
An implementation of Velero backup retention according to the designed scheme with daily, weekly, monthly, and yearly retention cycles.
Additional context
Part of larger epic with backup retention.
Definition of done:
A test to confirm that backup retention works for all four durations (day, week, month, and year).

Do we still need this issue, given that we have a more generic multi-retention backup scheme in place? https://github.com/elastisys/compliantkubernetes-apps/blob/main/config/config/sc-config.yaml#L39

I this still relevant?
We have decided for other apps, opensearch etc that apps will not have any feature do the mentioned backup scheme.

I'd put this in the bucket list. @tordsson ?


Enable performance optimisations in verilator

As per verilator documentation:

-O3 Enables slow optimizations for the code Verilator itself generates (as opposed to "-CFLAGS -O3" which effects the C compiler's optimization. -O3 may improve simulation performance at the cost of compile time.

This PR adds a .with_performance_optimizations(bool) to the builder.

Thanks for your PR!


fix(Header): 'mini' size does not work

Document shows 'mini' as a size option. However it does not show the correct text size.

@13colours thanks for report, in fact Header can't be mini.


Add setup app minor changes

I don't want any commits to be made into this repo in regard to the setup_app. Please fork the new repo and send a PR with these changes:
git clone -o getsenic git@github.com:getsenic/senic-home-automation-app.git

Yes, I will send a PR in the new repo with the same changes but I would like to have these changes also on the old app in case it will be used for α-testers.

old setup_app is not present anymore


Fix legacy build

Fixes #13468

With this change, IE users may require a currentScript polyfill. But I have not tested that.


Support Laravel 7

Support Laravel 7

I'm using this package since Laravel 5.3 and I've been upgrading to Laravel 6 without problems but I see that there is no update for Laravel 7, how can I upgrade it.
Please any suggestions?


chore: Bump the default split page concurrency

Verified that this shows a speedup by doing a local pip install and running the following snippet before and after the change:
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

s = UnstructuredClient(
    server_url=SERVER_URL,
    api_key_auth=API_KEY,
    )

filename = "../_sample_docs/layout-parser-paper.pdf"

with open(filename, "rb") as f:
    # Note that this currently only supports a single file
    files=shared.Files(
        content=f.read(),
        file_name=filename,
	)

req = shared.PartitionParameters(
    files=files,
    strategy="hi_res",
)

start_time = time.time()
resp = s.general.partition(req)
end_time = time.time()
print(f"Elapsed time: {end_time - start_time} seconds")

Ah, the tests should pass once this is merged. The integration tests are pulling the latest unstructured-api image and testing requests against it, so we got blocked by the recent docx "None is not a valid mimetype` bug.


Refer to resolve-url-loader as a solution to url rewriting deficit

Refer #144.
Struggled to describe the problem clearly. So please feel free to comment.

Thanks @jhnns!


Latest release - 2.0.0 Native  plugin Network.connection does not exists

Ionic version:  (check one with "x")
[ ] 1.x
[x ] 2.x
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Hello,
I have just upgraded my project with latest release, 2.0.0 and it breaks my existing code ..
Network.connection !== "none"

I am assuming I should replace this line with ...
Network.type !== "none"

Let me confirm please

This issue was moved to driftyco/ionic-native#1005


Allow for generated files

Sorry I'm back
Allows for generated files to be checked by mypy, and for external generated files to be ignored.
I've had this patch since my last PR, but only just got round to writing some tests. This might sound super edge-case and useless, but arose from me implementing this project with protobuf
If for some reason, a generated python file is meant to be explicitly checked, then we handle that case too.

Sorry I'm back

Haha don't apologise! It's awesome to have contributors.

This might sound super edge-case and useless, but arose from me implementing this project with protobuf

Can you expand on this? You were trying to implement this integration's functionality with protobuf?  I don't quite understand.

This might sound super edge-case and useless, but arose from me implementing this project with protobuf

Can you expand on this? You were trying to implement this integration's functionality with protobuf? I don't quite understand.

Yeah! So I'm just trying to type-check some code that implements protobuf, which generates python for data serialization. My BUILD looks something like:
load(
    "@build_stack_rules_proto//python:python_proto_library.bzl",
    "py_proto_library",
)
py_proto_library(
    name = "py_proto",
    deps = ["//configs:proto"],
)
py_test(
    name = "pd3_test",
    srcs = ["pd3_test.py"],
    deps = [
        ":py_proto",
        "//pd3",
    ],
)

Without the added changes, the invoked mypy command is:
external/mypy_integration/mypy/mypy --verbose --bazel --package-root .  --config-file external/mypy_integration_config/mypy.ini --cache-map bazel-out/k8-fastbuild/bin/configs/config_pb2.py bazel-out/k8-fastbuild/bin/configs/config_pb2.py.meta.json bazel-out/k8-fastbuild/bin/configs/config_pb2.py    .data.json python/pd3.py python/pd3.py.meta.json python/pd3.py.data.json python/utils.py python/utils.py.meta.json python/utils.py.data.json python/pd3_test.py python/pd3    _test.py.meta.json python/pd3_test.py.data.json -- bazel-out/k8-fastbuild/bin/configs/config_pb2.py python/pd3.py python/utils.py python/pd3_test.py

and breaks with mypy: can't read file 'bazel-out/k8-fastbuild/bin/configs/config_pb2.py': No such file or directory. I think it's fair that generated file from a dependency should not be typed (same motivation for excluding external sources), so we can just remove it from the command. A clear indication that this file was generated is the fact the path is under bazel-out/k8-fastbuild/bin/ (or darwin-fastbuild for macs I guess, who knows for windows) not relative to the files, so we just filter for that.
However, if for some reason the generated file is included in srcs, it should be typed.
There may be a better way, but this seems reasonable-ish? I could play around with the examples folder if I get time

:thinking: This is starting to look more like a bit of a hack. Let me know if you have other ideas. Fairly certain that bazel uses "/" on windows as well.

However, if for some reason the generated file is included in srcs, it should be typed.

What could that reason be? If it's generated code, it should never be included in the srcs attr of a py_* rule right?

The tests I provided do exactly this: https://github.com/thundergolfer/bazel-mypy-integration/pull/11/files#diff-c40927b6657800717d4b0b498e1bad55R53
Can vs should is an important distinction though. I'd agree it's not good practice, but mypy shouldn't shouldn't break inexplicably.

Additional changes are for compat with https://github.com/thundergolfer/bazel-python-mypy-protobuf/pull/2
Tests pass and the project builds

@thundergolfer Any reason why this can't be merged? The integration is currently unusable in repositories that use Protocol Buffers / gRPC.

If I resolve do you think we can get this in? About 3 years now, and I just ran into this problem again.


Fix for parse error - Issue #134

Conditional operator [[ ]] tests files and strings. To test error codes
returned from command, use if statement directly without any operators.
Credits: @abalabahaha

Makes sense :+1:


Google Takeout Mbox file accessibility

mbox to convert and extract images in message body from uber emails @emmanuel-hestia
the file is here:
https://drive.infomaniak.com/app/drive/193995/files/176122

Please note that the scope is changing, so we should somehow handle both old and new files. If necessary and easier, duplicate the experience to "Uber Driver (2019 extract)" and "Uber Driver".

@emmanuel-hestia what you did is very useful, it would be great to have only the body text with date, subject, sender and recipient, there are symbols that make it hard to read the text, also the accents in French give errors


[QUESTION] is there any way to add a product that has two prices?

For example:
CD Player
price one: 20
price two: 15
The intention is to be able to buy the two products, at this time only the price of the product is updated and indicates that I own 2 products with the same price.
Thanks :smile:

This is not possible in the way the package currently works. Possibily just store the actual price as an option for now?
What’s the use case?

Okay, I'll give you an example: a baseball game.
You have tickets for:

home
center field
left field
right field

These tickets are associated with the same product (match) I want to have the ability to buy multiple tickets.

Hmm okay. In a way it does sound a lot like “options” to me. Not that different from buying the same shirt in different colors or sizes.

Yes, I certainly think that is the alternative but I still do not know how to update the total price of the shopping cart

Why would you want to update the price? Just add the item with the price for each option?

Each ticket has a price
center field = 20
left field = 15
Total cart = 35
This is what I am talking about

Cart::add(‘id1’, ‘Ticket Center Field’, 1, 25.99, [‘location’ => ‘center-field’])
And
Cart::add(‘id1’, ‘Ticket Left Field’, 1, 36.99, [‘location’ => ‘left-field’])
Something like that?

I'm talking about something like this:

If I intend to buy a ticket I can do it
using the same section that I put as an example in the image.

And why would my example not work for you?

Let me test :smiley:

@abr4xas @Crinsane  i'm working now on this nice project and i need put for some items two price any help ?? i would appreciated

@mahdi7abash Retrieve the current cart instance, search and update the product price

@abr4xas  thanks for your reply but i didn't get what you mean .


The protobuf library 0.3.0 memory usage is about 300KB higher than 0.28.0

I'm using the open source repository containerd/rust-extensions. When I use protobuf 0.28.0, the memory cost is about 900KB. But when I use protobuf 0.3.0 or 0.4.0, the momory usage is abot 1200KB.
I used the valgrind memory capture tool to collect the memory of the process, and the result is as follows:

for 0.3.0 or 0.4.0
for 0.28.0

By analyzing the results, I found that the function file_descriptor takes up about 300KB of heap memory. This function is in the end of file /src/descriptor.rs. This function was not available in version 0.28.0.
Also, I found that the Message struct in 0.28.0 became the current MessageFull struct, and when I removed the related dependencies of the messageFull struct in the containerd/rust-extensions project (which of course caused the rust-extensions project to not work properly) I noticed that the memory dropped by about 400KB.
I cannot use Message struct in 0.3.0 because of PartialEq.
The differences between 0.28.0(/src/message.rs) and 0.3.0(/src/message.rs and /src/messagedyn.rs):

0.28.0
pub trait Message: fmt::Debug + Clear + Any + Send + Sync { .....
0.3.0
pub trait Message: Default + Clone + Send + Sync + Sized + PartialEq + 'static {
pub trait MessageDyn: Any + fmt::Debug + fmt::Display + Send + Sync + 'static {
We can see that in 0.3.0 static is used in both the Message struct and the MessageDyn struct, but not in 0.28.0

I wonder what the modification of the Message struct and the addition of file_descriptor functions are? Does it really need to be defined as static? This results in an unusually large memory overhead.

@stepancheg

Version 0.3 is prehistoric. Current version is 3.x.

Oh, sorry. It is 2.28.0/2.27.1 and 3.3.0/3.4.0.