feature: Context Caching for Gemini Provider

I'm exploring the flutter/ai package and would like to understand how to implement Context Caching for specific content as described in the Gemini API documentation. I want to optimize token usage by caching repeated context or static content while generating responses dynamically for user-specific inputs. However, the documentation doesn't explicitly describe how this can be integrated with Flutter's AI package.

What would the scenario be here?

I have a document which serve as the main source of information for all of the user prompts. I want all the user prompts to be based on the document. In the vertex studio, by instructing the system to only look at the context provided, I was sort of able to achieve this. Rather than feeding this document for each user prompt I was investigating if there's an alternative and more optimised approach since several users will be using the same document (single main source of information)

Can you share some example code that shows what you have in mind?

I think this snippet in the Gemini docs should best describe it - https://ai.google.dev/gemini-api/docs/caching?lang=python#generate-content

After looking into it a bit more, content caching would need to be implemented in the model declaration under generative-ai-dart. There's already an issue to track it - https://github.com/google-gemini/generative-ai-dart/issues/187


Is it possible to support navigation in tags.html

First, thanks a lot for such a convenient package!
In current design, different tags cannot be navigated, is it possible to support side bar navigation?
Here is an example, https://manateelazycat.github.io/tags.html

We currently don't have any functionality for a sidebar at all. I suspect that you could render a sidebar like that with some fancy CSS trickery, or else definitely with a piece of JS that just crawls the page's H tags.


I use the Spleen 3D segmentation with MONAI tutorials, when using my data input torch.size([1,1,256,256,90]), it appears error.

Describe the bug
A clear and concise description of what the bug is.
Please only create issues here relating to the functioning of the tutorials. For all other questions/problems/bugs, please refer to MONAI's main repository. For MONAI bugs (not just a problem in the notebook), please create an issue. For questions, please use the Discussions tab.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Install '....'
Run commands '....'

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS
Python version
MONAI version [e.g. git commit hash]
CUDA/cuDNN version
GPU models and configuration

Additional context
Add any other context about the problem here.

Backend Qt5Agg is interactive backend. Turning interactive mode on.
Traceback (most recent call last):
File "C:\Users\S209850\Pycharm\plugins\python-ce\helpers\pydev\pydevd.py", line 1477, in _exec
pydev_imports.execfile(file, globals, locals)  # execute the script
File "C:\Users\S209850\Pycharm\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/Residual_Disease/3D_Pytorch/MONAI_npy_input/main_spleen.py", line 317, in
outputs = model(inputs)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\S209850\Anaconda3\lib\site-packages\monai\networks\nets\unet.py", line 237, in forward
x = self.model(x)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\container.py", line 139, in forward
input = module(input)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\S209850\Anaconda3\lib\site-packages\monai\networks\layers\simplelayers.py", line 126, in forward
y = self.submodule(x)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\container.py", line 139, in forward
input = module(input)
File "C:\Users\S209850\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Users\S209850\Anaconda3\lib\site-packages\monai\networks\layers\simplelayers.py", line 129, in forward
return torch.cat([x, y], dim=self.dim)
RuntimeError: Sizes of tensors must match except in dimension 4. Got 24 and 23 (The offending index is 0)
python-BaseException

Hi, as the issue template clearly states, unless the issue is explicitly with the unchanged notebook, could you please post future questions as a Discussion in the main repository.
For your particular problem, your image has z=90, which isn't a multiple of 8 (there are four lots of stride=2).


[Bug]: If I want to select multiple values, each time I need to click the select. The nodes closing immediately after each item selected

What happened?
Attaching the video
Screencast from 01-08-24 12:26:03 PM IST.webm
How to reproduce the bug
SelectTree::make('permission_id')                     ->label('Permissions')                     ->live()                     ->relationship('permissions', 'name','parent_id', function ($query) {                         return $query->where('status', true);                     },function ($query) {                         return $query->where('status', true);                     })                     ->searchable()                     ->columnSpanFull()
Package Version
3.1.42
PHP Version
8.2
Laravel Version
11.18.1
Which operating systems does with happen with?
Linux
Notes
No response

Any update on this issue? @CodeWithDennis

That should only happen with single select fields. Can you share your code and maybe a short video?

Thank You for response,
Actually I am using multi select, only.Could please check this video https://github-production-user-asset-6210df.s3.amazonaws.com/94110956/354113932-fe4e0344-4840-4287-9d67-8569f73c9b19.webm?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240825%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240825T154234Z&X-Amz-Expires=300&X-Amz-Signature=73564d5cb69a1907cd2803250964e2fb0e8442db0f96ab5f55ff41b0eef83b2d&X-Amz-SignedHeaders=host&actor_id=94110956&key_id=0&repo_id=689287488

Thanks, that's definitely strange... does the behavior stop when you remove live()?

Without the live(), its working as expected

                    ->label(__('filament-users-roles-permissions::users-roles-permissions.role.resource.form.permissions'))
                    ->relationship('permissions', 'name', 'parent_id', function ($query) {
                        return $query->where('status', true);
                    }, function ($query) {
                        return $query->where('status', true);
                    })
                    ->afterStateUpdated(function (Get $get, $state, Forms\Set $set) {
                        if ($get('all_permission')) {
                            $set('all_permission', !$state);
                        }
                    })
                    ->searchable()
                    ->columnSpanFull()`

                    I need this

@CodeWithDennis
SelectTree::make('permission_id')
                ->label(__('filament-users-roles-permissions::users-roles-permissions.role.resource.form.permissions'))

                ->relationship('permissions', 'name', 'parent_id', function ($query) {

                    return $query->where('status', true);

                }, function ($query) {

                    return $query->where('status', true);

                })

                ->afterStateUpdated(function (Get $get, $state, Forms\Set $set) {

                    if ($get('all_permission')) {

                        $set('all_permission', !$state);

                    }

                })

                ->searchable()

                ->columnSpanFull()

I need to implements this, but without live(), its not work

I figured, i wont have time since im leaving for holiday soon but if you want to take a crack at it i would appreciate it

Looking back at this, it seems the issue is caused because the field is being rendered live, which is what's closing it.

@CodeWithDennis , Thank you. But I need to implement this with live(), because this field is dependence on some other columns

I understand. I’m not sure if I can fix that right now, but one thing you could try is using ->live(onBlur: true). Let me know if that helps.

I already tried this, but it's not worked

The same issue with me.
Do you have any updates?
note: I'm using it in the table filters.


[BUG] Documented docker-compose.yml doesn't work

Using the sample docker-compose.yml file here: https://opensearch.org/docs/latest/opensearch/install/docker#sample-docker-compose-file results in a failed startup.
└─> docker --version
Docker version 20.10.14, build a224086

My docker-compose, which is copy/pasted from above documentation url
└─> cat docker-compose.yml
version: '3'
services:
  opensearch-node1:
    image: opensearchproject/opensearch:1.3.1
    container_name: opensearch-node1
    environment:
      - cluster.name=opensearch-cluster
      - node.name=opensearch-node1
      - discovery.seed_hosts=opensearch-node1,opensearch-node2
      - cluster.initial_master_nodes=opensearch-node1,opensearch-node2
      - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
      - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
        hard: 65536
    volumes:
      - opensearch-data1:/usr/share/opensearch/data
    ports:
      - 9200:9200
      - 9600:9600 # required for Performance Analyzer
    networks:
      - opensearch-net
  opensearch-node2:
    image: opensearchproject/opensearch:1.3.1
    container_name: opensearch-node2
    environment:
      - cluster.name=opensearch-cluster
      - node.name=opensearch-node2
      - discovery.seed_hosts=opensearch-node1,opensearch-node2
      - cluster.initial_master_nodes=opensearch-node1,opensearch-node2
      - bootstrap.memory_lock=true
      - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    volumes:
      - opensearch-data2:/usr/share/opensearch/data
    networks:
      - opensearch-net
  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:1.3.0
    container_name: opensearch-dashboards
    ports:
      - 5601:5601
    expose:
      - "5601"
    environment:
      OPENSEARCH_HOSTS: '["https://opensearch-node1:9200","https://opensearch-node2:9200"]' # must be a string with no spaces when specified as an environment variable
    networks:
      - opensearch-net

volumes:
  opensearch-data1:
  opensearch-data2:

networks:
  opensearch-net:

I get several errors during docker-compose up
opensearch-node1         | [2022-04-25T13:35:27,342][INFO ][o.o.p.h.c.PerformanceAnalyzerConfigAction] [opensearch-node1] PerformanceAnalyzer Enabled: false
opensearch-node1         | [2022-04-25T13:35:27,380][INFO ][o.o.n.Node               ] [opensearch-node1] initialized
opensearch-node1         | [2022-04-25T13:35:27,380][INFO ][o.o.n.Node               ] [opensearch-node1] starting ...
opensearch-node1         | [2022-04-25T13:35:27,564][INFO ][o.o.t.TransportService   ] [opensearch-node1] publish_address {<IP_ADDRESS>:9300}, bound_addresses {<IP_ADDRESS>:9300}
opensearch-node1         | [2022-04-25T13:35:27,739][INFO ][o.o.b.BootstrapChecks    ] [opensearch-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks
opensearch-node1         | ERROR: [1] bootstrap checks failed
opensearch-node1         | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
opensearch-node1         | ERROR: OpenSearch did not exit normally - check the logs at /usr/share/opensearch/logs/opensearch-cluster.log
opensearch-node1         | [2022-04-25T13:35:27,748][INFO ][o.o.n.Node               ] [opensearch-node1] stopping ...
opensearch-node2         | [2022-04-25T13:35:27,752][INFO ][o.o.p.h.c.PerformanceAnalyzerConfigAction] [opensearch-node2] PerformanceAnalyzer Enabled: false
opensearch-node2         | [2022-04-25T13:35:27,790][INFO ][o.o.n.Node               ] [opensearch-node2] initialized
opensearch-node2         | [2022-04-25T13:35:27,790][INFO ][o.o.n.Node               ] [opensearch-node2] starting ...
opensearch-node1         | [2022-04-25T13:35:27,798][INFO ][o.o.n.Node               ] [opensearch-node1] stopped
opensearch-node1         | [2022-04-25T13:35:27,798][INFO ][o.o.n.Node               ] [opensearch-node1] closing ...
opensearch-node1         | [2022-04-25T13:35:27,819][INFO ][o.o.n.Node               ] [opensearch-node1] closed
opensearch-node2         | [2022-04-25T13:35:27,986][INFO ][o.o.t.TransportService   ] [opensearch-node2] publish_address {<IP_ADDRESS>:9300}, bound_addresses {<IP_ADDRESS>:9300}
opensearch-node1         | Killing performance analyzer process 103
opensearch-node2         | [2022-04-25T13:35:28,156][INFO ][o.o.b.BootstrapChecks    ] [opensearch-node2] bound or publishing to a non-loopback address, enforcing bootstrap checks
opensearch-node2         | ERROR: [1] bootstrap checks failed
opensearch-node2         | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
opensearch-node2         | ERROR: OpenSearch did not exit normally - check the logs at /usr/share/opensearch/logs/opensearch-cluster.log
opensearch-node2         | [2022-04-25T13:35:28,165][INFO ][o.o.n.Node               ] [opensearch-node2] stopping ...
opensearch-node2         | [2022-04-25T13:35:28,200][INFO ][o.o.n.Node               ] [opensearch-node2] stopped
opensearch-node2         | [2022-04-25T13:35:28,200][INFO ][o.o.n.Node               ] [opensearch-node2] closing ...
opensearch-node2         | [2022-04-25T13:35:28,219][INFO ][o.o.n.Node               ] [opensearch-node2] closed
opensearch-node2         | Killing performance analyzer process 103
opensearch-node1         | OpenSearch exited with code 78
opensearch-node1         | Performance analyzer exited with code 143
opensearch-dashboards    | {"type":"log","@timestamp":"2022-04-25T13:35:28Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: getaddrinfo ENOTFOUND opensearch-node1 opensearch-node1:9200"}
opensearch-node2         | OpenSearch exited with code 78
opensearch-node2         | Performance analyzer exited with code 143
opensearch-node1 exited with code 0
opensearch-node2 exited with code 0
opensearch-dashboards    | {"type":"log","@timestamp":"2022-04-25T13:35:31Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: getaddrinfo ENOTFOUND opensearch-node1 opensearch-node1:9200"}

Looks like the documentation is updated Increase the number of memory maps available to OpenSearch.  for docker https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/
@hemna Is your issue resolved?
Please feel free to close the issue.
Thanks!


Feature Request _ disable comments

after seeing today a upload where the uploader asked for "please no comments" ... i was wondering if it wouldn`t be useful to forbid other users to comment... gokibitz looks beatiful so not everyone is uploading because they actual want social discussion... (i do only upload at GoK. to do so... but some people have other needs)

Huh: we essentially have a no-comments mode, it's the "public" checkbox. But it's possible the user might have missed it.
When your games are set to public (ie, with the public checkbox off), only you or people you send the link to will ever see it.

ah, cool … yeah i know the public checkbox … yeah, but in that case i feel he wanted to share the already in sgf comments to the community :)
greetings

Am 19.07.2016 um 22:30 schrieb Nate Eagle<EMAIL_ADDRESS>Huh: we essentially have a no-comments mode, it's the "public" checkbox. But it's possible the user might have missed it.
When your games are set to public (ie, with the public checkbox off), only you or people you send the link to will ever see it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/neagle/gokibitz/issues/133#issuecomment-233755999, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ6YFp2-fO9SZ6ytbslImH8RaTND6tY3ks5qXTPSgaJpZM4JQFrz.

Ah, it's alireynes' game. Yeah, they posted an earlier game where tuerda made a comment about it being a bit strange.
I think you're right that alireynes just wanted to share a game that's not intended for comment. In this case, I don't think alireynes means they need to turn off comments, so much as they're trying to follow my advice to include a note saying that a game review isn't necessary. :) Anyway, they're doing something kind of interesting in using GoKibitz a slightly different way. For the moment, I don't think we need a new feature, but it's very interesting to see different uses pop up.

yeah, i fully agree :)
at the moment a „please no review“ note feels a bit strange, i agree with tuerda … but at the same time i see, like you, that it is good that people using gokibitz differently now…

Am 19.07.2016 um 22:35 schrieb Nate Eagle<EMAIL_ADDRESS>Ah, it's alireynes' game https://gokibitz.com/kifu/EyuUpLvw-. Yeah, they posted an earlier game https://gokibitz.com/kifu/NkXXvDVUW?path=1&comment=5788597694d1755d4aeb8733 where tuerda made a comment about it being a bit strange.
I think you're right that alireynes just wanted to share a game that's not intended for comment. In this case, I don't think alireynes means they need to turn off comments, so much as they're trying to follow my advice to include a note saying that a game review isn't necessary. :) Anyway, they're doing something kind of interesting in using GoKibitz a slightly different way. For the moment, I don't think we need a new feature, but it's very interesting to see different uses pop up.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/neagle/gokibitz/issues/133#issuecomment-233757265, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ6YFou0P22fqFDmfZscn_9gqhC58izDks5qXTT2gaJpZM4JQFrz.


Suggested project is not editable in Ingest UI

Steps to reproduce:

Suggest a project in Project Catalogue
Go to Ingest UI and open that project
Click on the Edit project

Expected result:
The project details are displayed and they are editable.
Actual result:
Only Loading project... text appears and nothing else.

When we open a "Suggested project" in Ingest UI we get this error report in the JS console:
TypeError: Cannot use 'in' operator to search for 'contributors' in null\n at MetadataFormComponent.tabIsVisible (http://localhost:4200/main.js:5731:30)\n at http://localhost:4200/main.js:5708:71\n at Array.filter (<anonymous>)\n at MetadataFormComponent.ngOnInit (http://localhost:4200/main.js:5708:52)\n at callHook (http://localhost:4200/vendor.js:39729:18)\n at callHooks (http://localhost:4200/vendor.js:39693:17)\n at executeInitAndCheckHooks (http://localhost:4200/vendor.js:39633:9)\n at refreshView (http://localhost:4200/vendor.js:46072:21)\n at refreshDynamicEmbeddedViews (http://localhost:4200/vendor.js:47417:21)\n at refreshView (http://localhost:4200/vendor.js:46077:9)"
message = "Cannot use 'in' operator to search for 'contributors' in null

The other problem lies in the project-form.component.ts file:
if (projectResource && projectResource.content &&
            !projectResource.content.hasOwnProperty('describedBy') || !projectResource.content.hasOwnProperty('schema_type'))

We have 2 problems with this condition:

As we are not persisting a content when we save the suggested project in the database the content will be null, so the or condition will throw an error. It is easy to fix with a parentheses around the last 2 conditions.
We also have to persist a content for the project resource with thedescribedBy and the schema_type properties. If we do that the edit page is going to appear.


Update Stream.mo

Thanks for the PR @codelemur!
I'll try to fix the (unrelated) CI issues before merging this.  Seems like CI is barfing on motoko compiler versus base mismatch.  I'm learning how to use the latest vessel now, which should help or at least be relevant.

#23 does these changes.


[ReactNative] Navigator fix for sceneStyle

Fixes https://github.com/facebook/react-native/issues/1332
When the absolute left position is not set to zero on a provided sceneStyle, scene enabling is broken and no scene will be visible when it is pushed. This was broken recently when the scene disabling was modified to push the scenes offscreen.
Test Plan: Tested when pushing a scene Navigator in the UIExplorer example while sceneStyle is set on the Navigator

@facebook-github-bot import


Unfolding Mattes with oiio ?

Hello,
I have not done too much research ... so please excuse my ignorance if this is already working somehow...
But I was wondering If I could  extract all mattes with openimageio and if someone already had tried that?
Currently I am unfolding mattes via nuke....
Thanks

Hey @nebukadhezer, did you have any luck with this in the meanwhile?


wire up CI providers and add build badge

Appveyor was previously used on the project to test on WIndows, so I'm inclined to enable that again unless someone wants to try enabling Azure Pipelines so this can be tested on macOS and Linux.
Appveyor also supports Linux environments, but I've not had a chance to use that yet

What level of access is needed in order to try setting up Azure pipelines?
Also, do we want parallel spikes on AP and AV?
Or to decide on one and run with it?

What level of access is needed in order to try setting up Azure pipelines?

It needs a Microsoft account on Azure DevOps to host the project, from a user that has write access to the project on GitHub to install the GitHub app.

Also, do we want parallel spikes on AP and AV?

Thinking on this some more, I'm fine with reusing the Appveyor configuration for now. Let's hold off on Azure Pipelines in favour of just getting the current config up and running.

What level of access is needed in order to try setting up Azure pipelines?

It needs a Microsoft account on Azure DevOps to host the project, from a user that has write access to the project on GitHub to install the GitHub app.

Also, do we want parallel spikes on AP and AV?

Thinking on this some more, I'm fine with reusing the Appveyor configuration for now. Let's hold off on Azure Pipelines in favour of just getting the current config up and running.


Fullscreen is not changing along with phone orientation

Bug
When I enter fullscreen mode on my iPhone and switch my phone to landscape mode, video is not following and keep playing in portrait mode.
Platform
iOS
Library version:  "^5.1.0-alpha8",
Steps To Reproduce

Enter fullscreen
Rotate Phone to landscape
Video wont rotate along

Expected behaviour

Rotate Phone to landscape
Video Rotates to landscape

Reproducible sample code
<Video
    source={{ uri: videoUrl }}
    controls={true}
    onLoad={videoLoad}
    ref={player}
/>

There was portraid mode only on my xcode


Create new tab on the quiz page to show the list/table of skills that this quiz/survey is associated to

PR #2101


Image is broken

Frame interpolation was performed on the two images with the following command.
The command is as follows:
dain-ncnn-vulkan -v -0 1.png -1 2.png -o 0.png
However, all images will produce the following output:

Is it still not working smoothly?
The problem of not finding .bin and .param files was solved by putting dain-ncnn-vulkan.exe file in the directory where .bin and .param are located.

I wrote a bug report on another project.
That bug occurred in dain-ncnn-vulkan.


Remove version: Wesnoth.BattleForWesnoth version 1.15.16

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.15.16/wesnoth-1.15.16-win64.exe/download
Status Code: 200
(Automated message - build 897)

Close with reason: Package still available.;


Generate IComparable and IComparable members

Coming from the strong type generator I wrote a few years ago using T4, I'm missing the functionality of comparison.
All underlying types do implement IComparable and IComparable<T>. Therefore, it should be easy to automatically generate the interface implementations for the value objects.
The linked T4 template generates these two methods, allowing to use the value objects in many sorting / ordering / comparison operations:
/// <summary>
/// Compares the current instance with another object of the same type and returns
/// an integer that indicates whether the current instance precedes, follows, or
/// occurs in the same position in the sort order as the other object.
/// </summary>
/// <param name="obj">An object to compare with this instance.</param>
/// <exception cref="System.ArgumentException"><paramref name="obj"/> is not the same type as this instance.</exception>
/// <returns>
/// A value that indicates the relative order of the objects being compared. The
/// return value has these meanings: Value Meaning Less than zero This instance precedes
/// obj in the sort order. Zero This instance occurs in the same position in the
/// sort order as obj. Greater than zero This instance follows obj in the sort order.
/// </returns>
[ExcludeFromCodeCoverage]
int IComparable.CompareTo(object? obj)
{
    if (obj is InternalUserId other)
        return CompareTo(other);
    throw new ArgumentException($"{nameof(obj)} is not of the same type as this instance.", nameof(obj));
}

/// <summary>
/// Compares this instance to a specified <see cref="InternalUserId"/> and returns an indication of their relative values.
/// </summary>
/// <param name="other">A <see cref="InternalUserId"/> to compare to.</param>
/// <returns>A signed integer that indicates the relative order of this instance and <paramref name="other"/>.</returns>
[ExcludeFromCodeCoverage]
public int CompareTo(InternalUserId other)
{
    if (Equals(null, V))
        return 1;
    return V.CompareTo(other.V);
}

This would allow all value objects to be used in many sorting / ordering / comparison use cases.

Duplicate of #201


Test: Re-enable SqlServer Specific tests on window7/2008

Revert #358
Blocking issue https://github.com/dotnet/corefx/issues/18406

@ajcvickers - FYI on this, regarding EF Database error page.


Update Swagger to include the key endpoints

We want to clean up our database back end a little further.

Update the front page to go to the swagger.
Get APIs (we have no patch/delete/post at this point)

/api/v1/health
/api/v1/jobs/states
/api/v1/jobs/soc-codes
transitions (tbd)

Remove old/unneeded endpoints.

approved/merged


Add LastLogin timestamp to LoginReply

Scope of changes
Adds last login to login reply so that the frontend can detect if a user has previously logged in or not. Authenticate adds the "last used" timestamp of the api key and refresh uses the issued at timestamp of the claims to prevent database lookups. Strings are RFC3339 nano timestamps.
Fixes SC-13546
Type of change

[x] new feature
[ ] bug fix
[ ] documentation
[ ] testing
[ ] technical debt
[ ] other (describe)

Acceptance criteria
Should be a quick review to see if everything makes sense.
Author checklist

[x] I have manually tested the change and/or added automation in the form of unit tests or integration tests
[ ]  I have updated the dependencies list
[ ]  I have recompiled and included new protocol buffers to reflect changes I made
[ ]  I have added new test fixtures as needed to support added tests
[x]  Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
[x]  I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

[ ] Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.
[ ] Are there any TODOs in this PR that should be turned into stories?

Looks good, do we need a companion story to update tenant?

Good point, I'll do that in this PR - thank you!

@pdeziel I updated the Tenant API side - would you mind doing a quick re-review?


try to build from source

It seems that you are missing some VS component like .Net 5 SDK or Cpp/CLI support. Try to open the solution in VS, maybe it can detect which components are missing.

I carefully downloaded the open source code, which took me a day and ended in failure. I reckon you're developing more code to stop others from running than it takes you to get your regular code running?

If you report something more specific about your problem, I would try to help you.


add JYS Wireless Adapter

Formatting could've been better.

🙄

https://github.com/gabomdq/SDL_GameControllerDB/pull/326
happy birthday


Zoom property not working with btt direction

Describe the bug
I tried to make bottom to top slider. Slider parent component has scaled to 0.33333338.
I gave the scale amount to vue-slider component's zoom prop. But its not working. Positions are wrong.
After, i wondered how its working with top to bottom direction, its working correctly. I think, the problem occurs with bottom to top direction.
Environment

OS & Version: macOS
Vue version: v2.6.11
Component Version: v3.2.15

Please provide live examples.

The latest version has been fixed.


Upgrade traefik version

Description
Upgrade Traefik version to v2.2.5

LGTM. Let me know when ready to merge :)


Make bracelets hold colour for 60 seconds

First of all, wonderful project that allows you to relive a concert. You literally get chills again :)
I'm experimenting a lot with the effects and tail codes but I was wondering if it's possible to make a colour last for 60 seconds?
What do you mean by "Transmitting "STP" right after a X_THEN_Y"?
(this isn't really an issue but I didn't find another way to ask the question)
Greetings
Alex

Hi Alex,
Thanks so much for looking at the notes that carefully! Sorry that part wasn't clear at all, it lines up with old names of signals.
Can you let me know what version of bracelet you have? I.e. when did you get it/what does it look like? (a photo would be ideal).
As far as I've found, the 60-second color hold thing only works on certain older versions of the bracelet. I can make better instructions though and keep trying different command orders to see if I can make it work on newer wristbands.
-Dani

My bracelet is from the Music Of The Spheres tour.

.

Got it. I haven't seen a color-hold effect for that yet, but I'm trying some stuff now.
To be clear, you are looking for it to hold the color after no longer being in IR range, right? It can definitely be made to hold it's color while in IR range by just resending one of the color commands (with no fade effect) repeatedly.

Oh cool! Is there a way to repeat a command x times (without rewriting the command multiple times)?
EFFECTS_TO_SHOW = [
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},
{
"main_effect": "RED",
"tail_code": None,
"duration": 0
},

Good point!
Let me make a quick edit to the demo_multiple_effects.py script to add that feature.

@alexmoen955 Okay! I made a new file instead of editing demo_multiple_effects.py
Try running demo_multiple_effects_advanced.py. Now, you can optionally add "hold_with_repeated_send": True to your entries which will make them hold the color for as long as is specified in the duration.
It only works as expected for simple color entries (from base_color_effects) with no tail code.

It looks like it only works when the bracelets are very close to the IR sensor. When the bracelets are located a bit further they start to strobe.

Ah yeah, that can be an issue. As yeah, that's gonna be an issue if the IR reception isn't great. If it doesn't receive some of the re-transmissions then it may not keep the light on steadily.
Replacing the batteries can make a big difference in improving the reception, as will going to a dark room, and/or getting a more powerful transmitter. Also, some of the base_color_effects have longer base durations than others. For example, GREEN_11 lasts longer than GREEN and might make less strobing.

guys can u help me? Im trying to get my  music of the spheres xyloband back to live. Im using an esp8266 and a LED IR.
I ran the code but dont know what to expect.. Should I write something else in the console window?

guys can u help me? Im trying to get my music of the spheres xyloband back to live. Im using an esp8266 and a LED IR.
I ran the code but dont know what to expect.. Should I write something else in the console window?

Hello! Just to confirm, did you both A) load the Arduino code onto the ESP8266 and B) run the Python code with the ESP8266 connected to the computer?

Hi, Daniel
I've just ran the demo_single_effect python code. Nothing happens, LED IR emitter works fine. I did a blynk test and everything seems to be ok.

What was the output of the Arduino IDE when you loaded on the sketch from the arduino_sender folder?
Did you set the COM port correctly in the python code?
Have you tried setting WAIT_BEFORE_SEND to True in the python code?

Seems that the arduino code its not properly working since i used my camera to see if there was some lighting from IR led.
What version of IDE arduino are u using?
My board is NODEMCU V3

I don't know exactly what version of the Arduino IDE I used and I don't have it in front of me (I can check later).
Also:

Which of the Arduino scripts from the arduino_sender folder did you use?
What was the output of the Arduino IDE when you loaded on the sketch from the arduino_sender folder?
Did you set the COM port correctly in the python code?
Have you tried setting WAIT_BEFORE_SEND to True in the python code?

Daniel,

I use the PixMob_Transmitter_ESP32
Here is what i got
Executable segment sizes:

ICACHE : 32768           - flash instruction cache
IROM   : 237460          - code in flash         (default or ICACHE_FLASH_ATTR)
IRAM   : 27289   / 32768 - code in IRAM          (IRAM_ATTR, ISRs...)
DATA   : 1496  )         - initialized variables (global, static) in RAM/HEAP
RODATA : 888   ) / 81920 - constants             (global, static) in RAM/HEAP
BSS    : 25712 )         - zeroed variables      (global, static) in RAM/HEAP
El Sketch usa 267.133 bytes (25%) del espacio de almacenamiento de programa. El máximo es 1.044.464 bytes.
Las variables Globales usan 28.096 bytes (34%) de la memoria dinámica, dejando 53.824 bytes para las variables locales. El máximo es 81.920 bytes.
esptool.py v3.0
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: c4:5b:be:5d:22:84
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 271280 bytes to 199011...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 271280 bytes (199011 compressed) at 0x00000000 in 17.6 seconds (effective 123.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

COMs are the same COM7 in my case
Yep, Ive changed to True but its not working.

Ive deleted the BT code in the IDE arduino, btw.

Cool, good thinking to delete the BT code. Hmmm.

What happens if you open up the Serial Monitor and paste in this command: [35]19121211241212132213221324121123241,
Did you configure to IR LED pin number in the script to match the one it is connected to? Sometimes the numbers are confusing and different between what is written on the board and what is supposed to be set on the IDE.

I pasted the command but nothing happens. Ive just blynk again pin4 in my board and its ok.
Yep, is in D2 which is supposed to be GPIO 4

Thanks for all the info and checks.
Have you changed the batteries in your bracelet since the show? I'd expect them to last until now assuming you went to a show in Perú but maybe not. I know you said you checked if the LED was working with the camera, but since it would only be on for a few milleseconds I wonder if the camera is missing that.
Otherwise, I'll have to keep thinking.

Batteries are ok. Blynking should be barely showed in demo_multiple_effects but the IR is still off. Ill be think about it too. Ill try another board, nano could be the reasonable option.

Good luck!


Address missing token message

Description
Not sure thats the best solution. I experimented with both using BaseSettings and a validation in BaseModel see https://pydantic-docs.helpmanual.io/usage/validators/. In both cases the error handling is managed by typer so the messaging is not as clean.
This is the current message
Traceback (most recent call last):
  File "/workspaces/hugie/.venv/bin/hugie", line 5, in <module>
    from hugie.cli import app
  File "/workspaces/hugie/hugie/cli.py", line 3, in <module>
    from hugie.endpoint import app as endpoint_app
  File "/workspaces/hugie/hugie/endpoint.py", line 9, in <module>
    settings = Settings()
  File "pydantic/env_settings.py", line 39, in pydantic.env_settings.BaseSettings.__init__
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Settings
huggingface_read_token
  field required (type=value_error.missing)

Maybe we accept the token as it was and check in endpoint.py and throw there a typer message?
Fixes #35
Checklist

[x] Tests added
[x] Relevant issue mentioned
[ ] Documentation updated

Agree, maybe just include better handling in endpoint.py

The error now is
Traceback (most recent call last):
  File "/workspaces/hugie/.venv/bin/hugie", line 5, in <module>
    from hugie.cli import app
  File "/workspaces/hugie/hugie/cli.py", line 3, in <module>
    from hugie.endpoint import app as endpoint_app
  File "/workspaces/hugie/hugie/endpoint.py", line 26, in <module>
    raise TokenNotSet
hugie.endpoint.TokenNotSet: You need to define a token using the environment variable HUGGINGFACE_READ_TOKEN

how do we feel about it? @ivyleavedtoadflax


Systemd service does't work for 'package' install_method

Hello! If i choose 'packege' install_methon. After installation i have broken systemd service on my server, like this (binary file placed in /usr/bin from official Hashicorp repository mirror):
# systemctl cat consul
# /etc/systemd/system/consul.service
# THIS FILE IS MANAGED BY PUPPET
[Unit]
Description=Consul Agent
After=network-online.target
Wants=network-online.target

[Service]
Type=exec
User=consul
Group=consul
ExecStart=/usr/local/bin/consul agent \
  -config-dir /etc/consul
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
LimitNOFILE=131072

[Install]
WantedBy=multi-user.target

Because  default setting bin_dir work only for 'url' install_method, after changing this need to configure bin_dir too
May be need set to default bin folder, when i choose 'package'?

Or need disable overriding service file by puppet if i use package method, i don't know how set it

bin_dir
https://github.com/solarkennedy/puppet-consul/blob/e4d41bd4826b4e4fb27d9298b7dacb706232f2c3/manifests/init.pp#L37
You could argue this is a bug?

By default Service overdid version from repository, and set to local/bin. If i set instal_method from package i expect what service file will be from rpm package or some

Is this possibly related to the version of systemd being used? i know they have gone from camptocamp-systemd to puppet-systemd, and i have been tracking fora discussing unexpected behavior on the 3.x branch of the new module

Hi,
I made that work commenting from the /etc/systemd/system/consul.service file the following lines:
[Service]
Type=exec
User=consul
Group=consul
If you run the process manually with root, it works, however if you tries the server unit, it doesn't work because it launches the service under consul user which apparently doesn't have permissions to do it, maybe adding a line to sudo file might solve the problem, i ignore if it is like that with other install method.
Hope this helps.
Regards

Hi,
I made that work commenting from the /etc/systemd/system/consul.service file the following lines:
User=consul Group=consul
If you run the process manually with root, it works, however if you tries the server unit, it doesn't work because it launches the service under consul user which apparently doesn't have permissions to do it, maybe adding a line to sudo file might solve the problem, i ignore if it is like that with other install method.
Hope this helps.
Regards

***Update
The folder/files where the app is installed is not owned by consul user, i have done a chown to consul user and it works.


Fix the infinite loop when searching for something that cannot be found

When using QHexFindDirection::All mode for searching, there is no way to exit the loop when the string does not exist.

Thanks!


Bump logging app version to 7.1.4

Description

Bump logging app, fixing multiple accumulated issues and including revendored libraries for K8s 1.19.
Type of change

Internal change (not necessarily a bug fix or a new feature)

TODOs

[x] Self-review the change
[ ] Perform manual testing

Implementation

Performance/Scaling

Testing done

Additional information

Can you link the relevant logging-app PRs please -- to help when drafting release notes?


add option to mark a route as (externally) protected

as discussed in #50
Already successfully tested locally on my project.

Thanks alot!  Looks good


Run infer on a custom build system

#Hi
I want to tweak infer to be able to run it on a custom build system that is a wrapper around ant.
How can I do that?
I tried changing the infer/lib/python/infer.py to add the new build system in the MODULE_TO_COMMAND dictionary, and added a file infer/lib/python/inferlib/capture/ with the same name as the value mapped to the new command in MODULE_TO_COMMAND but that doesn't make it work
Thanks

Hi @shivani-singhal, if your script behaves like ant you should be able to use infer --force-integration ant -- ./your_script. It probably needs your changes to infer.py as well, I'm not entirely sure. Let me know if that helps.

I used the following fork to run infer with the required custom build system https://github.com/martinschaef/infer
Here is a diff from infer https://github.com/martinschaef/infer/commit/593abac33475615eea1c4c29a465afec24de385e
when run infer with this fork, it gives me the following error
Usage Error:
*** Failed to execute compilation command: exited with code 2
*** Command: javac<EMAIL_ADDRESS>*** Output:
javac: invalid target release: 1.8
Usage: javac
use -help for a list of possible options
*** Infer needs a working compilation command to run.
this build compiles correctly when not being compiled from infer. Is there any way to resolve this?

my build environment and desktop were consuming different java versions. The issue was resolved after changing the java version

Thanks for the info! I'll try and make the python wrappers more resilient to build systems commands having different names so that the --force-integration option works as intended.


[Adblock BUG] Video and audio ads are back

Spicetify and Spotify Version
Spicetify v2.11.1
Spotify <IP_ADDRESS>7.ga4397eb7

@Daksh777 I had someone ask me about this and it seemed they used your install script, once they installed manually from my repo it started working. Going to close this issue because of that.

Nvm, the platform hook is broken on latest release.

Oh woops, seems like a Spicetify problem then? So sorry for opening it here.

@Daksh777 All good, problem should be resolved once someone who isn't as lazy as me decides to make a new spicetify release.

Hahaha, and the new release is here already!


communitynodes/FaceMask

What type of PR is this? (check all applicable)

[ ] Refactor
[x] Feature
[ ] Bug Fix
[ ] Optimization
[ ] Documentation Update

Have you discussed this change with the InvokeAI team?

[x] Yes, briefly on discord. @psychedelicious @blessedcoolant
[ ] No, because:

Description
The FaceMask node autodetects a face (and potentially other things) with an OpenCV cascade classifier and masks it by making a transparency in the image. You can swap faces with other faces, or swap things around the face with other things.
You provide it with an input image, and the full path to a OpenCV cascade classifier. I optimized the shape of the oval mask to work best with haarcascade_frontalface_default.xml, but many can be used. There are cascade classifiers already present at invokeai/.venv/lib/python3.10/site-packages/cv2/data/, as well. More information on OpenCV cascade classifiers: https://docs.opencv.org/3.4/db/d28/tutorial_cascade_classifier.html.
In addition to the image output with the newly-created transparency and HxW, the node also outputs an all-white mask in the same dimensions as the input image. This is needed by the inpaint node (and unified canvas) for outpainting; invokeai seems to pass in an all-white mask when it detects transparent pixels and initiates outpainting.
By default the node creates a vertically oriented oval shape to fit a classic face. The X and Y offset settings provide granular resizing/shaping of the oval mask for greater control of the masked area. If using another cascade classifier to detect a pair of eyes, for example, the offsets can be used to turn the ovals into circles.
QA Instructions, Screenshots, Recordings
Trimmed out time while generations ran to shorten recording.
Untitled2.webm

Thinking I'm going to revert back to letting the user provide a full path to the cascade file... there's several new cascade files out there with different applications (anime, cat, etc) that aren't provided with invoke's cv2 implementation in the venv.
Or a new cascades folder can be added somewhere and users can drop the files in and they'll populate in the dropdown list. Just have to figure out how to populate it dynamically without explicitly creating the list of cascade files before the FaceMaskInvocation def.

Made some pretty drastic changes. Switched from OpenCV Cascade Classifier detection to MediaPipe detection. Removed cascade file input as a result. Also made a pull request for entry into communityNodes.md.
I suppose this PR can be closed since community nodes will exist in a reference sheet.

@ymgenesis - With the latest communitynodes reference, I believe this can be closed, aye?

Sounds good.


Installation failed, reverting ./composer.json to its original content.

This is the output
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for beyondcode/laravel-favicon ^1.0 -> satisfiable by beyondcode/laravel-favicon[1.0.0].
- Conclusion: remove laravel/framework v5.8.26
- Conclusion: don't install laravel/framework v5.8.26
- beyondcode/laravel-favicon 1.0.0 requires illuminate/support 5.6.|5.7. -> satisfiable by illuminate/support[5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
- don't install illuminate/support 5.6.x-dev|don't install laravel/framework v5.8.26
- don't install illuminate/support 5.7.17|don't install laravel/framework v5.8.26
- don't install illuminate/support 5.7.18|don't install laravel/framework v5.8.26
- don't install illuminate/support 5.7.19|don't install laravel/framework v5.8.26
- don't install illuminate/support 5.7.x-dev|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.0|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.1|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.10|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.11|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.12|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.13|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.14|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.15|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.16|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.17|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.19|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.2|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.20|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.21|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.22|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.23|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.24|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.25|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.26|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.27|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.28|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.29|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.3|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.30|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.31|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.32|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.33|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.34|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.35|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.36|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.37|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.38|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.39|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.4|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.5|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.6|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.7|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.8|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.6.9|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.0|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.1|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.10|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.11|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.15|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.2|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.20|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.21|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.22|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.23|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.26|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.27|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.28|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.3|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.4|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.5|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.6|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.7|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.8|don't install laravel/framework v5.8.26
- don't install illuminate/support v5.7.9|don't install laravel/framework v5.8.26
- Installation request for laravel/framework (locked at v5.8.26, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.26].
Installation failed, reverting ./composer.json to its original content.

dint you solve this issue?

@amarizaty This package is old and don't work on new laravel versions so I just abandoned it.


Exomizer dependency?

Trying to compile it get
make: exomizer: No se encontró el programa
make: *** [dist] Error 127

Seems to need http://hem.bredband.net/magli143/exo/ maybe it is better to include it in readme.

Actually exomizer is not needed to run the game.
Just do:
$ make test and exomizer won't be used.
I'll update the README though. thanks.

fixed: https://github.com/ricardoquesada/c64-the-muni-race/commit/9d39c1a0da6946a5d7f4375684e68e42cc708fc2

perfect!


fish shell support

fish: Unknown command: /home/zeus/go/bin/ls-x
~/.config/fish/functions/lsx.fish (line 15):
$LSX
^
in function 'lsx'
console output when I try to run lsx
Sorry for not providing more info but just seem like a simple fish script syntax error I don't know how to write scripts in fish shell.
I don't think this issue is on my end I just think fish doesn't use $ the same way bash or zsh do?
EDIT: Syntax might change depending on version of fish I am on version 3.3.1-1

Hey I'm also using fish shell 3.3.1 and works fine on my end.
Can you provide me following info:

what does echo $GOPATH returns?
is "$GOPATH/bin" added to the path?

my go path is /home/zeus/.local/share/go and inside the bin directory lsx is inside there and runs as executable

sorry for the issue It was on my end I set environment variables in my fish config In order to keep my home directory clutter free. I changed the path inside the lsx.fish function to be my $GOPATH instead of ~/home/zeus/go/bin. changing the function to specify the environment variable might help future user's thank you for leading me in the right direction @souvikinator

Great! Thanks for using.


Start with Minimize

Description of the new feature / enhancement
When the program started, don't show the main window, just minimize the main window and run program in background.
Scenario when this would be used?
When shortcuts conflict or other functions doesn't work well, we need to restart the PowerToys program to make it work. In this case, if the main window doesn't show every single time but be minimized when starting, it would greatly improve the user experience.
Supporting information
No response

How are you launching powertoys?  It does launch systray only.  /needinfo

How are you launching powertoys? It does launch systray only. /needinfo

I launch Powertoys via press Win Button -> type Powertoys and select it -> run as admin.
As a result, it popup the setting window.
I wonder how to launch systray only. I'd appreciate it if you could tell me how.

I'm willing to bet PowerToys is already running.  The default behavior for PT is to launch automatically.  If you relaunch it, the settings will appear.  /needinfo

If PowerToys is supposed to start by itself (with the option enabled) it doesn't.
I had to add its shortcut to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup for it to run on startup, and so with that method the GUI does open at startup.


slideout panel is broken in firefox

Webkit-based browser: screenshot_20160303_001807
Firefox: screenshot_20160303_001741
There were no recent commits in https://github.com/qor/qor-exampe, so posting it here

Hmm. This work in my app. Seems to be qor-example issue.

Oh! I've found how to reproduce it: editing is broken only if ShowAttrs are set

Or everything is fine... Sorry for the troubling
(in demo it still does not work)

seems works in my latest firefox


PROD-2768 Add Gzip Middleware

Description Of Changes
Adds the GZipMiddleware to 2.43.1, hoping to resolve PROD-2768. This middleware was already added to Fides in 2.44.0
Code Changes

[ ] list your code changes here

Steps to Confirm

[ ] list any manual steps for reviewers to confirm the changes

Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
Documentation:

[ ] documentation complete, PR opened in fidesdocs
[ ] documentation issue created in fidesdocs
[ ] if there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry

[ ] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[ ] Update CHANGELOG.md
[ ] For API changes, the Postman collection has been updated
If there are any database migrations:

[ ] Ensure that your downrev is up to date with the latest revision on main
[ ] Ensure that your downgrade() migration is correct and works

[ ] If a downgrade migration is not possible for this change, please call this out in the PR description!

Worth a try here for PROD-2768 👍


[unstable option] format_strings

Tracking issue for unstable option: format_strings

blocking: #4036

blocked by: #4036

It looks like no more block.

Would be great if this could get merged @ayazhafiz

@yodaldevoid thanks for pointing that out. If you've got the bandwidth or interest to test the associated code snippets on the latest master that would be great, otherwise I can look into this a little later!

We have a well documented process for stabilizing options and all options are presumed to need to remain unstable unless and until they can easily clear those thresholds, regardless of whether an option is 5 days old or 5 years old.
This option is still unstable because that hasn't happened yet. Additionally, there are a number of outstanding questions associated with this option, particularly as it relates to desired break points as well as whether this option could/should be used to unwrap/collapse broken strings.
One challenge we currently have, and where the community could help (especially if you'd like to see an option stabilized), is that there are a number of open, config option related bugs on the backlog that haven't been linked to the corresponding tracking issue. Even something as small as that (which anyone with a GitHub account could do) would be a small but useful step towards stabilization, and as discussed in the last couple comments, fixing or even just reconfirming associated bugs would be helpful too.


Chrome Browser Experiencing Freezes and Crashes

Hello,
I've encountered multiple instances of freezing with this module, specifically when refreshing the browser multiple times. This occurs in both clean sessions and private navigation modes.
Environment:

Chrome Version: 116.0.5845.96 (Official Build) (64-bit)
Ubuntu 23.04

Here are the steps to reproduce the issue and relevant configuration files:
Installation and Initialization:
npx nuxi@latest init frontend
yarn install
yarn add -D monaco-editor nuxt-monaco-editor
yarn dev

App.vue File:
<template>
    <MonacoEditor v-model="value" lang="typescript" style="height: 80vh" />
</template>

<script lang="ts" setup>
const value = ref('')
</script>

package.json File:
{
  "name": "nuxt-app",
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@types/node": "^18.17.3",
    "monaco-editor": "^0.41.0",
    "nuxt": "^3.6.5",
    "nuxt-monaco-editor": "^1.2.3"
  }
}

I've tested the module with Firefox and it works fine there. Additionally, when tested with Chrome and Express, no issues were encountered.
Express Configuration:
{
  "dependencies": {
    "express": "^4.18.2",
    "monaco-editor": "^0.41.0"
  },
  "name": "monaco-node",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \\"Error: no test specified\\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": ""
}

Best regards,

Same issue for me

Possible fix, maybe it will help someone. Using <ClientOnly> on template or using useMonaco and onMounted.
<ClientOnly>
  <MonacoEditor :options="{ theme: 'vs-dark' }" />
</ClientOnly>

const monaco = useMonaco()!;
const editorEl = ref<HTMLDivElement>();

onMounted(() => {
    if (editorEl.value) {
        const editor = monaco.editor.create(editorEl.value, {
            theme: "vs-dark",
            language: "shell",
            automaticLayout: true,
        });

        // You can configure the editor or add event listeners here.
    }
});

For me the issue is already when i enable the module. Don't even need to add the component anywhere.

I think it has something to do with the internal mechanism of monaco-editor.
Anyway don't do anything on ref(editor), use toRaw() to receive the ref, or use shallowRef().
Vue 3's circular references will cause the browser to crash.

Having the same issue. My tab is even freezing when just adding the module (not even using useMonaco, one of the components) recently.


Can't timestamp my self-signed authenticode certificate

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Attempt  Set-AuthenticodeSignature -FilePath D:\Documents\PowerShell\Microsoft.Powershell_profile.ps1 -Certificate $cert -HashAlgorithm "SHA256" -TimestampServer "http://timestamp.verisign.com/scripts/timstamp.dll"
The file shows no timestamp on the signature no matter which timestamp server I try.
Expected behavior
A Timestamp

Actual behavior
A successful signing with no timestamp.

Error details
N/A

Environment data
PSVersion                      7.4.0-preview.3
PSEdition                      Core
GitCommitId                    7.4.0-preview.3
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

I also tried on the system PowerShell.

Visuals
No response

For some reason the code is masking the ERROR_INTERNET_NAME_NOT_RESOLVED error returned if the timestamp server url could not be resolved.  So the server may be invalid and the user would never know.  Apparently this was to prevent a breaking change, but it seems like the user should at least be informed via a warning message.
// CryptUIWizDigitalSign introduced a breaking change in Win8 to return this
// error code (ERROR_INTERNET_NAME_NOT_RESOLVED) when you provide an invalid
// timestamp server. It used to be 0x80070001.
// Also masking this out so that we don't introduce a breaking change ourselves.

https://github.com/PowerShell/PowerShell/blob/ea68edc686d5f2370041aa9284805d976d9c7553/src/System.Management.Automation/security/Authenticode.cs#L222

Thanks for the response. I figured the lack of error was something like that; it does silently complete as if everything worked, and I doubt it is the syntax as that usually gets caught right away.
I was stumped after trying several servers, but I may end up feeling dumb. I just remembered about my ESET Internet Security that I keep on a "policy mode" which means it force filters all SSL/TLS connections, and some connections do not like this friendly man in the middle. Hopefully it will just be a matter of setting ESET to exclude the certificate for the timestamp server URL to resolve it. As I will go find out now.

Finally got my timestamp using http://timestamp.sectigo.com. For some reason http://timestamp.verisign.com/scripts/timstamp.dll would not function even after setting ESET to trust its certificate.


feat: Add headerText for container ExpandableSection to avoid heading inside button

Description
Moving role="button" under heading.
AWSUI-18961
For variant="container", instead of header, headerText``headerDescription``headerCounter should be used.
Focus indicator, announcement stays the same as before.
How has this been tested?
[How did you test to verify your changes?]
[How can reviewers test these changes efficiently?]
[Check for unexpected visual regressions, see CONTRIBUTING.md for details.]
Documentation changes
[Do the changes include any API documentation changes?]

[ ] Yes, this change contains documentation changes. API-Review-Header-in-Expandable-section
[ ] No.

Related Links
[Attach any related links/pull request for this change]

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

[ ] Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
[ ] Changes do not include unsupported browser features, see CONTRIBUTING.md.
[ ] Changes were manually tested for accessibility, see accessibility guidelines.

Security

[ ] If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

[ ] Changes are covered with new/existing unit tests?
[ ] Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Frances has reviewed and approved the API change.


Add MJPEG support

Hi!
I've added MJPEG support to the crate based on RFC 2435.
It didn't fit in perfectly with the existing architecture (would maybe be nicer to add a new ImageParameters struct), but I think it's good enough?
I've verified that it works on two camera models from FlexWatch and Parantek. It also works with the GStreamer RTSP server.
I fuzzed it over the night and it didn't find anything.
Appreciate feedback and ideas for improvements!

Apologies for taking so long to get back to you on this. It looks really nice! I have some minor comments below.

It didn't fit in perfectly with the existing architecture (would maybe be nicer to add a new ImageParameters struct), but I think it's good enough?

How would ImageParameters differ from VideoParameters? We can do an API revision if necessary, but fwiw I don't see anything too wrong with using VideoParameters.

Good point. It would probably just make the API more complicated. The idea to change rfc6381_codec to an Option  sounds like a good idea.

What would you say to extending the example client to exercise this in some fashion—like writing a sequence of .jpg files? As I mentioned before, this all looks like very high-quality work. I'd like to just be able to give it a spin for myself, in part to way to check in following Retina changes if I've accidentally broken it...

That sounds like a good idea. I'll try to get time to do that soon!

I've added a test and an example. The example works pretty much like the mp4 one except that you specify an output directory to the JPEGs.

Finally getting through all the open PRs. Sorry yours has been waiting so long. Very nice work.

I've added a test and an example. The example works pretty much like the mp4 one except that you specify an output directory to the JPEGs.

Thank you! I don't think any of my cameras do MJPEG so I did a bit of hunting to come up with something to test against. I ended up with this Rube Goldberg machine:

run mediamtx
run ./client-record-format-mjpeg from gortsplib to copy packets from udp port 8000 to
run gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080,format=I420 ! jpegenc ! rtpjpegpay ! udpsink host=<IP_ADDRESS> port=9000

...and then found gstreamer's rtspclientsink to simplify:

run mediamtx
run gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080,format=I420 ! jpegenc ! rtspclientsink location=rtsp://localhost:8554/mystream

In the process I discovered what seems to be code for muxing jpegs to .mp4 format, in mediamtx's internal/playback/mp4/track.go. Might be interesting to make the mp4 example do this sometime.


sitelist from regex fails in windows

Can't split paths on '/' because this fails in windows. Need to use:
head, tail = os.path.split(site) in siteListFromRegEx
Likely there are similar bugs throughout. Should search code for '/' splits.

Fixed this in loadWaterQualityData, but need to check for other similar bugs.

didn't find any other splits on '/' with a grep of all code.


ARM_GEMM can produce incorrect results due to uninitialized memory

ARM compute version: 19.02
Platform: NVIDIA TX3
Operating system: Ubuntu 16.04.6 LTS
Problem description:
ARM_GEMM can produce incorrect results for matrix multiplications due to uninitialized memory. At least one instance is at
https://github.com/ARM-software/ComputeLibrary/blob/29f6788cee8881c5523a042a0ac9b0131d993768/src/core/NEON/kernels/arm_gemm/transforms/a64_interleave_8way_32bit.hpp#L38
where zerobuff is named as if it's a buffer full of zeroes, but is actually a buffer full of uninitialized memory. I have witnessed this cause problems in practice but I am at present unable to provide a minimal example demonstrating the erroneous behavior. I can confirm that initializing this zerobuff to all zeroes does fix the issue I was experiencing, but I would not be surprised if this same issue existed elsewhere inside of ARM Compute Library in code paths I happen to not be hitting.

Also worth noting, that #582 found a different bug on the exact same line even. It may be worthwhile to review some of the logic in these functions with some extra care since now two bugs have been found in the same place, so there may be more lurking that have not yet been discovered.

Hello @alex-xnor ,
Thanks for reporting that. Will fix the issue. We have a lot of unit and integration tests that cover all our kernels but we haven't had any validation issues so far. We will review our kernels and our static code analysis space and try to avoid such issues in the future.

Hi @alex-xnor
A fix has been merged to the main dev branch. This is the link to the patch and code review https://review.mlplatform.org/#/c/ml/ComputeLibrary/+/1211/
Thanks @GeorgeARM
Closing this as it's been resolved.


[Feature Discuss] As a developer, I want to know my built image status

In OpenShift, there is an ImageStream resource to keep the built image status, such as:

Image path
Image tag
Date
Which Git or commit it uses
Which builder or base image it uses
Sync the real docker image info with docker registry

But in Build v2, we don't provide this kind of resource/information to end-user.
The end-user should be able to get this kind of information out of the Build/BuildRun status (https://github.com/redhat-developer/build/issues/65)
Or...., is our Build equal to Image resource?
I think we should discuss together to see how to implement it for both two teams better.
FYi @sbose78

I would like to do something along these lines to have buildv2 objects use Imagestreams if run on OpenShift
https://developers.redhat.com/blog/2019/09/20/using-red-hat-openshift-image-streams-with-kubernetes-deployments/

It's useful to store the metadata related to the built image but not sure if imagestream is the right place for it, beyond the triggering functionality that @sbose78 pointed out.
Would it make sense to add these metadata as images labels to the output image?
Similar to images on the Red Hat container catalog: https://access.redhat.com/containers/?tab=tech-details#/non_registry/ibm/websphere-liberty-18
Labels
        name WebSphere Liberty
        vendor IBM
        version 1.0
        release <IP_ADDRESS>
        io.k8s.description The Red Hat Enterprise Linux Base image is designed ...
        maintainer Arthur De Magalhaes<EMAIL_ADDRESS>(@arthurdm)
        ProductVersion <IP_ADDRESS>
        ProductName WebSphere Application Server Liberty
        vcs-ref b8a2783c87bd09059fb8ba8a00817734bcb48ac3
        authoritative-source-url registry.access.redhat.com
        io.k8s.display-name Red Hat Enterprise Linux 7
        usage This image is very generic ...
        com.redhat.component rhel-server-container
        distribution-scope public
        description This image contains...
        vcs-type git
        com.redhat.build-host osbs-cpt-011.ocp.osbs.upshift.eng.rdu2.redhat.com
        build-date 2018-08-01T14:14:43.466377
        url https://access.redhat.com/containers/#/registry.access.redhat.com/rhel7/images/7.5-409.1533127727
        summary Image for WebSphere Liberty with IBM's JRE and RHEL
        architecture x86_64
        io.openshift.tags base rhel7
        ProductID fbf6a96d49214c0abc6a3bc5da6e48cd

closing issue, seems stale to me. Also, we have significant information already in BuildRun around the image state.

closing issue, seems stale to me. Also, we have significant information already in BuildRun around the image state.


InfraKit PoC

Goal: demonstrate the deployment of a cluster of Swarm nodes running AMP, with:

[x] cloud provider specific bootstrap with the minimum required
[x] AWS
[ ] DO
[x] Secured cluster
[x] Self healing
[x] Scaling
[ ] AMP service upgrade

Demonstrated on AWS with https://github.com/ndegory/swarm-infrakit


Phonegap build error

Describe the bug
When I try to build the app using phonegap I get the following error for the android build:
Fetching plugin<EMAIL_ADDRESS>via npm
Installing "cordova-plugin-firebase" at "2.0.5" for android
Subproject Path: CordovaLib
Subproject Path: app
/var/gimlet/tmp/47282671959280/1619187/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:249
throw new Error(msg);
^
Error: Does not appear to be an xcode project, no xcode project file in /var/gimlet/tmp/47282671959280/1619187
at getIOSProjectname (/var/gimlet/tmp/47282671959280/1619187/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:249:15)

hello,
did you manage to find a solution to this?


Check array arguments

Refs #496

My bad, will update PR soon

Can not find the way to check arguments and not to break core functionality. Close PR for now.


Add GraphQL lexer for Pygments

(Original issue 1368 created by lfarkas on 2017-08-01T15:30:46.907088+00:00)
https://gist.github.com/mrtnzlml/7e3fe17f52592d88ecc2ca0c9da1097b
here is the code what you can include.

Duplicate of #1634


adds a hidewindow option

adds a <hidewindow>true</hidewindow> config switch
so that launching bat files on legacy machines
running Interactive Services Detection doesn't balk with horrid warnings.
default behaviour remains as before.

Sorry, I was off for too long in this repo


Rangetouch and Material Design Light

Hi,
I'm using Material Design Light as a framework. However adding rangetouch to my code doesn't seem to have much effect on touch devices (in contrary of your own demo).
Any idea what can be the cause? I've already added a bigger thumbwidth.
My demo: http://dev.kasperkamperman.com/localremote/index.html
Code of the demo:
https://github.com/kasperkamperman/Particle-RGB-RemoteControl/tree/master/web-code/RGB CloudRemote

Rangetouch was working for me when I installed it on 2017-06-06 but then stopped working in recent days. My only touch devices are iOS (I don't own any Android so can't speak about those). Since Rangetouch code hasn't changed, and I don't think my code / server has changed, I wonder if something in iOS or those apps has changed that prevents Rangetouch from working. I don't know what Material Design Light is, but I figured my comment might be relevant for you anyway. I'm still investigating my problem.

@kasperkamperman I figured out my problem: https://github.com/sampotts/rangetouch/issues/5

@ryancwalsh Thanks for your note. I've checked your problem and then I've read the documentation page again. I noticed that I had to include the script at the end just before the body closing tag (I just added out of habit the script in the header). This did the trick.

Thanks lads. I've made it a little cleaner code-wise now so you should be able to add this anywhere although of course, before the closing </body> is best but you can always use the async and defer attributes to decide how you want the script loaded.


Send Ping

Hi, I have a situation that I need to send ping only if there's no new data on the database. And
$event = new Event(function () use ($request, $response, $db) {
            if ($request->server['request_method'] === 'GET') {
                $chat = $db->get('chat')->execBuilder();

                # IF no new data? Send ping
                // How to send ping in Swoole way?

                # ELSE
                return ['id' => $request->get['productId'], 'data' => json_encode(compact('chat'))];
            }

            return false;
        }, 'chat');

        (new SSESwoole($event, $request, $response))->start(2);

See v2.0.2.


Please pull remotes/origin/GUIdock_novnc_dockerimage from varunmittal91/GUIDock

Hi Daniel,
Please pull the above mentioned branch, it has the trigger from docker hub to generate dockerimage automatically.

Done.
DK

On Mar 6, 2016, at 5:26 PM, Varun Mittal<EMAIL_ADDRESS>wrote:
Hi Daniel,
Please pull the above mentioned branch, it has the trigger from docker hub to generate dockerimage automatically.
—
Reply to this email directly or view it on GitHub https://github.com/WebDataScience/GUIdock/issues/9.


CuRAND Quasirandom generators are not implemented

Description
CuRAND.pxd already has these Quasi Random generators enumerated, but it appears they are not yet available in CuPy:
CURAND_RNG_QUASI_DEFAULT = 200
CURAND_RNG_QUASI_SOBOL32 = 201
CURAND_RNG_QUASI_SCRAMBLED_SOBOL32 = 202
CURAND_RNG_QUASI_SOBOL64 = 203
CURAND_RNG_QUASI_SCRAMBLED_SOBOL64 = 204
For advanced Monte Carlo simulations, QRNGs enable much faster convergence with far fewer simulations.  For option pricing we are able to reduce from 10M pseudo random numbers to 8192 randomized Sobol32 with very similar results.
Let me know if there are cython modules I can use as a template to add some of these features, happy to help. I'm pretty sure the randomized ones should be a higher priority due to their superiority.
Additional Information
No response

cc/ @emcastillo


How to implement a settable token header?

I'm trying to create a way to set the token on the underlying dio instance but can't come up with anything. Any suggestions?
@RestApi(baseUrl: "https://dev-twic-server-cpnoncyekq-uc.a.run.app")
abstract class TwicRestClient {
  /// Singleton instance, be sure to set [baseUrl] and [token]
  static final instance = TwicRestClient._(
    Dio()..interceptors.add(baseResponseInterceptor),
  );

  /// Set the auth token <<<<<<<<<<<<<< The non-abstract class '_TwicRestClient' is missing implementations for these members:  - TwicRestClient.token=
  set token(String e) {
    _dio.options.headers["X-Auth-Token"] = e;
  }

  /// The underlying dio client
  Dio get _dio;

  /// Set the base url
  set baseUrl(String e);

  /// Private constructor for generated [_TwicRestClient]
  factory TwicRestClient._(Dio dio, {String baseUrl}) = _TwicRestClient;

  /// Test authentication token and get private user information
  @GET("/v1/auth/authenticate")
  Future<AuthenticateResponse> authenticate();
}

Please refer https://github.com/flutterchina/dio/blob/master/README.md#lockunlock-the-interceptors
Sent from my iPhone

On Apr 25, 2020, at 4:01 AM, Luke Pighetti<EMAIL_ADDRESS>wrote:

I'm trying to create a way to set the token on the underlying dio instance but can't come up with anything. Any suggestions?
@RestApi(baseUrl: "https://dev-twic-server-cpnoncyekq-uc.a.run.app")
abstract class TwicRestClient {
/// Singleton instance, be sure to set [baseUrl] and [token]
static final instance = TwicRestClient._(
Dio()..interceptors.add(baseResponseInterceptor),
);
/// Set the auth token <<<<<<<<<<<<<< The non-abstract class '_TwicRestClient' is missing implementations for these members:  - TwicRestClient.token=
set token(String e) {
_dio.options.headers["X-Auth-Token"] = e;
}
/// The underlying dio client
Dio get _dio;
/// Set the base url
set baseUrl(String e);
/// Private constructor for generated [TwicRestClient]
factory TwicRestClient.(Dio dio, {String baseUrl}) = _TwicRestClient;
/// Test authentication token and get private user information
@GET("/v1/auth/authenticate")
Future authenticate();
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Make it work on DragonFly/FreeBSD

Tested on DragonFly BSD. Should work similarily on FreeBSD.

That's a lot of code duplication!
Is there a special reason why is wayland disabled? The .so is loaded at runtime, so in my opinion you could just use the same code as Linux.

I tried to avoid depending on the wayland libraries not knowing that they are portable. I have another pull request (https://github.com/tomaka/glutin/pull/589) which gets rid of all this duplicated code and squashes both commits together.


miekg/dns parser

Hi,
I see that go-dnscollector already uses or mentions miekg/dns in some parts and I was wondering why it wasn't using its parser? This could prove useful as for instance miekg/dns support all rdatatype whereas here we only parse a few.
see https://github.com/miekg/dns/blob/master/scan_rr.go
see https://github.com/miekg/dns/blob/master/parse_test.go

Hi,
I asked myself this question  at the beginning and I did the following choice (with my experience from Python language perhaps it was not a good idea, I accept that )
=> it's not a dns server so decodes just the minimum, not more!
I known it's not a good idea to do that from scratch but I learned a lot, and with the contribution of @jtt too.
Also I wanted to learn how to decode DNS packets , generate malformed packets and how to protect against them.
Finally, we are running it in production since the 2 years without issues regarding the DNS parser so so it stayed like that.
For the future, it will be nice to introduce the miekg/dns parser to compare the memory footprint and cpu usage for example
If the embedded DNS parser is bad regarding performance, I will be happy to switch to miekg/dns lib.
Denis

Understood.
We have a slightly different take because (1) we use this project for threat intel and some less-used rtypes have value in this context and (2) miekg/dns is widely used and fuzzed methodically so that we can have a reasonable guarantee that ingesting this data won't lead to smth nasty.
I will try to have a poc with the miekg to see how it impact performances.


add a new file

add addle.txt

@steven18810596410 I gather this is just a bit of experimentation?

haha,right


Dialog using title, content, actions does not work well on small height screens

Bug, feature request, or proposal:
When using a dialog with the md-dialog-title, md-dialog-content, and md-dialog-actions directives, the dialog does not correctly scale with the screen when the height is reduced.
What is the expected behavior?
The entire dialog should fit into the window while the content height shrinks and is scrollable.
What is the current behavior?
The dialog doesnt quite fit all the way into the window, extends barely past the window
What are the steps to reproduce?
Go into the plunker and shrink the height of the window until the dialog is cut off
https://plnkr.co/edit/LeINuG6ER11R0k8clSYJ?p=preview

https://github.com/angular/material2/pull/2546 should help with this.


Hibernation: Requeue without error when ClusterSync doesn't exist yet

When installation finishes, the clustersync and hibernation controllers race to start their business. But the latter needs to make use of the ClusterSync object. When the clustersync controller hasn't created it yet, the hibernation controller needs to requeue and wait for it.
Previously we were just letting the 404 from Get(ClusterSync) to bubble up; but this counts against the reconciler error budget for which alerts may be triggered. Since this is an expected scenario, we change this code path to do a non-error immediate requeue instead.
HIVE-2611

/assign @suhanime


build exception

Hi,
showcore-open 下载后编译出现 kotlin-gradle-plugin:1.3.21找不到，从LOG中提示的链接中也找不到对应的pom， 确认机子能访问 google服务器。
将这个 kotlin-gradle-plugin临时注了， 发现androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha04 也无法下载。
LOG如下：
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'ShowCore-Open'.

Could not resolve all artifacts for configuration ':classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21.
Required by:
project :
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21.
Could not get resource 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.21/kotlin-gradle-plugin-1.3.21.pom'.
Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.21/kotlin-gradle-plugin-1.3.21.pom'.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21.
Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.21/kotlin-gradle-plugin-1.3.21.pom'.
Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.21/kotlin-gradle-plugin-1.3.21.pom'.

请看下什么原因， 相关支持有相应的群吗？
谢谢

这个是很明显的网络问题哈，科学上网一下就可以解决了


Improve dropdown

In mobile and tablet screen dropdown is not properly working when we toggle on hamburger icon.

Please assign me this issue

Please assign me this issue

Alright

assign me.

assign me.

Add hover effect on the dropdown.


Allow different persistence types

Introduce a new configuration for the persistence, which allows to switch between disk, local and ram.

disk  - means a persistence volume claim is configured and used
local - means the data is stored into the container, no volumeMount nor volume nor claim is configured
ram   - means zeebe uses a tmpfs for the data persistence, be aware that this takes the memory limits into account

Covers Ideas from #232 and #254
@falko please take a look whether it covers your use case
@chaima-mnsr please have a look whether it covers your use case related to #232
@npepinpe please do a normal review
closes #232
closes #254
closes #233

question What's the behavior if I put persistenceType = man_dancing ? Would it fallback to local?

Good point :D Actually, I also wanted to add something like https://www.arthurkoziel.com/validate-helm-chart-values-with-json-schemas/ but then I thought it is too much :D I think with another value it will fail, since the mount path is set but no volume nor claim.

question I assume there's no specific test for disk because that's the default?

Yes that it is right. It is covered with the golden files :)

Yes, this covers our need (specifically the persistent volume of  type local)

@npepinpe I added a json schema:
{
  "$schema": "http://json-schema.org/schema#",
  "type": "object",
  "properties": {
    "zeebe": {
      "type": "object",
      "properties": {
        "persistenceType": {
          "type": "string",
          "enum": ["disk", "local", "memory"]
        }
      }
    }
  }
}

Pretty simple and this allows to detect wrong values, e.g. on lint or install you will see something like:
$ helm lint charts/camunda-platform/
==> Linting charts/camunda-platform/
[ERROR] values.yaml: - zeebe.persistenceType: zeebe.persistenceType must be one of the following: "disk", "local", "memory"

[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
camunda-platform:
- zeebe.persistenceType: zeebe.persistenceType must be one of the following: "disk", "local", "memory"

TIL about Helm support for JSON schema. Cool stuff, maybe we could use it more in the future :+1:


Mono\Windows Plugins compatibility

This issue was imported from CodePlex
mogikanin wrote 2014-01-03 at 17:34
Need to verify which plugins is Mono compatible and fix build paths.
Move to "Plugins" folder all plugins which working on both Windows and Mono.
Move to "Windows Extensions" all plugins which working only on Windows.

Not actual


[Automation] Create Multiple user test case error HTTP_INTERNAL_SERVER_ERROR

In the test run we see one instance of failure due to HTTP_INTERNAL_SERVER_ERROR
10:15:58.672 	INFO 	Post Request using : alias=openbmc, uri=/org/openbmc/UserManager/Users/action/UserAdd, data={"data": ["ksVBdgEY", "LpJY5gVq", "", "8Hq5Kezk"]},                     headers={u'Content-Type': u'application/json'}, files=None, allow_redirects=True
10:15:58.673 	INFO 	${ret} = <Response [500]>

I gave a run manually and i see all went through.. this could be intermittent. But will keep a track on this on latter test runs...

In a controlled environment test, this seems due to non unique user name which already exist.. Need to check how to address this in the test code
To JSON using : content={ "data": { "description": "Internal Server Error", "exception": "DBusException('Traceback (most recent call last):\n File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb\n retval = candidate_method(self, *args, **keywords)\n File "/usr/sbin/obmc-phosphor-userd", line 150, in UserAdd\n if username in users : raise ValueError("User ", username, " Exists")\nValueError: (\'User \', dbus.String(u\'CsHRH1oM\'), \' Exists\')\n',)", "traceback": [ "Traceback (most recent call last):", " File "/usr/lib/python2.7/site-packages/bottle.py", line 862, in handle", " return route.call(**args)", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 518, in call", " return self.callback(*a, **kw)", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 674, in wrap", " return self.to_jsonp(callback(*a, **kw))", " File "/usr/lib/python2.7/site-packages/bottle.py", line 1734, in wrapper", " rv = callback(*a, **ka)", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 609, in wrap", " resp = {'data': callback(*a, **kw)}", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 572, in wrap", " return callback(*a, **kw)", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 597, in wrap", " return callback(*a, **kw)", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 87, in call", " return getattr(self, 'do' + request.method.lower())(**kw)", " File "/usr/lib/python2.7/site-packages/obmc/wsgi/apps/rest_dbus.py", line 208, in do_post", " return request.route_data'method'", " File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in call", " **keywords)", " File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking", " message, timeout)", "DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):", " File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb", " retval = candidate_method(self, *args, **keywords)", " File "/usr/sbin/obmc-phosphor-userd", line 150, in UserAdd", " if username in users : raise ValueError("User ", username, " Exists")", "ValueError: ('User ', dbus.String(u'CsHRH1oM'), ' Exists')", "" ] }, "message": "500 Internal Server Error", "status": "error" }

From another test run
Post Request using : alias=openbmc, uri=/org/openbmc/UserManager/Users/action/UserAdd, data={"data": ["2IFxUytw", "xNHuj9WE", "", "77407BjS"]}, headers={u'Content-Type': u'application/json'}, files=None, allow_redirects=True
root@barreleye:~# cat /etc/shadow | grep -e 2IFxUytw -e xNHuj9WE -e 77407BjS
xNHuj9WE:$6$fyWPrkhV26Ca$e2u.g07ykirTPBRJlt1eOCIQC8SrO11Epa3CUoUWt1jUm8vOmQBaXRKsMbZ.lYi7.RVDDq7grmS0vHHjWUbyV0:16860:0:99999:7:::
root@barreleye:~# cat /etc/passwd | grep -e 2IFxUytw -e xNHuj9WE
xNHuj9WE:x:1129:1129:2IFxUytw:/home/xNHuj9WE:/bin/sh
root@barreleye:~#
Yup there is already a user exist with the entry it try to create... So the string generated is not unique.. So the fix is to generate unique one.

Two ways to address this.

Delete the existing user list created by test prior to this
Create user by checking if already exist.

However, i find 1) seems to be the correct statement to do for multiple user test case scenario.

We need to clean up the user list post once we are done.. in that way we leave the system cleaner..


misc: Support date_format Spark function by simply reusing a Presto function

This PR simply registers the existing FormatDateTimeFunction for Spark SQL to use.

We only use one signature of FormatDateTimeFunction. The other one is only applicable to Presto. So I prefer keeping the whole implementation in Presto folder.
@rui-mo, please take a look. Thanks!


Create zkr.toml

adding zkr validator
Description
Previous pull request 976
Checklist before merging to draft

[x] Only one toml is added in this PR
[x] The file being added is indeed a .toml file
[x] The toml being added is to the correct folder, and only to the correct folder
[x] The eth_hot_key and eth_cold_key are present

Previous pull request 976 for testnet 9 that didn't make it into the genesis set at that time.


SCB-953 Make clusters configuration convenient

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run go build go test go fmt go vet to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #459 into master will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #459      +/-   ##
==========================================
+ Coverage    60.1%   60.16%   +0.05%
==========================================
  Files         156      156
  Lines       13414    13414
==========================================
+ Hits         8063     8071       +8
+ Misses       4770     4762       -8
  Partials      581      581

Impacted Files
Coverage Δ

pkg/tlsutil/tlsutil.go
73.58% <0%> (-0.95%)
:arrow_down:

server/broker/service.go
57.78% <0%> (-0.16%)
:arrow_down:

server/plugin/pkg/registry/etcd/etcd.go
86.3% <0%> (+0.56%)
:arrow_up:

server/service/notification/listwatcher.go
78.87% <0%> (+9.85%)
:arrow_up:

Continue to review full report at Codecov.

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

Coverage increased (+0.008%) to 62.589% when pulling 48260c724ca544542d6123a026454ae121f7a9f0 on little-cui:dev into 3fe59edb7c6de5c58fb19aeb7b29a1158124e03e on apache:master.


Running under Linux and bare metal

Hi, is it possible to run this under Linux? Can this be used to compile free standing programs? I.e. Without a hosted os

Sorry, at the moment, I am tailoring this compiler for Window platform. I will make free standing linker for OS development later on.


Handle UPnP error responses better

This is just to handle error responses better, by throwing an UnknownSoCoException whenever an invalid xml_error response is received.

Hi @silamon : Thanks for the contribution.
Please fix the Pylint errors and update. Thanks!

Shall I run black to continue? Although more files are listed than I modified.

Yes, just run the latest version of Black and commit the changes it makes. Thanks.

LGTM. Thanks for the contribution!


Better tests

There was one test built as executable. Added a few more (incl. positive cases), changed them to be built as tests and executed by alcotest harness. Alcotest swallows tests' stdout and gives a nicer output:
$ dune test
Testing `dscheck'.
This run has ID `0PDCIH4M'.

  [OK]          counter          0   naive.
  [OK]          counter          1   safe.

Full test results in `~/caml/dscheck-mine/_build/default/tests/_build/_tests/dscheck'.
Test Successful in 0.000s. 2 tests run.
Testing `dscheck'.
This run has ID `74IUJUYN'.

  [OK]          list          0   naive-1-domain.
  [OK]          list          1   naive-2-domains.
  [OK]          list          2   naive-8-domains.
  [OK]          list          3   safe.

Full test results in `~/caml/dscheck-mine/_build/default/tests/_build/_tests/dscheck'.
Test Successful in 0.791s. 4 tests run.

Also ran ocamlformat on touched files, can back it out if not desired.

Everything looks good to me.