update k8s version

bump apimachinery、api、code-generator、client-golibrary to 1.13.1

https://github.com/knative/build/pull/503
We need to use the new version of the apimachinerylibrary, so we bump it, if there is a correspondence and compatibility matrix doc, it might be better.

cc @pmorie who may have more firsthand knowledge here.
I think that generally picking up 1.12 would mean dropping support for 1.10 because Kubernetes generally targets supporting +/-1 version of compatibility.
1.13 would mean dropping support for 1.11, which is the latest GA version on both GKE and EKS IIUC.
If we merge CRD sub-resource support in 0.3, I could see us move to 1.12 since CRD sub-resource support when beta in 1.11, but until we drop support for 1.10, even moving to 1.12 seems bad.


I cannot provide password that contains & character

Hi martilla,
First of all, very good work! Here is first of a bunch of issues I've found while getting this script production-ready in my private cloud's backup
I have a password that contains & character. When I provided it in configuration file, the bash script did not compile, which caused mysqldump to fail sailently. It created 4kb empty file and uploaded it to my s3. Ruby-escaping (\\&) the character fixed the problem. However, I think it should be fixed on exec evaluation step (evaluating bash formulas inside the program is generally not a good idea at all...)

Happy to know you're considering using the tool, thanks a lot for the reports @Glorf! Definitely taking them all in consideration for the next release.
Out of curiosity, are you using the ENV variables available for passwords? MYSQL_PASSWORD & PG_PASSWORD for storages & AWS config variables (AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY ).
In any case, you're absolutely right about the character escaping. I'll be following up when I have an update.

Hi, no I passed the passwords in file and don't use ENVs


Synchronous operations are disallowed in EnvInfoMiddleware and MetricsEndpointMiddleware

Version: 4.0.0-preview1.0.3
/metrics is ok.
/metrics-text and /metrics throw exceptions.
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLTP0CM7OINB", Request id "0HLTP0CM7OINB:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.TextWriter.Dispose()
   at App.Metrics.Formatters.Ascii.EnvInfoTextWriter.Dispose(Boolean disposing)
   at App.Metrics.Formatters.Ascii.EnvInfoTextWriter.Dispose()
   at App.Metrics.Formatters.Ascii.EnvInfoTextOutputFormatter.WriteAsync(Stream output, EnvironmentInfo environmentInfo, CancellationToken cancellationToken)
   at App.Metrics.AspNetCore.DefaultEnvResponseWriter.WriteAsync(HttpContext context, EnvironmentInfo environmentInfo, CancellationToken token)
   at App.Metrics.AspNetCore.Endpoints.Middleware.EnvInfoMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 77.6828ms 500

fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLTP0CM7OINE", Request id "0HLTP0CM7OINE:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Flush()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.TextWriter.Dispose()
   at App.Metrics.Formatters.Ascii.MetricsTextOutputFormatter.WriteAsync(Stream output, MetricsDataValueSource metricsData, CancellationToken cancellationToken)
   at App.Metrics.AspNetCore.Endpoints.Middleware.MetricsEndpointMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]

Looks like I have the same issue while accessing /metrics:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLU22NA5TABC", Request id "0HLU22NA5TABC:00000008": An unhandled exception was thrown by the application.
System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.StreamWriter.Close()
   at Newtonsoft.Json.JsonTextWriter.CloseBufferAndWriter()
   at Newtonsoft.Json.JsonTextWriter.Close()
   at Newtonsoft.Json.JsonWriter.Dispose(Boolean disposing)
   at Newtonsoft.Json.JsonWriter.System.IDisposable.Dispose()
   at App.Metrics.Formatters.Json.MetricsJsonOutputFormatter.WriteAsync(Stream output, MetricsDataValueSource metricData, CancellationToken cancellationToken)
   at App.Metrics.AspNetCore.DefaultMetricsResponseWriter.WriteAsync(HttpContext context, MetricsDataValueSource metricsData, CancellationToken token)
   at App.Metrics.AspNetCore.Endpoints.Middleware.MetricsEndpointMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

We're using AspNetCore 3.1, could it be the issue?

After having the same issue I got it working by setting AllowSynchronousIO = true in  KestrelServerOptions
i.e:
.ConfigureWebHostDefaults(webBuilder =>
    webBuilder.UseKestrel((builderContext, options) => options.AllowSynchronousIO = true));

@alhardy
Hi, does the 4.0.0 nuget package have the #533 fix ?
I have the following packages
    <PackageReference Include="App.Metrics.AspNetCore.Endpoints" Version="4.0.0" />
    <PackageReference Include="App.Metrics.AspNetCore.Tracking" Version="4.0.0" />
    <PackageReference Include="App.Metrics.Extensions.DependencyInjection" Version="4.0.0" />
    <PackageReference Include="App.Metrics.Extensions.Hosting" Version="4.0.0" />

And I get the same error (Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead) on calling /metrics-text and /metrics
Should we apply @grounzero solution ? I hope we should avoid it ...

It should, could you try the latest 4.1.0 preview

@alhardy
I moved to version 4.1.0 (not preview one)
    <PackageReference Include="App.Metrics.AspNetCore.Endpoints" Version="4.1.0" />
    <PackageReference Include="App.Metrics.AspNetCore.Tracking" Version="4.1.0" />
    <PackageReference Include="App.Metrics.Extensions.DependencyInjection" Version="4.1.0" />
    <PackageReference Include="App.Metrics.Extensions.Hosting" Version="4.1.0" />

Here is the error I got on hitting the /metrics-text route (both /metrics and /env did not produce any I/O error). Note that even if the /metric-text route produce this exception, it still provide an expected output.

In the Configure method (Startup.cs) I use the following extension method
        public static IApplicationBuilder UseAllMetricsMiddleware(this IApplicationBuilder app)
        {
            // Routes
            // /metrics
            // /metrics-text
            // /env
            app.UseMetricsAllMiddleware();
            app.UseMetricsAllEndpoints();
            return app;
        }

Used here
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            app.UseHttpsRedirection();
            app.UseRouting();
            app.UseAuthorization();
            app.UseAllMetricsMiddleware();
          .....

And in the ConfigureServices method (Startup.cs) I use the following extension method
        public static IServiceCollection AddAllMetrics(this IServiceCollection services)
        {
            services.AddMetrics();
            services.AddMetricsTrackingMiddleware();
            services.AddMetricsEndpoints();
            services.AddMetricsReportingHostedService();

            return services;
        }

Used here
public void ConfigureServices(IServiceCollection services)
{
         services.AddAllMetrics();
          .....

Do you see any mistake explaining the behavior ?

Still seeing this error with "/metrics-text" ("/metrics" and "/env" are both OK) with App.Metrics 4.2.0

Confirming that I still see this error using /metrics-text, while both /metrics and /env are fine in App.Metrics 4.3.0.


Added better tree error info propogated up

Instead of just returning a simple error string, commands to the Tree will not return an error that has information about what actually went wrong so it can be dealt with at a higher level.

Is this good to merge in?


When pressing keys like NUM LOCK Terminal takes that as console input

Windows Terminal version
1.18.2822.0
Windows build number
10.0.19044
Other Software
PowerShell 7.4.0
Steps to reproduce

Open a Terminal Window with PowerShell

ls C:\ -r

Scroll up a couple of "pages"

Press NUM LOCK

Woops now you are at the prompt at the bottom of the console windows
Expected Behavior
That one would stay at the position one scrolled to
Actual Behavior
You are at the prompt at the bottom of the console windows

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #5366 for more discussion.
/dup #5366


Optimal transport for inverse solution validation

Problem:
We need an universal tool to compare the inverse solution to simulated source configuration, i.e. have a function f(stc_simuleted, stc_estimated) which would quantify how "close" estimated solution is to simulated one.
The existing way to compute the l2 norm between two stcs does not take into account spatial properties of sources (spatially close sources can still result in high l2 error norm.)
To solve solve this issue Dipole Localization Error (DLE) is often used, but it does not seem to me an universal solution, cause it would have issues with distributed or multiple sources configurations.
Possible solution:
During several discussions of this problem, the idea of using of optimal transport was proposed.
I tried to formalize it, substantially based on H. Janati et al. "Wasserstein regularization for sparse multi-task regression", 2018.
The main idea is to do optimal transport from estimated solution to the simulated one, and use the amount of "energy" needed for this transport as a similarity measure, i.e. smaller it is, better is the estimation.
Please consult the latex file for mathematical formulation of this criteria, and tell me what do think about it.
@agramfort, do you have a code to compute the unbalanced Wasserstein distance that you used in this arcticle?
OT_for_simulation_metric.pdf

@hichamjanati could share some code for sure and it would nice to have this. However I would first focus on more commonly used metrics. In your literature review did you list the commonly used ones? if so can you share them here?

@makkostya  You can find code for the unbalanced Wasserstein distance here https://github.com/hichamjanati/unbalanced-ot.
Something is not clear in your document, from what I understand, you would like to include both temporal and spatial shifts in your ground metric M, but at the same time since you compute the L2 norm between time series, there is not 'transport in time' right ?  How do you compute \theta in R^Ns from your stc matrix S ?

@hichamjanati Yes, in the way I presented it there is no transport in time. The similarity of time series is taken into account only to define the cost matrix between sources. We could add transport in time by it will increase the dimension of the problem.
\theta_i = || S_i. ||
t_i = S_i. / || S_i. ||
Yes indeed, p = Ns


UUID vs Text type mismatch in prisma client query render

Bug description
I have the just changed the typing of my ids to the following in the prisma schema:
model Table {
    id                         String                     @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
    columns              TableColumn[]      @relation("TableHeaders")
}

And the following foreign key reference:
model TableColumn {
    table                 Table              @relation("TableHeaders", fields: [tableId], references: [id])
    tableId              String            @db.Uuid
}

This rendered the following migration lines:
ALTER TABLE "Table"
ALTER COLUMN "id" TYPE uuid USING ("id"::uuid),
ALTER COLUMN "id" SET DEFAULT gen_random_uuid(),

ALTER TABLE "TableColumn"
ALTER COLUMN "tableId" TYPE uuid USING ("tableId"::uuid);

I ran that migration and confirmed that the type of the id and tableId on postgres is uuid via pgadmin.
Then I tried to run the following query:
select * from "TableColumn" where "id" = ''d65d9564-867a-40ff-9e77-a4a6a03b1ea3' and true order by "TableColumn"."order" asc

via prisma.queryRawUnsafe
This fails with:
`prisma.$queryRawUnsafe()` invocation:\n\n\nRaw query failed. Code: `42883`. Message: `ERROR: operator does not exist: uuid = text\nHINT: No operator matches the given name and argument types. You might need to add explicit type casts.

I used prisma's logging to confirm what was sent to the db and this is what it returned:
Query: select * from "TableColumn" where "tableId" = $1 and true order by "TableColumn"."order" asc
Params: ["d31d946a-867a-40ff-9f77-a4a6a23b1ea3"]

Logged using:
prismaClient.$on('query', (e: Prisma.QueryEvent) => {
  console.log(`Query: ${e.query}`)
  console.log(`Params: ${e.params}`)
  console.log(`Duration: ${e.duration}ms`)
})

However, I ran the following line directly on the db using pgadmin:
SELECT * FROM "TableColumn" WHERE "tableId" = 'd31d946a-867a-40ff-9f77-a4a6a23b1ea3' AND TRUE ORDER BY "TableColumn"."order" ASC;

This ran exactly as expected on postgres.
Why is prisma unable to render this correctly?
How to reproduce
See above, schema was provided
Expected behavior
No response
Prisma information

// Add your schema.prisma

// Add your code using Prisma Client

Environment & setup

OS:
Database:
Node.js version:

Prisma Version

Figured out my issue. I use kysely to construct queries. it seems like kysely does not handle text/uuid casting properly. I had to write a simple helper to cast uuids properly:
export function getKyselyUuid(uuid: string): RawBuilder<string> {
  return sql`${uuid}::uuid`
}

now if I properly wrap uuids in kysely queries before passing them to prisma, it works fine.
i.e.
kysely
      .selectFrom('Table')
      .selectAll()
      .where('id', '=', getKyselyUuid(tableId))


Main page is down?

http://jstrieb.github.io/urlpages
Seems to not be loading...?

It is loading for me. Maybe try again? If it is still not working, I will look into it

Ah ok.. The problem is the same as one of the other open issues, that my anti virus program is triggering a "Phishing" warning. And because of that, it seems to prevent the page from loading so I'm getting a "connection reset" error in any browser I try.


ci(release): add linux/arm64 support

Adding support for linux/arm64.
My use-case being that on MacOS M1, docker builds are often virtualised as linux_arm64 but this also benefit regular linux on ARM users.

Hi @brad-jones, are you still supporting this repo?

Apologies @sdurrheimer, if I'm completely honest the use case I had for this tool is no longer a problem for me so no haven't really being paying any attention to this repo for some time now but it's a tool that I can still see has value.
Looks like the builds all passed, if you can fix up the commit message as per: https://github.com/brad-jones/hashdir/actions/runs/7260244288/job/20146158959?pr=72#step:4:567 I'll merge it.

Strange my commit doesn't have body lines, but I guess the job is taking the MR description as a commit.
I adapted the PR description to not have lines longer than 100 characters, but it will not trigger a re-build of the failed task automatically.

@sdurrheimer Bummer looks like the sigstore signing I was experimenting with is no longer working.
https://github.com/brad-jones/hashdir/actions/runs/7415183268/job/20177851259#step:6:782
I'll take a look when I can otherwise feel free to submit another PR if you want.


proposal: Go 2: panic on unhandled error

golang often use last return as error like this.
f,err = os.OpenFile(...)
if the caller receive the error, and the exception should handle by the caller , nothing changed now .
if the caller not receive the error (include f,_ = os.OpenFile(...)) , the compiler should handle the error , if the error is not nil , the compiler should panic the error.
my idea is this , responsibility is caller when caller receive the error , otherwise the responsibility is compiler's.

What if you want to ignore the error?
I expect that this would break a number of existing programs.

how about a special token to ignore the error , and the default behvior is panic.
if the error is very import and happend constantly should be handle by caller just like before.
error handing is  heavy work the programmer , this can reduce a lot work for programmer , and the exception always can be found on a  log file .

I think this idea can be a litter dangerous for a running server .
If this come true , all program writting in golang require more test.

how about automatic logging the unhanled error , print the stack trace .
for the current go programing , a lot of error handing is just logging.
the interface error contains no stack trace , this can be very useful when locate an online problem.

so the logging is a default handler for unhandled error , can be very convenvience!!!

See also #22122


Fix Platform Thread Override

Fixes https://github.com/godotengine/godot/pull/52734
This way, Scons knows about whatever header you include in platform_thread.h (which can be created in platform/[platform])
In the linked PR, Scons has no way of detecting changes in PLATFORM_CUSTOM_THREAD_H

This is an old issue with sons, having a define poiting to a header messes with scons dependency resolution, scons doesn't see the header in the macro as a dependency. We dealt with this prevously on the refcount file:
https://github.com/godotengine/godot/blob/2.0/core/safe_refcount.h#L94
Because those couldn't be implemented in a virtual class. Ideally this would also be a virtual class, but since it's not, this was the best solution

Thanks!

Cherry-picked for 3.4.


Update 01 Knapsack.cpp i prefer it using dp approch which reduces the repetition of the same value

instead of recursion i prefer using dp approch for this question which reduces the time complexity and same value is not returning again
Description
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #(issue_no)
Replace issue_no with the issue number which is fixed in this PR
Type of change
Please delete options that are not relevant.

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

Checklist:

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

instead of recursion i prefer using dp approch for this question which reduces the time complexity and same value is not returning again
Description
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #(issue_no)
Replace issue_no with the issue number which is fixed in this PR
Type of change
Please delete options that are not relevant.

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

Checklist:

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

please let me know  if there is any issue or not @Ayush7614


preprocessing and normalization

Hello @Daniil-Osokin.
Really nice work that you have done thank you!
On the normalization why do you divide by 256 and not with 255?

Hi! It is a typo happened before the training started (so model was trained with it), more details in #19.

Hi! Good to know! Thanks!


Spread operator only accepts array literal

Describe your problem and how to reproduce it:
In this lesson on the spread operator, I ran into the following issue.
This particular lesson has three tests:

arr2 is correct copy of arr1.
... spread operator was used to duplicate arr1.
arr2 remains unchanged when arr1 is changed.

When I change the default text (arr2 = []; // change this line) to my solution of choice (arr2 = Array(...arr1);) I find that tests 1 and 3 pass, while test 2 fails. But, I'm clearly using the spread operator here.
I can get test 2 to pass by using an array literal, rather than a function (e.g. arr2 = [...arr1];), however, both solutions should be valid, as they both fulfill all requirements for this lesson.
Add a Link to the page with the problem:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place/

PR submitted for review: https://github.com/freeCodeCamp/freeCodeCamp/pull/36565

What solution do you think should not pass and does with the current tests and/or what solution do you think passes when it should not?


[WIP] Upgrade to Hadoop 3.x Hive 3.x

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Work in Progress

please prefix w/ right jira. I understand, its still WIP. but a gentle reminder.

As discussed, we're going to have all changes for Hadoop/Hive/Spark 3.x upgrades in one PR: #5402. Closing this one.


Super Tool Tips flashes

I am upgrading from the last commercial release and the only issue is that the tooltip hover just flashes for my super tooltips.  Doesnt seem to matter what I set the Automatic Delay AutoPopDelay ReshowDelay. Just flashes the correct text and then reflashes for a tenth of a second every second.
Any pointers to what has or could have changed during those updates? Maybe where to look?

@Smurf-IV
The issue might be that I need to update the 5.472 & 5.480 NuGet packages. Bit busy setting up my VS 2019 dev environment to do this.

KryptonToolkitSsuite5472 on .net 4.7.2.  Tried it both in VS 2019 and 2017 just in case. Same behavior.

This is what the "Normal" tooltip from winforms does when the mouse becomes part of the Tooltip window (i.e. it it is over the tooltip) use an offset position to inform the tooltip where to locate when it pops-up.
Microsoft now about this, that is why they have changed the behavior in some of their recent apps (And in .net 4.8) to tkae the mouse position out of the equation when a tool tip pops up under th mouse.

Ok I am confused. What is the resolution to this issue? It won't be fixed it will, or has already been.

@SuperDaveOsbourne Try the Placement mode to see if this fixes your issue.

I did and where you can use it, it does. A lot of the other ribbon items not so. Was still looking up the food chain to see if I could set it on the tooltip control or somewhere else. Would be nice to see a global setting where all would inherit as the default.

So which setting is "Good" and which is bad ?
I can then change the default.

The ones that I changed to MousePoint seemed to work. But like I said, not many of the controls in my application have that option in the ribbon. Won't really get to spend time with it for another 5 hours and I get home.

Hi @SuperDaveOsbourne
I have updated the NuGet package of 5.472 to build 856 today. That was the last release I uploaded 5 days ago.

Didn't seem to change anything in the ribbon controls. 5.472.856.0

Hi @SuperDaveOsbourne
Is it all of or just some of the controls?

Just some

Could you list them please?

Yes, I will do a new project to so I can see whats going on that I can share. Going to be later tonight in the US.

That's ok, I'll have a look tomorrow, as we're on BST/GMT time here.

Is there a way to PM you a link to my project at dropbox? You can email me at<EMAIL_ADDRESS>

Hi @SuperDaveOsbourne
I've sent you an e-mail, so you can send me a link.

Done

Yes, I see what you mean. @Smurf-IV Is there a way that I can send it over to you?

Yes, I see what you mean. @Smurf-IV Is there a way that I can send it over to you?

Weirdly, it seems to do it if you have multiple lines of text

Is there a maximum image size that you can have, as it seems to do it with large images? @SuperDaveOsbourne can you try resizing your images to either 64 x 64 or 32 x 32 and see if it still persists?

I accidentally used an image that was 400x400 px, thinking it would resize to a thumbnail.. It doesn't do the resize!
Also in the Elucidate project, I have a Tooltip that fills the entire height of the screen, again from a resource string, and by accident.

Don't think its that, it does it on the check boxes with no images too.

I think you are right about the multiple lines.

It doesn't do it with one line text. umm...

One thing I don't understand is it doesn't do it if your pointer is in a specific position????????

Yes, I see what you mean. @Smurf-IV Is there a way that I can send it over to you?

Did you get my email ?

Yes, I've sent over the link. It seems to be on a timer.

Just a thought, could they be tied to a timer?

@SuperDaveOsbourne
There may also be another issue in your app. To use side panels, you need to use the KryptonDockableNavigator to get the desired behaviour, otherwise upon hiding the panel, you'll be left with white space.

Just a thought, could they be tied to a timer?

They are, that's why there is a delay to show, and a "small" delay to hide, thus causing the flashing.
I have a fix, Just testing now !

Thanks, I was doing something in the code to handle that, but will go back and fix it.

@SuperDaveOsbourne Is this what the older version used to do ?

As in, the tooltip was always offset below the Tab bar ?

@Smurf-IV and @SuperDaveOsbourne
Having it offset would make more sense, as it could engulf the button

I could change the offset, so that it is half-way along the bottom region.
It cannot be in the "Button" region, as that mouse pointer could be "Just" inside, thus back to the flashing.
This is caused by the TabGroup having "Special" tooltip control, which is then routed through to the Krypton Tooltip.
Another way is to change the routing so that it is always uses an offset from the mouse, but if the tooltip tries to display off a right screen edge, then it will bounce back into the mouse pointer causing flashing again.
Or even this as a default:

Emailed  a YouTube link showing them in the past...

Emailed a YouTube link showing them in the past...

Not to me :-(

https://www.youtube.com/watch?time_continue=58&v=lajMgp4tewA   46 seconds in...

Cheers, then the option for as close as possible will be better all round.
I'll do it this weekend ..

I'll be delivery this:

The new fix deletes some tabs in the ribbon and removes the text on the tab itself in the project I sent you.. 5.472.890

Hi @SuperDaveOsbourne
See issue #142 for details


Fixes #284. Adds layer for followers and following separately.

I am getting Unable to get your followers and Unable to get your following in the console. I am signed in, so I guess this might not be related to rate limiting.

It requires some time after signing in to see the followers.Try to sign in through home page and once you are signed in click on the map.

The question that comes up here as well is: How to deal with people who have thousands, hundreds of thousands and more of followers? Is it possible to display and load them step by step? As discussed saving this kind of data in loklak could also speed up things here. Could you create issues for this, please? This can then be solved in iterative issues.

Got the following to show up in the map. However, when i clicked on following, nothing happened (yet), and I have no errors in the console.

@prasht63 My understanding was that you implement checkboxes. Otherwise, how is it possible to show followers and following on one map?

@mariobehling I will implement that.

@aneeshd16 implemented checkbox.Please review

@prasht63 Please center the map and please get rid of the scroll bar. The map should fit on a normal screen.
Finally have you documented this feature on the Readme.md? Please include the changes in the PR. Thank you.

The map is not yet center aligned, this is how it looks for me

In the radio options, followers shows up correctly on map with a drop down action of the markers from the top but following throws up an error in console as "There is error"

Works good now. Can you remove the scroll bar? Use overflow-y:hidden on the element.
However, it worked only once, on page refresh I could not see any markers. Don't think it was because of rate limiting because its the first thing i did today. Must have loaded the page only 2-3 times.

@aneeshd16 Thats a separate issue reloading one.Also I am working on scroll.For now when you sign in and then click on map you should see two layers.This PR just centres the map and adds layers.

okay cool, that's there. Merging this then.


Option to define an image prefix

At my company we mirror all externally used images to our private registry. While you can already change the individual image names used by the jaeger components, it is currently rather tedious as you need to override each component image individually.
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
  namespace: my-namspace
spec:
  strategy: production
  collector:
    image: internal-mirror/jaegertracing/jaeger-collector:1.19.2
  query:
    image: internal-mirror/jaegertracing/jaeger-query:1.19.2
...

Instead we would prefer to set a shared image prefix used by all images like:
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
  namespace: my-namspace
spec:
  strategy: production
  imagePrefix: internal-mirror/
...

If this would be contribution you would accept, I'll happily start working on it.

While I see the problem, I'm not sure it's worth adding a new field to the CR. I'm leaving this open for people to comment: if more people comment that they need this, we might add it.
In the meantime: are you aware that you can override the images via the operator's CLI? You can just add --jaeger-query-image=internal-mirror/jaegertracing/jaeger-query:1.19.2 to the operator.yaml deployment definition and all CRs managed by this operator will use this image by default.

Yes, but this still means adding the prefix individually for the all-in-one, query, collector, cronjob(s), agent images, which feels like a lot to keep track of. I would also be happy to add a CLI only option first, if that is preferred.

Noted. Let's see if other people also need it, and we'll start with an operator flag instead then.

Hi all, would find it useful too, we have exactly the same requirement. Thanks

@andreacoccodi, just wanted to make sure you are aware that you can override the default images via --jaeger-*-image= flags.

I know we can do that, but that also means that every time we upgrade we need to run a job to find out the tag we need to use and then run the cli to update the images.
If there was a flag in the values.yaml of the operator we could set it once and forget about it.

The values.yaml would be in the Helm Chart, which does sound like an appropriate place for this.


Postman: File Payment consents

Description

Add the proper requests on postman collections to tests the File payment consent

Acceptance criteria

[ ] All current postman tests pass.
[ ] The File payment consent request tests pass.

Create consent for File payment done. collection TPP flow (OBIE certificates)


Remove Etcd support from the Solr Operator

Issue number of the reported bug or feature request: Resolves #117
Describe your changes
Removed all config options for using Solr with Zetcd.
I have also moved around the Provided zookeeper section as it doesn't make a large amount of sense if the zetcd option is gone.
Testing performed
More testing needs to be performed for the backwards compatibility with the old Provided ZK options.

This is good to go @bsankara. Will be awesome to get this code out of the operator.


LFX internship is around the corner!

Who's in to be a mentor?
Help writing things?

@vickova this issue is not workable, since we (maintainers) would need to decide first if we want to participate in LFXs internship program


Search results are not legible

When using CMD+F to find text in files the results in the sidebar are not legible. This is on the non lite version.
Example with HackTheBox

Example with Material Theme

Does anyone have a fix for this? How can I change the highlight color for search results?

I tried resolving this issue in this PR: https://github.com/silofy/hackthebox/pull/10

Fixed in 0.2.9, thanks for your help!


Helm operator on AKS randomly deletes releases

When Tiller runs in AKS (Azure's hosted Kubernetes service), it sometimes gets into an inconsistent state because of a combination of a known networking issue in AKS (Azure's hosted Kubernetes service) and client-go not handling intermittent network failures nicely.
This causes the helm operator to occasionally reinstall a release (instead of upgrading it as it should), which fails because the release already exists. The helm operator then purges the "failed" release.
A workaround for this (until the AKS team can apply it globally) is to apply the environment variables mentioned in Azure/AKS#676 to the helm operator pod.

#1446 adds an extraEnvs value to the helm chart, so you can apply the workaround like so:
helmOperator:
  extraEnvs:
  - name: KUBERNETES_PORT_443_TCP_ADDR
    value: <your-fqdn-prefix>.hcp.<region>.azmk8s.io
  - name: KUBERNETES_PORT
    value: tcp://<your-fqdn-prefix>.hcp.<region>.azmk8s.io:443
  - name: KUBERNETES_PORT_443_TCP
    value: tcp://<your-fqdn-prefix>.hcp.<region>.azmk8s.io:443
  - name: KUBERNETES_SERVICE_HOST
    value: <your-fqdn-prefix>.hcp.<region>.azmk8s.io

Are there any fixes we can apply within helm-op itself?

Resolved in #1530


System tenant's DNS pod stuck in Pending state on one of RPs at 2X2 scale-out environment

What happened:
When 2X2 scale-out environment is up, system tenant's DNS pod stuck in Pending state.
NAMESPACE     NAME                                                   HASHKEY               READY   STATUS    RESTARTS   AGE   IP            NODE               NOMINATED NODE   READINESS GATES
kube-system   pod/coredns-default-ip-172-31-3-192-69bfb6dcdd-gngcm<PHONE_NUMBER>640235328   1/1     Running   0          58m   <IP_ADDRESS>   ip-172-31-13-237   <none>           <none>
kube-system   pod/kube-dns-554c5866fc-twwwb<PHONE_NUMBER>526896971   0/3     Pending   0          58m   <none>        ip-172-31-5-191    <none>           <none>

What you expected to happen:
When 2X2 scale-out environment is up, system tenant's DNS pod should be in Running state.
How to reproduce it (as minimally and precisely as possible):
Use script ./hack/arktos-up-scale-out-poc.sh to start 2 X 2 scale-out environment.
Anything else we need to know?:
When 2X2 scale-out environment is up, system tenant's DNS pod may be in Running state, may be in Pending state.
Environment:

Arktos version (use kubectl version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Network plugin and version (if this is a network-related bug):
Others:

this defect was root caused by configmap/sa of (system tenant) pods cannot be fetched properly by kubelet , since kubelet cannot track back to the proper TP source in that case. This should have been fixed by PR #1244.


[BUG] Uninstallation job stuck forever if the MutatingWebhookConfigurations or ValidatingWebhookConfigurations already deleted

Describe the bug
if the MutatingWebhookConfigurations or ValidatingWebhookConfigurations already deleted, Uninstallation job stuck forever with the error: time="2024-01-12T23:35:46Z" level=warning msg="Failed to uninstall" func="controller.(*UninstallController).handleErr" file="uninstall_controller.go:254" controller=longhorn-uninstall error="validatingwebhookconfigurations.admissionregistration.k8s.io \"longhorn-webhook-validator\" not found"
To Reproduce

Deploy Longhorn v1.6.0-rc1: kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.6.0-rc1/deploy/longhorn.yaml
Delete the MutatingWebhookConfigurations or ValidatingWebhookConfigurations: kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io longhorn-webhook-validator
Enable deletion confirmation flag kubectl -n longhorn-system patch -p '{"value": "true"}' --type=merge lhs deleting-confirmation-flag and uninstall Longhorn kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v1.6.0-rc1/uninstall/uninstall.yaml
Unintallation stuck forever and user cannot uninstall Longhorn cleanly:time="2024-01-12T23:45:52Z" level=warning msg="Failed to uninstall" func="controller.(*UninstallController).handleErr" file="uninstall_controller.go:253" controller=longhorn-uninstall error="validatingwebhookconfigurations.admissionregistration.k8s.io \"longhorn-webhook-validator\" not found"

Expected behavior
Uninstallation job does not stuck.

Verified on master-head 20240115

longhorn master-head https://github.com/longhorn/longhorn/commit/2503414115ce422ee4d0f8fe17e8bc5939770873
longhorn-manager master-head https://github.com/longhorn/longhorn-manager/commit/a78c2a41defc1f0c093062b597c94ae17213f750

Verified on v1.6.x-head 20240115

longhorn v1.6.x-head https://github.com/longhorn/longhorn/commit/2a518b4d6ed334e941543715bb7a876f9bc1a336
longhorn-manager v1.6.x-head https://github.com/longhorn/longhorn-manager/commit/7bcef10ef02e5200cc80e5631908383bda3c807e

The test steps

https://github.com/longhorn/longhorn/issues/7657#issue-2079892564

Result passed


Installation fails (HA 2021.9.7 @ Synology DSM 6.2.4)

Describe the bug
I followed the instructions and copied the extension into it's proper folder. After the reboot, I saw it and hit the button to install it. However, watching the logs, that failed.
Expected behavior
An installed integration.
Screenshots
Not a screenshot, but this:
2022-06-01 02:38:09 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File<EMAIL_ADDRESS>line 422, in _handle_request
    resp = await self._request_handler(request)
  File<EMAIL_ADDRESS>line 499, in _handle
    resp = await handler(request)
  File<EMAIL_ADDRESS>line 119, in impl
    return await handler(request)
  File<EMAIL_ADDRESS>line 60, in security_filter_middleware
    return await handler(request)
  File<EMAIL_ADDRESS>line 89, in forwarded_middleware
    return await handler(request)
  File<EMAIL_ADDRESS>line 24, in request_context_middleware
    return await handler(request)
  File<EMAIL_ADDRESS>line 78, in ban_middleware
    return await handler(request)
  File<EMAIL_ADDRESS>line 144, in auth_middleware
    return await handler(request)
  File<EMAIL_ADDRESS>line 135, in handle
    result = await result
  File<EMAIL_ADDRESS>line 128, in post
    return await super().post(request)
  File<EMAIL_ADDRESS>line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File<EMAIL_ADDRESS>line 72, in post
    result = await self._flow_mgr.async_init(
  File<EMAIL_ADDRESS>line 153, in async_init
    flow, result = await task
  File<EMAIL_ADDRESS>line 171, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File<EMAIL_ADDRESS>line 710, in async_create_flow
    integration.get_platform("config_flow")
  File<EMAIL_ADDRESS>line 524, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File<EMAIL_ADDRESS>line 529, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/var/packages/python38/target/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File<EMAIL_ADDRESS>line 10, in <module>
    from .wideq import (
  File<EMAIL_ADDRESS>line 7, in <module>
    from .factory import get_lge_device
  File<EMAIL_ADDRESS>line 2, in <module>
    from .ac import AirConditionerDevice
  File<EMAIL_ADDRESS>line 16, in <module>
    from .device import Device, DeviceStatus
  File<EMAIL_ADDRESS>line 61, in <module>
    class Monitor(object):
  File<EMAIL_ADDRESS>line 285, in Monitor
    def decode_json(data: bytes) -> dict[str, Any]:
TypeError: 'type' object is not subscriptable

Environment details:

Environment (HASSIO, Raspbian, etc): Synology NAS DS413j (v6.2.4)
Home Assistant version installed: 2021.9.7
Component version installed: Current master of this writing.
Last know working version: None
LG device type and model with issue: Didn't even get there...
LG devices connected (list): None

Output of HA logs
Paste the relavant output of the HA log here.
See above.

Additional context
Potentially interesting:
admin@DiskStation:/volume1/@appstore/homeassistant$ ./env/bin/python --version
Python 3.8.12
admin@DiskStation:/volume1/@appstore/homeassistant$ ./env/bin/python ./bin/wheel  version
wheel 0.37.0

I suck at working with Python so all I can do is provide the error logs, really. Sorry!
Kind regards,
Ingwie

Python 3.8 is deprecated from HA 2022.1. You must upgrade to Python 3.9.

Closing this issue because no feedback received.


Using OpenRouter triggers an exception because returned 'usage' parameters do not match expected structure

Using OpenRouter endpoints works well when added as an OpenChat model but the calculation of usage in inference() causes an exception since OpenRouter doesn't return the expected 'usage' parameters in the expected format. When that exception is handled, the text_output of the LLM is set to "/ERROR/"
Sample code to use OpenRouter:
model_name = 'google/gemini-pro'
os.environ["USER_MANAGED_OPEN_CHAT_API_KEY"] = os.environ.get("OPERNROUTER_API_KEY")
ModelRegistry().add_open_chat_model(model_name, api_base=os.environ.get('https://openrouter.ai/api/v1'))

Reference:
OpenRouter documentation
Location to fix:
https://github.com/llmware-ai/llmware/blob/ebd08a29b3e6bb21661dd56d08d3ed97fc01da5d/llmware/models.py#L1128

Thanks- this is great feedback - and appreciate the details and documentation - we will get this fixed in the next 1-2 days - will update you once its done - would be great for you to test ....

Added a fix - just merged in the main branch.    It should avoid triggering exception when calling OpenRouter (although usage data will need to be gathered separately from OpenRouter API) ... Let us know if this solves the issue.

The change was implemented - no follow-up issues reported - so marking as closed.   If you still run into any isues, please raise a new issue - or join us on Discord and share the details there.


build: pin jsonschema to ^4.17.* to avoid installing 4.18.x

Because some dependencies of jsonschema now require the rust toolchain (see 1 and 2), building charms that depend on SDI (and therefore pull jsonschema) fail when building because none of them have rustc available when pip installing the charm's python dependencies.
Reasoning:
jsonschema 4.18.x introduced a dependency on rdps-py which at the same time introduced a dependency on maturin, a python package that requires the rustc toolchain to be built and installed from source. jsonschema 4.17.x does not have that dependency.
Merge after #50
Links:
[1]python-jsonschema/jsonschema#1117
[2] python-jsonschema/jsonschema#1114
Part of: canonical/bundle-kubeflow#648

🚀


Pattern type inference error

I'm facing an error with inference of pattern types when using sealed classes.
Here is the full reproduction: https://github.com/dnys1/sealed_repro
Given the following class hierarchy:
Legend:
  Open Class (o)
  Sealed Class (*)
  Final Class (x)

classDiagram
    class BaseException["BaseException o"]
    class AuthException["AuthException *"]
    class UnknownException["UnknownException o"]
    class AuthServiceException["AuthServiceException o"]
    BaseException <|-- AuthException
    AuthException <|-- UnknownException: implements
    AuthException <|-- AuthServiceException: extends

    class AuthResult["AuthResult *"]
    class AuthSuccessResult["AuthSuccessResult x"]
    class AuthPartialSuccessResult["AuthPartialSuccessResult x"] {
        +step1Exception: Step1Exception
        +step2Exception: Step2Exception
    }
    class AuthFailureResult["AuthFailureResult x"] {
        +exception: AuthException
    }
    class Step1Exception["Step1Exception x"]
    class Step2Exception["Step2Exception x"]
    AuthResult <|-- AuthSuccessResult
    AuthResult <|-- AuthPartialSuccessResult
    AuthResult <|-- AuthFailureResult
    UnknownException <|-- Step1Exception: extends
    AuthServiceException <|-- Step2Exception: extends

In base_exception.dart we define an exception hiearchy for which all classes inherit BaseException. From this, we derive AuthException which is sealed and has discrete subtypes, namely UnknownException and AuthServiceException.
In auth_result.dart, we define the result of an Auth operation. The result takes one of three discrete states: a successful result (AuthSuccessResult); a partial success (AuthPartialSuccessResult) where either the first or second step of the operation failed with an AuthException; and a complete failure (AuthFailureResult).

Given a method which performs an Auth operation:
Future<AuthResult> performAuthOperation();

We expect the following to work:
1. Inference on exception type
final result = await performAuthOperation();
switch (result) {
case AuthSuccessResult _:
    print('Success');
case AuthPartialSuccessResult(step1Exception: final exception?) ||
        AuthPartialSuccessResult(step2Exception: final exception?) ||
        AuthFailureResult(:final exception):
    print('Partially failed: $exception');
// For exhaustiveness; should never happen.
case AuthPartialSuccessResult(step1Exception: null, step2Exception: null):
    print('Unknown error occurred');
}

In the second branch, step1Exception, step2Exception, and exception are all subclasses of AuthException, yet its type cannot be inferred. The Analyzer presents the error:
The variable 'exception' has a different type and/or finality in this branch of the logical-or pattern.
Try declaring the variable pattern with the same type and finality in both branches.dartinconsistent_pattern_variable_logical_or

2. Explicit exception type
final result = await performAuthOperation();
switch (result) {
  case AuthSuccessResult _:
    print('Success');
  case AuthPartialSuccessResult(step1Exception: final AuthException exception) ||
        AuthPartialSuccessResult(step2Exception: final AuthException exception) ||
        AuthFailureResult(:final AuthException exception):
    print('Partially failed: $exception');
  // For exhaustiveness; should never happen.
  case AuthPartialSuccessResult(step1Exception: null, step2Exception: null):
    print('Unknown error occurred');
}

By explicitly specifying the exception types as AuthException, the analyzer stops complaining.

However, upon compilation, we get a similar error:
bin/sealed_repro.dart:28:71: Error: Variable pattern 'exception' doesn't have the same type or finality in all cases.
    case AuthPartialSuccessResult(step1Exception: final AuthException exception) ||
                                                                      ^^^^^^^^^

Number 1 is reproducible on Dart 3.0.0 and 3.1.0-94.0.dev.
Number 2 is only reproducible on Dart 3.0.0. On 3.1.0-94.0.dev, it compiles fine.

CC @chloestefantsova

Here are shorter repros.
Case 1 Reproduction
class A {}
class B extends A {}
class C extends A {
  E1 get foo => new E1();
}
class D extends A {
  E2? get bar => new E2();
  E3? get baz => new E3();
}

class E {}
class E1 extends E {}
class E2 extends E1 {}
class E3 extends E1 {}

test(A x) {
  switch (x) {
    case B _:
      return 1;
    case D(bar: final foo?) ||
            D(baz: final foo?) ||
            C(:final foo):
      return 2;
    case D(bar: null, baz: null):
      return 3;
  }
}

Case 2 Reproduction
class A {}
class B extends A {}
class C extends A {
  E1 get foo => new E1();
}
class D extends A {
  E2? get bar => new E2();
  E3? get baz => new E3();
}

class E {}
class E1 extends E {}
class E2 extends E1 {}
class E3 extends E1 {}

test(A x) {
  switch (x) {
    case B _:
      return 1;
    case D(bar: final E1 foo) ||
            D(baz: final E1 foo) ||
            C(:final E1 foo):
      return 2;
    case D(bar: null, baz: null):
      return 3;
  }
}

Currently both the CFE and the Analyzer report the mismatching type or finality on the first one and allow the second one. @stereotype441, since the behavior of the tools is similar, could this issue be a part of the shared analysis?

@chloestefantsova thanks for the shorter repros!
In the main development branch, both the analyzer and CFE report an error for case 1 and no error for case 2. This is correct behaviour, because all the declarations of foo are required to have the same type, whether the type is inferred or explicit; in case 1, the inferred types are different (E2, E3, and E1), so it's correct to report an error.
In the stable branch, the analyzer behaviour is correct, however the CFE reports an error for both case 1 and case 2. So it looks like the correct behaviour has been implemented in the CFE, but it needs to be cherry-picked to stable.
Bisecting, I found that the correct behaviour was implemented in b9b1fdff76d21012dfe9dad213f3a6aed6adfb61. I will submit a cherry-pick request.

Cherry-pick request is here: https://github.com/dart-lang/sdk/issues/52488

Cherry-pick request is here: #52488

Thank you for finding the root of it, @stereotype441! I've +1'd the cherry pick CL.

As of 10b909a1563c0bbaeb4afab5cf3c3c81a9afadf8, the cherry-pick has landed on the stable branch. Assuming no problems arise, it should go out as part of the next stable release, probably next Wednesday.

Thank you @stereotype441 @chloestefantsova! 🙏


Node v10 install error

Do you want to request a feature or report a bug?
Bug (references https://github.com/amasad/sane/issues/117)
What is the current behavior?
npm i
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.
6.0.0
node -v
10.0.0
npm i
...
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v64 ABI) (falling back to source compile with node-gyp)
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (nodejs/10.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "nodejs/10.0.0/bin/node" "nodejs/10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64"
gyp ERR! cwd node_modules/fsevents
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nodejs/10.0.0/bin/node nodejs/10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:947:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command "nodejs/10.0.0/bin/node" "node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd node_modules/fsevents
node-pre-gyp ERR! node -v v10.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'nodejs/10.0.0/bin/node nodejs/10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)

What is the expected behavior?
It installs
Please provide your exact Jest configuration
"jest": "^21.2.1",

Run npx envinfo --preset jest in your project directory and paste the
results here
npx: installed 1 in 2.187s

  System:
    OS: macOS High Sierra 10.13.4
    CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  Binaries:
    Node: 10.0.0 - ~/.asdf/shims/node
    Yarn: 1.6.0 - /usr/local/bin/yarn
    npm: 5.6.0 - ~/.asdf/shims/npm
  npmPackages:
    jest: ^21.2.1 => 21.2.1 ```

<EMAIL_ADDRESS>has the has bumped fsevents

This is within semver range, resinstalling Jest (or forcing a deep sane update) should fix it.
We're some way out of making a new release (and won't update Jest 21), so I'll close this.
Feel free to send a PR bumping sane in Jest, but it won't be released for some time.

👍 thanks!


Adding a CONTRIBUTING.md

Adding a Contributing guide can be helpful for beginners who are just starting with open source.

@Coding-Hashira Go ahead

@Coding-Hashira Go ahead

I just gave the idea. I'm a beginner myself, so I don't think I'm the right person to add contributing guidelines to this project.

@Coding-Hashira Okay then let's leave this issue for some other person. You can check my other projects (except Sukoon) to make contribution.

Hi, I am new to open source. But, I am interested in adding CONTRIBUTING.md. I can check other projects and make a pull request, then we can refine it, according to this project.

@mann-codes2014 That's great. Go ahead.

Thanks, I will try to get it done as soon as possible.

Hey @Coding-Hashira i would love to work on this issue :)

Hey @clairecharles I am working on this.

@Coding-Hashira Okay then let's leave this issue for some other person. You can check my other projects (except Sukoon) to make contribution.

Can you please recommend me a good project to make meaningful contribution? I'm new to open source, that's why I'm having some difficulties with finding a project! 😅

@Coding-Hashira You may participate in Hacktoberfest.

@Coding-Hashira You may participate in Hacktoberfest.

Yes, thinking to participate in it. Just thought to make some meaningful contributions before starting it! 😅

@Coding-Hashira You'll become a pro by contributing in various projects during hacktoberfest

@Susmita-Dey Looking Forward To It!!! 🤩🤩


Implement JDBC setReadOnly

Comments addressed!

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

Comments from Reviewable

LGTM Merging now.


The dill plugin is not working, giving macro "MAKE_CODEOBJECT" requires 9 arguments, but only 8 given in C compile

Compile args:
python -m nuitka --follow-imports^
--show-progress^
--show-scons^
--assume-yes-for-downloads^
--warn-unusual-code^
--windows-disable-console^
--windows-icon-from-ico="myicon.ico"^
--plugin-enable=numpy^
--plugin-enable=multiprocessing^
--plugin-enable=dill-compat^
--plugin-enable=pylint-warnings^
--windows-dependency-tool=pefile^
--experimental=use_pefile_recurse^
--experimental=use_pefile_fullrecurse^
--standalone^
--windows-company-name=mycompany^
--windows-product-name=myproduct^
--windows-product-version=123^
--mingw64^
--include-data-file=some_data.txt=some_data.txt^
--include-data-file=folder_with-files/*=folder_fith_files/^
app.py
Log: https://pastebin.com/raw/WpauBx7Z
Full-log: https://nextcloud.mnwd.in/s/aK6wfYFM6EEJ9NX
Used dependencies:
git+git://github.com/potocpav/python-concur
concur-imgui >= 1.3.9
Pillow
glfw
PyOpenGL
imageio
imageio-ffmpeg
pandas
ujson
emoji
requests
brotli
brotlipy
aiohttp
loguru
pycryptodomex
pywin32
wmi
git+git://github.com/chwba/pyshorteners@master
semantic_version
rich
multiprocess
psutil
pdoc3
git+git://github.com/Preston-Landers/pyuac
colorlog
colorama
pygments
cryptography
concur
validators
beautifulsoup4
numpy

The dill plugin was regressed when an additional field of code objects became supported, this is fixed on factory and will likely be in the next hotfix: https://nuitka.net/doc/factory.html

The dill plugin was regressed when an additional field of code objects became supported, this is fixed on factory and will likely be in the next hotfix: https://nuitka.net/doc/factory.html

Tried again with factory, it failed with:
Nuitka:INFO: Finding dependencies for app.dist\pythoncom39.dll took 0.74 seconds
Nuitka:INFO: Finding dependencies for app.dist\pywintypes39.dll took 0.01 seconds
Traceback (most recent call last):
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\__main__.py", line 209, in <module>
    main()
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\__main__.py", line 195, in main
    MainControl.main()
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\MainControl.py", line 739, in main
    copyUsedDLLs(
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\freezer\Standalone.py", line 1530, in copyUsedDLLs
    shutil.copyfile(dll_filename, target_path)
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: 'app.dist\\pythoncom39.dll'

Tried again with factory, it failed with:
Nuitka:INFO: Finding dependencies for app.dist\pythoncom39.dll took 0.74 seconds
Nuitka:INFO: Finding dependencies for app.dist\pywintypes39.dll took 0.01 seconds
Traceback (most recent call last):
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\__main__.py", line 209, in <module>
    main()
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\__main__.py", line 195, in main
    MainControl.main()
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\MainControl.py", line 739, in main
    copyUsedDLLs(
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\site-packages\nuitka\freezer\Standalone.py", line 1530, in copyUsedDLLs
    shutil.copyfile(dll_filename, target_path)
  File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.1\lib\shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: 'app.dist\\pythoncom39.dll'

You are using --windows-disable-console and then you wonder why it doesn't output anything?

You are using --windows-disable-console and then you wonder why it doesn't output anything?

You are using --windows-disable-console and then you wonder why it doesn't output anything?

good point :D - I thought If run the app via CMD it would still print the stdout.

You are using --windows-disable-console and then you wonder why it doesn't output anything?

good point :D - I thought If run the app via CMD it would still print the stdout.

Alright recompiled it, first got an error from glfw Failed to load shared library, so I copied over the glfw.dll. Then started again and got:
before imports
Traceback (most recent call last):
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\app.py", line 24, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\base\State.py", line 5, in <module src.base.State>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\views\guild_joiner_gui.py", line 13, in <module src.views.guild_joiner_gui>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\features\online_stayer\OnlineStayer.py", line 6, in <module src.features.online_stayer.OnlineStayer>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\features\online_stayer\os_gateway.py", line 13, in <module src.features.online_stayer.os_gateway>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\aiohttp\__init__.py", line 6, in <module aiohttp>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\aiohttp\client.py", line 1121, in <module aiohttp.client>
TypeError: GenericAlias expected 2 arguments, got 3

aiohttp is a library, the app needs  to function properly.

Alright recompiled it, first got an error from glfw Failed to load shared library, so I copied over the glfw.dll. Then started again and got:
before imports
Traceback (most recent call last):
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\app.py", line 24, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\base\State.py", line 5, in <module src.base.State>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\views\guild_joiner_gui.py", line 13, in <module src.views.guild_joiner_gui>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\features\online_stayer\OnlineStayer.py", line 6, in <module src.features.online_stayer.OnlineStayer>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\src\features\online_stayer\os_gateway.py", line 13, in <module src.features.online_stayer.os_gateway>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\aiohttp\__init__.py", line 6, in <module aiohttp>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "C:\Users\ADMINI~1\DOCUME~1\COMPIL~1\SOURCE~1\APP~1.DIS\aiohttp\client.py", line 1121, in <module aiohttp.client>
TypeError: GenericAlias expected 2 arguments, got 3

aiohttp is a library, the app needs  to function properly.

Manually copying stuff is not supported. Please file new issues with minimal reproducers of the first issues that happens.

Manually copying stuff is not supported. Please file new issues with minimal reproducers of the first issues that happens.

Alright, I will try to create a reproduceable scenario for it, do not that aiohttp has no relation to glfw whatsoever - glfw is being used for the UI, aiohttp does network requests. I doubt its the cause.

Alright, I will try to create a reproduceable scenario for it, do not that aiohttp has no relation to glfw whatsoever - glfw is being used for the UI, aiohttp does network requests. I doubt its the cause.

Issue 1 regarding GLFW: https://github.com/Nuitka/Nuitka/issues/964

Issue 1 regarding GLFW: https://github.com/Nuitka/Nuitka/issues/964

Issue 2 regarding aiohttp: https://github.com/Nuitka/Nuitka/issues/966

Issue 2 regarding aiohttp: https://github.com/Nuitka/Nuitka/issues/966

The dill plugin was repaired <IP_ADDRESS> already.


None gradient when using tensorboard callback on keras 2.2.4 and tf 1.14. Bug??

I believe this may be a bug in the code.
When I add tensorboard callback to a simple sequential model (with Batch Normalization layer) with write_grad=True
it gives this error:
ValueError: An operation has Nonefor gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval.
Error traces back to Optimizer:
    def get_gradients(self, loss, params):
        grads = K.gradients(loss, params)
        if None in grads:
            #print(params,grads) I added this line to debug
            raise ValueError('An operation has `None` for gradient. '
                             'Please make sure that all of your ops have a '
                             'gradient defined (i.e. are differentiable). '
                             'Common ops without gradient: '
                             'K.argmax, K.round, K.eval.')

and this is called from
Class Tensorboard line:
    def set_model(self, model):
        self.model = model
        if K.backend() == 'tensorflow':
            self.sess = K.get_session()
        if self.histogram_freq and self.merged is None:
            for layer in self.model.layers:

                #below line causes problem
                **for weight in layer.weights:**
                    #print("SetModel. tb:", weight) I added this to debug
                    mapped_weight_name = weight.name.replace(':', '_')

The weight in my network that gives the error:
SetModel. tb: <tf.Variable 'batch_normalization_1/moving_mean:0' shape=(32,) dtype=float32_ref>
But moving_mean is not trainable!!! So it does not have any grad.
The code is calling for all weights Optimizer.get_gradient.
And get_gradient does not like None gradients.
I change the code to the set_model of Tensorboad callback class.
  def set_model(self, model):
        self.model = model
        if K.backend() == 'tensorflow':
            self.sess = K.get_session()
        if self.histogram_freq and self.merged is None:
            for layer in self.model.layers:

                #changing below line
                for weight in layer.trainable_weights:
                      mapped_weight_name = weight.name.replace(':', '_')
...

And it works!
Below is my configuration however I have seen the same error in Google Collab too!

Have I written custom code (as opposed to using example directory):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  Ubuntu 16.04
TensorFlow backend (yes / no):  yes
TensorFlow version:  1.14 but (1.13 had also error)
Keras version:  2.2.4
Python version:  3.7.3
CUDA/cuDNN version:  10.0/7.6
GPU model and memory:  gtx1070

Also experiencing this. I'm using Keras with the Tensorflow backend. I've installed the environment using anaconda, specifically the keras-gpu package.
OS: Ubuntu 19.04, Linux 5.0.0-21
Keras: 2.2.4
Tensorflow: 1.12.0
Python: 3.6.8


Make sure genesis block is in archive node

We need this to implement rosetta spec

Alternatively, a special endpoint to grab just the genesis block

In archive_client, we are transferring every new nodes to the archive node using the New_breadcrumb extension. According to the definition of this extension, when we first create the extension, the root of the frontier would be added as the first new breadcrumb. So I believe the genesis block would be automatically included if we start the archive node freshly when we start the network.


Fuzzy match accents etc

Is it possible to get the autocomplete to fuzzy match characters like u for ü, o for ó etc?

that already seems to be the case but may be browser dependent

Thanks for getting back to me - I have it on this site I made, how does that behave for you? If I type "Miro" I do not see results for "Joan Miró", for example.

aren't you using this        ??
which is not mine :-)

OMG, I completely am - what a moron (me)?! I'm so sorry for wasting your time. I did originally use yours, I cannot now remember why I switched.
Apologies, again


Reproduction of results

Hello, I cannot reproduce the results in the paper on the K2C experimental setting. Can you provide your KITTI dataset data?

The KITTI dataset is the same as the original KITTI. Please double-check that the config and the GPUs are correctly set for reproduction.


While changing video when running multiple videos from network, the video does not pause if not initialized

In the case of playing multiple videos same as in the package example.
https://github.com/brianegan/chewie/blob/master/example/lib/main.dart
The problem is if I changed to another video before the current video is initialized it does not pause instead it waits until initialized and run in the background alongside with the new video.

same here


Add SIRDS tutorial

Single Image Stereograms are now available at the HEAD in Tensorflow.  This tutorial shows how to use this new operation.

The Stereograms Op has just been released in TensorFlow 1.2rc0.


Documentation for Lightning Distribution support

Added some docs and examples to clarify how Drupal Distribution can be deployed on Drupal VM

I personally preferred building distributions with my own drush makefile and using the includes directive for the distros makefiles. This makes it a lot easier maintaining updates
---
api: 2
core: "7.x"

defaults:
  projects:
    subdir: "contrib"

includes:
  # Include kickstarters make files.
  - "../../vendor/commerce_kickstart/drupal-org-core.make"
  - "../../vendor/commerce_kickstart/drupal-org.make"

projects:
  # Install commerce kickstart profile
  commerce_kickstart:
    type: "profile"
    subdir: ""
    download:
      type: "git"
      url: "http://git.drupal.org/project/commerce_kickstart.git"
      branch: "2.x"
      revision: "8a3ca71993051c974dfae25be085cda86092111b"

  # Update some packages within commerce_kickstart
  commerce_add_to_cart_confirmation:
    download:
      type: "git"
      url: "http://git.drupal.org/project/commerce_add_to_cart_confirmation.git"
      branch: "1.x"
      revision: "ce82b9a4b8647ba0157bc43054a05299f6ed3c41"
    patch:
      - "https://www.drupal.org/files/issues/2159009-commerce_add_to_cart_confirmation-replace_live_with_on.patch"

The idea setup was described in this blog post.

@oxyc - That would be greatly preferred. I don't want to set a precedent that Drupal VM includes documentation for every popular Drupal distribution, else the docs would become a bear to maintain.

Though maybe we could add a page under the Drupal Deployment Strategies section documenting your approach with the makefile wrapper...?


Create complex flows

Give the option to create complex flows that have multiple jobs that depend to each other. For example it would be really useful if we were able to generate job files like this:
# foo.job
type=command
command=echo foo

# bar.job
type=command
dependencies=foo
command=echo bar

You can generate those job files by simply by setting those properties exactly.
The Job options dictionary serializes directly to job files, with a few other niceties.
from azkaban import Job, Project

PROJECT = Project('sample')

PROJECT.add_job('foo', Job({
  'type': 'command',
  'command': 'echo foo'
}))

PROJECT.add_job('bar', Job({
  'dependencies': 'foo',
  'type': 'command',
  'command': 'echo bar'
}))

@sankethkatta Thanks a lot for the quick response. Will do that.


Export/Import keys via NSData

Allow the exporting and importing of private and public keys as files. It would be good design to add these two interface:

MIHExporter
MIHImporter

...providing the ability to import/export MIHPrivateKey, MIHPublicKey and MIHSymmetricKey. Every file format could be one implementation for these interfaces.
There should also be the ability to set passwords when it is supported by the file format (like it is with P12).

@hohl is it possible for now at least to get NSData of generated keys?

What do you mean with NSData. It is already possible to use toData for exporting. However at the moment you have no choice about choosing the (file) format. For example MIHRSAPublicKey will always export to "*.pub" files as you may know it from OpenSSL anyway (for example same format as used by ~/.ssh/id_rsa.pub for SSH auth).
However this issue is about moving these functionality from the domain classes itself to an exporter class. Then it would be possible to export single keys into multiple different formats. Like having a "MIHOpenSSLExporter" and a "MIHPuttyExporter".


[occm] 'internal-network-name' broken since release 1.18

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
I configured internal-network-name in the cloud.conf configuration file. But the InternalIP of my minion nodes always get the wrong IP address.
What you expected to happen:
That the InternalIP of my minion nodes corresponds to the one allocated in the network specified by internal-network-name.
How to reproduce it:
Create a cluster with minion that have more than one network. Specify one of the networks under internal-network-name and create minions. Depending on the ordering of the VM's ports the wrong node InternalIP will be patched.
Anything else we need to know?:
I've tested releases 1.17, 1.18 and master. Only the latter two are broken. After increasing log verbosity to 5 for occm I can see the following for those releases:
I0420 07:59:30.338203       1 leaderelection.go:272] successfully renewed lease kube-system/cloud-controller-manager
I0420 07:59:30.443443       1 openstack.go:754] Node 'openstack-md-0-x92kl' address '<IP_ADDRESS>' ignored due to 'internal-network-name' option
I0420 07:59:30.443465       1 openstack.go:754] Node 'openstack-md-0-x92kl' address '<IP_ADDRESS>' ignored due to 'internal-network-name' option
I0420 07:59:30.443471       1 openstack.go:754] Node 'openstack-md-0-x92kl' address '<IP_ADDRESS>' ignored due to 'internal-network-name' option
I0420 07:59:30.443477       1 openstack_instances.go:90] NodeAddresses(openstack-md-0-x92kl) => [{InternalIP <IP_ADDRESS>} {InternalIP <IP_ADDRESS>} {InternalIP <IP_ADDRESS>} {InternalIP <IP_ADDRESS>}]

It seems that commit 46cab81a3590238390809ceed942993d796aa50b broke #444 as the first loop do not use the internal-network-name option.
Environment:

openstack-cloud-controller-manager(or other related binary) version: 1.18 // master
OpenStack version:
Others:

@gdetal can you set verbose debugging (--v=6) and provide the internal-network-name value? Using --v=6 can show the actual server details JSON object returned by OpenStack Nova, e.g.
        "addresses": {
            "private": [
                {
                    "OS-EXT-IPS-MAC:mac_addr": "00:0c:29:0d:11:74",
                    "OS-EXT-IPS:type": "fixed",
                    "addr": "<IP_ADDRESS>",
                    "version": 4
                }
            ]
        },

private key should correspond to internal-network-name value.

thanks for the fast follow-up.
 You need to change it to a valid network name.

@gdetal looks like #884 logic missed networkingOpts.InternalNetworkName condition for interfaces. I'll try to fix it.

@kayrus ok, thank you !


Some questions

Thanks for a cool project. Im not sure if its just stockholm syndrome that I have come to prefer a more explicitly pure style for many operations; but at the same time I feel there are design patterns which a pure functional style has not found good design patterns for, like collecting activation losses through a network; and it seems something like ninjax is the way to go.
Some critical questions, if you dont mind:

Do you find there are limitations on functionality, such as imperfect composability for ninjaxified JAX-like operations, compared to their native JAX variants?
Do you find there is a significant impact on compilation time in using ninjax?
For sure, this extra abstraction layer probably wont help with JAX already less-than-stellar clarity of its error messages?
Are there any other steelman-arguments against the purify pattern, that you are aware of?
I like the global rng stuff; frankly I have yet to work on an application where the greater control that JAX gives you over rng state was worth the extra effort; but technically at least, I suppose there is the downside, that now the order of your rng operations are only as deterministic as your python interpreter/jax compiler; and if theyd do any internal multithreading (i dont think they do now?) that changes the order of rng calls, results need not be deterministic across different compilation runs?
I think im pretty happy with the linen/optax model where my params / optimizer state are not coupled to my model definition and I dont know that id want that to become more OOP/torch-like (though its cool that we have the option). I suppose there is no argument against dipping my toes into ninjax by just replacing my rng handling first, without taking the full ninjax-pill?

Hey!

Do you find there are limitations on functionality, such as imperfect composability for ninjaxified JAX-like operations, compared to their native JAX variants?

The same as with other frameworks here. JAX transformations like grad, cond, and while except pure functions as inputs. If you want to pass an impure user function into something like JAX grad or while then you have to purify it first. Ninjax and other frameworks thus also provide their own versions of grad and while that does this for you. That lets you use grad and while inside impure functions. Internally, those wrappers take the param tree out of the global variable, pass them into the JAX grad/while/etc, and then put them back into the global variable before calling the user function.

Do you find there is a significant impact on compilation time in using ninjax?

99%+ of compilation time happens in XLA after the program graph has been created. So there is no overhead from Ninjax.

For sure, this extra abstraction layer probably wont help with JAX already less-than-stellar clarity of its error messages?

Yes, it doesn't help (and also doesn't hurt).

Are there any other steelman-arguments against the purify pattern, that you are aware of?

I see function transformations and functional programming as the right choice for a low-level deep learning framework like JAX. That said, I don't think it's productive to implement learning algorithms at that level, so there is a need for higher-level libraries that introduce state. All those libraries need some form of purify transformation. In Haiku it's called hk.transform and Flax attaches its transformed init/apply functions automatically onto each module.
Haiku deserves credit as one of the first libraries that implement state for JAX but I think it's using an overly complicated and overly restrictive approach. Flax came later and is easier to use but I think it's over-engineered and also overly restrictive (far from the "flexible" in its tag line). Both Haiku and Flax are perfectly fine when you train a single neural network with a single function end-to-end, but they aren't suited for more complex use cases.

I like the global rng stuff; frankly I have yet to work on an application where the greater control that JAX gives you over rng state was worth the extra effort; but technically at least, I suppose there is the downside, that now the order of your rng operations are only as deterministic as your python interpreter/jax compiler; and if theyd do any internal multithreading (i dont think they do now?) that changes the order of rng calls, results need not be deterministic across different compilation runs?

The order in which the RNG is split is purely determined by the Python program. XLA optimizations don't affect it because everything is functional at that point. You're also safe in multithreaded environments. Each thread can runs its own (or the same) pure/jitted function because the RNG is only global within each pure/jitted function. You would run into issues if you used multithreading inside of a jitted function but that makes no sense anyways. So everything is deterministic despite global RNG.
But as you said, for some algorithms it's better to manually split an RNG key. In that case, you can either just pass the RNG as a normal input argument to the impure JAX function, or you can use nj.rng() early in your impure JAX function and then pass that into your inner functions.

I think im pretty happy with the linen/optax model where my params / optimizer state are not coupled to my model definition and I dont know that id want that to become more OOP/torch-like (though its cool that we have the option). I suppose there is no argument against dipping my toes into ninjax by just replacing my rng handling first, without taking the full ninjax-pill?

Params and optimizer state aren't coupled to your model object in Ninjax either. This is same in most frameworks that add state to JAX. At a high level, you pass the params tree into the purified function, and what the purify wrapper does is put the param tree into a global variable. You modules can then read from (and in Ninjax also write into) that global param tree. After running your impure user function, the purify wrapper takes the param tree back out of the global variable and returns it as a return value, so everything looks pure from the perspective of JAX and can be transformed with jit etc.

wrt flax/haiku

Agreed, it is also my initial impression that the purify mechanism as implemented here in ninjax is a more general, and in its generality imo the more comprehensible abstraction than the terminology introduced by flax/haiku. Frankly I had never really committed to trying to understand what they were doing under the hood; but reading the ninjax readme and source made it click for me in a fraction of the time id spent on trying to understanding those others.
What you are saying sounds convincing to me; sometimes there isnt a good reason it hasnt been done before.

I agree it would be cool for JAX to support a very basic state mechanism. That way, frameworks don't have to wrap all the native JAX transformations. On the other hand, of course there is a risk in committing to a specific design (and the additional complexity) for JAX if there isn't agreement on what the best design is.
I haven't seen the specific design used in Ninjax anywhere else, it was just inspired by how Haiku and Flax work. I might sit down with the JAX team at some point to talk this through.

I suppose one of the core questions would be if you could make a clean cut between a generic context capturing and purifying mechanism, and more module / naming composition related specifics which do not feel like theyd belong in JAX; not sure to what extent that would be possible or desirable.

I think that's very possible. Ninjax uses this separation, the first ~300 lines of ninjax.py implement purify, accessing/modifying the global state, and the impure version of standard JAX transformations. The remaining ~200 lines implement scopes and modules on top of that.


.NET 8 Support

Updated to .NET 8

@dansiegel  Fixed comments

@jsuarezruiz  Can you merge this PR as it is already approved by both reviewers?


[BrokenLinksH2]

Docs Build status updates of commit daee029:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/how-to-replace-the-styles-parts-in-a-word-processing-document.md
:bulb:Suggestion

Details

docs/how-to-remove-a-document-part-from-a-package.md
:white_check_mark:Succeeded

docs/how-to-remove-hidden-text-from-a-word-processing-document.md
:white_check_mark:Succeeded

docs/how-to-remove-the-headers-and-footers-from-a-word-processing-document.md
:white_check_mark:Succeeded

docs/how-to-retrieve-a-dictionary-of-all-named-ranges-in-a-spreadsheet.md
:white_check_mark:Succeeded

docs/how-to-retrieve-a-list-of-the-hidden-rows-or-columns-in-a-spreadsheet.md
:white_check_mark:Succeeded

docs/how-to-retrieve-a-list-of-the-worksheets-in-a-spreadsheet.md
:white_check_mark:Succeeded

docs/how-to-retrieve-application-property-values-from-a-word-processing-document.md
:white_check_mark:Succeeded

docs/how-to-retrieve-comments-from-a-word-processing-document.md
:white_check_mark:Succeeded

docs/how-to-retrieve-the-number-of-slides-in-a-presentation-document.md
:white_check_mark:Succeeded

docs/how-to-set-the-font-for-a-text-run.md
:white_check_mark:Succeeded

docs/how-to-validate-a-word-processing-document.md
:white_check_mark:Succeeded

docs/includes/addinsnote.md
:white_check_mark:Succeeded

docs/introduction-to-markup-compatibility.md
:white_check_mark:Succeeded

docs/working-with-slide-masters.md
:white_check_mark:Succeeded

docs/how-to-replace-the-styles-parts-in-a-word-processing-document.md

Line 188, Column 1: [Suggestion: disallowed-html-attribute - See documentation] HTML attribute 'sdata' on tag 'span' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix broken links
@lindalu-MSFT
The Content & Learning team is fixing broken links on docs.microsoft.com for the rest of H2. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only link fixes and does not change other content. Please review within five business days and merge, or comment in the PR with any changes you'd like to see. Thanks!


allow contentDir to be defined in config.json

Sorry for double commit, this should only be for aa4a274d
When defining contentDir in config.json blacksmith post will output content to that location.

Hi @morganrallen,
This looks handy, but I'm not quite sure how it works. Would you mind producing some examples showing me how this is used?

The basic idea it to set contentDir to "./pages" and then blacksmith post will create the content directories there to be picked up by blacksmith generate. Generate should probably honor it also that way content directory could be somewhere separate.


Respond to QU as well as QM questions

At the moment I ignore QU questions in the code (i.e. asking for a unicast response to the multicast question). Fixing the code to respond to these as well as subsequent QM questions will speed up name / service resolution as normally the first query is a QU question.

This was a bit of a red herring, not sure why it didn't appear to work correctly before, but it all seems to be fine now. Actual issue was lack of support for Service Type Enumeration - see #23.


tests: emulator logging and speculos updates

Instead of redirecting the output of the emulators to /dev/null, redirect them to log files. If travis fails, print out those log files.
Speculos has pushed a fix for the timeout issues that we were seeing. Something about race conditions. So the Ledger tests should no longer timeout. Our patch to Speculos needs to be updated because of this fix. This also means that we can enable the signtx tests, so those have been enabled for Ledger as well.

AssertionError: 'code' unexpectedly found in {'error': 'Exception : Proxy connection failed', 'code': -3}

in ledger big sign test

AssertionError: 'code' unexpectedly found in {'error': 'Exception : Proxy connection failed', 'code': -3}

in ledger big sign test

I think the cache needs to be cleared, but I can't do that right now for some reason

Fixed the speculos patch again. Looks like travis is working now.

ACK https://github.com/bitcoin-core/HWI/pull/314/commits/ab86822ea9139c0e8d9a5ede103d1047e47c7b8c

love that green


feat: Minimal theme

A new minimal theme supporting live and VOD.

Todo:

~Show time range while in live DVR mode~
~Change the shape of the live button indicator~

looking good.
we'd still need to add the extra buttons that are not turned on by default. like seek forward / backward, cast, airplay etc and add CSS vars to toggle them on / off
see
https://github.com/muxinc/media-chrome/blob/94ccd2ba6c44e6ee279f4dc5d8527456c5c0ac75/src/js/themes/micro.js#L359-L405
https://github.com/muxinc/media-chrome/blob/94ccd2ba6c44e6ee279f4dc5d8527456c5c0ac75/src/js/themes/micro.js#L224-L262


distribute cffi correctly

fixes #32
@mhils I chose option 2 you proposed - I think this a good compromise for now.
What do you think about it?

Coverage remained the same at 99.37% when pulling 1345ad51f534a7e76fa9758d1134baacf202c39f on Kriechi:distribute-cffi into 1dda164d0381161d3d0ad4e65199f6382aa2bf0d on mitmproxy:master.

Coverage remained the same at 99.37% when pulling 370e533cec004de2390cee4f1a2a6d9993b59b7d on Kriechi:distribute-cffi into 1dda164d0381161d3d0ad4e65199f6382aa2bf0d on mitmproxy:master.

Coverage remained the same at 99.37% when pulling 8972c9831ca15d4b7b5d56f62894a41998d80b53 on Kriechi:distribute-cffi into e805f2d06609a297391e4486f9a8e5394bac5435 on mitmproxy:master.

Coverage remained the same at 98.95% when pulling b395049a853aa378773aebae83468c1b889c2d4e on Kriechi:distribute-cffi into f76bfabc5d4ce36c56b1d1fd571728ee06f37b78 on mitmproxy:master.

Very dumb question probably: What's the point of the cmdclass stuff? I don't see that mentioned in the cffi docs (https://cffi.readthedocs.org/en/latest/cdef.html).

@mhils: I based the setup.py changes on https://caremad.io/2014/11/distributing-a-cffi-project/ (the first/minimal example)


Bump Scio to 0.11.0

hi! I just wanted to leave some context for whoever works on/merges this PR.
I've mentioned the Avro encoding issue from Beam 2.31.0 (CharSequence fields are backed by non-serializable org.apache.avro.util.Utf8s by default rather than java.lang.Strings). We weren't able to get a fix for this into the recently released Beam 2.32.0. So, Scio 0.11.0 includes a shaded AvroCoder that contains a fix. So, if you rely on a java.lang.String representation in your Avro SpecificRecords, you'll have to replace your org.apache.beam.sdk.coders.AvroCoder.of(classOf[SomeAvroType]) references with org.apache.beam.sdk.coders.shaded.AvroCoder.of(classOf[SomeAvroType], true). The boolean flag tells the coder to use Beam's Reflect encoding/decoding API, which decodes to java.lang.Strings by default. This class is included in the scio-core artifact.
As an alternative, I documented here how to modify your Avro schemas to explicitly use a String representation by setting a certain field property. This requires no change to your AvroCoders.
When Beam 2.33.0 is released we can remove the shaded copy in Scio & go back to using the official Beam one.


Calculate allocated capacity and size on Get() across snaps of a volume

Changes are to open a disk chain vs. just the current in use disk.
Test:
administrator@hte-1s-eng-dhcp98:~$ docker volume create -d vmdk --name snap-disk1 --opt="attach-as=persistent" snap-disk1
a. Size on creation - only FS format has been done.
administrator@hte-1s-eng-dhcp98:~$ docker volume inspect snap-disk1
[
{
"Name": "snap-disk1",
"Driver": "vmdk",
"Mountpoint": "/mnt/vmdk/snap-disk1",
"Status": {
"access": "read-write",
"attach-as": "persistent",
"capacity": {
"allocated": "13MB",
"size": "100MB"
},
]
b. Start a container to use the volume
administrator@hte-1s-eng-dhcp98:~$ docker volume inspect snap-disk1
[
{
"Name": "snap-disk1",
"Driver": "vmdk",
"Mountpoint": "/mnt/vmdk/snap-disk1",
"Status": {
"access": "read-write",
"attach-as": "persistent",
"attached to VM": "Ubuntu-16-04",
"capacity": {
"allocated": "15MB",
"size": "100MB"
},
]
c. Copy data into the volume (cp -r /bin /data)
administrator@hte-1s-eng-dhcp98:~$ docker volume inspect snap-disk1
[
{
"Name": "snap-disk1",
"Driver": "vmdk",
"Mountpoint": "/mnt/vmdk/snap-disk1",
"Status": {
"access": "read-write",
"attach-as": "persistent",
"attached to VM": "Ubuntu-16-04",
"capacity": {
"allocated": "16MB",
"size": "100MB"
},
]
d. Create a snap of the VM running the container.
administrator@hte-1s-eng-dhcp98:~$ docker volume inspect snap-disk1
[
{
"Name": "snap-disk1",
"Driver": "vmdk",
"Mountpoint": "/mnt/vmdk/snap-disk1",
"Status": {
"access": "read-write",
"attach-as": "persistent",
"attached to VM": "Ubuntu-16-04",
"capacity": {
"allocated": "16MB",
"size": "100MB"
},
]
e. Copy more data in the container to the volume (cp -r /bin /data/bin1)
administrator@hte-1s-eng-dhcp98:~$ docker volume inspect snap-disk1
[
{
"Name": "snap-disk1",
"Driver": "vmdk",
"Mountpoint": "/mnt/vmdk/snap-disk1",
"Status": {
"access": "read-write",
"attach-as": "persistent",
"attached to VM": "Ubuntu-16-04",
"capacity": {
"allocated": "17MB",
"size": "100MB"
},
]
As seen 100MB is the size of the disk and total of 17MB has been allocated.
f. Delete the VM snap - data in the snap is consolidated to the pre-snap disk
administrator@hte-1s-eng-dhcp98:~$ docker volume inspect snap-disk1
[
{
"Name": "snap-disk1",
"Driver": "vmdk",
"Mountpoint": "/mnt/vmdk/snap-disk1",
"Status": {
"access": "read-write",
"attach-as": "persistent",
"attached to VM": "Ubuntu-16-04",
"capacity": {
"allocated": "17MB",
"size": "100MB"
},
]

Fixes #665


fix: read package name from aapt

What does this change accomplish?
Fixes Cannot launch Expo Android apps by using Aapt to get the package name instead of APK analyzer. This is the same solution used by Expo Orbit.
Resolves #26
How have you achieved it?
Apk Analyzer was not interpreting the Android Manifest correctly for Expo apps. I've switched to Aapt, which was already used to get the App Name, as it provides a better parsing in this scenario.
How can the change be tested?

Open Android app built with Expo in Tophat
See the app is downloaded correctly on the Device
See the app launches, instead of throwing an error

@lfroms can you have a look at that one, please?