Dynamic arrays: Freeze when changing main option

In this ( https://github.com/aldeed/meteor-autoform/issues/585 ) scenario, my browser window freezes, when

Selecting a main option (this generates sub options)
Changing that main option.

collections.js:
Products = new Mongo.Collection('products');
Categories = new Mongo.Collection('categories');

Products.attachSchema(new SimpleSchema({
  name: {
    type: String,
    label: "Name",
    max: 100,
  },
  categories: {
    type: [Object],
    minCount: 1
  },
  "categories.$.mainCategory": {
    type: String,
    autoform: {
      options: function() {
        return Categories.find().map(function(obj) {
          return { label: obj.name, value: obj.name };
        });
      }
    }
  },
  "categories.$.subCategory": {
    type: String,
    autoform: {
      options: function() {
        var mainCat = AutoForm.getFieldValue(this.name.replace('.subCategory', '.mainCategory'));
        return Categories.findOne({ name: mainCat }).subCategories.map(function(obj) {
          return { label: obj.name, value: obj.name };
        });
      }
    }
  }
}));

Categories.attachSchema(new SimpleSchema({
  name: {
    type: String,
    unique: true
  },
  subCategories: {
    type: [Object],
    minCount: 1
  },
  "subCategories.$.name": {
    type: String
  }
}));

server.js:
if (Meteor.isServer) {
  Meteor.startup(function () {
    Categories.remove({});
    Categories.insert(
      {
        name: "MainCategory1",
        subCategories: [
          {name: "SubCategory1.1"},
          {name: "SubCategory1.2"}
        ]
      }
    );
    Categories.insert(
      {
        name: "MainCategory2",
        subCategories: [
          {name: "SubCategory2.1"},
          {name: "SubCategory2.2"}
        ]
      }
    );
  });
}

template.html:
{{> quickForm collection="Products" id="insertProductForm" type="insert"}}

Also I get millions of the same warning:
TypeError: Cannot read property 'subCategories' of undefined
at Object.Products.attachSchema.SimpleSchema.categories.$.subCategory.autoform.options

Browser also freezes when selecting a main option and then clicking the plus-button.
Would be really great if you could have a look at this. I'm not able to find a workaround.

I'm guessing it's the same cause as #785. I will try to get a fix in place.

Please retest with AutoForm 5.1.0 and close if your issue is resolved.

Thank you, working now.
However, there are still 2 issues when adding update/insert functionality:

Setting doc to null doesn't reset the form (https://github.com/aldeed/meteor-autoform/issues/751).
In update mode, clicking the plus button sets doc to null (thus turning it into insert mode).


Confusing prompt to overwrite tasks upon workspace open results in non-runnable app

Environment
VS Code 1.74.0
Mac OS Ventura 13.0.1
Functions extension v1.9.0
Repro steps

Install prerequisites for Azure Dev CLI-enabled application "ToDo App with CSharp Functions and Azure SQL": https://github.com/Azure-Samples/todo-csharp-sql-swa-func#prerequisites
Create new empty folder and run azd init -t todo-csharp-sql-swa-func there
Open the folder in VS Code.

Expected
Apart from the prompt to restore the .NET API (middle tier) project, there should be no prompts/warnings.
Actual
There is a prompt that says

Detected an Azure Functions Project in folder 'blah' that may have been created outside of VS Code.
Initialize for optimal use with VS Code?

Who doesn't want optimal use? You say yes and see another prompt

This will overwrite the following tasks in your tasks.json: "func: host start"

This is confusing: there is no task "func: host start" in tasks.json. What the extension refers to is a task that is part of the template, which is labeled "API Functions Run". If a task to be overwritten has a label, the extension should use the label for prompting.
If the user says yes, the task will be overwritten. Unfortunately this task is used by other tasks, and the end result is that the user loses ability to run the app locally.
What I really want
An ability for this template to "tell" Azure Functions extension that it is complete with regards to  Azure Functions-related tasks, and that it should not offer to update/overwrite tasks.json file. Is there such a mechanism?

OK I think I found what I want: I need to put
{
"azureFunctions.showProjectWarning": false
}

in workspace settings.
So my only gripe now is that the second prompt should use task label if available.

With the above setting as a workaround the template can be made to work smoothly, but I am still wondering if the extension should offer to generate Functions-related tasks (and overwrite existing task) in this case. Should not the presence of a task of a func type be a clue that the workspace is already configured to work with Functions?

Hi @karolz-ms
When we determine a project needs to be re-initialized, we're looking for two specific vscode settings: azureFunctions.projectLanguage and azureFunctions.projectRuntime.
We need these settings to select which templates to display to users when creating function triggers. I think if you included these settings with your template, we won't prompt the warning and you won't have to suppress it.
Here's an example of the settings.json that we generate for the project.
    "azureFunctions.deploySubpath": ".",
    "azureFunctions.postDeployTask": "npm install (functions)",
    "azureFunctions.projectLanguage": "JavaScript",
    "azureFunctions.projectRuntime": "~4",
    "debug.internalConsoleOptions": "neverOpen",
    "azureFunctions.preDeployTask": "npm prune (functions)"

@nturinski thank you. Will try projectRuntime and projectLanguage settings.

The suggestion works ☺ PR submitted https://github.com/Azure/azure-dev/pull/1280 That said, for the Functions ext, you still might want to consider whether to improve the project detection logic, and as a minimum, use the task label when prompting the user to update tasks.

I agree-- we will leave this issue opened for those suggestions!

In this case, when we see they have a func task with a label different from "func: host start" we should just add a new task instead of overwriting the existing task.


Don't scale up image on resize if image is smaller then new width or height

As far as I can see, the resized image is always generated with the width and height set in the resize function, no matter what size the original image is. It would be great if an image isn't scaled up, when the original size of an image is smaller then the resized size. This way the quality of the image isn't compromised.

+1

Yes, this would be very useful, came here to post the same suggestion!

Just came across the same thing! +1

This plugin is being migrated to core (see #55), so we are trying to figure out what issues are still relevant to invite to reopen them in core.
Issues that will remain inactive in next 30 days will be closed.

Still needed, will wait it in the core.


Example/Tech demo 28

Request
To translate and validate the tech demo 28, and upload it to the online documentation.
Topic
Friction Stir Welding (FSW) Simulation.

This was closed in #731


Experiment with MIDI.js

https://github.com/mudcube/MIDI.js
https://github.com/azer/midi-sdk

https://gist.github.com/gleitz/6845751


Support standalone execution of integrations.

Integrations should be executable outside of resource closures in certain cases for the following use cases:

Testing

Using logic during synthesis

[ ] Create standalone integration type

[ ] Implement standalone for

[ ] Express Step Function - Executes the closure
Lambda - As part of #103

[ ] Fail for all other uses

Step Function - Illogical, step function returns the execution name, not a result
Event Bus - Illogical, what does it mean to submit an event locally?
$AWS.* and $SFN.* integrations

[ ] Support nested standalone integrations

[ ] Mock integrations

Valid Use:
const sfn = new ExpressionStepFunction<undefined, string>(() => {
    return "hello";
});

const result = sfn();

expect(result).toeEqual({ output: "hello", status: "SUCCEEDED" });

Invalid Use:
const sfn = new StepFunction<undefined, string>(() => {
    return "hello";
});

const result = sfn(); // invalid - what does it mean to start a long running execution locally?

Nested Use
const sfn = new ExpressionStepFunction<undefined, string>(() => {
    return "hello";
});

const sfn2 = new ExpressionStepFunction<undefined, string>(() => {
    return `${sfn()} there`;
});

const result = sfn2();

expect(result).toeEqual({ output: "hello there", status: "SUCCEEDED" });

Invalid nested
const eb = new EventBus();
const sfn = new ExpressionStepFunction<undefined, string>(() => {
    eb();
});

const result = sfn(); // fails, eb() does not support standalone;

Mocked Nested
const eb = new EventBus();
const sfn = new ExpressionStepFunction<undefined, string>(() => {
    eb();
});
mockIntegration(eb, () => {});

const result = sfn(); // success! eb is mocked

This is a longer term goal but I believe we can offer a similar experience for non-express step functions. Even though they don't return synchronously, we can expose an integration for DescribeExecution. Users could then write async tests locally by polling for the result.
We could do similar things with queues and event buses.


Android - dependency issue

After following your instructions, I'm getting the following:
Program type already present: android.support.v4.app.INotificationSideChannel
Here are the dependencies I have added so far to my pubspec.yaml:
pdf: any
printing: any
path_provider: any
shared_preferences: any
built_value: any
built_collection: any
after_layout: any
uuid:
image:
flutter_full_pdf_viewer:
The last entry causes this problem. Since I only used eclipse and GWT for years, I don't know gradle enough to know how to find the conflict.

BTW - using flutterw wrapper with latest flutter (androidX)
environment:
sdk: ">=2.1.0 <3.0.0"

Found a solution: followed steps 1 and 2 of this:
https://stackoverflow.com/questions/49886597/multidex-issue-with-flutter/54680454#54680454
Didn't go any further, and my apk installed ok. phew.


Unauthenticated user cannot access the site.

Thank you for provided tutorial, it is very useful.
I need to enhance the login-only-user permission for my site using the provided sample.
I have developed the following class for this purpose:
class LoginWithAccessTokenMixin:
    """
    Check if user authenticated with access token. If the user is not, redirect to login page.
    """
    login_url = "/"

    def dispatch(self, request, *args, **kwargs):
        """
        Extend behavior of parent class method.

        Try to receive session's access token. If user is authenticated and token exists, display view.
        If token doesnt' exist, function get_token raises IndexError and method redirects user to sign in page.
        """
        try:
            self.access_token = get_token(request)
            return super().dispatch(request, *args, **kwargs)
        except IndexError:
            return HttpResponseRedirect(self.login_url)

Now every view in project inherit from this class. From manual testing it looks fine and not authenticated user is redirected to login page of Microsoft.
Could you, please, advise if it is secure enough or some additional functionality should be implemented?
Thank you in advance.

@Nicko-13 sorry for the delay in responding. As you say, the code works. As to if it's "secure enough", only you can make that determination, depending on your requirements and scenario.


embeds_one does not work with read_after_writes

Environment

Elixir version (elixir -v): 1.4.2
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): 9.6.1
Ecto version (mix deps): 2.1.4
Database adapter and version (mix deps): postgres 0.13.2
Operating system: 10.12.4

Current behavior
embeds_one does not work with read_after_writes. I have database level defaults for my JSONB field, and Repo.insert() returns nil for my privacy field.
invalid option :read_after_writes for embeds_one/3
embeds_one :privacy, Privacy, read_after_writes: true, primary_key: false, on_replace: :update do
  field :posts, :string
  field :profile, :string
end

As the error says, we currently do not allow this option. If you are interested on this, I would recommend trying to send a pull request, as this feature is low priority for us. If you have any questions, please let us know!


One-Click submit + Farm specific Workfiles

Change version 3.15.8-nightly.1-h0028  to 3.15.8-nightly.1-h0029


Output expectation

It would be great if there were some output samples in the repository.
To clarify, I'm referring to what users should anticipate seeing after running the code in each step or example.
For instance, within the sensitivity folder, OGI and MGL folders were generated after the first run of LDAR-Sim. Both directories are empty in my situation. So, I'm not sure if this is what I should expect or if I missed something important in these two directories. If both folders are expected to be empty, it's probably best not to create them.
Please disregard this issue if the comment is invalid.

Hi Sina - thanks for the suggestion. There must be another issue, because LDAR-Sim doesn't create empty folders. Please check out V2, you might have more luck. Best, Thomas
https://github.com/LDAR-Sim/LDAR_Sim


 So this PR replaces that one.
Update plugin creators guide for PF4J functionality added in 1.19
Created folder for plugin creators guide since the single page was getting too long; this will also allow for more pages if we decide to walkthrough the other plugin examples
Moved walkthrough of pf4jStagePlugin to new guide
Because we'd like to get this merged for Gardening Days, I added "Help us improve this section by submitting a pull request!" to some sections. If that's not OK, I can remove those sections and add them back later. Same applies to the Project Configuration page.
Note: merging this PR will break a link in https://blog.spinnaker.io/cant-go-outside-dip-your-toes-in-the-spinnaker-plugins-pool-1076f74003b
Co-authored by the Armory plugins team and Cameron Fieber (cfieber)

Thanks @aimeeu. Rebase hell is no fun so definitely understand why this one was opened instead. I'll go ahead and merge this since Ros got pinged to update the blog post in Slack.


Switch to the SLE BCI images

Thanks for the review @arbulu89! Unfortunately we have nothing really comparable to the distroless container. The smallest image that we have is the micro image (registry.suse.com/bci/micro:15.3), which comes only with the barest minimum required to run bash (no rpm, no zypper).

bci/micro container is the equivalent to google distroless:base container (glibc / openssl / passwd).

Should this be updated to the new nodejs16 image that was just released?

Andreas Jaeger @.***> writes:

Should this be updated to the new nodejs16 image that was just released?

Done!

Andreas Jaeger @.***> writes:
Should this be updated to the new nodejs16 image that was just released?
Done!

Hey @dcermak ,

Andreas Jaeger @.***> writes:
Should this be updated to the new nodejs16 image that was just released?
Done!

You're fast ;) Thanks!


refactor: useDashboard

Update default photos, improve code, and add new styles

Updated default photos to enhance visual consistency.
Refactored and improved code for better performance and readability.
Added new styles to enhance the user interface and overall design.

Very nice Sil!


Install Activiti using Salt

https://www.kbsoftware.co.uk/crm/ticket/1945/

Do you mean 1024m is too high?  I did try 512m and I kept getting out of memory errors.
We have now removed activiti-app, so perhaps 512m will work?

Yes, I was thinking as the activiti app war is twice the size of the
activiti-rest war so presumably it will need less memory by only have one
webapp.
Interestingly Activiti runs fine on my laptop with the default setting of
JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC" for
tomcat 8.  Though that is using the h2 database rather than postgresql.
Malcolm
On 28 November 2016 at 13:38, Patrick Kimber<EMAIL_ADDRESS>wrote:

Do you mean 1024m is too high? I did try 512m and I kept getting out of
memory errors.
We have now removed activiti-app, so perhaps 512m will work?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pkimber/salt/pull/5#issuecomment-263273067, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGBQBEeH48YKtVIYzuSCd5Wd8-GkMJHgks5rCtlLgaJpZM4K8hET
.

Hi @mdinsmore
I did that change, but it seems to have killed the server.  I can only get the site working by re-starting uwsgi, but it all stops working once I access Activiti.
I will investigate further later...
Pat

Hi @mdinsmore
It is all working again now.
Are you happy to merge this pull request?
Thank you,
Pat

Ok I'll reply to this one...  Glad you got it working without my
suggestions!
I've merged
Do you know why it was not working after you made the change?
Malcolm
On 29 November 2016 at 10:09, Patrick Kimber<EMAIL_ADDRESS>wrote:

Hi @mdinsmore https://github.com/mdinsmore
It is all working again now.
Are you happy to merge this pull request?
Thank you,
Pat
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pkimber/salt/pull/5#issuecomment-263529438, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGBQBJNPmGcrOFN1ZKUKwth-niu-PsApks5rC_nygaJpZM4K8hET
.

@mdinsmore  I am confused.  I did everything you suggested (unless I missed something).
I don't know why it suddenly started working.  In my mind, it is because Tomcat takes a very long time to extract the massive war file.
I can probably reproduce the issue if you want to look at it.

You're right to be confused, I didn't explain myself well - I was replying
to your email (where you'd said it was not working) with some suggestions
when I noticed the new email where you said it was now working - it all
made sense in my head!!
On 29 November 2016 at 10:18, Patrick Kimber<EMAIL_ADDRESS>wrote:

@mdinsmore https://github.com/mdinsmore I am confused. I did everything
you suggested (unless I missed something).
I don't know why it suddenly started working. In my mind, it is because
Tomcat takes a very long time to extract the massive war file.
I can probably reproduce the issue if you want to look at it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pkimber/salt/pull/5#issuecomment-263531328, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGBQBJsrSUXHQAWxgQzz8BwGuAoxogjDks5rC_vtgaJpZM4K8hET
.

@mdinsmore Thank you for your help.  Your suggestions worked, thank you.


Complete rewrite of reference frames.

This is a fundamental rewrite of how rust backend handles frame of references.
There is no longer an Enum which defines possible frames, frame information is now embedded in the type information.
This helps with a few things:

Less data to carry around (not a lot, but everything helps)
Some conversions used to be fallible, now all frame conversions are infallible.
NonInertialFrames are now their own Type, and support for them has been restricted to where it belongs.
Vectors now exist in the Rust similar to the python, these Vectors carry Frame type information.

Current testing shows a general slight speed improvements, I would imaging primarily coming from making everything infallible.

I want to revisit this at a later time, this is a really nice structural change, but a large one.


getting "Error: not an editor command" when using the plugin commands

Hi, when trying to load the plugin I get the error:

E492: Not an editor command

So this is something with loading of the plugin - not sure why though, not having problems with any other plugins (including another vim instead of nvim plugin)
this is the how I load it, inside a lua table with some other plugins as well - using Lazy:
{'andrewradev/simple_bookmarks.vim',
    -- config = function()
    -- require('simple_bookmarks.vim').setup {
    -- }
    -- end
    },

Lazy have installed the plugin, so it's the loading that's not happening, as the error also alludes to. I'm fearing this is a simple question my me still learning nvim and lua, something I'm not getting here? Tried a couple of things like loading it like this as well:
vim.cmd[[
lua require'simple_bookmarks.vim'.setup {}
]]

but that's not working either.

Hmm well I use the commands that start with Bookmark, from the README:
nnoremap <leader>ba :BookmarkAdd<space>
nnoremap <leader>bg :BookmarkGo<space>
nnoremap <leader>bd :BookmarkDel<space>
nnoremap <leader>bq :BookmarkQf<cr>

those are the right ones, aren’t they?
Allright -  I’ll ask on the neovim subreddit and see, if there is something about loading vim plugins I have missed, I'll post it here.

Those are the right commands, yes, so it shouldn't be the problem. It might be a good idea to open a github issue to request instructions for vimscript plugins if there are any special ones.


feat: introduce maxscale

With the release of the mariadb operator v0.25.0 maxscale was introduced to resolve issues with multi-master deployments, enhance scale, and make better use of nodes in the environment. This change creates the maxscale resources and converts our standard deployment systems to use maxscale as the point of ingress.
Specific feature we're interested in

point to an existing MaxScale instance. Doing this will delegate tasks
such as primary failover to MaxScale.

Docs: https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/MAXSCALE.md
Related: https://github.com/mariadb-operator/mariadb-operator/releases/tag/v0.0.26

All max scale services have been deployed to the DFW environment and are currently operating normally.


chore: updated version name to 1.7.0

Fixes #649

Why delete all other changelogs? And ensure that changelog is within 500 character limit


Not working in release apk

Hi!
I have integrate this plugin it is working fine in debug android build but in release mode it's callback not working... If want to join chat the invoked method does not return any value if i come back from chat screen its show exception like Platform Exception.
Plz suggest something.
Thanks.

I assume you are trying on android. If it is then you have to add signalr class to proguard.

@AyonAB thanks for your reply... It's worked in android. Can you suggest for iOS build ? I am facing same issue.

Try out the new pre-release from pub.


Add Python 3.13 to list of allowed Python versions

Summary
I believe we're already "Python 3.13-ready"? The main Ruff-impacting change I see in https://docs.python.org/3.13/whatsnew/3.13.html is PEP 696 which Jelle added in https://github.com/astral-sh/ruff/pull/11120.

I guess one other thing we could do is update UP035 to emit a diagnostic if --target-version=py313 has been selected and a user imports typing.TypeIs, warnings.deprecated, typing.ReadOnly, typing.NoDefault typing.get_protocol_members or typing.is_protocol from typing_extensions rather than typing

Makes sense, mind filing an issue (or PRing it)? :)

Makes sense, mind filing an issue (or PRing it)? :)

#11413


otherwise() by state name

I searched through the first few pages after searching the issues to see if anyone else has thought about this.
I would like to otherwise() to a state by the name of that state, not the url. I think I'll spend some time seeing how feasible it is to implement.

+1

+1


[bug] How do you dynamically observe files in a directory and log a new file as it appears

Describe the bug
I'm new to rust, and the feature I want to implement is to watch the folder under "D:/ working directory /tools" and whenever a new file appears, return a line of text to the front-end textarea with id=log_content.
But my code is not doing my job correctly. It just outputs a log line when the program runs. How can I change that?
(The backend uses rust+tauri,Front-end html+css+js)
The code is as follows：
1.The get_log function:

2.discoroboy.html:

Or is there another function I can use to listen to a directory and display a message to textarea as soon as there are new files?
Reproduction
No response
Expected behavior
No response
Platform and versions
[package]
name = "tauri-app"
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = { version = "1.2.0", features = [] }

[dependencies]
encoding_rs='0.8.33'
tauri = { version = "1.4.0", features = ["fs-all", "http-all", "shell-open", "system-tray"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = {version = "0.11",features = ["json"] }
tokio = {version = "1",  features = ["full"] }
diesel = {version = "2.0.3", features = ["sqlite"] }
xml-rs = { version = "0.8.4"}
chrono = "0.4"
notify = "6.1.0"
hotwatch = "0.5.0"
tracing = "0.1"
log="0.4.19"
[features]
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]

Stack trace
No response
Additional context
No response

So, instead of using println in the watcher (in match res) you can use tauri events to send the path to the frontend. You of course have to also listen to them on the js side (shown in the linked guide) and then update the textarea from that.

On 30 Oct 2023 5:58 pm, Rookie @.***> wrote:
Describe the bug
I'm new to rust, and the feature I want to implement is to watch the folder under "D:/ working directory /tools" and whenever a new file appears, return a line of text to the front-end textarea with id=log_content.
But my code is not doing my job correctly. It just outputs a log line when the program runs. How can I change that?
(The backend uses rust+tauri,Front-end html+css+js)
The code is as follows：
1.The get_log function:
2.discoroboy.html:
Or is there another function I can use to listen to a directory and display a message to textarea as soon as there are new files?
Reproduction
No response
Expected behavior
No response
Platform and versions
[package]
name = "tauri-app"
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
edition = "2021"
See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.2.0", features = [] }
[dependencies]
encoding_rs='0.8.33'
tauri = { version = "1.4.0", features = ["fs-all", "http-all", "shell-open", "system-tray"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = {version = "0.11",features = ["json"] }
tokio = {version = "1",  features = ["full"] }
diesel = {version = "2.0.3", features = ["sqlite"] }
xml-rs = { version = "0.8.4"}
chrono = "0.4"
notify = "6.1.0"
hotwatch = "0.5.0"
tracing = "0.1"
log="0.4.19"
[features]
this feature is used for production builds or when devPath points to the filesystem
DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]
Stack trace
No response
Additional context
No response
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

So, instead of using println in the watcher (in match res) you can use tauri events to send the path to the frontend. You of course have to also listen to them on the js side (shown in the linked guide) and then update the textarea from that.

how to use tauri events to send the path to the frontend.？

So, instead of using println in the watcher (in match res) you can use tauri events to send the path to the frontend. You of course have to also listen to them on the js side (shown in the linked guide) and then update the textarea from that.

How can I use tauri events to send the path to the frontend so that I can listen for changes in the path in real time？

You really just have to replace that println line with a call to emit as shown in the guide. Here's an example from our fs-watch plugin: https://github.com/tauri-apps/plugins-workspace/blob/v1/plugins/fs-watch/src/lib.rs#L53


Out of date

Screen shots appear out of date. Many fields in many sections have now become compulsory with no clues on suggested defaults, so, Could do with more 'i' buttons to link directly to this doco page to make configuration experience even better.

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

ID: 84b26750-880c-8f14-1628-436293de915e
Version Independent ID: 518b727f-79e8-b5c2-bcb3-ff4de3444c6f
Content: Configure Azure Multi-Factor Authentication - Azure Active Directory
Content Source: articles/active-directory/authentication/howto-mfa-mfasettings.md
Service: active-directory
Sub-service: authentication
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@SvenBell
Thanks for your feedback! I have assigned this issue to the author who will investigate and update as appropriate.

Feel free to provide this product feedback using the "This product" link at the bottom of the document. Screenshots are still current as presented. Doc is accurate as written. #please-close


icons

icons

custom icons
react-icons?
consolidate with current icons

drop a set of custom icons made by Richard Schumann -https://www.figma.com/community/file/986322091716622056/fusion---Free-Iconset
merge RG custom illustration icons to figma
Agree to use https://react-icons.github.io/react-icons/icons?name=fa for any additional ones

Moving the fusion icons to its own issue #36


Merge Direct inverse to master branch

Direct inverse allows computation of the magnetic moments without the explicit inverse matrix, saving time and memory space.
This option has a separate test in test_inversion.py. Errors are of the same size as the sp_pinv option.

Hi Frenk, can you add the **method_kwargs to the slin.lstsq(self.Q, Bz_Data) function? Line 382. That way you can specify more options to the solver

I have added method_kwargs to the direct inverse. I think it is ready to be merged


Create lint groups

See the project board for a definitive list, along with what lints go in what categories. As of writing this, the categories are:

Correctness
Suspicious
Complexity
Performance
Style
Restriction
Nursery

(They're essentially the same as Clippy's lint groups!)

This can be done with LintStore::register_group(). This will probably require some additional metadata to live alongside Lint definitions, so we may need to define a custom declare_tool_lint! macro. See register_categories() for how Clippy does this.


WIP(DO NOT MERGE): [sw] Add devicetree abstractions and APIs for multi-top support

This PR is primarily for discussion. It shows how devicetrees and Zephyr's APIs could be used to provide an abstraction layer for querying top-specific details about the hardware.
Note: Even though this PR would make available methods for sharing test and testutils code, it does not mean top-specific tests or top_earlgrey.h would go away. The goal is to enable sharing a broad subset of tests, and this round focuses on base addresses, interrupts, and pinmux mappings.
The commits are grouped by functional addition, in case that helps with viewing. The last one shows ways the APIs could work in (though we might want some a more targeted macro layer to reduce verbosity).
Here's roughly how the flow works:

topgen would generate a device tree file
For each platform or execution environment, a developer would manually add the top-level devicetree, which would #include the base tree from topgen.
cpp (the c preprocessor) would resolve any C-style includes and perform macro substitution, to spit out a single DTS (device tree source) file
Zephyr's scripts/dts/gen_defines.py script would run against the pre-processed DTS and produce a devicetree_generated.h

devicetree_generated.h would become part of the standard includes for a test execution environment

Tests and testutils can then use Zephyr's Generic DT APIs (which are only macros and #include <devicetree_generated.h>)
The "calling" code would #include <zephyr/devicetree.h>

Currently, the modeled flow would treat each execution environment (CW310 vs. CW340 vs. Verilator vs. DV) as being a completely separate platform, since they'd each have their own pin map. That could potentially go a different route, though! Not everything has been figured out yet.

Slotted the device tree headers into execution environment's libraries. (Made lib into the plural libs for the exec_env definition to accommodate.)
Now some targets don't need to explicitly depend on a top--The execution environment machinery will take care of providing the correct header.

Looks like LLD is broken and stops the ROM build. It claims that the rom memory is overflowing, but the map and section tables say otherwise:
Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .vectors      00000180  00008000  00008000  00001000  2**8
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .crt          00000680  00008180  00008180  00001180  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .text         00005e30  00008800  00008800  00001800  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  3 .shutdown     0000031c  0000e630  0000e630  00007630  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .rodata       000012cc  0000e960  0000e960  00007960  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .static_critical 00001fe8  10000000  10000000  00009000  2**2
                  ALLOC
  6 .data         00000000  10001fe8  10001fe8  00009000  2**0
                  ALLOC
  7 .bss          000004a0  10001fe8  10001fe8  00009000  2**3
                  ALLOC
  8 .chip_info    0000000c  0000ff80  0000ff80  00009f80  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .logs.fields  00000000  00000000  00000000  00009f8c  2**0
                  CONTENTS, READONLY
 10 .riscv.attributes 00000042  00000000  00000000  000474a5  2**0
                  CONTENTS, READONLY
 11 .ot.status_create_record 00000000  00000000  00000000  000474e7  2**0
                  CONTENTS, READONLY

Looks like LLD is broken and stops the ROM build. It claims that the rom memory is overflowing, but the map and section tables say otherwise:

I think @nbdd0121 might have run into this issue where LLD checks the size before relaxation so it might actually fit but it errors out too early.

It seems like this would involve too much interaction with the C preprocessor, which is a cumbersome tool. Retry with auto-generated code in #20320


feat(common_awsim_labs_sensor_launch): distortion corrector add new param

Description

https://github.com/autowarefoundation/autoware.universe/pull/8380
add a new parameter for distortion correction node, thus common sensor launch also needs to update the parameter

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[ ] I've confirmed the contribution guidelines.
[ ] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[x] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@xmfcx could you reveiw this, thanks!

@xmfcx seems that pre-commit failed on this repository

Sorry it's this one:

https://github.com/autowarefoundation/autoware.universe/pull/8380

I've approved this.
First universe PR should be merged.
Then we can merge these.

@xmfcx Universe's PR is merged so we can merge this one :)


让Qwen 14B来评价回复质量好坏，它能担此重任吗

We would like to request your feedback on the performance of two AI assistants in response to the user question displayed above. The user asks the question on observing an image. For your reference, the visual content in the image is represented with caption describing the same image.
Please rate the helpfulness, relevance, accuracy, level of details of their responses. Each assistant receives an overall score on a scale of 1 to 10, where a higher score indicates better overall performance.
Please first output a single line containing only two values indicating the scores for Assistant 1 and 2, respectively. The two scores are separated by a space. In the subsequent line, please provide a comprehensive explanation of your evaluation, avoiding any potential bias and ensuring that the order in which the responses were presented does not affect your judgment.

This prompt is borrowed from LLaVA-Med, it is used for prompting GPT-4, here I only use this as a case as I don't have enough money and token to prompt GPT-4.


Best Practice - how to replace a mapped endpoint response?

I was wondering if you have the best practice for replacing an already mapped endpoint.
I have endpoints mapped as such (just an example):
val getSettings: MatchableCall
        get() = whenRequested(allOf(
                isGET(),
                pathStartsWith("/api/v2/"),
                pathEndsWithIgnoringQueryParams("settings.json")
        ))

I then have an initDefaultMocks function that maps endpoints with default responses. See below:
fun initDefaultMocks() {
        postOauthMobile.thenReturnEmpty(200)
        getSettings.thenReturnEmpty(200)
        getUser.thenReturnEmpty(200)
        }

What that means is that sometimes I need to remove the mock and add a different one (unique cases with their own mocks).
What is the best way to replace that endpoint mock? Ideally I'd like to be able to provide an endpoint matcher and remove/replace the response for that 🤔

I tried the following:
fun updateEndpointResponse(oldMock: MatchableCall, newMockedResponse: String) {
        RESTMockServer.replaceMatchableCall(oldMock, oldMock.thenReturnString(newMockedResponse))
    }

But I get the "There are more than one response matching this request:". Something I guess could work if requestMatcher was public and not package level.
fun updateEndpointResponse(oldMock: MatchableCall, newMockedResponse: String) {
        RESTMockServer.replaceMatchableCall(oldMock, oldMock.requestMatcher.thenReturnString(newMockedResponse))
    }

keep in mind that all methods, like thenReturn* return the MatchableCall that you should store somewhere in order to be able to replace them with RESTMockServer.replaceMatchableCall. something like:
MatchableCall oauthMobileCall;
MatchableCall settingsCall;
MatchableCall userCall;
fun initDefaultMocks() {
       oauthMobileCall = postOauthMobile.thenReturnEmpty(200)
        settingsCall = getSettings.thenReturnEmpty(200)
        userCall = getUser.thenReturnEmpty(200)
        }
...

fun someFunction() {
    RESTMockServer.replaceMatchableCall(oauthMobileCall, postOauthMobile.thenReturnString(newOauthResponse))

    RESTMockServer.replaceMatchableCall(settingsCall, postOauthMobile.thenReturnString(newSettingsResponse))

    RESTMockServer.replaceMatchableCall(settingsCall, postOauthMobile.thenReturnString(newUserResponse))
}

I agree this could be improved and will take a look into it in one of the future releasess

closing the issue for now as the problem is solved. I'm working on a new version of RESTMock, hopefully in Kotlin, which will have a little bit clearer APIs


Local authentication plugin

I would like to link Saltcorn to my Active Directory but can't use the standard ldap plugin. Need to specify the CA certificate. I took the ldap auth module code and modifued it and installed as a local plugin successfully. However Saltcorn is not recognizing it as an authentication plugin. The module  is exporting authentication. Is there some limitation for locally installed plugins that they can't be used for authentication?

Auth plugins works only if installed in root (aka public) tenant. Than you can install and use it to other tenants also.

Hi, I'm on version 0.9.1-beta.8 with Nodejs v18.17.1.
I cant authenticate correctly in root tenant but the only login page that is shown in the "childs" is the default (email/password).
The plugin it's not shown in children's module section. Maybe I'm missing some installation steps?

You still meed to install and configure plugin in every tenant.

But how? I think it's no documented in saltcorn's wiki... And the plugin it's only shown in main (root) tenant...


[spaceship] add basic support for retrieving TestFlight Feedback screenshots via ConnectAPI

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Adds basic support for retrieving TestFlight Feedback (screenshots, comments, etc.) with regards to https://github.com/fastlane/fastlane/issues/15771
⚠Even though this uses the App Store Connect API through ConnectAPI, this is not a documented and public feature of the API.
Testing Steps
lane :connect_feedback do
  fastlane_require 'spaceship'

  Spaceship::Tunes.login
  Spaceship::Tunes.select_team

  # Gets app
  app = Spaceship::ConnectAPI::App.find(ENV["TEST_APP_BUNDLE"])

  # Gets feedback for an app (default includes screenshots and tester info)
  feedbacks = app.get_beta_feedback

  # Iterate over feedbacks
  feedbacks.each do |feedback|
    puts ""
    puts "comment: #{feedback.comment}"
    puts "name: #{feedback.tester.first_name} #{feedback.tester.last_name}"
    puts "email: #{feedback.tester.email}"
    puts "build: #{feedback.build.version}"

    # Iterate over feedback screenshots
    feedback.screenshots.each do |screenshot|

      # screenshot.image_assets is an array of different resolults of a screenshots
      image_asset = screenshot.image_assets.first

      puts "\turl: #{image_asset["url"]}"
      puts "\twidth: #{image_asset["width"]}"
      puts "\theight: #{image_asset["height"]}"
    end
  end
end

[21:32:34]: Driving the lane 'connect_feedback'
[21:32:42]:
[21:32:42]:comment: And more feedback
[21:32:42]:name: Josh Holtz
[21:32:42]:email<EMAIL_ADDRESS>[21:32:42]:build:<PHONE_NUMBER>
[21:32:42]:
[21:32:42]:comment: Oohhhhh feedback!!!!
[21:32:42]:name: Josh Holtz
[21:32:42]:email<EMAIL_ADDRESS>[21:32:42]:build:<PHONE_NUMBER>
[21:32:42]:     url: https://tf-feedback.itunes.apple.com/blahblahblah
[21:32:42]:     width: 3024
[21:32:42]:     height: 4032

@googlebot I consent.

@max-ott Updated this with some tests, model helpers, and new screenshot model. Do you mind taking a look when you have time? 😊


Merge Generators into Base

For simplicity, I think backpack/base should include all generators functionality.
It's never been used outside it anyway.
OR
We should require it and install it by default with backpack/base, once the installer is ready.
But that might take some time.
I vote include it in Base. @cristiantone , what say you?

On second thought, maybe Generators should only be available in the development environment... just like laracasts/generators

What about adding it as "require-dev" to base's composer.json?

That's an excellent idea. Thank you!
We then just need to autoload it in BaseServiceProvider if the environment is not production, so that the developer doesn't have to worry about it.  So we save 2 installation steps, in one move. Nice! Pretty excited about this, thank you :-)

Also, I vote we require laracasts/generators in backpack/generators.

What does laracasts/generators get used for currently?

@OwenMelbz the db migration. It's the first command in the "do it really fast" process.

Fixed. Starting with Backpack\Base 0.7.9:

backpack\base has a "require-dev" for backpack\generators;
backpack\generators has a "require" for laracasts\generators;
if the environment is "local", BaseServiceProvider autoloads both classes;

This can be easily changed down the line, if we decide there's a better option.
Cheers!

[keep writing here if you have comments/alternatives, please]

Ok. So. Sadly, this can't be done. The require-dev provision only works on the root composer.json, just like scripts. It won't work for installed packages. Composer will just ignore their require-dev.
I'd be very very happy to find a way around this, but I've scoured the internet and found none.
So we need to manually install the generators. What I have done to ease the pain a little bit is autoload the generators (both backpack and laracasts) in BaseServiceProvider if the classes exist. This turns the installation from a 2-step process to 1-step:
composer require backpack/generators --dev
composer require laracasta/generators --dev


Enable semi-join optimization for left-deep trees through bloom filters

This PR adds support for semi-join optimization for left-deep trees through the use of bloom filters. The motivation behind this PR is that often the bottom-most join in a left-deep tree returns maximum number of tuples from the fact table, a majority of which are then discarded by joins up the tree. If somehow, the selectivity information from up the tree could be passed down to the bottom-most operators, we could avoid the cost of potentially passing and storing huge number of unnecessary tuples during query execution.
Bloom filters are lightweight data structures that can help us push down this selectivity information down the operator tree. Therefore, the key idea is to delay the processing of the bottom-most probe operator on the fact table, until bloom filters on all the build operators on all the dimension tables are built. Then pass the bloom filters sideways to this probe operator, which can use these bloom filters to weed out the unnecessary tuples.
This feature is controlled by GFLAGs and is turned off by default. Pass the --optimize_joins flag from the command-line to explicitly enable this optimization.
On a typical left-deep join query like SSB Query 4, this optimization reduces the query execution time by almost 40%.

@hbdeshmukh  Thanks Harshad for the comments. I have addressed them now. Sure, I will be there around in the afternoon at the department. We can discuss it the optimization function.

I and @saketj had a discussion. Saket will improve the documentation and variable names for better clarity. We also had a discussion on how to write tests for this code.

Sounds good @hbdeshmukh. Thanks!
Thanks @saketj -- This is an awesome feature!

@saketj I was wondering, as an alternative to add a new execution_heuristics_, we just treat this as a new method called optimizeHashJoin in the existing ExecutionGeneerator.

@hbdeshmukh and I had discussion on how we can reduce lock contention between various worker threads during bloom filter insertion. An improved locking mechanism is now implemented in the latest commit.

@zuyu Thanks Zuyu for the comments. I am working on incorporating them into this PR.
As for ExecutionHeuristics class, I can foresee it as something that will grow to incorporate many more complex optimization logic, along with its own data structures. For example, the logic for identification of left-deep trees is currently simple and ignores some complicated scenarios. This will be work of subsequent PRs, I guess. Also, setting bloom filter properties based on the relation statistics is  another component that has been introduced.

@zuyu @hbdeshmukh  I have addressed all of the comments now. I have also added the unit tests for this PR at query_optimizer/tests/ExecutionHeuristics_unittest.cpp. Please let me know if this all looks good and if we can merge.
There is one more incremental feature that builds on top of this PR and it adds the ability to push the bloom filters even further down the tree to a selection operator preceding a probe. I have the changes in my local copy and I am planning to immediately open that PR, once this gets merged. Thanks.

FYI, I cancelled the Travis build.

LGTM, merging.


fix(Relational queries): support tables sharing the same name across schemas

Fix #1964
This is modifying the  extractTablesRelationalConfig function to take database schemas into account.
The patch inside this PR is making the following example works:
import { relations } from 'drizzle-orm';
import { pgTable, pgSchema, uuid, text } from 'drizzle-orm/pg-core';

// PUBLIC SCHEMA
export const organisations = pgTable('organisations', {
  id: uuid('id').primaryKey().notNull(),
  name: text('name').notNull(),
});

export const users = pgTable('users', {
  id: uuid('id').primaryKey().notNull(),
  email: text('email').notNull(),
  organisation_id: uuid('organisation_id').references(() => organisations.id, {
    onDelete: 'cascade',
    onUpdate: 'restrict',
  }),
});

export const usersRelations = relations(users, ({ one }) => ({
  organisation: one(organisations, {
    fields: [users.organisation_id],
    references: [organisations.id],
  }),
}));

export const organisationsRelations = relations(organisations, ({ many }) => ({
  users: many(users),
}));

// SLACK_INTEGRATION SCHEMA
export const slack_integration = pgSchema('slack_integration');

export const slack_integration_users = slack_integration.table('users', {
  id: text('id').primaryKey().notNull(),
  email: text('email').notNull(),
  user_id: uuid('user_id')
    .notNull()
    .references(() => users.id, { onDelete: 'set null', onUpdate: 'set null' }),
});

const schema = {
  organisations,
  users,
  slack_integration_users, // this one is prefixed to avoid overwriting the public.users table
  usersRelations,
  organisationsRelations,
};

const db = drizzle(client, { schema });

I opened an PR for this already. #1814. It goes a little deeper by fixing the type issues as well. It includes both type tests and integration tests. Please take a look and let me know if you think I missed something.

I opened an PR for this already. #1814. It goes a little deeper by fixing the type issues as well. It includes both type tests and integration tests. Please take a look and let me know if you think I missed something.

This is indeed much better than what I did! Looking forward to this being merged and released 🚀


Is there any loader for Microsoft OneNote like EverNoteLoader or ObsidianLoader

Feature request
Microsoft OneNote loader like EverNoteLoader or ObsidianLoader
Motivation
N/A
Your contribution
N/A

Agreed. I have several .one notebooks I would love to integrate.

Hi there, we're a small team of developers and we would like to work on this issue.

Hi there, we're a small team of developers and we would like to work on this issue.

How can we help?

Hi there, we're a small team of developers and we would like to work on this issue.

How can we help?

Hi dvanwag, we'd love to hear any suggestions and input that you have as our team works on developing this feature. We're first-time contributors here, so we appreciate any guidance from the community. At the moment, we've only just started delving into it, but we're currently looking at how we can use the OneNote API via an existing Python library for this.

Hi there, we're a small team of developers and we would like to work on this issue.

How can we help?

Hi dvanwag, we'd love to hear any suggestions and input that you have as our team works on developing this feature. We're first-time contributors here, so we appreciate any guidance from the community. At the moment, we've only just started delving into it, but we're currently looking at how we can use the OneNote API via an existing Python library for this.

The API is a good first step. The challenge with OneNote .one files may be they are updated in real time at the user makes and captures new notes, so there may need to be a request feature built into the call (I am not a developer by trade, so forgive me if I'm not articulating this correctly).
Microsoft also has their Graph app that may help pull in data, but I know very little how it works. If there is a way to drill down into Notebooks, Sections, and Pages to make queries AI can answer, I'd say that would be the sweet spot for so many users and would likely surpass the capabilities of Window's built in CoPilot.

Yes, I think @Dylan20XX Dylan20XX, @mail2mhossain, and I are happy with the new document loader for OneNote that can be found here: https://python.langchain.com/docs/integrations/document_loaders/microsoft_onenote.  Thank you so much to the community for helping us figure this out and deploy the loader for OneNote users!

@dosu-bot Hi, has anyone tried the langchain onenote loader (here) yet? It's simply not working for me. The url/webpage to give consent to appears as expected, however after pasting the resulting page url, the console shows this error:
Visit the following url to give consent:
https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id=...&response_type=code&scope=Notes.Read+offline_access+openid+profile
Paste the authenticated url here:

Traceback (most recent call last):
File "...\test_onenote_1\lc_onenote_2.py", line 15, in
documents = loader.load()
^^^^^^^^^^^^^
File "...\venv\Lib\site-packages\langchain_core\document_loaders\base.py", line 29, in load
return list(self.lazy_load())
^^^^^^^^^^^^^^^^^^^^^^
File "...\venv\Lib\site-packages\langchain_community\document_loaders\onenote.py", line 65, in lazy_load
self._auth()
File "...\venv\Lib\site-packages\langchain_community\document_loaders\onenote.py", line 164, in _auth
self.access_token = access_token_json["access_token"]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'
Process finished with exit code 1
Anyone has a clue?

Hi,
Is there any chance that oneNote loader will available for javascript? it would be really helpful

Hi @anandncode, were you able to open a feature request for this in the JS library?


How to solve the problem of loss NAN?

Hi,
I reprocess this code on SSv2 datatset. I follow the blr 0.1, and use 2 gpus with batchsize of 7 (the valid total batchsize is 14). But the loss is Nan when epoch is 14. How to solve this problem? Thanks~

Hi,
Which configuration do you use? Full-tuning baseline or AdaptFormer?

Hi，
I follow this configuration:
OMP_NUM_THREADS=1 python3 -m torch.distributed.launch
--nproc_per_node=2
--use_env main_video.py
--finetune /path/to/pre_trained/mae.pyth
--output_dir /path/to/output
--batch_size 7 --epochs 90 --blr 0.1 --weight_decay 0.0 --dist_eval
--data_path /path/to/SSV2 --data_set SSV2
--ffn_adapt

I am sorry I didn't experiment with your specific configuration. Reduce the learning rate and have a try.


Array is getting converted to object

The request:
              supertest(options.url)
                .get('/api/action')
                .expect(200)
                .query({
                  conditions:
                    [
                      { 'user' : user._id },
                      { 'type' : 14 },
                      { 'what' : 4 },
                    ]
                })

What the server gets:
{
  "conditions": {
    "user": "5592cc851f3febd016dae920",
    "type": "14",
    "what": "4"
  }
}

This is a problem with superagent, as that is what is actually making the query function.
Here are the current docs on query strings in superagent.


Support Color Mode + Hue Saturation

I'm using these professional film lights for home lighting. They have really high CRI and can support a huge number of colors.
The supported DMX profiles are listed here.
I'd like to use the D CCT GM HUE SAT profile, which supports expressing color temperature and hue + saturation. That way, I can set the color temperature of the light, or set a specific color.
Playing around with your code, if I add COLOR_MODE_HS to _supported_color_modes in DmxWhite, then in the dashboard home assistant UI, it allows me to specify the color either using color temperature, or hue and saturation. Depending on which one I use in the dashboard UI, I find the async_turn_on function being called either with one of these two sets of parameters:

{'hs_color': (248.0, 69.0)}
{'color_temp': 127, 'color_temp_kelvin': 7842}

Thus, this functionality is already supported by home assistant. I'd be nice to support it in artnet_led.
I was able to get the light to work with this config, but I can't specify colors:
        - channel: 1
          name: test_light
          type: color_temp
          min_temp: 1750K
          max_temp: 9910K
          channel_setup:
            - d
            - t
            - 0
            - 0
            - 0

Sure, I can do that. I'll build this into the RGB lights though; adding COLOR_MODE_HS to DmxWhite really just transforms it into what we call an rgbww light. So I'll just add letters to rgb, rgbw and rgbww to output hue and saturation.
What letter would you like for this? h is already taken sadly. :(

What about u for hue and U for saturation?
There's another problem using rgbww, then. There is no conversion between cold and warm white, and color temperature. That is, this line is not correct. Instead, rgbww_to_color_temperature needs to be called.

Added in v0.1.13, please test and report back.
rgbww_to_color_temperature converts cold/warm into the Kelvin scale, but we need a [0. 255] scale. The coldest temperature  0, means the warm white LED is also 0, so they're fully related.

This is my configuration:
        - channel: 1
          name: color_temp_light
          type: color_temp
          min_temp: 1750K
          max_temp: 9910K
          channel_setup:
            - d
            - t
            - 0
            - 0
            - 0
        - channel: 6
          name: rgbww_light
          type: rgbww
          min_temp: 1750K
          max_temp: 9910K
          channel_setup:
            - d
            - t
            - 0
            - u
            - U

Here's the test script:
alias: Test light
sequence:
  - service: light.turn_on
    data:
      kelvin: 3000
      brightness_pct: 50
    target:
      entity_id:
        - light.color_temp_light
        - light.rgbww_light
mode: single

The resulting Art-Net packets (in decimal) are:
128 39 00 00 00
128 65 00 00 00

The second number for each channel is the color temperature value. My setup uses the min_temp and max_temp setting such that 0 = 1750K and 255 = 9910K. So, each step = (9910 - 1750) / 255 = 32. 3000K corresponds to (3000 - 1750) / 32 = 39. Thus, the color_temp light is getting the right value, and the rgbww light is getting the wrong value.
This is debug that prints the arguments for each of the async_turn_on calls:
DmxRGBWW.async_turn_on({'brightness': 128, 'rgbww_color': (0, 0, 0, 65, 63)})
DmxWhite.async_turn_on({'color_temp': 333, 'color_temp_kelvin': 3000, 'brightness': 128})

The conversion happens here.
Following the calculation of color_temperature_to_rgbww(3000, 128, 1750, 9910):
max_mireds = color_temperature_kelvin_to_mired(min_kelvin) = 571
min_mireds = color_temperature_kelvin_to_mired(max_kelvin) = 100
temperature = color_temperature_kelvin_to_mired(temperature) = 333
mired_range = max_mireds - min_mireds = 471
cold = ((max_mireds - temperature) / mired_range) * brightness = 64.67940552016985
warm = brightness - cold = 63.32059447983015
return (0, 0, 0, round(cold), round(warm))

This is notably different from what is actually needed for the color temperature channel (at least for my LED):
temperature_range = max_kelvin - min_kelvin = 8160
color_temp_channel = ((temperature - min_kelvin) / temperature_range) * 255 = 39.0625
return round(color_temp_channel)

Using the formula from the DMX profiles PDF I linked to earlier for my bulb with DMX-Value = 39:
CCT = 1750 + 32*DMX-Value = 2998

Thus, using the value of cold_white for color temperature is not quite right (at least for my bulb).

Thanks for writing that all up! Managed to fix it in v0.1.14, please test. :)

Just finished testing your changes. Findings:

It looks like the meaning of t and T are swapped now, to the extent that the comment is no longer correct. When color_temp_kelvin is equal to min_kelvin, t gets a value of 255. The comment says 255 = cold. However, low color temperature is warm, not cold.
There's a larger design flaw with this approach that results in issues at low brightness values. Here are the results of my testing. At low brightness values, the color temperature is wildly off. These issues are pretty noticeable when dimming lights or when just trying to run at low brightness. I don't see a way to deal with the issue with the current design, though. With 2300K and 5 brightness, the async_turn_on method gets these arguments: {'brightness': 5, 'rgbww_color': (0, 0, 0, 1, 4)}. There is simply not enough precision to compute the right color temperature value. The more robust approach would be to specify color temperature in the list of supported color modes. That will result in the color temperature being passed without any lossy conversion.

One more thought: I think overall the most robust approach for this library is to avoid doing any conversion at all. Let all conversion happen in LightEntity library, instead.
Let the user specify the supported color mode from LightEntity (or multiple). Add a mapping from letter (like in your current design), to a method to extract a specific value from the kwargs.
E.g. for my light, I would specify supported color modes of COLOR_TEMP and HS. I can specify each value in a script and the Dmx library gets exactly what I specify. The only thing it needs to do is to convert into the range 0-255 for DMX.

Alright both should be fixed in v0.1.15. Thanks for testing so thoroughly! My staging environment isn't linked to physical lights, so didn't notice temperature being inverted.
I fully agree with your last thought, the architecture has grown a bit organically and isn't designed for what it's all doing now. Though I think some mapping will always be necessary (e.g. service call does HS, but light is defined in RGB), a layer of indirection and a more holistic approach in general towards the lights would much better. My dissatisfaction with the code is also the reason why I haven't submitted it to HACS' default repositories yet.
In my platform refactor project to include additional entities beyond just lights, I am rewriting it from the ground up. Party because I have to, party because of the above.

Hi Breina. The color temperature logic looks good now.
Thank you very much for adding these features. I'm overall impressed with how quickly you got to it. I don't have a whole lot of experience with open source, and I'm surprised that you are supporting this library very well.
I'm looking forward to the next versions. I do still recommend removing all color conversion logic from your library. An LED driver shouldn't do its own color conversion if it doesn't need to.


disable runtime checking without NODE_ENV=production

From @marwanhilmi's comment here https://github.com/gcanti/tcomb/issues/165
Is there a quick method to disable runtime checking without needing to run in NODE_ENV=production? We use NODE_ENV to toggle our config, ie NODE_ENV=staging so it would be nice to have another option to disable runtime checking without specifically checking for production. Perhaps its own env flag?

Perhaps its own env flag?

@marwanhilmi do you know any library doing that? And how? I'll do some research

@marwanhilmi I have a doubt: when you say "disable" you mean to override the default bahaviour of throwing an error (which is already doable overriding the function t.fail) or to strip out entirely the runtime checks from the build (example for perf reasons)?

I didn't know you can override the t.fail method but yes I did mean both. I agree on the point that =production should still work without breaking.
Could we just check an additional variable in same place as NODE_ENV checks? I haven't dug into the code but more than happy to poke around.

@marwanhilmi here my findings:
Quick fix (no code changes)
You can manually disable all checks overriding the t.fail function
// somewhere in your main...

import t from 'tcomb'

t.fail = () => {} // swallow all errors...

t.fail = (message) => console.error(message) // ... or just log to the console

ENV VARIABLES (code changes)
If the perf of tcomb is not acceptable in staging, we could add new env variables. Even so it's worth noting that other libraries, for example react, rely on NODE_ENV=production in order to boost their performance, so in staging you could end up with a suboptimal configuration despite the proposed additions.
In particular there are 2 possible reasons for perf degradation in tcomb:

runtime type checks (proposed variable name: TCOMB_DISABLE_CHECKS)
Object.freeze calls (proposed variable name: TCOMB_DISABLE_FREEZE)

Now, replacing all
if (process.env.NODE_ENV !== 'production') {
  ...runtime type check here...
}

...

if (process.env.NODE_ENV !== 'production') {
  Object.freeze(this);
}

with
if (process.env.NODE_ENV !== 'production' && !process.env.TCOMB_DISABLE_CHECKS) {
  ...runtime type check here...
}

...

if (process.env.NODE_ENV !== 'production' && !process.env.TCOMB_DISABLE_FREEZE) {
  Object.freeze(this);
}

should lead to the following outcomes:
# this ensure backward compatibility
NODE_ENV=production (regardless of TCOMB_DISABLE_CHECKS and TCOMB_DISABLE_FREEZE) :
checks: no
freeze: no

NODE_ENV=staging :
checks: yes
freeze: yes

NODE_ENV=staging && TCOMB_DISABLE_CHECKS=true :
checks: no
freeze: yes

NODE_ENV=staging && TCOMB_DISABLE_CHECKS=true && TCOMB_DISABLE_FREEZE=true :
checks: no
freeze: no

@marwanhilmi do you know any library doing that? I mean handling both NODE_ENV and a custom flag. And how? I'll do some research

@gcanti Babel has it's own ENV flag BABEL_ENV that is checked before NODE_ENV:
https://babeljs.io/docs/usage/babelrc/

Hi @rubengrill, thanks for the link.
Checking an additional variable is easy, in the case of tcomb I must to ensure that the dead code elimination feature of uglifyjs will be triggered. After some tests this also seems to work fine:
if ((process.env.TCOMB_ENV || process.env.NODE_ENV) !== 'production') {
  ...checks...
}

Example
NODE_ENV=staging
TCOMB_ENV=production

Result after the DefinePlugin (I'm using webpack for bundling)
if (false) {
  ...checks...
}

finally the UglifyJsPlugin will strip out the checks.

Update: all the techniques seem to work with browserify/envify but only if the envify's option purge is used https://github.com/hughsk/envify#purging-processenv

I've heard performance issues with frozen values are no longer relevant in newer browsers.
So one option is to remove these checks alltogether.
P.S.
Sorry – can't find an exact link / thread with that information.

I saw something about checks using process.env being slow in Node, because it is not a regular object? https://github.com/facebook/react/issues/812 Maybe something to keep in mind...
By the way, are you thinking of adding benchmarks to this repository? :)

Hi @nicolashery,

are you thinking of adding benchmarks to this repository?

A first attempt (yesterday I was playing with the benchmark lib):
https://github.com/gcanti/tcomb/blob/benchmark/perf/perf.js
(for what concerns perfs I'm a noob so any help is appreciated)

Thanks @gcanti! I'm also completely new to benchmarking, so afraid I won't be much help :-/ Maybe looking at existing examples might be useful (for instance https://github.com/marko-js/templating-benchmarks, they use matcha which should be similar).
I see you're benchmarking the build tcomb.min.js. I guess that works for the browser, but what about a Node environment? One benchmark could be run using NODE_ENV=production on the source code. But also see the issue I linked to in my last comment, about caching process.env.NODE_ENV to improve performance (since it's not a regular object and accessing it can be slow for performance-sensitive code).
I would also suggest running a benchmark with a bigger data structure? (closer to a "real" HTTP API response, for example: https://github.com/marko-js/templating-benchmarks/blob/master/templates/friends/data.js).

Have you considered memoization?
In any heavily tcomb'ed API, a single value may be checked many dozens of times by the exact same validation procedure. If nothing has changed, then this seems like it could lead to a lot of wasted cycles. Perhaps verification results for Object types could be cached in a WeakMap. This seems like a no-brainer if the object being checked is frozen.

@timoxley you need to open a separate issue for that. This issue has nothing to do with your proposal, although a good one. It will go unnoticed in this one. It is closed.


No eyedropper icon in LOD panel

🔍 Issue Description

No eyedropper icon in LOD panel never mind if this is a clean scene or an old file
🛠 Sollumz Version(s)
2.5
🖥 Blender Version(s)
4.2.3
🔄 Reproduction steps
nothing to do here the icons just does not appear
🎯 Expected Result
No response
⚠ Current Result
No eyedropper icon in LOD panel
📎 Attachments
No response

Yeah, that's expected after the changes to improve the LOD management.
Blender add-ons UI depends a lot on the underlying code structure, and since those properties are actually strings now, not pointers to meshes, Blender doesn't show the eyedropper.
It is possible to fix, but requires contributing to Blender and them accepting it, then should start to work after some new Blender release. I did a prototype a while ago, I should pick it up again.

Picked up my changes and made some more fixes. I opened PR to Blender, lets if they accept it: https://projects.blender.org/blender/blender/pulls/129430


[Feature request] Allow disk-based persistence to be completely disabled

Which service(blob, file, queue, table) does this issue concern?
all
Which version of the Azurite was used?
3.26.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
VS Code, npm
What's the Node.js version?
18.18.2
What problem was encountered?
Currently, there are two paths that are hard-coded to use disk-based persistence: LokiJS and extent storage. It would be great to enable an --inMemoryPersistence option that makes all data (including extents) stored only in memory.
Steps to reproduce the issue?
All 3 service types (blob, queue, table) use LokiJS which periodically saves to disk. Queue and Blob use extent storage on disk.
Have you found a mitigation/solution?
No

I've started a draft PR here: https://github.com/Azure/Azurite/pull/2228. Let me know if this is something you'd be interested in accepting! Most of the code changes were related to plumbing and documenting configs :)

Close as PR @2228 is merged, will in the next Azurite release, which target early/middle of Dec.


Working dummy example for custom LLM endpoint integration

How would a working dummy example work for the scenario of an own LLM like in this README.md https://github.com/explosion/spacy-llm/blob/main/usage_examples/README.md when running it with the proposed config file and adding the dummy RandomClassification.v1 I get this error:

Exception has occurred: AssertionError
exception: no description

from spacy_llm.registry import registry
import random
from typing import Iterable

@registry.llm_models("RandomClassification.v1")
def random_textcat(labels: str):
    labels = labels.split(",")
    def _classify(prompts: Iterable[str]) -> Iterable[str]:
        for _ in prompts:
            yield random.choice(labels)

    return _classify
...
[components.llm.task]
@llm_tasks = "spacy.TextCat.v1"
labels = LABEL1,LABEL2,LABEL3

[components.llm.model]
@llm_models = "RandomClassification.v1"
labels = ${components.llm.task.labels}  # Make sure to use the same label

Hi @borhenryk, can you provide your config and the entire script?


Transactions rollback does not work, even explicit

I was not able to make the code work (console app on .net 8, LiteDb.Async 0.1.7)
var db = new LiteDatabaseAsync("litedbDemo.db");

try
{
	var col = db.GetCollection<MyEntity>();
	await db.BeginTransactionAsync();
	await col.UpsertAsync(new MyEntity());
	throw new Exception("something goes wrong");
}
catch (Exception)
{
	await db.RollbackAsync();
}

whether await db.RollbackAsync(); executes or not, changes made with UpsertAsync stay there in the db.
The moment I made these operations sync (original LiteDb implementation) everything starts working as expected: you do not have to run db.Rollback() even, no changes go to db till the moment you commit the transaction

BeginTransactionAsync creates a new database object which contains the transaction. Try the following -
var db = new LiteDatabaseAsync("litedbDemo.db");

try
{
	var trans = await db.BeginTransactionAsync();
	var col = trans.GetCollection<MyEntity>();

	await col.UpsertAsync(new MyEntity());
	throw new Exception("something goes wrong");
}
catch (Exception)
{
	await trans.RollbackAsync();
}

var col = db.GetCollection<MyEntity>();

// col should not contain the new MyEntity entry added above.

You don't need to actually RollbackAsync just let trans fall out of scope.

Fixed in Version v0.1.18


Added doc for DoNotClearSuperAgent

Should resolve #160

Do you need more help with the rest of the doc?

Please help more with the rest of the doc if you have time. Thank you!!


Relax format restrictions on programFiles

programFiles field is meant for higher resolution identification of vulnerabilities to affected source code files, especially for open source projects. Currently format is restricted to an URI. This fails validation when simple filenames/paths are given. Often this results in CNA removing the info than
Suggestion is to remove the URI format restriction.
A side effect would be that we may have CNAs use different path separators (\ or /), but collecting higher resolution identification information is better than nothing.

I think the URI format restriction was removed during development of the 5.0 schema a few years ago, between v5.0.0-rc4 and v5.0.0-rc5.
https://github.com/CVEProject/cve-schema/blob/2aa608b6733cc2730a43901472ef0e706d0ef2b5/schema/v5.0/CVE_JSON_5.1_schema.json#L222-L232

I see that the test services instance accepts filenames without URI restriction. This can be closed.


new: basic CLI commands generation

Autogenerate CLI commands based on an elemental.ModelManager.
Usage
// Set up the cobra flags
ApoctlCmd.PersistentFlags().AddFlagSet(manipcli.ManipulatorFlagSet())
// Generate command
ApoctlCmd.AddCommand(manipcli.GenerateCobraCommand(gaia.Manager(), manipcli.ManipulatorMakerFromFlags()))

Remaining tasks

[x] Add missing commands (count, delete-many etc.)
[x] Support parent relationship
[x] Support templates
[x] Unit tests

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "a3s",
    "component": "backend",
    "pr-id": "1448",
    "commit-sha": "21ac8c2d37cdc13ca138351a884100fccd8aecec",
    "pipeline": "master"
  },
  {
    "project": "a3s",
    "component": "elemental",
    "pr-id": "114",
    "commit-sha": "e264f153acc24c5d6a5c94cdec5433341787284c",
    "pipeline": "master"
  },
  {
    "project": "a3s",
    "component": "manipulate",
    "pr-id": "161",
    "commit-sha": "1cd089f256896b775154b3b80b88ad2c0bfd689b",
    "pipeline": "master"
  }
]

/build


Fix issue #3

Background
The form of Hash {'key': 'value'} is not supported by Ruby 2.1.6 and down
What this PR does
Change the ussage in request_query.rb:20 to Authorization: 'Bearer ' + client.client_access_token,
Link to Issue
Fixes https://github.com/api-ai/api-ai-ruby/issues/3

Thank you!


Low hanging fruits, clean up and remove obsolete powershell implementations

Those ps1 files are not pinned, hence they are not used anymore.  It should be safe to remove them.

Looks good


nettest: check what relay candidates can be gathered

the nettest is actually missing a pretty basic test: what relay candidates can be gathered
Basically: if you use a turn server and don't get a turn/udp candidate, udp is blocked (or the turn server is down). Same for TCP.
I keep sending [a fiddle for this to customers but it might be actually better to integrate here.
@KaptenJansson we can talk about this when you're back. I just need to know where this would be best to integrate

The Network checks if it can connect to a turn server using TCP or UDP and get a relay UDP candidate. The Connectivity tests set up a datachannel and tries connect using the different candidate types but all being UDP.
I think it would make sense to add test for both cases, i.e. can we gather candidates vs can we connect using gathered candidates.

@fippo
It's not clear to me how this works.
I mean, reading tests, it says that udp is enabled only if it can connect to the udp turn server and get a relay candidate.
but if I simply block 19305 port it says that my udp is blocked.
this is not true, only that specific port is blocked, still my traffic would probably flow in another udp port even if the candidate is discovered by a tcp turn server, is that right?
Is that what you are saying?
Also, it is not automatic that if I get a candidate I will successfully use it to connect?
What might be the factors that prevent it to works?
Have a nice day!


Disabling test learning curve

The "vModel/test_model_selection.py::TestModelSelection::test_learning_curve" test has started failing constantly.
It is caused by a failing query on Vertica server. Here is the query and its returned error message:
INTERNAL, Message: Internal EE Error (11), Sqlstate: VX001, Detail: ptctx.projStorage, Hint: Please report this error to Vertica; try restating your query, Routine: DataSource, File: /data/jenkins/workspace/RE-ReleaseBuilds/RE-Laserbeam_2/server/vertica/EE/Processing/DataSource.cpp, Line: 134, Error Code: 3591, SQL: 'CREATE LOCAL TEMPORARY TABLE "_verticapy_tmp_table_v_vmart_0c00205e28c811ee9e29a113970a9e8f_" ON COMMIT PRESERVE ROWS AS SELECT * FROM (SELECT "fixed_acidity", "volatile_acidity", "citric_acid", "residual_sugar", "chlorides", "free_sulfur_dioxide", "total_sulfur_dioxide", "density", "pH", "sulphates", "alcohol", "quality", "good", "color" FROM (SELECT * FROM ( SELECT "fixed_acidity", "volatile_acidity", "citric_acid", "residual_sugar", "chlorides", "free_sulfur_dioxide", "total_sulfur_dioxide", "density", "pH", "sulphates", "alcohol", "quality", "good", "color", SEEDED_RANDOM(0) AS "__verticapy_random_6710987__" FROM "public"."winequality") VERTICAPY_SUBTABLE WHERE (__verticapy_random_6710987__ <= 0.1022448618359)) VERTICAPY_SUBTABLE) VERTICAPY_SUBTABLE WHERE SEEDED_RANDOM(8041970) > 0.342277051648125 ORDER BY "residual_sugar"'
I have simplified the failing query to the following so that we can report it for further investigation in Vertica DB.
SELECT fixed_acidity FROM (     SELECT * FROM     (         SELECT fixed_acidity, RANDOM() AS rand1 FROM public.winequality     ) Q1 WHERE rand1 < 0.1 ) Q2 WHERE RANDOM() > 0.2;
The above query fails with similar error message:
Internal EE Error (11), Sqlstate: VX001, Detail: ptctx.projStorage, Hint: Please report this error to Vertica; try restating your query, Routine: DataSource, File: /scratch_b/afard/server/vertica/EE/Processing/DataSource.cpp, Line: 134, Error Code: 3591, SQL: 'SELECT fixed_acidity FROM ( SELECT * FROM ( SELECT fixed_acidity, RANDOM() AS rand1 FROM public.winequality ) Q1 WHERE rand1 < 0.1 ) Q2 WHERE RANDOM() > 0.2'
We first need to figure out the Vertica release version on which the regression started.

@afard I see no modification here?

@afard I see no modification here?

Yes, I wanted to make sure that it fails on master before disabling the test.
If it fails, I disable the test and add explanation to the PR. Otherwise, I close the PR.
I expect it to fail as it fails on my local copy of master.

I merge this PR without code review. First, it is just skipping a test. Second, the test is failing on other branches blocking a proper workflow.


Avoid slightly bigger cells

Considering slightly bigger cells as not dangerous is a terrible mistake !  And I noticed small blobs often throw some mass at those slightly-bigger-than-you cells in order for them to eat you.
Proposed fix
There should be no tolerance about size.

@Drflash55 I'm not talking about them, I'm talking about the really slightly bigger one, which can overlap with you without eating you because they are not big enough

he is suggesting to bring the can-eat back to 1.33

which can overlap with you without eating you because they are not big enough

Huh ?

 Shouldn't it be 1 instead ? I don't know this part of the code.

@FliiFe Mura is talking about the ratio that was used for the canEat to canSplit range.
Me and Apostolique were testing the correct amount to see if it could be totally flawless... and we seemed to have got a really good estimate on the correct value, but it's not perfect.

1.33 is what agar decides .. if a cel is 1.33 times bigger then the other cell/virus it can eat it ..

Where is the canEat part in the code ? I can change it to 1.33 if @muratlahur is sure.

it's not can eat
it's isFood
and I've just checked and it is at 1.33 anyway lol :P

So no point of this issue or ... ?

@muratlahur It was at 1.2, but I decided to experiment with it, and so we went all the way to 1.33, which seemed to be the best place to leave it at...
If you can get an even more specific range, that would be nice.

So no point of this issue or ... ?

@FliiFe was wanting the ratio to be a bit bigger for the isFood, so that cells that are a little bit bigger will still be considered a threat for splittage. But, I was against this, because I wanted to have the EXACT amount so that if you try to split, the fire won't be a dud.
So, we're at opposite ends.

ok , the number for split is 2.66 technically perfect , because when you are 2.66 times of someone and you dive yourself to half , each half will still be 1.33 rimes bigger so can eat..
I MADE THAT NUMBER TO 2.8 , it is one of my early contributions to this bot..
The reason is a sure shot..like you said no dud ! and 2.8 work perfect...
also both ways because the cansplit is also used when checking others can split to you ..
if it is 2.8 the bot is not afraid of lets say 2.66 to 2.8 sized guys..This is a little rist taking but first off 2.66 split is a very very low chance to eat and secondly by doing that you open a lot of headroom as you are not afraid of EVERYONE now..
I am using 2.8 for months now and it sems to be quite a good number I suggest it stays

The reason why I thought 1.33 was kind of perfect was that when testing it, I only eat a little piece of food, and the bot did not say he was eatable at the time, but I eat him anyways.
If 2.8 is the perfect range, I will try to implement that into the test script I have at home so I can try it out...

So 2.8 ? If so @FliiFe @Drflash55 test please and post your results here so I can be sure and then I can change the number.

The bot is already at 2.8 I've merged that months ago .. You all are using 2.8 and it is quite ok .. And the is food is at 1.33 the mathematically perfect ratio and I also think it should be left at that

@ErmiyaEskandary Will do... I have about 2 hours and 51 minutes as of now, so when that time passes, I'll be at home so I can test it out.

So no changes to the current code? @muratlahur

I would suggest so .. 1.33 and 2.8 are both in the code and as I explained above they serve just fine
you could change the 2.8 to 2.66 , that is mathematically perfect but then , the bot will think it can split to 2.66 smaller guys and although it is possible it's a near impossible shot..
Also it will be afraid of guys 2.66 , the same althoug it is possible it's nearly impossible for them to eat you
up to you guys..
I say numbers are fine

@ErmiyaEskandary It seems to be that the isFood ratio is perfect, at 1.33. As you need to be 33% bigger than a cell to eat them. And 66% to split them... Hence why I put in 2.66 for the split ratio. But, I could be wrong...

So issue will be closed.

2.66 is mathematically perfect as I've said.. 2.8 gives the bot a bit of a character if you will .. It takes tiny risks and gains headroom with that and also does sure-kill shots due to 2.8
up to you ..


Adding Support for EG4-LL 12v BMS

Adding a driver for EG4-LL 12v BMS.

Please use this checklist: https://louisvdw.github.io/dbus-serialbattery/general/supported-bms#add-by-opening-a-pull-request

@tuxntoast any updates?

I optimized the code and added it to my fork.


Delete at Head in a Circular Linked Lists

Is your feature request related to a problem? Please describe.
The problem is to delete a node from the head in the Circular Linked Lists.
Describe the solution you'd like
I would like to provide a C++ coded solution for this problem.

@smv1999 I would like to work on this.

Sure @kiruba-r11 , you can go ahead !


Remove unused import

@mattThousand , I think we nabbed this fix on #700 already. Can this one be closed?


Release 1.3.0

see https://github.com/camunda/camunda-bpm-spring-boot-starter/milestone/4?closed=1

I think we got enough goodies for the next release. Objections?

I would include #127 as last goodie.

IMHO we are ready to release

Assign me, when we are ready.

Created CAM-6650 for this.

Any news?

Done.


Fix the issue with the lock files from different node package manager

This has been fixed with commit ec8967d


State not maintained in web application

Created web application using instructions here: https://flutter.dev/docs/get-started/web
Changing the primarySwatch color and hot reloading the application with "r" command resets the click count to 0. Shouldn't the click count not supposed to change as mentioned in comments in "theme: ThemeData(...)" section?

@Tusshu Flutter web at the moment don't support hot reload yet, only hot restart is supported, you can see a mention to that on the Hot reload documentation here.


Punitive Quote Tweet Twitter Bot

Analyzes quote tweets using sentiment analysis. If negative sentiment is detected, post a reply to the quote tweet that says:

Favorite this tweet if you think this should have been a reply instead
—Your friendly neighborhood Twitterbot

Twitter is dead.


Python 2.7 issue

In iterate_promise.py a python 3 construct is used: yield from
This prevents correct installs on i.e. CentOS which uses python 2.7.9
Would it be possible to change to using a 2.7 friendly construct like:
for foo in promise.future: yield foo
since there are no advanced (python >= 3) uses of yield?

Will this be merged to master? (and available in >2.0.1?)

Nope, this is not added into the core.
The yield from x syntax is not equivalent to for i in x: yield i, and have some performance repercussions.
http://stackoverflow.com/questions/17581332/converting-yield-from-statement-to-python-2-7-code
This file is not required and the import is already covered by an ImportError or SyntaxError catch.
I think this just prints a warning once the package is installed, but doesn't prevent the install on any machine, right?

No, I had it fail to install on a couple machines. I found it really difficult to replicate the issue, though, which is why I closed #19

This may help:
https://pypi.python.org/pypi/yieldfrom/1.0.0


Support For Ably Subscription Filters in Connector

Does the Connector support populating the extras.headers information for use in server-side filtering of messages?
To utilize Ably subscription filters as described here:
https://ably.com/docs/channels
The extras.headers information needs to be populated, which doesn't appear to be currently supported by the Connector.  Ideally, if Headers within Confluent where converted into the Ably extras.headers outside of the data and name payload.  For example using the Confluent REST API:
{
"headers": [
{
"name": "Header-1",
"value": "SGVhZGVyLTE="
},
{
"name": "Header-2",
"value": "SGVhZGVyLTI="
}
],
"key": {
"type" : "STRING",
"data": "acme-corp"
},
"value": {
"type" : "JSON",
"data": {
"msg" : "notification message here"
}
}
}

Hello @vnmchat13, thank you for your interest in our Kafka connector! We appreciate your curiosity. The connector supports populating the extras.headers from Kafka headers (although it might not be very well documented). The only limitation we have now is that it supports only String values.

@ttypic I cannot view the details of the Jira issue.  Does this work with the cloud hosted version of Confluent, which the "hosted" REST API assumes Byte characters for the header key/value array?  Is a header.converter parameter needed as part of the Ably Connector config?

@vnmchat13

Yes, it should work with the hosted version of Confluent
header.converter is not needed

I receive the following error when changing the header values to string:
{
"error_code": 400,
"message": "Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value"
}
POST: https://pkc-p11xm.us-east-1.aws.confluent.cloud:443/kafka/v3/clusters/lkc-o2o73y/topics/task-notification/records
{    "headers": [
{
"name": "role",
"value": "admin"
},
{
"name": "user",
"value"<EMAIL_ADDRESS>}
],
"key": {
"type" : "STRING",
"data": "account-name"
},
"value": {
"type" : "JSON",
"data" : {
"extras" : {
"headers" : {
"name" : "123"
}
},
"type": "task-reminder",
"meta" : {
"whatId": "SHMK-L231031-000086",
"owner": "John Smith",
"ownerId": "65472638734658734",
"who": "Sally Mae",
"whoId": "242347623846283746"
},
"importance" : "medium",
"interval" : 15,
"intervalType" : "minutes",
"msg": "Follow-up with Sally Mae for Inspection Date/Time"
}
}
}

Hi @vnmchat13, this problem might be best addressed by the Confluent Cloud Rest API team. In the meantime, as a workaround, you can consider base64 decoding your strings. If you're unfamiliar with the process, you can use various online tools or programming libraries to accomplish this. Your headers section will be:
{
  "headers": [
      {
          "name": "role",
          "value": "YWRtaW4="
      },
      {
          "name": "user",
          "value": "cGF1bEB2ZWxvY2l0eXMzLmNvbQ=="
      }
  ]
}

For a more permanent solution and detailed assistance, I recommend reaching out to the Confluent support team.

The entire reason for this post, is that we where using Binary values for the headers.  Works great.  Ably DOES NOT convert the headers to extras.headers for use in using Ably's Subscription filtering on the passed header values.  They are ignored.  It was said to use Strings from your support Team, which is not supported in the fully managed REST API Proxy.  You can only change this using a self-managed API Proxy to Confluent.
REST API via Confluent using Ably Connector:
REST API POST: https://pkc-p11xm.us-east-1.aws.confluent.cloud:443/kafka/v3/clusters/lkc-o2o73y/topics/task-notification/records
{
    "headers": [
        {
          "name": "role",
          "value": "YWRtaW4="
      },
      {
          "name": "user",
          "value": "cGF1bEB2ZWxvY2l0eXMzLmNvbQ=="
      }
    ],
    "key": {
        "type" : "STRING",
        "data": "SHMK"
    },
    "value": {
        "type" : "JSON",
        "data" : {
            "msg": "Follow-up with Sally Mae for Inspection Date/Time"
        }

    }
}

Ably Console Log (Headers are not being converted to extras.headers):
{
		"id": "avKEcQtIYB:0:0",
		"timestamp":<PHONE_NUMBER>013,
		"data": "{msg=Follow-up with Sally Mae for Inspection Date/Time, intervalType=minutes, meta={owner=John Smith, whoId=242347623846283746, whatId=SHMK-L231031-000086, ownerId=65472638734658734, who=Sally Mae}, importance=medium, extras={headers={name=123}}, interval=15, type=task-reminder}",
		"name": "SHMK:task-notification"
	}

Direct Post To Ably:  https://rest.ably.io/channels/task-notification/messages
{
    "name" : "SHMK:task-notification",
    "data" : {
        "msg": "Follow-up with Sally Mae for Inspection Date/Time"
    },
    "extras" : {
        "headers": {
            "role" : "admin",
            "user": "1232322323"
        }
    }
}

Ably Logs (Includes Extras Headers Information):
{
		"id": "hTD0yzYpYe:0:0",
		"timestamp":<PHONE_NUMBER>627,
		"encoding": "json",
		"extras": {
			"headers": {
				"role": "admin",
				"user": "1232322323"
			}
		},
		"data": "{\"msg\":\"Follow-up with Sally Mae for Inspection Date/Time\"}",
		"name": "SHMK:task-notification"
	}

Hi @vnmchat13, I am sorry, that I closed issue earlier. I probably misunderstood something, can you take a look at video I recorded. Is this somehow different from what you are wanting?
https://github.com/ably/kafka-connect-ably/assets/16488867/13c3b5da-b178-42fc-9e54-8d30a77e25df

One more thing, looks like you don't use schema registry, so Ably doesn't know about data encoding. You need to send special header "com.ably.encoding"  with "json" value (anNvbg== in base64), for REST API call it will be:
{
    "headers": [
      {
          "name": "role",
          "value": "YWRtaW4="
      },
      {
          "name": "user",
          "value": "cGF1bEB2ZWxvY2l0eXMzLmNvbQ=="
      },
      {
          "name": "com.ably.encoding",
          "value": "anNvbg=="
      }
    ]
}

@ttypic Correct, that is exactly what I want!  I did a quick test and I am not seeing the extras.headers.  I am assuming now either I need to update my connector, or is this something that hasn't been released yet, or a minor config change on my end -- I am reviewing all your settings now and performing some tests.
How do I see the current version of the Connector?  What version should I be using?

This is now working as expected.  Thanks @ttypic !


[prod]add terminating pod check to rpm

prod PR of  https://github.com/openshift/openshift-tools/pull/4122

merge this as #4122 approved


Added the solution of problems- Maximum element, Equal stacks and Balanced Brackets in Python

Solved issue #43 in Python.

Please add links in README. Add comments in code as well.

Added links in the README.md file and added more comments in the code.
Kindly check @adityabisoi


feat: add reset notifications flow

Explanation
This adds the ability for users or developers to reset their remote notification state. For example recovering from a corrupted state, or to just clear existing notifications.
References
https://consensyssoftware.atlassian.net/browse/NOTIFY-1168
Changelog
@metamask/notification-services-controller

ADDED: resetNotifications option during the notification creation flow

Checklist

[x] I've updated the test suite for new or updated code as appropriate
[x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
[x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@metamaskbot publish-preview

Cool, will merge once we have a preview build to test on mobile :)


Juju charm

It would be super neat if we had a Juju charm for deploying pump.io.

  Some underlying plumbing has to be available first to be orchestrated.  We're not there yet.
If everything is packaged and in a .deb archive this would work great.  There was a prior effort Debian-side to actually package the bits and pieces of pump.io.  The last update on the relevant wiki is shown from April 2016 here: https://wiki.debian.org/Javascript/Nodejs/Tasks/Pump.io .  I don't think that effort has moved forward.
If anything, we would need to consider Snapcraft (http://snapcraft.io/docs/build-snaps/) or something similar first due to the reliance on JS as not all of that can be wrangled into .deb to come into Juju's scope.
I'll need to think about this further and may expound upon this further later.

If anything, we would need to consider Snapcraft

I actually had a go at this a while back. You can find it here: https://github.com/ssweeny/pumpio-snap
It works well enough to get an instance going, but there's room for improvement with e.g. getting TLS certificates.

@skellat I don't think we need to be packaged as a .deb first (unless that's a technical requirement?)
We can just pull from npm.
@ssweeny thanks, that's useful. We got contacted by some Canonical developers recently about packaging for Snapcraft; I'm planning to take a look when I have time. If you want to keep working on your packaging I'd be thrilled to accept PRs upstreaming that work here

@strugee who did you hear from inside Canonical? I work there too (though probably in a different area... snapping pump.io is a personal project) and I'd be happy to chat with them.

@ssweeny Daniel Holbach and Alan Pope contacted Evan, who then looped me in.


fix "sign with wallet" & upgrade wallets-kit

Summary:

community member Raph reported on Discord: "btw lab couldnt sign with freighter eariler so had to switch to old. No error message or anything and old signed fine"
This bug was introduced in #1050 3 days ago when I added a successful message check for the successful response card
Upgraded the wallet kit

Preview is available here:http://laboratory-pr1057.previews.kube001.services.stellar-ops.com/

Preview is available here:http://laboratory-pr1057.previews.kube001.services.stellar-ops.com/


setting font

Sorry for my noob questions.

in xml file we have app:isb_text_typeface="" . How to set font here from my res/font or asset/myfonts
will app:isb_text_typeface="" change font at the at isb_text_left_end and isb_text_right_end?

IndicatorSeekBar is awesome,Thank you)

hi @bios90  Hope my answers helpful to you：

in the lastest version , you can do this by java code : seekbar,setTickTextsTypeface( Your typeface );
in the lastest version，yes.
thx.

You are awesome!Thanks!


Implement an initial presentation screen page

This is the page that will display on the large screen at the front of the event. Currently it just displays a countdown, the sponsors, and the currently playing Spotify track. More coming soon.

Let's do this


fix wrong description in help message

In addition remove --recover-plicy from systemd service file since restart is default one now.
Signed-off-by: Changwei Ge<EMAIL_ADDRESS>

Codecov Report
Base: 30.64% // Head: 30.49% // Decreases project coverage by -0.14% :warning:

Coverage data is based on head (af23c35) compared to base (6d3b176).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
- Coverage   30.64%   30.49%   -0.15%
==========================================
  Files          22       22
  Lines        2020     2020
==========================================
- Hits          619      616       -3
- Misses       1313     1316       +3
  Partials       88       88

Impacted Files
Coverage Δ

cmd/containerd-nydus-grpc/pkg/command/flags.go
74.32% <100.00%> (ø)

pkg/filesystem/fs/blob_manager.go
44.44% <0.00%> (-11.12%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.