Auxiliary methods for integrators

Dear all,
some of you (@jacobwilliams and @zbeekman) have expressed the idea that the FOODiE's integrators should provide some auxiliary methods:

It would be wonderful to have an object oriented library of time integrators that could be used, for integration of abstract data type (ADT) calculus (See Rouson et al.) with procedures to query their properties, like their stability locus plots sigma roots, etc. Users could then be guided to picking a good time integrator for their PDE/ODE of interest and it would take a lot of the headache out of picking a suitable time integration scheme to match your spatial scheme when making a PDE solver.

I am now quite confident with the ADT of Rouson (Euler and explicit TVD RK schemes have been implemented) thus, in the meanwhile other schemes are under development, I would like to implement some of the auxiliary methods that you asked for. Here is list tracking issue:

[ ] stability locus plot;
[ ] event finding... @jacobwilliams what do you mean?
[ ] ...

Today is my last day of vacation and my plate will be full when I return to work tomorrow so my input will be sparse, but this is an exciting project so I hope you'll tolerate the occasional random stream of consciousness.
First, since you're using git, I recommend studying the following Git Workflows documentation if you haven't already: https://www.atlassian.com/git/tutorials/comparing-workflows/. It takes a second or even third reading to digest and some experience to fully appreciate.  But I'm really glad that @zbeekman pointed me in this direction.
Second, consider adopting a Test-Driven Development approach, including unit testing at the project outset.   TDD pays dividends.  Tested code is trusted code.  If you're willing to tackle building with CMake and test with CTest, then you might find the building and testing set-up for OpenCoarrays (https://github.com/sourceryinstitute/opencoarrays) instructive.  I wrote the CMake scripts and would be glad to explain anything that is there.  Or you might check out pFUnit for more sophisticated testing tailored to Fortran (http://sourceforge.net/projects/pfunit/).
Third, consider including performance tests in your testing.  This is especially important when using the Abstract Calculus pattern as mentioned elsewhere.  Users will want to know how it compares to other approaches. Automating the performance analysis by including it in the test suite will make performance analysis a natural part of your workflow.  We're not yet doing this with OpenCoarrays, but I've did have performance tests in one other project I worked on so I might be able to provide some advice on this topic too.
Fourth, document as you write.  I find there never comes a day when I wake up and say, "This feels like a great day to document that code I wrote a while back."
I hope this is helpful.

@rouson

Today is my last day of vacation and my plate will be full when I return to work tomorrow so my input will be sparse, but this is an exciting project so I hope you'll tolerate the occasional random stream of consciousness.

I am very happy and onorate to learn the random stream of consciousness coming from you and from all members of the group. All your opinions are very appreciated also in any random forms :-) Thank you all for your help.

First, since you're using git, I recommend studying the following Git Workflows documentation if you haven't already: https://www.atlassian.com/git/tutorials/comparing-workflows/. It takes a second or even third reading to digest and some experience to fully appreciate. But I'm really glad that @zbeekman pointed me in this direction.

Zaak is a wiseman... I never read this tutorial, I will try to digest it soon. Anyhow, I use gitflow that, for a poor Fortran man like me, is a great help for handling git repos in a more sane way.

Second, consider adopting a Test-Driven Development approach, including unit testing at the project outset. TDD pays dividends. Tested code is trusted code. If you're willing to tackle building with CMake and test with CTest, then you might find the building and testing set-up for OpenCoarrays (https://github.com/sourceryinstitute/opencoarrays) instructive. I wrote the CMake scripts and would be glad to explain anything that is there. Or you might check out pFUnit for more sophisticated testing tailored to Fortran (http://sourceforge.net/projects/pfunit/).

You are absolutely right. I started very soon a discussion about the tests facility but my approach is not so formal and not accurately designed as your. I have to learn more about a formal approach for TDD, presently there is the Lorenz test that you use in your great book, but soon they will be also Burgers test and a 1D Riemann solver tester for the compressible Euler conservation laws. Moreover, I used test unit tools in python, but never in fortran, maybe this is a nice occasion to use the pfunit wrapper of @acroucher.
As cmake is concerned, I disagree: for pure Fortran project like FOODiE is designed to be, cmake is not so friendly. I prefer FoBiS :-) However, anyone being an experienced cmake addicted can add support for cmake, I hope that all of you feel free to join FOODiE project.

Third, consider including performance tests in your testing. This is especially important when using the Abstract Calculus pattern as mentioned elsewhere. Users will want to know how it compares to other approaches. Automating the performance analysis by including it in the test suite will make performance analysis a natural part of your workflow. We're not yet doing this with OpenCoarrays, but I've did have performance tests in one other project I worked on so I might be able to provide some advice on this topic too.

I absolutely agree and all the hints that you can give me will be very appreciated. Regarding this topic I hope to obtain the help of @muellermichel and @francescosalvadore (among all the others) that are two fortraners that (like you) I know to have great experience on HPC.

Fourth, document as you write. I find there never comes a day when I wake up and say, "This feels like a great day to document that code I wrote a while back."

I agree. I documented all the sources that I produced up to now, see full API, there are also the bibliography and maths, all produced by means of FORD a great tool of @cmacmackin. However, I will start very soon the wiki for providing a more comprhensive documentation (with tutorials, examples, etc...).
Thank you very much for your help, feel free to write your idea in any forms and frequency :-)

Zaak is a wiseman... I never read this tutorial, I will try to digest it soon. Anyhow, I use gitflow that, for a poor Fortran man like me, is a great help for handling git repos in a more sane way.

Fake it, until you make it! That’s my motto!
All joking aside, I am not a fan of git flow. IMO, it takes a flexible, distributed, modern tool, Git, and tries to impose bad practices necessitated by antiquated SCM systems (ahem, Subversion) and pre-CI workflows. I much prefer GitHub Flow which is pretty much the same as Atlasssian’s forking. Here is some information on how this differs from Git Flow.
In the case of a centralized organization’s repository, GitHub Flow works, but isn’t terribly different than the feature branch workflow in practice, as long as people don’t prematurely merge feature branches.

@zbeekman
I have not yet read all the resources you linked, thus I could be wrong, but I think that the gitflow I am using (the Vincent Driessen's branching model) does not impose a centralized-like workflow. The main attractive features of gitflow for me were (as atlassian says in one of your references):

(about gitflow...) This workflow doesn’t add any new concepts or commands beyond what’s required for the Feature Branch Workflow. Instead, it assigns very specific roles to different branches and defines how and when they should interact. In addition to feature branches, it uses individual branches for preparing, maintaining, and recording releases. Of course, you also get to leverage all the benefits of the Feature Branch Workflow: pull requests, isolated experiments, and more efficient collaboration.

For a poor OCD mind like mine, this workflow imposes the devoloper to be clear and polite while preserving all the goodness of a flexible, distributed, modern tool like Git globally. The continuos development workflow of github is surely more light, but less clean. IMO, we can adopt our own workflow, to be defined... I am a new issue :-)

@szaghi I’m not suggesting we should move away from gitflow, just expressing my preference :-)

@zbeekman your preference is important for me, see this :-)

I probably should have made it clear that the specific workflow I've evolved towards is the Forking Workflow (not the GitFlow Workflow).  The number one reason is that I want to be careful about what makes it into the central repository.  Without forking, branches will be recorded in the central repository unless they are never pushed.  With forking, I have to option to keep my branches private if I push them to a private repository.  Currently, my fork of OpenCoarrays (which has occupied most of my development time for the past several months) is public (on GitHub), but I like having the option to take them private (which I would probably do by putting it on BitBucket).
One reason for wanting the option for privacy is that I am hopeful that OpenCoarrays will be widely used.  Widely used means widely watched. I wouldn't want users to make development decisions based on some half-baked feature branch that I started working on but later abandoned.  Hopefully no one would do that, but it just seems safer to prevent it.
Also, I like the idea of users forking their own repositories for developing their own feature branches before submitting a pull request to the maintainer of the central repository.  I think this is a great way to contribute without having commit rights to the central repository.  In fact, one user has already done this so I'm pretty excited.  I'll be reviewing his pull request today.

@rouson I see that you promote forking like @zbeekman

The number one reason is that I want to be careful about what makes it into the central repository. Without forking, branches will be recorded in the central repository unless they are never pushed.

I use gitflow locally: all the branches I created locally are not pushed to GitHub repository, only the master one is uploaded thus for this specific topic forking and gitflow produce the same result. Into the FOODiE repository there is only gh and master branches not all the dirty ones I created locally.

With forking, I have to option to keep my branches private if I push them to a private repository.

The same is true for gitflow: if I like I can push all my dirty branches to a remote private repository; git flow is an helper for branch managing it does not prevent to use all the goodness of git.

One reason for wanting the option for privacy is that I am hopeful that OpenCoarrays will be widely used. Widely used means widely watched. I wouldn't want users to make development decisions based on some half-baked feature branch that I started working on but later abandoned. Hopefully no one would do that, but it just seems safer to prevent it.

I completely agree, but in my case I almost alone :-( However, I like to take care of future not so lucky poor Fortran people that will try to use my codes... thus your suggestion is absolutely great!

Also, I like the idea of users forking their own repositories for developing their own feature branches before submitting a pull request to the maintainer of the central repository. I think this is a great way to contribute without having commit rights to the central repository. In fact, one user has already done this so I'm pretty excited. I'll be reviewing his pull request today.

As I said here, I think that gitflow and forking are not in contrast. I hope that someone forks very soon FOODiE and correct my terrific mistakes :-)

@rouson I have added some documentation into the wiki, in particular:

motivations
solution

I would like to cite your book, can I cite it? if yes, how?

For citations, I usually use the "Cite" link for the relevant publication on Google Scholar (scholar.google.com).  It gives options for various formats, including a BibTeX format in case that's of interest.  The MLA format it provides for my book is
Rouson, Damian, Jim Xia, and Xiaofeng Xu. Scientific software design: the object-oriented way. Cambridge University Press, 2011.


feat: [proposal] allow to customize service method for each controller's route

PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
For now, controller routes will execute the pre-defined logic in the service class. But sometimes, we may need to customize the behavior of logic which cannot be done with interceptors.
What is the new behavior?
Allow to set up the serviceMethod for each route. This field indicates the name of the method that will be executed inside the corresponding controller's route.
If serviceMethod is not defined or identifies a wrong method, the existing built-in method will be used instead, just like the current behavior.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Great to see you again @nhatphongdo
I understood your intentions to override at the service level from this MR.
I created an Override Decorator assuming a similar situation, and I expected to customize the Interceptor and Service by override at the controller level instead of understanding all 'Interceptor - Controller - Service - Interceptor'.
I learned that  high understanding of the library may want to override the service only. (Like this MR)

The steps to call the service from the controller after the interceptor are as follows
# crud.route.factory
    ...
    protected readOne<T>(controllerMethodName: string) {
        this.targetPrototype[controllerMethodName] = function reservedReadOne(crudReadOneRequest: CrudReadOneRequest<T>) {
            return this.crudService.reservedReadOne(crudReadOneRequest);
        };
    }

    protected readMany<T>(controllerMethodName: string) {
    ... others Service Method

I think that the  Goal of this MR can be achieved if the Override Decorator is currently providing it at the controller level, and this function can be extended by the service level.

Hi @jiho-kr,
Thanks for your detailed comment. Actually, I tried all possible ways I understand from lib before approaching this way.
Let me explain my use case before sharing my solutions. Please guide me if the current logic can solve the problem.

Basically, my use case is similar to CreateRequestInterceptor. I need to insert some data (like author) automatically into the entity but still keep all other logic such as validation.
My entity is like this:

export class RevisionsEntity extends AbstractEntity {
    @PrimaryGeneratedColumn()
    @Type(() => Number)
    @IsNumber(undefined, { groups: [GROUP.PARAMS, GROUP.SEARCH] })
    @Min(1, { groups: [GROUP.SEARCH] })
    @IsOptional({ groups: [GROUP.SEARCH] })
    id: number;

    @Column({ type: 'integer' })
    @IsNumber(undefined, { groups: [GROUP.SEARCH] })
    @Min(1, { groups: [GROUP.SEARCH] })
    @IsOptional({ groups: [GROUP.SEARCH] })
    revision: number;

   ...
}

I need to increase revision by 1 automatically for the new entity.

Here are my tries so far:

Use interceptor

export class GenerateRevisionNumberInterceptor implements NestInterceptor {
    constructor(public readonly crudService: RevisionsService) {}

    async intercept(context: ExecutionContext, next: CallHandler): Promise<Observable<any>> {
        const req: Record<string, any> = context.switchToHttp().getRequest<Request>();

        const count = await this.crudService.repository.count();
        if (req.body) {
            req.body.revision = count + 1;
        }

        return next.handle();
    }
}

Problems:

This interceptor is executed before the standard interceptor, in this case, CreateRequestInterceptor. So validation logic will throw an error because we don't allow to input revision in CREATE method.

Reflect.defineMetadata(
    INTERCEPTORS_METADATA,
    [
        ...(this.crudOptions.routes?.[crudMethod]?.interceptors ?? []),
        isOverride ? undefined : CRUD_POLICY[crudMethod].interceptor(this.crudOptions, factoryOption),
    ].filter(Boolean),
    targetMethod,
);

Use Override decorator

    @Override('CREATE')
    @UseInterceptors(GenerateRevisionNumberInterceptor)
    async create(@Body(new ValidationPipe({ forbidNonWhitelisted: true, groups: [GROUP.CREATE] })) crudCreateRequest: TermRevisionsEntity) {
        this.crudService.reservedCreate({
            body: crudCreateRequest,
            author: {
                property: 'createdBy',
                filter: 'user',
            }
        })
    }

Problems:

Because overridden controller's method cannot reuse standard interceptor, we cannot utilize CreateRequestInterceptor. Instead, we need to do validation manually or replicate the logic of CreateRequestInterceptor. Both are not efficient, I think.
The same for parameter will be passed to service if we want to reuse standard service's method.
CRUD factory class will use configuration from CrudOptions to setup the controller's method. While our custom controller method is separated. It can lead to some conflict or misunderstanding. For example, I used @ApiOperation to setup Swagger summary for custom controller method, but it won't take effect because CRUD factor will override it by value from swagger in CrudOptions. So I need to use decorators in CrudOptions along with decorator in custom method like below. It's not convenient.

@Crud({
    entity: RevisionsEntity,
    only: [Method.CREATE],
    routes: {
        create: {
            decorators: [
                ApiOperation({
                    summary: 'Create new Revision',
                }),
            ]
        }
   }
})
...
    @Override('CREATE')
    @UseInterceptors(GenerateRevisionNumberInterceptor)
    <Other decorators if needed>
    async create(@Body(new ValidationPipe({ forbidNonWhitelisted: true, groups: [GROUP.CREATE] })) crudCreateRequest: TermRevisionsEntity) {
    ...
    }

That's why I come to this proposal. This MR aims to provide the customization for the use-case that we want to keep all standard logic of controller and request process flow.
Thanks.

As I understand it, `Modify the revision value when the API call is success.'
I'm guessing that in this case, it could be handled through an interceptor after the request is processed, like this
@Injectable()
export class ChangedRevisionInterceptor extends CustomRequestInterceptor {
    constructor(private readonly invoiceGroupService: InvoiceGroupService) {
        super();
    }

    async intercept(_context: ExecutionContext, next: CallHandler): Promise<Observable<unknown>> {
        return next.handle().pipe(
            map(async (userEntity: UserEntity): Promise<UserEntity> => {
                // TODO: update revision (Interceptor -> controller -> service -> [Here] Interceptor)
                // This is called after the service(CRUD Service) has completed.
                await this.revisionsService.update(userEntity);

                return userEntity;
            }),
        );
    }
}

If it needs to be protected by a transaction or processed in a single DB call, it would have to be handled differently.

@jiho-kr
Yes, you are right. It would be handled in a transaction. To simplify the sample, I used count. But realistically, we need to find the latest revision, plus 1 to it, and store to DB in 1 transaction. Besides that, revision is a required column. If we do in response interceptor, we need to set it to nullable or a dump value like -1 or 0. It may have some side-effect in handling logic in other places.

It seems like you're expecting it to behave like a DB trigger.
I think it would be better to handle this case as a method of a separate service rather than an override.
I'm struggling with how to provide like hooking without adding complexity.

Hi @nhatphongdo
I realized that there is a simple way to accomplish your goal.
It doesn't involve modifying the library, but rather overriding the method(starts with reserve) in the service.
However, I think it is better to create a new method than Override because CrudService contains the main functions of the library.
It can refer to CrudService (lib/curd.service.ts).
After you check this comment, you will be able to close the MR.

Hi @jiho-kr,
You're right! Overriding the method can help me. I need to replicate a few lines of code (to set the author) but it's still better than using Override decorator in controller, clone some behaviors in CrudController like validation, and execute a custom service function. I will follow this approach first. Then I will try to figure out the better way to handle this situation and make other proposal to the library if possible.
For now, I will close this request as it's invalid. Thank you so much again for your comments.


TypeError: 'NoneType' object is not iterable

Empire Version
latest (issued git clone on 05/28/2017
OS Information (Linux flavor, Python version)
Linux 2017 4.9.0-kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux
Python 2.7.13
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
once git cloned the empire from repo I used those commands:
empire/setup/install.sh
empire/setup/setup_database.sh
empire/setup/cert
Screenshot of error, embedded text output, or Pastebin link to the error
error:
Traceback (most recent call last):
File "./empire", line 1294, in
main = empire.MainMenu(args=args)
File "/pentest/powershell/empire-ps/lib/common/empire.py", line 75, in init
(self.isroot, self.installPath, self.ipWhiteList, self.ipBlackList) = helpers.get_config('rootuser, install_path,ip_whitelist,ip_blacklist')
TypeError: 'NoneType' object is not iterable
Any additional information

You only need to run install. The install script will run the database setup. Try running reset.shOn May 28, 2017 1:01 PM, johnjohnsp1<EMAIL_ADDRESS>wrote:Empire Version
latest (issued git clone on 05/28/2017
OS Information (Linux flavor, Python version)
Linux 2017 4.9.0-kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux
Python 2.7.13
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
once git cloned the empire from repo I used those commands:
empire/setup/install.sh
empire/setup/setup_database.sh
empire/setup/cert
Screenshot of error, embedded text output, or Pastebin link to the error
error:
Traceback (most recent call last):
File "./empire", line 1294, in
main = empire.MainMenu(args=args)
File "/pentest/powershell/empire-ps/lib/common/empire.py", line 75, in init
(self.isroot, self.installPath, self.ipWhiteList, self.ipBlackList) = helpers.get_config('rootuser, install_path,ip_whitelist,ip_blacklist')
TypeError: 'NoneType' object is not iterable
Any additional information
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

thanks for the reply, did run again ./install and everything went fine is now working !

do you guys know of the correct version to use of the forked empire ?


git: ignore vim swap files

For those developers who use vim, the traditional behaviour is to create
swap files next to the file itself.  These files should not be committed
to the repository, add them to the ignore list.

Re-apply #255 to get signing by using the web editor.


NR-55461 Add Prometheus Agent quickstart

Summary
Add Prometheus Agent quickstart.
For context, we developed the New Relic Prometheus Configurator in order  to simplify the experience configuring features like discovery, filtering, metrics decoration, and sharding. The configurator generates a configuration file that is used to run a Prometheus Server in Agent mode.

Pre merge checklist

[X] Did you check you NRQL syntax? - Does it work?
[X] Did you include an InstallPlan and Documentation reference?
[X] Are all documentation links publically accessible?
[X] Did you check your descriptive content for voice and tone?
[X] Did you check your descriptive content for spelling and grammar errors?

Dashboards

[X] Does the PR contain a screenshot for each of your dashboards?
[X] Do your screenshots show data?
[X] Has the sanitization script been run on each dashboard?

https://github.com/newrelic/newrelic-quickstarts/pull/1503 has been mergerd, I am re-triggering the pipeline and testing again


Jobsub CLI check for ongoing outages

If there's an ongoing outage/degradation for jobsub/batch system, it would be very useful to users to display that when they run a jobsub command, at least when they try to submit.
Outage information is in Landscape, I'd probably want to put it into Lens to provide a consistent API. In any case it should just be a GET request and print.

@retzkek Does LENS have this information yet?


[WIP] arm64 experiment

Summary

Please disregard, I am investigating ARM64 build failures we were seeing in CI
Use Cases

Checklist

[ ] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[ ] I have reviewed the styleguide for guidance on my code quality.
[ ] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@sophiewigmore are we good to close this now?


uxy ls doesn't handle file names with spaces

If uxy ls encounters a file with a space in its name, it ignores the portion of the file name after the space.
I haven't checked other funny characters (for example, it's legal to have a newline in a filename).
On my system, Ubuntu 18.04:
$ ls -l
total 28
-rw-r--r-- 1 kst kst  8585 May 20 11:18 README.md
-rwxr-xr-x 1 kst kst 13522 May 20 11:18 uxy
$ uxy ls
TYPE PERMISSIONS LINKS OWNER      GROUP      SIZE         TIME                                  NAME
-    rw-r--r--   1     kst        kst        8585         "2019-05-20 11:18:33.459647439 -0700" README.md
-    rwxr-xr-x   1     kst        kst        13522        "2019-05-20 11:18:33.459647439 -0700" uxy
$ touch 'foo bar'
$ uxy ls
TYPE PERMISSIONS LINKS OWNER      GROUP      SIZE         TIME                                  NAME
-    rw-r--r--   1     kst        kst        8585         "2019-05-20 11:18:33.459647439 -0700" README.md
-    rw-r--r--   1     kst        kst        0            "2019-05-20 11:24:36.350283775 -0700" foo
-    rwxr-xr-x   1     kst        kst        13522        "2019-05-20 11:18:33.459647439 -0700" uxy
$

Fixed.


Getting what appears to be noise on Imagenette + XResnet

I am getting outputs that look completely random when I try to run distillation on a subset of imagenet with a XResnet 18 model.
I have only tried one set of command line args and was wondering whether you had any intuition for what I might obviously be doing wrong or had tried this before.
My command is:
python main.py --mode distill_basic --dataset Imagenette --arch DXResNet18 --batch_size 64 \
    --distill_steps 3 --train_nets_type known_init --n_nets 1 \
    --test_nets_type same_as_train

I made my own DXResnet18 class and Imagenette dataloader.
Thanks in advance!

Fixed init should give you images that look like noise, as expected. :)

They look way worse than teaser.png. Were those created in a different way?

I wouldn't be surprised. You have a much larger network with a much larger image space. There could be a lot more ways of using high freq signals to overfit a particular init.

I cut to only 10 classes. Would you suggest also cutting to smaller images/smaller network?

Number of classes doesn’t matter much. I do think lower res would help. However, these said, it is fixed init, so random noise looks normal to me.

It did! Thank you for being so responsive!
Is the code to train a model using the images in results.pth invoked by running with --phase test?
I am trying to see whether can train good models on the distilled images with slightly different settings.

Is the code to train a model using the images in results.pth invoked by running with --phase test?

Yes. You can set different test lr settings, but for flexible and other hyperparameter tuning, you may want to implement your own :)

I’m closing this one for now. Let me know if you need more help!


Add nginx with HTTP and HTTPS (self-signed certificate)

This PR :

installs NGINX in the Docker image, responding on port 80 for HTTP, 443 for HTTPS with a self signed certificate
installs supervisor from pip in the Docker image to start NGINX and gunicorn
modifies run-docker.sh to map the port 443 to 4443, and map the port 80 to 8080
modifies benchmark.py to use http://localhost:8080/ping

Notes :

benchmark.py is NOT modified to disable SSL check on self-signed certificate
NGINX is not configured to use the SPDY protocol.
Another solution could be nghttpx to support HTTP 2.

@dalf Thank you for contributing this back!  I'll verify this weekend and get this integrated with the benchmark.py changes + AWS testing branch (not completely pushed) and then we will have comprehensive benchmarks in a real server-to-server environment.

Verified and added HTTPS support


Fix problem copying byte contents

Fixes issue #105

Looks good.  I'll merge this after you fix the minor issue in #107.

Thanks for your contribution.

Conflict resolved.  Thank you again for your contributions!


Move XML-related code in Web to new util class

Change-Id: I79468d41978d1d2c3c41b41f9c9992092fd22da4
General items:

[ ] I have updated the relevant documentation files under docs/
[x] My code follows the:

[x] Google Java style guide (for .java files)
[ ] Google JavaScript style guide (for .js files)

[x] ant tests passes on my machine

For all other changes:

[x] I branched from master
[x] My pull request has master as the base

What does this PR accomplish?
tldr: This fixes a regression in master where compiling an app without a Web component causes a syntax error in Kawa.
In the PR that made it so dictionaries could be parsed directly in the Scheme code, I referenced com.google.appinventor.components.runtime.Web in the code since we want to call a static function on Web that handles the parsing of JSON. It seems though that by referencing the class, Kawa loads it and attempts to validate all of its types, including the class com.google.appinventor.components.runtime.repackaged.org.json.XML. This is provided by a library, json.jar, which is annotated on the Web component. When compiling the companion, or any other app that has a Web component, this JAR file is included and the app will build. For apps without a Web component (e.g., HelloPurr), the library is not included in the classpath and Kawa fails to compile the runtime.scm, despite the fact that none of the code in Screen1 will call the particular XML-related function. This PR moves the call to the XML library to a separate XmlUtil class, which allows the Web class to validate. Why Kawa manifests this as a SyntaxError is a mystery to me.

Note this will fail Jenkins right now because it's not finding the mobileprovisioning profiles needed for the iOS code.


Tracking issue as discussed in #136

Here is a list of the components, as no one has objected to #136 I think we can go ahead with implementation. If someone would like to help out, the best way forward would be to open an issue referencing this one and the component you want to work on. That would also be the place for any questions/discussion/mentoring.

[x] libp2p-bitswap (#148)
[ ] ipld-daemon (#167)
[ ] ipfs-embed (#149, @dvc94ch)
[x] libipld
[ ] ipld-collections

[ ] hamt

[ ] unixfs v1 (#165)
[ ] unixfs v2

We have a Hamt implementation if you would like to use as a reference: https://github.com/ChainSafe/forest/tree/master/ipld/hamt
The initial implementation was typesafe and values were constrained on a generic if you'd prefer that, but because of our specific use case, changed later for values to be any Ipld and made other modifications.


chore(main): release 9.8.2

:robot: I have created a release beep boop
9.8.2 (2024-11-16)
Bug Fixes

#435 navigate chat buffers (5779868)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v9.8.2
:sunflower:


fix: use 'once' for socket close event handler

Prevent registering several close handlers by using 'once'
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
 at _addListener (events.js:389:17)
 at Socket.addListener (events.js:405:10)
 at Socket.Readable.on (_stream_readable.js:852:35)
 at /services/system-dashboard/node_modules/hyperswarm/swarm.js:110:14
 at Socket.onconnect (/services/system-dashboard/node_modules/@hyperswarm/network/index.js:95:7)
 at Socket.emit (events.js:314:20)
 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1132:10)
Possible EventEmitter memory leak detected. 11 close listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit

What is this fixing?

My hope was that it prevents excessive adding of 'close' event handlers

Shouldn’t make a difference wheather it’s once or on here as the socket is not reused, but let me know if you can make a test case or similar.


Propshaft::Server#inspect

The Rails route inspector (typically invoked via bin/rails routes)
uses #inspect to print the action associated with routes that mount
Rack applications. The output now looks like this:
     Prefix Verb URI Pattern        Controller#Action
                 /assets            Propshaft::Server
    widgets GET  /widgets(.:format) widgets#index

Resolves #37

I'm unsure about the value of the automated test, and I am not sure I would have included it in my own project. I included it here since it's easier for a maintainer to remove a test that exists than it is to create a test for an implementation written by a contributor.

Fine to skip the test. Agree it doesn't offer much/anything.

I think the diff is now deleting the whole server test?

Ah, sorry, that was a gaffe on my part. It is corrected.


881 add icons to tabs like phase 1 mocks

Resolve #881

Don't review this yet.

will reopen when agreed changes are implemented


Select all books with a given tag

Currently it is not possible in the bookshelf view to

get the number of books which have a given tag,
select a tag and get the list of related books.

The database must offer this service and each tag in the bookshelf must act as a button, leading to a search result page for this tag. The breadcrumb at the top of the page must reflect this search by tag.

FindByTag() existe déjà.


"You are trying to use contextless navigation without a GetMaterialApp" while using GetMaterialApp

I was using GetX for months without problems when today I started to receive this error everytime I try to start the app, even though I am indeed using GetMaterialApp.

Here it is my main function:
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get_storage/get_storage.dart';

import 'app/app.dart';
import 'app/config/dependencies.dart';
import 'app/utils/file_utilities.dart';

void main() async {
  await GetStorage.init();

  await clearCacheDirectory();

  // Here I just instantiate a GetxController class with Get.put
  // This class doesn't try to navigate anywhere when initializing
  initializeDependencies();

  await SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);

  runApp(const App());
}

And the App widget:
import 'package:elf_boilerplate_app/app/pages/home_page.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'config/app_theme.dart';
import 'config/pages.dart';
import 'controllers/user_controller.dart';
import 'utils/keyboard.dart';

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: hideKeyboard,
      child: GetMaterialApp(
        debugShowCheckedModeBanner: false,
        locale: const Locale('pt', 'BR'),
        title: 'Espresso Labs',
        theme: AppTheme.themeData,
        getPages: pages,
        initialRoute: Get.find<UserController>().initialPage,
        navigatorKey: Get.key, // I tried adding this line to solve the problem but it didn't worked

        routingCallback: (_) => hideKeyboard(),
      ),
    );
  }
}

get: 4.6.5
flutter: 3.0.2
dart: 2.17

Is there any solution to handle this error? Share, please.

After hours of debugging I realized the app was indeed trying to navigate before running the GetMaterialApp constructor. It happened because I was storing some "faulty" user status on local storage that determined which HomePage the user should be redirected.
I tried to delete this issue since it wasn't a problem with the package, but I didn't found a way to do it so I closed it.

After hours of debugging I realized the app was indeed trying to navigate before running the GetMaterialApp constructor. It happened because I was storing some "faulty" user status on local storage that determined which HomePage the user should be redirected. I tried to delete this issue since it wasn't a problem with the package, but I didn't found a way to do it so I closed it.
Sorry, I didn't get you. "I tried to delete this issue since it wasn't a problem with the package, but I didn't found a way to do it so I closed it." What does it mean? can you please explain it a little?

After hours of debugging I realized the app was indeed trying to navigate before running the GetMaterialApp constructor. It happened because I was storing some "faulty" user status on local storage that determined which HomePage the user should be redirected. I tried to delete this issue since it wasn't a problem with the package, but I didn't found a way to do it so I closed it.

Sorry, I didn't get you. "I tried to delete this issue since it wasn't a problem with the package, but I didn't found a way to do it so I closed it." What does it mean? can you please explain it a little?

I had this problem and as Jose mentions, it is due to applying a redirect before the main widget starts, so you can either add a WidgetsFlutterBinding.ensureInitialized(); or a delay in the function you are executing and ready.


loopProtect is not defined error

Challenge catch-off-by-one-errors-when-using-indexing has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.

function countToFive() {
  let firstFive = "12345";
  let len = firstFive.length;
  // Fix the line below
  for (let i = 0; i < len; i++) {
  // Do not alter code below this line
    console.log(firstFive[i]);
  }
}

countToFive();

This matches the example code. The error I'm getting is the "loopProtect is not defined" error message I received on the last challenge. This time it is repeated 4 times.

This seems to be a firefox issue as Safari and Chrome didn't seem to have this error. The current fix is just refreshing the page, although a proper fix would be welcome.

Closing in favor of https://github.com/freeCodeCamp/freeCodeCamp/issues/13532


Only works for first view

It only works for the first time. Then afterwards it says the error:
[9340:30160:1104/094115.911:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is

This error "[9340:30160:1104/094115.911:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is..." comes from the chromedriver and can be completely ignored, it doesn't affect anything. And to get the views for the second time the bot waits 10min to redo the loop, this wait time is set by zefoy.com to prevent abuse. So if you wait 10 min, the bot will continue its work. Please try it and let me know.

Yep sorry just realised this thats working. But another issue currently the auto views is the only one thats working. I tried auto shares and auto comment likes but those searches the link and does not press the button. It says error trying again and it just loops. Please look into this.

Unfortunately the error you are talking about is something I can't control. This happens when the zefoy server is not serving shares or likes... You will most likely see a "soon will be update" message under the service you are trying to get. In this case, you must wait till this service is made available again by zefoy. Hope this helped and thank you for your questions!


OnUnitCreated is not getting called for starting units in replays

When playing you get this callback for your starting units. In replays you don't.
For some reason in replays, ObservationImp::UpdateObservation is getting called twice before ControlImp::IssueEvents.

@KevinCalderone just a quick question regarding OnUnitCreated.
Is it called when the player has clicked "build this unit" or is it called after it has actually finished producing?

It is called when it finishes producing.

@KevinCalderone Is it possible to trigger an event upon issuing such a command?

You can get it from Observation()->GetRawActions(). That is the list of all actions the user performed since the last gameloop.
That will contain more than just train actions through. To get what the train/build ability_id is for a specific unit, you can look it up at UnitTypeData::ability_id in Observation()->GetUnitTypeData().

I see this issue was referenced in a PR which is already merged.
Was this solved?


PYTHON-2722 Improve performance of find/aggregate_raw_batches

Depends on https://github.com/mongodb/mongo-python-driver/pull/1047
Before:

BENCH
SMALL
LARGE

conventional-to-ndarray
0.22
1.02

pymongoarrow-to-numpy
0.30
1.64

conventional-to-pandas
0.32
1.65

pymongoarrow-to-pandas
0.31
1.68

pymongoarrow-to-arrow
0.32
1.62

After:

BENCH
SMALL
LARGE

conventional-to-ndarray
0.22
1.06

pymongoarrow-to-numpy
0.16
1.37

conventional-to-pandas
0.31
1.63

pymongoarrow-to-pandas
0.16
1.33

pymongoarrow-to-arrow
0.16
1.35

We are 2X faster, but there is still some overhead to using OpMsg.

Closing since work was done in https://github.com/mongodb/mongo-python-driver/pull/1047 instead.


Move to next tab when enter is pressed

Move to next tab when focused on an input element and enter is pressed

@orenyomtov Thank You but this seems rather broad of a use case. this will literally trigger every time a user hits the enter key within the wizard form. this type of behavior should be toggled at the very least but i am not even sure if it should be part of the core. Developers have different use cases for this and forcing the next tab when hitting the enter key might be too much.

@VinceG that makes sense.
Hopefully then this will help future googlers looking to implement this functionality.


Local authentication fails

Description
On a local instance installed from the master branch at commit a720446c7df0a52315669f2cbb0f4fa2103edaab , local authentication does not work.

Clicking the "Sign In" button produces no user-visible response. In the debugger, you get an exception at auth.js line 278, with the error "ReferenceError: Alert is not defined".

This first error appears to be fixed by adding the following line at the top of web/js/utils/auth.js:
import * as Alert from './alert.js';

After the Alert problem is fixed, it's possible to get the login dialog, but actually submitting a username and password results in a never-ending "spinner". The server logs a POST on "/signIn", and the browser logs:

    Possible Unhandled Promise Rejection: ReferenceError: Html is not defined
        onPreConfirmSignIn http://vps2.kdjf.net:8080/js/utils/auth.js:223
        polyfill 7.1.0/dist/promise.min.js:1
    promise.min.js:1:2831

I didn't try to debug it beyond that point.

@Powell-v2 Is it possible your modules change broke this?  Can you take a look?

Oh, actually this looks like it may be an easy fix.  You probably need:
import * as Html from './html.js';

in addition to the Alert line.

Yes, that's right - imports for Alert and Html modules are missing in auth.js. I've pushed a fix.

Thanks.  This is merged.  @jbash, please let me know if you have more problems.

I merged the fix and can confirm it works for me.
As for other problems, don't worry; I'm very good at complaining. :-)
Thanks very much.


ManyToOne association entity identifier

Hi everyone.
I ran into a problem using many-to-one association between entities while using custom property (not @ORM\Id() one) to join mapped entity.
Simplified example:
class User {
    /**
     * @ORM\ManyToOne(targetEntity="...\Group", inversedBy="users")
     * @ORM\JoinColumn(referencedColumnName="second_id", nullable=false)
     */
    private $group;

    ...
}

class Group {
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string")
     */
    private $secondId;

    /**
     * @ORM\OneToMany(targetEntity="...\User", mappedBy="users")
     */
    private $users;
}

bin/console doctrine:schema:validate said all mappings are okay, but when I tried to insert new user I got this error:
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined index: secondId" at /application/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php line 671

https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php#L671
I got ['id' => 100500] here instead of ['secondId' => 100500].
Thanks.

@podorozhny it seems odd, can you please send a PR with a test that reproduce that issue (we can use https://github.com/doctrine/doctrine2/blob/e4704beaf9fad5a521fe7592dec382ae209b3cc1/tests/Doctrine/Tests/ORM/Functional/Ticket/GH5762Test.php as example).

@lcobucci
https://github.com/doctrine/doctrine2/pull/6301
➜  doctrine2 git:(master) ✗ ./vendor/bin/phpunit --filter=GH6297Test
PHPUnit 5.7.14-1-g7d5e096 by Sebastian Bergmann and contributors.

E                                                                   1 / 1 (100%)

Time: 555 ms, Memory: 36.00MB

There was 1 error:

1) Doctrine\Tests\ORM\Functional\Ticket\GH6297Test::testIssue
Exception: [PHPUnit_Framework_Error_Notice] Undefined index: secondaryId

With queries:
6. SQL: '"ROLLBACK"' Params:
5. SQL: 'INSERT INTO groups (primary_id, secondary_id) VALUES (?, ?)' Params: 1, 'test'
4. SQL: '"START TRANSACTION"' Params:
3. SQL: 'CREATE TABLE groups (primary_id INTEGER NOT NULL, secondary_id VARCHAR(255) NOT NULL, PRIMARY KEY(primary_id))' Params:
2. SQL: 'CREATE INDEX IDX_1483A5E9FE54D947 ON users (group_id)' Params:
1. SQL: 'CREATE TABLE users (id INTEGER NOT NULL, group_id VARCHAR(255) NOT NULL, PRIMARY KEY(id), CONSTRAINT FK_1483A5E9FE54D947 FOREIGN KEY (group_id) REFERENCES groups (secondary_id) NOT DEFERRABLE INITIALLY IMMEDIATE)' Params:

Trace:
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:672
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:694
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:271
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/UnitOfWork.php:1003
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/UnitOfWork.php:371
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/EntityManager.php:359
/Users/fifteen/dev/doctrine2/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6297Test.php:46
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/Framework/TestCase.php:1120
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/Framework/TestCase.php:971
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/Framework/TestResult.php:709
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/Framework/TestCase.php:926
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/Framework/TestSuite.php:728
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/Framework/TestSuite.php:728
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:521
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/TextUI/Command.php:188
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/src/TextUI/Command.php:118
/Users/fifteen/dev/doctrine2/vendor/phpunit/phpunit/phpunit:52

/Users/fifteen/dev/doctrine2/tests/Doctrine/Tests/OrmFunctionalTestCase.php:789

Caused by
PHPUnit_Framework_Error_Notice: Undefined index: secondaryId

/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:672
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:694
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:271
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/UnitOfWork.php:1003
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/UnitOfWork.php:371
/Users/fifteen/dev/doctrine2/lib/Doctrine/ORM/EntityManager.php:359
/Users/fifteen/dev/doctrine2/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6297Test.php:46

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.

@podorozhny awesome, thanks!

Closing as invalid as per #6301 findings


User Managed Identity Role Assignment

Hi guys,
I assume these are content placeholders? Could the specific roles assignments required be specified please.

Thanks
Dan

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

ID: 6a9c74a8-9f1a-3d3d-3aed-f8ec45f92e05
Version Independent ID: 01e98043-dc80-490e-a761-8d558ff4e6df
Content: Use a managed identity in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/use-managed-identity.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@DanGiffen
Yes, you are correct that the text "[add the role assignment for managed identity][add-role-assignment-for-managed-identity]" is a placeholder that should be replaced with the specific role assignment command for your environment.
To add the necessary role assignments for a managed identity in AKS, you will need to use the az role assignment create command1. The specific roles and scopes required will depend on your environment and the resources you need to access.
For example, to assign the "Contributor" role to a managed identity named "my-managed-identity" at the subscription level, you would use the following command:
az role assignment create --assignee  --role "Contributor" --scope /subscriptions/<subscription-id23>
You will need to replace  and  with the appropriate values for your environment.
I hope this helps! Let me know if you have any further questions.


Bug: Integration search focus jumps after two chars have been entered.

To reproduce:

Type 3 letters into search
Focus will have jumped down to list after 2

https://www.loom.com/share/1a88eaad1c494a8a813f92b3400134eb?sid=c9cabf66-6794-4eb4-9c38-533e552495b2

moving to done


Get our test coverage up to nearly 100%

We should have our test coverage at nearly 100% before we give that code to them.

This is related to issue #45, which is focusing on the lack of coverage of the UserListService.

I think our coverage is really good these days, so I'm closing this.


Creating models and migrations

In this pull request, I have made the following changes:

Added Active Storage and updated the Swagger documentation.

Created the following migrations:
- Users
- Doctors
- Reservations

Installed Devise and set it up.

Installed CanCanCan and created an ability file.

Created the following models:
- User
- Doctor
- Reservation
- Ability

Please let me know if you have any questions or need further clarification.

Hi @SaveryIV
Well done There is nothing else to say other than... it's time to merge it
Congratulations! 🎉


Make REPL mobile-friendly

Via Twitter. It's a bit of a tricky problem — a REPL is never going to be a great experience on mobile — but we can probably do better than the status quo

I'm not super interested in editing things and having the full REPL experience, but to just be able to read the code and see some output would be nice.
I might try my hand at making the font a little smaller and turning it read-only

My fairphone can't be used for REPL o.O
Plus, note the collisions between logo and navigation.

The REPL now appears on mobile — closing this


build: revert back to the build output prior to the ts migration

Description
Reverting the file structure, used before the changes introduced to the build-step in the migration to typescript. This change inadvertently introduced a breaking change, requiring users to import the stylesheets from the dist folder.
Old: import from 'react-credit-cards-2/es/styles-compiled.css'
Borked New: import from 'react-credit-cards-2/dist/es/styles-compiled.css'
As such, a patch was released in #12 that updated the docs, with the patched imports.
This PR, matches the build-step to what was being used previously. Going forward, those who install the package should be able to use it as a drop-in replacement for the main package of react-credit-cards.
File structure
Accordingly, this is the file structure that is being re-introduced into the build process.
es/
└─ /* Contains the bundled esm code, including the .scss and compiled .css stylesheets. */
lib/
└─ /* Contains the bundled commonjs code, including the .scss and compiled .css stylesheets. */
index.d.ts
└─ /* The typescript type declarations file. */

TLDR; This restores the importing of the stylesheets to what it was before.

https://github.com/felquis/react-credit-cards-2/issues/12#issuecomment-1492643762
As mentioned in the comment, the imports for the stylesheets in 1.0.0 and going forwards will be from the /dist/ folder.


Rename skip to setFrame in Sprite class

Closes #523
The name update makes the name consistent with the implementation. This should allow callers to have a better expectation of what actually happens when it is called.
Will need a corresponding adjustment in OPHD, where the method is used.

Oops, forgot to save and commit the parameter rename in the header file. Fixed now.


Masonry layout width overflow issue on "Load More"

Describe the bug
A clear and concise description of what the bug is.

Initially when searching for something on ccsearch the masonry layout displays them perfectly.
Even when removing and adding the filter sidebar doesn't break the layout
But if I remove the sidebar, then click Load More option, it loads new images in the extra width as well
And when I activate the filter sidebar after Load More, I get an overflow in x direction

To Reproduce
Steps to reproduce the behavior:

Go to 'https://ccsearch.creativecommons.org/'
Search for anything in the search bar. Ex: happy
Remove the filter sidebar, by clicking the filter icon beside search icon
Scroll to the bottom of the page, and click Load more
Scroll to the top and click the filter icon again

Expected behavior

I think there should be no overflow in the x-direction, since there is already scrolling in y-direction as well, which makes it inconvenient

Screenshots
Initially with sidebar on

Initially with sidebar off

Scroll to bottom and click Load More

Activate sidebar after Load More

Desktop (please complete the following information)

OS: Ubuntu 18.04
Browser: Google Chrome
Version: 78.0.3904.108

Smartphone (please complete the following information)
Haven't tested

Device: (ex. iPhone6)
OS: (ex. iOS8.1)
Browser (ex. stock browser, safari)
Version (ex. 22)

Additional context
If this really is a bug, I would like to take this up.
Also, if any additional information like where the files for the masonry layout can be found, it would be really helpful

I would like to take this up @brenoferreira.

Go ahead @nilshah98

In the new masonry layout this issue is resolved.
It actually looks pretty good and slick with the new Vocabulary components, great work!
Addendum:

Worked on this issue before the new Vocabulary components were added.
Realised that vue-masonry was bound to it's parent container width, and even if that container width changed, the masonry-grid width wouldn't change.
On further introspection realised that the resize event or update event isn't being called in DOM, since we are using display:none and not actually making changes to the size of the components.

Alternative solution could have been to slide the sidebar out, and actually cause a layout change to trigger the event.

Thanks @nilshah98! Should we close this?

Yep, we can close this.


u-boot failed - help with recovery

Hi,
I have 2 rock64 SBCs and one of them failed to flash because of a power outage.
That SBC is now powering up with all lights constantly on, but it will not boot any SD card.
I am looking for a way to re-flash the device either via the SD slot, USB port or GPIO if possible. else the device is pretty much a brick now.
If anyone has a wiki, video, or any kind of tutorial/explanation I will really appriciate it.
And if I successfuly recover the device, I will share my steps and write a wiki.
Thanks

What does fail? How did you flash it?

I am not certain what fails.
but imagine you have an sd card with the linux-u-boot to allow USB boot.
and the power goes off in the middle of the flashing process.
saddly, thats what happened to me.
I tried loading the flashing sd card again, and also tried the erase u boot img.
but no matter what the device will not boot into any thing anymore. not linux not flashing tools.
any suggestions?

Shorten with cable SPI_CLK with GND on PI-2 bus, it will make to skip to use SPI. When you boot system from SD/eMMC, remove cable, and you should be able to execute rock64_erase_spi_flash.sh.

That would be amazing, I will try it right now.
I will update with the status very soon.
Thanks

Alright, I successfully booted ubuntu, and the device is not a brick. YEAH!!!
Just getting it back to work is exciting ^_^, and I really appreciate your help on this.
But I do get the following error when trying to run the flash scripts:

Doing this will overwrite data stored on SPI Flash
and it will require that you use eMMC or SD
as your boot device.
Type YES to continue or Ctrl-C to abort.
YES
loader partition on MTD is not found

please let me know if you have any suggestions regarding this.
Thank you so much.

It is likely that spi is not detected due to shorten of clk/gnd. Try to remove cable 3s after clicking the reset :)

But @jonnyfoxy my help does not come cheap! Please help and extend this recipe with recovering and procedure for SPI-CLK/GND :) https://github.com/ayufan-rock64/linux-build/blob/master/recipes/flash-spi.md. I will happily accept a Pull Request to this repo that makes everyone else facing the same problem to not go through the same hurdles.

Of course I will share with the community!
As I said in the first message, I'll update the wiki with the and send a pull request after a fully successful flash.

WORKED!!!
I released the ground 2-3 seconds after rebooting, the SPI is being currently flashed.
I'll add to your wiki very soon.
Thanks a lot, this has been a life savior.

To not have to do it again, I added this simple script: https://github.com/ayufan-rock64/linux-package/blob/master/root-rock64/usr/local/sbin/rock64_reset_spi_flash.sh. It is gonna be released with next version of images :)
We should likely propose to use this one.

But is this going to solve the problem when people flash their SBC and the power gets cutoff in the middle of the process?

Well, how it could? :) No.

No need to pull after some time, but rather relay on the process. Pull at
any time, as long as you execute this :)
On Sun, Jul 8, 2018 at 2:08 AM, jonnyfoxy<EMAIL_ADDRESS>wrote:

Haha, ^_^
I am not quite sure whats the difference rock64_reset_spi_flash.sh
introduces.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ayufan-rock64/linux-build/issues/234#issuecomment-403251233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTpQch-d53yp3FMM1RLZpueaKUPp3paks5uEU16gaJpZM4VGgOT
.

Oh nice!
In the meantime I added the instructions for this ^_^
I sent you a pull request to update the flash-spi.md file.
Let me know if you think its ok.
And again thanks for all the great help!   :D

@jonnyfoxy Hello, I cannot find a link to download rock64_erase_spi_flash.sh, could you show it to me? Thanks a lot!


Tests to make sure right event is returned when all of the events have the same timestamps - MSC3030

Tests to make sure right event is returned when all of the events have the same timestamps.
Synapse changes: https://github.com/matrix-org/synapse/pull/13658
Part of https://github.com/matrix-org/matrix-spec-proposals/pull/3030

Thanks for the review @squahtx 🦝


do I need 2 homebridge instances?

I use homebridge at a ubuntu server. I have Eve installed at my iPhone. Working ok. Now I want also to use Eve at my iPad (using the same bridge), but it does not (re)act on siri commands. Do I need to have 2 homebridge instances running at ubuntu server and if so, howto setup?

Are you signed into the same iCloud account on both iOS devices?

No I am not, besides later (when it functionates at my iPad and iPhone) I want to have it working also at the device of my wife

HomeKit sharing is done through iCloud accounts and sharing. If you want to share with a separate account, you'll need to go to HomeKit in the Settings app and "invite user".

Ah good tip, It is working now at all devices

Awesome!


"FATAL: no pg_hba.conf entry for host"

On behalf of Jimmy Hurst, AAFES:
There was a server outage last night. All applications were affected. Harvest has successfully restarted, and the Openmake KB service appears to have started but builds generated by Harvest are not reaching the remote build servers. KB server has been rebooted. This did not help.

Stopping and restarting Postgres database service on KB server did not resolve the problem.
Urgent help is needed to get Openmake working again.

It sounds like the KB Server is not starting all the way.  Please send us the pg_hba.conf.  It should be under the Postgres Install directory.  We need to add the server ip to that file.

Thanks for the quick response.  Will do.
Thanks 😊
Melinda Skelton
Sr Principal Support Engineer
Broadcom, Inc
5465 Legacy Drive Suite 700 | Plano, TX 75024-3106
Office: +11240 |<EMAIL_ADDRESS>From: Steve Taylor<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 11:25 AM
To: OpenMake-Software/Meister<EMAIL_ADDRESS>Cc: meliske<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
CAUTION: This email originated from outside of Broadcom. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
It sounds like the KB Server is not starting all the way. Please send us
the pg_hba.conf. It should be under the Postgres Install directory. We need
to add the server ip to that file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_issues_10-23issuecomment-2D461520361&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=QtuCKid0cwSJc6g9DiR8p7Ea_Yd-WEAVx7YL4P8YZQo&s=d1AL61VvRG4gV2tNqRQq3Uhpf4a9GMRrF2JAs0QsBq4&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AafmrczTVeO-5FVA8b5uJLJy9PTWI46j1Vks5vLGF1gaJpZM4anxfo&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=QtuCKid0cwSJc6g9DiR8p7Ea_Yd-WEAVx7YL4P8YZQo&s=h-cJTVHiiHkvZcSfYcYtTI9y6GjzND1dmkwuQdKIIws&e=
.[image: Image removed by sender.]

See attached:
pg_hba.conf.txt

pg_hba.conf.txt
Try this update.  It should allow that address to connect.  Put the updated pg_hba.conf in place and restart the Postgres Service.

Thanks!! He’s trying it now.
Any clue why this has been working fine and then all of a sudden the
problem crops up last night?
Noticed he has his loopback address in there.  Possibly something changed
with DNS???
Let me know what you think.
Thanks 😊
Melinda Skelton
Sr Principal Support Engineer
Broadcom, Inc
5465 Legacy Drive Suite 700 | Plano, TX 75024-3106
Office: +11240 |<EMAIL_ADDRESS>From: Steve Taylor<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 12:09 PM
To: OpenMake-Software/Meister<EMAIL_ADDRESS>Cc: meliske<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
CAUTION: This email originated from outside of Broadcom. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
pg_hba.conf.txt
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_files_2842137_pg-5Fhba.conf.txt&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=zsYnhUPU6lIQbdKXdrf-kVw47P9ToUH8Opq4haYdwUY&s=kntK50N6ScuRQoHoge689S2HO5cOIUF6mC8f27MxBlw&e=
Try this update. It should allow that address to connect. Put the updated
pg_hba.conf in place and restart the Postgres Service.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_issues_10-23issuecomment-2D461536037&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=zsYnhUPU6lIQbdKXdrf-kVw47P9ToUH8Opq4haYdwUY&s=Z0BjdUZuwdmdDsZAVJedOIyB6aQPJdX2kwMHXnfBtM4&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AafmrVivcWwYTOfqaIfcddnNIAMs1celks5vLGvOgaJpZM4anxfo&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=zsYnhUPU6lIQbdKXdrf-kVw47P9ToUH8Opq4haYdwUY&s=sfwB6nnJsrVjB7P916NPgWUWANBO0XHglCwVqxFmHtI&e=
.[image: Image removed by sender.]

Looks like something in the reboot caused the IP to change.

Possibly – if it’s on DHCP, and not a static address, it very well could
have changed and DNS hasn’t caught up yet.
Jimmy says that Postgres got hung and would not start.  Would the next
option be to try the IP address that was in the original error message?
"<IP_ADDRESS>"
/32 after it?  Or /0 maybe?
Let me know what you think.
Thanks 😊
From: Steve Taylor<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 12:16 PM
To: OpenMake-Software/Meister<EMAIL_ADDRESS>Cc: meliske<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
CAUTION: This email originated from outside of Broadcom. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
Looks like something in the reboot caused the IP to change.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_issues_10-23issuecomment-2D461538422&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=s95KjgQgBz6jOJ2-5AbzAeuy-InCkvyGcFic7WqUrQk&s=-0RNrSlsAej2RFz14r91UBeduPwagDvN7q-zsBYdRcQ&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AafmrT-2DXfY0NNtlc4SZj2MfbbMVsB1pZks5vLG1ugaJpZM4anxfo&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=s95KjgQgBz6jOJ2-5AbzAeuy-InCkvyGcFic7WqUrQk&s=REets7ccw6JKKhZrOgPv7c1mYV9BppVSdh5VLFyLpLU&e=
.[image: Image removed by sender.]

Looks like second try to start postgres with <IP_ADDRESS>/0 was successful.
He’s trying the KB server now.
Thanks 😊
From: Melinda Skelton<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 12:22 PM
To: 'OpenMake-Software/Meister' <
<EMAIL_ADDRESS>'OpenMake-Software/Meister'<EMAIL_ADDRESS>Cc: 'meliske'<EMAIL_ADDRESS>'Author' <
<EMAIL_ADDRESS>Subject: RE: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
Possibly – if it’s on DHCP, and not a static address, it very well could
have changed and DNS hasn’t caught up yet.
Jimmy says that Postgres got hung and would not start.  Would the next
option be to try the IP address that was in the original error message?
"<IP_ADDRESS>"
/32 after it?  Or /0 maybe?
Let me know what you think.
Thanks 😊
From: Steve Taylor<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 12:16 PM
To: OpenMake-Software/Meister<EMAIL_ADDRESS>Cc: meliske<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
CAUTION: This email originated from outside of Broadcom. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
Looks like something in the reboot caused the IP to change.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_issues_10-23issuecomment-2D461538422&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=s95KjgQgBz6jOJ2-5AbzAeuy-InCkvyGcFic7WqUrQk&s=-0RNrSlsAej2RFz14r91UBeduPwagDvN7q-zsBYdRcQ&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AafmrT-2DXfY0NNtlc4SZj2MfbbMVsB1pZks5vLG1ugaJpZM4anxfo&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=s95KjgQgBz6jOJ2-5AbzAeuy-InCkvyGcFic7WqUrQk&s=REets7ccw6JKKhZrOgPv7c1mYV9BppVSdh5VLFyLpLU&e=
.[image: Image removed by sender.]

Jimmy’s response after restarting KB server:
I’ve restarted that successfully too. I’m also restarting our 3 main remote
agent services..I also noticed the server.out file only contains 1 line
now..

Thu Feb 07 12:21:06 CST 2019 : Rebuilt Administrators Group

So maybe the error message hadn’t come up before.. J
Which log files do we need.
If this is what we suspect, should I have him try to ping the agent
machines from the KB server to see if they can connect and respond with the
right IP addresss?
Thanks 😊
From: Steve Taylor<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 12:09 PM
To: OpenMake-Software/Meister<EMAIL_ADDRESS>Cc: meliske<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
CAUTION: This email originated from outside of Broadcom. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
pg_hba.conf.txt
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_files_2842137_pg-5Fhba.conf.txt&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=zsYnhUPU6lIQbdKXdrf-kVw47P9ToUH8Opq4haYdwUY&s=kntK50N6ScuRQoHoge689S2HO5cOIUF6mC8f27MxBlw&e=
Try this update. It should allow that address to connect. Put the updated
pg_hba.conf in place and restart the Postgres Service.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_issues_10-23issuecomment-2D461536037&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=zsYnhUPU6lIQbdKXdrf-kVw47P9ToUH8Opq4haYdwUY&s=Z0BjdUZuwdmdDsZAVJedOIyB6aQPJdX2kwMHXnfBtM4&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AafmrVivcWwYTOfqaIfcddnNIAMs1celks5vLGvOgaJpZM4anxfo&d=DwMCaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=zsYnhUPU6lIQbdKXdrf-kVw47P9ToUH8Opq4haYdwUY&s=sfwB6nnJsrVjB7P916NPgWUWANBO0XHglCwVqxFmHtI&e=
.[image: Image removed by sender.]

Put in both the loopback and any address and let's see if Postgres starts up correctly.
IPv4 local connections:
host    all         all         <IP_ADDRESS>/32          md5
host    all         all         <IP_ADDRESS>/0             md5
IPv6 local connections:
host    all         all         ::1/128               md5

Will give it a try.
Thanks 😊
From: Steve Taylor<EMAIL_ADDRESS>Sent: Thursday, February 7, 2019 12:31 PM
To: OpenMake-Software/Meister<EMAIL_ADDRESS>Cc: meliske<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [OpenMake-Software/Meister] "FATAL: no pg_hba.conf entry for
host" (#10)
CAUTION: This email originated from outside of Broadcom. Do not click
links or open attachments unless you recognize the sender and know the
content is safe.
Put in both the loopback and any address and let's see if Postgres starts
up correctly.
IPv4 local connections:
host all all <IP_ADDRESS>/32
https://urldefense.proofpoint.com/v2/url?u=http-3A__<IP_ADDRESS>_32&d=DwQFaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=Oq9pSxc8h8XDimB4hGNhf1iwApgLw23XXPuSoH8QddM&s=EB-QrViFn6K7A9-7K7xsqB6qT03RV8bT8E8elC3sUIk&e=
md5
host all all <IP_ADDRESS>/0
https://urldefense.proofpoint.com/v2/url?u=http-3A__<IP_ADDRESS>_0&d=DwQFaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=Oq9pSxc8h8XDimB4hGNhf1iwApgLw23XXPuSoH8QddM&s=s73okZ6J0Pn0gkjYmtj5Ker-7aSliwY5DyaMHgaKCUQ&e=
md5
IPv6 local connections:
host all all ::1/128 md5
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OpenMake-2DSoftware_Meister_issues_10-23issuecomment-2D461543643&d=DwMFaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=Oq9pSxc8h8XDimB4hGNhf1iwApgLw23XXPuSoH8QddM&s=DUEgiHhIF3JHlNYaz4kdl5AgbQNQDkxUvYrEDKnGhXM&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AafmrSUcw3tQkEJOgEIzbQKd0KG1kACOks5vLHDlgaJpZM4anxfo&d=DwMFaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=yiGyVdE1Mnr5bl36UdjAqcFpn1xvwaTNkLMo508Xu7c&m=Oq9pSxc8h8XDimB4hGNhf1iwApgLw23XXPuSoH8QddM&s=3TLvueH7bBKxDLQO7bQ9h3AVi8w85DF_2GH1BoIatj0&e=
.[image: Image removed by sender.]

I heard from the customer that this is resolved.  Aside from the Postgres error we were seeing there was a networking problem that was preventing build requests from Harvest from reaching the Openmake KB server.  That's now corrected so Openmake is working normally now.  Thanks so much for your help :)


Add Spark Thrift Server V2.4.7 helm charts

In the common.sh script of PKD, it expects POD_SERVICE_ACCOUNT ==  hpe-${POD_NAMESPACE}, to set ADMIN_SECRET to 'user' otherwise it is set to denied if a different service account. I don't know whether it affects thrift-server. It was an issue in case of hivemetastore and so I did not create a new service-account.  In case, you've already taken a look at this and you don't need to stick to using the hpe-${POD_NAMESPACE}, ignore the comment.


[SD CHANGE] Type 1 hypothesis

On behalf of the CCCS
SD page 73 para 326 A.1.1. Type 1 Hypothesis. Search terms must include search criteria disclosed by the developer as part of AVA Documentation (see para 319). See Network Device RFI 202002 and RFI 202015 as an example.
Specifically, include wording on the applying vulnerability analysis to the entire product and not just the evaluated configuration.
NDcPP example:
"The evaluator shall use the components list and determine that the TOE and its components are free of unmitigated vulnerabilities. It is expected that all remotely exploitable vulnerabilities present in the network device shall be considered as part of vulnerability assessment ("network device" is used to refer to the entire device and is not limited to the claimed security functionality)."
Also include wording on keeping search terms non-public:
_"The search criteria to be used when searching the sources shall include:
• The list of software and hardware components that compose the TOE
• The TOE name (including model information as appropriate)
As the search terms can contain proprietary information and there is a possibility that this information could be used by attackers to identify potential attack surfaces, there is no expectation that search terms containing proprietary information are published in any public-facing document"._

Change implemented.


fix(rulesMeta): update invalid rule docs url in rule's metadata

What is the purpose of this pull request?

[ ] Documentation update
[x] Bug fix
[ ] New rule
[ ] Changes an existing rule
[ ] Add autofixing to a rule
[ ] Other, please explain:

What changes did you make? (Give an overview)
When use eslint's node.js api to get rule's metadata(CLIEngine.getRules()), unfortunately, this plugin's rule's doc url is invalid(404). for example:
https://github.com/xjamundx/eslint-plugin-promise/tree/v4.1.1/docs/rules/prefer-await-to-then.md
which should be modified as
https://github.com/xjamundx/eslint-plugin-promise/blob/master/docs/rules/prefer-await-to-then.md
@xjamundx @macklinu   please take a look at this:)

Thanks, don't know what this does, but it seems good.


Upgrade dependencies for v4.3

package.json
Electron

[x] Electron and Spectron (#892)
[ ] electron-builder (#906)

Build tools

[x] Babel (#903)
[x] Webpack (#903)

Test tools

[ ] ESLint (#906)
[ ] Other test tools (#906)

Others

[ ] Other devDependencies (#906)

src/package.json
React

[ ] React (#906)
[ ] React-Bootstrap (#906)

Others

[ ] Other dependencies (#906)

build system

[ ] Remove yarn (like discussed on the chat one month ago)

I added a link to the conversation we had about removing the deprecated yarn build tool. ^


Notification highlights no longer applied

Since e321022e02092a63d5f352bd8db89c61ab86ea2d notification highlights no longer seem to be applied. I see they were moved into the colors/ directory which I'd have assumed would work like ftplugin or syntax but does not I don't think. I couldn't find much information on it in the docs but from a brief look online at a few plugins it seems that colorschemes tend to place their code in that folder but other plugins that apply some highlighting use ftplugin or syntax. Placing the commands in either subdir for neogit in my config re-applies the highlights.
Alternatively this could be an issue related to the colors dir and using :h packages but I think this is less likely since my colorscheme which uses that dir works fine.
As another small test I created a colors dir in my &rtp and it doesn't load the vimscript file in the colors directory.

A little more digging and I think the colors/ dir is where colorschemes declare themselves rather than where highlight code goes. If I run colorscheme <tab> I now see neogit listed as a colorscheme

Git tells me this commit introduced the bug: f8ac2f92 (my first use of git bisect :grin:) I'll revert that for now, fixing the structure comes later (I don't know either where to put those highlight-definitions actually... neogit.vim? syntax/<notif-filetype-here>.vim?)


Fix req.logout() is not found passport

When i logout, debug show error req.logout() is not found, i fix this and update code

Thanks a lot for you PR @hoangtrongphuc , I've merged it into master! Can you please verify that it works?

Yes, work like a charm.


Added category and label for bi events

I have added category and label fields for BI events. This needs a few changes as we need a few inputs from @nasthagiri
@rohan-dhamal-clarice @nasthagiri @hanningni - Please review.
JIRA: https://openedx.atlassian.net/browse/MOB-1580

I have updated the code as per comments from  Michael Svetchnikov at https://openedx.atlassian.net/browse/MOB-1580?focusedCommentId=104285&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-104285.
Please review - @rohan-dhamal-clarice @nasthagiri @hanningni

Looks good!


Can't download from Rule34 Paheal due to file not found on server despite able to see the image preview

As the title suggest, there's a problem from downloading in R34 paheal source. The image previews and all that can be seen and load normally but the moment I try to download it from the download tab, all it says is "File not found on the server".
I tried to download in Rule34 xxx and it works there. Only paheal has this prob from what I can tell

im using a different downloader but it also doesnt work for me on that one
seems supsicious that neither one seems to work currently
maybe their servers or something?


Add auto translate support

Many players want mods or whole LifePlay in their native language.
As whole life play consists of "mods" (even the base game) we could use the builder to translate the game.
Google (and probably others) offer a cloud translation API. Like used by XUnity.Autotranslator.
To be able to translate the game the builder would have to:

Translate the ACTION_NAME of lpaction files
Translate the STAT_NAME in lpstat files (watch ;-syntax)
Translate the NAME+DESC in LPQUEST files
Translate all strings found in LPSCENE, LPTEXT, LPDESC files

For the later the interpolation has to be kept valid.
(The translators try to translate things like "<Player.name>" to "" (GER) eg.)

templates would cover this sort of

templates would cover this sort of

Templates? Would do for manual translation in my mind, or how should that work with all current files?
I was really aiming for auto tranalation ;)
Think this might be interesting is a somewhat far future. just wrote it down not to forget it ;)

Templates? Would do for manual translation in my mind, or how should that work with all current files?
I was really aiming for auto tranalation ;)
Think this might be interesting is a somewhat far future. just wrote it down not to forget it ;)

Ah, auto translate is another story. Not sure can leave open for now.

Ah, auto translate is another story. Not sure can leave open for now.

Reference: https://cloud.google.com/translate
500K characters free per month

Reference: https://cloud.google.com/translate
500K characters free per month


Drop CODEOWNERS file

We feel it is not needed for this repo. As CITIATION.cff covers the thing we want covered

donezo, can be closed


Run tests on master against 3.11

Update tox on master to run against python 3.11
ISO6 stays on 3.9

Hey team! Please add your planning poker estimate with Zenhub @FloLey @Hugo-Inmanta @wouterdb


Start button not available

The problem
Dear all,
I have some issue to start my Miele dishwasher via the entity Dishwasher start.  Via the smartphone app from Miele this is possibe. If I power the dishwasher via the smartphone application, the after that a button is visible where I can push and start the diswasher.
It is necessary to activate the feature mobile start to use that functionality and I did actiuvate this feature:
The status of enity Dishwasher Mobiler Start and Mobile Start is activated!
If I try to power the Dishwasher via HA entity (switch.dishwasher_eingeschaltet), then this switch goes directly back to of and the entity (button.dishwasher_start) is shown but is is not activated (symbol is grey).
So what is the reason for that, what is necessary to control the dishwasher via Home Assistant entities?

Version of miele integration having the issue?
G7160
Version of Home Assistant Core having the issue?
2023.9.2
Anything in the logs that might be useful for us?
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.9.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.5",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.45",
    "supervisor": "2023.09.2",
    "host_os": "Home Assistant OS 10.5",
    "docker_version": "23.0.6",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "waste_collection_schedule": {
      "version": "1.42.0",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "bs4"
      ]
    },
    "dyson_local": {
      "version": "0.16.4-4",
      "requirements": [
        "libdyson==0.8.11"
      ]
    },
    "frigate": {
      "version": "4.0.0",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "homematicip_local": {
      "version": "1.41.0",
      "requirements": [
        "hahomematic==2023.9.0"
      ]
    },
    "alexa_media": {
      "version": "4.6.5",
      "requirements": [
        "alexapy==1.26.8",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "icloud3": {
      "version": "3.0",
      "requirements": []
    },
    "miele": {
      "version": "0.1.15",
      "requirements": [
        "flatdict==4.0.1",
        "pymiele==0.1.6"
      ]
    },
    "dyson_cloud": {
      "version": "0.15.0",
      "requirements": [
        "libdyson==0.8.7"
      ]
    },
    "landroid_cloud": {
      "version": "3.1.0b2",
      "requirements": [
        "pyworxcloud==4.0.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "miele",
    "name": "Miele",
    "codeowners": [
      "@astrandb"
    ],
    "config_flow": true,
    "dependencies": [
      "application_credentials",
      "http"
    ],
    "documentation": "https://github.com/astrandb/miele",
    "homekit": {},
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "issue_tracker": "https://github.com/astrandb/miele/issues",
    "loggers": [
      "pymiele"
    ],
    "requirements": [
      "flatdict==4.0.1",
      "pymiele==0.1.6"
    ],
    "ssdp": [],
    "version": "0.1.15",
    "zeroconf": [],
    "is_built_in": false
  },
  "data": {
    "info": {
      "manufacturer": "Miele",
      "model": "G7160"
    },
    "data": {
      "ident|type|key_localized": "Device type",
      "ident|type|value_raw": 7,
      "ident|type|value_localized": "Dishwasher",
      "ident|deviceName": "K\u00fcchensp\u00fcli",
      "ident|protocolVersion": 4,
      "ident|deviceIdentLabel|fabNumber": "**REDACTED**",
      "ident|deviceIdentLabel|fabIndex": "65",
      "ident|deviceIdentLabel|techType": "G7160",
      "ident|deviceIdentLabel|matNumber": "11509610",
      "ident|deviceIdentLabel|swids|0": "5417",
      "ident|deviceIdentLabel|swids|1": "20527",
      "ident|deviceIdentLabel|swids|2": "25175",
      "ident|deviceIdentLabel|swids|3": "25293",
      "ident|deviceIdentLabel|swids|4": "25372",
      "ident|deviceIdentLabel|swids|5": "4928",
      "ident|deviceIdentLabel|swids|6": "20475",
      "ident|deviceIdentLabel|swids|7": "25266",
      "ident|xkmIdentLabel|techType": "EK057",
      "ident|xkmIdentLabel|releaseVersion": "08.23",
      "state|ProgramID|value_raw": 3,
      "state|ProgramID|value_localized": "ECO",
      "state|ProgramID|key_localized": "Program name",
      "state|status|value_raw": 3,
      "state|status|value_localized": "Programme selected",
      "state|status|key_localized": "status",
      "state|programType|value_raw": 0,
      "state|programType|value_localized": "Program",
      "state|programType|key_localized": "Program type",
      "state|programPhase|value_raw": 1792,
      "state|programPhase|value_localized": "",
      "state|programPhase|key_localized": "Program phase",
      "state|remainingTime|0": 3,
      "state|remainingTime|1": 15,
      "state|startTime|0": 0,
      "state|startTime|1": 0,
      "state|targetTemperature|0|value_raw": -32768,
      "state|targetTemperature|0|value_localized": null,
      "state|targetTemperature|0|unit": "Celsius",
      "state|targetTemperature|1|value_raw": -32768,
      "state|targetTemperature|1|value_localized": null,
      "state|targetTemperature|1|unit": "Celsius",
      "state|targetTemperature|2|value_raw": -32768,
      "state|targetTemperature|2|value_localized": null,
      "state|targetTemperature|2|unit": "Celsius",
      "state|coreTargetTemperature|0|value_raw": -32768,
      "state|coreTargetTemperature|0|value_localized": null,
      "state|coreTargetTemperature|0|unit": "Celsius",
      "state|temperature|0|value_raw": -32768,
      "state|temperature|0|value_localized": null,
      "state|temperature|0|unit": "Celsius",
      "state|temperature|1|value_raw": -32768,
      "state|temperature|1|value_localized": null,
      "state|temperature|1|unit": "Celsius",
      "state|temperature|2|value_raw": -32768,
      "state|temperature|2|value_localized": null,
      "state|temperature|2|unit": "Celsius",
      "state|coreTemperature|0|value_raw": -32768,
      "state|coreTemperature|0|value_localized": null,
      "state|coreTemperature|0|unit": "Celsius",
      "state|signalInfo": false,
      "state|signalFailure": false,
      "state|signalDoor": false,
      "state|remoteEnable|fullRemoteControl": true,
      "state|remoteEnable|smartGrid": false,
      "state|remoteEnable|mobileStart": true,
      "state|ambientLight": null,
      "state|light": null,
      "state|elapsedTime|0": 0,
      "state|elapsedTime|1": 0,
      "state|spinningSpeed|unit": "rpm",
      "state|spinningSpeed|value_raw": null,
      "state|spinningSpeed|value_localized": null,
      "state|spinningSpeed|key_localized": "Spin speed",
      "state|dryingStep|value_raw": null,
      "state|dryingStep|value_localized": "",
      "state|dryingStep|key_localized": "Drying level",
      "state|ventilationStep|value_raw": null,
      "state|ventilationStep|value_localized": "",
      "state|ventilationStep|key_localized": "Fan level",
      "state|plateStep": {},
      "state|ecoFeedback|currentWaterConsumption|unit": "l",
      "state|ecoFeedback|currentWaterConsumption|value": 0.0,
      "state|ecoFeedback|currentEnergyConsumption|unit": "kWh",
      "state|ecoFeedback|currentEnergyConsumption|value": 0.0,
      "state|ecoFeedback|waterForecast": 0.4,
      "state|ecoFeedback|energyForecast": 0.5,
      "state|batteryLevel": null
    },
    "actions": {
      "processAction": [],
      "light": [],
      "ambientLight": [],
      "startTime": [],
      "ventilationStep": [],
      "programId": [],
      "targetTemperature": [],
      "deviceName": true,
      "powerOn": true,
      "powerOff": false,
      "colors": [],
      "modes": [],
      "runOnTime": []
    },
    "programs": [
      {
        "programId": 3,
        "program": "ECO",
        "parameters": {}
      },
      {
        "programId": 6,
        "program": "Auto",
        "parameters": {}
      },
      {
        "programId": 10,
        "program": "Gentle",
        "parameters": {}
      },
      {
        "programId": 13,
        "program": "QuickPowerWash",
        "parameters": {}
      },
      {
        "programId": 1,
        "program": "Intensive",
        "parameters": {}
      },
      {
        "programId": 44,
        "program": "PowerWash",
        "parameters": {}
      },
      {
        "programId": 11,
        "program": "ExtraQuiet",
        "parameters": {}
      },
      {
        "programId": 2,
        "program": "Maintenance programme",
        "parameters": {}
      },
      {
        "programId": 0,
        "program": "",
        "parameters": {}
      },
      {
        "programId": 0,
        "program": "",
        "parameters": {}
      },
      {
        "programId": 0,
        "program": "",
        "parameters": {}
      },
      {
        "programId": 0,
        "program": "",
        "parameters": {}
      },
      {
        "programId": 0,
        "program": "",
        "parameters": {}
      },
      {
        "programId": 0,
        "program": "",
        "parameters": {}
      }
    ],
    "id_log": [],
    "local_mappings": {}
  }
}

Additional information
No response

I Think i have the same issue.
I can turn on/off the dishwasher and read sensors from the integration. But the start/stop buttons is always unavailable.
I guess the expected behavior is those buttons to become available when the dishwasher is on?
The "Mobile start" option is enabled on the dishwasher an I can start/stop it from the Meile Android application.
Diagnostics:
miele-Dishwasher.json.txt

The availability of the on and off buttons is controlled by the API. Currently the API reports:
    "actions": {
      "processAction": [],

The empty processAction list means that the buttons are disabled.
The documentation https://www.miele.com/developer/assets/API_V1.x.x_capabilities_by_device.pdf indicates that dishwashers generally support on/off/pause commands. But please see the notes at the bottom of the page.
The integration checks with the API if the buttons should be available at the moment and flags the availability accordingly.
The 3rd party API is far from perfect and actual support for the features is varying between models and product generations.
 If I activate mobile start the HA power switch works as expected.
The integration does it's best with the info from the API.

Thanks for the quick reply :)
So the list of available actions is populated by when receiving the response of the  "GET actions" request?
If yes, do the integration poll/update this list with some interval or is only called when setting up the integration? The reason I ask is because the the dishwasher was configured to not accept remote start/stop when in installed the integration on HA.

The available actions are pushed from Miele servers as soon as there is a change of state in any of your devices. It usually updates within fractions of a second. As a backup the endpoint is polled every minute.

I'm experiencing the same problem, that Start and Stop are unavailable now after Power On, for the Washing Machine and the Dryer, but the Dishwasher is working as expected.
Was working with these appliances at the end of 2023, as I set up and tested the automations after we bought them. I update my HA instance with every release. Currently running HA 2024.5.2.
Debug log is attached, powering on the Washing Machine, wait for the UI to update and then disable Debug logging. Let me know if I can capture more for you.
home-assistant_miele_2024-05-09T22-24-04.118Z.log

Disregard. Today the Start buttons were available for both the washing machine and tumble dryer. Possibly the Core update yesterday 2024.5.3, but today available and automation worked as expected.

I also have the same problem,
i set my Maschines in to „smart grid“ and it worked for about one week. I checked back with our technician which told me that smartgrid should it make possible to control like on mobile start. Which as said before worked for about 7 days. Backofen is working fine so there should be no problem with cloud or my api connection.

The same issue here. Just got my new Miele washing machine. HA 2024.9.2 Miele 2024.8.1 Stop and Start buttons are grey. Mobile and Smartgrid are enabled.


Uses RST substitution to put badges in 1 line

Summary of changes
It might be some update to Github's RST renderer caused badges to display in multiple lines. uses RST substitution to put badges in 1 line.
Before the change

After the change

Pull Request Checklist

[ ] Changes have tests
[x] News fragment added in newsfragments/.
(See documentation for details)

Thank you very much @shenxianpeng! That was a good catch, I haven't noticed this before your PR.
I think that is a fine change, but I wonder if the best approach would not be to notify GitHub about this regression? (The rationale is that with this change we fix setuptools, but there is a lot of other repositories out there with the same setup; so if GitHub fixes it at the source, everyone benefits).
Should we notify GitHub first and then see their feedback before merging the change?

Thanks @shenxianpeng, I found an open discussion on the topic and reported the problem description there: https://github.com/orgs/community/discussions/114690

It might be some update to Github's RST renderer caused badges to display in multiple lines

Yes, I noticed this in many other of my projects. It also looks like they've broken rendering of other things and the overall support of RST on GitHub has always been quite limited.
So I think this is a good change for now but in the future it might make sense to migrate to MyST and regular Markdown...

Thank you @shenxianpeng, let's merge it for now... I don't know how long the discussion on the github site will take.


bump simd to 0.5.3 in order push fixes for stdsimd feature upstream

This is a follow-up of #548 to push simd upstream.

@s3bk How do we proceed from here? Are there any more steps that need to be taken? Please let me know. I am looking forward for this fix in my other crates.

Tbh I did not know that I can do that. I will be looking out for that in the future though. Thanks again!

when will this be published to crates.io?

@Maurdekye it is available now: https://crates.io/crates/pathfinder_simd/0.5.3