No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Models.ApplicationUser]'

I'm using LiteDB.Identity in project based on SPA (Angular) template. I changed Statup.cs as it shown in readme. The error was thrown when I tried to access protected sources (via [Authorize] attribute).
What's going wrong?

Hi @a-a-k
Thank you for using LiteDB.Identity.
Could I kindly ask you to double check connection string configuration for LiteDB:
https://github.com/quicksln/LiteDB.Identity/blob/master/sample/LiteDB.Identity.Sample/appsettings.json
Next, please check if all references have been added correctly to your project definition :
https://github.com/quicksln/LiteDB.Identity/blob/master/sample/LiteDB.Identity.Sample/LiteDB.Identity.Sample.csproj
At the very end please double check Configure section of Startup.cs if contains :
app.UseAuthentication();
app.UseAuthorization();

https://github.com/quicksln/LiteDB.Identity/blob/master/sample/LiteDB.Identity.Sample/Startup.cs
And let me know how it went.
Regards
Piotr

Okay,  seems the problem is underlying deeper. I think it is in auth mechanisms which provided by SPA template. There IdentityServer and its stuff. Now I'm getting Error: Could not load settings for 'App' at AuthorizeService.js.

Hello @a-a-k
Thank you for additional information. Unfortunately, I did not have chance to try IdentityServer4
with ASP.NET Identity over LiteDb.Identity.
But according to IdentityServer4 documentation, in theory it should be possible to use both, please have a look on following links:
https://docs.identityserver.io/en/release/reference/aspnet_identity.html
https://docs.identityserver.io/en/release/quickstarts/6_aspnet_identity.html
Hope you find this helpful.
Regards
Piotr

Hi, Piotr.
Looks like no deal with IdentityServer without EF is possible.
https://github.com/IdentityServer/IdentityServer4/issues/4667


Module 1.1 Assignment

Given what you have learned about Git, why would you want to use Git in your classroom?

What I learned about Git is that, Git is a distributed version control system means its a form of version control system in which whatever code is written or its full history is mirrored on every developer's computer. Git also manage the snapshot of all the files which might be in the projects so that i can revert back to any version of my file. The collection of the files in the projects is called Git Repository. Now Why its called Distributed? To come on the Distributed control system Lets discuss on Centralized control system, lets take an example there is a repository which is saved on one centralized server and for some reason it happen wrong and I don't have any backups then i will lose my projects unlike this distributed version control system is that if a one repository on one developer's computer went wrong  then he/she can sync with another developer's computer if they saved the repository in Github.
Why I want to use git in my classroom because as we get homework or projects in our classrooms instead of submitting physically we can submit it by github as it will be more collaborative. If a students are working on any projects or lets say making a website they can collaborate there projects/works here and make the webpage interactive and many more.So like this i want to use git for my classroom.  Thank You :)


Added the azure ec2_run policy

Type of change
Note: Fill x in []

[ ] bug
[x] enhancement
[ ] documentation
[ ] dependencies

Description
In Azure, an instance is called a VM

Adding the azure VM run
Added the unit test cases for the vm_run policy
Added functionalities

Created the main_operations: All policy runner calls will be taken from this file.
Created a separate class for Azure/ was the main policy runners

The policy implementation UM diagram is attached below.
Any policy implementation needs to follow this approach.

Updated UML dia

Grafana Panel with combined of instance_run and ec2_run

For security reasons, all pull requests need to be approved first before running any automated CI

Did you check that data distribute properly into Elastic/Grafana ?

Yes, see the grafana snap in the description.

Updated the diagram

Old versions: [ Keeping here for the version tracking. ]


[NA] Lotto mode Reset Prize when out of lotto currency

So it's currently the Christmas Rerun for NA and I notice that when I run the Lotto script to open Lotto box, whenever it runs out of lotto currency and can't open box anymore, it choose reset prize and move to the next box.
I don't think this is intended nor did it happen on previous lotto.
I'm using a Pixel 3, Android 11

This is intended in the sense that as of now we can't detect difference between running out of lotto currencies and finishing a box.
This is only a problem in the first 10 boxes where you can reset early, which is why you might not have notified before.
Mentioned here: https://github.com/MathewSachin/Fate-Grand-Automata/wiki/Lottery

WARNING: Better avoid using the Lottery script on Boxes 1-10. If you don't have enough tickets, it can reset the box as soon as you receive the Grand Prize.

This is intended in the sense that as of now we can't detect difference between running out of lotto currencies and finishing a box.
This is only a problem in the first 10 boxes where you can reset early, which is why you might not have noticed before.
Mentioned here: https://github.com/MathewSachin/Fate-Grand-Automata/wiki/Lottery

WARNING: Better avoid using the Lottery script on Boxes 1-10. If you don't have enough tickets, it can reset the box as soon as you receive the Grand Prize.

Ah I see.
I have a suggestion. How about we check the item left number to check whether we're out of lotto currency or done opening the current box?
For example: If we see 0/300 that means the box is clear, if not then the box is not clear and we jut simply ran out of lotto currency.
It's a minor thing and the current implementation is great but it's just a suggestion for more polish.
Cheers!

Already thought of that, but since the app doesn't have text recognition we'll have to match the image of ZERO.
But, like with the Gift Box script, the font could be different for different servers. Not sure on this, but, I think the design of that part is different depending on Christmas or Nero/GIlFest.


Proposed fix for issue #57

This is an initial draft of fix for issue #57
It covers only the GooglePlus provider but the problem also exists in other providers that use Request.Host to calculate URIs
Also, the fix uses some code from IdentityServer Extensions, not sure if that reference can be added or better to have some internal code that does the same thing. See FooExtensions.cs in the changed files.

Hi @santiagovm. Many thanks for your contribution. I am about to go to bed now - I'll have to check this out properly when I wake up.

Sorry for the delayed response. I am indisposed at the moment - I will evaluate this soon.


[#1606] feat(tez): Add retry mechanism for NO_BUFFER when reading data(memory/local/index)

What changes were proposed in this pull request?
Add retry mechanism tez. #1606 add retry mechanism, but forgot to add for tez.
Why are the changes needed?
Fix: #1606
Does this PR introduce any user-facing change?
No.
How was this patch tested?
unit test

Could you fix the style issue?

OK. And I modified some comments to meet the 2000 line limit for a single file

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 52.32%. Comparing base (d170004) to head (610333d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2110      +/-   ##
============================================
+ Coverage     51.72%   52.32%   +0.60%
+ Complexity     3275     2723     -552
============================================
  Files           524      443      -81
  Lines         29833    20639    -9194
  Branches       2556     1892     -664
============================================
- Hits          15431    10800    -4631
+ Misses        13400     9152    -4248
+ Partials       1002      687     -315

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


require 'md5' not valid in ruby 1.9.1 / rails 3

Use:
require 'digest/md5'

instead of
require 'md5'

in  open_flash_chart/lib/open_flash_chart.rb to avoid setup failure on startup.

there is no require for md5


Added redux course in hindi and updated heading of ReactNative courses

What does this PR do?
Add resource(s)
For resources
Description
Added Redux videos in Hindi
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


Running Netty server object unprintable

As of 8d11ad75, the object returned by aleph.http/start-server cannot be printed (usually at the REPL, but ofc a possibility in other contexts) without blocking, until the server is closed. Not a problem, but perhaps surprising, and maybe tricky to track down if e.g. someone happens to put a server object in a map or something which then gets logged.
I see a couple of options. An IPending impl could be added to the reified object, like:
clojure.lang.IPending
(isRealized [_]
  (and (-> ch .closeFuture .isDone)
    (-> group .terminationFuture .isDone)))

Gets the job done, but not really in the spirit of IPending, realized?, etc. The more principled and functional approach would be to swap out IDeref for IBlockingDeref; this would fix the printing problem, and also let (uh, force?) people using the deref-to-wait-for-server-close feature avail themselves of a timeout. The only downside AFAICT is that you couldn't just @server to wait. The equivalent would be (deref server Long/MAX_VALUE nil).

Balls, I forgot about auto deref on print. Let me think about this a bit
more.
On Wed, May 4, 2016 at 3:10 AM Chas Emerick<EMAIL_ADDRESS>wrote:

As of 8d11ad7
https://github.com/ztellman/aleph/commit/8d11ad7526b3989d8df3c958904fb674247fb527,
the object returned by aleph.http/start-server cannot be printed (usually
at the REPL, but ofc a possibility in other contexts) without blocking,
until the server is closed. Not a problem, but perhaps surprising, and
maybe tricky to track down if e.g. someone happens to put a server object
in a map or something which then gets logged.
I see a couple of options. An IPending impl could be added to the reified
object, like:
clojure.lang.IPending
(isRealized [_]
(and (-> ch .closeFuture .isDone)
(-> group .terminationFuture .isDone)))
Gets the job done, but not really in the spirit of IPending, realized?,
etc. The more principled and functional approach would be to swap out
IDeref for IBlockingDeref; this would fix the printing problem, and also
let (uh, force?) people using the deref-to-wait-for-server-close feature
avail themselves of a timeout. The only downside AFAICT is that you
couldn't just @server to wait. The equivalent would be (deref server
Long/MAX_VALUE nil).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/ztellman/aleph/issues/246


Is it possible to make personaSuggestionsView, personaListView in PeoplePicker public?

Platform

[x] iOS
[ ] macOS

Describe the feature that you would like added
I would like to get personaSuggestionsView, personaListView inside PeoplePicker as public so that I can modify the view(add label in between views, modify spacing).
Also, if searchDirectoryState in PersonaListView is accessible outside, we can directly have searchDirectory spinner showing depending on usage.
What component or utility would this be added to
PeoplePicker, PersonaListView
Have you discussed this feature with our team, and if so, who
No, would like to discuss with someone and know if it is possible.

Fixed


For join, the same tag in multiple input files should not be seen as a conflict

Problem
I have two (or more) OAS files that use the same tag to tag some operations. Running openapi join results in an error about "Conflict on tags."
Improved Solution
I don't see why it would be considered a conflict if multiple schemas that you're trying to join together use the same tag names. Maybe display a warning, but it's not an irreconcilable crisis that should prevent the join from succeeding. Use the first (or the last) description of the tag--authors can figure that out.
This is what is already done with components that are defined in multiple input files but are identical. It's not considered an error.
Perhaps have a command line option to let the user choose what to do if the same tag name is used in multiple files:

Allow it.
Error out.
Prefix with info property
Prefix with filename

Describe alternatives you've considered
I tried using prefix-tags-with-info-prop but that gave me different tags with goofy names, which was not at all useful.

Currently, we have a few options to resolve this case:

Allow duplication of tags in x-tagGroups (this will need improvements of navigation in ReferenceDocs)
Skip population and creation of x-tagGroups at all

What do you think? @adamaltman @RomanHotsiy

Let's discuss it on a call. I don't remember how join works already. Need to refresh my memory 😄

After discussion with @RomanHotsiy we agreed to go with second option by specifying option that will allow skip population of x-tagGroups.

Hi, @steve-nay-sage in redocly/cli release 1.0.0-beta.102 you may now use --without-x-tag-groups option for join command;
If you have the same tags in multiple definitions you can allow duplication by using the without-x-tag-groups option. In this case, the x-tagGroups property wouldn't be created.
redocly join first-api.yaml second-api.json --without-x-tag-groups

The tag description is taken from first match.
Note: options without-x-tag-groups, prefix-tags-with-filename, and prefix-tags-with-info-prop are mutually exclusive.
More docs will be soon.


NumberInput - fix accessibility violations

Description / User Story
The following errors and incomplete tests are thrown by the storybook accessibility addon and should be fixed:

Violation: Buttons must have discernible text
Violation: Form elements must have labels (placeholder="")
Violation: Elements must meet minimum color contrast ratio thresholds (theme=dark)

Requirements

[x] #534

Acceptance Criteria

[x] All errors and incomplete tests thrown by the accessibility addon are resolved:

[x] Violation: Buttons must have discernible text (readonly=false / unit=defined)
[x] Violation: Form elements must have labels (placeholder="")
[x] Violation: Elements must meet minimum color contrast ratio thresholds (theme=dark & unit=defined)

Background information

...

Approved


Port to v7.11.0

This PR is a port to v7.11.0
Configuration files are perfectly aligned with v7.11.0 making comparison easier.
There is new music demo application.
Keyboard/encoder demo is now fully supported with keyboard and mouse wheel drivers.
Segmentation faults are resolved (local variables in hal_init() are now static).

If I merge your V8 pull request do we need this one as well? I'm tempted just to merge the V8 pull request, what do you think?

I guess I would merge v7.11.0 and tag it, then merge v8.0.0 and tag it as well.

Sounds like a good idea. I realise that you have update lv_conf.h to directly match the release, but this means that a lot of changes are to add some spaces, not really code changes. Do we need these or can we get away with removing the formatting only changes?

If it was only formatting then it would lead someone into thinking that code changed, so commit wouldn't make much sense. Nevertheless, code did change, so it was an opportunity to align formatting as well, to make comparison to template easier. That being said, I don't have preferences so it's really up to you; if you want to remove formatting changes so that code changes are easier to track then feel free to do so. I can do it as well, just let me know if this is the way you wanna go...


How to exclude a property of a nested multi-occurance element.

I have two classes: A and B.
A has a property items which is a collection of B, when mapping I would like to exclude the id property of A and of all B items. How can I achieve it? The closest thing I found in the user guide is the names{fullName} example when working with nested multi-occurrence elements (nothing on exclusion though) - so I tried to do something similar to exclude the id of B but it results in the exclusion of the entire items property (needless to say that A's id gets excluded properly).
@Entity
public class A {

    @Id
    @GeneratedValue
    private Long id;
    //...

    @OneToMany()
    @JoinColumn(name = "a_id")
    private Set<B> items;

    // getters and setters
}

@Entity
public class B {

    @Id
    @GeneratedValue
    private Long id;
    //...

    public B() {}

    // getters and setters
}

MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();
        mapperFactory.classMap(A.class, A.class)
                .mapNulls(true)
                .exclude("id")
                .exclude("items{id}")
                .byDefault()
                .register();

MapperFacade mapperFacade = mapperFactory.getMapperFacade();
A dest = mapperFacade.map(source, A.class);

You can just put exclude on B.id
mapperFactory.classMap(B.class, B.class)
.mapNulls(true)
.exclude("id")
.byDefault()
.register();

Yes, I"m aware of this but forgot to mention - I've got lots of sets of different classes inside A (about 15), only B is shown here for brevity.
I want to avoid lots of mappers, my goal is to define everything in the mapper of A to A - hence exclude is used.

So basically you want to exclude id everywhere ?
to do that you need to create a custom class map builder with a custom byDefault method.
https://gist.github.com/elaatifi/5212119
here is an example of how to create custom class map builders, for instance this one is supporting annotations, but you can provide your own rules : exclude id fields or any other generic rule.

Thanks, I will look into it - but is there a way to explicitly exclude a property of a nested multi-occurrence element? .exclude("items{id}")?

Unfortunately there is no way to exclude nested elements

Thanks.
I tried a workaround using an abstract class and a custom mapper, it seems to work.

I've successfully achieved my goal using your suggestion to create a custom class map builder, it is much more convenient than my attempted workaround.
I will post Gist later this week.

Thanks for the update !

Here is the gist of the solution, Custom ClassMapBuilder which excludes every filed that has Id annotation.
Additioanly, here is how to actually use a custom ClassMapBuilder:
  MapperFactory mapperFactory = new DefaultMapperFactory
            .Builder()
            .classMapBuilderFactory(new IdExclusionClassMapBuilder.Factory())
            .build();


Unify File_Format_Metadata with File_For_Read

Pull Request Description

Closes #8555
Refactors the file format detection logic, compacting lots of repetitive logic for HTTP handling into helper functions.

Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[ ] The documentation has been updated, if necessary.
[ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[ ] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[ ] Unit tests have been written where possible.
[ ] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

A few minor things I was planning to do before merging this:

[ ] change the default encoding from utf_8 to Infer for (Response|Response_Body).decode_as_text (and decode_as_json), to have better logic: if Infer, if the Content-Type contains an encoding specified - use that, if not found, still fallback to utf_8 as currently.

Currently, even if the headers specify another encoding, we still use UTF-8 by default, unless the user actively changes it. That is bad - if the headers give us more detailed information - we should be relying on that.

[ ] Add tests for this encoding auto-detection.
[ ] Add a test for detecting the filename from Content-Disposition and URI path.

Probably add endpoints in http-test-helper that return no Content-Type but one of them returns Content-Disposition - and ensure that the format (e.g. .tsv) is still correctly detected.


Maybe a solution to compile psych engine 0.6.3

What is your question?
not quite a question, but maybe a solution, i'll point what i did to compile the game, so maybe you fix the problem too!
First, i installed all of the necessary libs
these are the haxeflixel core libraries:
haxelib install lime
haxelib install openfl
haxelib install flixel
finishing the instalation to the core:
haxelib run lime setup flixel
Install the lime command:
haxelib run lime setup
complementary tools, just in case:
haxelib install flixel-tools
haxelib run flixel-tools setup
update haxeflixel
haxelib update flixel
these are needed to the compiling:
flixel
flixel-addons
flixel-ui
hscript
newgrounds
these too:
haxelib git polymod https://github.com/larsiusprime/polymod.git
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
install other flixel addons wich is required
haxelib git flixel-addons https://github.com/HaxeFlixel/flixel-addons
then i installed these specific things from visual studio community 2019 16.11.23:
MSVC v142 - VS 2019 C++ x64/x86 build tools
Windows SDK (10.0.17763.0)
it takes 3,36 GB but is extremely required
now here comes the thing
i firstly tried to compile psych engine 0.5.2h
i solved the problem running these commands;
haxelib remove flixel
haxelib install flixel 4.11.0
these solved the problems i had, but then i tried compiling 0.6 version
the following pop up:
source/PlayState.hx:67: characters 8-22 : Type not found : vlc.MP4Handler
source/FunkinLua.hx:211: characters 10-15 : Class<llua.LuaL> has no field error
source/FunkinLua.hx:2704: characters 7-38 : Bool should be Int
source/FunkinLua.hx:229: characters 10-15 : Class<llua.LuaL> has no field error
source/FunkinLua.hx:235: characters 10-15 : Class<llua.LuaL> has no field error
source/FunkinLua.hx:287: characters 10-15 : Class<llua.LuaL> has no field error
source/FunkinLua.hx:293: characters 10-15 : Class<llua.LuaL> has no field error
source/FunkinLua.hx:333: lines 333-337 : Int should be Bool
source/FunkinLua.hx:333: lines 333-337 : ... For function argument 'f'
source/FunkinLua.hx:439: lines 439-442 : Int should be Bool
source/FunkinLua.hx:439: lines 439-442 : ... For function argument 'f'
source/PlayState.hx:1495: characters 13-23 : Type not found : MP4Handler
so, to solve these i ran the following code at the terminal:
haxelib remove hxCodec
haxelib install hxCodec 2.5.1
haxelib remove linc_luajit
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit
(i'm not sure if the following commands helps on anything but just in case)
haxelib remove lime
haxelib install lime 8.0.0
and so, it solved the problem at the psych engine 0.6, but surprisingly also solved at version 0.6.3, hope i helped!

note: It's not sure if it will work, i'm just relating what worked for me!

no hmm exists


Links: NuGet (2020-11)

Monthly LinkRepair.

Docs Build status updates of commit a28c858:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/consume-packages/Package-Restore.md
:warning:Warning
View
Details

docs/consume-packages/Package-Restore.md

Line 5, Column 12: [Warning-ms-author-invalid] Invalid value for 'ms.author', 'karann' is not a valid Microsoft alias.
Line 176, Column 1: [Suggestion-preserve-view-not-set] Did you mean to link to a specific version? If so, add &preserve-view=true to the URL: /azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Unified Toolbar

This is mostly cometic, but I think makes it a little clearer. Thoughts?

That's probably where MunkiAdmin is going in some future release. Is that photoshopped or did you already have the code? :smile:

It's just a one-liner to fix. Create the toolbar you want, then add this:
[[self window] setTitleVisibility:NSWindowTitleHidden];

Atleast, that's how i do it in the profile app:

Sweet, I need to look more into this. I still need to support 10.8+ for a while though and NSWindowTitleHidden is 10.10+.

It's all done and working, no Photoshop

https://github.com/chrisgrande/munkiadmin/commit/00790220f8cae90c3b0c8127587a2e771382d39f

Just so I'm clear, it's effectively the same thing as doing it in code as you're settings titleVisibility but from Interface Builder: https://github.com/chrisgrande/munkiadmin/commit/00790220f8cae90c3b0c8127587a2e771382d39f#diff-4df3c56ce936d82de00142cd1d502254R258 ?
Or have you done a custom toolbar that works where titleVisibility (10.10+) isn't available? Curious as that would be nice for some other projects where I support 10.8 as well.

It's basically the same as doing it in code but with the runtime attribute, on < 10.10 the toolbar will revert to the normal non unified toolbar.


Bugfix: Pass whether it is retained to the subscribe handler

cc @oberstet , I missed something, spotted it in testing in CB :)

Current coverage is 56.87% (diff: 100%)

Merging #755 into master will not change coverage

@@             master       #755   diff @@
==========================================
  Files            69         69
  Lines         11311      11311
  Methods           0          0
  Messages          0          0
  Branches       1747       1747
==========================================
  Hits           6433       6433
  Misses         4321       4321
  Partials        557        557

Powered by Codecov. Last update 80c1aff...9b4df8a


gatsby-image support for media/image fields

example
image has to be a Media type field.
NB: the field name does not matter.
{
    allStrapiPost {
      edges {
        node {
          id
          title
          content
          date
          image{
            childImageSharp{
              sizes {
                base64
                aspectRatio
                src
                srcSet
                sizes
                originalName
              }
            }
          }
        }
      }
    }
  }

Hello @rezof ! Thank you for your PR !
Can you add gatsby-source-filesystem in dependence please. I think you miss --save when you install it.
Can you also describe in your PR how use it please.

would like to see this merged as soon as possible if it works.

Tried the changes and as @lauriejim said the dependencie is missing. Also there seems to be a small bug. If no image is set in Strapi you receive a null pointer exception.

@lauriejim gatsby-source-filename add, i don't know how it skipped me.
@ch-world i am familiar with the bug, if the image is not given or the link provided is a 404 it causes a crash. i'll try to fix it this weekend.

@rezof I manually included your fixes. I've always been able to see my media field(s), but am not able to use imageSharp ever.... I don't understand why? Whether it's one image or many. For example, I have allStrapiAffiliate with a logo media field (called logo). And well, it doesn't work. Is there something I am missing?

@mariolopjr did you include gatsby-source-filesystem in your gatsby-config.js? I tried without imageSharp and noticed that fields like publicURL are missing.

@mariolopjr which files did you update ?
make sure you re-build if you updated the source files.

@rezof The ones listed as changed in your PR. I ofc restarted gatsby develop after saving the changes.
@ch-world I thought it may have to do with gatsby-source-filesystem, however, what path should I point it to? I see files getting fetched from remote (this worked even when I created my own custom nodes in gatsby-node.js before this PR), but gatsby-source-filesystem places the downloaded files in .cache. How do I then load them? That's the part I am stuck tbh.
If I just place gatsby-source-filesystem by iteself in gatsby-config.js, it complains about not having a path. And thus, my conundrum. :)
Thanks to all for the help.

@mariolopjr I copied the following from the plugin for cockpit cms
     resolve:gatsby-source-filesystem,       options: {         name: src,         path: ${__dirname}/src/,       },     },
I think the issue is, that before loading the plugin, gatsby doesn't know about the file node type.

@mariolopjr you need to re-build the project (gatsby-source-strapi)
cd nodes_modules/gatsby-source-strapi
npm run build

@ch-world I will try that, thanks!
@rezof WOW...what a dumb oversight on my part. It makes sense since I am pulling from github, that I would need to build the code...heh. I'll go ahead and try that.
//////bleeding edge
:)

Adding the cockpit config for gatsby-source-filesystem fixed my FILE issue.
By the way, for the image array fields (multiple images per node), I have this code in gatsby-node.js (dunno how it would fit into the plugin). It allows me to use gatsby-image will an array of pictures from the api! See following example (config.siteMetadata.api points to the api URL of my strapi instance...):
exports.onCreateNode = async ({ node, actions, store, cache }) => {
  const { createNode, createNodeField } = actions

  if ( node.internal.type !== null && node.internal.type === 'StrapiProperty' ) {
    for ( const picture of node.pictures ) {
      const fileNode = await createRemoteFileNode({
        url: config.siteMetadata.api + picture.url,
        store,
        cache,
        createNode,
        createNodeId: id => `property-image-${picture.id}`,
      })

      if (fileNode) {
        picture.localFile___NODE = fileNode.id
      }
    }
  }
}

I also fixed the NULL error, by changing if() on line 21 in normalize.js to: if (field !== null && field.hasOwnProperty('mime'))
Worked for me! :)

Adding the cockpit config for gatsby-source-filesystem fixed my FILE issue.
By the way, for the image array fields (multiple images per node), I have this code in gatsby-node.js (dunno how it would fit into the plugin). It allows me to use gatsby-image will an array of pictures from the api! See following example (config.siteMetadata.api points to the api URL of my strapi instance...):
exports.onCreateNode = async ({ node, actions, store, cache }) => {
  const { createNode, createNodeField } = actions

  if ( node.internal.type !== null && node.internal.type === 'StrapiProperty' ) {
    for ( const picture of node.pictures ) {
      const fileNode = await createRemoteFileNode({
        url: config.siteMetadata.api + picture.url,
        store,
        cache,
        createNode,
        createNodeId: id => `property-image-${picture.id}`,
      })

      if (fileNode) {
        picture.localFile___NODE = fileNode.id
      }
    }
  }
}

I also fixed the NULL error, by changing if() on line 21 in normalize.js to: if (field !== null && field.hasOwnProperty('mime'))
Worked for me! :)

@mariolopjr Could you explain / simplify your example? I'm trying to get gatsby-image to work with image array fields from strapi (multiple images) but could not make your example work for me. Any help would be greatly appreciated.


Fix annotation of draw_segmentation_masks

draw_segmentation_masks also supports passing single str containing color name or single str containing color hex or tuple containing RGB values as all colors for masks.
A simple example is our gallery :smiley:
https://pytorch.org/vision/master/auto_examples/plot_repurposing_annotations.html#sphx-glr-auto-examples-plot-repurposing-annotations-py
I have updated the tests too which all check all the above cases.
cc @NicolasHug

I think that we should generate a color palette for draw_bounding_boxes too instead of drawing default white color.
If people really want white color boxes (Yuk) they can pass color ="white"

@oke-aditya we just started formatting the code with black - you'll get a few merge conflicts as you already noticed. Don't worry about it, I'll take care of it.
we'll soon publish proper instructions on how to merge these conflicts, but until then feel free to ignore them :)
sorry for the unexpected conflicts!

@oke-aditya  if that's OK I'll merge https://github.com/pytorch/vision/pull/4531 first so we can remove the renaming from this PR, and then I'll merge it. Sounds good?

Yeah works fine :smiley:

Done! Thanks @oke-aditya


Numpy 2.0 compatibility fix

Summary
Fixes #182
Scipy 1.14 compatibility fix
Details and comments
Using .H from csr_matrix had been deprecated and has now been removed in scipy 1.14. This changes NumPyEigensolver, to use an alternative (and works with the prior scipy). This also ends up fixing CI which has been failing in nightly builds recently.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.429%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6359

Relevant Lines:
7032

💛  - Coveralls

Note this is failing tests against qiskit main - see #181 for more info.


[Do Not Merge] Introduce gitops-engine dependencies

Modifications
This PR adds the gitops-engine dependencies and removes the k8s apply/delete resources package which has conflicts of k8s dependencies.
This change should remain in the feature branch and merged with the following PRs which introduce the actual the git state syncer, to avoid lost current syncing functionality.
Verification
make

Closed with https://github.com/numaproj-labs/numaplane/pull/124


ValueError: cannot reindex from a duplicate axis on ta.macd

Which version are you running? The lastest version is on Github. Pip is for major releases.
I am running on ta version 0.3.14b0.
Describe the bug
I am very new to python and also the package so I am not sure if I am doing anything wrong so please treat this as a question if not a bug.
I am reading a dataset which has the historic data of a stock, and I am trying to compute Moving Average Convergence Divergence (MACD) using ta.macd but I am getting the below error, how do I resolve this? Please help me with it.
Error:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-62-552e8de706fa> in <module>
      1 historic_df = pd.read_csv('TATASTEEL.csv', index_col='Date')
----> 2 historic_df['MACD'] = ta.macd(historic_df.Close)

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas_ta/momentum/macd.py in macd(close, fast, slow, signal, talib, offset, **kwargs)
     65     # Prepare DataFrame to return
     66     data = {macd.name: macd, histogram.name: histogram, signalma.name: signalma}
---> 67     df = DataFrame(data)
     68     df.name = f"MACD{_asmode}{_props}"
     69     df.category = macd.category

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy)
    527
    528         elif isinstance(data, dict):
--> 529             mgr = init_dict(data, index, columns, dtype=dtype)
    530         elif isinstance(data, ma.MaskedArray):
    531             import numpy.ma.mrecords as mrecords

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/internals/construction.py in init_dict(data, index, columns, dtype)
    285             arr if not is_datetime64tz_dtype(arr) else arr.copy() for arr in arrays
    286         ]
--> 287     return arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
    288
    289

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/internals/construction.py in arrays_to_mgr(arrays, arr_names, index, columns, dtype, verify_integrity)
     83
     84         # don't force copy because getting jammed in an ndarray anyway
---> 85         arrays = _homogenize(arrays, index, dtype)
     86
     87         columns = ensure_index(columns)

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/internals/construction.py in _homogenize(data, index, dtype)
    342                 # Forces alignment. No need to copy data since we
    343                 # are putting it into an ndarray later
--> 344                 val = val.reindex(index, copy=False)
    345         else:
    346             if isinstance(val, dict):

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/series.py in reindex(self, index, **kwargs)
   4343     )
   4344     def reindex(self, index=None, **kwargs):
-> 4345         return super().reindex(index=index, **kwargs)
   4346
   4347     def drop(

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py in reindex(self, *args, **kwargs)
   4809
   4810         # perform the reindex on the axes
-> 4811         return self._reindex_axes(
   4812             axes, level, limit, tolerance, method, fill_value, copy
   4813         ).__finalize__(self, method="reindex")

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py in _reindex_axes(self, axes, level, limit, tolerance, method, fill_value, copy)
   4830
   4831             axis = self._get_axis_number(a)
-> 4832             obj = obj._reindex_with_indexers(
   4833                 {axis: [new_index, indexer]},
   4834                 fill_value=fill_value,

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py in _reindex_with_indexers(self, reindexers, fill_value, copy, allow_dups)
   4875
   4876             # TODO: speed up on homogeneous DataFrame objects
-> 4877             new_data = new_data.reindex_indexer(
   4878                 index,
   4879                 indexer,

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/internals/managers.py in reindex_indexer(self, new_axis, indexer, axis, fill_value, allow_dups, copy, consolidate, only_slice)
   1299         # some axes don't allow reindexing with dups
   1300         if not allow_dups:
-> 1301             self.axes[axis]._can_reindex(indexer)
   1302
   1303         if axis >= self.ndim:

~/Documents/Software/anaconda3/lib/python3.8/site-packages/pandas/core/indexes/base.py in _can_reindex(self, indexer)
   3474         # trying to reindex on an axis with duplicates
   3475         if not self._index_as_unique and len(indexer):
-> 3476             raise ValueError("cannot reindex from a duplicate axis")
   3477
   3478     def reindex(self, target, method=None, level=None, limit=None, tolerance=None):

ValueError: cannot reindex from a duplicate axis

To Reproduce
historic_df = pd.read_csv('TATASTEEL.csv', index_col='Date')
historic_df['MACD'] = ta.macd(historic_df.Close)

CSV used:
I am adding only 5 records, but I have the data till current date.
Date,Symbol,Series,Prev Close,Open,High,Low,Last,Close,VWAP,Volume,Turnover,Trades,Deliverable Volume,%Deliverble
1998-11-18,TATASTEEL,EQ,92.05,94.0,95.85,93.8,94.75,94.75,95.0,3592150,34124470250000.0,,,
1998-11-19,TATASTEEL,EQ,94.75,94.9,98.7,94.7,96.6,96.6,97.07,6761100,65629784750000.0,,,
1998-11-20,TATASTEEL,EQ,96.6,98.75,99.35,93.75,94.5,94.5,96.07,5387550,51760053250000.0,,,
1998-11-21,TATASTEEL,EQ,94.5,94.75,94.75,92.25,93.1,93.1,93.0,1754000,16311383750000.0,,,
1998-11-23,TATASTEEL,EQ,93.1,92.65,92.85,91.5,91.85,91.85,92.13,2216800,20423293250000.0,,,

Expected behavior
I want to get the Moving Average Convergence Divergence (MACD) data.
Additional context
I tried to use ta.stoch and ta.mfi, there also I get a similar error.

Hello @kishorechandran41,

I am very new to python and also the package so I am not sure if I am doing anything wrong so please treat this as a question if not a bug.

No worries. Pandas has two basic objects: Series and DataFrame. A Series is one column and a DataFrame has one or more columns. Some indicators in Pandas TA return a Series, like ta.ema, and others return a DataFrame, like ta.macd. To know beforehand whether an indicator returns a Series or a DataFrame, check help(ta.macd)

Since ta.macd returns a DataFrame by default, your code is attempting to bind a DataFrame to a Series called historic_df['MACD']  and that creates a ValueError.
historic_df = pd.read_csv('TATASTEEL.csv', index_col='Date')
historic_df['MACD'] = ta.macd(historic_df.Close)

You can manually do it like this:
historic_df = pd.read_csv('TATASTEEL.csv', index_col='Date')
macddf = ta.macd(historic_df.Close)
historic_df = pd.concat([historic_df, macddf], axis=0)

Or you can let Pandas TA take care of appending the 3 resultant macd columns with the append=True argument and not have to worry about specifying inputs. For more information, see Pandas TA DataFrame Extension.
historic_df = pd.read_csv('TATASTEEL.csv', index_col='Date')
historic_df.ta.macd(append=True)
print(historic_df)  # Sanity Check

Please let me know if this resolves your Issue.
Kind Regards,
KJ

@twopirllc I tried both the above methods, I still get the same error, but still your comment was helpfull for few other parameters like ta.trix, where I used below code and it worked.
historic_df[['TRIX', 'TRIX_signal']] = ta.trix(historic_df.Close)
For ta.macd, ta.stoch and ta.mfi I still face the same issue.

Do note the ValueError that I got for trix and things was
ValueError: Wrong number of items passed 2, placement implies 1
which I resolved with the soluction that you gave.
The ValueError that I get for ta.macd, ta.stoch and ta.mfi is,
ValueError: cannot reindex from a duplicate axis
which I am not able to resolve.

@kishorechandran41,
Do you happen to have TA Lib and yfinance installed in your environment?
Have you tried the code in the Quick Start? Here is the modified version:
import pandas as pd
import pandas_ta as ta

df = pd.read_csv("TATASTEEL.csv", sep=",")
# OR if you have yfinance installed
# df = df.ta.ticker("aapl")  # Also try this to see if there is a difference

# VWAP requires the DataFrame index to be a DatetimeIndex.
df.set_index(pd.DatetimeIndex(df["Date"]), inplace=True)

# Either of these work?
df.ta.macd(append=True)  # TA Lib version
# df.ta.macd(talib=False, append=True)  # Pandas TA version

print(df.columns)
df.tail()

Keep me posted.
Thanks,
KJ

@twopirllc I do not use yfinance, since I deal with Indian market, I encountered the same error with both df.ta.macd(append=True)  # TA Lib version and df.ta.macd(talib=False, append=True)  # Pandas TA version

@kishorechandran41
Post a testable copy of your csv then please.
Thanks,
KJ

TATASTEEL.csv
20MICRONS.csv
@twopirllc you can use any of the attached files.
Thanks,
Kishore Chandran

Hello @kishorechandran41,
Well it appears that you have unclean data. Data Analysis 101 is to clean your data. In your case, at least with TATASTEEL.csv, you have multiple symbols that you have to split from the csv and duplicate rows which are creating your ValueError. (I did not test 20MICRONS.csv.)
Here is some working code:
df = pd.read_csv("../TATASTEEL.csv")
symbol = "TATASTEEL" # Select the Symbol you want.

# Comment next line if TATASTEEL == TISCO
df = df[df["Symbol"] == symbol.upper()]

# Make it Datetime Order if it isn't
if not df.ta.datetime_ordered:
    df.set_index(pd.DatetimeIndex(df["Date"]), inplace=True, drop=True)

# Remove unnecessary columns
df.drop(columns=["Date", "Symbol", "Series"], errors="ignore", inplace=True)

# Check for duplicate rows
dup_index = df.index.duplicated()
print(f"[!] Duplicate Indices: {any(dup_index)}")
if df.index.has_duplicates:
    dup_dates = df[dup_index]

    print(f"[!] Duplicate Dates:\n{dup_dates.index.values}")
    print(f"[!] Duplicate Rows:\n{df.loc[dup_dates.index.values]}")
    df = df[~dup_index].copy() # Drop duplicates

# Apply TA
df.ta.macd(append=True)
df.ta.mfi(append=True)
df.ta.stoch(append=True)
df.ta.trix(append=True)

# Verify
print(f"[i] {symbol}{df.shape}")
print(f"[i] Columns: {', '.join(df.columns)}")
df.iloc[:,12:]

Hope this helps! Please let me know how it turns out.
Kind Regards,
KJ

Hello @kishorechandran41,
I assume by no response that the solution provided was sufficient. Thus I will be closing this issue in a few days.
Kind Regards,
KJ


Remove a8, http healthcheck

Signed-off-by: Erin Schnabel<EMAIL_ADDRESS>

This change is

Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


feat(azure-end-to-end-tests): Setup basic smoke tests for SharedTree with AzureClient

Description
This PR adds very basic smoke tests for using SharedTree with AzureClient. The intention is to create a starting point that can be expanded upon by feature owners.
Reviewer Guidance
Disclaimer: I am new to SharedTree and this is my first attempt at creating basic smoke tests for SharedTree. The goal of these tests is to expose any changes that immediately breaks SharedTree functionality with AzureClient.

@yann-achard-MS @Abe27342 @nmsimons any other suggestions for basic smoke tests against azure client?

Looks like you are creating work items for gaps I listed above.


Adding Azure SQL and Databricks config support in Ingestion - UI

Adding configs related to Azure SQL and Databricks support from backend.
These 2 connectors are using sqlalchemy packages and need additional parameters.

Azure SQL

"driver": "{ODBC Driver 17 for SQL Server}"

Databricks

"token": "<databricks token>"

cc: @harshach @darth-coder00

It might be a good idea to hide the visibility of the Databricks Access Token in the UI. That token could be used for a lot more than just ingesting into Open Metadata, and exposing it in plain text could be a security risk. Perhaps cover it up with dots like a lot of password fields are handled.

@ayush-shah ^
@ShaileshParmar11
@vivekratnavel
Lets encode this in password in JsonSchema and UI shouldn't be revealing any password in plaintext

Fixed. The changes are inside main.


Make adding constraints easier

Imho, adding custom constraints should be easier than it is now. It is cumbersome to define an annotation and an implementation class if you just want to compare some fields with each other.
why is something like this not possible ?
class Person {
   @Size(min=3)
   String lastname;

   @PastOrPresent
   LocalDate birthday:

   @Pattern(“\\d{8}”)
   String ssn;

   @Constraint
    boolean validate() {
       return ssn != null || (birthday != null && lastname != null);
    }
}

The validate method will also be invoked as part of validating this bean after its fields have been validated. And the method annotated with @Constraint should always return a boolean.
This is much easier to use and everything you need from the bean is there.

You can already do pretty much that, by putting the existing @AssertTrue constraint to a method e.g. named isValid(). I think this should address your requirement?

That doesn’t work unfortunately.
I’ve done the following and assertTrue doesn’t get triggered:
class MyDto {
    @Valid
   @NotNull
    Person person; // —-> contains @assertTrue on method
}

My Rest controller:
@POST
public void save(@Valid MyDto dto) {}

AssertTrue doesn’t get triggered.
And I’m using Quarkus 3.2.0, altogether with Jakarta Bean Validation.

How does that method on Person look like? It must conform to the JavaBeans naming convention.

It was called something like checkRequiredFields() .
And do you also need to have a field for that method ?

Yeah, so that name doesn't work. Boolean JavaBeans property getters must be named isXyz(). No field is needed for that.

Ok thx, I will try that (probably tomorrow). Thx for the feedback.


feat(function): switch to function, add renovate, bump providers

Description of your changes

enable renovate
bump providers
switch to functions
update mariadb server

.spec.forProvider.identity: field not declared in schema
  identity:
    - type: SystemAssigned

Fixes #
I have:

[x] Read and followed Upbound's contribution process.
[x] Run make reviewable to ensure this PR is ready for review.
[x] Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

/test-examples


⚠ Samsung has degraded performance

In b57cd83, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 3578 ms

Resolved: Samsung performance has improved in dd9c47f.


Release 2.15.3 to fix volume mount issue

What this PR does / why we need it:
DB-less config stuff accidentally started chopping off volume mounts because YAML template if blocks are pain. This makes the volumes and their mounts not disappear if you don't have a particular configuration, and tries to make the template whitespace a bit clearer.
Which issue this PR fixes

fixes #717

Special notes for your reviewer:
Significant whitespace within templates that have complex nest if blocks because YAML was a mistake. Supplemental reports from @ahuffman.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] PR is based off the current tip of the main branch.
[x] Changes are documented under the ~"Unreleased"~ (patch release, adds its own section and new unreleased section) header in CHANGELOG.md
~New or modified sections of values.yaml are documented in the README.md~ none
[x] Commits follow the Kong commit message guidelines

Validated this fixes the secretVolumes mounting issue from 2.15.2.  Thank you @rainest

Could it be this issue is not fully fixed?
1s          Warning   FailedMount   pod/kong-kong-c7455ddb-4rfzl                           MountVolume.SetUp failed for volume "kong-kong-proxy-cert" : secret "kong-kong-proxy-cert" not found

I still get this error, it won't start because proxy-cert is not created.
I'm pretty sure proxy-cert is not created because it can't perform the challenge if the proxy is not running, but I'm not 100% sure. This system used to work, but we recreated our cluster last week and now it doesn't anymore.

@TincoAeroscan don't think that's related. This is only for the config mount, not the certificate mounts. Can't say for sure without a values.yaml, but that sounds like a mount you've configured separately, and your cluster refresh deleted the Secret it was previously using.

@rainest sorry I misinterpreted the issue. I thought it was not executing the challenge at all. I gave up for the day after not figuring out the problem and making this comment. Then when I came back to work the next morning the request had actually succeeded and the website was online and happily accepting https requests... so yeah :P


Emojis are not presented correctly when published

Hi!
First and foremost I want to thank you for this great emoji picker plugin. You're doing a great job!
I'm having trouble with emojis being presented the wrong way when published. In the editor they look fine but when I publish the message there is another emoji (the old lady) behind each and every emoji.

Hi, try to use custom stylesheets, like below
body .emojione {
  font-size: inherit;
  height: 2ex;
  width: 2.1ex;
  min-height: 20px;
  min-width: 20px;
  display: inline-block;
  margin: -.2ex .15em .2ex;
  line-height: normal;
  vertical-align: middle;
  max-width: 100%;
  top: 0;
  background-image: none;
}

preview https://jsfiddle.net/1v03Lqnu/136/

I'm actually not the one that's programming this function in our programme but I will forward the information to him.
There's one more thing we're thinking about. Are there any possibilities of making this button larger? Right now it's 24x24px and we would like to make it at least 32px to make it easier to press.


UI elements improvements

Some UI elements should have a translucent background instead of an opaque colour as this can lead to some unpleasant results (some examples below):

^ Buttons only looks good on top of the default background; the alerts should also make use of translucent colors

^ text box (unselected and selected) is another example where this change would be appreciated
By applying this theme to the buttons I managed to make them appear identical to Windows' fluent UI buttons but using translucency (I also removed the shadow as it unfortunately also renders behind the widget):
buttonTheme: ButtonThemeData(
              defaultButtonStyle: ButtonStyle(
                shadowColor: ButtonState.all(Colors.transparent),
                border: ButtonState.resolveWith((states) {
                  if (isLight) {
                    if (states.isDisabled) return const BorderSide(width: 0.5, color: ColorConst.withOpacity(0x212121, 0.12));
                    if (states.isNone || (states.isHovering && !states.isDisabled && !states.isPressing)) return const BorderSide(width: 0.5, color: ColorConst.withOpacity(0x212121, 0.22));
                    else return const BorderSide(width: 0.5, color: ColorConst.withOpacity(0x212121, 0.07));
                  }
                  else {
                    if (states.isDisabled) return const BorderSide(width: 0.5, color: ColorConst.withOpacity(0xf0f0f0, 0.05));
                    if (states.isNone || (states.isHovering && !states.isPressing)) return const BorderSide(width: 0.5, color: ColorConst.withOpacity(0xf0f0f0, 0.035));
                    else return const BorderSide(width: 0.5, color: ColorConst.withOpacity(0xf0f0f0, 0.07));
                  }
                }),
                backgroundColor: ButtonState.resolveWith((states) {
                  if (isLight) {
                    if (states.isDisabled) return const ColorConst.withOpacity(0xf9f9f9, 0.045);
                    if (states.isPressing) return const ColorConst.withOpacity(0xf0f0f0, 0.4);
                    if (states.isHovering) return const ColorConst.withOpacity(0xf9f9f9, 0.65);
                    return const ColorConst.withOpacity(0xFFFFFF, 0.8);
                  }
                  else {
                    if (states.isDisabled) return const ColorConst.withOpacity(0xFFFFFF, 0.045);
                    if (states.isPressing) return const ColorConst.withOpacity(0xFFFFFF, 0.03);
                    if (states.isHovering) return const ColorConst.withOpacity(0xFFFFFF, 0.08);
                    return const ColorConst.withOpacity(0xFFFFFF, 0.055);
                  }
                })
              ) ,
),

^ Much better :P
EDIT: BTW ColorConst is just a simple utility class I made in order to be able to declare a const Color using the hex + an opacity value, this might also be useful
class ColorConst extends Color {
  const ColorConst.withOpacity(int value, double opacity) : super(
    ( (((opacity * 0xff ~/ 1) & 0xff) << 24) | ((0x00ffffff & value)) ) & 0xFFFFFFFF);
}

EDIT2: I've seen you've implemented some changes I suggested for the expander; hovever, I think either the whole button should change its background color (as per my suggested change), or the trailing icon, but not both of them (maybe with a flag to enable either behaviour)

EDIT3: The trailing button inside TextBox seems to be missing an pressed color (it's the same as the hovering color for some reason)

@bdlukaa  Related to this (Maybe a new issue?), I think we have some visual incoherences between Combobox and TextBox: if you place one Combobox and a TextBox side by side, the Combobox is a few pixels taller than the TextBox. Here are some screenshots:
2x Combobox + 1x Textbox:

2x Combobox + 1x Textbox focused:


Added ability to run without ext. services

Make sure, you have done de following before merging this pull request:

[x] Your code is documented using doc comments.
[x] You added appropriate logging in your code.
[x] You added unit tests to all your implemented functions.
[x] You ran cargo format and cargo clippy to format your code and check for improvements.

I thought about doing that, but decided against it, since it would make the normal code flow more difficult to read and understand.

Alright. I think, however, that naming the fine just bin.rs inside the startup folder is very misleading---something like standalone_demo_bin.rs would be clearer.
Also, the usage of this standalone version should be mentioned in the backend readme.


unrecognized option "glsl-shaders" in mpv

Describe the bug
I followed this Instructions: https://github.com/bloc97/Anime4K/blob/master/GLSL_Instructions.md
But when i run mpv in the command line, this error is thrown:
Error parsing option glsl-shaders (option not found) ... setting option glsl-shaders='~~/shaders/Anime4K_Adaptive.glsl' failed.
Desktop (please complete the following information):

OS: [Ubuntu 18.04]
Version Anime4K_Adaptive_v1.0RC.glsl
MPV

Ahh, nevermind, it seems the distribution's version does not have that option glsl-shaders
But it does have the option opengl-shaders


Provide possibility to set ark download timeout

Here is a fix for issue #222

I forked and wrote almost word-for-word the same changes here.  Can we get this merged, please?
(Ideally the curl dependency would be removed and a ruby-only solution like Net::HTTP would be used instead.)

+1 please merge as the current ark timeout is useless without the shell timeout.


Print warn instead of error logs when there is no container in the ECS task

What does this PR do?
When getting resource tags from an ECS task with zero container, print a warn log instead of error log.

Motivation
I found intermittent error messages on my Datadog agent (v7.50.3) running as an ECS daemon service like these:
timestamp,message
1707489565198,"2024-02-09 14:39:25 UTC | CORE | ERROR | (pkg/workloadmeta/collectors/internal/ecs/ecs.go:252 in getResourceTags) | failed to get client for metadata v3 or v4 API from task ""arn:aws:ecs:us-east-2:123456789012:task/redacted-cluster/***************************bfe75"" and the following containers: []"
1707489568815,"2024-02-09 14:39:28 UTC | PROCESS | ERROR | (pkg/workloadmeta/collectors/internal/ecs/ecs.go:252 in getResourceTags) | failed to get client for metadata v3 or v4 API from task ""arn:aws:ecs:us-east-2:123456789012:task/redacted-cluster/***************************bfe75"" and the following containers: []"
1707489570207,"2024-02-09 14:39:30 UTC | CORE | ERROR | (pkg/workloadmeta/collectors/internal/ecs/ecs.go:252 in getResourceTags) | failed to get client for metadata v3 or v4 API from task ""arn:aws:ecs:us-east-2:123456789012:task/redacted-cluster/***************************bfe75"" and the following containers: []"

When the ECS collector polls, it will call the getResourceTags function unless the status is STOPPED. According to AWS's documentation, there are other statuses like PROVISIONING, ACTIVATING, and PENDING. It might be possible under those statuses, the container array is empty (which can be proven by the logs). the loop never executes and the variable metaURI keeps its initial value, an empty string. The error log is still printed.
This change prints a warn log instead and return when the array is empty.

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

hi @rtrieu
can we get a second review?

/merge

/merge

/merge


what's the landmark order of eye center?

if I want to show some of the keypoints to demo,  where can I find the relative code?


azure domain can be overridden with env variable

What does this PR change? What problem does it solve?
Restic backups on azure only worked for storages on the global domain core.windows.net. This meant that backups to other domains such as Azure China (core.chinacloudapi.cn') were not supported. Restic now allows overriding the global domain using the environment variable AZURE_DOMAIN'.

Was the change previously discussed in an issue or on the forum?
Closes #2468

Checklist

[x] I have read the contribution guidelines.
[x] I have enabled maintainer edits.
[ ] I have added tests for all code changes.
[ ] I have added documentation for relevant changes (in the manual).
[x] There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
[x] I have run gofmt on the code in all commits.
[x] All commit messages are formatted in the same style as the other commits in the repo.
[ ] I'm done! This pull request is ready for review.

I have fixed everything you mentioned. Thanks for the help!


Search within hidden custom fields

KeeWeb returns search results on all fields, including custom fields, except for ones that are hidden (locked). I'd like KeeWeb to return search results on hidden fields, too.
Common use example: I store credit card numbers in custom fields and I often will search for a credit card number (e.g., when looking up the last four credit card numbers found on on receipts). However, as soon as I hide the field, it's no longer available for searching.
(I see that this also applies to passwords, which, of course, are always hidden.)
===
KeeWeb v1.1.4 (08087c3, 2016-04-21)
Environment: electron v0.37.4
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) KeeWeb/1.1.4 Chrome/49.0.2623.75 Electron/0.37.4 Safari/537.36

This is already available in advanced search options

This is already available in advanced search options

Thanks for pointing that out. I was totally unaware that the lens icon did anything more than execute a search.

We have to add something to it. Maybe sort of ddrodown-like arrow...

Yes. Something like that should cue the user.


Fix on_kill_plugin_process

psutil was missing.
plugins was missing.

Thanks, so the killing of plugins will not work, right?

I haven't seen an error for this yet, I just noticed the lint error in my editor. I'm not sure what GUI feature uses kill_plugin_process.


Could be clearer about using quotes to avoid "Duplicate keys .. are not allowed in hash literals" message

The example requirements.psd1 file contains the string "Az" with no quotes, and in a later example, the string "Az.Accounts" with quotes. I spent a long time assuming that it was impossible to get this to actually work (in my case, I needed "Az" and "Az.ResourceGraph").
Turns out, all that was needed is the quotes. To be clear, this requirements.psd1 produces an obtuse error:
@{
	# Latest supported version can be found at https://www.powershellgallery.com/packages/az
	Az = '6.*'

	# Az.ResourceGraph is NOT included with 'Az'.
	## Latest supported version: https://www.powershellgallery.com/packages/Az.ResourceGraph
	Az.ResourceGraph = '0.*'

}

But this version works correctly:
@{
	# Latest supported version can be found at https://www.powershellgallery.com/packages/az
	'Az' = '6.*'

	# Az.ResourceGraph is NOT included with 'Az'.
	## Latest supported version: https://www.powershellgallery.com/packages/Az.ResourceGraph
	'Az.ResourceGraph' = '0.*'

}

It would be clearer if the quotes were always present.

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

ID: efae763f-03a9-b3b0-e7ad-52f9b1559438
Version Independent ID: 2afd9c78-e5b0-5d34-b809-47d9576399d0
Content: PowerShell developer reference for Azure Functions
Content Source: articles/azure-functions/functions-reference-powershell.md
Service: azure-functions
GitHub Login: @eamonoreilly
Microsoft Alias: glenga

Thanks for the feedback! We will review and get back to you shortly.

I've put in a PR to make the update. It will go live once the content author has reviewed it.


Javadoc link is broken on github page

When I click on the link "FTC Javadoc Documentation" on the FtcRobotController home github page (in the README.md under "Javadoc Reference Material"), the resulting page gives an error saying "/org.firstinspires.ftc is not valid".
Pm

I'll note that this is apparently the same issue as reported in #177 -- I didn't see it reported there when searching issues because it's listed as "closed".
Feel free to close this ticket as a duplicate, but since the issue still exists it might be worth keeping one of these two open.
Also, does fixing a README.md file on GitHub really need to wait for a 7.1 release...?  That seems odd -- seems like a simple commit to README.md would fix it at least as far as GitHub users are concerned.  (I can also imagine there's a workflow where this isn't possible.)
Pm

Yeah, you beat me to it.  I'll leave this open until v7.1 is out.
Pending a fix in v7.1, in the meantime please see https://javadoc.io/doc/org.firstinspires.ftc

Also, does fixing a README.md file on GitHub really need to wait for a 7.1 release...? That seems odd -- seems like a simple commit to README.md would fix it at least as far as GitHub users are concerned. (I can also imagine there's a workflow where this isn't possible.)

Indeed.  There are two issues, 1) All the files in this repository originate from somewhere else, and so a change here easily gets lost in the originating location and humans, being mistake prone, are likely to end up with out of sync files if said humans started modifying them on the public repository, and 2) the goal is to keep the commit history on the public repo as clean as possible.  Ideally there are only commits for releases, although I realize that goal wasn't always met in the past.
Issue (1) is the basis for the often made statement that the public repository's release model does not allow for public pull requests against this repository.

Also, CONTRIBUTING.md has outdated links and URLs, like ftcforum.usfirst.org, ftctechnh/ftc_app, etc.
Use relative links when linking within GitHub.

... Also, does fixing a README.md file on GitHub really need to wait for a 7.1 release...? That seems odd -- seems like a simple commit to README.md would fix it at least as far as GitHub users are concerned. (I can also imagine there's a workflow where this isn't possible.)

Indeed. There are two issues, 1) All the files in this repository originate from somewhere else ...

So in essence the repo contains only "generated" "code".  Perhaps all this should be explained in README.md and/or in CONTRIBUTING.md.


When I use multi-face video to perform inference based on the tflite model, the error is as follows

Traceback (most recent call last):
File "/home/changshuai/code/Peppa_test/demo.py", line 165, in
video("/home/lianping/sunxiaohu/face-detection-tensorrt-yolov3-tiny/test_video/20191010155113.avi")
File "/home/changshuai/code/Peppa_test/demo.py", line 30, in video
boxes, landmarks, states = facer.run(image)
File "/home/changshuai/code/Peppa_test/lib/core/api/facer.py", line 61, in run
landmarks,states=self.face_landmark.batch_call(image,boxes)
File "/home/changshuai/code/Peppa_test/lib/core/api/face_landmark.py", line 140, in batch_call
self.model.set_tensor(self.input_details[0]['index'], images_batched)
File "/home/lianping/develop_environment/anaconda2/envs/tensorflow_1.14_cuda9.0/lib/python3.5/site-packages/tensorflow/lite/python/interpreter.py", line 197, in set_tensor
self._interpreter.SetTensor(tensor_index, value)
File "/home/lianping/develop_environment/anaconda2/envs/tensorflow_1.14_cuda9.0/lib/python3.5/site-packages/tensorflow/lite/python/interpreter_wrapper/tensorflow_wrap_interpreter_wrapper.py", line 136, in SetTensor
return _tensorflow_wrap_interpreter_wrapper.InterpreterWrapper_SetTensor(self, i, value)
ValueError: Cannot set tensor: Dimension mismatch. Got 4 but expected 1 for dimension 0 of input 411.

Hi，
The tflite model is a static graph, and the input shape is fixed, the batch was set as 1, you can change the code for batch inference.
And i will fix it later, when i get time.
Thanks

I'll make a pull request to fix this issue.
Change line 53 in lib/core/api/face_landmark.py as follows:
            if not self.tflite:
                res = self.model.inference(image_croped)

                landmark = res['landmark'].numpy().reshape(
                    (-1, self.keypoints_num, 2))
                states = res['cls'].numpy()
            else:

                image_croped = image_croped.astype(np.float32)
                self.model.set_tensor(
                    self.input_details[0]['index'], image_croped)
                self.model.invoke()

                landmark = self.model.get_tensor(
                    self.output_details[2]['index']).reshape((-1, self.keypoints_num, 2))
                states = self.model.get_tensor(self.output_details[0]['index'])

Change this line as
https://github.com/610265158/Peppa_Pig_Face_Engine/blob/853994bf3fce4e00f27a5dbc14b0714a9abde8bf/lib/core/api/face_landmark.py#L53
            if not self.tflite:
                res = self.model.inference(image_croped)

                landmark = res['landmark'].numpy().reshape(
                    (-1, self.keypoints_num, 2))
                states = res['cls'].numpy()
            else:

                image_croped = image_croped.astype(np.float32)
                self.model.set_tensor(
                    self.input_details[0]['index'], image_croped)
                self.model.invoke()

                landmark = self.model.get_tensor(
                    self.output_details[2]['index']).reshape((-1, self.keypoints_num, 2))
                states = self.model.get_tensor(self.output_details[0]['index'])


Hotfix and pull this week's papers

update paths to biomchbert, fix manual label bug

fixes #1

fixes #1


'No Response' when viewing live feed

After a few hours of running, the video stops working.
The snapshot shows "Now" with the last retrieved image which in this case is from a few hours ago, however, clicking on the thumbnail to view live feed, it's shows 'No Response'.

Note - covered the images with white boxes. The point is to highlight "Now"

From the logs, all I can see:
[HDS ::ffff:<IP_ADDRESS>] Delegate yielded fragment after stream 1 was already closed!
[HDS ::ffff:<IP_ADDRESS>] Delegate finished recording stream 1 without sending anything out.       Controller will CANCEL.

First up, in the configuration file add the option "mDNS" : "bonjour". I've seen something similar before in my testing, but not sure if related.

I think setting  "H264Encoder" : "copy" helped and hasn't crashed so far.
For the mDNS, wouldn't CIAO be preferred?  I haven't explicitly set it to anything, it's just blank.

I noticed when using CIAO (the default atm) after converting to docker container, I started to get accessories not responding, so used the configuration option to revert to bonjour. Has been fine since

Something seems to happen at night after 2 AM or so that seems to halt the plugin. I think this part of the log is from that timeframe. After this event, it just goes to not responding.
Note - masked the MAC addresses
[NEXUS] Socket closed on 'oculus9070-us1.dropcam.com'. Will attempt re-connect to 'oculus9070-us1.dropcam.com'
[NEXUS] Re-authentication to 'oculus1144-us1.dropcam.com'
[NEXUS] Socket closed on 'oculus1144-us1.dropcam.com'. Will attempt re-connect to 'oculus1144-us1.dropcam.com'
[NEXUS] Socket error on 'oculus9070-us1.dropcam.com' Error: getaddrinfo EAI_AGAIN oculus9070-us1.dropcam.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:82:26) {
  errno: -3001,
  code: 'EAI_AGAIN',
  syscall: 'getaddrinfo',
  hostname: 'oculus9070-us1.dropcam.com'
}
[NEXUS] Socket error on 'oculus1144-us1.dropcam.com' Error: getaddrinfo EAI_AGAIN oculus1144-us1.dropcam.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:82:26) {
  errno: -3001,
  code: 'EAI_AGAIN',
  syscall: 'getaddrinfo',
  hostname: 'oculus1144-us1.dropcam.com'
}
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEST] Error getting alerts for 'XX:XX:XX:XX:XX:XX' timeout of 2000ms exceeded
[NEXUS] Re-authentication to 'oculus9070-us1.dropcam.com'
[NEST] Motion started on 'XX:XX:XX:XX:XX:XX'
[NEXUS] Started recording stream from 'oculus9070-us1.dropcam.com'
[HKSV] Recording started on 'XX:XX:XX:XX:XX:XX' with audio
[NEUXS] Stopped recording stream from 'oculus9070-us1.dropcam.com'
[HKSV] Recording completed with error on 'XX:XX:XX:XX:XX:XX'. Reason was 'CANCELLED'
[HDS ::ffff:<IP_ADDRESS>] Delegate yielded fragment after stream 1 was already closed!
[HDS ::ffff:<IP_ADDRESS>] Delegate finished recording stream 1 without sending anything out.       Controller will CANCEL.

As a workaround, I've scheduled a cron job to restart the container every hour.

Did this start with the latest container version? During developed, seem alot of "network" drops like listed above

Maybe, I can't say. Since I also integrated my main homebridge container to the same server as this a few days ago. Not sure if related.

Ahhh/ there maybe a conflict between the two mDNS services being on the same host. Something I'll test

@n0rt0nthec4t I'm facing another issue where playback stops within a few seconds of viewing live video. See logs. Not sure if this is known issue.
2022-07-28 17:54:22 [NEXUS] Performing authentication to 'trapworker201-us1.dropcam.com'
2022-07-28 17:54:23 [NEXUS] Playback started from 'trapworker201-us1.dropcam.com'
/opt/Nest_accfactory/Nest_accfactory.js:1443
                        payloadType = (message.readUInt8(1) & 0x7f);
                                    ^
ReferenceError: payloadType is not defined
    at Socket.<anonymous> (/opt/Nest_accfactory/Nest_accfactory.js:1443:37)
    at Socket.emit (node:events:527:28)
    at UDP.onMessage (node:dgram:922:8)
Starting /opt/Nest_accfactory/Nest_accfactory.js using HAP-NodeJS library v0.10.3-beta.5
Configuration will be read from '/opt/Nest_accfactory/conf/Nest_config.json'
2022-07-28 17:54:35 [NEST] Performing Google account authorisation
2022-07-28 17:54:37 [NEST] Successfully authorised to Nest
2022-07-28 17:54:37 [NEST] Getting active devices from Nest
2022-07-28 17:54:37 [NEST] Devices will be advertised to HomeKit using 'ciao' mDNS provider
Setup Nest Doorbell 'Front Door' on 'XXXXX' with HomeKit Secure Video
2022-07-28 17:54:38 [NEST] Setup subscription for devices changes on 'XXXX'
2022-07-28 17:54:38 [NEST] Setup polling loop for doorbell/camera alerts on 'XXXXX'
Setup Nest Cam 'Living Room' on 'XXXX' with HomeKit Secure Video
2022-07-28 17:54:38 [NEST] Setup subscription for devices changes on 'XXXXX'
2022-07-28 17:54:38 [NEST] Setup polling loop for doorbell/camera alerts on 'XXXX'
2022-07-28 17:54:38 [NEST] Setup subscription for Nest structure changes
2022-07-28 17:54:38 [NEST] Started Nest subscription loop

Ahh yeah.. I missed something  when re-arranged code and didn't catch before holidays.. Will push something later today with some other fixes

Welcome back! Sounds good, thanks.

fixed in https://github.com/n0rt0nthec4t/Nest_accfactory/releases/tag/v0.0.7


git workflow file name correction

Proposed Changes
just a simple file name correction for git_workflow.md filename. it was using a dash (-) before as a result clicking on it would send it to a not found GitHub page.
located at https://github.com/k3s-io/k3s/blob/master/docs/contrib/development.md

Types of Changes
the file name change only

Verification
not needed

Testing
not needed

Linked Issues
not needed

User-Facing Change

none

Further Comments
none

@brandond can you take a look at this pr for review.


The sql syntax is normal, does it show as an error?

Description

I can't understand why this tool is called an error, even though other SQL tools have no problem with it
DBeaver Version
community edition <IP_ADDRESS>401072024
Operating System
windows10
Database and driver
No response
Steps to reproduce
No response
Additional context
No response

What database do you use?

Hello @google007049
Please provide clear steps to reproduce your issue.
And query example as a text.

Thank you for your efforts.
SELECT TO_DATE('20230930')  FROM dual ;
The SQL above does not make an error, even if it is automatically converted by another tool. However, it does make an error in dbeaver.
Query execution failed
Reason:
SQL Error [1861] [22008]: ORA-01861: literal does not match format string
SELECT TO_DATE('20230930','yyyy/mm/dd hh24:mi:ss')  FROM dual ;
The SQL above is viewed as normal in dbeaver as well as other tools.
What's the difference?
I hope that normal SQL in other tools will be queried normally in Dbeaver as well.
I'm always rooting for Dbeaver. Thank you.

If you want to use the TO_DATE function without pattern parameter -
you need to specify the default NLS format in your connection settings then.

Thank you for your hard work.
When I applied it to connection settings, I can see it well.
Thank you always.


Add Delta higher institute for engineering and technology

@mostafatahaa domains/eg/edu/dhic.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@philipto I'm sorry for the incorrect file path, I created a new request .... does this path is right ?


Partially encoded parameter

Version
4.2.0
Test Case
https://codesandbox.io/s/qxv30r58m6
Steps to reproduce

My app has an id string that is partially encoded, e.g. id//github%2Fissues
I encode this (using encodeURIComponent) to id%2F%2Fgithub%252Fissues in the URL.
<Link to='/id%2F%2Fgithub%252Fissues'>link</Link>
It is still encoded in the address bar.
Use a path of /:id
I then receive this back as parameter match.params.id which when printed out is id%2F%2Fgithub%2Fissues (note %252F has become %2F - looks like decodeURI was run on it)
I decode it (using decodeURIComponent) and get id//github/issues back

Expected: id//github%2Fissues
Actual: id//github/issues
I was using koa router and this worked as expected, but refactoring to react router is causing this issue. Can this be fixed, or is there a way to disable what looks like decodeURI in step 4? I cannot get my original id back.

Related to #5474.
Duplicate of ReactTraining/history#505.


tippyjs: Fix user typeahead hidden when hovering over emoji name.

Hiding on popovers on hovering over emoji name is not required since this just a tooltip and not a popover.
discussion: https://chat.zulip.org/#narrow/channel/9-issues/topic/user.20mention.20typeahead.20closing.20unexpectedly

Merged, thanks @amanagr!


Error when starting the gui

Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 16, in
from modules import paths, timer, import_hook, errors
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/paths.py", line 18, in
assert sd_path is not None, "Couldn't find Stable Diffusion in any of: " + str(possible_sd_paths)
AssertionError: Couldn't find Stable Diffusion in any of: ['/content/gdrive/MyDrive/sd/stablediffusion', '.', '/content/gdrive/MyDrive/sd']

try renaming/removing the sd folder

I did then I get:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
python3: can't open file '/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py': [Errno 2] No such file or directory

Was a google drive space issue


Connection management

How do you manage the connection in your architecture?  In the examples/tests I dont see the connection wrapped in a using statement or where it explicitly calls a close/dispose method.  Did I miss something?  Thanks for your help!

Well, I think you're right that the provided code was not a good example.
Since I didn't use using the Dispose() is not invoked and therefore the connection remains there forever.
All Harbin connections implement IDisposable, and the Dispose() method will also dispose the underlying IDbConnections.
This means that if you use the using statement (as you would do with any other IDbConnection) it should dispose the underlying connections.


Filter duplicate repos from repo list

I was playing with concurrency and this caused a difficult to find bug (or, rather, it was pretty obvious when i realised, but it took me a while)

https://hackage.haskell.org/package/ordered-containers-0.2.2/docs/Data-Set-Ordered.html

Actually nah, just don't do that


[New Hub] PaleoCube and PaleoHack hubs

Hub Description
2i2c has been engaged by members of the paleoclimate community. Deborah Khider (@khider) has been our principal contact in establishing this connection. This engagement extends previous work we've done to support the PaleoHackWeeks. We will learn more from Deborah about the community and their needs as we roll out the service. Here are a few links that provide some background information.
LinkedEarth
Deborah's home page
Community Representative(s)
@khider
Important dates

Target start date: June 30, 2022
Required start date: July 15, 2022
Any important dates for usage: ???

Hub Authentication Type
CILogon (e.g<EMAIL_ADDRESS>Hub logo information

URL to Hub Image: https://github.com/LinkedEarth/Logos/blob/master/linkedearth_hub_logo.png?rgh-link-date=2022-06-15T16%3A21%3A32Z
URL for Image Link: https://linked.earth/

Hub user image

Repository for user image: https://quay.io/repository/linkedearth/pyleoclim
User image registry: quay.io
User image tag and name: latest tags

Once again, seeking input from @khider!
Does your community have a Docker Image that specifies the software environment you wish to use in your hub(s)? If so, please share a link and we will review and take steps to set things up using that environment. If not, we can proceed with a Pangeo image and help you and your community adapt the environment to better meet your needs.
Extra features you'd like to enable

[x] Specific cloud provider or datacenter: GCP, us-central1-c
[x] Dedicated Kubernetes cluster
[x] Scalable Dask Cluster

Other relevant information
No response
Hub URL
linkedearth.2i2c.cloud
Hub Type
daskhub
Tasks to deploy the hub

[x] Engineer who will deploy the hub is assigned
[x] Deploy information filled in above
[x] Initial cluster deployment PR: https://github.com/2i2c-org/infrastructure/pull/1476
[x] Initial Hub deployment PR: https://github.com/2i2c-org/infrastructure/pull/1476
[x] Administrators able to log on
[ ] Community Representative satisfied with hub environment
[ ] Hub now in steady-state

We already have a live PaleoHack hub: https://github.com/2i2c-org/infrastructure/blob/master/config/clusters/2i2c/paleohack2021.values.yaml
Is this a request for a new one, @colliand?

Yes, I believe this request is for a persistent hub. I look forward to further guidance from @khider.

Yes, this is a request for a new, permanent one for research purposes. Answering/Commenting on above:

Authentification: any chance to also allow for Github auth?

Hub links and logos:
link: linkedearth.2i2c.cloud
Image: https://github.com/LinkedEarth/Logos/blob/master/linkedearth_hub_logo.png

Image and repo. The idea is to allow to pull examples from several repositories (which may not have the same environment).
Repos gallery (click image link to get to the GitHub repos): http://linked.earth/gallery.html#gallery
There are images available here: https://quay.io/repository/linkedearth/pyleoclim?tab=tags

We're working with Pangeo Forge to transform some simulations from netcdf to Zarr format. Task scaling may be needed once this task is completed and some of our example notebooks would use the results of these simulations.

Cloud credit: we may need to have a discussion. For the grant, I had to separate the 2i2c service from cloud billing. So I need to setup an account. Guidance would be helpful for this.

any chance to also allow for Github auth?

I don't believe it's possible to mix authentication types presently, so it would have to be one or the other.

Cloud credit: we may need to have a discussion. For the grant, I had to separate the 2i2c service from cloud billing. So I need to setup an account. Guidance would be helpful for this.

Is there any cloud provider preference?

any chance to also allow for Github auth?

I don't believe it's possible to mix authentication types presently, so it would have to be one or the other.

Can they use their own institution logon or would have to somehow register with us?

Cloud credit: we may need to have a discussion. For the grant, I had to separate the 2i2c service from cloud billing. So I need to setup an account. Guidance would be helpful for this.

Is there any cloud provider preference?

No. So open to discussion on what would be best.
Just one thing to keep in mind: some of the data will be on Pangeo-forge. So we either need to get close to it or duplicate for the life of this project.

I spoke with @khider via telephone. Here is a brief report and a few requests for action from the 2i2c team:

USC rules require the cloud billing account for the livingearth.2i2c.cloud hub to be held by USC and not by 2i2c. The reasons for this involve accounting and billing overhead. Deborah is prepared to swipe a credit card to establish the cloud billing account and share credentials with the 2i2c.
The livingearth community will use CMIP data (Petabytes) hosted on Pangeo Forge. Deborah requests that the compute be located near the data. With which cloud vendor and in which data center should 2i2c set up this hub? I call out @rabernat for guidance and @damianavila for following up with @khider to secure access to the cloud infrastructure.
This community uses a collection of software environments. There were significant changes when their software changed from version 0.7 to 0.8. As a result, some useful notebooks will not run when the base is at the 0.8 level. Deborah asked if 2i2c can make it easy for users to swap out software environments. I understand that @fperez and @rabernat are exploring similar ideas so thought it wise to share this request.

The main next actions:

[ ] Determine which vendor and data center should be used to host the livingearth.2i2c.cloud hub.
[ ] Establish the cloud billing account
[ ] Share credentials to allow the 2i2c team to access the cloud account
[ ] Stand up the hub and do awesome science!

@rabernat do you have any recommendations about where to deploy this cluster/hub given the fact they are trying to use data hosted in Pangeo Forge? cc @yuvipanda who might have thoughts as well.

Assuming this is the data we are talking about: https://pangeo-forge.org/dashboard/feedstock/7, @khider can you confirm if this is the data we are talking about?
It seems it is handled by this bakery: pangeo-ldeo-nsf-earthcube and this one seems to be a GCS one: https://github.com/pangeo-forge/pangeo-forge-gcs-bakery.
So, it might be the case the data actually lives in GCS US central-1?
I am not familiarized enough with Pangeo Forge... so it might be the case I am fundamentally wrong 😉.
cc @sgibson91 (it might be the case this is actually a GCP hub instead of an AWS, but not sure yet).

Yes, for the modern data. We also need to work with them to get the PMIP data onto Pangeo Forge, I assume at the same location.

The data are actually being deposited in the OSN storage pod at NCSA, so not actual in any commercial cloud. They are fully public, with no requestor pays or other authorization required. I would place the hub in whichever cloud region is in closest network proximity to NCSA. Google cloud US-CENTRAL-1 has worked well for us in the past, but I'm sure there is a nearby AWS region too.

Google cloud US-CENTRAL-1 has worked well for us in the past

OK, given this information, a GCP-based daskhub deployment in their own dedicated cluster seems to be the right choice.
@yuvipanda @sgibson91, do you agree with me on this assessment (since you have been lately interacting with new dedicated clusters on GCP, I think you may have good feedback here)?

Yep, putting this on gcp at us-central-1 is the way to go. Let's put it on us-central1-c as that has most variety of GPU available (https://cloud.google.com/compute/docs/gpus/gpu-regions-zones) in case we need it in the future.

OK, @khider, I think the next step would be to follow: https://docs.2i2c.org/en/latest/admin/howto/create-billing-account.html#billing-and-cloud-accounts, to create the GCP cloud billing account and add 2i2c engs to it.

Btw, in step 2.5, could you please add the following emails<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>Thanks!

And done! Everyone should now have access.

For contextual/additional information about the above assignations, @sgibson91 will be the lead developer for this hub with @yuvipanda's assistance as a secondary companion/helper/supporter.

@khider to confirm, is the billing account you created called "LinkedEarth Jupyter Hub"?

I have created the linked-earth-hubs project in our 2i2c.org GCP organgisation, attached the Linked Earth Jupyter Hub billing account, and given everyone on the engineering team access to the new project

@khider can you confirm if you would prefer CILogon authentication<EMAIL_ADDRESS>or GitHub authentication please?

@khider can you confirm if you would prefer CILogon authentication<EMAIL_ADDRESS>or GitHub authentication please?

CILogon preferred

Thanks! And what's the institution domain please? The institution.something part?

The hubs are located at:

https://staging.linkedearth.2i2c.cloud
https://linkedearth.2i2c.cloud

We have also setup a daskhub for you, but dask_gateway is not installed in the pyleoclim image you asked us to use, so you may have trouble using dask in a scalable fashion until dask_gateway is available in the image

I can add it to the image, and since we're using the latest tag, it should pull automatically, correct? Which version should I use? It seems like I need to same as what's on the server according to: https://gateway.dask.org/install-user.html

@khider, I need to know your institution.domain  (e.g. berkeley.edu) so I can add it to the CILogon config. At the minute, only folk with 2i2c.org Google accounts can log in.
I will find out what version of dask_gateway you need to install into your image

we're using the latest tag, it should pull automatically, correct?

Yes and no - it's generally not advised to use latest as it's not clear exactly how the infrastructure behaves. I think we could turn on continuous pre-pulling to reduce the chance of old images lying around, but you could end up with a node running the old image because it hasn't been told to pull a new one yet.

I was advised to leave it at latest so we can update as needed. But I pushed a new container. Let me know if this solve the problem.
Re: logon. We will have people from multiple institutions, so not sure I can anticipate all the domains. I'm guessing this is why GitHub might work better unless we do something as generic as Google.

Ok, please let me know which GitHub org you would like to use and I will work on switching the auth method over.

do I need to add everyone interested in using the hub to the organization?

Yes

Hi! @khider will be on vacation next week so I'll try to fill in for her, with the caveat that I know precisely NOTHING about cloud things, but I am eager to learn!

I am an vacation next week too, so you will be in the capable hands of @yuvipanda!

So I tried to login with my GitHub but was never asked to add LinkedEarth as an org. So it went to the 403:Forbidden screen. Any way I can add it directly into my org settings?

@khider I suspect this is because you tried to login when we were using CILogon. I'd try clearing your browser cookies and/or logging in from a private/incognito browser. The docs I linked to above also contain information on how to resolve the 403 error

https://infrastructure.2i2c.org/en/latest/howto/configure/auth-management.html#follow-up-github-organization-administrators-must-grant-access

I've requested a quota increase from Google Cloud as well, so you can expand to more users when necessary. I've asked for 256 total CPUs and 64 total nodes.

Sorry all, was taking some time off.
I was able to logon but I was never asked to allow LinkedEarth as an org. I'll try to add other people in the org that have the same level of power over authenticating.
On another note, I'm getting the following:

Also, I'm able to login but not anyone from the GitHub organization. I was never asked to authenticate the app and it doesn't show on my GitHub apps page. Any advice on adding it manually?

@khider, did you follow the advice from Sarah on this message: https://github.com/2i2c-org/infrastructure/issues/1418#issuecomment-1173598394?
@sgibson91, do you have any further thoughts besides the instructions you shared before?

Yes. And that solved the issue for me. I was able to access it. But I can't add anyone else, they get a 403 permission error as well.

Do I need to publicly list the members? I assume I can do that an as owner or is it locked to a user's preference?

@khider I changed the scope so it should work without people listing their membership publicly now. But each person would have to change it on their own profile, you wouldn't be able to do it for them.

Thanks! Was able to get people to log in.

Given the last message from @khider, I consider this one ready to be closed.
Thanks @sgibson91 for leading this effort.
If you have any other issues, @khider, feel free to reach out to the support email.

Hi all,
We have been getting ready to use the Hub more with users. Few questions I couldn't figure out:

I did select jupyterlab in the configurator but right now, the default view is notebook; not sure how to reset it. With that in mind, is it possible to install JupyterLab extensions?

We will start doing small scale tutorials. I tried to do one last week but was limited to 7 users. After that, the Hub wouldn't load. Is there a way for me to pre-warm nodes for these tutorials? They are 1hr in length but require a few people to login simultaneously.

We're planning an event in June in which a group of 10-12 people will work together towards a research problem. It will be 5 days, will need to support 10-12 simultaneous users but not as tightly constrained as we have done before. Can we use the hub or should I consider getting an event hub for that week? I would love to be able to use this Hub since the idea is to help them get started on this research project throughout the week but they would keep working at their own pace later on.

@khider, could you please re-submit these questions through our support channel so we can properly prioritize them and provide you with answers? Thanks!!