Using DaggerMock with inject() method

Hi! Thanks for a great library, this is going to make my testing much, much easier 😃
I am trying to test a class which has its dependencies configured by Dagger by calling an inject() method on the Dagger component and passing itself in. Does DaggerMock support mocking of dependencies when a class is initialised like this? If so, how should I do this?
In case it isn't clear what I'm asking, here are some relevant code excerpts from my project to illustrate my configuration. This is my first use of Dagger so it's entirely possible I may be misusing it, leading to my current problems.
ListMealsHandler.java - class under test
public class ListMealsHandler implements RequestHandler<ApiGatewayRequest, ApiGatewayResponse> {

    @Inject
    MealRepository repository;

    public ListMealsHandler() {
        final AppComponent component = DaggerAppComponent.builder().build();
        component.inject(this);
    }

    @Override
    public ApiGatewayResponse handleRequest(final ApiGatewayRequest request, final Context context) {
    //other, irrelevant code
    }
}

AppComponent.java - Dagger configuration
@Singleton
@Component(modules = { InfrastructureModule.class, DaoModule.class })
public interface AppComponent {

    void inject(ListMealsHandler handler);
}

ListMealsHandlerTest.java - unit test for handler
@ExtendWith(MockitoExtension.class)
public class ListMealsHandlerTest {

    private static final String USER_ID = "user1";

    @Mock
    private MealRepository mealRepository;

    @Mock
    private ApiGatewayRequest request;

    @Mock
    private RequestContext requestContext;

    @Mock
    private Identity identity;

    @Mock
    private Context context;

    @Named("mealsTableName")
    String mealsTableName = "meals";

    @Named("awsRegion")
    String awsRegion = "eu-west-1";

    @Rule
    public DaggerMockRule<AppComponent> rule = new DaggerMockRule<AppComponent>(AppComponent.class, new InfrastructureModule())
            .set(new ComponentSetter<AppComponent>() {

                @Override
                public void setComponent(final AppComponent component) {
                    component.inject(handler);
                }
            });

    private ListMealsHandler handler;

    @Test
    public void all_users_meals_are_returned() throws Exception {
        final List<Meal> meals = Arrays.asList();
        when(mealRepository.getAllMealsForUser(USER_ID)).thenReturn(meals);

        when(request.getRequestContext()).thenReturn(requestContext);
        when(requestContext.getIdentity()).thenReturn(identity);
        when(identity.getCognitoIdentityId()).thenReturn(USER_ID);

        final ApiGatewayResponse response = handler.handleRequest(request, context);
        final ObjectMapper objectMapper = new ObjectMapper();
        final List<Meal> actualMeals = objectMapper.readValue(response.getBody(), new TypeReference<List<Meal>>() {
        });

        assertThat(actualMeals).containsExactlyInAnyOrderElementsOf(meals);
    }
}

I want to use DaggerMock to provide the values for @Named("mealsTableName") and @Named("awsRegion") because these are defined in InfrastructureModule.java by referencing system variables which of course aren't set in unit tests:
InfrastructureModule.java
package com.mealplanner.config;

import javax.inject.Named;
import javax.inject.Singleton;

import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;

import dagger.Module;
import dagger.Provides;

@Module
public class InfrastructureModule {

    @Singleton
    @Provides
    @Named("mealsTableName")
    public String tableName() {
        return System.getenv("tableName");
    }

    @Singleton
    @Provides
    @Named("awsRegion")
    public String awsRegion() {
        return System.getenv("region");
    }
}

The above configuration gives me a NullPointerException when calling the handler on this line:
final ApiGatewayResponse response = handler.handleRequest(request, context);

How should I set up Dagger/DaggerMock to support what I want to do?
Thanks again for this library and in advance for any help you can offer 😀
Edit
I have just switched to using JUnit 4 instead of 5 to run the tests and I'm getting a different exception from Dagger code, a NullPointerException from the code below:
ListMealsHandler_MembersInjector.java
package com.mealplanner.function;

import com.mealplanner.dal.MealRepository;
import dagger.MembersInjector;
import javax.annotation.Generated;
import javax.inject.Provider;

@Generated(
  value = "dagger.internal.codegen.ComponentProcessor",
  comments = "https://google.github.io/dagger"
)
public final class ListMealsHandler_MembersInjector implements MembersInjector<ListMealsHandler> {
  private final Provider<MealRepository> repositoryProvider;

  public ListMealsHandler_MembersInjector(Provider<MealRepository> repositoryProvider) {
    this.repositoryProvider = repositoryProvider;
  }

  public static MembersInjector<ListMealsHandler> create(
      Provider<MealRepository> repositoryProvider) {
    return new ListMealsHandler_MembersInjector(repositoryProvider);
  }

  @Override
  public void injectMembers(ListMealsHandler instance) {
    injectRepository(instance, repositoryProvider.get());
  }

  public static void injectRepository(ListMealsHandler instance, MealRepository repository) {
    instance.repository = repository; //NPE here
  }
}

From this I can maybe learn two things:

DaggerMock doesn't work with JUnit 5
I'm not setting up Dagger/my tests/something correctly

Any help you can provide on the above would be greatly appreciated!

Hi @stuartleylandcole ,
I have never used DaggerMock with JUnit 5, I'll try to use it soon. Thanks for the report!
Based on your example I think that the problem is that you create the component and inject in the ListMealsHandler constructor. So even in the test you create the real component and use it to inject your object. Then you'll inject it again with the DaggerMock component but it's too late, you have already got the error.
I think you can use something similar to what we do in Android, you can store the component in an external singleton. In ListMealsHandler constructor you can retrieve the component from this singleton and inject the object. From the test you manually replace the real component with the DaggerMock component (you need to pay attention and avoid the real component creation if it's already been set by the test).
Hope this helps you, let me know if it works in this way

hi @stuartleylandcole : Use this library to fix your issue: https://stefanbirkner.github.io/system-rules/
I had exact same issue and found a solution with above mentioned library:
@Rule
public final EnvironmentVariables environmentVariables = new EnvironmentVariables();
environmentVariables.set("KEY", "VALUE");
gradle dependency:
testImplementation 'com.github.stefanbirkner:system-rules:1.19.0'


Implement sessions pool and switch query service client to

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report
Attention: Patch coverage is 0.60241% with 330 lines in your changes are missing coverage. Please review.

Project coverage is 38.43%. Comparing base (f3a504c) to head (6666b19).

Files
Patch %
Lines

internal/pool/pool.go
0.00%
242 Missing :warning:

internal/query/client.go
2.22%
88 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1099       +/-   ##
===========================================
- Coverage   67.35%   38.43%   -28.92%
===========================================
  Files         286      285        -1
  Lines       27997    28142      +145
===========================================
- Hits        18857    10816     -8041
- Misses       8268    16920     +8652
+ Partials      872      406      -466

Flag
Coverage Δ

?

go-1.21.x
39.68% <0.60%> (-29.43%)
:arrow_down:

go-1.22.x
38.42% <0.60%> (-28.90%)
:arrow_down:

integration
?

macOS
?

ubuntu
38.43% <0.60%> (-0.46%)
:arrow_down:

unit
38.43% <0.60%> (-0.55%)
:arrow_down:

windows
?

ydb-23.3
?

ydb-24.1
?

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

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


docs: update examples to use strings

Updates ipfs dep to ^0.38.0 which can take strings as input to ipfs.add - no need to convert to a Buffer first.

How does deployment work for this repo?  Master has all the examples as async/await whereas the live site is still callbacks.

@PedroMiguelSS ping - please can this get merged and released 🙏


Rename Azure API Version setting

Related to #80
Rename the setting 'Api Version' to 'Azure API Version' to clarify its purpose.

src/main.ts

Rename the setting 'apiVersion' to 'azureApiVersion'.
Update all references to 'apiVersion' to 'azureApiVersion'.

src/renderer/views/api.tsx

Rename the setting 'apiVersion' to 'azureApiVersion'.
Update all references to 'apiVersion' to 'azureApiVersion'.

src/openai-api-provider.ts

Update the setting 'apiVersion' to 'azureApiVersion'.
Update all references to 'apiVersion' to 'azureApiVersion'.

src/renderer/types-messages.ts

Update the setting 'apiVersion' to 'azureApiVersion'.
Update all references to 'apiVersion' to 'azureApiVersion'.

For more details, open the Copilot Workspace session.

Please note that this PR is entirely generated by the GitHub Copilot Workspace based on issue #80 😅 Additional attention may be needed.

Hmm, these changes aren't bad, at the moment API Version is only used by Azure, so specifying azure in the code seems okay, but this doesn't fix #80, the package.json should've been updated to show a different setting label.

@Christopher-Hayes you're right, maybe all these files should be updated:
package.json
src/main.ts
src/openai-api-provider.ts
src/renderer/sent-to-backend.ts
src/renderer/types-messages.ts
src/renderer/types.ts
src/renderer/views/api.tsx

Update files to use azureApiVersion instead of apiVersion

package.json: Replace chatgpt.apiVersion with chatgpt.azureApiVersion in the configuration section.
src/renderer/sent-to-backend.ts: Replace apiVersion with azureApiVersion in the sendSetApiVersion function.

For more details, open the Copilot Workspace session.

@coderabbitai review the code changes in this PR.

@coderabbitai can you add the code that is missing in the src/renderer/types.ts file?


⚠ Avatar API Endpoint has degraded performance

In 1e42bbd, Avatar API Endpoint (https://avatar.roblox.com/v1/avatar-rules) experienced degraded performance:

HTTP code: 200
Response time: 1059 ms

Resolved: Avatar API Endpoint performance has improved in c1fc213.


adding the tutorial script unna97/nx_dev_tutorial_script.py

Added the tutorial file for the task mentioned in issue #5

Thanks @unna97! This is great :)


Add an option to control whether reconnect automatically for the redirect signal from server

We have removed the redirect signal and it better be done on the LB layer


In the settings menu, buttons have non friendly behavior

IMO, in the settings menu, the reset button have the effect that the cancel button should have. The cancel button seems to do nothing

I'm assuming reset should revert us back to the 'default' settings (and perhaps the button should be renamed default?), and cancel should undo any changes that haven't been saved?

I agree with you.

This could be changed during the improvement of homepage in 4.1: https://github.com/medInria/medInria-public/issues/446

Solved by https://github.com/medInria/medInria-public/pull/870


Sprint 1 Grading

Grading
All self and peer grading must be completed prior to the Teacher review date(s). Show a direct link to the tangible(s) for each line item.
Sprint 1 Key Objectives
During the sprint, you need to complete all of these key objectives and find and complete supporting hacks that show the level of command you are declaring.
 In this review, pairs should rate each other based on their experience with the person on the line item.
Rank to Ratio (Rank is an integer):

1 = 0.55
2 = 0.75
3 = 0.85
4 = 0.90
4+Mastered-Y = 0.95

Skill
Mastered (Y/N)
Rank (1-4)
Ratio
Notes

Attendance
Y
4
0.9

Work Habits
Y
4
0.9

Behavior
Y
4
0.9

Timeliness
N
2
0.75

Tech Sense
N
2
0.75

Tech Talk
N
2
0.75

Tech Growth
Y
3
0.85

Advocacy
Y
4
0.9

Comm & Collab
Y
3
0.85

Integrity
Y
4
0.9

Organized
Y
4
0.9

Total: 36/44 .818
Average: 3.27

Skill
Mastered (Y/N)
Rank (1-4)
Ratio
Notes

Laptop Verification or Cloud Workspace
[ Y]
4
0.0
Verification by Linux commands notebook

VSCode
[Y ]
4
0.0
Live change code, commit, make, run localhost, test, debug

Show VSCode GitLens
[Y ]
4
0.0
Verify commits, show change, comments, reset to commit, run on old commit

GitHub student_2025 repo
[Y ]
4
0.0
Template create, push changes, verify ID, review analytics

GitHub Pages Actions
[ Y]
2
0.0
Review runs and verify runtime, receive demo

Hacks Tools & Equipment Play
[ N]
1
0.0
Hacks

Hacks GitHub Pages Playground
[N ]
2
0.0
Hacks

Hacks SASS Basics
[N ]
3
0.0
Hacks

Hacks Frontend
[ Y]
3
0.0
Hacks

Pair Programming
[N]
1
0.0
Tangibles that show coop work

Total

0.0

Average

0.0

Learning Habits Table
Review criteria in habits. In this review, pairs should rate each other based on their experience with the person on the line item.
Rank to Ratio
Rank is an integer:

1 = 0.55
2 = 0.75
3 = 0.85
4 = 0.90
4+ Mastered-Y = 0.95

Skill
Mastered (Y/N)
Rank (1-4)
Ratio
Notes

Attendance
[Y ]
0
0.0

Work Habits
[ ]
0
0.0

Behavior
[ ]
0
0.0

Timeliness
[ ]
0
0.0

Tech Sense
[ ]
0
0.0

Tech Talk
[ ]
0
0.0

Tech Growth
[ ]
0
0.0

Advocacy
[ ]
0
0.0

Comm & Collab
[ ]
0
0.0

Integrity
[ ]
0
0.0

Organized
[ ]
0
0.0

Total

0.0

Average

0.0

Positives:

The site is clean, organized, and easy to navigate
I like that you added a page for CSA content and included time tables
Suggestions:
I suggest putting your photos in the about me page into a photo gallery so it takes up less space and allows for user interaction (e.g. scrolling)
You can experiment more with styling and different ways to present your page

Arnav:
Glows:

nice about page
unique color theme
hacks are mostly completed

Grows:

consider adding more java to your about page to make it more interesting and interactive
updating your csa time table would help with organization


Pipx library script

Should support package injection
Should install pipx if not exists
Should install python if not exists

closed by #157


Vectorize ARProcess()

This will allow it to play well with numpyro.plate, among other things

This follows the convention that whenever a multi-dim array is a timeseries, time is the first dimension. One reason for that convention (@sbidari maybe worth noting in #443): By default, numpyro.scan builds by augmenting the first dimension. So since we most often scan over time, this convention will make scans over time have sensible default output.
Adds a bunch of tests for correctness
Adds informative error messages when shapes cannot be broadcast properly
Adds tests for the errors.
Note for PRs such as #443: clearest way to take dot products along only certain axes of a multidimensional array of unknown dimensions appears to be via jnp.einsum. I think we should use it wherever that's the task https://github.com/CDCgov/PyRenew/pull/439#discussion_r1757223924

Since one of the intended use cases of this extension is compatibility with numpyro.plate I wonder if we should do some tests with plates (and more complicated setups like nested plates. I'm not immediately sure that all this will work).

Good point will add

Good point will add

I might even suggest that plate be the only way we do multi-dimensional testing.

Good point will add

I might even suggest that plate be the only way we do multi-dimensional testing.

I wouldn't go that far; we want vectorizations / multi-dim behavior to be as expected outside of plate contexts too, no?


Support Tool calling in llama-box

Tool calling is a key requirement for AI agents. We need to support tool calling.

however vllm not support distribute deploy, llama-box support distribute deploy, but not support Tool calling,
is there any plan to support  Tool calling for  llama-box with distribute  deploy?

There are ongoing work in the llama.cpp upstream and we are keeping track of it.
We are planning to investigate vLLM distributed deployment via https://github.com/gpustack/gpustack/issues/750.

ollama deploy qwen2.5:72b can use tool very well, but using gpustack with llama-box to deploy qwen2.5:72b(downloading source: ollama) can not using tool
I test it on a dify agent app, how to solve it?

It needs to be addressed via https://github.com/gpustack/gpustack/issues/751

We are investigating whether we should support this in llama-box to make it easier for users in most cases.

Verified in main 37cc489, llama-box version v0.0.97
Known issues:
The Granite model failed to use tool calling
Incorrect responses when using toolcalling with a specified seed

Verified in llama-box v0.0.98


[release] fetch tags before checking out

What does this PR do?
Fetch the tags before the checking out.
Why
Otherwise, those tags won't be in the workspace.
See

$ git fetch upstream v1.27.0
From github.com:elastic/apm-agent-java
 * tag                   v1.27.0    -> FETCH_HEAD

:grey_exclamation: Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Reason: Aborted from #2

Start Time: 2021-11-15T16:58:33.183+0000

Duration: 44 min 5 sec

Commit: 9b3e365ea601d3273c3e5c98ed0e052b59edbd29

Test stats :test_tube:

Test
Results

Failed
0

Passed
2300

Skipped
18

Total
2318

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark test.

run compatibility tests : Run the JDK Compatibility test.

run integration tests : Run the APM-ITs.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


Unable to Execute Binary on Mac

Hi,
I am currently experiencing an issue with executing a binary on my Mac laptop.
Binary Name: cdxgen.app
command: open ./cdxgen.app --args -h
Error Message: The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600002f2a070 {Error Domain=OSLaunchdErrorDomain Code=125 "Domain does not support specified action" UserInfo={NSLocalizedFailureReason=Domain does not support specified action}}}
Operating System: macOS,
Can you please point out any mistakes I might be making in this situation?

@ThamizhiniyanPandiyan, I don't think the mac .app is working yet. Best to use the brew version.
brew install cdxgen

@ThamizhiniyanPandiyan, if you're on an m1 Mac, could you test the artifact below and let me know how it looks?
https://github.com/CycloneDX/cdxgen/actions/runs/7715654101/artifacts/1206475337


Failed to change profile to a2dp_sink_aptx_hd

Hi
I installed your script, everything went fine but it seems like I can only use aptx but not aptx-hd. Actually none of those new profiles except the aptx is available.Is this a limitation because I compiled it on Debian testing?
thanks

May you provide me with the logs and output while installing/compiling the codecs?
Quite difficult to say without these information provided ;-)
Best just install again and paste the output here or provide a link to the pastebin service of your choice.

should be fixed with adding the depending dev-package for install


Add gopkg lock go package versions and fix updates with new packages.

Add gopkg lock to the acmev2
Fix vendor/github.com/xenolf/lego/acme/dns_challenge.go:225:13: undefined: dns.ErrTruncated error when using this branch because of an update on the github.com/miekg/dns lib.
Fix also update library errors:

providers/dns/exoscale/exoscale.go
providers/dns/dnsimple/dnsimple.go

@angulito thanks for egoscale. You could pin a version in the Gopkg.toml.

@greut done - also please check that the tests are failing because of errors that I don't know - it seems like the libraries were updated to new versions and maybe the tests are not working well

Interesting but the previous executions for the pipeline didn't work because of I had locally an older version of the dep tool - seems it generates a different gopkg.lock file :)

dep 0.50 introduced a change in the lock format.

yep, I am reading about that, thank you @greut

acmev2 is now master, https://github.com/xenolf/lego/pull/555

interesting - then this PR does not make sense! thank you @greut

@angulito I wish I discovered the base branch earlier.


Reintegrate skeleton-docker into repository

🗣 Description
This PR would reintegrate the cisagov/skeleton-docker skeleton into this repository.
This was done by adding the correct skeleton repository as a remote, pulling from its develop branch, and resolving any conflicts shown.
git remote add skeleton https://github.com/cisagov/skeleton-docker.git
git remote set-url --push skeleton no_push
git pull --allow-unrelated-histories skeleton develop
git status

After skeleton was merged, fixed pre-commit issues that showed up.

💭 Motivation and Context
When this project was created, it was not started using the skeleton tool This prevents the lineage GitHub Action from automatically generating PRs to ensure downstream repositories are kept up-to-date.

🧪 Testing
Automated tests pass.

📷 Screenshots (if appropriate)
🚥 Types of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (causes existing functionality to change)

✅ Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

@dav3r Can you setup with repo to allow access to organization secrets?

@dav3r Can you setup with repo to allow access to organization secrets?

Done!


Allow rank=0 in Coregionalize kernel.

Currently, Coregionalize kernel's implementation requires rank > 0. Sometimes we know that outputs are independent and don't want to find the correlation of outputs. So allowing rank = 0 is equivalent to allowing components = None and we won't use it in the forward pass. This also helps reduce the number of parameters for this kernel.

I just looked at the implementation of Coregionalize kernel and saw that letting rank = 0 just make things complicated. Rather than that, users can easily obtain the same behavior by fitting components to 0 tensor. Hence I close this issue.


Remove version: Jackett.Jackett version 0.21.481

404 - release deleted
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/Jackett/Jackett/releases/download/v0.21.481/Jackett.Installer.Windows.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 918)


Add use disconnect

Previous implementation fixed simultaneously both disconnect function and client tracks problem. Now, jumping between rooms rests client sent tracks, they are still recieved nonetheless.

Receiving track does not save it's state (radio button pressed, opened metadata panel) especially the first one is not desirable behaviour. I suggest switching React state to an atom, like this:
const activeSimulcastAtom = atomFamily((id) => atom(""));
And then
const [simulcastReceiving, setSimulcastReceiving] = useAtom(activeSimulcastAtom(trackId));


amazing python scripts: add website status checker

Description
This script will check the status of the web address which you will input
Fixes #320
Have you read the Contributing Guidelines on Pull Requests?

[X] Yes
[ ] No

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Documentation Update

Checklist:

[X] My code follows the style guidelines(Clean Code) of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md
[X] My documentation follows Template for README.md
[X] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

ok sure

pushed

@all-contributors please add @hpnightowl for code and documentation


backport 2.5x ModuleDescriptorMemoryCache thread safe fix to 2.4.x

backport 2.5x ModuleDescriptorMemoryCache thread safe fix to 2.4.x.
2.4.x still use by Jenkins today, GROOVY-10215.

Hello @phang98, we don't have any plans to do any more 2.4.x releases, neither do we have a separate 2.4.x branch. We intentionally moved to Java 7 as a requirement for 2.5.0 Ivy as we don't plan to support lower versions of Java anymore.


Glitch with short paths with wide stroke.

This is an issue that came to our attention in a Flare bug report:
https://github.com/2d-inc/support/issues/244
The glitch occurs when a short path is stroked. This can occur when animating the trim of a path in Flare.
Here's a repo with more details and example code in pure Flutter which exhibits the issue:
https://github.com/luigi-rosso/flutter_trim_path_244/blob/master/README.md
Looks like it's related to how Skia extrudes the stroke of a path.

@luigi-rosso Thank you for the report! I think It would make sense to file the issue to https://github.com/dart-lang/sdk/issues as well and paste the link here. extractPath is in the dart:ui lib which is just used by flutter.

Does this only happen on specific devices or versions of Flutter?
I tried the sample app with the current master branch of Flutter on some Android devices (Moto G4 and Nexus 5x).  For the metric.extractPath(0, 0.00002) case I did not see anything rendered on the screen.
metric.extractPath is a thin wrapper over Skia's SkPathMeasure::getSegment.  The Skia team may have more info about how this API behaves in edge cases.

It does seem to behave differently on different devices. For example, on my iPhone X, I could see it at 0.00002, on my Nokia 6 at 0.00003, and on my 11 Pro I had to animate it to see it flash every once and a while. Video here.
I see it in debug, release, and on different Flutter channels (master, dev, and stable).
Updated example_renderer.dart with animation code below:
import 'dart:ui';
import 'animated_procedural_shape.dart';

class ExampleRenderer extends ProceduralShapeRenderer {
  @override
  void advance(double elapsed) {}

  double v = 0;
  @override
  void render(Size size, Offset offset, Canvas canvas) {
    Path path = Path();
    path.addOval(
      Rect.fromCenter(
        center: Offset(offset.dx + size.width / 2, offset.dy + size.height / 2),
        width: 200,
        height: 200,
      ),
    );

    // Trim by computing metrics...
    PathMetrics metrics = path.computeMetrics();
    PathMetric metric = metrics.first;
    // ... and then extracting the path.
    //Path trimmedPath = metric.extractPath(0, metric.length / 2);
    // PathMetric metric = metrics.first;
    v += 0.000001;

    Path trimmedPath = metric.extractPath(0, v);
    // // Path trimmedPath = metric.extractPath(0, 0.0003);
    // Path trimmedPath = metric.extractPath(0, metric.length/2);

    ParagraphStyle style = ParagraphStyle();
    ParagraphBuilder b = ParagraphBuilder(style);
    b.addText("End: ${v.toString()}");
    Paragraph p = b.build();
    p.layout(ParagraphConstraints(width: size.width));
    canvas.drawParagraph(p, offset);
    canvas.drawPath(
        trimmedPath,
        Paint()
          ..style = PaintingStyle.stroke
          ..strokeWidth = 150
          ..color = const Color.fromRGBO(255, 255, 255, 1));
  }
}

Tried the new version of example_renderer.dart on a Moto G4.  I can see the rendering error occurring for many values of v.
Also tried running this on a build of Flutter from a year ago.  It looks like Skia has had this behavior for a long time.

@jason-simmons Do you have a reduced test case in the Skia debugger? Will followup with the Skia team.


A live preview?

Do you think you could maybe create a live demo in which I could click around? (It doesn't even need to allow me to add links.) I'd like to try it out, but haven't been able to get it running myself.

Hey Ladislav,
Crestify is available as a hosted service at
https://www.crestify.com/register
You can use the invite code fb to create an account on it. If you'd
rather not host Crestify yourself, we've got this option for you :)
On Tue, Apr 18, 2017, 2:17 PM Ladislav Benc<EMAIL_ADDRESS>wrote:

Do you think you could maybe create a live demo in which I could click
around? (It doesn't even need to allow me to add links.) I'd like to try it
out, but haven't been able to get it running myself.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/crestify/crestify/issues/16, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEWWYloR-KJeSJoa4V1dQdVlswA8RMV4ks5rxHiSgaJpZM4NADHd
.

Thank you. If it's linked somewhere in this this repo, I'd completely missed it, sorry.
For now, this is perfect, thanks.
If I end up using Crestify, I'd probably be interested in self-hosting, though. One of the reasons I'd started writing a similar tool myself is that I'd like to have all of those data in local copies. (I didn't get as far as you did, though, and my approach was quite different.)

I don't think it's linked in the repo as yet. I'll add it soon.
We are open to new ideas, since the goal is to create the perfect bookmarking tool. Before Crestify, I had to use multiple tools to achieve the setup I wanted, which was inefficient and imperfect. Crestify exists to make sure no one has to do that again. What would you like Crestify to have that would make you want to switch to it?
Also, since you were working on something similar yourself, you could contribute to Crestify and work on the features you're interested in. Would be happy to help you out in any way :)

Yeah, I think I understand where you're coming from. I have my links spread over various services. I do export those into a local backup, but that doesn't help with link rot. That's why I started writing my own thing (in Py3).  But it's conceptually quite different - I wanted it to be a single app that I can just pip install, and have everything indexed in a local (SQLite) database. The main thing that puts me off from Crestify is the setup itself - it seems to have way more components than necessary. (Please, don't read that as an attack on your design; just that I made a design choice differently.)
However, maybe Crestify will convince me, after I've played with it a bit; if that were the case, I might try to contribute, since my mini-project would get killed immediately.

I think the architecture could be worth looking into. So far, we've got:

Postgres
RabbitMQ
Redis
PhantomJS
libxml

RabbitMQ is used as our async job queue, and we've got jobs for archiving the bookmarks in the background, to fetching their readable content, to running bookmark imports (sometimes they can take minutes).
Redis could be eliminated. The only reason it is used is to hold tab saves for 10 minutes after they're added. We send the data to our server, and then open a Crestify page where they can name the tab collection. Since we couldn't open this URL with a POST request, we resorted to this hack. Oh, and because I wanted to use it for something :P. But Redis is one thing that can be reasonably eliminated from the stack.
We need PhantomJS, because as more and more pages become increasingly dynamic, it becomes futile to just wget them on the server. You will end up with a link to a JavaScript file and a CSS file, but not any actual content. So we need to execute these pages on the server like a browser would, waiting for some time for scripts to execute and populate the content of the page, for which we use PhantomJS.
libxml is another dependency that has to be installed. We use lxml with BeautifulSoup to parse the pages and extract content from them, like for the reader view feature.
Supervisor is also mentioned in the install docs, but for running locally, rather than production, it can be safely ignored.
We also use Fabric for deploy and install automation, which comes with dependencies of its own. And for the Vagrant image, you would need Vagrant and VirtualBox installed. But those are really only needed if you go the automated install way.
Crestify started out as the service you see running at crestify.com, and it was open sourced later. So that has lead to the architectural decisions we went with.
If there is anything in here that does not make sense, anything you can provide your input on, any way you think Crestify could be made better, I'm very happy to hear you :)
As for the issue, I'll keep it open until I mention the hosted service in our docs.

is there still a live preview available? registering with the code "fb" doesnt seem to work anymore? i get no email with instructions

The live preview had to be taken offline. There was a billing mishap with our host, and they haphazardly deleted the instance before we could resolve the issue. There's still a backlog of issues to resolve before a live preview can be brought back online. I'll go ahead and close this issue for now.


Added an IE11 flexbox bug

IE11 will not apply flexbox on pseudo-elements
https://connect.microsoft.com/IE/feedbackdetail/view/1058330/ie11-will-not-apply-flexbox-on-pseudo-elements

Thanks!


[now dev] WIP Better logging while building and error recovery

Have the builder exit if a rejection occurs
Respawn the builder upon next rebuild after the builder has exited
Log when builder is starting and completed with build time
Render build error in the HTTP response

TODO:

[ ] Verify ora spinner is shown only on initial builds
[ ] Verify feedback is shown regarding building and build errors with and without --debug

Codecov Report

Merging #2244 into canary will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           canary   #2244      +/-   ##
=========================================
- Coverage     4.5%   4.48%   -0.02%
=========================================
  Files         246     246
  Lines        8992    9022      +30
  Branches      980     983       +3
=========================================
  Hits          405     405
- Misses       8564    8594      +30
  Partials       23      23

Impacted Files
Coverage Δ

src/commands/dev/lib/dev-builder.ts
0% <0%> (ø)
:arrow_up:

src/commands/dev/lib/dev-server.ts
0% <0%> (ø)
:arrow_up:

src/commands/dev/lib/builder.js
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


split to cmd package and library

I think that idea is cool, but can you split to library and cmd packages? For easy integration with own app?

Thanks for your feedback,  regarding your opinion, there is already a library which we're using in the core of smtp2http called go-smtpsrv it is a library for creating smtp servers.
If you have another case,  just tell me


logging.config=uri of config server??

I have config server which uses serving plain text feature and returns config.xml file, but when I use it as ### (logging.config=http://localhost@localhost:8887/foo/development/master/configuration) it gives ERROR Error parsing http://localhost:8887/foo/development/master/configuratio org.xml.sax.SAXParseException; systemId: http://localhost:8887/foo/development/master/configuratio; lineNumber: 11; columnNumber: 5; The element type "link" must be terminated by the matching end-tag "".
Basically I want my config server to serve config.xml file and consumer application should pick that format for logging...

Are you missing the n in configuration?

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.


Enhance Beeminder integration to allow datapoint input

I'd like to be able to input datapoints for my Beeminder goals via the Zulip-Beeminder integration.
This is a followup to #1515 which has API resources, use cases, and format and sample data suggestions. We also discussed the data format on chat.zulip.org.

@brainwane I'm on it, I've already opened a WIP PR #307 for it in python-zulip-api..

@zulipbot claim


Restructure pages to use shared code for headers and footers and useful things like that

Just wanted to let you know this is going to be a MAJOR upgrade. We may want to pause updates until this is done. I should be able to finish over weekend of 4/3 & 4/4.

Okay. Let me know if/when you want help testing it.

Resolved by https://github.com/melindamorang/blowyourfaceoff/pull/116


[Relay][VM] Support execution on devices

Add copy in various places to device so we can execute on GPU.
cc @icemelon9 @zhiics @jroesch

Can we just merge test_vm and test_backend_vm together?

Thanks @wweic @zhiics


chore: release v0.6.16

:robot: I have created a release beep boop
0.6.16 (2024-04-01)
What's Changed

fix(scripts): unblock downloads of new arm64 on linux target by @coffeebeats in https://github.com/coffeebeats/gdenv/pull/224
fix(scripts): correct compound condition syntax by @coffeebeats in https://github.com/coffeebeats/gdenv/pull/226
fix(store): use a file copy in store.Add to support different device volumes by @coffeebeats in https://github.com/coffeebeats/gdenv/pull/228
chore(deps): bump tj-actions/changed-files from 43 to 44 by @dependabot in https://github.com/coffeebeats/gdenv/pull/227
fix(store): fix regression so that store.Add correctly handles directories again by @coffeebeats in https://github.com/coffeebeats/gdenv/pull/229

Full Changelog: https://github.com/coffeebeats/gdenv/compare/v0.6.15...v0.6.16

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/coffeebeats/gdenv/releases/tag/v0.6.16 :sunflower:


Hanging on "Just a sec..."

I'm using microg for YouTube vanced, the issue is when trying to log into my account and after accept, it stays on "Just a sec.." sometimes it'll say "Sorry.."  Tried every variation of microg that I could in conjunction with different variations of the YouTube app, I removed the email from account just in case there MIGHT be a conflict and I cleared catche via TWRP, all of that failing I restored the whole phone and that only provided a temporarily resolution before discovering I got signed out and the problem happened again. I can't figure out what I'm doing and I toggled both being installed on external and internal storage. I really need some assistance here. I tested this on other applications that use microg and that had the same result.

Rom version? Under i9100 device with android 8.1 I can login using build .111

I'm actually having this same exact issue, this was the only place I've found where someone was experiencing this
I have two accounts that wont log in, they hang on "Just a sec"
But any other account I've used works
I don't have any other devices to try them on and I have tried all the things OP tried
I signed out of the two accounts on the actual google app as well


Write regex to match correct messages

Messages in the specified channels must have an [<SUMMARY>] part in it. This part needs to be found via a regex and checked for the correct lenght. Length is specified in the SUBJECT_MAX_LENGTH environment variable and has to be added as an attribute during instantiation of the bot class.

Solved with f8c65ee00936cb9ae17de0ebea5dbc991dea5f9b.


I need Value Formatting & Validation

Hi,
I need Value Formatting & Validation
If they don't work already somehow I'll try to add them and submit a PR
thanks

@ajoslin103 validation is built in. the required prop works out of the box, anything more complex you can drop in with the validation prop which is https://github.com/dohomi/react-hook-form-mui/blob/master/src/TextFieldElement.tsx#L7 same as the rules prop. I might should rename validation => rules or create an alias

You can use your own onChange handler for formatting or you can pass other Material-UI change handler.

Thanks for your replies, I appreciate your time!
I've been drilling into the code starting with yours and tracing types and can't figure out how to use validation to call a function.
I have figured out how to use the inputProps to add an onChange, but I can't figure out how to change the value in the form.  Using the InputProps to add an onChange worked to change the value in the form, but then the form value is considered empty (even tho it then shows the formatted value)

Here is a huge collection of examples:
https://github.com/react-hook-form/react-hook-form/tree/master/examples
You can set validation prop which is the same as rules of react-hook-form. I hope you find an example which suits your usecase

thanks for the pointer - I'll suss it out

working!!


useUTC for datetime scales seems not to work with Safari

Hi,
useUTC=false for datetime scales seems not to work with Safari (Os X and IPhone)
Here a sample diagram:
https://gist.github.com/anonymous/16efe20dd5f69587af08
With Safari browser a time offset is shown.

Hi
I'm sorry for the late reply.
The Safari browser has a bug in Date.parse. Please specify the timezone for your date values. For example: new Date('2015-07-15T07:07:00.000Z')

Tanks for reply. Didn't know that there is a bug in Safari browsers.
Your suggestion works for me.
Thx


Why is it so slow

I like that this gem is more recent and works with XLSX and has better documentation
But why is it so ridiculously slow compared to 'spreadsheet' ?

@westonganger: I have no idea what spreadsheet is, but for one guess I can give you is because whatever that gem is, it, unlike rubyXL, does not support the full XLSX DOM model.

spreadsheet is the biggest ruby spreadsheet gem. I didnt do any benchmarks but just to let you know that in the time it took to do 2 lines in rubyXL, spreadsheet did 430.
It may be advantageous to look at their source code for any speed improvements

time it took to do 2 lines in rubyXL, spreadsheet did 430.

rubyXL works with xlsx files (open OOXML format: https://en.wikipedia.org/wiki/Office_Open_XML). spreadsheet works with xls files (proprietary MS Excel format: http://www.digitalpreservation.gov/formats/digformatspecs/Excel97-2007BinaryFileFormat(xls)Specification.pdf). Surprise surprise, binary stuff works faster than XML! Next time, please ensure you compare apples to oranges.


feat(DIA-559): reorg settings screen sections

This PR resolves DIA-559
Description
Reorganize the Settings screen links.

PR Checklist

[ ] I have tested my changes on iOS and Android.
[ ] I hid my changes behind a feature flag, or they don't need one.
[ ] I have included screenshots or videos, or I have not changed the UI.
[ ] I have added tests, or my changes don't require any.
[ ] I added an app state migration, or my changes do not require one.
[ ] I have documented any follow-up work that this PR will require, or it does not require any.
[ ] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

feat: reorganise the settings screen(ff hidden) - araujobarret

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Cross-platform user-facing changes (feat: reorganise the settings screen(ff hidden) - araujobarret)

  Generated by :no_entry_sign: dangerJS against 99a40f80e7c66ee208cbbc5102a6a9425e48cbe2


Set imagemagick to read pdfs and add homarus config for etracting fra…

…mes using ffmpeg
Part of https://github.com/Islandora-CLAW/CLAW/issues/1111
Test with https://github.com/Islandora-Devops/claw-playbook/pull/105

@seth-shaw-unlv This is also good to go as part of Islandora-CLAW/CLAW#1111


Sensor combination for outdoor SLAM

Hi Guys
I want to use a combination of RGB-D and Velodyne 16 Lidar for outdoor SLAM project.I don't know if
an IMU is neccesorry to make sure this combination have enough real-time ability and accuracy in practice?
Many thanks in advance!
Hongkunlong

Hi Hongkunlong,
We currently don't have a good story for RGB-D data. The naive approach of converting that to a (uncolored - discarding RGB) point cloud and feeding it into cartographer seems to generate unsatisfactory results (I hear - I haven't tried myself). I filed #545 since RGB-D data is a popular request, but I can't promise when we will have time to address this.
Are you planning to run our 2D or 3D pipeline, i.e. do you want a 2D or 3D map at the end?
Cheers,
Christoph

Closing as this issue is not actionable for us.


JavaScript Group Project

https://github.com/Leeoasis/JavaScript-Group-Capstone/projects/1
There are two people in our group i.e Leslie and Ismail Munyentwari.

Required Changes ♻ ⚠ 🚦
Hi @Leeoasis,
Good job so far!
You still need to work on some issues to go to the next project, but you are almost there!

Aspects to improve ♻

[x] Check the comments under the review.
[ ] You added the cards to the Kanban board correctly, but you did not assign any student to any of those cards. Kindly assign students A and B to the corresponding cards in the Kanban board as the project required. See the example below:

Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think the code review was unfair, you can request a second opinion using this form.

Hi Team,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights 💯

Descriptive info ✔
Tasks distributed equally ✔

Optional suggestions
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Add unzip to nightly 5.7 Dockerfile

https://github.com/apple/swift-docker/pull/300/

cc: @fabianfett

woohoo 🙌

I will follow up with new PR to sort them.


Metrics branch for storing JSON metrics to use from mongodb

All Submissions:

[X] Have you signed our CLA?

duplicates #1268


[screenwavemedia] fix info extraction

it should fix the problem in this issue https://github.com/rg3/youtube-dl/issues/6270
youtube_dl.utils.RegexNotFoundError: Unable to extract vidtitle;

and for this also https://github.com/rg3/youtube-dl/issues/3766

For http://cinemassacre.com/2015/07/28/avgn-seaman-for-dreamcast/ only the m3u8 downloads work, maybe we should default to it (that's what their Flash player use in Firefox).

currently the download of direct files is currently better(speed) than downloading from m3u8 or f4m.
if it's realy necessarily to remove the direct links, i will made the change.
youtube-dl -F http://cinemassacre.com/2015/07/28/avgn-seaman-for-dreamcast/
[Cinemassacre] avgn-seaman-for-dreamcast: Downloading webpage
[ScreenwaveMedia] Cinemassacre-55b29f38c3494: Downloading player webpage
[ScreenwaveMedia] Cinemassacre-55b29f38c3494: Downloading playerconfig webpage
[ScreenwaveMedia] Cinemassacre-55b29f38c3494: Downloading m3u8 information
[info] Available formats for Cinemassacre-55b29f38c3494:
format code  extension  resolution note
meta         m3u8       multiple   Quality selection URL
64           m3u8       0x0          64k
205          m3u8       176x144     205k
300          m3u8       320x160     300k
750          m3u8       640x360     750k
1650         m3u8       1280x720   1650k
6            mp4        144p
7            mp4        160p
8            mp4        360p
9            mp4        720p       (best)

Cherry picked in fa7a1cc5ef52a8dd9a355ab37a74be55ac2ddc1f, thanks
For the 403 error: using the IP provided in the player data fixes it (9cc93c64aa321260475a2bdf7d8626cdd16bf8ad).


It would be nice to have a stream of pristine/dirty state.

I want to enable disable save button if form is pristine.
I submit the data to backend after that I can mark the form as pristine again and make some UI changes.
Show different buttons etc.

Hey @vasilich6107, nice suggestion. I will look into it, or if you already have a PR let me know.


Game not running Pop!_os 20.04 (ubuntu) - docker image (GPU version)

I am trying to run the game through the docker image (GPU version) as stated here but in return I'm getting the following error:
root@979db0a4034e:/gfootball# python3 -m gfootball.play_game --action_set=full
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
No protocol specified
No protocol specified
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
Couldn't load GL function glBegin: Video subsystem has not been initialized
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_Z16print_stacktracev+0x25)[0x7f1d09249a65]
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_ZN7blunted16OpenGLRenderer3D21CreateContextInternalEiiibb+0x1152)[0x7f1d0937fff2]
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_ZN7blunted16OpenGLRenderer3D13CreateContextEiiib+0x42)[0x7f1d09382192]
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_ZN7blunted14GraphicsSystem10InitializeEbii+0x193)[0x7f1d09347403]
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_Z8run_gamePN7blunted10PropertiesEb+0x78)[0x7f1d09250f68]
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_ZN7GameEnv10start_gameEv+0x24b)[0x7f1d0929473b]
/usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so(_ZN5boost6python7objects23caller_py_function_implINS0_6detail6callerIM7GameEnvFvvENS0_21default_call_policiesENS_3mpl7vector2IvR14GameEnv_PythonEEEEEclEP7_objectSH_+0x35)[0x7f1d0926ba55]
/usr/lib/x86_64-linux-gnu/libboost_python3-py36.so.1.65.1(_ZNK5boost6python7objects8function4callEP7_objectS4_+0x285)[0x7f1d08b30855]
/usr/lib/x86_64-linux-gnu/libboost_python3-py36.so.1.65.1(+0x21a18)[0x7f1d08b30a18]
/usr/lib/x86_64-linux-gnu/libboost_python3-py36.so.1.65.1(_ZN5boost6python21handle_exception_implENS_9function0IvEE+0x73)[0x7f1d08b373b3]

Some info about my system:

Looks like you don't have DISPLAY exposed and the game can't do on-screen rendering. Please give 2.8 version a try which supports off-screen rendering. Hope that works for you. Please reopen if not.


How to transform the following script to flowchart? - open discussion

a = 1
if a equals to 1
{
	// do some step(s)
	snap page
}
else if a equals to 2
{
	// do some other step(s)
	snap page
}
else
{
	// do some other steps(s)
	snap page
}

// natural language version of a for loop
for n from 1 to 3
{
snap page
}

Hi @githubcyc TagUI doesn't have this feature now, but a flowchart view is something that is being considered on its roadmap. Are you aware of any NodeJS or Python based solution that can convert a script with conditions and loops into a flowchart? Thanks in advance for sharing your thoughts!
Copying @siowyisheng who will be taking over this project and implementing future releases.

I know that Node-RED seems like an often-used open-source solution for creating apps that requires flowchart editing - https://nodered.org / https://github.com/node-red but not sure how an automated conversion can be done. I think it probably involve identifying a flowchart viewer and protocol, learning how the data is represented and perform a conversion.

This will be a possible feature in the IDE.


Add dpmpp_sde and dpmpp_2m_sde schedulers(with karras)

Added sde schedulers.
Problem - they add random on each step, to get consistent image we need to provide seed or generator.
I done it, but if you think that it better do in other way - feel free to change.
Also made ancestral schedulers reproducible, this done same way as for sde scheduler.

Am I understanding correctly - inside SDE schedulers, they use RNG to determine the... time steps?

Am I understanding correctly - inside SDE schedulers, they use RNG to determine the... time steps?

No, they use noise to generate output


Issue with next() not ending a function

Hi there - great job on this. I believe there is a definite need for a middleware-type plugin for vue-router. I know for my uses, I need something like this.
In attempting to use it, I'm finding an issue with a pretty simple example - maybe you can take a look and let me know if I'm using it correctly.
I, like a lot of people looking to use a plugin like this, want to run what basically amounts to middleware. When one middleware is done, the next one in line runs. Based on your instruction, by using next() with something else other than undefined, then it should stop the middleware function right there in place and not proceed futher.
I'm finding that the middleware function code is still continued after the next(true) or next({name: 'before'}). What's good is that middlewareTwo is never called, but the middlewareOne function should never print the second console.log. See below:
// Middleware functions
const middlewareOne = function(to, from, next) {
    console.log('top of middlewareOne')

    // Either one of these produces the same result
    next(true)
    /// next({name: 'before'})

    console.log('bottom of middlewareOne')
}

const middlewareTwo = function(to, from, next) {
    console.log('top of middlewareTwo')
    next()
    console.log('bottom of middlewareTwo')
}

// Route def
{
    path: '/',
    name: 'home',
    component: Home,
    beforeEnter: multiguard([middlewareOne, middlewareTwo])
},

In the both versions, the console produces:
// console
'top of middlewareOne'
'bottom of middlewareOne'

Shouldn't bottom of middlewareOne never get printed? Thank you.

Hi @johndatserakis ,
This is expected - next() is just a callback - it does not terminate function execution (that's just how JavaScript works). It will, however, NOT call the next guard in line if next() is called with an argument other than undefined, as you've already seen.
Usually you should just call next() at the end of your function or async/promise chain. It doesn't really make much sense to do anything after it.

You can always use return; or return next(); if you want it to be obvious why you are using it :)

Thanks - return next() actually does exactly what I was looking for, and if I don't pass anything in return next(), it goes to the next middleware. Looks good, thanks.


Can sysbox with systemd as ENTRYPOINT execute the other command after container start?

I need to run the docker container with systemd as PID 1 it means as ENTRYPOINT so I follow nestybox Dockerfile from here https://github.com/nestybox/dockerfiles/blob/main/ubuntu-bionic-systemd/Dockerfile but in this case, I need to run the custom bash script after container start but it doesn't execute the command:
FROM nestybox/ubuntu-bionic-systemd:latest
...
...
CMD [";docker-entrypoint.sh" ]

If I check the process list inside the container, systemd successfully loaded but docker-entrypoint.sh not executed.
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  77412  8352 ?        Ss   09:51   0:00 /sbin/init --log-level=err ;docker-entrypoint.sh
root       262  0.0  0.1  78476  9452 ?        Ss   09:51   0:00 /lib/systemd/systemd-journald
root       394  0.0  0.0  45012  3604 ?        Ss   09:51   0:00 /lib/systemd/systemd-udevd
systemd+   548  0.0  0.0  70656  5096 ?        Ss   09:51   0:00 /lib/systemd/systemd-resolved
root       759  0.0  0.0  28352  2712 ?        Ss   09:51   0:00 /usr/sbin/cron -f

NOTE: the script contains to initialize the data and other stuff.
So I need systemd to run in my gitlab-runner docker image and use docker inside it, any suggestion?

@myugan, right, systemd never returns so that's why your custom entry-point is never executed, this is an expected behavior.
The usual best-practice in this case is to create a custom systemd service that handles all your initialization scripts. We just added this example as a reference.
Hope that helps.

@myugan, please let me know if the above approach was useful. If that's the case please close this one when have a chance.

Thankyou @rodnymolina it's very useful to know it.

Will close now. Let us know if any other question on this matter.

Hi, @rodnymolina I found another issue when running systemd as entry point from sysbox Dockerfile examples.
ENTRYPOINT ["/sbin/init", "--log-level=err"]

The issue is docker cp can't copy the file from the host into /tmp directory inside a container, did you know about this? because I tried with Ubuntu image and the cp command works finely to copy the file into /tmp directory instead of using systemd when the container starts

@myugan, can you please copy/paste the instructions that you are referring to?

This is the following command i used:
docker run -d --name demo -it nestybox/ubuntu-bionic-systemd:latest
echo "hello world" > hello.txt
docker cp hello.txt demo:/tmp
docker exec demo ls /tmp

@myugan, i was able to reproduce the issue. Problem is related to the fact that "/tmp" is created as a tmpfs mount in the systemd scenario. Will take a closer look to the issue asap. As an obvious workaround, please make use of any other folder to copy files to within the sys container.
Also, it would be great if you could file a new issue with this new problem you have encountered, as this is different from your original question.
Thanks again for reporting this issue!

@myugan, just fyi, we just fixed this secondary problem that you reported as part of this issue ("/tmp" directory handling). The fix went in as part of sysbox-runc PR #20. You should be able to make us of /tmp as you see fit.

@myugan, right, systemd never returns so that's why your custom entry-point is never executed, this is an expected behavior.
The usual best-practice in this case is to create a custom systemd service that handles all your initialization scripts. We just added this example as a reference.
Hope that helps.

This link is broken, interested in seeing how to use sysbox with systemd inside of nested containers

@myugan, right, systemd never returns so that's why your custom entry-point is never executed, this is an expected behavior.
The usual best-practice in this case is to create a custom systemd service that handles all your initialization scripts. We just added this example as a reference.
Hope that helps.

This link is broken, interested in seeing how to use sysbox with systemd inside of nested containers

@DPatrickBoyd, this is the new link. Hope it helps.

@DPatrickBoyd, this is the new link. Hope it helps.

There are some problems with this approach.
To start with the given custom code has some errors.
The the service does not have access to the environment variables of the container.


How to secure SPQ users: Improved grammar and updated image file links.

#sign-off

@stevemunk - since we cannot view staging, you will need to follow-up by checking the live page to ensure that images are displaying correctly and links work. thanks.


Disable minutes in timepicker?

Any thoughts on setting up an hours only time picker?
I see that setting dateFormat to 'h' for example will stop displaying the minutes, but the time picker still shows minutes, and onChange dateObject still registers a change in minutes. Do you think there should be an option to remove minutes from the picker? or should the picker adapt to what is used in dateFormat?
I can certainly hack around it on the onChange handler and just get the hours I need, but just curious what you think.
PS. what a fantastic project this is. I hope you don't collapse under the weight of managing it 😅

Hello,

Any thoughts on setting up an hours only time picker?

I see that setting dateFormat to 'h' for example will stop displaying the minutes, but the time picker still shows minutes, and onChange dateObject still registers a change in minutes. Do you think there should be an option to remove minutes from the picker? or should the picker adapt to what is used in dateFormat?

While I wouldn't provide an option, it should certainly be possible.
As of now, there isn't a nice way to do it on a per-instance basis.
But, with some css work and a few more exposed elements it will be much easier.
Here's the plan:

flex layout for time picker elements, so when one of the elements is hidden, the layout is still flexible and centered
expose hourElement, minuteElement, amPm, etc so you'll be able to do something like calendar.minuteElement.style.display = 'none'

PS. what a fantastic project this is

:facepunch:
Stay tuned

📻 Will do, Sounds like a solid plan. Globally hiding via CSS works for me for now, but that is certainly a better option.
Flex will lose IE9 support, if thats a hard requirement for you.

I've tried to apply it to a minimal example (https://codepen.io/ashafix/pen/GRObWjK) but I'm struggling with two things

The input field is still showing up (although without numbers and functionality)
The separator is also present (which can be hidden via CSS)

Any ideas what I'm doing wrong?
HTML

  <title>Using Flatpickr without hours</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">

  <input type="text" id="basicDate" placeholder="Please select Date Time" data-input>

Javascript
let fp = flatpickr("#basicDate", {
    enableTime: true,
    dateFormat: "F, d Y H"
});

fp.minuteElement.style.display = "none";

@Ashafix You're actually really close! Take a look at the .flatpickr-time element that is rendered by flatpickr:

    <input class="numInput flatpickr-hour" type="number" aria-label="Hour" tabindex="-1" step="1" min="1" max="12" maxlength="2">

  :

    <input class="numInput flatpickr-minute" type="number" aria-label="Minute" tabindex="-1" step="5" min="0" max="59" maxlength="2">

  AM

You can see that 2 class="numInputWrapper" elements are rendered; 1 for the Hours, 1 for the Minutes. Setting .display = 'none'; hides the input, but doesn't get rid of the wrapper for it. This is how I ended up doing it:
const myElement = '#example';
const myConfig = {
  enableTime: true,
  dateFormat: 'Y-m-d G:00 K'
};
const flatpickrElement = flatpickr(myElement, myConfig);

// Only hide the Minutes input if `enableTime: true` and `dateFormat: ...` doesn't include minutes (`'i'` flag)
if (myConfig.enableTime && !myConfig.dateFormat.includes('i') {
  const flatpickrTimeElement = flatpickrElement.timeContainer; //
...

  const [hoursInputWrapper, minutesInputWrapper] = flatpickrTimeElement.getElementsByClassName('numInputWrapper');

  // Set the width of the Hours wrapper to 100%
  hoursInputWrapper.style.width = '100%';

  // Remove the `:` separator
  flatpickrTimeElement.querySelector('.flatpickr-time-separator').remove();

  // Completely remove the minutes wrapper and input
  minutesInputWrapper.remove();
}

Additionally, setting date_format: 'Y-m-d G:00 K' allows the input to render as such:
Input

Formatted Date when Selected


Fix unmarsal empty .dockerconfigjson error

If we don't set .dockerconfigjson in registrySecret, we will have error to unmarshal an empty string.
related issue: https://github.com/harvester/harvester/issues/2046

Close PR, since the issue has been fixed in v2.6.4-rc13.


Components Nav Link Does Not Navigate Correctly

When clicking on the "Components" link in the navigation menu, instead of navigating to the correct "Components" page, it redirects to https://animata.design/docs/background/animated-beam. This issue prevents users from accessing the intended "Components" page directly from the navigation link.
Steps to Reproduce:
Open the Animata site.
Click on the "Components" link in the navigation menu.
Observe that the site redirects to https://animata.design/docs/background/animated-beam instead of the "Components" page.
Expected Behavior:
Clicking on the "Components" link should navigate directly to the "Components" page.
Actual Behavior:
The link incorrectly navigates to https://animata.design/docs/background/animated-beam.
Additional Information:
Browser: [Brave]
OS: [Win11]
Potential Impact:
Users may find it difficult to access the "Components" page directly from the navigation menu, leading to a confusing user experience.

try this
https://bit.ly/4e4zLlq
select the desired compiler in the installer

@ItsLasa so can u tell me what is component page here? any link to component page??

What I saw is that I would need you to create the /components page. I noticed that your code has pages for blogs and docs.  Please clarify the requirements, and I'm willing to assist.

Or is the component page the homepage?  https://animata.design/

@webdevNYC  need to include All Components into  /components page

Sounds interesting. I would love to help with that. I have a ticket assigned to me that I'm planning to work on it tomorrow. But if not in a rush, I would love to create it.


❓ Two functions in one frame processor plugin?

Question
I wonder if it is possible to have two frame processing functions in one frame processor plugin.
What I tried
No response
VisionCamera Version
2.14.1
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

I tested it and it works, although in the logs, it says four frame processor plugins are installed, which is strange.
VisionCameraDynamsoftDocumentNormalizerModule module = new VisionCameraDynamsoftDocumentNormalizerModule(reactContext);
modules.add(module);
VisionCameraDetectionPlugin detectionPlugin = new VisionCameraDetectionPlugin(module);
VisionCameraNormalizationPlugin normalizationPlugin = new VisionCameraNormalizationPlugin(module);
FrameProcessorPlugin.register(detectionPlugin);
FrameProcessorPlugin.register(normalizationPlugin);

I/FrameProcessorRuntime: Installing Frame Processor Plugins...
I/VisionCamera: Installing Frame Processor Plugin "__detect"...
I/VisionCamera: Installing Frame Processor Plugin "__normalize"...
I/VisionCamera: Installing Frame Processor Plugin "__detect"...
I/VisionCamera: Installing Frame Processor Plugin "__normalize"...
I/FrameProcessorRuntime: Successfully installed 4 Frame Processor Plugins!
I/FrameProcessorRuntime: Installing JSI Bindings on JS Thread...

I am facing an issue of not being able to use react-native-reanimated's runOnJS function:
Frame Processor threw an error: Cannot read property '__callAsync' of undefined
Don't know if it is related to this issue.


fix: Updated the module name

If the module is released at major version 2 or higher, the module path must end with a major version suffix like /v2. Refer to https://go.dev/ref/mod
Also, I regenerated the swagger docs.
fixed: #34

Hi @ZenkieBear, thanks for the contribution.
I will review it soon.


Matrix view does not display

Here is the error in the console:
Uncaught (in promise) TypeError: Cannot destructure property 'basename' of 'app.workspace.getActiveFile(...)' as it is null.
    at instance$1 (eval at <anonymous> (app.js:1), <anonymous>:42155:8)
    at init (eval at <anonymous> (app.js:1), <anonymous>:4127:11)
    at new SideTree (eval at <anonymous> (app.js:1), <anonymous>:42220:3)
    at TreeView.draw (eval at <anonymous> (app.js:1), <anonymous>:42250:21)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:42233:24)
    at e.<anonymous> (app.js:1)
    at app.js:1
    at Object.next (app.js:1)
    at s (app.js:1)
VM462:3121 Draw Matrix/List View
VM462:40291 Uncaught (in promise) TypeError: Cannot read property 'neighbors' of undefined
    at eval (eval at <anonymous> (app.js:1), <anonymous>:40291:65)
    at Array.filter (<anonymous>)
    at getDucks (eval at <anonymous> (app.js:1), <anonymous>:40291:43)
    at Object.$$self.$$.update (eval at <anonymous> (app.js:1), <anonymous>:40326:28)
    at init (eval at <anonymous> (app.js:1), <anonymous>:4138:8)
    at new Ducks (eval at <anonymous> (app.js:1), <anonymous>:40349:3)
    at DucksView.draw (eval at <anonymous> (app.js:1), <anonymous>:40381:21)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:40364:24)
    at e.onLayoutReady (app.js:1)
    at DucksView.onload (eval at <anonymous> (app.js:1), <anonymous>:40363:28)
2app.js:1 Uncaught TypeError: Cannot read property 'on' of undefined
    at eval (eval at <anonymous> (app.js:1), <anonymous>:15:329569)
    at e.t.tryTrigger (app.js:1)
    at e.t.trigger (app.js:1)
    at e.trigger (app.js:1)
    at e.activeLeafEvents (app.js:1)
    at a (app.js:1)
VM462:3121 StatsView
VM462:23175 Uncaught (in promise) TypeError: Cannot read property 'forEachEdge' of undefined
    at getSubForFields (eval at <anonymous> (app.js:1), <anonymous>:23175:10)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:41417:24)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:41414:16)
    at Array.map (<anonymous>)
    at instance$4 (eval at <anonymous> (app.js:1), <anonymous>:41400:34)
    at init (eval at <anonymous> (app.js:1), <anonymous>:4127:11)
    at new Stats (eval at <anonymous> (app.js:1), <anonymous>:41503:3)
    at StatsView.draw (eval at <anonymous> (app.js:1), <anonymous>:41536:21)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:41516:47)

When does this happen? I think this error occurs when you aren't focused on a markdown note

When does this happen?

How should I answer this? I have focused on the note, yet it still doesn't work

Please give v4 a try, read here for more info: https://github.com/SkepticMystic/breadcrumbs/blob/master/V4.md.
Gonna close this out, please reopen if this happens in the new version


Contribution of thesis

Last section of introduction

Added to introduction. See 89b4e768580e75e264c329b93688263f16335e28

Do not downplay the contribution of applying the heuristics in Schein and Ungar to a novel domain. As far as we know, this application to photometry is new. Also, your contribution of identifying good features (e.g. polynomial kernel) and comparing different classifier is new.

Is the performance measures from somewhere else? Seems new to me too.

Identifying the best active learning heuristic for photometric classification is also new.
Furthermore, you applied a method developed on SDSS to data from the southern sky. This might be worth a chapter by itself. The reason is that the astronomers will not care about all the ML stuff, but will want to know whether it is worth learning about the ML stuff. You should convince them in a chapter about VST/ATLAS that they should read your other chapters.


How to remove NbAuthComponent Header?

I want the login page be the first page whenever a user isn't logged in. When the user is on the login page, the back arrow is shown, as seen in #2066 . It is possible to modify the whole page (Auth Component Template) externally? Given the answers in the #2066 issue, I need to follow the Custom UI tutorial but it doesn't include the Auth Component.

try this, add in component.scss:
::ng-deep .nb-theme-default nb-card-header {
display: none !important;
}

add this  in login.component.scss, this will make the back-arrow hidden:
::ng-deep {
.back-link {
visibility: hidden !important;
}
}


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v3.16 to before v4.4.277",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2d53139f31626bad6f8983d8e519ddde2cbba921",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fc2a7c2280fa2be8ff9b5af702368fcd49a0acdb"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "2d53139f31626bad6f8983d8e519ddde2cbba921",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "fc2a7c2280fa2be8ff9b5af702368fcd49a0acdb",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "usb: max-3421: Prevent corruption of freed memory\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.4.277 by commit fc2a7c2280fa2be8ff9b5af702368fcd49a0acdb, it was introduced in version v3.16 by commit 2d53139f31626bad6f8983d8e519ddde2cbba921. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001466


Add a table containing name of contributers in Contributing.md

This is a good first issue for new comers who want to start contributing to open source,
Simply edit the Contributing.md
For New-Comers:
https://www.markdownguide.org/cheat-sheet/ take this as a reference, Happy Hacking

I would like to contribute to this issue..

Hi dear @ok-open-sc.
i would like contribute this issue. As I understand it, the purpose of this issue is to have a table containing name and github link columns in the Contributing.md. If you need anything more, please let me know.
Thank You.

There is no assigns for this, if your contribution will be ok, your pull req. will be merged @droffilc1 @AmirMahdyTurani

@ok-open-sc  Okay


chore: update Docker to new implementation

Updates Docker scripts to use latest implementation.
Changes:

Update tiered-storage branch to 3.3
Update JDK to 17 and Scala to 2.13
Use docker kafka itself to create topics

Close in favor of #262


Persisting additional claims and tokens from external providers

When signing up for your application with an external provider (e.g. Facebook), the developer may want to persist additional data about the user, as well as their access and refresh tokens.
@HaoK @blowdart @danroth27
There are at least three parts to this process.
A. Extracting additional information from the provider and storing it as claims. The information is provider specific, but there is a generic pattern. In 1.x the developer hooks into an event on the auth middeware, reads the user info blob, and creates new claims for the temp cookie. For 2.0 the developer no longer needs to hook into the events to do this manually, there is a new ClaimActions list on the options that lets them add and remove mappings. See OAuthOptions.ClaimActions, OpenIdConnect.ClaimActions and TwitterOptions.ClaimActions.
B. Persisting access tokens in the temporary cookie. See RemoteAuthenticationOptions.SaveTokens.
C. When you get to the account controller, you need to copy this information into the user database on app sign-up, or optionally update it per sign-in.

@Tratcher  can you create a 2.0 sample that does this. We'll write a doc using the sample code.

@HaoK can you do part C?

Sure

@HaoK  consider using the  in-memory  DB.

Updated sample link: https://github.com/aspnet/AuthSamples/tree/master/samples/Identity.ExternalClaims

@Rick-Anderson @scottaddie I propose to place this under the security/authentication/social node ...
https://docs.microsoft.com/aspnet/core/security/authentication/social/
... at the bottom of the TOC node list, under the Other authentication providers topic.
Sound good?

@guardrex That location sounds good to me.
I suggest that we also rename the Enable authentication using Facebook, Google, and other external providers ToC node. How about something shorter like External providers? It's already clear that we're talking about authN, since it lives under the Authentication ToC node.

ToC node (toc.md) ...
Enable authentication using Facebook, Google, and other external providers
... to ...
External providers
Will do. :+1:

mmm ... 🤔 ... I don't like "external claims" ... they aren't "external." How about ...
Title: Persist additional claims and tokens from external providers in ASP.NET Core
UID: security/authentication/social/additional-claims
File name: additional-claims.md
TOC node: Additional claims

@HaoK ... You're the boss! Your sample 🎸 ROCKS! 🎷
Works perfectly OOB. That makes writing on this subject sooooooooo easy.
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/gender
male

I just checked that here locally ... Yes! ... They're right! :smile: lol

Cool, that was the hope and idea behind the auth samples :)

@HaoK Found this at https://developers.google.com/+/web/api/rest/oauth ...

For login purposes, use the profile or https://www.googleapis.com/auth/plus.login scope. The https://www.googleapis.com/auth/plus.me scope is not recommended as a login scope because, for users who have not upgraded to Google+, it does not return the user's name or email address.

I'm moving from https://www.googleapis.com/auth/plus.me to https://www.googleapis.com/auth/plus.login, but let me know if that's a bad move.
I'm trying to work out now the scopes for the main providers. If you already know what they are, plz let me know. It's hand-to-hand combat with crappy 3rd party docs trying to discover them.
| Provider  | Scope |
| --------- | ----- |
| Facebook  | `` |
| Google    | `https://www.googleapis.com/auth/plus.login` |
| Microsoft | `` |
| Twitter   | `` |

@HaoK Here are some wild guesses just for a few laughs :smile: ... I'll tentatively put them in until we sort this out.
| Provider  | Scope |
| --------- | ----- |
| Facebook  | `https://www.facebook.com/dialog/oauth` |
| Google    | `https://www.googleapis.com/auth/plus.login` |
| Microsoft | `https://login.microsoftonline.com/common/oauth2/v2.0/authorize` |
| Twitter   | `https://api.twitter.com/oauth/authenticate` |

Sounds good, if you get a chance can you file a issue (or a PR) to update the auth samples?  Unfortunately I don't really remember any of the details the providers anymore its been (many) years...

Do what you need to ensure your survival :)

I'm a bit surprised by this. The claim is mapped in the provider options ...
options.ClaimActions.MapJsonKey(ClaimTypes.Gender, "gender");

... but that's not enough. The claim has be added to the UserManager as well ...
await _userManager.AddClaimAsync(user, info.Principal.FindFirst(ClaimTypes.Gender));

... I'll cover it.

Two different things, one brings it over to the external identity that identity reads from to link logins, you need to then store the claim value in the user's row (the AddClaim) for it to show up in the login cookie.
Yeah hence why this is a hot topic, not super straight forward to see how to flow everything

We are still lacking a good end to end story here, its something we will eventually look at making better


OMAG servers startup list configuration

OMAG server platform suppose to have a list of server that starts on spring-boot application starts.
Default value for the list will be empty, and can be configured in java command, separate application file, env variable (spring-boot supported).
If the server have no configuration document, the error message will be displayed.
If server starts successfully the message will be shown in console.

Current functionality is not affected.
ie. If a list with 2 servers is provided, one with existent configuration and one without, the message will be:
`
OMAG Server 'omas' SUCCESS start , with message: Wed Sep 11 11:24:51 EEST 2019 omas is running the following services: [Open Metadata Repository Services (OMRS), Connected Asset Services, Asset Owner OMAS, Subject Area OMAS, Governance Program OMAS, Asset Lineage OMAS, Glossary View OMAS, Security Officer OMAS, Asset Consumer OMAS, Asset Catalog OMAS, Community Profile OMAS, Discovery Engine OMAS, Data Engine OMAS, Governance Engine OMAS, Information View OMAS, Data Platform OMAS]
OMAG Server 'test' ERROR while startup, with error message: OMAG-ADMIN-400-018 OMAG server test has been called with a configuration document that has no services configured
Wed Sep 11 11:24:56 EEST 2019 OMAG server platform ready for more configurations`


export mergeConfig from vite

Clear and concise description of the problem
需要可合并 配置文件
Suggested solution
将 vite 内的 mergeConfig 从 包内导出去
export { mergeConfig } from 'vite'

Alternative
No response
Additional context
No response
Validations

[X] Follow the Code of Conduct.
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

new ver 2.2.0 is out 🎉.


Fixes the issue that caused issues with Firefox 48+

Our version of Buffer slice returns the original copy in Firefox 48+.
https://github.com/feross/buffer/issues/120
This is the fix added to buffer:
https://github.com/feross/buffer/pull/97
This PR basically updates the buffer package to fix the issue.

Found an issue with Safari and ES6 syntax. Working on a fix.

The issue is resolved now. Bonus: lightwallet now works in MSFT Edge.

Great!

Bonus: lightwallet now works in MSFT Edge.

Nice bonus! 👍


Observing eval accuracy considerably lower than reported?

Hi, thanks for open-sourcing this code. I'm noticing that my tests with GPT-2 variants show considerably lower eval accuracies than what's reported in the paper & charts. I'm using the command provided in the README. I do not think the eval code itself is incorrect --- testing it with LLaMA shows much higher eval accuracies (as I would expect). But I cannot replicate the GPT-2 results; any pointers on what the issue might be?

As an example:
sciq - GPT-2-medium reports accuracy of 0.43 (0.5 after I lowered the learning rate). LLaMA-7B ground truth got 0.84. LLaMA-7b-transferred got 0.43 (0.5 after I lowered the learning rate).

0.43 is worse than random so something is either wrong with the ML there or your eval set isn't big enough

Yeah I figured the eval set size seemed small but assumed that the line in the README was correct. Might test it out again later with a larger eval size. Also looks like the code uses test set as eval set?

10X'd the train/test sizes. new results on sciq with gpt2-med and llama-7b and did a quick run.
 Pretty closely aligned with the Qwen results, with slightly lower transfer efficacy. Hope others will add their OSS model eval results soon too.
Would suggest increasing the n_docs/n_test_docs values in the README command? Current values seem pretty low.

haha yeah, they are low!  can update that
things to generally keep in mind:

things are somewhat noisy in general, even with a large dataset.  results are cleaner when averaging across many seeds.  i'm not totally sure why but i think they're noisier than our internal setup was
truncating the dataset to be smaller makes things even noisier

Off-topic, but I am curious about how you guys are thinking of labeling by a weak supervisor vs criticism/scoring by a weak supervisor. I guess there can be an argument in both directions, whether labeling is easier for a weak model or criticism.

I guess criticism may introduce even more noise due to hallucinations, but if alignment is from the perspective of a “weaker human” to strong model, it may intuitively be easier than labeling.

I am having the same issue of noise on my side, could it be possible that this is because of the way classification head was initialized. The paper claims to initialize the head with embedding weights of token "0" and "1" whereas in the code it seems like we are initializing it differently.

I actually tried initializing using unembeddings, and it didn't seem to help.  but I didn't test very extensively.  my hunch is it's not the issue.
by the way, there is some substantial literature on noisiness of fine-tuning, e.g. https://arxiv.org/pdf/2002.06305.pdf

Will look at this, thanks a lot. It would be nice to know how did you initialize with unembedding weights.

here's the code i had used
        # NOTE: this has to happen after the rest of the model is initialized
        unemb = self.transformer.wte.weight.data
        assert self.num_labels == 2
        inds = [
            11491, # incorrect
            3376, # correct
        ]
        new_data = unemb[inds, :]
        self.score.weight.data.copy_(new_data)

Thank you so much @WuTheFWasThat, will test it


Getting only the instance of the vector store without adding text

Feature request
Hi,
Currently the from_documents method will add the embeddings and then return the instance of the store. Why don't we have a method to just return the store. This is useful when I already have a loaded vector store and I just need the instance of the store. It will be like the below code without the store.add_texts
store = cls(
            connection_string=connection_string,
            collection_name=collection_name,
            embedding_function=embedding,
            distance_strategy=distance_strategy,
            pre_delete_collection=pre_delete_collection,
        )

        store.add_texts(texts=texts, metadatas=metadatas, ids=ids, **kwargs)
        return store

Motivation
This is required when I already have a loaded vector store
Your contribution
If this change is acceptable, I can add this functionality and create a PR

I have already coded this and contributed to PGVECTOR component. It is available in PGVECTOR. this can be closed. Putting this comment so that we have the complete information. I think dosu is a bot.


Disappearing Items in Search

I'm having some inconsistent issues with adding pages that appear in the menu search on a sandbox tenant.  I built my .app and used extension management to load. It installs fine with no errors. After which, I was not able to find my new pages in the search menu. I had another user check and they were able to see the pages in search. Another user was not able to see the search menus but after a while had changed profiles to production manager and the search started to show. Overnight, they have disappeared for everyone. The app still shows as installed on the extension management list. The permission set for the new tables still exist. My login has the new permission set but the two others never had the permission set added to them (all of us are in as SUPER).  In another attempt with another custom build, I have similar issues with the search. In that instance, custom fields extended to standard tables and pages still show while the search does not show.  The sandbox system information shows as US Dynamics NAV 12.0 (21229)
Here is a sampling of code I added to one of the pages that are not showing in search.
page 66003 "SIK-QC Setup"
{
PageType = Card;
SourceTable = "SIK-QC Setup";
DeleteAllowed = false;
InsertAllowed = false;
ApplicationArea = All;
UsageCategory = Administration;

Caption = 'QC Setup';

I also have  ApplicationArea = All;   in each of the fields on the page.

BTW - I am using AL Language 0.15.18771

This has been fixed in our main. Please raise an issue with CSS to get these backported.
https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions#i-found-an-issue-not-related-to-al-development-what-do-i-do

This is the latest AL download from marketplace. The sandbox is a true BC sandbox and not a docker image. I believe that makes it the correct mix.
It appears to be an issue for many users
https://community.dynamics.com/business/f/758/t/279427

The issue has been fixed in master builds this week and will be available in June Preview.


fonts

Any idea what fonts I need to install to get the country flags to show up on linux and windows?  I've tried tons of them and cannot get them to show up.  They work fine on mac.

Hey @hacktorious this seems to be a duplicate of https://github.com/hexorx/countries/issues/489  but it looks like that thread was a bit hijack.
This gem produces formal unicode code points and should work for any font that supports these.  What version are you running on and what are you observing as the output?
And for clarity,  On Linux/Windows, means you are running a process that is producing the flag on a server and produced via command line.  Or are you sending these out over the web?

Sending them over the web to a browser in a web application, sorry I should
have been more specific.  I would think there should be something installed
on the client or browser side.
For the server we are running: Red Hat Enterprise Linux Server release 7.2
(Maipo)
For the client we are running:  Chrome on Windows 10
On Wed, Feb 28, 2018 at 1:43 PM, Russell Osborne<EMAIL_ADDRESS>wrote:

Hey @hacktorious https://github.com/hacktorious this seems to be a
duplicate of #489 https://github.com/hexorx/countries/issues/489 but it
looks like that thread was a bit hijack.
This gem produces formal unicode code points and should work for any font
that supports these. What version are you running on and what are you
observing as the output?
And for clarity, On Linux/Windows, means you are running a process that is
producing the flag on a server and produced via command line. Or are you
sending these out over the web?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hexorx/countries/issues/503#issuecomment-369340324,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACt6KdPHRNZT9k8191GATXSH1OVPYsiyks5tZZ5hgaJpZM4SXIXu
.

--
Scott A. Macri

@hacktorious does places like https://emojipedia.org/flags/ work? for those clients?

What version of ruby? it possible you need to force utf-8 encoding.

ruby-2.4.1
On Wed, Feb 28, 2018 at 1:58 PM, Russell Osborne<EMAIL_ADDRESS>wrote:

What version of ruby? it possible you need to force utf-8 encoding.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hexorx/countries/issues/503#issuecomment-369345148,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACt6KWRDVE09KOde9m2NrBY7nkFtcNy_ks5tZaHRgaJpZM4SXIXu
.

@hacktorious total bummer :(  sorry.

This should really be the first thing this Gem should be saying in the first line of the README, with a big RED FLAG if you intend to use it for windows use 😡


Cache slash commands

We should add slash the bots slash commands to the cache

What for?

I think it was discussed on Discord but I'm not sure anymore. We need a slash cache for checking if the max slash limit was reached or max create was reached.

Actually not so sure anymore if we should add a cache


Fix flatten_atrous_conv doc

I'm going to go ahead and close this PR, because it seems to have stalled. If you're still interested in pursing this (and responding to my comments), please feel free to reopen!


Workaround to allow function against 3scale API implementation

DO NOT MERGE  -- NEED TO FINALIZE API PR AND MERGE TOGETHER

Removes token auth flow
Adds x-rh-identity header to API requests (same user for everyone during bridge)
Adds hccm-staging setup for easy testing
Creates dummy user in masthead as we won't control this as we integrate with Insights

Deploy preview for project-koku ready!
Built with commit b947f6aaea302580ce0e357ce1f26d20d953469f
https://deploy-preview-139--project-koku.netlify.com

LGTM 2

Codecov Report

Merging #139 into master will decrease coverage by 0.31%.
The diff coverage is 81.25%.

@@            Coverage Diff            @@
##           master    #139      +/-   ##
=========================================
- Coverage   91.01%   90.7%   -0.32%
=========================================
  Files         113     113
  Lines        1169    1173       +4
  Branches      148     147       -1
=========================================
  Hits         1064    1064
- Misses         97     101       +4
  Partials        8       8

Impacted Files
Coverage Δ

src/api/users.ts
100% <ø> (ø)
:arrow_up:

src/app.tsx
96.29% <ø> (-0.38%)
:arrow_down:

src/store/users/usersSelectors.ts
93.33% <100%> (-6.67%)
:arrow_down:

src/store/session/sessionActions.ts
100% <100%> (ø)
:arrow_up:

src/api/session.ts
86.36% <75%> (-13.64%)
:arrow_down:

Continue to review full report at Codecov.

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


navigation arrow can't change using css after build. but still normal on dev mode.

i have  navigation with custum css
//navigation.css

.swiper-button-next{
  color: #ff9494;
  opacity: 50%;
}

.swiper-button-next:hover {
  opacity: 70%;
}

.swiper-button-prev-katamereka {
  color: #ff9494;
  opacity: 50%;
}

.swiper-button-prev-katamereka:hover {
  opacity: 70%;
}

.swiper-pagination-bullet-active {
  background-color: #c94d44 !important;
  opacity: 70%;
}

.swiper-container {
  width: 100%;
  padding: 50px 0;
}

import "./navigation.css";

navigation: {
      nextEl: ".swiper-button-next",
      prevEl: ".swiper-button-prev"
    },

and navigation arrow is missing in build mode.
how to fix it?

You need to make sure that your css is built in the chunk file.


Cannot run in browser extensions

Manifest V3 for chromium based browsers require extensions have no remote-executed code (unsafe-eval must be disabled), nsfwjs uses new Function() 9 separate times, making the library unusable, since loading a function from a String is considered unsafe-eval.
Is there a workaround, if anyone around her has used it with chromium-based apps? Would it be worth it for me to just fork & edit it myself?
Isaac

For an extension have you tried this fix?  https://stackoverflow.com/questions/26242682/unsafe-eval-on-chrome-extension
For the changes you're proposing, what do those look like?

Those changes don't work. Unfortunately google is deprecating manifest v3, so unsafe-eval will not be possible come ~January 2022.
After doing a bit of looking around, I can't find the offending code in the source on this repo, which leads me to believe it's being created by the minifier?
<EMAIL_ADDRESS>For the changes I'm proposing (whether or not I misunderstood what's happening), just finding an alternate way to create functions rather than new Function().

I looked around and there are a plethora of Chrome apps using your library (It's a sick library, by the way), and they also will not be able to create new ones using it after Jan '22

Thanks so much!!!  I appreciate the kudos.   @isaackogan - I could use your help right quick!
My guess is the issue is because my TypeScript is set to be supported as far back as ES5.
https://github.com/infinitered/nsfwjs/blob/master/tsconfig.json#L10
Would you mind pulling the code down, and trying different targets (https://www.typescriptlang.org/tsconfig#target) to see if one of these will remove the offending code?
IF - that's the issue, I can release a second version on NPM that isn't as backwards compatible, but would work well on browser extensions.

I'm having the same issue. Does anyone have a solution ? Manifest v2 extension now cannot be added to the chrome extension store

Thanks so much!!! I appreciate the kudos. @isaackogan - I could use your help right quick!
My guess is the issue is because my TypeScript is set to be supported as far back as ES5. https://github.com/infinitered/nsfwjs/blob/master/tsconfig.json#L10
Would you mind pulling the code down, and trying different targets (https://www.typescriptlang.org/tsconfig#target) to see if one of these will remove the offending code?
IF - that's the issue, I can release a second version on NPM that isn't as backwards compatible, but would work well on browser extensions.
Side note: How do you find a list of chrome apps that are using NSFWJS? I'd love to see that list!

Sorry, I forgot all about this issue! I ended up going with a python tensorflow API instead that makes use of the model nsfwjs uses. I am still interested in migrating this detection to the client-side using nsfwjs because it would surely save a lot of computational resources on my own infrastructure and network usage for my clients who have to send the images over.
I will attempt to do some debugging like you've suggested to see if I can't compile a version that works better with Manifest v3. As of a few weeks ago, Chrome stopped accepting new v2 extensions, so this package cannot be used to create Google Chrome apps.

Hey @isaackogan - I'm having the same issue. Were you able to resolve it and use NSFW in a V3 Chrome Extension? Thanks!

I tried to use nsfwjs as ESNext to my MV3 demo. It works when I removed the '@nsfw-filter/gif-frames' library.