[java8] sam local invoke throws java.lang.ClassNotFoundException when CodeUri points to a zip

Description
[java8] sam local invoke throws java.lang.ClassNotFoundException when CodeUri points to a zip
Steps to reproduce
Init an example application:
sam init --runtime java8 --dependency-manager gradle

Make following changes in HelloWorldFunction/build.gradle and template.yaml:
HelloWorldFunction/build.gradle
12a13,20
>
> task buildZip(type: Zip) {
>     from compileJava
>     from processResources
>     into('lib') {
>         from configurations.compileClasspath
>     }
> }
template.yaml
17c17
<       CodeUri: HelloWorldFunction
---
>       CodeUri: ./HelloWorldFunction/build/distributions/HelloWorldFunction.zip

Build zip:
HelloWorldFunction$ ./gradlew buildZip

Observed result
$ sam local invoke --no-event --debug
2019-06-04 15:56:16 Using SAM Template at /home/vagrant/projects/sam-app/java8/template.yaml
2019-06-04 15:56:16 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-06-04 15:56:16 Changing event name from before-call.apigateway to before-call.api-gateway
2019-06-04 15:56:16 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-06-04 15:56:16 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-06-04 15:56:16 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-06-04 15:56:16 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-06-04 15:56:16 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-06-04 15:56:16 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-06-04 15:56:16 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-06-04 15:56:16 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-06-04 15:56:16 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-06-04 15:56:16 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-06-04 15:56:16 Changing event name from before-call.apigateway to before-call.api-gateway
2019-06-04 15:56:16 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-06-04 15:56:16 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-06-04 15:56:16 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-06-04 15:56:16 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-06-04 15:56:16 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-06-04 15:56:16 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-06-04 15:56:16 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-06-04 15:56:16 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-06-04 15:56:16 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-06-04 15:56:16 local invoke command is called
2019-06-04 15:56:16 No Parameters detected in the template
2019-06-04 15:56:16 2 resources found in the template
2019-06-04 15:56:16 Found Serverless function with name='HelloWorldFunction' and CodeUri='./HelloWorldFunction/build/distributions/HelloWorldFunction.zip'
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 http://localhost:None "GET /v1.35/_ping HTTP/1.1" 200 2
2019-06-04 15:56:16 Looking for credentials via: env
2019-06-04 15:56:16 Looking for credentials via: assume-role
2019-06-04 15:56:16 Looking for credentials via: shared-credentials-file
2019-06-04 15:56:16 Found credentials in shared credentials file: ~/.aws/credentials
2019-06-04 15:56:16 Loading JSON file: /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.16.1/libexec/lib/python3.7/site-packages/botocore/data/endpoints.json
2019-06-04 15:56:16 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fb161204048>
2019-06-04 15:56:16 Loading JSON file: /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.16.1/libexec/lib/python3.7/site-packages/botocore/data/lambda/2015-03-31/service-2.json
2019-06-04 15:56:16 Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x7fb1612bcae8>
2019-06-04 15:56:16 Assuming an endpoint for lambda, apa: https://lambda.apa.amazonaws.com
2019-06-04 15:56:16 The s3 config key is not a dictionary type, ignoring its value of: None
2019-06-04 15:56:16 Setting lambda timeout as (60, 60)
2019-06-04 15:56:16 Loading JSON file: /home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.16.1/libexec/lib/python3.7/site-packages/botocore/data/_retry.json
2019-06-04 15:56:16 Registering retry handlers for service: lambda
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 Found one Lambda function with name 'HelloWorldFunction'
2019-06-04 15:56:16 Invoking helloworld.App::handleRequest (java8)
2019-06-04 15:56:16 Environment variables overrides data is standard format
2019-06-04 15:56:16 Loading AWS credentials from session with profile 'default'
2019-06-04 15:56:16 Resolving code path. Cwd=/home/vagrant/projects/sam-app/java8, CodeUri=./HelloWorldFunction/build/distributions/HelloWorldFunction.zip
2019-06-04 15:56:16 Resolved absolute path to code is /home/vagrant/projects/sam-app/java8/HelloWorldFunction/build/distributions/HelloWorldFunction.zip
2019-06-04 15:56:16 Decompressing /home/vagrant/projects/sam-app/java8/HelloWorldFunction/build/distributions/HelloWorldFunction.zip
2019-06-04 15:56:16 Skipping building an image since no layers were defined
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 http://localhost:None "GET /v1.35/images/lambci/lambda:java8/json HTTP/1.1" 200 None
2019-06-04 15:56:16 Looking for auth config
2019-06-04 15:56:16 No auth config in memory - loading from filesystem
2019-06-04 15:56:16 Trying paths: ['/home/vagrant/.docker/config.json', '/home/vagrant/.dockercfg']
2019-06-04 15:56:16 No config file found
2019-06-04 15:56:16 Looking for auth entry for 'docker.io'
2019-06-04 15:56:16 No entry found
2019-06-04 15:56:16 No auth config found
2019-06-04 15:56:18 http://localhost:None "POST /v1.35/images/create?tag=java8&fromImage=lambci%2Flambda HTTP/1.1" 200 None

Fetching lambci/lambda:java8 Docker container image......
2019-06-04 15:56:18 Mounting /tmp/tmp47cz_0cp as /var/task:ro,delegated inside runtime container
2019-06-04 15:56:18 http://localhost:None "POST /v1.35/containers/create HTTP/1.1" 201 201
2019-06-04 15:56:18 http://localhost:None "GET /v1.35/containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0/json HTTP/1.1" 200 None
2019-06-04 15:56:18 http://localhost:None "GET /v1.35/containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0/json HTTP/1.1" 200 None
2019-06-04 15:56:19 http://localhost:None "POST /v1.35/containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0/start HTTP/1.1" 204 0
2019-06-04 15:56:19 Starting a timer for 20 seconds for function 'HelloWorldFunction'
2019-06-04 15:56:19 http://localhost:None "GET /v1.35/containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0/json HTTP/1.1" 200 None
2019-06-04 15:56:19 http://localhost:None "POST /containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0/attach?stdout=1&stderr=1&logs=1&stream=1&stdin=0 HTTP/1.1" 101 0
START RequestId: c5786d8a-d34f-4a15-92f1-1238c1fe9612 Version: $LATEST
java.lang.ClassNotFoundException: helloworld.App
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)

END RequestId: c5786d8a-d34f-4a15-92f1-1238c1fe9612
REPORT RequestId: c5786d8a-d34f-4a15-92f1-1238c1fe9612	Duration: 8.63 ms	Billed Duration: 100 ms	Memory Size: 128 MB	Max Memory Used: 1 MB
2019-06-04 15:56:20 http://localhost:None "GET /v1.35/containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0/json HTTP/1.1" 200 None
2019-06-04 15:56:20 http://localhost:None "DELETE /v1.35/containers/4226ab8286e3623beafb00a0839155c47936b81ed9d9052bb26ccde80e8b4ff0?v=False&link=False&force=True HTTP/1.1" 204 0

The zip itself is found:
2019-06-04 15:56:16 Decompressing /home/vagrant/projects/sam-app/java8/HelloWorldFunction/build/distributions/HelloWorldFunction.zip

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: Linux admnode 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sam --version:
SAM CLI, version 0.16.1
python --version
Python 2.7.15rc1
docker --version
Docker version 18.06.1-ce, build e68fc7a

I was able to do this successfully:
sam init --runtime java8 --dependency-manager gradle --name java-gradle-experiment
cd java-gradle-experiment
# Perfomed the changes you described above
cd HelloWorldFunction
./gradlew buildZip
sam local invoke --no-event HelloWorldFunction

Can you upgrade to the latest version of the AWS SAM CLI and try again? I'm going to close for now as this appears to work, but if you continue to see issues feel free to reopen.


apify-platform/deploying section

Will knock out all of this section's lessons in a single PR because each lesson will be quite short and to the point. Not massively complex topics being discussed in this section. The structure will go as follows:
Deploying

Dockerfile
Inputs & Outputs
Polishing
Pushing
Apify CLI
Monetizing

Will write about Monetizing later on. View PR preview here

@mnmkng I think you missed the point of the tutorial a bit. It should not be about how to run on Apify Platform (the "deploying" title is wrong). It should be about how to take your existing project and wrap it in actor. So we should talk about Dockerfiles and non-JS languages.

It doesn't need to be primary content but we simply need content for all those people having projects in Java, C#, Rust, Shell, etc.

I don't agree. We don't have the tooling to actorify non JS projects. Even Python is super painful right now. We need to focus our efforts on projects that will have high conversion rate to functional actors.
On the other hand, it doesn't hurt anyone to have the content for those other languages ready. I just don't think we should optimize the structure to fit those other languages which probably represent 0.1% of our users.
Or do we have people coming to us with good non-JS/Python projects?

What if we were to provide python examples using the Apify client alongside the JS examples? Python is extremely popular, so many people have python code already sitting on Github

Yeah, definitely don't throw away any content!

I was just explaining this flow that Matt has with Rust to the guy with 10k GitHub stars. So it is not often but it happens and should happen more if we want to expand to the programming world.
And it is not that difficult to do actually, it is really just

Find suitable Dockerfile
20 lines of code for input
15 lines of code for output

I am moving the Apify CLI lesson to the very end, and am removing the stuff about initializing. It will be an extra thing at the end - it's still important to know about. Here is the new structure I'm thinking, please give ant feedback:
Deploying

Dockerfile (stays same)
Inputs & outputs (removed Rust examples, will add about testing locally)
Input schema (new lesson)
Pushing (stays same)
Monetizing (new lesson)
Apify CLI (remove stuff about initialization, add blurb about apify push command)

Are we all on the same page about this?

Output schema will be in the next section with a more complex actor example.

Is there a way to see this branch rendered? I'm getting lost in all those changes. Otherwise, I will leave it out to you guys mostly, nothing serious I disagree.

@metalwarrior665 https://developers.apify.com/academy/apify-platform/deploying?version=academy/apify-platform/deploying

I think it is ok but @mnmkng will probably complain about the Python :) I would like the other examples like Rust and go to be just linked at the end (or shown later). The Python code doesn't show the annoying part of dealing with Apify API

@fnesveda looked over the Python code and caught some bugs/issues there

Phew, this one was a bit of a back and forth, but the content was great as always Matt. 👏

Super glad everyone got to add their input and we were able to consolidate everything into 5 succinct lessons

Now let me open it :D


How to use vue-cli

Description
How to use vue-cli
Suggested solution
How to use vue-cli
Alternative
No response
Additional context
No response
Validations

[X] I agree to follow this project's Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Hi @soulkingking can you elaborate more, please?

您好，这里 TresJs入门指南 有教程关于如何使用 Tresjs 在创建了一个 Vue 实例后。

I wanted to use tres in vue-cli 4.5, but he reported an error
`| }) {
|   const i = j(() => ({

alpha: A(t.alpha) ?? !0,

|     depth: A(t.depth),
|     canvas: Vt(e),`


Test PR, do not merge

Please note that while we are transitioning from travis-ci to AWS CodeBuild, some tests are run on each platform. Non-AWS contributors will temporarily be unable to see CodeBuild results. We apologize for the inconvenience.
Description of changes:
Testing, do not merge
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

HMACPlus webhook fired, CodeBuild job succeeded.


How to see the script used in a Bridget mode response?

I know you can click the Details pane to see the raw JSON, which includes the script, but it's in single-line escaped format, which one would then need to decode in order to reuse it outside the browser. Could a way be added to display the script(s) in their raw original form?

Thanks for the suggestion, I have now improved the display for details now, for example

Fixed by https://github.com/bioimage-io/bioimageio-chatbot/commit/cdf0b0af57ade812a08b77597849400ed91b8d4c


how long this device work?

A week or month?
I need device with working time twice or more than normal laptop

I've not run the battery out fully yet, but I'd expect it to last a bit less time than the actual framework laptop.  I suspect the HDMI panel I'm using + keyboard MCU + trackball are probably less power efficient than the specific panel, keyboard and trackpad used in the framework laptop.
It's hard to get that sort of runtime out of any computing device that runs quickly, but you could get there with some low-power ARM systems perhaps if you didn't need a quite as much performance.


Better name for the save button when editing a "Gas record"

When creating a new "Gas record" the SUBMIT button is properly named "Add New Gas Record".
But when editing an existing record the button is named "Edit Gas Record", where it should be named "Save Gas Record" or just "Save".
Just like when editing a Vehicle, here the button name is "Save Vehicle".
Oh - may I suggest to move the Delete Vehicle button from the "main page" as presumably/hopefully this is a very rarely used action.
It makes more sense (for me) to move it to the Edit Vehicle page  as you're editing it (actually editing it very hard - you're deleting it :-)

Great with the customisation possibilities!
Will you welcome a PR for the changes like the one I have proposed here or will that be wasted work (and thus be better for me to maintain my own version?)


error : 403 disallowed_useragent while authenticating with google using azure services in iOS

Google stopped supporting webviews for authentication:
https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html
This package uses webviews to connect to google in iOS, because of this, google authentication in iOS is not working.

We are working on this.  In the interim, set up Client-Flow for Google.

I'm trying to implement the client flow now. I came up to the point that I have to login in azure with the access_token and id_token from google, but I get an exception (Unauthorized):
` var zumoPayload = new JObject();
zumoPayload["access_token"] = SignIn.SharedInstance.CurrentUser.Authentication.AccessToken;
zumoPayload["id_token"] = SignIn.SharedInstance.CurrentUser.Authentication.IdToken;
var user = await AanvraagManager.DefaultManager.CurrentClient.LoginAsync("google", zumoPayload);`
Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The request could not be completed.  (Unauthorized)
Both the access_token and the id_token are correctly filled.
Am I doing something wrong?

Per the documentation for the Google client flow on iOS, the payload is expected to be an ID token and authorization code. This documentation does need to be updated for some of the Firebase SDKs that Google is using now, but hopefully that helps.

Thanks for the response. I just fixed the issue. The problem was that for client flow I had to create a client_id and for azure I had to create a client id (at console.google.com). When I posted my authorization token to Azure it gave me the response:
JWT validation failed: IDX10214: Audience validation failed. Audiences: '[ClientID1].apps.googleusercontent.com'. Did not match:  validationParameters.ValidAudience: '[ClientID2].apps.googleusercontent.com' or validationParameters.ValidAudiences: 'null'.
To fix this issue I ended up editing the azure config file at https://resources.azure.com ( subscriptions/ Pay per use / resourceGroups / [my project] / providers / Microsoft.Web / sites / [my project] / config / authsettings / allowedAudiences)
I hope this helps for anyone else struggeling with this problem. This is really poorly documented.

Still the same issue using the Azure Mobile Apps Client. It should work out of the box.

In case it is still a problem, this blog post might help.

@adrianhall problem is fixed in UWP on v3.1.0 but still persists for iOS and Android. Any update on timing for a fix?

For iOS and Android, we use Xamarin.Auth; there is nothing in the main library that would cause an issue.  Have you updated Xamarin.Auth?

There's an open issue on Xamarin.Auth specific to this

@ntrogh @adrianhall
It is still open, so that users can read discussion on how to setup (most of them do not check closed issues). Xamarin.Auth provides support for  Native UI (CustomTabs and SFSafariViewContoller) in nuget v. 1.4.x, but the API was slightly changed.
In 1.5.0-alpha-* there is even Xamarin.Forms support.
Adrian, I tried to ping Paul Batum on Xamarin private slack team regarding Xamarin.Auth update and feedback (I found his name here and guys on Xamarin Components team told me to try to ping him).

I am no longer with Microsoft, so cannot assist here.

any update here for Xamarin Forms

Still having issues with this.


chore: update pre-commit hooks

This PR proposes the following changes:
Update the pre-commit hook versions:
[https://github.com/astral-sh/ruff-pre-commit] updating v0.1.2 -> v0.1.11
[https://github.com/astral-sh/ruff-pre-commit] updating v0.1.2 -> v0.1.11
[https://github.com/pre-commit/mirrors-mypy] updating v1.6.1 -> v1.8.0
[https://github.com/pycqa/bandit] updating 1.7.5 -> 1.7.6
[https://github.com/python-jsonschema/check-jsonschema] updating 0.27.0 -> 0.27.3

Thanks @afuetterer!


When return a big file by FileResponse, How to realize resuming transfer on the server side

First check

[x] I added a very descriptive title to this issue.
[x] I used the GitHub search to find a similar issue and didn't find it.
[x] I searched the FastAPI documentation, with the integrated search.
[x] I already searched in Google "How to X in FastAPI" and didn't find any information.
[x] I already read and followed all the tutorial in the docs and didn't find an answer.
[x] I already checked if it is not related to FastAPI but to Pydantic.
[x] I already checked if it is not related to FastAPI but to Swagger UI.
[x] I already checked if it is not related to FastAPI but to ReDoc.
[x] After submitting this, I commit to one of:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed bug.

Example
Here's a self-contained, minimal, reproducible, example with my use case:

from fastapi import FastAPI
from fastapi.response import FileResponse

app = FastAPI()

@app.get("/download")
def downlaod_file():
    file_path = "/tmp/large.tar.gz"
    return FileResponse(file_path)

Description

wget -c http://<IP_ADDRESS>/download, and then Crtl + c abort this download, how to download from the existing file again
like flask.send_file conditional param
I know FileResponse support custom headers, and how to handle this custom headers

Environment

OS: Ubuntu 18.04
python version: 3.7.4
FastAPI Version : 0.61.0

See https://github.com/encode/starlette/issues/950

Thanks for the help @phy25 ! :bow:
Yep, that would be a request in Starlette, not in FastAPI. :nerd_face:


improvement: remove quick add when there are no config options that allow creation

Summary
Fixes #1643
Test plan
The dropdown disappears when there are no collections that can be created:

Deploy preview for netlify-cms-www ready!
Built with commit 1ae096fa12bda0df52897c29cd80afe78b4b0c66
https://deploy-preview-1679--netlify-cms-www.netlify.com

Deploy preview for cms-demo ready!
Built with commit 1ae096fa12bda0df52897c29cd80afe78b4b0c66
https://deploy-preview-1679--cms-demo.netlify.com


Add support for serve_from_sub_path directive

Grafana 6.3 added support for 'serve_from_sub_path' in the grafana.ini to resolve a problem with serving behind a reverse proxy on a subpath. This adds support for it in the ansible config.

This option is added in grafana server section of configuration file. It should be already handled by this role by adding it to server map as follows:
server:
  serve_from_sub_path: False

There is no need to add another variable although it would be nice to add this option with default value to https://github.com/cloudalchemy/ansible-grafana/blob/master/defaults/main.yml#L30 and to README.md


Fix timestamps for paddding packets

Previously, generated padding packets were given a timestamp of last RTP packet that we saw.
It seemed fine, but it caused the browser to dramatically increase the jitter value and delay the stream.
As a solution, a proper padding packet timestamp is estimated based on the wall clock.

Indeed. Not sure why this was still open after all this time


New package: SpinGlassExhaustive v0.1.3

Registering package: SpinGlassExhaustive
Repository: https://github.com/euro-hpc-pl/SpinGlassExhaustive.jl
Created by: @dkurzyk
Version: v0.1.3
Commit: fa8ff9011496c730452d61faed068cc6218ad10d
Git reference: master

Duplicate of https://github.com/JuliaRegistries/General/pull/70582


Docs: explainer for translating loops to reductions

Reductions are scary and confusing to beginners, but with a quick explainer, they're actually not that bad. It'd be good to have a docs section that explains the following:
Some general sequential for loop (without early termination or anything special like that) can be thought of as writing
state = some_initial_value
for x in itr
    state = some_function(state, x)
end
return state

this can be straightforwardly translated to foldl as  foldl(some_function, itr; initi=some_initial_value), or if we want to make it look more like the for loop, we can write:
foldl(itr; init=some_initial_value) do state, x
    some_function(state, x)
end

This foldl is much easier to parallelize than the for loop because there is a very structured way in which state is passed from one iteration to the next.
The state is not some non-local variable that was initialized outside of the loop and then implicitly modified, but instead, a foldl operates on a two-argument function that takes the previous state as the first argument, and an element of the collection as the second argument, and computes some modified state from that.
There are then two conditions for a foldl to be safely turned into a treduce:

some_func must be associative, meaning some_func(x, some_func(y, z)) == some_func(some_func(x, y), z). This is important because for the reduction to be parallelizable, you need to be able to re-partition and change the order in which you traverse the data.
the init (if provided) should be a "neutral element" that doesn't change the answer if it's re-initialized. That is, if you write treduce(op, itr; init), it must be legal for me to re-write it like op(treduce(op, itr[begin:end÷2]; init), treduce(op, itr[end÷2+1:end]; init).

The function tmapreduce (and treducemap) take an additional argument: a unary function f which is applied to each element of the iterator exactly once (unlike the reducing function). So if you write
tmapreduce(f, op, itr; init)

that becomes
state = init
for x in itr
    state = op(state, f(x))
end
return state

The function tforeach (and also the Base.Threads.@threads macro) is a special case where there is no explicit state being passed and updated from loop iteration to loop iteration, you just execute some function that produces some side effects (like printing or if you're feeling risky, mutating an array).
Hence, writing tforeach(f, itr; init) is actually just implemented as
tforeach(f, itr; kwargs...) = treducemap(f, itr; kwargs..., init=nothing) do state, x
    f(x)
end

I like things like this. I was thinking of having a "Explanations" section in the docs that, without being a tutorial or reference guide, give a bit of background information etc. I would also copy over some notes from ThreadPinning.jl, e.g. about the interaction between BLAS and Julia threads and the (potential) importance of pinning threads and so on. Such that the OhMyThreads docs become just a generally useful resource about Multithreading in Julia that you can point people to.

For example, can you express a matrix-vector product as a reduction?

FWIW, https://gist.github.com/carstenbauer/7f8147c5b0a469ef1f86904fd77cc5a9


Fix: Fixed workflow process

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


add new file from udemymaster

I just learn github lecture and I make new file
It's first time to try pull request

I change a file

I change a file

I finished first marge

I finished first marge


Opt-out of sending data via userAgents

There are scenarios where Generated clients are not sending data to Azure.
We should provide a way to opt-out of setting useragent data.
Let's first come up with a design as part of this task and let's have a prototype.
The purpose of this task is to figure out how feasible is it to turn on/off and yet provide flexibility for our SDKs to individuall turn on/off.
Cost: 4

Per investigation:

Default user agent information is calculated within the constructor of ServiceClient. Conditionally enabling/disabling calculation or sending this data along with request headers is therefore a very sensitive change
While most of the user agent properties can be populated, there have been reports of AmbiguousMatchException being thrown from here. This implies that the same dlls but with different versions were loaded in the runtime.
We did multiple tests to check if there are cases where we can run into an AmbiguousException due to assembly versions but could not figure out any.
Confirmed with the .NET Runtime folks that there cannot be multiple versions of the same dll loaded into runtime. The only way forward here is to get a repro/complete stack trace details for customers before moving forward


[Balsamiq Mockups] -> [Downloadable Design Software]

Balsamiq Wireframes
Quick and Easy Wireframing Tool
Link: https://balsamiq.com/wireframes/
Checklist:

[x] I have performed a self-review of submitted resource and its follows the guidelines of the project.

It has a free trial for 30 days. I think you can close it.


Fixing issue 961. Check to make sure a subclass does not have an asso…

…ciation that is not a specialization with the same role name as its superclass.
Description
This PR provides a fix for the case where a subclass declares an association that is named the same as an association in one of its superclasses, but is not a specialization.
Added a new error message (180).
Tests
Added 3 tests to UmpleParserTest.java to test the cases this error should be thrown.
Closes #961

Thanks @katcavers
Please consider the following items.
If the file E180DuplicateRoleNameSubclass.ump is compiled, it outputs two times the error 180.
Your solution cannot detect the following example:
class A{
  0..1 -> * B;
}
class B{
   isA A;
   0..1 -> * D bs;
}
class D{}

In the following example, it shows two times the same error message. It doesn't happen in other cases
class A{
  0..1 -> * B;
}
class B{
   isA A;
}
class D{
  isA B;
  0..1 -> * D bs;
}
class C{}

The following example just raises one error, which is correct.
class A{
  0..1 -> * B;
}
class B{
   isA A;
}
class D{
  isA B;
  0..1 -> * C bs;
}
class C{}

Thanks @katcavers


set dayborder to other value than 0

Trying to set the dayborder setting to 3 (g.shell.ggir or g.part3), the following error was trown back:
Error in { : task 1 failed - "missing value where TRUE/FALSE needed"
The problem originates from the function 'checkmidnight'. hours, minutes, seconds are added to 1 value to find the value corresponding with the dayborder. For 0, this is fine. But for eg 3, several times can be added to the result 3 (e.g. 00:03:00, or 02:01:00), not just 03:00:00.
I suggest to change this code to the following, or something similar:
checkmidnight = function(x) {
temp1 = matrix(unlist(strsplit(x, ":")), ncol = 3, byrow=T)
temp1[which(temp1[,2] != '00' | temp1[,3] != '00'),1:3] = NA
return(as.numeric(temp1[,1]))
}
The bug has repercussions on 'g.detecmidnight' in 'g.sib.det' in 'g.part3'
The error then occurs in 'g.sib.plot'
Greetings,
Ruben.

Thank you @RubenBrondeel! Good catch.
I have now prepared a slightly more compact solution, where I convert "HH:MM:SS" first to hour in the day with decimal places: "02:01:00" will become 2.01667, and "03:00:00" will become 3.


🚨(app-desk) remove warning next.js about css from Head

Purpose
Importing the css from Head was causing a flickering effect on the button, because of the time the css
load. Next.js was emitting as well a warning about css being loaded from the Head component.
We moved the css import to the _document.tsx file as recommended by the Next.js documentation.
See
Warning

Flickering
scrnli_3_29_2024_11-46-32 AM.webm

Cool :) so that's why it flickered… thought Next handled stylesheets that way in any component. Good to know! This was a big work-in-progress to make it work as early as possible, better that way indeed :+1:

Cool :) so that's why it flickered… thought Next handled stylesheets that way in any component. Good to know! This was a big work-in-progress to make it work as early as possible, better that way indeed 👍

I prefer how the code was before, but yes, it seems to prefer like that.


add @joergreichert as a contributor

@joergreichert please give a thumbs up if this is fine for you 🙃

(y)

(y)


Maker's Mark waittime needs to be 3 seconds instead of 2

Well I think the topic says what is happening.
When you add makers mark to your skills in the simulator the macro tab adds a wait time of 2 seconds.
Ingame the skill is finished after 3 seconds so if you want to use another skill via macro after 2 seconds it fails.

You can increase the wait time for buffs in the settings.

Sounds nice but why should I increase the wait time of all buffs when only one needs more time?


WIP: controller: remove cloud-provider suffix from k8s objects

deployments, cm, secrets..
Fixes: #708
Signed-off-by: Snir Sheriber<EMAIL_ADDRESS>Will remove WIP once i'll test

@wainersm no, currently we supports only single cloud provider at a time, the same provider that host the cluster nodes, I'm not aware to any plans to change it
The two reasons i find to remove the suffix are that we moved to not cloud specific binary and that it will simplify secret/cm handling from the controllers


Error on Cookies.get() function

I get the following error when trying to retrieve the cookie 'cookie1' with the Cookies.get('cookie1') instruction :
quasar.common.js?e3df:5653 Uncaught TypeError: Cannot set property 'cookie2' of undefinedget$1 @ quasar.common.js?e3df:5653setCurrentLanguage @ store.js?a259:43(anonymous function) @ app.js?7ac9:25(anonymous function) @ app.js:1363__webpack_require__ @ app.js:556fn @ app.js:87(anonymous function) @ app.js:610__webpack_require__ @ app.js:556(anonymous function) @ app.js:579(anonymous function) @ app.js:582
Note : the error talks about cookie2 and I ask Quasar to get the 'cookie1', it's not a mistake.
The issue concerns the following Quasar code. result is probably undefined when executing the result[name] = cookie; instruction
function get$1(key) {
  var result = key ? undefined : {},
      cookies = document.cookie ? document.cookie.split(' ') : [],
      i = 0,
      l = cookies.length,
      parts = void 0,
      name = void 0,
      cookie = void 0;

  for (; i < l; i++) {
    parts = cookies[i].split('=');
    name = decode(parts.shift());
    cookie = parts.join('=');

    if (key === name) {
      result = read(cookie);
      break;
    }

    result[name] = cookie;
  }

Will investigate. Thanks for opening this before releasing v0.8.

It should be:
if (key === name) {
      result = read(cookie);
      break;
    }
    else if (result) { <<<<
       result[name] = cookie;
    }

I'm developing a business app using Quasar v0.7 and I can't upgrade now to Quasar v0.8.2/Vue2.0 (it' on my roadmap, but after the first release to my customer). How can I patch my code with this bug fix without upgrading Quasar ? More generally, what are the steps to patch a Quasar app from bug fixes ?

I'll release v0.7.1 with this fix later today then. It's easier so.

Thanks !
On Wed, Oct 26, 2016 9:47 AM, Razvan Stoenescu<EMAIL_ADDRESS>wrote:
I'll release v0.7.1 with this fix later today then. It's easier so.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Just backported the fix to v0.7.1 and released it. Change your package.json to point to `"quasar-framework": "0.7.1"'. Enjoy!


Usage Ingestion not showing all pulled usage data in the UI

Affected module
The bug affects the UI.
Describe the bug
When running the Usage Ingestion (for PostgreSQL), sometimes not all queries will show in the UI under Queries tab, despite the fact that they were ran on the database. Also, query count at the top is wrong (it seems to multiply with the number of ingestion runs).

To Reproduce

Create a test Postgres DB using a docker compose, adding: command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c max_connections=200 in the .yml file
Create a new database, and enable pg_stat_statements using CREATE EXTENSION pg_stat_statements
Create some tables, insert some data so that the tables are not empty
Call Metadata ingestion to pull database and table metadata into OM
Call several different SELECT statements on the existing tables
Call Usage ingestion with increased Result limit to 1.000.000.

Expected behavior
The expected behavior is seeing all Usage data (all queries ran on the DB) in the UI.
In this case, Usage data was complete for all tables except for a table named roles for which only partial query data was shown (see above in the Describe the bug section).
The log for Usage Ingestion with DEBUG mode on shows several instances of DEBUG - Lineage with SqlFluff failed for the [postgres] query error for many queries, including those that were shown in the UI and those that were not.
Also, query count at the top of the UI is expected to be the same as the number of queries displayed, but is instead the number of queries times number of usage ingestions ran.
Version:

OS: CentOS 7
Python version: Python 3.9.7
OpenMetadata version: 0.13.2-beta
OpenMetadata Ingestion package version: openmetadata-ingestion[docker]==0.13.2-beta

Additional context
Enclosing a debug file from the Usage Ingestion.
debug.txt

Upon investigation we found that the query select * from roles where role_id=$1 and select role_name from roles where role_id=$1 is not visible on the UI because the sqlfluff parser is not able to parse these queries because of the intermediate  literal $1 and hence it gets passed to the sqlparse parser and even the sqlparse parser is not able to parse this I'm assuming because it considers the roles as reserved keyword because when the query is  select * from "roles" where role_id=$1 it's able to parse that
ideally we should depend on the sqlfluff parser so we will raise a pr on sqlflull to fix this

closing by https://github.com/sqlfluff/sqlfluff/pull/4883


python311Packages.bitarray: 2.8.0 -> 2.8.1

Changelog: https://github.com/ilanschnell/bitarray/raw/2.8.1/CHANGE_LOG
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 247676 run on x86_64-linux 1

2 packages failed to build:

python311Packages.fairseq
python311Packages.fairseq.dist

36 packages built:

echidna
glasgow
glasgow.dist
home-assistant-component-tests.apple_tv
python310Packages.bitarray
python310Packages.bitarray.dist
python310Packages.cairo-lang
python310Packages.cairo-lang.dist
python310Packages.eth-account
python310Packages.eth-account.dist
python310Packages.fairseq
python310Packages.fairseq.dist
python310Packages.pyatv
python310Packages.pyatv.dist
python310Packages.scancode-toolkit
python310Packages.scancode-toolkit.dist
slither-analyzer (python310Packages.slither-analyzer)
slither-analyzer.dist (python310Packages.slither-analyzer.dist)
python310Packages.web3
python310Packages.web3.dist
python311Packages.bitarray
python311Packages.bitarray.dist
python311Packages.cairo-lang
python311Packages.cairo-lang.dist
python311Packages.eth-account
python311Packages.eth-account.dist
python311Packages.pyatv
python311Packages.pyatv.dist
python311Packages.scancode-toolkit
python311Packages.scancode-toolkit.dist
python311Packages.slither-analyzer
python311Packages.slither-analyzer.dist
python311Packages.web3
python311Packages.web3.dist
sacad
sacad.dist


Upgrade fuzzywuzzy to 0.10.0

0.10.0 (2016-03-13)

Handle None inputs same as empty string (Issue #94)

0.9.0 (2016-03-07)

Pull down all keys when updating local copy.

0.8.2 (2016-02-26)

Remove the warning for "slow" sequence matcher on PyPy.
-where it's preferable to use the pure-python implementation.

0.8.1 (2016-01-25)

Minor release changes.
Clean up wiki link in readme.

Tested with the following configuration:
conversation:

Seems to work but not with my accent.

:dolphin:


"java.io.EOFException: Unexpected end of input stream" when I unzip file

Hi,
I'm triying to unzip a file which contains a lot of CSV files, extract failed with the error below :

`11-27 09:06:21.367 16591-16836/fr.nerium.android.ND2.v10171600 W/System.err: net.lingala.zip4j.exception.ZipException: java.io.EOFException: Unexpected end of input stream
11-27 09:06:21.467 16591-16836/fr.nerium.android.ND2.v10171600 W/System.err:     at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:53)
11-27 09:06:21.467 16591-16836/fr.nerium.android.ND2.v10171600 W/System.err:     at net.lingala.zip4j.tasks.AsyncZipTask.execute(AsyncZipTask.java:40)
11-27 09:06:21.477 16591-16836/fr.nerium.android.ND2.v10171600 W/System.err:     at net.lingala.zip4j.ZipFile.extractAll(ZipFile.java:436)
I repoduced this error only on older version of Android (5.1.1), with the same code version on an Android 8.1 device all is fine, unzip process is completed.
When I manually modified the zip files and retry to unzip , unzip process is completed.
the zip which doesn't work is this :
TabBBC1.zip
Thanks for you're help

The zip file was successfully extracted also on my mac. I guess this is an issue specific to older versions of zip4j. There might as well been  a bug in that version of Android which was fixed. I am not familiar with Android, and unfortunately do not have enough time to get myself familiar now for this issue as well, especially for something that could be a bug on Android, which probably was fixed in later versions of Android. Unfortunately, I will not be able to help here.


Add swarm_test to e2e test suite

Add swarm_test to e2e test suite - address issue #1249.
Passed all e2e tests locally.

@shaominchen can you please increase default timeout for running our e2e test to 30 mins -timeout 30m?

@shaominchen If this PR is targeted for #1249 ... it is better to add fixes #1249 to close the issue automatically with merge.

@shaominchen  Please revisit the commit history and clean that up correctly.


Correct dates in config.yml (and elsewhere as appropriate)

Correct any dates to reflect July cohort.

Should we close this? or is this a reminder for each session? @avahoffman


mishandling "type instance"

At every save "type instance" is replaced with "type".
Hie version: Version <IP_ADDRESS>, Git revision 392cadd70b0baff039a56e065e011186be3f358b (1237 commits) x86_64 ghc-8.2.2
MacOS, using VSCode HIE plugin 0.0.9
Code to try: http://haskell-servant.readthedocs.io/en/stable/cookbook/jwt-and-basic-auth/JWTAndBasicAuth.html
Could be a bug in HIE or brittany, not sure. I am sorry for the poor bug report.

This is lspitzner/brittany/issues/89 which is alanz/ghc-exactprint/issues/52.

This should be fixed, as https://github.com/lspitzner/brittany/issues/89 is long closed with a workaround.

Closing, then


Make Flutter complete documentation available in downloadable PDF

Please I need Flutter Full Documentation in PDF. I've made several searches but no luck!

yes agreed, we need this for offline use and quick search on single document

the offline pdf doc is very important, so any process about it

@gspencergoog I seem to remember that we upload a ZIP somewhere of our docs that people could download for offline reading. It's not a PDF, but should fulfill this use case. Do we document this somewhere?

Yes, we do have an HTML site zip file for the API docs:
stable: https://api.flutter.dev/offline/flutter.docs.zip
master: https://master-api.flutter.dev/offline/flutter.docs.zip
and the Dash/Zeal XML config is here too, which you can probably also generate PDF files from:
stable: https://api.flutter.dev/offline/flutter.xml
master: https://master-api.flutter.dev/offline/flutter.xml
Ironically, no, it doesn't appear to be documented anywhere.


Support to Disallow fetching if content size large

Allow support in request to disallow fetching a url, if content size is above a certain size specified in the argument list. This is very useful in cases where one needs to disallow large requests.

Actually, when you make an http request, the content isn't downloaded until you access the Response.content attribute :)

So how would we check the size of the response?

The headers, if they are available. The raw socket is also available from Response.raw in the latest release.

Ok. Are their some more docs planned to show off usage?

Yes :)
#178

Thnx


Text inside UL's LIs has smaller line height than normal P text

@Sfshaza did you tweak this CSS recently?

I think we addressed this.

Yes, @sethladd. Kathy and I worked on this when we flew to Seattle a couple weeks ago. Glad to see it's fixed.  :)


Brunch over Webpack?

These tributes are awesome! Thanks for them.
This really isn't an issue, but I noticed that you used webpack in phoenix-trello and are using brunch here. What was the reasoning for the switch?

thanks @mjsisley! I'm glad you liked them :)
The reason for using brunch here instead of webpack was that brunch comes as the default static assets build tool in Phoenix, and I wanted to give it a try. Now I use it always as I find it simpler and easier to configure and use than Webpack.
Cheers!


rearranged the ordering for job submission sequence

changed job submission order so its Submit-Job -> Select Vendor -> Select Time -> Select Calendar

closing because I merged this branch with edward's events redesign branch


Error when compiling a GO app

This error is intermittently occurring when trying to build a go app (example go) .
remote: + echo '----->' Checking Godeps/Godeps.json file.                remote: -----> Checking Godeps/Godeps.json file.               remote: + read line                remote:             remote: gzip: stdin: unexpected end of file               remote: tar: Unexpected EOF in archive               remote: tar: Unexpected EOF in archive               remote: tar: Error is not recoverable: exiting now
This is happening because the go slug is not properly downloading the go (https://github.com/heroku/heroku-buildpack-go/blob/master/bin/compile#L160)

Thanks for filing this issue. I think it may be wise for us store these slugs on S3 (or equivalent), and allow their location to be customized. Currently we rely on GitHub for serve them.
I've moved this to RC1

The issue is with downloading the go binary (https://github.com/heroku/heroku-buildpack-go/blob/master/bin/compile#L22) and its happening in the buildpacks code  which we might not have full control.

This should be fixed--at least as much as is reasonable--by v32 of heroku-buildpack-go.


Connecting to Self-Hosted Bitbucket

Describe the solution you'd like
I would like to connect the App Center to a self-hosted Bitbucket account.
Additional context
A request was already attempted with #2411 and was closed. This is a second attempt.
Connecting to Self-Hosted bitbucket Instances.

Hi @cubix1 Thank you for reaching out and sharing you feedback. Unfortunately, a self-hosted Bitbucket support won't be included in the coming roadmap or in the near future. However, we'll reopen this when we have something to share with you later. Thanks again!


【AT】add undo log manager-insert func

What would you like to be added:

Why is this needed:

please assgin to me

looking forward your contribution


updating events

Event update.  Also changed the text in the index.tsx to just direct to subscribe, instead of saying "No Upcoming events."  Lmk if this was not the right way to do this.

@shcheklein Reduced from a 500x500 pixel image to a 200 x200 pixel image and ran through tiny.png.  I think it should be good now. 👍

@shcheklein Reduced from a 500x500 pixel image to a 200 x200 pixel image and ran through tiny.png. I think it should be good now. 👍

Actually in my local it looks a bit blurry this small.  Let me know what you think...

Actually in my local it looks a bit blurry this small. Let me know what you think...

yes, it should be actually 700x700 (size on the screen x 2 to make it retina displays compatible). So, in this case we should make it even bigger in terms of dimensions and just run through the minifier.

Thanks @jendefig !


Fix map_keys and map_values presto function

Currently both these functions generate a result array of size equal
to the total size of the selectivity vector passed to it. However if
the last valid row in the selectivity vector is smaller than its
total size (that is rows.end() < rows.size()) then this can be
larger than the size of the underlying buffers and can result in an
inconsistent state where the size of the offset or sizes buffer is
insufficient to hold all indices. This patch fixes the
aforementioned bug.
Test Plan
Added a unit test that would fail without this fix
(but needs #3078 for consistency check)

fixes part of #3043

will wait for #3078 to be merged before merging this to make sure I get the right signals from pre-commits


Are SKLEARN API estimators can distinguish PANDAS nominal type feature and PANDAS ordinal type feature?

Are SKLEARN API estimators can recognize difference between
'ordinal feature (applying pandas.api.types.CategoricalDtype(data, ordered=True))'
and
'nominal feature (applying pandas.api.types.CategoricalDtype(data, ordered=False))' ?
thank you for your help.

@muketer The scikit-learn API for XGBoost (XGBRegressor / XGBClassifier) only accepts NumPy arrays as inputs for the fit() function.


Add refMiner execution

RefMiner 2.0 will be executed for each folder in parallel

@lyriccoder please, give PR a proper name and add a description.

@lyriccoder what algorithm you have chosen to measure code similarity?


Add document about copy command in makefile of examples.

When type make error was reported : copy command not found.
What is the 'copy' command? Does it belong to a specified specified software? What is that?
I don't think it is just a alias of cp.
Perhaps this is a low-level issue, but it does make me puzzled. I hope to add more explanation.

Ok, I think this should just be a alias of cp.


DiffUtils with GenericItemAdapter and notify the adapter after the he…

…aders

Oh looks really good

Will merge later today. Will have to test it first

Ok

Thank you once again


Plebes - Skin transfer and more templates

Adds an option to Plebes to transfer the skin weights from the generated character to the mGear joints, as an alternative to constraining them. This generally looks better and is a better starting point for tweaking weights and continue working on the character. Weights that don't exist in the mGear default biped, such as MakeHumans many face joints, are transferred to the most relative joint in mGear (e.g. head, lips or jaw). This means you may loose some functionality. The transfer happens by exporting a skinPack to a tmp dir, and editing it in code to re-map it to the mGear joints, before bringing it back in again. There is also a checkbox to just export the skinPack, but not bringing it back in again.
Added support for Autodesk Character Generator high and medium skeletons to Plebes.
Adjusted the number of spine joints for the different templates, to better match with what comes out of the character generator, and fixed some minor bugs I found in some of the templates.
Sample characters for Autodesk Character Maker, Character Creator 3, DazStudio, MakeHuman and Mixamo that can be used to test Plebes with are here:  https://ragtag.net/xternal/mgear_samples.zip
Tested in Maya 2020 (Python 2) and 2022  (Python 3) on Linux, but should work fine on other OS's.

Hello @ragtag thanks for the PR and all the super nice updates! :D
This week an early next one I am in a crunch but I will check and Merge ASAP
Thanks!


Questions about the test phase and the training detail

Hi, I'm new to out-of-distribution detection. After reading the paper and the code, I still cannot figure out how the out-of-distribution data is detected. I see there are two related lines of code as below.
out_score = get_ood_scores(ood_loader)
measures = get_measures(out_score, in_score)

It seems that the detection process is related to the in_score. But what about the prediction in a real application scenario? I'm confused. You could give me some references to read if that's easier to explain.
In the training script, the cross entropy between the softmax distribution and the uniform distribution is implemented with this line.
loss += 0.5 * -(x[len(in_set[0]):].mean(1) - torch.logsumexp(x[len(in_set[0]):], dim=1)).mean()

How does torch.logsumexp(x[len(in_set[0]):], dim=1) represent the uniform distribution?
Thanks.

Thanks a lot!

It seems that answer is not clearly,I try show my understand about why loss += 0.5 * -(x[len(in_set[0]):].mean(1) - torch.logsumexp(x[len(in_set[0]):], dim=1)).mean() is compute cross-entropy from softmax distribution to uniform distribution.
we know cross-entropy represent is:

now p(x) is unigorm distribution an q(x) is softmax distribution.
so we rewrite Formula 1 like this:

and x[len(in_set[0]):].mean(1) is  first term and torch.logsumexp(x[len(in_set[0]):], dim=1) is second term


feat: add blob policy import and show commands

Feat:

added notation blob import and notation blob show commands

Test:

added E2E test cases

Corresponding spec:
https://github.com/notaryproject/notation/blob/2ff8754717877adfd45266cfa8ba65705c397ea0/specs/commandline/blob.md
help example:

$ notation -h

Notation - a tool to sign and verify artifacts

Usage:
  notation [command]

Available Commands:
  blob        Sign, verify and inspect singatures associated with blobs
  certificate Manage certificates in trust store
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  inspect     Inspect all signatures associated with the signed artifact
  key         Manage keys used for signing
  list        List signatures of the signed artifact
  login       Login to registry
  logout      Log out from the logged in registries
  plugin      Manage plugins
  policy      Manage trust policy configuration
  sign        Sign artifacts
  verify      Verify OCI artifacts
  version     Show the notation version information

Flags:
  -h, --help   help for notation

Use "notation [command] --help" for more information about a command.

$ notation blob -h

Sign, inspect, and verify signatures and configure trust policies.

Usage:
  notation blob [command]

Available Commands:
  policy      Manage trust policy configuration for signed blobs

Flags:
  -h, --help   help for blob

Use "notation blob [command] --help" for more information about a command.

$ notation blob policy -h

Manage trust policy configuration for arbitrary blob signature verification.

Usage:
  notation blob policy [command]

Available Commands:
  import      Import trust policy configuration from a JSON file
  show        Show trust policy configuration

Flags:
  -h, --help   help for policy

Use "notation blob policy [command] --help" for more information about a command.

$ notation blob policy import -h

Import blob trust policy configuration from a JSON file.

Example - Import trust policy configuration from a file:
  notation blob policy import my_policy.json

Usage:
  notation blob policy import [flags] <file_path>

Flags:
      --force   override the existing trust policy configuration, never prompt
  -h, --help    help for import

$ notation blob policy show -h

Show blob trust policy configuration.

Example - Show current blob trust policy configuration:
  notation blob policy show

Example - Save current blob trust policy configuration to a file:
  notation blob policy show > my_policy.json

Usage:
  notation blob policy show [flags]

Flags:
  -h, --help   help for show

@JeyJeyGao  why the spec you referenced didnot point to main branch?

@JeyJeyGao why the spec you referenced didnot point to main branch?

@yizha1 The link will be kept in the git history, so we need to pin the link to ensure the target file is not changed and remains accessible.


Compatibility with admin-bro v4

This package has a peer dependency to admin-bro v3 – can this be bumped?

Yes it took me a lot of time to figure out why it's not working


Update README.md

Update how the package is installed via composer

Can you please add "hacktoberfest" to repository labels? In this case i will earn a point for helping open source projects :)


Extract syntax builder generation templates into separate directory

This branch aims to introduce a consistent directory layout for the SourceFile templates from the new SwiftSyntaxBuilderGeneration module by moving the Tokens.swift template into a subdirectory named Templates:
SwiftSyntaxBuilderGeneration
├─ Templates
│  ├─ TokensFile.swift
│  └─ ... (future templates)
└─ main.swift

Additionally, I have reformatted the file with slightly more readable indentation.
cc @ahoppen @kimdv

@swift-ci  please test

Hi @fwcd and welcome! 👋
Could you squash the commits into a single commit and then push?

Sure, is everything fine as is? My thinking was to leave them separated until the PR is fully reviewed and mergeable.

@swift-ci Please test

@swift-ci Please test

Could we merge this?

Yea if it's green and approved.
Do you have permission?

I don't have commit access, but I have chatted with @ahoppen earlier, this should be ready to go.

🎉🎉


always in Beta Version

Hi
it appears that on a fresh install you always enter the beta program.
I can't select any stable version

That is correct, we are still in beta.
The first (ever) stable release is june 16th

From the readme:

ho my bad, i thought i had a stable version a couple of months ago

Nope, but it wasn't really clear in the readme alone so I switched version numbering to make it more clear we're still beta.
Tomorrow will be the release of the first "official" release.

I still get beta today (17th.)


Reduce size of lodash dependency

We're pulling in nearly 70 KB of lodash. Instead we could include dependencies on the individual packages, e.g. lodash.throttle.

Moving to the individual modules, e.g. lodash.clamp gets us around 20Kb smaller bundle. Not worth it. Closing.


GitHub Actions

Psalm found errors in other files
src/Processor/Processor.php:267:37 - Redundant cast to bool

Psalm found errors in other files
src/Processor/Processor.php:267:37 - Redundant cast to bool

Psalm found errors in other files
src/Processor/Processor.php:267:37 - Redundant cast to bool

Psalm found errors in other files
src/Processor/Processor.php:267:37 - Redundant cast to bool

Psalm found errors in other files
src/Processor/Processor.php:267:37 - Redundant cast to bool


Fixes issues with next apollo subgraph and next

This is one of the single most frustrating bugs I've dealt with. I'm leaving a bit of detail in this PR description in case this kind of thing happens again.
This closes #1907
One of the things I needed to do to get this to work was to start running everything locally and make sure I wasn't in production mode in some way. I had originally copied the env from vercel and testing locally obscured some of the traces.
Once that was resolve you'd get something like this:
{"errors":[{"message":"Cannot use GraphQLScalarType \"String\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.","extensions":{"code":"INTERNAL_SERVER_ERROR","stacktrace":["Error: Cannot use GraphQLScalarType \"String\" from another module or realm.","","Ensure that there is only one instance of \"graphql\" in the node_modules","directory. If different versions of \"graphql\" are the dependencies of other","relied on modules, use \"resolutions\" to ensure only one version is installed.","","https://yarnpkg.com/en/docs/selective-version-resolutions","","Duplicate \"graphql\" modules cannot be used at the same time since different","versions may have different capabilities and behavior. The data from one","version used in the function from another could produce confusing and","spurious results.","    at instanceOf (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.js:48:19)","    at isScalarType (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/definition.js:117:37)","    at isType (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/definition.js:92:5)","    at isNullableType (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/definition.js:440:10)","    at new GraphQLNonNull (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/definition.js:394:5)","    at typeFromAST (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/typeFromAST.js:21:27)","    at coerceVariableValues (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/values.js:79:50)","    at getVariableValues (webpack-internal:///(rsc)/../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/values.js:45:21)","    at eval (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+gateway@2.8.4_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/gateway/dist/index.js:536:67)","    at NoopContextManager.with (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js:58:24)","    at ContextAPI.with (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/context.js:95:54)","    at NoopTracer.startActiveSpan (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js:73:31)","    at ProxyTracer.startActiveSpan (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js:38:24)","    at ApolloGateway.validateIncomingRequest (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+gateway@2.8.4_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/gateway/dist/index.js:530:39)","    at eval (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+gateway@2.8.4_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/gateway/dist/index.js:62:51)","    at NoopContextManager.with (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js:58:24)","    at ContextAPI.with (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/context.js:95:54)","    at NoopTracer.startActiveSpan (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js:73:31)","    at ProxyTracer.startActiveSpan (webpack-internal:///(rsc)/../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js:38:24)","    at ApolloGateway.executor [as gatewayExecutor] (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+gateway@2.8.4_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/gateway/dist/index.js:50:43)","    at execute (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+server@4.10.5_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/server/dist/esm/requestPipeline.js:245:44)","    at processGraphQLRequest (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+server@4.10.5_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/server/dist/esm/requestPipeline.js:178:38)","    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","    at async internalExecuteOperation (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+server@4.10.5_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/server/dist/esm/ApolloServer.js:637:16)","    at async runHttpQuery (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+server@4.10.5_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/server/dist/esm/runHttpQuery.js:141:29)","    at async runPotentiallyBatchedHttpQuery (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+server@4.10.5_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/server/dist/esm/httpBatching.js:40:16)","    at async ApolloServer.executeHTTPGraphQLRequest (webpack-internal:///(rsc)/../../node_modules/.pnpm/@apollo+server@4.10.5_encoding@0.1.13_graphql@16.9.0/node_modules/@apollo/server/dist/esm/ApolloServer.js:548:20)"]}}]}

That seemed to point me to things like:

https://github.com/MichalLytek/type-graphql/issues/144
https://community.apollographql.com/t/error-cannot-use-graphqlscalartype-type-from-another-module-or-realm/3285
https://github.com/oven-sh/bun/issues/3659

Believe me, I looked at almost everything. Eventually I scanned the entire pnpm lock file just to see if i was insane.
What I missed was this:

https://stackoverflow.com/questions/77657438/cannot-use-graphqlschema-from-another-module-or-realm-in-nextjs-14

This was the key. Apparently nextjs has some vendored deps? Or something to that effect so it's completely obscured and quite frustrating.

Omg so sorry you had to go thru that. I empathize because I'm pretty sure I had a similarly painful experience with TypeORM back in the day. Tbh I still don't understand what this magic config does. But it is easy to add, and never want to think about again. Thanks for documenting it @ravenac95


Stabilize File Nesting

Already gone through several rounds of testing, so just a verification that the new, non-experimental settings work as expected:
explorer.fileNesting.enabled, explorer.fileNesting.expand, and explorer.fileNesting.patterns.
explorer.fileNesting.experimental.operateAsGroup remains intentionally experimental and will be removed soon.

@JacksonKearl I am a real fan of this feature


Unable to use as dynamic module

It works if built statically (though with bugs, can't read body sent by eval module via proxy_pass). But refuses to load as a dynamic module. This is a backtrace:
GNU gdb (GDB) 11.1
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nginx...
(No debugging symbols found in nginx)
[New LWP 16]
Core was generated by `nginx -t'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  ngx_http_eval_merge_loc_conf (cf=0x7ffc2dec70c8, parent=0x7fc63fbcd298, child=0x0) at //nginx-eval-module-1.0.4/ngx_http_eval_module.c:525
525	//nginx-eval-module-1.0.4/ngx_http_eval_module.c: No such file or directory.

I build modules, configuring nginx sources like this:
./configure --add-dynamic-module=$NGINX_EVAL_DIR --with-compat $CONFARGS

where CONFARGS - are configure arguments for Nginx in the container.
Then I copy .so to another exactly the same container as nginx module (to /etc/nginx/modules/) without build requirements installed (nginxes are the same with the same CONFARGS).
For example headers-more-nginx-module built in the same way loads well.

It happens because nginx didn't read the request body yet. This is exactly why we use lua_need_request_body on; in ngx_lua module. Though, I don't know how to say to eval module to read the body in advance.

Have just built it under ubuntu server 18.04. Same thing. Core dump:
# gdb nginx /cores/core.nginx.16
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nginx...done.
[New LWP 16]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  ngx_http_eval_merge_loc_conf (cf=0x7ffe2bb5f450, parent=0x563813775c50, child=0x0) at ./nginx-eval-module-1.0.4/ngx_http_eval_module.c:525
525	./nginx-eval-module-1.0.4/ngx_http_eval_module.c: No such file or directory.


fix ms-mpi hardcoded library in CMakeLists.txt

Would like to fix the https://github.com/scisoft/autocmake/blob/master/test/fc_mpi/src/CMakeLists.txt#L5 in order to have the full-automated libmsmpi.a library detection on MS Windows with the ms-mpi MPI package,

I have removed this hard-coded path. Still the test fails. The MS-MPI anyway looks
very customized to me. Why is it fetching files from a custom URL?

Hi,
according to https://github.com/scisoft/autocmake/issues/85#issue-102874399 my custom URL is needed to get the "proper" - preprocessed - MS MPI library. Current (newest) version of MS-MPI is not suitable for adaptation (my private conversation with Fab from MS).
The error is https://ci.appveyor.com/project/bast/autocmake/build/1.0.431#L239 - msmpi has different name for this routine. It's on my TODO list to fix this.

I think in this case we should not test it. If the standard one does not "work" I think we should
not try to work around problems and customize for Autocmake and rather eliminate the test.

Hi,
I think I can improve this test up to Autocmake standards:
i) at the level of the msmpi package : prepare own customized package and ask MS guys to keep these changes in their distrubution version (for the sake of beeing able to prepare the crucial libmsmpi.a for MinGW suite). This means using own URL for adapted package until MSMPI offcial version adopts these changes.
ii) at the Autocmake side improve local CMake script for proper linking of libmsmpi.a library, no hardcoded path "C:....\libmsmpi.a"  as I had before.
iii) it might be that some MPI routines have different names. Again, I would prefer to communicate with MS guys and keep the tweek in the example.F90.
I believe that  showing the world that MSMPI works with the MinGW one can make wider usage of MPI for Windows applications.
For me, this is prelude before trying to adapt Windows native MSMPI for DIRAC.

Within Autocmake I don't want to depend on any software which is not standard. But the work
you have done on MSMPI is great and you should showcase it. But why not do this in a dedicated
repo which demonstrates how to adapt MSMPI to MinGW?

I fully agree. Will open dedicate repo, based on autocmake, dealing only with the OpenMPI vs MS-MPI testing.
Afterwards the corresponding MSMPI part of appveyor.yml will be deleted.

This is a good strategy.


Execute Azure SQL : DacpacTask release failed due to not clearing IP Range

When using Execute Azure SQL : DacpacTask (SqlAzureDacpacDeployment) I was getting failed released then eventually found out that I had an issue in the firewall section. Due to the line number errors in the powershell scripts.

Expand Firewall section
Select Specify Firewall Rules Using: IPAddressRange and type in a StartIP Address and EndIP Address values click save
Select Specify Firewall Rules Using: AutoDetect and click save (this does not clear the StartIP Addressand EndIP Address values, causing my build to fail)

Workaround

Expand Firewall section
Select Specify Firewall Rules Using: IPAddressRange
Clear in a start and end ip values
Select Specify Firewall Rules Using: AutoDetect
Click save (this will now clear the IP values and allow build to work)

Fix
When Selecting Specify Firewall Rules Using: AutoDetect clear the StartIP Address and EndIP Address automatically.

@mrjono1 , thanks for reporting the issue. The values will be shown in UI, but it is validated in the task.
Can you enble system.debug = true and queue a new release ?
In the logs, you can find that the IP address range is autodetected and not taken form input field value.

@mrjono1 , Is the issue resolved ?

@mrjono1 , if the issue is not resolved, please feel free to open the thread.

sorry I didn't get back to you I was on unable to get the logs in time. The code you pointed out looks good, not sure what happened to me


Nested dialog doesn't work with scrollable backdrop

Current behavior
When we use nested dialog with a custom backdrop (like a scrollable that uses backdrop as parent instead of sibling) for some reason it closes both dialogs when you click outside or if you interact with any other popover inside of it
Steps to reproduce the bug

Open sandbox: https://stackblitz.com/edit/tm2vor-jk6b49?file=dialog-nested%2Findex.tsx
Click on view cart to open first dialog
Click on remove to open the second dialog
Click outside dialogs or click on "Actions" then click outside the menu list

https://github.com/ariakit/ariakit/assets/5044101/7c6d7edd-2cb5-4403-a2f4-9a7948aa69b1
Expected behavior

If you click outside the dialogs, it should close the latest open dialog, not both.
If you click outside the menu, it should close the menu but not dialogs, the dialogs should keep open

Workaround
https://github.com/ariakit/ariakit/issues/2687#issuecomment-1659502735
Possible solutions
No response

You're passing a function to the backdrop prop. This is the correct way to render the backdrop element as a parent:
<Dialog
  backdrop={false}
  render={(dialogProps) => (

  )}
/>

Ref: https://ariakit.org/examples/dialog-backdrop-scrollable#rendering-a-custom-backdrop

I noticed that even rendering the backdrop element correctly, as per my previous comment, the issues you reported still exist.
For now, you can use the hideOnInteractOutside prop as a function and return false when interacting with those elements.

You're passing a function to the backdrop prop. This is the correct way to render the backdrop element as a parent:
<Dialog
  backdrop={false}
  render={(dialogProps) => (

  )}
/>

Ref: https://ariakit.org/examples/dialog-backdrop-scrollable#rendering-a-custom-backdrop

You are right, I copied it wrong from my code, but like you said here the issue is still there, I'll try to do what you said here. Thanks for the quick response!

You're passing a function to the backdrop prop. This is the correct way to render the backdrop element as a parent:
<Dialog
  backdrop={false}
  render={(dialogProps) => (

  )}
/>

Ref: https://ariakit.org/examples/dialog-backdrop-scrollable#rendering-a-custom-backdrop

You are right, I copied it wrong from my code, but like you said here the issue is still there, I tried to do it as you said here and it works properly!

const backdropRef = useRef<HTMLDivElement>(null);

const onInteractOutside = useEvent((e) => {
  const isNested = [
    ...document.querySelectorAll("[data-scope='backdrop']"),
  ].some((el) => el !== backdropRef.current && el.contains(e.target));

  return !isNested;
});

return (
  <Dialog
    backdrop={false}
    render={(dialogProps) => (

    )}
    hideOnInteractOutside={onInteractOutside}
  />
)

Thanks for the quick response!


fix #184: several styling and content issues

Fix #184
Test URLs:

Before: https://main--zemax--hlxsites.hlx.page/
After: https://184-style--zemax--hlxsites.hlx.page/

@synox can you review these linting and performance problems so LHS is 100

@synox can you review #184  i think it's missing fixes for 3,4 from the list.


Show test banners in iOS

isTesting: true gives me this message: <Google> To get test ads on this device, call: request.testDevices = @[ @"xxx" ]; and no banners.
How to avoid that?

 To get test ads on this device, call: request.testDevices = @[ @"xxx" ];
This has been handled by the plugin.
If no banners show, it must be some other reason. Did you check the events "onAdLoaded" or "onAdFailLoad"?

{'adNetwork':'AdMob','adType':'banner','adEvent':'onAdFailLoad','error':1,'reason':'Request Error: No ad to show.'}
Do I have to do anything manual with Admob to get test banners?

it's weird if you already set isTesting:true. In many cases, only fails if there is no Ad in your area when running with isTesting:false on real device.
Can you paste your js code here?


Release 0.4.1

@rultor release it; the tag is 0.4.1.

@rultor status

@rultor release it; the tag is 0.4.1.

@rafamizes OK, I will release it now. Please check the progress here

@rultor status

@rafamizes This is what's going on here:

request 1 is in processing, command is release
request has 3 parameter(s):
head: git@github.com:dartoos-dev/flutter_brand_palettes.git
head_branch: master
tag: 0.4.1
build started 60 seconds ago
build is running in /tmp/rultor-q3fk directory
[ * Docker container ID: f5897f182f85af6696f0...,  * working directory size: 1.9M,  * server load average: 4.62]

More information about Rultor commands you can get here.

@rultor release it; the tag is 0.4.1.

@rafamizes Done! FYI, the full log is here (took me 2min)


Fix unset variables error in aws/deploy.sh

Alternative solution is to remove "-u" from "set -eEuo pipefail". However, unset variables are a common cause of bugs in shell scripts, so having unset variables cause an immediate exit is often highly desirable behavior.

What does the capital E do in set -eEou ...? We typically use -eou.

"-E":  If set, the ERR trap is inherited by shell functions. Trap allows you to catch signals and execute code when they occur.


Update PopupMenu hiding

Add separate hiding setting for checkable items in PopupMenu.
Solves #7262

Could you do the same fix in the master branch? I prefer not to merge bug fixes in the 2.1 branch if they're not being handled in the master branch too.

Nevermind, wrong PR :p

@Jylhis Also welcome as a contributer, kiitos!


nk3 test: extend FIDO2 cert checks

With this patch, we extend the FIDO2 cert checks for the nk3 test
subcommand:

Instead of a fixed value, we allow multiple values for different
firmware versions.
Instead of only printing a note if the values don’t match, we now fail
the test instead.

In the future, we could add a --development flag that replaces the
certificate list with the development certificates.

That’s what I meant with the --development flag.  I think enabling them by default would not be good because end users should not have them on their devices.  Though we could change the error messages to indicate that it is a known but non-production cert unless the --development flag is set.


Update init.md

related to https://github.com/denoland/deno/issues/22287

This is for https://github.com/denoland/deno/pull/22499

Since these files are all now changed around I've remade this PR here - https://github.com/denoland/docs/pull/1062


add profiletrigger

auto trigger memory profile when memory is nearing limits

no clear need for this, especially since we'll be running multiples.

just had a case of a MT that was up for more than 12 hours (but reads disabled), turned on reads (and disabled reading from other machine) and ram shot up and ran out of memory :(


Add GCAM-China

Insert URLs to the project here: https://github.com/umd-cgs/gcam-china

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues labeled as Good First Issue of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.
All projects listed will be posted on our Mastodon channel

@bpbond @pralitp


Raise error when uploading while not logged in.

There's no feedback if the user tries to upload a image without being logged on, it just refreshes the page.
A warning should be raised.
@NogardRyuu assigned himself to do it, and this issue documents this occurrence.

Fixed in #19


Add pyScss python package

Also updated/added a couple of its dependencies:

updated enum34 to latest version and added a missing dependency for python 2.6 See comment below
added pathlib

Hmm looks like the build failed due to changing enum34 trigging beets to be built which ultimately fails due to a problem stemming from compiling kyotocabinet, I think I'l split the change to enum34 into a separate PR for further investigation.

Ok the second build passed so looks like updating enum34 was the culprit, I'll investigate further and PR that seperately

Travis passed, thanks.


Make PullRequestFile#patch an Option[String]

Closes #180
That field is not populated on binary files.
Example: $ curl https://api.github.com/repos/scala/scala/pulls/4877/files | jq '. | map(select(.patch == null))'
[
  {
    "sha": "7229603ae5b30ce0e0bd09863543b260085c8f2d",
    "filename": "src/scaladoc/scala/tools/nsc/doc/html/resource/lib/arrow-down.png",
    "status": "removed",
    "additions": 0,
    "deletions": 0,
    "changes": 0,
    "blob_url": "https://github.com/scala/scala/blob/da3720e55b3d69cc31ab0f26e6cffafb18da360f/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/arrow-down.png",
    "raw_url": "https://github.com/scala/scala/raw/da3720e55b3d69cc31ab0f26e6cffafb18da360f/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/arrow-down.png",
    "contents_url": "https://api.github.com/repos/scala/scala/contents/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/arrow-down.png?ref=da3720e55b3d69cc31ab0f26e6cffafb18da360f"
  },
  ...
]

Thanks guys :)
I know this is a strange request, but is it at all possible to back-port this ti 0.15.x? The reason I ask is because it would be great to use this plugin from Ammonite but currently that isn't possible due to https://github.com/lihaoyi/Ammonite/issues/718. Or if there is some workaround that you know of for using this lib w/ Ammonite, please let me know :)

Yeah, we are dealing with the same issue here https://github.com/47deg/sbt-org-policies/issues/655
No workarounds yet :(

Regarding the build issue, this might fix the issue https://github.com/47deg/sbt-microsites/pull/246

@juanpedromoreno good to know it's a known issue. My current thought is that maybe ideally sbt should be shading its depenencies on Jawn...

It seems the same as I experienced in doobie recently. #182 fixes the build error.

@lloydmeta agreed. It seems you found our attempt to do these changes on the sbt side:
https://github.com/sbt/serialization/pull/21
https://github.com/eed3si9n/sjson-new/pull/85


Smalltalk ui icons should be banned!!!!

Either use the one in Object or define one in the superclass and use self iconNamed:
I found that a bit insulting that I spent my time cleaning this from the system and that there are still 200 senders! And especially in new framework.
When do we behave like pro?

You are right. Problem that after cleanup which we did I still don't know the right way and what right way we want achieve.
I see in Pharo7 there is Object>>iconNamed:. Is it our goal?
There are two places with #icons:

ClyMainItemCellMorph>>#iconNamed:
ClyTestResultProperty>>#createIcon
First can be removed. Last can use "self iconNamed:".

I did not put Object>>iconNamed: my idea was to identify the roots where such method should be put and to turn it into a variable (all the logic behind Smalltalk ui is a big shit).
Now duplicating Smalltalk ui icons everywhere is not a solution because we cannot think anymore about the solution.
Now I do not know how you count because senders of ui shows me a lot more sender in classes starting with Cly

I count senders of #icons.
And there are 6 places with "Smalltalk ui iconNamed:". Mostly they are icons for commands.
Other users of #ui are theme related methods

I did not put Object>>iconNamed: my idea was to identify the roots where such method should be put and to turn it into a variable (all the logic behind Smalltalk ui is a big shit).

So we still didn't decide what is the right way. And it is a reason why we have all these users

So let us do nothing like that we will be sure that nothing will happen.

Stef, I did not say "let's do nothing". I say I don't know what to use instead.
I assume "self iconNamed:" everywhere is not what you want. Then how to change it?

My solution is

define iconNamed: only one in root of hierarchy (not Object)
remove all the other references to Smalltalk ui
step back and think.
Before being that that stage I cannot think.

May be we should keep one call in such root
May be we should use an instance variable (what about updating).
I do not know.  But we should really remove Smalltalk ui.
That I'm sure.


Missing dist directory in some NPM packages

Following latest release (thank you!) I tried to update my packages but it seems some NPM packages do not contain the dist directory with compiled JS:

✅ for example, new version of core seems OK: https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>❌ app, aws, azure, gcp, etc. do not contain the dist directory (while still being referenced as "main": "dist/index.js", in package.json): https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>
Also, some files should certainly not be part of the published packages, such as logs, coverage, estimates.cache.json, etc. Let me know if I can help you, I am happy to participate if needed.

Thanks @ericksod for your answer. After digging a bit in the repository here are my understandings:

Every time a PR is merged in trunk the changeset GitHub Action is triggered.
This action automatically opens and manages a PR (from trunck to changeset-release/trunk), such as https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/pull/285, which stacks the changes.
Every time someone merge a changeset PR, an action is triggered and part of it is responsible to publish packages to NPM. Last merged changeset PR is (https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/pull/285) and we can see only few packages were published: api, cli, client, core. I don't know why yarn lerna publish from-package --yes didn't published some packages.
Others packages seems to have been manually published by @ccasher giving the filenames in https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>
As I said above, I don't know why yarn lerna publish from-package --yes didn't published some packages. The documentation is available here.
Hopefully the currently opened changeset PR https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/pull/326 will automatically publish all packages but ⚠ as some are not present in the changeset such as aws, azure, cli & common we may see them skipped again). I suspect having all the packages mentioned in the currently opened changeset PR should be enough for the next run.
Thoughts? On my side, happy to help more if needed.

Hey @vhiairrassary,
Thanks for digging into this. I believe you might be correct on the fact that having them all included in the next changeset PR action will trigger the fix. I had to manually publish them initially on npm and we havent bumped since so that would hopefully explain the problem of no dist as I may not have ran a build before the publish.
We will plan to do another release on Monday and make sure to have each new package bumped to trigger the correct build/publish.
Thanks,
Cam

Thank you for your help!

I believe this is fixed with the new release! If you want to confirm I can wait to close out this issue.
Thanks, Victor!


lib: add sync--filter

With Repo.pm and Depends.pm available, sync could directly access and modify the dependency logic from aur-depends.
Currently the aur-depends --table is modified, which leads to various issues (#1140, #1136).
Only access to AUR::Depends::prune() is needed, which can be done in a helper aur-sync--filter.

#1147


performSelfAnalysis can be an instance method.

No need to complicate things with a static method.
Currently (will be soft deprecated)
class MyParser extends Parser {
  constructor() {
      super(/*...*/)
      // parser rules...

      // static performSelfAnalysis
      Parser.performSelfAnalysis(this)
  }
}

New syntax:
class MyParser extends Parser {
  constructor() {
      super(/*...*/)
      // parser rules...

      // instance method performSelfAnalysis
      this.performSelfAnalysis()
  }
}

Reminder to self: update the playground examples.


Error Log

BUG REPORT
Stack Trace or error message
Sia Daemon v1.3.1
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
(4/6) Loading wallet...
(5/6) Loading host...
(6/6) Loading renter...
Finished loading in 20.9186399 seconds
Expected Behavior
How to reproduce it (as minimally and precisely as possible)
Launch sia ui
Environment

Sia version:v1.3.1
OS:Windows10

There is no error message here, all the data you've included is normal output.
Try this to find your error message: https://gist.github.com/tbenz9/8066d74853ab28c23bd7bc1d3c7cdeda


dashed outline circle with large brush width

Description
I'm expecting a solid outline when drawing a circle but it's dashed when increasing the brush width
To Reproduce

create new image, 100x100 works
draw a circle, set brush width to 10+, ensure the fill style is "fill and outline shape"
confirm the outline is dashed as in screenshot

Additional Info

Version

latest arch linux as of writing
pinta version 2.1.1

Confirmed. I think the main thing to be investigated is whether this is from something Pinta is doing wrong on our end, or if it's an issue in the cairo drawing library


Error in function fim_on_stdout

Hello,
i installed the llama.vim plugin using vim-plug normally.
The llama-cpp installation has been tested and runs without problem. The llama-server that i'm running is using the command llama-server -m models/qwen2.5-coder-1.5b-q8_0.gguf --port 8012 -ngl 99 -fa -dt 0.1 --ubatch-size 512 --batch-size 1024 --ctx-size 0 --cache-reuse 256.
Whenever i enter insert mode, i get the following error:
Error detected while processing function 16_fim_on_stdout:
line 209:
E964: Invalid column number: 0
Sorry if this is not enough information. I am not an expert on vim-plug and have just started playing around with llama.cpp. Any help is very appreciated. Thanks in advance! :D

Hi @ZuoyunZheng!
Please share the output of the vim --version command.

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Nov 07 2024 13:17:21)
Included patches: 1-16, 647, 17-579, 1969, 580-647, 678, 648-1848, 4975, 5016, 5023, 5072, 2068, 1849-1854, 1857, 1855-1857, 1331, 1858, 1858-1859, 1873, 1860-1969, 1992, 1970-1992, 2010, 1993-2068, 2106, 2069-2106, 2108, 2107-2109, 2109-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919, 213, 1840, 1846-1847, 2110-2112, 2121
Modified by<EMAIL_ADDRESS>Compiled by<EMAIL_ADDRESS>Huge version without GUI.   Was this the problem?

@ZuoyunZheng

Vim version is quite old. Was this the problem?

Unfortunately, yes. This plugin uses the virtual-text feature which was added in vim 9.1. You'll have to upgrade to a newer version. I will look into creating a warning when using this plugin with a version of vim that does not have virtual-text.

Indeed, i installed a newer version of vim and it works perfectly now. Thanks for the hints!


HLM Manager sometimes spawning new Main Window processes on PV conn. check (caproto read)

Description
In a packaged app with PyInstaller (either onefile or dir), for each caproto read call, a new app process would spawn. For example, if 4 PV names were given and "Check PVs" button clicked, after a short while, four different manager main windows (each with its own process) would appear on top of each other.
This will happen for each PV that is tested, thus each caproto.sync.client read call, even though only one QThread is responsible for testing the PVs.
Notes
This may be caused by a weird interaction between PyInstaller's frozen code handling of multithreading/multiprocessing (?) and caproto (sync client).
Issue encountered first on NDAHEMON, then on personal desktop as well.
Bug was never encountered on developer machine (IDE or packaged app).
To see if this is a compatibility issue with NDAHEMON or with the .exe, ran the app on personal machine and issue was encountered again, so it is not an issue with NDAHEMON.
Personal machine fix (?)
After encountering the issue on the personal machine as well, downloaded code from the git repository, installed modules from requirements.exe, ran the HLM Manager with PyCharm IDE - no issues.
Closed PyCharm, uninstalled all packages from requirements from Python.
Ran packaged .exe from before - no issues: Somehow the issue was fixed on the personal desktop by fetching the code and running it via PyCharm IDE.
NDAHEMON fix (?)
Enabled gateway from work machine NDW2123, so that NDAHEMON can read PVs for the time being (until the IOC is set-up on it as well).
Added work machine's IP to NDAHEMON's EPICS_CA_ADDR_LIST. Tested it can connect to PVs using caget TE:NDW2123:HA:HLM:MOTHER_DEWAR:HE_LEVEL, it worked.
After these steps, the issue was somehow resolved on NDAHEMON as well - a new process no longer spawns on caproto read.
How to reproduce
Because the issue somehow resolved itself, the cause is uncertain.
To attempt reproduce, simply run the HLM Manager .exe, set up the DB Connection in settings, open ConfigEntry window by clicking the New/Add Config button on left of the PV Config table, write some PV names (or anything) in the Measurement PVs fields, then click the PV Connection Check button.
If establishing a HLM DB connection is not possible, remove the return statement from new_config_btn_clicked in ServiceManager\GUI\main_window.py  (to be able to open the ConfigEntry dialog) then re-freeze with PyInstaller.

The "fix" is only temporary, as the issue occurred again on NADHEMON last Tuesday (26 Jan), when testing a PVs connection in the ConfigEntry dlg.

The "fix" is only temporary, as the issue occurred again on NADHEMON last Tuesday (26 Jan), when testing a PVs connection in the ConfigEntry dlg.


fix: hack a fix for adjustmentinterval not converting inside rules based samples

Which problem is this PR solving?

closes https://github.com/honeycombio/refinery/issues/766

Short description of the changes

hacks away at an issue where the convert tool couldnt handle the []Rules in the rules based sampler.

@cartermp added another test case that handles the slice issue, but not the config.Duration change.  I'd like to take a look at this issue with fresh eyes anyways, this PR is more to show what the issue is.


Breaking changes with v2 ?

Hello,
I had some issues with IE11 not being able to read CALL_API Symbol so I upgraded to v2.
It looks like it's working fine, is there any breaking change coming with v2 ?

Hi @amangeot, the main other thing with 2.0 is that you'll need to bring your own fetch -- this package no longer polyfills fetch and expects it to be available on the global scope.
https://github.com/agraboso/redux-api-middleware/releases/tag/v2.0.0 has the full release notes


Future High Institute Of Engineering In Fayoum

Add Future High Institute Of Engineering In Fayoum to JetBrains.

@ahmedehab52 Pull request merged. Thank you!


Blurry Album Art in Mini Player

OS:
Windows 10 Pro 64 bit Insider Preview Build 14986.1001
Issue Descriptions:
My album art is blurry in the mini player after a while, while initially perfectly normal. It seems to only happen occasionally. Toggling mini player on and off does not help. Pausing playback and manually restarting the song fixes it.
Steps to Reproduce:
It happens when a song transitions to another one, even when the artwork is the same.

Zoom issue on high DPI screens that affects Chromium 53.  Will be fixed in the next electron bump

To confirm, my resolution is 2560x1440 at 100% scaling