Fix modal cancel action

Description
current behaviour
I'm writing an Action and I wanted the cancel button to be shown conditionally:
Action::make('delete')
    ->form([
        TextInput::make('input')
    ])
    ->modalCancelAction(fn () => $condition)
    ->action(fn () => null);

if $condition is false everything works as expected and the submit button is hidden, but if $condition is true i get this error:

Filament\Actions\MountableAction::getModalCancelAction(): Return value must be of type ?Filament\Actions\StaticAction, true returned

expected behaviour
I expected the method to return the default cancel action.

[x] Visual changes (if any) are shown using screenshots/recordings of before and after.

--> no visual changes
Code style

[x] composer cs command has been run.

Testing

[x] Changes have been tested.

Documentation

[x] Documentation is up-to-date.

thanks for your answers, i already wrote a similar solution in my current project.
i've just wondered that a method that allows an input of type bool crashes when i pass true.


Content based

Improved memory usage for the ContentBasedFiltering model
Added some small minor changes

This PR will be moved to another PR that doesn't have changes to some pipeline files. It will drastically lower the amount of computation needed


Clean up gqlquerys that don't check verified

Tests still don't run for me. I'm being told that it can't find a module named wrapper_util. Googled it, and found this but I'm unsure if that is the correct thing.

What's the exact error you get?
On Tue, Sep 6, 2016 at 12:32 PM guberti<EMAIL_ADDRESS>wrote:

Tests still don't run for me. I'm being told that it can't find a module
named wrapper_util. Googled it, and found this
https://docs.python.org/2/library/pkgutil.html but I'm unsure if that
is the correct thing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/guberti/epschedule/pull/274#issuecomment-245062617,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvL_Z5_5qUQEhGlVUq2Rwxp-Eu2d2Txks5qnb84gaJpZM4J0yNV
.


Validation issue and routing issue

notice querystring like "jobs/type?[]=" does not work and also the validation library does not validate array input like "job[owner]"

Please provide more details about how you're trying to use them. I'll have to dig into code later, but square brackets are typically considered unsafe within a uri. Here's a good article explaining it with links to the original RFC.
Validation - you might be right. I thought we had that in there, but I don't see any tests in place for that. Will have to check on that.

for the square bracks, i want  to pass an array of values from a get request using check boxes, which is to be used in the controller.
when the form is submitted, a get a blank page with and error title, no debug trace inclusive, and the toolbar becomes unresponsive.

what if the square brackets is encoded, does it make it safe to use??

yes, encoding makes it safe. The URI class should take care of that for you, I believe. Another option is to use a comma-separated list and turn it into an array elsewhere.

I'm assuming you're building the URI through javascript, so you build a URI out of the selected options something like jobs/type?options=developer,designer.
Looking back on your actual issue, though - what was the actual error generated? You might need to check logs for it.

No JavaScript included, and it does not return anything in the log.


addDataSource capitalization

Currently if you add a new datasource G2ConfigTool creates the data source in all upper.  However if your data source in the JSON input file is mixed case the ingest fails.  This forces a user to convert all their data source names to upper even if they wanted them to be in lower case.
If we are going to follow the process of not changing the data that they user has input then please add the ability to create a mixed case Data Source via addDataSource.

@antaenc can you do a review of all tools to make sure data source is treated case insensitive?

This no longer appears to be a problem and is fixed in the engine.


User is not signed out even after days/hours of inactivity

User remains logged in into the app even after days/hours of inactivity. This poses a security risk.
User should be logged out automatically after a certain time period of inactivity.

User pool refresh token is set to 30 days validity by default.
To set a shorter validity modify the CDK construct to add your own duration in the following construct: https://github.com/aws-samples/aws-genai-llm-chatbot/blob/6492f59efc9e2b56ddc00f7630780ef0b3d6ba4e/lib/authentication/index.ts#L23-L30
    const userPoolClient = userPool.addClient("UserPoolClient", {
      generateSecret: false,
      authFlows: {
        adminUserPassword: true,
        userPassword: true,
        userSrp: true,
      },
      refreshTokenValidity: cdk.Duration.days(1)
    });

@massi-ang Thanks, will try this.


Added Instagram Reach prediction

Description
Added Instagram Reach prediction
Fixes # 855
Type of change

[X] Added a new machine learning frameworks, libraries or software.
[ ] Documentation update

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings

by this PR and one more assigned, you will be reaching 150 points on this repo


[stable/velero] Deployment incomplete

Describe the bug
Velero deployment is missing command arguments and environment variables
Version of Helm and Kubernetes:
Helm: 2.14.0
Kibernetes: 1.11.8
Which chart:
stable/velero
What happened:
No errors but the output is not what's expected
What you expected to happen:
I expected the deployment to have arguments and environment variables based on the passed values.
How to reproduce it (as minimally and precisely as possible):
cleaned values:
➭ egrep -v "^[ ]*(#|$)" $HOME/velero_values.yaml
image:
  repository: gcr.io/heptio-images/velero
  tag: v1.0.0
  pullPolicy: IfNotPresent
podAnnotations:
  iam.amazonaws.com/role: PLACEHOLDER
resources: {}
initContainers: []
tolerations: []
nodeSelector: {}
metrics:
  enabled: false
  scrapeInterval: 30s
  podAnnotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "8085"
    prometheus.io/path: /metrics
  serviceMonitor:
    enabled: false
    additionalLabels: {}
configuration:
  provider: aws
  backupStorageLocation:
    name: aws
    bucket: PLACEHOLDER
    prefix: null
    config:
      region: PLACEHOLDER
  volumeSnapshotLocation:
    name: aws
    config:
      region: PLACEHOLDER
  backupSyncPeriod: null
  resticTimeout: null
  restoreResourcePriorities: null
  restoreOnlyMode: null
  extraEnvVars:
    AWS_CLUSTER_NAME: PLACEHOLDER
rbac:
  create: true
serviceAccount:
  server:
    create: true
    name: velero
credentials:
  useSecret: false
  existingSecret: null
  secretContents: {}
deployRestic: false
schedules:
  sugarbackup:
    schedule: 0 0 * * *
    template:
      ttl: 240h

Then execute the deployment template:
➭ cd /path/to/helm-charts/stable/velero
➭ helm template . --values=$HOME/velero_values.yaml -x templates/deployment.yaml
---
# Source: velero/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: release-name-velero
  labels:
    app.kubernetes.io/name: velero
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/managed-by: Tiller
    helm.sh/chart: velero-2.0.2
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/instance: release-name
      app.kubernetes.io/name: velero
  template:
    metadata:
      labels:
        app.kubernetes.io/name: velero
        app.kubernetes.io/instance: release-name
        app.kubernetes.io/managed-by: Tiller
        helm.sh/chart: velero-2.0.2
      annotations:
        iam.amazonaws.com/role: PLACEHOLDER

        prometheus.io/path: /metrics
        prometheus.io/port: "8085"
        prometheus.io/scrape: "true"

    spec:
      restartPolicy: Always
      serviceAccountName: velero
      containers:
        - name: velero
          image: "gcr.io/heptio-images/velero:v1.0.0"
          imagePullPolicy: IfNotPresent
          command:
            - /velero
          args:
            - server
          volumeMounts:
            - name: plugins
              mountPath: /plugins
      volumes:
        - name: plugins
          emptyDir: {}
        - name: scratch
          emptyDir: {}

Anything else we need to know:
Seems that the snippets for the command args and extraEnvVars are not working properly.
There might be additional issues but these are the first I came across

@hectorj2f pinging you to put this on your radar

After additional testing, I noticed that the command args are correctly added if defined, so only extraEnvVars are missing.

OK I think I found out the reason: https://github.com/helm/charts/blob/2792ff545cb1e7a52e21a80c2c70bbe7c94b6260/stable/velero/templates/deployment.yaml#L76
the extraEnvVars logic is included only if useSecret is true and the provider is either aws or gcp.
In my case the provider is set to aws but useSecret is set to false because I'm using kube2iam.

@elisiano It makes sense, I'll have a look at your PR asap.


URLError : either your internet connection is not working or server aborted the request

Why I have these problem , I try to change my IP and redownload the application but didn't work.

same error :(

trying to figure out whats wrong with udemy's guys they always do such silly things which takes time to investigate, i 'm facing the same issue from yesterday, hopefully will fix the issue soon.
PR are also welcome :)

@r0oth3x49  There is a ready PR for this :)

@r0oth3x49 There is a ready PR for this :)

i saw your reply and commented my thoughts on that, thanks for that,
btw some for me the same code working fine now don't know what's wrong with udemy servers

Same error here this morning, unfortunately.

The real problem may be in the Python version you use. Please use Python 3.

I tried both python:2 and python:3, I can actually list the course and the topics, but cannot actually download any file, I suspect that it's missing some OS dependency I just don't know what it is.

[compat_urlerr].reason is: SSLError(1, u'[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:727)'))

I was able to fix the issue with "CipherString = DEFAULT@SECLEVEL=1" openssl settings. Until its not handled by the code the following Dockerfile will work.
FROM python:3
RUN git clone https://github.com/r0oth3x49/udemy-dl.git
RUN pip install -r /opt/udemy-dl/requirements.txt
RUN sed -i -e 's/^CipherString.*/CipherString = DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf


Introduce fix for #431

Try to fix error for unknown mac publisher. Fixes #431 as per https://www.electron.build/configuration/mac

@ionutzaharia just wanna ask if it did work or not?

@nishp77 the build works locally, but it has to be tested using the developer apple credentials.

https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/

https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/

@ionutzaharia what is your account number?

@ionutzaharia what is your account number?

Hello @itsnikhil, 37f45e2eec79ff2cff9460d980b048e97e54a256831427ee8f8a6f257cbd007e
Thank you!

Hello @itsnikhil, 37f45e2eec79ff2cff9460d980b048e97e54a256831427ee8f8a6f257cbd007e
Thank you!


Can't drag items to a newly created custom category.

Addon Version
0.1.14
World of Warcraft Version
Classic Era (And SoD/Hardcore)
Describe the bug
Can't add items to a newly created custom category.
Steps to reproduce

Create a new custom category
Try dragging an item into the area where it says drag items here. Nothing happens.
Hold shift and click on the label called item
The item gets added but to a new custom category called item.
I uploaded a clip of the bug to this youtube video https://youtu.be/PFJ8dsuunEA

The "Item" header bug is a known issue and will be resolved soon.

To add an item, you need to click, drag, and hold the left mouse button. You can't pick up and click the item in, you have to drag and hold, then let go over the text. This will be resolved in a future update as well.

where do we drop the item? "let go over the text"...which text?
"Items" or the "drag an item from here..." header box?
I can't get to get his feature to work.
I like having all my "CACHE" rewards go into one place...so maybe you could consider that as an include category?  (so many satchels, treasures. caches to open)..
ty, nice looking addon and I am slowly transitioning from AdiBags

For what it's worth, this doesn't work for me either.
Dragging over the category and releasing the left button doesn't do anything. The category does highlight, but nothing is able to be added.
Really the only thing I miss from Adibags.

Improved this experience across the board, should behave better now across the board.

Improved this experience across the board, should behave better now across the board.

yep..working now
Ty


chore: bdd-spring-1576492410 to 0.0.1

chore: Promote bdd-spring-1576492410 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Notification event works in iOS but not in Android

Expected Behaviour
I need to to some stuff when a notification is received in the event notification. It must works in Android
Actual Behaviour
Currently the event is shotted in iOS but not in Android
Is there any configuration required to do it?

Sorry to be a jerk but I'm now closing issues that don't follow the issue submission guidelines. This plugin takes a lot of work to maintain and I can't afford the time required to solicit the required info from everyone.
I'm closing this issue but please feel free to re-open the issue if you provide the requested details from the new issue submission guidelines.
https://github.com/phonegap/phonegap-plugin-push/blob/master/.github/ISSUE_TEMPLATE.md


armored elytra not working when in trinket slot

noticed not being able to open elytra when shift-clicking, which prioritizes the trinket slot.
manually putting it in the chest slot works, and normal elytra does work in the trinket slot.

What do you mean under "trinket slot"?

https://gyazo.com/965ed139763aa734d0fc442e78342940
https://gyazo.com/df72b3b8dd51cd62c6f20c83284faeb7
https://gyazo.com/65fc9c5e44585d4cabdb79c3d4e4594d
https://gyazo.com/6117232d8aff39f2a032773f842cd444
when equipped like this, its not possible to start gliding, only works when in the slot normally used for chestplates

This is not a vanilla slots, all functionality of non-vanilla slots is not on our side

made an issue on this at the trinkets mod, they say this is all up to other mod owners for compatability if they desire it

how would someone give a slot functionality?


numbering goes from 0-511 instead of 1-512

Shouldn't it be the other way?

@wugmump this has been changed quite a while because many people have asked this question, see https://github.com/wiedi/node-dmx/commit/00d960e441024627e1023e2ac0776b899ed6b9af and  the related issue https://github.com/wiedi/node-dmx/issues/39
Which version are you using and where do you get it from? Or maybe I misunderstood the question :)


Blur not working properly

The blur event only works when a keyboard execute next button, but when the focus of the component is removed by clicking on another component the blur event is not triggered.
In Nativescript TextField this runs in both cases.
Look:
code:
html:
<TextField hint="Enter date" (focus)="onFocus($event)" (blur)="onBlur($event)" ></TextField>

<MDTextField #tvNumCard (focus)="onFocus($event)" (blur)="onBlur($event)" class="input" variant="filled" hint="Field 1" returnKeyType="next"></MDTextField>
<MDTextField class="input" variant="filled" hint="Field 2" returnKeyType="next"></MDTextField>
<MDTextField class="input" variant="filled" hint="Field 3" returnKeyType="next"></MDTextField>
<MDTextField class="input" variant="filled" hint="Field 4" keyboardType="datetime" returnKeyType="done"></MDTextField>

ts
onFocus(event) {
    console.log("onFocus")
}

onBlur(event) {
    console.log("onBlur")
}

images:

Cursor on Enter Date, onFocus of Enter Date is fired

Then it is clicked on Field 1, and the onBlur of the Enter Date is fired and the onFocus of Field 1 is also fired.

Finally Field 2 is clicked, and the Field 1 onBlur that is programmed to be done does not happen.

But if I click on Field 1 and click next on the keyboard, Field 1 onBlur is triggered

Nativescript: 5.4.1
Angular: 8.0.0

@LucasFebatis thanks i managed to reproduce it. Will fix it soon

@LucasFebatis should be fixed in 2.2.16

@farfromrefug Thank a lot, I'll close the issue


New tutorial module request: i18n

As indicated in PR #2918 we should better highlight how to provide and use internationalization assets, including now in modules with that PR merged.
Translation still needs plenty of work (like #2433, #2677, or #2621) as well as better documentation, but we have a decent start and it would be nice to have a typical tutorial module that shows how it works.
Little trickier to have any sort of integration with Weblate in the tutorial. But maybe that'll be a good time to try setting up a first module project in Weblate that's linked with the new tutorial module?
Some of the basics here would be fairly easy to do, so bite-sized for that. It could get pretty involved over time though.

Hey, I would like to work on this issue!

Hi @TheFlash98,
just go ahead 😄 Did you already familiarize with the code base and i18n in particular? Also have a look at the other tutorial modules to get an idea of what we are aiming for here.
You can start your work in a repo called TutorialI18n which can later be transferred to the Terasology organization. An alternative might be to include a section about i18n in the TutorialAssetSystem, whatever you think is best.

Actually I am completely new to Terasology. Could you guide me a bit further? I have the project locally running. I have not familiarised myself with i18n? Could use your help @skaldarnar

Then be welcome (and say "hi" in our forum sometime). 😃
Issue #2918 linked above briefly explains how to use the i18n in Terasology. PR #2732 demonstrates how to change hardcoded string in english to use the translation system instead. A couple of new languages were added during GCI, for instance in PR #2737.
For a start, you could try to create a new module with a simple command and two languages. Pay attention to the format in which translation keys are specified, etc. If you have any questions, hop on our IRC channel #terasology on freenode, there are usually people lurking around who can help you.

And here is a guide derived from #2918 : https://oniatus.github.io/developing/translation.html

@skaldarnar and @oniatus thanks for your help. I had a look at the tutorials and issue #2918 and PR #2732
The guide https://oniatus.github.io/developing/translation.html gave me a good idea as to how i18n and i10n work. I fetched the module TutorialAssetSystem. How should I go about making a tutorial?

I'll try to give you a (very brief) overview of the next steps here. Please make sure to double check all the commands and names I typed in (no guarantee for 100% correct syntax or absence of typos) :wink:
You can create your own new module using gradlew by typing
./gradlew createModule<moduleName>, in your case it might be ./gradlew createModuleTutorialI18n.
This will create a new, empty module in the modules folder. Start adding examples for usage of i18n in modules there. You could begin with a console command. The module is already git enabled, so you can directly commit your changes.
On your GitHub account, create a new repository matching the name of the module, e.g. TutorialI18n. Add this repository as remote to your new module by running the following command from the module directory: git remote add origin https://github.com/TheFlash98/TutorialI18n. Now you can push your changes.
All the existing tutorial modules use the GitHub wiki for further documentation (you might need to enable it in the repository settings).
If you have the repository set up just post a link here so that we can review it and give you some feedback. Eventually, the repository can be moved to the MovingBlocks org to be in the "official" lineup 😃

Thank you so much for your help. I'll post link as soon as I set it all up.

Here's the link https://github.com/TheFlash98/TutorialI18n

Correct me if I'm wrong, you want something like this for i18n?
https://github.com/Terasology/TutorialWorldGeneration
From what I understood by looking at the repo, that this a tutorial on How to Generate Worlds in the game. It has some code samples and a wiki guide.

@skaldarnar have a look! 😄
https://github.com/TheFlash98/TutorialI18n/wiki

It's too bad that git does not allow comments, like Google Docs.. (or does it?)
Based on a first reading, the tutorial seems like a pretty good starting point.
My nitpicks:

Logger.info isn't exactly a pop-up :P
A bit more editing and proof reading would be awesome (For instance, You wouldn't want a Spanish player to see this, he/she was would may be prefer seeing "Hola nuevo jugador")

Apart from that, great work!

@vampcat thanks a lot! What should I replace pop-up with? Message may be? 😛

For some reason whenever I am not able access the webplate. Could you help me? I need to add it to the tutorial.
http://translate.terasology.org/

Weblate is accessible for me. You won't find your module there (or any other module) - that has to be configured manually. We tend to use it only for the larger/more solid projects (yet), probably we should consider enabling it (or something like that) for modules as well.
I really like what you have so far, stating the motivation for i18n and all that!

Alright. What else do you want me to add? Should I talk about the webplate yet?

@skaldarnar ? 😄

https://github.com/TheFlash98/TutorialI18n

It has been moved to
https://github.com/Terasology/TutorialI18n

Looks really good to me. Maybe just mention where to get the TranslationSystem from (you can do it like that in any system using the @In annotation).
If you want, add some lines about Weblate (how to use it, what account you need, how to request a new translation, etc.).
Anyways, closing this issue as it is officially in place now :-)

Okay okay cool. Me and @Cervator spoke about what all could be added to this on IRC. I'll surely talk about where one can get TranslationSystem. Webplate is surely on the list of things to be added 😄


Extract protobuf spec into own repository

It's a bit too annoying with the copy-paste mess... Having the lsp.proto in a seperate repository would make it easier to synchronize versions.
Maybe also consider if there are someone who've made a protobuf package manager - this could also be your time to shine 🌞
Nevermind, this buffrs looks like the way to go (once they have the buffrs registry up and running)

I can't keep waiting for buffrs central repository to be done. I should just host the docker container on the gtz.dk servers for now.

It seems the registry container is still very much a work in progress. We might have to do something custom and temporary in the meanwhile.

Closing with the creation of https://github.com/sillydan1/graphedit-protobuf

Hi @sillydan1,
we pivoted our efforts in buffrs towards supporting OCI registries over a custom registry.
See https://github.com/helsing-ai/buffrs/issues/229 for tracking

Hi @mara-schulke!
That looks very interesting! I will make sure to keep an eye out for that!


Computed property following a spread that's nested under a computed is missing closing parens

Object.assign will be missing parens if you assign an object to a computed that has a spread followed by a computed. Demo
Input:
var z1 = { [b]: { ...c, [d]: 'Hello, World!' } }

Output:
var obj;
var z1 = {};

// Actual
z1[b] = Object.assign({}, c, ( obj = {}, obj[d] = 'Hello, World!', obj )

// Expected
z1[b] = Object.assign({}, c, ( obj = {}, obj[d] = 'Hello, World!', obj ))

The bug happens regardless of depth. Demo
Input:
var z1 = { [b]: { ...c, [d]: { ...e, [f]: 'Hello, World!' } } }

Output:
var obj, obj$1;
var z1 = {};

// Actual
z1[b] = Object.assign({}, c, ( obj$1 = {}, obj$1[d] = Object.assign({}, e, ( obj = {}, obj[f] = 'Hello, World!', obj ), obj$1 )

// Expected
z1[b] = Object.assign({}, c, ( obj$1 = {}, obj$1[d] = Object.assign({}, e, ( obj = {}, obj[f] = 'Hello, World!', obj )), obj$1 ))

This bug is a blocker especially for those who use a Redux-like approach to recreate state (nested shallow copies).

After a few hours debugging, found out that this line is causing the trouble. The transpilation actually creates the right number of closing parens (it actually closes both spread and computed). It's the line mentioned that removes the last parens.

Further debugging uncovers an even more bizzare bug. Same code as above, but if you remove the whitespaces around the opening and closing brackets, a stray ) appears on the object:
input:
var a = {[b]:{...c, [d]: 'e'}}

output:

var obj;
var a = {)};
a[b] = Object.assign({}, c, ( obj = {}, obj[d] = 'e', obj )

const closing = code.slice(beginEnd, end);
code.prependLeft(moveStart, closing);
code.remove(beginEnd, end);

The actual culprit is https://github.com/Rich-Harris/buble/blob/master/src/program/types/ObjectExpression.js#L226 .
// Before this code runs
var z1 = {; z1[b] = Object.assign({}, c,( obj = {}, obj[d] = 'Hello, World!', obj ))}

// After this code runs
var z1 = {)}; z1[b] = Object.assign({}, c,( obj = {}, obj[d] = 'Hello, World!', obj )

The code above tries to move the closing } from the tip of the original z1 to close the newly appended var z1 = {. But when does that, it returns the } and the character before it. The missing parens was collateral damage. What's weird is that beginEnd was 44 and end was 45 - you'd expect slice to return one character, but it returns two.

Would you consider submitting a pull request for this?

I think I tried to fix this before, and I discovered that this was caused by MagicString (which I have not wrapped my head around just yet). It's most likely due to the order of string manipulation/what MagicString thinks was on the original string at some index. I remember that I couldn't reproduce the issue in small scale.


Integration with Azure Open AI

Integration with Azure Open AI Completion Operation (ZCL_ADF_SERVICE_AZUREOPENAI)

Integration with Azure Open AI Completion Operation (ZCL_ADF_SERVICE_AZUREOPENAI)
For API Details 👍
https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference


Can't access other models in docker image

Hi,
I'm sorry for this noobish question/issue and maybe it is easy to resolve (I'm not experienced with docker). I've built a web app which uses easyNMT in the back via the docker images and REST. When translating from romanian to german I noticed that the docker image is only using the opus model which does not provide this language direction. But when executing the "/model_name" request it shows me only "opus" as part of the docker image.
So how can I get the other models? I have 3 docker images of easynmt (one with 7.7gb, one with 6.02 and one with 3.8 gb size) but it seems none of them contains the other models. Am I doing something wrong here?
And also when they are part of the image, is there some kind of auto selection if a language is not available in one of the packages?
I installed the docker images via the "build-docker-hub.sh" file.
Best regards,
André

When you start the docker, you must set the env. variable EASYNMT_MODEL to control which model to load:
https://github.com/UKPLab/EasyNMT/tree/main/docker#environment-variables
So pass to docker that the env. variable EASYNMT_MODEL should be e.g. the M2M model and then the docker will load this specific model

Hi,
ok, so it's not possible to load multiple models in the same container, right?
Best regards,
André

No, that is not possible.
You can start multiple docker containers. The overhead is quite small compared to the model size.

Hi, ok thanks for the quick help and response!

@4quen I ran into the same issue. Instead of docker I went straight to Python and servered it all with fastapi, uvicorn and Nginx reverse proxy. I load the models in a list on startup then select the model I need depending on language pair:
all_models = [
  Model(source_lang="en", target_lang="de", model=EasyNMT(translator=models.AutoModel('Helsinki-NLP/opus-mt-en-de'),device="cpu")),
  Model(source_lang="de", target_lang="en", model=EasyNMT(translator=models.AutoModel('Helsinki-NLP/opus-mt-de-en'),device="cpu"))
]

You need enough GPU/RAM to do this but also has the bonus of giving you control over the language codes and over the Huggingface model names. For example the Portuguese opus-mt model has "tc-big" inserted in the name, or Japanese is not "jp" but "jap". Those can cause the autoloader to fail miserably!


Block bot-traffic.xyz

We had a spike in traffic from /bot-traffic.xyz overnight according to Google Analytics.
Can we ensure it doesn't happen again by blocking traffic?

Related: https://community.cloudflare.com/t/bottraffic-live/240745


Feature data prep

Adding the dataset prepared for modeling.

Megring feature-data-prep to development

Merged the PR.


#73 - Completed.

@rultor merge.

@rultor merge.

@driver733 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge.

@driver733 Done! FYI, the full log is here (took me 3min)

Coverage decreased (-5.5%) to 73.366% when pulling 19932bdf3031dda266e3a70f8838ae65d1c9bd49 on #73 into 153cd2d1e39752084c627b6e8975e3c08f797e26 on master.


在Colab中初始化会报错

🐛 Bug description [Please make everyone to understand it]
When initializing in Colab, Swanlab will be wrong
🧑💻 Step to reproduce

Go to Colab

Click Swanlab.init()

Something happened

SwanLab Version:
swablab 0.2.0
Platform:
Google Colab

Not only Colab，when using swanlab in local jupyter notebook，same problem also happened

We will fix it in v0.2.2


feat: create "rebuild index" dialog and command

Description
This PR allows users to clear their codebase index either through a new command, Continue: Rebuild codebase index, or through a dialog that can be activated when clicking on an indexing error status. This dialog will only be available when we've identified the error is from a pre-defined list of indexing errors that we believe warrant a rebuild.
  // Note that we exclude certain Sqlite errors that we do not want to clear the indexes on,
  // e.g. a `SQLITE_BUSY` error.
  errorsRegexesToClearIndexesOn = [
    /Invalid argument error: Values length (d+) is less than the length ((d+)) multiplied by the value size (d+)/,
    /SQLITE_CONSTRAINT/,
    /SQLITE_ERROR/,
    /SQLITE_CORRUPT/,
    /SQLITE_IOERR/,
    /SQLITE_FULL/,
  ];

Checklist

[x] The base branch of this PR is dev, rather than main
[x] The relevant docs, if any, have been updated or created

Screenshots

Testing
[ For new or modified features, provide testing instructions. ]

Closes #1991


Find a way to eliminate the 'name' parameter from Fact constructors

Attempt in order:

AST Transformation
Compiler Macro
Reflection

Currently in progress. See branch refactor/macro-replacing-explicit-fact-name for working macros.

See PR #45  :)


write logfile

Hello,
is it possible to have HA-Bridge write a logfile? This would make troubleshooting easier than to follow console output.
Regards

On windows and linux you can have the output redirected to a file:
[cmd] > test.txt 2>&1
If you use services on linux to start the ha-bridge it automatically goes into the syslog.

Yes, I'm aware, but my experience with redirection (using Windows) isn't great. You always get some program that doesn't use stdout but writes directly, you don't get to read prompts anymore either, you name it.
It's just not the most reliable solution.


Implement a "Back" Button for Navigating to the Previous Page

Hi @iamrahulmahato  To implement a "Back" button on a webpage that allows users to navigate back to the previous page
The current website lacks a "Back" button, which would allow users to easily return to the previous page they were on before being redirected. This feature will enhance user experience, especially in cases where users want to go back without manually using the browser's back button. The "Back" button should function correctly across various pages and devices, including desktop and mobile.
please assign this work to me under Gssoc ext 24 and HACTOBERFEST24 ITS MY KIND REQUEST TO U @iamrahulmahato .
https://www.loom.com/share/71cc8abea8e044bb8bc7d8d283b61391?sid=8ca9cd6a-0ba9-4aa7-a297-7a1ba9d1304e

Sorry, someone is already working on this. Do not be demotivated and raise a new issue.


Rust analyser can't make sense of sdk

https://github.com/user-attachments/assets/a0e5a9d3-c1ba-4a5f-b5cc-81940c17e9ac
I'm not sure why this is the case but I can click into Dioxus methods, but not into sdk methods. Hovering over sdk types also gives {unknown}.

Perhaps you need to tell RA to use wasm?

I mean something like this: https://github.com/DioxusLabs/sdk/blob/765dcfe237945fa76344c48a385d8c85b17a7881/.vscode/settings.json#L5

And that works… But isn't it weird that it would work for dioxus main but not the sdk at first?
Glad that worked

It it is not weird as when you use dioxus, you are not interacting with any wasm-specific API (most of the time), in the other hand all the geolocation APIs from the sdk are only available for wasm targets, for which RA needs to be configured to understand

That makes sense but it seems like setting it this way works for both for some reason.

Ah, I guess because both can be compiled to wasm but not both can be compiled to arm…?

correct :)

all the geolocation APIs from the sdk are only available for wasm targets,

And windows!

Closing this then :)

Would it make sense to keep all APIs available on all platforms but do nothing on unsupported platforms?

I had already had to explicitly add this to bacon.toml but hadn't considered that rust-analyser would also need this.
Maybe I can add a tooling bit to the docs?

Would it make sense to keep all APIs available on all platforms but do nothing on unsupported platforms?

How do you deal with returned values?

How do you deal with returned values?

I imagine any API we provide will be fallible and we could return a NotSupported error. Alternatively we could provide a fallback function that is marked deprecated that panics when used on an unsupported platform while still providing the type information.


Placement new-expression incorrect for overloaded operator& and operator new

https://github.com/beman-project/Optional26/blob/bfeb9080c0d9c501965ae857a1decf7ed74686f5/include/Beman/Optional26/optional.hpp#L441
This needs to use (void*)std::addressof(value_)

https://github.com/beman-project/Optional26/blob/bfeb9080c0d9c501965ae857a1decf7ed74686f5/include/Beman/Optional26/optional.hpp#L310
This one needs to vast to void* and use ::new

Also indicates missing test cases that ought not to have compiled, then.

It's a very sneaky one to test for.

construct_at, which was needed for some constexpr cases, avoids the problem.

Holding off closing until the changes actually land here on main.


Uploading MultipartFormData with parameters

How can I upload MultipartFormData with POST and with extra parameter? For example "username" or something like that

Alamofire.upload(
     .POST,
     "upload_url",
     multipartFormData: { multipartFormData in

       if let imageData = UIImageJPEGRepresentation(image, 1) {
         multipartFormData.appendBodyPart(data: imageData, name: "file", fileName: "file.png", mimeType: "image/png")
       }

       for (key, value) in parameters {
         multipartFormData.appendBodyPart(data: value.dataUsingEncoding(NSUTF8StringEncoding)!, name: key)
       }
     }, encodingCompletion: { encodingResult in
       switch encodingResult {
       case .Success(let upload, _, _):
         upload.responseJSON { response in
           debugPrint(response)

         }
       case .Failure(let encodingError):
         print(encodingError)
       }
     }
   )

I have tried above Code but it shows me unambiguous headers Alamofire. I am using Alamofire 4.0  & Swift 3.0 the below code is working but where should i add headers i mean authorization token ? can anyone help me?
let url = URL(string: "http://.....")
    Alamofire.upload(
        multipartFormData:
        {
            multipartFormData in
            multipartFormData.append(UIImagePNGRepresentation(self.signatureImgView.image!)!, withName: "signImg", fileName: "picture.png", mimeType: "image/png")

            // Send parameters

//                multipartFormData.append((UserDefaults.standard.value(forKey: Email) as! String).data(using: .utf8)!, withName: "email")
multipartFormData.append("png".data(using: String.Encoding.utf8)!, withName: "type")
        },
        to: url!,
        encodingCompletion:
        {
            encodingResult in
            switch encodingResult
            {

            case .success(let upload, _, _):
                upload.responseString { response in
                    debugPrint("SUCCESS RESPONSE: \(response)")
                }
            case .failure(let encodingError):
               // hide progressbas here
                print("ERROR RESPONSE: \(encodingError)")

            }
        }
    )

}

@PurviJani
let headers: HTTPHeaders = [ "auth-token": "(your auth token)" ]
let URL = try! URLRequest(url: "http://example.com/login", method: .post, headers: headers)

Alamofire.upload(multipartFormData: { multipartFormData in
                multipartFormData.append(UIImagePNGRepresentation(self.signatureImgView.image!)!, withName: "signImg", fileName: "picture.png", mimeType: "image/png")
            }, with: URL, encodingCompletion: {
            encodingResult in
                switch encodingResult {
                case .success(let upload, _, _):
                    upload.responseJSON { response in
                         debugPrint("SUCCESS RESPONSE: \(response)")
                    }
                case .failure(let encodingError):
                    // hide progressbas here
                   print("ERROR RESPONSE: \(encodingError)")
                }
        })

Hello, Harsh
Hope you doing good!. Thanks for the reply, i had already solved this
problem but thanks for the solution! i did the same.
Purvi Jani
iOS Application Developer
Phone: +919998009783 | Skype: purvi.pardypanda
Pardy Panda Studios
LinkedIn http://linkedin.com/company/pardy-panda-studios | Facebook
http://facebook.com/pardypandastudios | Twitter
http://twitter.com/pardypanda | Youtube http://youtube.com/pardypanda
On Fri, Nov 25, 2016 at 5:25 PM, Harsh Nigam<EMAIL_ADDRESS>wrote:

@PurviJani https://github.com/PurviJani
let headers: HTTPHeaders = [ "auth-token": "(your auth token)" ]let URL = try! URLRequest(url: "http://example.com/login", method: .post, headers: headers)
Alamofire.upload(multipartFormData: { multipartFormData in
multipartFormData.append(UIImagePNGRepresentation(self.signatureImgView.image!)!, withName: "signImg", fileName: "picture.png", mimeType: "image/png")
}, with: URL, encodingCompletion: {
encodingResult in
switch encodingResult {
case .success(let upload, _, _):
upload.responseJSON { response in
debugPrint("SUCCESS RESPONSE: (response)")
}
case .failure(let encodingError):
// hide progressbas here                   print("ERROR RESPONSE: (encodingError)")
}
})
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Alamofire/Alamofire/issues/1004#issuecomment-262941394,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVm5JccCzmE8cQRRIRe5HWX9GOqi1P4Vks5rBszKgaJpZM4HDaB_
.

--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. Any
views or opinions expressed are solely those of the sender and do not
necessarily represent those of Pardy Panda Studios. If you have received
this email in error please notify the sender.

@nigharsh
When I run that code I get
Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed

(Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0." UserInfo={NSDebugDescription=Invalid value around character 0.})

Hey,
Try responseString instead of responseJSON it will surely work....& from
the server side don't forget to check image size.
I am using Alamofire 4.0
Please find the below code...
func CallAddressProofAPI()
{

    let type = DocumentType as String

    print(DocumentType)

    let mydata = type.data(using: String.Encoding.utf8)

    print(mydata)

    let json = JSON(["ap_type":""])

    print(json)

    let data = json.rawString()!.data(using: String.Encoding.utf8)!

    print(data)

    let imageData1 = UIImageJPEGRepresentation(resizeImage(image:

segueAddressProofFrontImage!), 0)
    let imageData2 = UIImageJPEGRepresentation(resizeImage(image: self.

backViewAddressProofImgView.image!), 0)
    let defaultHTTPHeaders: HTTPHeaders =

        [

        "token": AFWrapperClass.User_Token

        ]

     let URL = try! URLRequest(url: "http://...URL", method: .post,

headers: defaultHTTPHeaders)
    Alamofire.upload(multipartFormData: { (multipartFormData) in

        multipartFormData.append(imageData1!, withName: "front_img",

fileName: "front.jpg", mimeType: "image/jpg") // For First Image
        multipartFormData.append(imageData2!, withName: "back_img",

fileName: "back.jpg", mimeType: "image/jpg") //For Second Image
        multipartFormData.append(mydata!, withName: "ap_type" as String)

        }, with: URL, encodingCompletion: { (result) in

            switch result {

            case .success(let upload, _, _):

                upload.responseJSON

                    {

                        response in

                        print(response.request!)  // original URL

request
                        print(response.response!) // URL response

                        print(response.data!)     // server data

                        print(response.result)   // result of response

serialization
                        if response.result.value != nil

                        {

                            let resJson = JSON(response.result.value!)

                            print(resJson)

                            //

                            let message = resJson.dictionary?["Message"

]?.description
                            print(message!)

                            if(message == "Success")

                            {

                                var viewControllers = self.

navigationController?.viewControllers
                                viewControllers?.removeLast(3)

                                self.navigationController?.

setViewControllers(viewControllers!, animated: true)
                            }

                        }

                }

            case .failure(let encodingError):

                print(encodingError)

            }

    })

}

Purvi Jani
iOS Application Developer
Phone: +919998009783 | Skype: purvi.pardypanda
Pardy Panda Studios
LinkedIn http://linkedin.com/company/pardy-panda-studios | Facebook
http://facebook.com/pardypandastudios | Twitter
http://twitter.com/pardypanda | Youtube http://youtube.com/pardypanda
On Mon, Jan 9, 2017 at 8:39 PM, Mapamatician<EMAIL_ADDRESS>wrote:

@nigharsh https://github.com/nigharsh
When I run that code I get
Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed
(Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0." UserInfo={NSDebugDescription=Invalid value around character 0.})
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Alamofire/Alamofire/issues/1004#issuecomment-271307838,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVm5JQzbvz-aMD_9eyKfKThZIGBT-Mmmks5rQk2egaJpZM4HDaB_
.

--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. Any
views or opinions expressed are solely those of the sender and do not
necessarily represent those of Pardy Panda Studios. If you have received
this email in error please notify the sender.

Hi, I'm using this code to send an image to a nodejs backend with multer but I cannot retrieve the image on the server side. Any suggestions.
let headers: HTTPHeaders = [ "auth-token": "(your auth token)" ]
let URL = try! URLRequest(url: "http://example.com/login", method: .post, headers: headers)
Alamofire.upload(multipartFormData: { multipartFormData in
multipartFormData.append(UIImagePNGRepresentation(self.signatureImgView.image!)!, withName: "signImg", fileName: "picture.png", mimeType: "image/png")
}, with: URL, encodingCompletion: {
encodingResult in
switch encodingResult {
case .success(let upload, _, _):
upload.responseString { response in
debugPrint("SUCCESS RESPONSE: (response)")
}
case .failure(let encodingError):
// hide progressbas here
print("ERROR RESPONSE: (encodingError)")
}
})

@rhsu0268 just make sure the withName: "signImg" and something like var upload = multer({ storage: storage }).single('signImg'); in your multer code have the same value as signImg.
Let me know if this works.

I have use the following code & it works perfectly fine but make sure the
size of image from server side as well.
func CallAPIForPANCard()
{

    let imageData1 = UIImageJPEGRepresentation(resizeImage(image:

seguePANCardFrontImage!), 0)
    let imageData2 = UIImageJPEGRepresentation(resizeImage(image: self.

pancardSelfImgview.image!), 0)
    let defaultHTTPHeaders: HTTPHeaders =

        [

        "token": "Your Token"

    ]

    let URL2 = try! URLRequest(url: "https:// .....Your URL", method:

.post, headers: defaultHTTPHeaders)
    Alamofire.upload(multipartFormData: { (multipartFormData) in

        multipartFormData.append(imageData1!, withName: "pan_img",

fileName: "PanCard.jpg", mimeType: "image/jpg")
        multipartFormData.append(imageData2!, withName: "pan_selfie_img",

fileName: "PanCardWithSelfImage.jpg", mimeType: "image/jpg")
        }, with: URL2, encodingCompletion: { (result) in

            switch result {

            case .success(let upload, _, _):

                upload.responseJSON

                    {

                        response in

                        print(response.request!)  // original URL

request
                        print(response.response!) // URL response

                        print(response.data!)     // server data

                        print(response.result)   // result of response

serialization
                        if response.result.value != nil

                        {

                            let resJson = JSON(response.result.value!)

                            print(resJson)

                            //

                            let message = resJson.dictionary?["Message"]

?.description
                            print(message!)

                            if(message == "Success")

                            {

                                self.navigationController?.

popViewController(animated: true)
                                 self.navigationController?.

popViewController(animated: true)
                            }

                        }

                }

            case .failure(let encodingError):

                print(encodingError)

            }

    })

}

Purvi Jani
iOS Application Developer
Phone: +919998009783 | Skype: purvi.pardypanda
Pardy Panda Studios
LinkedIn http://linkedin.com/company/pardy-panda-studios | Facebook
http://facebook.com/pardypandastudios | Twitter
http://twitter.com/pardypanda | Youtube http://youtube.com/pardypanda
On Fri, Feb 3, 2017 at 9:56 AM, Harsh Nigam<EMAIL_ADDRESS>wrote:

@rhsu0268 https://github.com/rhsu0268 just make sure the withName:
"signImg" and something like var upload = multer({ storage: storage
}).single('signImg'); in your multer code have the same value as signImg.
Let me know if this works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Alamofire/Alamofire/issues/1004#issuecomment-277161812,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVm5JRuRyVNV2sA5_ziyplihipnhKaY3ks5rYqxugaJpZM4HDaB_
.

--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. Any
views or opinions expressed are solely those of the sender and do not
necessarily represent those of Pardy Panda Studios. If you have received
this email in error please notify the sender.

@nigharsh : Didn't work for me. Thank you for your thought though.
@PurviJani : Are you using node.js for the backend? I've been trying to do this with a MEAN stack app as the backend since I'm not using S3. Any thoughts for that?

Hello,
As a back end we are using php & EC3 server ! it's working absolutely fine
in my app.
Purvi Jani
iOS Application Developer
Phone: +919998009783 | Skype: purvi.pardypanda
Pardy Panda Studios
LinkedIn http://linkedin.com/company/pardy-panda-studios | Facebook
http://facebook.com/pardypandastudios | Twitter
http://twitter.com/pardypanda | Youtube http://youtube.com/pardypanda
On Fri, Feb 3, 2017 at 12:16 PM, Richard Hsu<EMAIL_ADDRESS>wrote:

@nigharsh https://github.com/nigharsh : Didn't work for me. Thank you
for your thought though.
@PurviJani https://github.com/PurviJani : Are you using node.js for the
backend? I've been trying to do this with a MEAN stack app as the backend
since I'm not using S3. Any thoughts for that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Alamofire/Alamofire/issues/1004#issuecomment-277176660,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVm5JSu7a174DwriSV5CfaEJEr7UuUJbks5rYs0xgaJpZM4HDaB_
.

--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. Any
views or opinions expressed are solely those of the sender and do not
necessarily represent those of Pardy Panda Studios. If you have received
this email in error please notify the sender.

@PurviJani : For some reason, the image is not in the body of my post request and so I cannot pull it out in my node.js app. Have you encountered this and if so, what was the fix?
Thanks.

@Richard
Hey,
I am sorry! i don't know about it. I have never send image in header. No
idea & don't forget to check image size  limit from your side & server side
as well.
Purvi Jani
iOS Application Developer
Phone: +919998009783 | Skype: purvi.pardypanda
Pardy Panda Studios
LinkedIn http://linkedin.com/company/pardy-panda-studios | Facebook
http://facebook.com/pardypandastudios | Twitter
http://twitter.com/pardypanda | Youtube http://youtube.com/pardypanda
On Fri, Feb 3, 2017 at 12:55 PM, Richard Hsu<EMAIL_ADDRESS>wrote:

@PurviJani https://github.com/PurviJani : For some reason, the image is
not in the body of my post request and so I cannot pull it out in my
node.js app. Have you encountered this and if so, what was the fix?
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Alamofire/Alamofire/issues/1004#issuecomment-277181759,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVm5JfMNumfTeM2tSVFcE2gV1ktmoBMvks5rYtZTgaJpZM4HDaB_
.

--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. Any
views or opinions expressed are solely those of the sender and do not
necessarily represent those of Pardy Panda Studios. If you have received
this email in error please notify the sender.

`let parameters = [
"parameter1": "bodrum",
"parameter2": "yalikavak"]
Alamofire.upload(
  .POST,
  "upload_url",
  multipartFormData: { multipartFormData in

    if let imageData = UIImageJPEGRepresentation(image, 1) {
      multipartFormData.appendBodyPart(data: imageData, name: "file", fileName: "file.png", mimeType: "image/png")
    }

    for (key, value) in parameters {
      multipartFormData.appendBodyPart(data: value.dataUsingEncoding(NSUTF8StringEncoding)!, name: key)
    }
  }, encodingCompletion: { encodingResult in
    switch encodingResult {
    case .Success(let upload, _, _):
      upload.responseJSON { response in
        debugPrint(response)

      }
    case .Failure(let encodingError):
      print(encodingError)
    }
  }
)`

i use this code to upload data with paramters , but i want to convert paramters to json how can i do that ????

Ambiguous reference to member 'upload(_:to:method:headers:)' this error while i am using your code

how to upload recorded video in custom camera app was build in AVKit library and the video recording is done by UIView and also play through AVPlayer


adds the possibility to run in integration test mode

early version it does not yet run through when running all tests, most likely because of the way test utils are initialized (should be within it())


No way to generate Mesh?

Looking at the source, it doesn't seem possible to create a mesh.
Pattern from Raylib (C):
// Generate a simple triangle mesh from code
static Mesh GenMeshCustom(void)
{
    Mesh mesh = { 0 };
    mesh.triangleCount = 1;
    mesh.vertexCount = mesh.triangleCount*3;
    mesh.vertices = (float *)MemAlloc(mesh.vertexCount*3*sizeof(float));    // 3 vertices, 3 coordinates each (x, y, z)
    mesh.texcoords = (float *)MemAlloc(mesh.vertexCount*2*sizeof(float));   // 3 vertices, 2 coordinates each (x, y)
    mesh.normals = (float *)MemAlloc(mesh.vertexCount*3*sizeof(float));     // 3 vertices, 3 coordinates each (x, y, z)

    /* ... */
}

I can't figure out how to do this in Naylib, am I reading the source wrong?

I can't provide a code sample right now but https://nim-lang.github.io/Nim/importutils.html#privateAccess%2Ctypedesc was tested before and it works. As for getting MemAlloc, you need to importc it in your project (just copy the definition found in raylib.nim).

see example models/mesh_generation.nim

see example models/mesh_generation.nim

see example models/mesh_generation.nim


[Event Change] Codeunit 7308 - Replenishment - OnBeforeFindReplenishmtBin

Hi AL-Team,
can you please add the variable NextLineNo by var to the following Publisher?
[IntegrationEvent(false, false)]
    // local procedure OnBeforeFindReplenishmtBin(var TempWhseWkshLine: Record "Whse. Worksheet Line" temporary; ToBinContent: Record "Bin Content"; AllowBreakBulk: Boolean; NextLineNo: Integer; WhseWkshTemplateName: Code[10]; WhseWkshName: Code[10]; LocationCode: Code[10]; DoNotFillQtytoHandle: Boolean; RemainQtyToReplenishBase: Decimal; var IsHandled: Boolean)
    local procedure OnBeforeFindReplenishmtBin(var TempWhseWkshLine: Record "Whse. Worksheet Line" temporary; ToBinContent: Record "Bin Content"; AllowBreakBulk: Boolean; var NextLineNo: Integer; WhseWkshTemplateName: Code[10]; WhseWkshName: Code[10]; LocationCode: Code[10]; DoNotFillQtytoHandle: Boolean; RemainQtyToReplenishBase: Decimal; var IsHandled: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release.
We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues.
If you have follow-up questions or requests, please create a new issue where you reference this one.


feat: update @CascadingUpdateShadowVariable models

Description of the change
This pull request updates the models of food-packaging, task-assigning, and vehicle-routing to match the changes from TimefoldAI/timefold-solver#1020.
Checklist
Development

[x] The changes have been covered with tests, if necessary.
[x] You have a green build, with the exception of the flaky tests.
[x] UI and JS files are fully tested, the user interface works for all modules affected by your changes (e.g., solve and analyze buttons).
[x] The network calls work for all modules affected by your changes (e.g., solving a problem).
[x] The console messages are validated for all modules affected by your changes.

Code Review

[x] This pull request includes an explanatory title and description.
[ ] The GitHub issue is linked.
[ ] At least one other engineer has approved the changes.
[ ] After PR is merged, inform the reporter.

@triceo, it looks like the CI is fetching the development branch instead of the PR branch. I moved the checkout step to the beginning of the script to see if it fixes the issue.


making rustup prepend cargo bin to path instead of append

A first attempt at fixing #475
I'm not sure if the change is this simple because I'm honestly not sure how to test this one.
But I changed the Toolchain::set_ldpath to prepend instead of append.
If you could share some advice on how to test I'm more than willing to do so :)

Looking at the CI build I would say it's not that simple

Looks good. Thanks @rjgoldsborough !


[Proposal] Documentation: Map the Act Names to the Transformer

Proposal
Create a figure that maps the act names to the transformer architecture.
Motivation
Names are just conventions. I find it hard to get the exact position within the transformer block just from the act name. I.e. the resid_pre might be before the split happens or before the merge happens. So I put it in context to the other act names and work by exclusion process or modify it to see what values will change.
Pitch
I suggest using the images from the Vasvani paper and adding labeled arrows pointing to the hook positions.
Alternatives
A list or table of (act name, description) pairs.
Checklist

[x] I have checked that there is no similar issue in the repo (required)

@JuVogt Do you have time to handle this issue?

I am willing to contribute as well, but I am currently out of time, sorry for that. I can come back after I finish my thesis at the end of the year and design something, but a first sketch would definitely help. Maybe I could then add a list with the act names including some more information about i.e. the dimensions and calculations behind it if someone already contributed a sketch or vice versa.
Also, I could add some more documentation with minimal examples beside the colabs that I think would help me in the beginning.


createsharednetworkform: Fix for multiple physical networks

Fixing errors && fetching incorrect service offerings when there are multiple physical networks while trying to create a shared network

@blueorangutan package

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build primate packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark:centos :heavy_check_mark:debian :heavy_check_mark:archive.
QA: http://primate-qa.cloudstack.cloud:8080/client/pr/878 (JID-3703)


Enable/disable future transaction

fix for issue  Weird bug with QT wallet and futures #154

Makes sense - this is the only place isFutureOutput is assigned.  LGTM


Release 1.12.0

We'll pin the external test gem to master in chef until this is released.

I'll do this myself, thanks. I've got a bunch of scripts for release management. Will do in the morning.

ok cool. Thanks @coderanger


Add YAML support

To be rebased onto master after #1017 is merged. Ignore everything up to and including 6b4e564.

If yaml-cpp indeed uses exceptions on the print path, the to_yaml() function below needs a try-catch block as well

@lava I could not find a single throw in the emitter code in yaml-cpp, that's why I didn't wrap it into a try-catch block.

I've added a changelog as well. Before the next release, we may consolidate it with a single entry about the new config file format.

Please install libyaml-cpp-dev in the bundled Dockerfile as well.

Why didn't CI complain about this missing dependency, @dominiklohmann?

@dominiklohmann I pushed a minor fixup and now the Docker build failed with this error:
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.rS81EKvBWf/gpg.1.sh --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys 5C808C2B65558117
gpg: keyserver receive failed: Cannot assign requested address

Any objections if I merge nonetheless?

I got your approval in person, @dominiklohmann. 🙂


pictures of this page aren't loading

https://de.serlo.org/wirkung
there are two pictures in the content area, that aren't loading

The last revision of that page works fine: https://de.serlo.org/page/revision/54401
There can be multiple causes for missing pictures, but most likely it's not a technical issue. Do you have the pictures somewhere on your drive? If so, please reupload them as there's not a lot I can do.

If not, please reopen

it worked, thanks


[vlpp] Update to <IP_ADDRESS> and fix build error

Fixes https://github.com/microsoft/vcpkg/issues/32143
CMake Error at F:/vcpkg/scripts/buildsystems/vcpkg.cmake:598 (_add_executable):
  Cannot find source file:

    GacGen/NativeController.cpp
F:\vcpkg\buildtrees\vlpp\src\0afbb382fa-aa8e300e24\Import\gacgen\Import\VlppReflection.h(2911): error C2065: 'FLT_MAX': undeclared
F:\vcpkg\buildtrees\vlpp\src\0afbb382fa-aa8e300e24\Import\gacgen\Import\VlppReflection.h(2918): error C2065: 'DBL_MAX': undeclared identifier

Added a patch to fix the above two compilation errors.

[X] Changes comply with the maintainer guide
[X] SHA512s are updated for each updated download
[ ] The "supports" clause reflects platforms that may be fixed by this new version
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[X] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[X] Only one version is added to each modified port's versions file.

Usage test pass with following triplets:
x86-windows
x64-windows
x64-windows-static

The last vcpkg needs CMakeLists.txt across different repos because some source files are not in the Release repo. But today it is no longer the case, so vcpkg could and should make its own one to use source files for all tools from here https://github.com/vczh-libraries/Release/tree/master/Tools/Executables

Wait, CMakeLists.txt (or any alternative build system generator) is something which shall be maintained upstream. Having it in the port is the exception.

Thanks!


synthetic-data-part-2

Describe a simple and general approach to DP synthetic data by decoupling into 3 steps.  Focus is on approaches to the third step.

Let me know if length is too long, and I can cut out the two plots towards the end, along with supporting text.
TODO: fill in author information (couldn't figure this out)

added author information and changed orientation of figures


nodes view not working on an Elasticsearch 5.1 cluster

Attempting to view the nodes tab in cerebro on an ES 5.1 cluster results in the following error:
play.api.UnexpectedException: Unexpected exception[JsResultException: JsResultException(errors:List((,List(ValidationError(List('version' is undefined on object: {"pid":4536,"start_time":"2017-04-12T20:28:23.429Z","start_time_in_millis":1492028903429,"mem":{"heap_init":"5gb","heap_init_in_bytes":5368709120,"heap_max":"4.9gb","heap_max_in_bytes":5351276544,"non_heap_init":"2.4mb","non_heap_init_in_bytes":2555904,"non_heap_max":"0b","non_heap_max_in_bytes":0,"direct_max":"4.9gb","direct_max_in_bytes":5351276544},"using_compressed_ordinary_object_pointers":"true"}),WrappedArray())))))]
	at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:289)
	at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:220)
	at play.api.GlobalSettings$class.onError(GlobalSettings.scala:160)
	at play.api.DefaultGlobal$.onError(GlobalSettings.scala:188)
	at play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:100)

It appears that the version field is no longer returned in the jvm block when calling _nodes/_all.

@my-digital-decay I have just tested this with ES 5.0, 5.1.1 and 5.3.0, and with all of them this worked fine.
I also checked _nodes/_all, and they all also returned the jvm version information.
Is there anything unusual on your setup? OS? JVM?

@lmenezes Yeah sorry, I failed to mention that this is a cluster using the AWS Elasticsearch Service. Amazon must have modified the API so it doesn't report the same information in their managed clusters. I assumed it was just a version related issue.
I've been using kopf on a custom managed cluster and love it. So far cerebro seems to work just as well with the AWS managed cluster, except for this nodes view issue. Would love to get this working on the AWS managed cluster. Let me know if there's anything I can do to help.


AWS Sagemaker JS Integration

System Info
JS LangChain
Who can help?
No response
Information

[X] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[X] LLMs/Chat Models
[X] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[X] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
@dosu-bot
I got this error now with my code: ModelError: Received client error (424) from primary with message "{
"code":424,
"message":"prediction failure",
"error":"Need to pass custom_attributes='accept_eula=true' as part of header. This means you have read and accept the end-user license agreement (EULA) of the model. EULA can be found in model card description or from https://ai.meta.com/res
const { SageMakerLLMContentHandler, SageMakerEndpoint } = require("langchain/llms/sagemaker_endpoint");
const AWS = require('aws-sdk');

AWS.config.credentials = new AWS.SharedIniFileCredentials({ profile: 'profile' });

class HuggingFaceTextGenerationGPT2ContentHandler {
  constructor(contentHandler) {
    this.contentHandler = contentHandler;
    this.contentType = "application/json";
    this.accepts = "application/json";
  }

  async transformInput(prompt, modelKwargs) {
    const inputString = JSON.stringify({
      text_inputs: prompt,
      ...modelKwargs,
    });
    return Buffer.from(inputString);
  }

  async transformOutput(output) {
    const responseJson = JSON.parse(Buffer.from(output).toString("utf-8"));
    return responseJson.generated_texts[0];
  }
}

const contentHandler = new HuggingFaceTextGenerationGPT2ContentHandler(SageMakerLLMContentHandler);

const model = new SageMakerEndpoint({
  endpointName: "endpointName",
  modelKwargs: { temperature: 1e-10 },
  contentHandler: contentHandler, // Pass the inner contentHandler
  clientOptions: {
    region: "region",
    credentials: AWS.config.credentials,
  },
});

async function main() {
  const res = await model.call("Hello, my name is ");
  console.log({ res });
}

main();

Can you show where to add the eula agreement acceptanced parameter
Expected behavior
I expected it to pass, but it asked me to accept a EULA Agreement. I tried customized arguments but that didn't seem to solve hte issue either

This fix doesn't seem to work - I am also encountering this same issue with the following code suggested:
const awsModel = new SageMakerEndpoint({
      endpointName:
        "endpointname",
      modelKwargs: { temperature: 0.6 },
      contentHandler,
      clientOptions:
      {
        region: "us-east-1",
        credentials: {
          accessKeyId: process.env.AWS_ACCESS_KEY,
          secretAccessKey: process.env.AWS_SECRET_KEY,
        },
        customAttributes: 'accept_eula=true'
      },
    });

Hello @chrisr345 ,
I believe the JS version of the class is here: sagemaker_endpoint.ts.
Basing from the code, the customAttributes should be defined as:
const awsModel = new SageMakerEndpoint({
      endpointName: "endpointname",
      modelKwargs: { temperature: 0.6 },
      endpointKwargs: {
        CustomAttributes: "accept_eula=true"
      },
      contentHandler,
      clientOptions:
      {
        region: "us-east-1",
        credentials: {
          accessKeyId: process.env.AWS_ACCESS_KEY,
          secretAccessKey: process.env.AWS_SECRET_KEY,
        }
      }
});

I also encountered this issue when using Sagemaker's batch transform job, so where should I add this parameter to the batch transform job


How can I run to the training?

Hi
Thanks for sharing your code.
I'd like to run to the training. But, I can't.
I already did download the code file and the GOPRO_Large file.
So, please explain how to run the training step by step.

Where did you put the dataset?
As written on usage examples, the default data_root is ~/Research/dataset.
It expects your data path like ~/Research/dataset/GOPRO_Large/train/GOPR0372_07_00/blur_gamma/....

I only tested the code on Ubuntu devices and it may not work very well on Windows.

Hi
My test environment
OS: window 10 x64
Tool: Conda-based the Spyder
Path : C:\Users\user.spyder-py3\DeepDeblur-PyTorch-master\src\Research\dataset\GOPRO_Large\train\GOPR0372_07_00\blur_gamma

What do I do missing?

In Ubuntu machines, ~ refers to your home directory.
In my case, my ubuntu username is seungjun.
ex) ~/Research/dataset is equivalent to /home/seungjun/Research/dataset
I'm not sure how Windows interprets '~'.
If you want to put your dataset in a custom location, you can provide the location as an input argument.
python main.py --data_root YOUR/DATASET/LOCATION

Thanks for the information.
I did it as you told me. In my case, it doesn't work.
I need to think more about it.

@bumjuncho Drop Windows for good.
Pytorch is not going to work on this system.
Dual boot is best.
If you still wanna stay on Windows your best bet is to use WSL2 but it is very tricky to configure Cuda.

Closing due to inactivity.


MatthewsCorrCoefMulti should be removed

Per sklearn docs, matthews_corrcoef supports binary and multiclass labels only

Done, thanks for flagging!


Incorrect handling of labels in a conditional block

This code works:
.if 1
variable: .db 1
.else
variable: .db 0
.endif
But this DOESN'T work, resulting in a 'label allready exists' error
.if 1
variable:
.db 1
.else
variable:.
db 0
.endif

Released as v1.11


Support OSGi factory name hints.

This should be complete for #495. Any feedback on the descriptions is appreciated.

Fixed.


Fix merge errors

I think git/github somehow got confused when both #361 and #371 were merged in rebase mode. Some changes in #371 were overwritten by #361. This pull request fixes that.

Ah so I forgot to make you rebase #371 manually. Thanks!

Passing!


BSimElasticPlugin: Java class file version is too new for Elasticsearch 8.8.1

Describe the bug
The Java class file found in lsh.zip, the plugin for Elasticsearch, is too new to be recognized by Elasticsearch version 8.8.1. When the plugin is installed, Elasticsearch prints the following error message:

org/elasticsearch/plugin/analysis/lsh/AnalysisLSHPlugin has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0

I believe the fix is to update Elasticsearch to a newer version, but doing so prints the following message when attempting to install the plugin:

java.lang.IllegalArgumentException: Plugin [lsh] was built for Elasticsearch version 8.8.1 but version [any other version] is running

It looks like the plugin will need to be updated to work with a newer version of Elasticsearch running a newer Java Runtime.
To Reproduce
NOTE: I had to add libsDirName='ziplayout' to the build.gradle file in Ghidra/Extensions/BSimElasticPlugin/ before building Ghidra to be able to get a correct lsh.zip file. See #7051 for more info.
Steps to reproduce the behavior:

Install the BSimElasticPlugin extension from the Ghidra UI or by unzipping the ghidra_11.2_DEV_20241014_BSimElasticPlugin.zip archive from Extensions/Ghidra/ to Ghidra/Extensions/ (I used the latter method).
Locate the lsh.zip file in Ghidra/Extensions/BSimElasticPlugin/data/.
Install this plugin in Elasticsearch and restart Elasticsearch to see the error message.

Expected behavior
The plugin should install and Elasticsearch should run without plugin-related errors.
Screenshots
N/A
Attachments
N/A
Environment (please complete the following information):

OS: Ubuntu 22.04
Java Version: 21.0.4 (Ghidra), 20.0.1 (Elasticsearch)
Ghidra Version: 11.2
Ghidra Origin: locally built

Additional context
N/A

Fixed by 977e6be67f0ade11a36294d6b062055227590ca5


Avoid unused private fields such as '$validator'.

Codacy detected an issue:
Message: Avoid unused private fields such as '$validator'.
Occurred on:

Commit:  f7f5c2fed965fd33715144890e51b9f37a3d6870
File:    src/TextFileLoader.php
LineNum: 40
Code:    private $validator;

Currently on:

Commit:  9fbf6cbcd2776c611532c21245ef1ff5f601d823
File:    src/TextFileLoader.php
LineNum: 40

Fixed


Transf elas

Fix transformation elasticities

(Other than test coverage), this passes all the CET with different CES elasticity values cases in I have in there, and doesn't break any other tests!
Next steps for this branch before a merge:

Clean up all the remnant comments and print lines from my experimentation
Check, is it ok that the input shareparamaters are using total inputs in the denominator?
Confirm it is ok to rebuild at every solve
Potentially get clarity on the different expression versions from different substitution elasticities in the implicit constraints

At this point it's working and cleaned up, resolves #81

There is an issue with replicating the set of ShareParameter every solve!/build! (this change includes new build with every solve!).
There may be more efficient or elegant ways to do what I implemented, review for that would be great.
[This fix is robust to all cases so far - I'm crossing my fingers I have broad test coverage for cases, but I will be double-checking, nevertheless, I think this is ready for merge].


[question]Doing an interactive bot

Hi, I'm trying to make a twitter bot. I want that some users can DirectMessage the bot with commands and the bot to respond.
One of my problems is that Message.GetLatestMessages has a limit of 1 query per minute  (15/15), so interactivity is hard to achieve when you only can respond once in a minute. Is there a way to get a continuous stream of direct messages like CreateFilteredStream but with DMs?
Another of the problems is that even with GetLatestMessage the system seems easy to DoS with several users continuously sending DMs to the bot. Is there any way to limit the received DMs to a few users? (I know this can be fixed by twitter DM configuration, not allowing strangers to message you, but I'd like to know if it's possible)
Thanks!

Hello there,
Webhooks will allow you to avoid the limits you currently face regarding retrieving DirectMessages.
You can find an example project Examplinvi.WebhooksServer.
And you can find about the subscription here :
https://github.com/linvi/tweetinvi/blob/master/Examplinvi.WebhooksServer/Controllers/TweetinviWebhookController.cs#L113
Webhooks just came in version 4.0 and I want to simplify the development process in next release of Tweetinvi.
I hope this helps.

Hi linvi, thanks for the answer, I'll have the example as soon as I can.
I know this is not the scope of the forum, but could you confirm me that webhooks are a premium-only feature? I think I had a look at it when browsing the twitter developer documentation but discarded it because of the premium restriction. It was a month ago and my memory is not as good as it used to be, and probably won't be able to have a look at it in some time :(

Webhooks have 2 levels,  free tier and not free. I don't remember the restrictions (I am in the train right now) but i think it should fit your purpose.

Thanks for the answer! As this is what I was searching for I'll close the issue. If more problems arise with webhooks when I finally can try it I'll reopen the issue.


feat: add unityPreview.ts entry point

It adds a separate preview for unity builds. I'd like to copy this file too to the artifacts so we can switch to unity in the CLI to compare progress and features. Leaving Babylon as main entry point @eordano @fmiras

What?
...
Why?
...

Mergeamo?


python310Packages.suds-jurko: remove

still uses use_2to3
unmaintained for a while

Description of changes
Consumers:

#218616
#218615
#218613

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.05 Release Notes (or backporting 22.11 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.

This broke eval. The jira-cli package should probably be removed entirely.

(and also suseapi, which is the other consumer of suds-jurko)


pip2/3 install not working

I tried to update holoviews with pip2 and pip3 and ran into the following:
± pip2 install holoviews --upgrade --user
Collecting holoviews
  Using cached https://files.pythonhosted.org/packages/3b/09/a52d35bd4f59c5d62bf7baf04b2980d697fe4ceecda193c0ce8a4a3f957f/holoviews-1.10.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/ahundt/pip-install-CGRjGQ/holoviews/setup.py", line 75, in <module>
        version=get_setup_version("holoviews"),
      File "/tmp/ahundt/pip-install-CGRjGQ/holoviews/setup.py", line 68, in get_setup_version
        return version.Version.setup_version(basepath, reponame, archive_commit="$Format:%h$")
    AttributeError: type object 'Version' has no attribute 'setup_version'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/ahundt/pip-install-CGRjGQ/holoviews/
-> [1]
± pip3 install holoviews --upgrade --user
Collecting holoviews
  Using cached https://files.pythonhosted.org/packages/3b/09/a52d35bd4f59c5d62bf7baf04b2980d697fe4ceecda193c0ce8a4a3f957f/holoviews-1.10.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/ahundt/pip-install-pc44o4v0/holoviews/setup.py", line 75, in <module>
        version=get_setup_version("holoviews"),
      File "/tmp/ahundt/pip-install-pc44o4v0/holoviews/setup.py", line 68, in get_setup_version
        return version.Version.setup_version(basepath, reponame, archive_commit="$Format:%h$")
    AttributeError: type object 'Version' has no attribute 'setup_version'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/ahundt/pip-install-pc44o4v0/holoviews/

My guess is that you have an older version of param, which is providing a version.py file incompatible with the current holoviews. If you don't have param 1.6.1, I think that first running pip2 install --upgrade --user param or pip3 install --upgrade param then upgrading holoviews might solve your problem.
This problem of requiring param at install time for pip users occurs because pip must build holoviews from the sdist before installing it; the problem will go away when holoviews provides wheels on pypi (soon!).
The problem of mismatched param and holoviews versions at build time (e.g. for people using the sdist) will be fixed when holoviews specifies build time dependencies and everyone has a new enough version of pip (>=10), i.e. at some point in the future...

Yep that did the trick! Feel free to close this, or if you think this problem could be common enough, you might want to add a check or update line to your packaging script to ensure param is sufficiently up to date for the install, and perhaps update it for the user.

Glad that worked for you! @ceball What do you think about closing this issue?

Or the easiest thing with no code changes could be to add a line to your install instructions to update pip and param before subsequent steps. :+1:

Sounds to me like (a) this issue should stay open until we provide wheels, and (b) we should provide wheels ASAP, urgently, to avoid this problem for most users.

Wheels for holoviews and pyviz_comms have now been uploaded.


Keep only stacktrace in stacktrace field

Instead of keeping full exception

The "full" exception only includes the exception-type and exception-message. I recommend Exception.ToString over NLog custom formatting of Exception-StackTrace.

Hi, thank you both for your contribution. Provided @snakefoot recommends keeping tostring, and that the readme is only a configuration recommendation that is not directly related to the NLog.Targets.Loki package, I will not merge the change.

Hi, I just wanted to mention that exception-type and exception-message that included in the "full" exception, are already present in type and message fields respectively.
So there is no reason to keep them in the stacktrace field.


feature: Optimized pubsub api demo

What this PR does:
mix pubsub demo
Which issue(s) this PR fixes:

Fixes #584

i have  signed CLA but the status is not sync automatically
to merge all pubsub demo, some folder will be deleted and it make  an error when Quickstart Validation  exec cmd cd /home/runner/work/layotto/layotto/demo/pubsub/redis/server/，the script seem to be build on the workflow server，i think it need somebody to update the script or ignore the validation error

i have signed CLA but the status is not sync automatically

Fixed. I closed and reopened this PR to rerun the workflow .

to merge all pubsub demo, some folder will be deleted and it make an error when Quickstart Validation exec cmd cd /home/runner/work/layotto/layotto/demo/pubsub/redis/server/，the script seem to be build on the workflow server，i think it need somebody to update the script or ignore the validation error

Yes you are right :)
The quickstart doc http://localhost:3000/#/en/start/pubsub/start  and http://localhost:3000/#/zh/start/pubsub/start used the redis demo:

And Layotto runs these quickstart document in the workflow, see http://localhost:3000/#/zh/development/test-quickstart
So, could u help modify the documentation in this PR?
Just modify the doc to use the new demo code.
If you don't know how to fix it after reading the doc, I can help submit a PR to your branch to fix it :)

i will update the doc for the new demo

@seeflood  I have updated the quick start doc and it can work well in my local test. But there is a confliction need somebody with write access to handle.

@seeflood I have updated the quick start doc and it can work well in my local test. But there is a confliction need somebody with write access to handle.

Thanks ! I just saw this message.
You have the permission to resolve the conflicts.
To resolve them, you can:

Merge main branch into your branch, on your computer. The IDE will guide you to fix conflicts
After all resolved and merged, you just push your new code to your github repo.

@seeflood all conversations are resolved


Durabilty

Hey ! Is there a way to add custom textures using the Durability & Unbreaking tag ?

I wonder if you can set custom model data on an item then that would could give you custom textures if you yous resource packs

I made a new version where you can set custom model data and change the texter with a resources pack
https://github.com/Foalan/Gringotts/blob/master/Gringotts-2.11.1-SNAPSHOT.jar?raw=true


Programmatically validate object against collection config

Is your feature request related to a problem? Please describe.
In certain situations, it's useful to be able to validate an object against a collection config. For example, when the config is changed (e.g. a required field added), a CI job could use a validation API to detect content that is no longer in the right format.
Describe the solution you'd like
Something like this:
const json = fs.readFileSync('path/to/content.json').toString()
const obj = JSON.parse(json)
const collection = config.collections.find(c => c.name = 'foo')
CMS.validate(collection, obj) // throws if obj doesn't conform to expected shape

Possible implementation
It may be achievable via a static function:
const fieldToJsonSchema = field => {
  if (field.widget === 'string') {
    return { type: 'string' }
  }
  ...

  if (field.widget === 'object') {
    const schema = {
      properties: Object.fromEntries(
        field.fields.map(f => [f.name, fieldToJsonSchema(f)]),
      ),
      required: field.fields.map(f => f.name).filter(f => f.required !== true),
  }

  if (field.widget === 'list') {
    // ...
  }
}

CMS.validate = (collection, obj) => {
  return someJsonSchemaValidatorFromNpm.validate(fieldToJsonSchema(collection), obj)
}

There are a fair few edge-cases though.
Describe alternatives you've considered
N/A.
Additional context
Originally asked in Slack: https://netlifycms.slack.com/archives/CPRR0PQ9E/p1636036471070400

Note: I'd be willing to work on this if it would be accepted.

@mmkal thanks for opening this issue and suggesting an approach.
Users can register their own custom widgets, so the CMS core would not know how to handle those.
As a general approach the CMS delegates handling data to the widgets, as some widgets has logic on how to handle the data based on the widget configuration. For example a datetime widget can have multiple formats, and a list widget can have variable types. The relation widget can be multiple selection, or single selection and so on.

Absolutely, the devil would be in the details for fieldToJsonSchema. Complicated widgets like datetime widgets would have correspondingly complicated implementations, but still doable I think. Potentially problematic to need to mirror all widget behavior separately though. Maybe a solution that would work for custom widgets
too would be to introduce an (optional) toJsonSchema function on every widget? If not supplied, it could default to {} (json-schema's equivalent of any).


Improve Social Branding

This PR

Fixes video resizing glitch when opening the web page
Improves the social card by make the message simpler and clearer.
Adds the social card as a poster to the splash video.
Fixes canonical_url error

The docs will look like below.

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

Comparison is base (20a13d1) 78.88% compared to head (60905db) 78.88%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #88   +/-   ##
=======================================
  Coverage   78.88%   78.88%
=======================================
  Files           5        5
  Lines         161      161
=======================================
  Hits          127      127
  Misses         34       34

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


Unable to override RabbitMQConnection in AppHost

Good morning,
I don't know if it's my fault or a bug, but I can't override the RabbitMQ connectionstring from AppHost:
https://learn.microsoft.com/en-us/dotnet/aspire/messaging/rabbitmq-client-component?tabs=dotnet-cli#use-a-connection-string
I have tried with these two settings in the appsettings.json of AppHost (if I use builder.AddConnectionString("RabbitMQConnection") it works correctly)
My appsettings.json
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning",
      "Aspire.Hosting.Dcp": "Warning"
    }
  },
  "ConnectionStrings": {
    "RabbitMQConnection": "amqp://guest:guest@localhost:5672"
  },
  "Aspire": {
    "RabbitMQ": {
      "Client": {
        "ConnectionString": "amqp://guest:guest@localhost:5672"
      }
    }
  }
}

Can you share the full example? When you call AddConnectionString and you pass it to the WithReference method, it’ll make sure that value has been properly set, or there will be an error the dashboard that explains what to do.
In the apphost the ConnectionStrings section is used


Fix a typo in example code

Since the comment above the reregister call says "Even though the token is the same", I'm guessing the author intended to pass the same Token as the call to register above.

Thanks @zeenix.


Add AI Tagging

Automatically tags your bookmarks using AI for faster retrieval.

Gov

So basically add the same feature that Hoarder has.  I've been using linkding for many years, and even after testing Hoarder and importing my linkding links, I still find linkding to just work better and faster.  Adding AI tagging might be cool as long as it doesn't slow down linkding.  Of course it would be an option to turn off or on.

+1


Fix issue of istioctl wait will hung till timeout: issue#31509

This PR is related to issue: https://github.com/istio/istio/issues/31509
istioctl experimental wait for virtualservice will hung till timeout after the bookinfo pod re-connect to istiod
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

Hi @zhlsunshine. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

@zhlsunshine: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
2c3aa7f0b406ab39ac001cac30696f26d78e354c
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Hi @hzxuzhonghu Please give a review for this change, thanks!

@zhlsunshine: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-multicluster-tests_istio
ced245a86b814d5b71de236c29c766883da95a00
link
/test integ-pilot-multicluster-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


README grammar updates

I made some grammatical updates to the README
Hope it helps :)

I might try making my own API for useful tech tools, so this is going to inspire me to try out new things!


pytest windows voes

so the windows pytest runs keep failing sporadically with
_tkinter.TclError: Can't find a usable init.tcl in the following directories: ...
The ususally pass after a rerun but we should find a way to fix this (even if just disabling multiprocessing for windws runs)

maybe the test setup for plot functions isn't the best either right now

mhm, I switched the backend in the tests. See how I set up the matplotlibrc file in pytest.yaml

I only applied it for the pip testing though, I guess you're talking about testing in conda now?

we could drop a matplotlibrc file next to the recipe and copy it to the test-folder during testing stage.

no the normal github actions keep failing for windows

I only applied it for the pip testing though, I guess you're talking about testing in conda now?

So I was just being tricked by the randomness of failure then. I thought I managed to force matplotlib to use Agg and not TK.

not finding a file in the same docker image every 5-10th time is really awkward. We should avoid using tk altogether. I wonder why my matplotlibrc is being ignored.


Add API tests for all supported environments

Description
For all registered environments (excluding FlightWoB), added tests for the following:

Run gymnasium.utils.env_checker.check_env, which checks the observation space and seed determinism (except click-pie, where the UI position can jitter by a few pixels).
Verify the flattened observation space.

Also added a utility for inspecting the observation space.  Tasks were modified to pass the tests.
Addressed part of issue #15.
Type of change
Please delete options that are not relevant.

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

Checklist:

[x] I have run the pre-commit checks with pre-commit run --all-files (see CONTRIBUTING.md instructions to set it up)
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (not applicable)
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Sorry for not responding earlier. I have addressed the comments.

Thanks for the PR, looks good


feat(sampledata): Add demo data dropdown and membership request to buckets

Partially Closes #6097
Query sampledata /buckets endpoint to get available demodata buckets for Add demo data dropdown
Request membership to a demodata bucket on click to demodata bucket dropdown item.
Query for demodata buckets user is member to on fetch buckets.
All behind feature flag

Could not reach demodata endpoint

makes sense since there is no demo data endpoint locally :) I'll address your comments and merge !


feature: 全新的单据评论接口

Codecov Report

Merging #199 (0ca154f) into v2.6.x_develop (4c2db34) will increase coverage by 0.21%.
The diff coverage is 0.00%.

@@                Coverage Diff                 @@
##           v2.6.x_develop     #199      +/-   ##
==================================================
+ Coverage           50.71%   50.92%   +0.21%
==================================================
  Files                 657      657
  Lines               36450    36454       +4
==================================================
+ Hits                18484    18565      +81
+ Misses              17966    17889      -77

Impacted Files
Coverage Δ

itsm/ticket/views/ticket_remark.py
46.42% <0.00%> (-7.74%)
:arrow_down:

itsm/component/utils/drf.py
70.58% <0.00%> (-5.89%)
:arrow_down:

itsm/workflow/backend.py
66.19% <0.00%> (+0.70%)
:arrow_up:

itsm/service/serializers.py
72.22% <0.00%> (+0.87%)
:arrow_up:

itsm/service/models.py
61.36% <0.00%> (+1.02%)
:arrow_up:

itsm/workflow/models/workflow.py
63.63% <0.00%> (+4.81%)
:arrow_up:

itsm/service/views.py
51.23% <0.00%> (+4.95%)
:arrow_up:

itsm/workflow/validators.py
35.00% <0.00%> (+6.52%)
:arrow_up:

itsm/component/utils/bk_bunch.py
80.95% <0.00%> (+23.80%)
:arrow_up:

Continue to review full report at Codecov.

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