generate code failed TypeError: 'NoneType' object is not subscriptable

Hello everyone,
this is my first time asking for help here. please kindly tell me if the problem is not clear enough.
I am trying to test cvxpygen for simple Markowitz optimisation problem.
Objective is to minimise portfolio variance with constraint on minimum return.
function to get portfolio return
ret = (np.array(expected_return) @ w )* annual # portfolio expected return as weighted sum of component expected return
function to get portfolio variance
port_var = cp.quad_form(w, cov) * annual #portfolio variance
constraints = [cp.sum(w) == 1,  # sum of weights = 1
w <= 1,  # weights <= 1
ret >= ret_target_min  # min return]
define problems
prob = cp.Problem(cp.Minimize(port_var), constraints)
Using CVXPY I was able to get result
result_opt = prob.solve(verbose=False, eps_abs=1e-08)
trying with CVXPYGen
from cvxpygen import cpg
cpg.generate_code(prob, "nonneg_LS")
from nonneg_LS.cpg_solver import cpg_solve
prob.register_solve("cpg",cpg_solve)
val= prob.solve()
my code failed right at generating problem stage, with following error:
./lib/python3.11/site-packages/cvxpygen/cpg.py", line 252, in generate_code
user_p_flat_usp = user_p_flat[user_p_sparsity_mask]
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
apparently user_p_flat is None
Any help is much appreciated.
Many thanks,

Hi @luong2710! Thanks for reaching out. It looks like you have not defined your parameters as Parameter. Cvxpygen is built around the concept of Disciplined Parametrized Programming, or DPP. You might want to have a look. Also, cp.quad_form is not allowed with DPP. You might write sth like cp.sum_squares(R@w), where R is some root of cov, e.g., its Cholesky root (transposed). Please also have a look at this detailed portfolio optimization example with cvxpygen. You can simplify it to arrive at your problem.
Also, could you please provide a minimal example of your issue, i.e., one piece of code that one can run to reproduce the error? This is best practice.

Feel free to re-open in case the error persists.


Add rubocop-rspec

Adds our own little automated @luke-hill by configuring rubocop-rspec 🤖 . Fixes a few of the simpler common issues for RSpec/FilePath conventions and RSpec/ContextWording and then uses --auto-gen-config to create a .rubocop_todo.yml file for stuff that needs a little more thought.
@luke-hill Have you used this before? Any tips on settings we should tweak, or is all of this decent stuff?

@luke-hill Cheers. Yeah I ended up carrying on yesterday and fixing the rest of the warnings so going to push the rest of that up in a moment. Each time I hit something and thought "hmm, is this really a problem?" I tried the suggested way and it made the tests a lot clearer. 💯 would lint again.

Yeh. What I would say. Being totally honest. Is whilst I agree with 95% of the standard rubocop configuration, I would say for rubocop rspec that number is more like 70% or so.
See places like this: https://github.com/site-prism/site_prism/blob/main/.rubocop.yml#L30-L31 or https://github.com/site-prism/site_prism/blob/main/.rubocop.yml#L19-L23

no more shared examples

Not specifically, just in our cases the warnings encouraged separating / specialising the tests to the point where they just weren't needed any more. Shared examples are legit still.


tour: value/pointer receiver

Context: https://go.dev/tour/methods/8
The text contains

In general, all methods on a given type should have either value or pointer receivers, but not a mixture of both. (We'll see why over the next few pages.)

but over the remaining 18 pages of the Methods chapter, there is no explanation for why this advice is relevant

Nevermind, found the issue tracker for the website at https://github.com/golang/go/issues/65278.


feat: add fallback values to settings.py for local environment

AsIs
In bennu_official/settings.py credentials of MySQL for application are defined, but they requires to be fetched by environmental variables without fallback(default) valuse.
This means that when we, or new developer, would are required to set environmental variables like:
export MYSQL_DATABASE='****'
export MYSQL_USER='****'
export MYSQL_HOSTNAME='****'
export MYSQL_ROOT_PASSWORD='****'

But when we would forget to run these commana before python manage.py runserver, the application will not start so that it is better to set default values for local environment.
ToDo

[ ] add default values to os.environ.get()
[x] update README with adding details

(Optional) Acceptance criteria
Confirm that python manage.py runserver could start application without prerequired operations with export commands.
(Optional) Additional contexts
Issue(s): #
PR(s): #

Details about export commands for providing credentials had already been added to README with the changes in PR #197, so this would not be covered in this PR.


Move voyager models and actions arrays to config file

Description of problem

Keeping the definition of these models inside Voyger class will make it hard for developers to overided their functionlity.
Proposed solution
I suggest moving these models and actions arrays to a config file, so overriding them become much easier also, I found that you implement "addAction", "replaceAction" functions I think  "removeAction" function is a need .

Configs are hard to maintain and have a lot more disadvantages.
Models are overridable as per our docs and to remove an action, why dont you just ungrant/delete the corresponding permission?

good!

I had a use case where I need to apply Model Cache for Menu Model
I think having models in the config file will give developers a way to apply such think

If you change the model through a config file or through the UI doesn't make any difference technically.
Its more inconvenient actually.

Closing.


[BUG] streamlit-analytics cannot track multi-page separately

I have 2 pages in my application, and I'm tracking both the page views and st.sidebar.file_uploader for each page. On page1, the number of page_view and the number of uploaded_file is only for page 1, which is as expected. However for page2, the number of page_view and the number of uploaded_file are not only of page2, but also combined with these two metrics of page1. Any idea why that maybe happening? Thank you.

@Joyce920hope Thank you for raising this issue!
I believe this is is within the current limitations of streamlit_analytics2

Oh hang on, I understand that you want to see the metrics for each page separately... Yes, that would be happening since both calls to streamlit_analytics on each page is going to contribute to the session state as a whole.

@444B Yeah, I believe this is the limitation of the package. Thanks for your explanation. And thank you for taking the action! If you got any update on the issue, please let me know!

Related issue #100

Do you belive this issue will be solved sometimes soon?
This would be awesome
I tried playing with it by calling reset_counts() within strart_tracking()
This indeed sepeareted the info from the pages, but it resets the counts every refresh...


Unable to resolve service for type error.

Hi, I am developing an ASP.Net Core Web Application with Work Authentication. I have added the Models and Controllers setup, and have added the migration. But this error is thrown up and I am unsure of the cause, or the steps in which to resolve it.
Many Thanks,
Max
InvalidOperationException: Unable to resolve service for type 'BookingADD.Data.ApplicationDbContext' while attempting to activate 'BookingADD.Controllers.BookingsController'.
Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, bool isDefaultParameterRequired)

Exception Details
System.InvalidOperationException: Unable to resolve service for type 'BookingADD.Data.ApplicationDbContext' while attempting to activate 'BookingADD.Controllers.BookingsController'.
   at Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
   at lambda_method(Closure , IServiceProvider , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.TypeActivatorCache.CreateInstance[TInstance](IServiceProvider serviceProvider, Type implementationType)
   at Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory.CreateController(ControllerContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextResourceFilter>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.<Invoke>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.<Invoke>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.<Invoke>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.<Invoke>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()

Looks like you havent registered your EF context in the service container.
Have a look at the EF guides once more on how to register the context with
the container. If it still doesnt Work, post your Startup.cs file content
so er can see your registration code.
On 5. marts 2017 2.13.39 PM Stanloy<EMAIL_ADDRESS>wrote:

Hi, I am developing an ASP.Net Core Web Application with Work
Authentication. I have added the Models and Controllers setup, and have
added the migration. But this error is thrown up and I am unsure of the
cause, or the steps in which to resolve it.
Many Thanks,
Max

InvalidOperationException: Unable to resolve service for type
'BookingADD.Data.ApplicationDbContext' while attempting to activate
'BookingADD.Controllers.BookingsController'.
Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider
sp, Type type, Type requiredBy, bool isDefaultParameterRequired)

Exception Details

System.InvalidOperationException: Unable to resolve service for type
'BookingADD.Data.ApplicationDbContext' while attempting to activate
'BookingADD.Controllers.BookingsController'.
at
Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider
sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
at lambda_method(Closure , IServiceProvider , Object[] )
at
Microsoft.AspNetCore.Mvc.Internal.TypeActivatorCache.CreateInstance[TInstance](IServiceProvider
serviceProvider, Type implementationType)
at
Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory.CreateController(ControllerContext
context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&
next, Scope& scope, Object& state, Boolean& isCompleted)
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext
context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&
next, Scope& scope, Object& state, Boolean& isCompleted)
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at     Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at     Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.d__7.MoveNext()

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/aspnet/DependencyInjection/issues/496

Yeah sounds like what @Reonekot said. Please show your Startup.cs and your controller's code too.


recipes for techfab lockboxes

About the PR
Closes https://github.com/Nyanotrasen/Nyanotrasen/issues/1712
:cl: Rane

add: Techfabs are printable with lockbox recipes.

This makes the circuit printer print lockboxes.

This makes the circuit printer print lockboxes.

that's not that bad


Add on_after_register hook

Will allow to add some logic after successful registration (typically send a welcome email).

Thinking about a more convenient way to wire thoses hooks: basically, FastAPIUsers object would expose a decorator that would add the decorated function to a dict of hooks, arranged by event name.
That would allow:

To have several hooks per events
To have less constructor parameters for  FastAPIUsers

Inspiration:
https://github.com/encode/starlette/blob/c0bf5e3976542de2a0d0441bee0b5d7b2f83050e/starlette/routing.py#L427-L452


[ALLUXIO-2342]Improve error handling in AlluxioMaster#stopMasters

https://alluxio.atlassian.net/browse/ALLUXIO-2342
We should remove the log statement to avoid logging the same exception multiple times.

Can one of the admins verify this patch?

@ceo1207 Thanks for the contribution. I think instead of commenting the log statement out it should be removed completely. Additionally, could you please sign the CLA as described above?

@ceo1207 Thanks for the changes. LGTM if the tests and builds pass.

ok to test

Jenkins, add to whitelist

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/12027/
Test PASSed.

@ceo1207 Thanks for the PR! This looks good, after you sign the CLA.

sorry about that, forget to sign the doc.

LGTM


Upgrade to GeoCombine 0.9.X

In order to upgrade SDR to GBL 4.4.0 we need to upgrade GeoCombine to 0.9.X. That means sdr-cli needs to use the same version.
Work has started here on the branch upgrade-to-geocombine-0.9.1
Unfortunately there's a bug in GeoCombine 0.9.1 that results in documents being dropped during indexing. So we need to wait for a release that includes a fix for that bug.
I've submitted a bug fix for GeoCombine here: https://github.com/OpenGeoMetadata/GeoCombine/pull/173

This was addressed by #12 which upgraded us to GeoCombine 0.9.2


Ability to open .chat and .transcript files without opening a bot first

Use this query to search for the most popular feature requests.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When trying to use .chat files to mock up conversation designs, I want to be able to view them in the emulator without opening a bot first. Today, I cannot open the Resources tab unless I have a bot open.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I'd like to be able to open .chat files (and .transcript files) at any time in the emulator.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Creating an empty .bot file, then opening the .chat files.
Additional context
Add any other context or screenshots about the feature request here.
[enhancement]

This could potentially be done via the application menu, and / or a protocol handler setup so double clicking a .chat file would open in the Emulator

This will be possible in #2034


Add the Mentoring WG

This PR creates the Mentoring Working Group officially by adding a charter for it.  See the charter for further information.
Approvals:
@nate-double-u
@geekygirldawn
@dims, @mattfarina, @kgamanji

/lgtm
Thanks Josh!

LGTM!

lgtm

closes: https://github.com/cncf/tag-contributor-strategy/issues/167

(was hoping https://github.com/cncf/tag-contributor-strategy/pull/188#issuecomment-1197330818 would link the two issues, but alas. At least it's referenced now 🙂)

Since this has been approved now, here’s the schedule for the Mentoring WG, and the meeting minutes

Approved by the TOC on August 2nd.


Allow parents and mentors to have consolidated profile options

I have a mentor who is also a parent and wants to add ninjas to their profile. However it looks like you can only be one profile type. Wheras you can join a Dojo as a mentor and parent (based on cd_usersdojos table) there is only one user_type in the cd_profiles table, so you can only have a mentor or parent profile.
Can we change this so that you can have the parent features, and have the parent profile fields as well as mentor (mentors can show what programming languages they know for example).

@DanielBrierton Should be closed?

Yeah, any adult can add children now, and user type in cd_profiles is actually now completely hidden.


Need to remove temporary files regardless of whether the container build succeeds.

Closing as we're archiving this repository.


shortcut ^V doesn't work?

I want to use ctrl-v instead of ctrl-shift-v as in default of config.h:
{ TERMMOD,              XK_V,           clippaste,      {.i =  0} },
{ TERMMOD,              XK_v,           clippaste,      {.i =  0} }, // test

after rebuild xst and try to paste with ctrl-v it shows ^V, ctrl-shift-v works as expected.
Why ctrl-v doesn't work but ctrl-shift-v does?
xst-git from aur archlinux.

Were you making an edit to config.h in your package definition? the location of the default config.h changed in a recent update ./config.h/./config.def.h instead of ./src/config.h -- you might need to update your patch location? ctrl-v isn't in the old config and won't be in the new one -- I'm working on a way to bind keys from xresources soon though, so that might also be a way to get ctrl-v binding

I use xst-git from aur so I edit src/xst/config.h (a copy from config.def.h)

right -- you'll have to update where you edit your config.h because now it's at the top level (no more src folder)

so where to update where you edit your config.h after I edit xst-git/src/xst/config.h?

I change { XK_ANY_MOD,           Button3, selpaste,       {.i = 0},      1 }, (Button2 to Button3) in xst-git/src/xst/config.h and it worked.

Unless you modified it, your config.h has #define TERMMOD (ControlMask|ShiftMask), so if you want control instead of control=shift, you need to change
{ TERMMOD,              XK_V,           clippaste,      {.i =  0} },

to
{ ControlMask,              XK_V,           clippaste,      {.i =  0} },

@avih right, have ControlMask work, I forgot it, thanks.


Vagrant & Ansible

Q
A

Fixed Tickets
#576

The goal of this PR is to replace the host configuration with a preconfigured VM.
The home page should be available at http://<IP_ADDRESS>/app_dev.php/

@EmanueleMinotto amazing!
ping @alch @mickaelandrieu

I think elcodi:configuration doesn't exits, maybe it's elcodi:bamboo:configuration instead ?

Available commands for the "elcodi" namespace:
  elcodi:exchangerates:populate  Populates exchange rates
  elcodi:install                 Installs Elcodi in your dev environment
  elcodi:locations:drop          Drop a set of countries
  elcodi:locations:load          Load a set of countries from an external repository
  elcodi:locations:populate      Populates a set of countries
  elcodi:metrics:load            Load metrics from database
  elcodi:plugin:disable          Disable a plugin
  elcodi:plugin:enable           Enable a plugin
  elcodi:plugin:list             Lists all available plugins
  elcodi:plugins:load            Load plugins
  elcodi:sitemap:dump            Dump a sitemap
  elcodi:sitemap:profile         Build a profile

@mmoreram now should be ok, do you think that something is missing?

:+1:  good job @EmanueleMinotto

@mickaelandrieu @EmanueleMinotto Configuration is not longer used in Bamboo... I will take a look at this next Monday!
Thanks Emanuele! :D:D:D

@EmanueleMinotto I have a problem here, and is that I cannot judge the quality of this work.
I would really appreciate @alch feedback.

I add this PR and if you find any issue, please tell us!
PD: Anyone has interest in adding a cookbook in documentation about how to build a new Bamboo instance using this?

@mmoreram "a cookbook in documentation about how to build a new Bamboo instance using this" :+1:


latest JobSubmitter broken for Tier0 use

Putting a check for ReqMgr2 into the JobSubmitter broke that component for Tier0 use.
https://github.com/dmwm/WMCore/blob/master/src/python/WMComponent/JobSubmitter/JobSubmitterPoller.py#L109
When you put any referral back to ReqMgr2 into deeper agent code it's a) quite bad design-wise and b) without some provisions for it to be optional it'll break the Tier0.

Sorry Dirk, I always forget about Tier0 cases.  Does tier0 ever abort the work? Or will that status ever needed?

I created the patch assuming there is no aborted or force-complete status in tier0

There isn't, so this is ok.


VisUI & Libgdx 1.9.9 & DragAndDrop & null problem

When i use 1.9.8 everything work fine, but after update libgdx to 1.9.9, every use of dragAndDrop in game end like this:
Exception in thread "LWJGL Application" java.lang.NullPointerException
at com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop$1.drag(DragAndDrop.java:104)
at com.badlogic.gdx.scenes.scene2d.utils.DragListener.touchDragged(DragListener.java:61)
at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:62)
at com.badlogic.gdx.scenes.scene2d.Stage.touchDragged(Stage.java:314)
at com.badlogic.gdx.InputMultiplexer.touchDragged(InputMultiplexer.java:135)
at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.java:345)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:217)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)

Please provide SSCCE and how to reproduce this issue.

DragAndDrop changed in 1.9.9, dragged actor is removed when its dragged. This caused me issues as well.

I'm not seeing any VisUI calls in the stack trace so not sure why this is reported here. IIRC VisUI doesn't even use DragAndDrop from libGDX.

Closing as no further explanation or example was provided.


Finish phase 1 dashboard work

Add the final elements of the DMP Upload dashboard:

[x] Slide out information card
[ ] Filters

@fraserclark please make the PR to the v5 branch when you're ready

Sorry for the delay in getting a sample of what the related works JSON looks like to you.
Here is a recent DMP one of our pilot project partners uploaded through the phase 1 functionality. It has 8 related works that need review: https://api.dmphub.uc3prd.cdlib.net/dmps/10.48321/D13BEA529C
The related works can be found in the dmphub_modifications array

@briri I've added the pull request now
https://github.com/CDLUC3/dmptool/pull/589

@fraserclark I merged your PR and then needed to make a few minor adjustments to the way related_works were being checked/handled and also with the grant_id. I think maybe you had old data on your local or were working with some older registered plans that had some outdated metadata.
For reference, those changes are in my PR #594 no need for you to do anything with it, just an FYI

My notes from testing the slider:

I have 3 small formatting & text changes:

Increase the margins of the Grant ID field. It is currently displaying too close to the right margin of the slider.

Change the field title of the "Last Updated" field to "Last Edited" to match the wording from the table
Remove extra “-“ in the Project Dates field: “Start: 2021-01-15 - End: 2024-12-31”

Is it possible to add an "X" to close the slider window so you don’t have to scroll to the bottom in order to close the window?

I found one possible bug. I created a new plan via the upload feature but did not generate a DMP ID. Howver, there is still a DMP ID included in the slider. https://dmptool-stg.cdlib.org/dashboard/dmp/20240521-2394df1c2e33

@jupiter007 I just pushed the changes Maria request to my PR #594. Can you please review when you have a minute?

The changes all look good, thanks @briri


Feedback for OnePlus page

Information is outdated. On newer versions of Android, Oxygen OS no longer has a "Deep optimization" setting or a "recent app management" option.

Hello, many thanks. Unfortunately, we cannot do much, we rely on volunteers on the community to report new workarounds and provide new screenshots for new versions of Oxygen OS..

Hello, many thanks. Unfortunately, we cannot do much, we rely on volunteers on the community to report new workarounds and provide new screenshots for new versions of Oxygen OS..

How can we provide workarounds and new screenshots?

Teh whole website is open source so ideally you submit a pull request, or if that is too demanding you can post a descriptions and screenshots here into the issue tracker and we will add them in our free time..


[react-form] reduceFields utilities

Description
a new reduceFields function is exposed that works similar to Array.reduce but for tree structures, in particular to reduce over Fields. Since we have several methods that visit each Field node, a general reduceFields function is beneficial to simplify the codebase and remove duplication. reduce is a foundational function for which other functional methods such as map, filter, some and more are derived.
There is memoization problems with dirty.ts because the fields could be deeply nested. This will be fixed

Type of change

[x]  Patch: Bug/ Documentation fix (non-breaking change which fixes an issue or adds documentation)
[x]  Minor: New feature (non-breaking change which adds functionality)
[ ]  Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[ ] I have added a changelog entry, prefixed by the type of change noted above

@ismail-syed Docs are updated! :)


Embeddings defaults to model.get_input_embeddings() for all models

This is a small change but adds compatibility for most if not all models in the HF library when fetching embeddings
This change is opinionated and now only selects input embeddings (word embeddings) as the embeddings from which it calculates attributions along.
I'm still researching this a bit to sanity check this as a choice, there are subtle but real differences between the attributions when using input embeddings versus Bert like models model.bert.embeddings which is usually a collection of embedding layers.
I'll convert this to a regular PR when I feel a bit more sure of the decision.

This feels ready to merge now. I've been reading how members of the Captum team are doing this and from what I've seen they are also commonly using word_embeddings/get_input_embeddings() for calculating attributions (see pytorch/captum#592 ).
There certainly are cases where embeddings w.r.t position and token type might be useful (layer conductance) but the library currently doesn't have support for that level of model introspection.


A class can't extend from object/generic intersection, but can extend from plain generic

Ran into this looking into an issue with @athasach:
export type Constructor<T extends object = object> = new (...args: any[]) => T;

export interface Initable {
    init(...args: any[]): void;
}

/**
 * Plain mixin where the superclass must be Initable
 */
export const Serializable = <K extends Constructor<Initable> & Initable>(
    SuperClass: K
) => {
    const LocalMixin = (InnerSuperClass: K) => {
        return class SerializableLocal extends InnerSuperClass {
        }
    };
    let ResultClass = LocalMixin(SuperClass);
    return ResultClass;
};

const AMixin = <K extends Constructor<Initable> & Initable>(SuperClass: K) => {
    let SomeHowOkay = class A extends SuperClass {
    };

    // Error!
    //
    // Type
    //
    //  {
    //      new (...args: any[]): Serializable<K>.SerializableLocal;
    //      prototype: Serializable<any>.SerializableLocal;
    //      init(...args: any[]): void; } & K
    //  } & K
    //
    // is not a constructor function type.
    let SomeHowNotOkay = class A extends Serializable(SuperClass) {
    };
};

You can see that this is because ResultClass has the type
{
    new (...args: any[]): SerializableLocal;
    prototype: Serializable<any>.SerializableLocal;
    init(...args: any[]): void;
} & K

This is weird, because it has nothing to do with the construct signature. You'd have the same behavior if you swapped this to be {} & K
     let ResultClass = LocalMixin(SuperClass);
-    return ResultClass;
+    return ResultClass as {} & K;
 }

However, if you just leave it as a bare type parameter, TypeScript is okay. The following change will make things work!
     let ResultClass = LocalMixin(SuperClass);
-    return ResultClass;
+    return ResultClass as K;
 }

I guess the question is: is this intentional? Why do we disallow extending from a {} & K but we're okay with extending from K? It feels like we should probably allow this.

Any thoughts @ahejlsberg?

Unfortunately, type asserting that ResultClass is K omits any members that might be added by LocalMixin. But the identification of the underlying issue is helpful.


Scrolling Problem

The position of the scrollbar changed suddenly when I drag to a height if the DragAndDropList has a number of children.

Flutter Version: 2.10.4 stable
Platform: Windows 10
Plugin Version: drag_and_drop_lists: ^0.3.2+2

Getting Same Problem
@YowFung any solutions


feat(codegen): Insert comments in interfaces

Replaces #1451

@sbres Thanks for original PR! I updated the tests so that they're passing and will merge once they're green


sequence example for segmented output files

All of the examples I see have the developer reading from one output file. How do you go about reading sequenced output files from a command that's performing segmenting? For example, say I want to slice an unknown length input file into 25 frames per second:
await worker.write('in.ts', data);
await worker.run('-c:v mpeg2video -i in.ts -map 0:v -r 25 out_%06d.bmp')
const _arr = await worker.read( what do I put here??? );

You need to use ffmpeg.ls to achieve this one, please upgrade to v0.8.2 and follow example below:
https://github.com/ffmpegwasm/ffmpeg.wasm/blob/master/examples/node/multiple-output.js

Is there an event listener that we can use that will output a filename when it's written instead of the ls method? My data is being produced on the fly and as such I need to know whenever new files are created. Routinely 'polling' using the ls command at N intervals will introduce delay and also seems hacky. Also, it needs to be done via the browser method.


[Feature] #2354 - Add Plane Service

/claim #2354
Here is a working template of the plane service.
I used the official installer to get the latest compose file and then coolified it.
I could not figure out why the healthchecks were not working for web, admin, etc... i tried using wget but it failed for some reason. Does anybody know why? Can this be ignored?
Also important notice for testing:
The API takes a while to boot due to there being many migrations.
If you see the "login or register" page, the api has not started yet.
Screenshots:

Thank you for the PR!
It needs a bit fine-tuning, but I will do the rest! :)

/claim #2354
Here is a working template of the plane service. I used the official installer to get the latest compose file and then coolified it.
I could not figure out why the healthchecks were not working for web, admin, etc... i tried using wget but it failed for some reason. Does anybody know why? Can this be ignored?
Also important notice for testing: The API takes a while to boot due to there being many migrations. If you see the "login or register" page, the api has not started yet.
Screenshots:

Hi, @MrAlexand0r thanks for this, however, there's an issue with uploads. An issue was opened, would you mind having a go at it? Thank you. https://github.com/coollabsio/coolify/issues/2860


Handle sd* disk names

#231 is a prerequisite.
This removes the last sd* reference and adds tests for sd* name assignments with coldplugged disks.

Ready for rebase

@simondeziel I would say it makes sense to add these checks on this PR, at least the disk related one.

This would verify it takes back its slot so to speak

Sounds good!


Support direct attachment of volumes to the VM

Today, volumes are mounted by the kublet, then passed to the VM for consumption.
This is well integrated, but we pay a price.
Another option is to o connect volumes directly to the qemu process (for whatever protocol qemu supports), this would avoid the intermediate layers, but has other drawbacks.
Main benefits are: Less user-space and kernel space dependencies, more rpedictive behavior on VM shutdown, different performance charactistics.

/remove-lifecycle rotten

Why is this closed?) This is a 100% MUST)

Please reopen :-)

@vitalif Can you elaborate on why we need this?

@vitalif Can you elaborate on why we need this?

Kernel mounting is an overhead and may in theory even be impossible for some storages... For example, I don't have a kernel driver for my project Vitastor :) I provide support via NBD, but it's much slower than native driver. https://yourcmc.ru/git/vitalif/vitastor/src/branch/master/docs/performance/comparison1.en.md#vitastor-0-4-0-native - also NBD has a problem with timeout - if you don't specify a timeout then if the mount process fails it becomes impossible to remove device from system without rebooting; and if specify a timeout then the device autostops when an operation is suspended for more than timeout seconds which is also an undesirable effect...
"Unkillable" devices may also appear in case of Ceph RBD when there is a process in D state stuck reading or writing the device, and you'll also have to reboot.
QEMU userspace drivers don't have this problem... Also QEMU probably provides additional features for userspace block drivers... Most popular qemu-based hypervisors use userspace QEMU drivers, so I think kubevirt must also have this feature.

I have my own CSI based on NBD and I don't expose any sockets - NBD in my case works as "FUSE for block devices", it has such mode. So I don't think I need any extra CSI :)
And NBD is an overhead in any case. Data goes from qemu to the nbd server, then from nbd to the cluster. Without NBD data goes directly to the cluster. I don't think it's a good idea to sacrifice 50% of random i/o performance and extra CPU usage.
By the way, what's the launcher and what credentials are you talking about? Isn't the thing that runs QEMU some kind of a system service, restricted from direct user access?

@fabiand it isn't totally clear to me the advantage that this approach will bring. You need in any case to mount the socket in the pod and make it available to QEMU
As @vitalif already pointed out you can also use TCP instead of UNIX socket and if the NBD endpoint is reachable from the VM pod then you can simply access it. Maybe using vhost user protocol could be a more performant solution, but again I don't completely understand why we want to access the storage indirectly.
Generally, I'd encourage a CSI plugin if we want also to implement the storage provisioning, but here I don't think it is the case., right?

You can also use TCP instead of UNIX socket

@alicefr Just to be more clear, I'll repeat the main point. I don't need NBD. I need QEMU to load block-vitastor.so and access my cluster directly. It can't be wrapped in another network protocol because I already have my own protocol. And it's distributed, client connects to all storage nodes, there is no single "gateway".
And I don't need vhost-user either. I need native QEMU block driver. block-rbd.so block-vitastor.so block-nfs.so and so on. I want kubevirt to support these!

@vitalif thanks, sorry it wasn't clear at the beginning. Let me rephrase, what you need is a special driver in order to pass your storage and currently, there isn't such an option in KubeVirt right? How does QEMU access the storage? More precisely how do you want to expose the storage to the container where the VM is running?

QEMU accesses my storage over the network, same as Ceph (block-rbd.so). Then it uses a userspace library and, optionally, credentials to connect to the cluster and send i/o requests directly from the qemu process. To use that all you need to do is pass a correct block device string to QEMU, like "-drive format=raw,file=rbd:testimg". Then in case of Vitastor it doesn't use authentication (it's supposed to just block the network access from inside VMs to the cluster somehow), in case of Ceph typically a single user is used for all VM images and its credentials (username, key) are read from /etc/ceph/ by the library used by qemu. And kubevirt can't do that, it requires to expose the image via kernel, partly because CSI doesn't know anything about QEMU block drivers

Yes, we don't support all the QEMU block drivers in KubeVirt. The storage is passed with virtio blk and as driver QEMU also for ceph we don't use the rbd protocol.
As a quick try you could modify the libvirt XML and pass the options you need using a sidecar (here an example) if the network is accessible from inside the pod.
Afterward, there have been in the past some ideas of using qemu-storage-daemon in order to separate the QEMU storage functionality. We could generalize the access to the storage by using the qsd and exporting the storage to qemu through a socket (see the --export options). This approach adds a level of indirection but it simplifies what KubeVirt needs to support in terms of storage driver types and managment. Does this sound a long term alternative to you?

There are 2 main benefits of direct access:

increased throughput due to data copy avoidance
reduced latency due to less IPC when i/o is done directly from the QEMU main event loop. Improvement is around ~0.04ms per 4 kb I/O which is not a lot, but still noticeable for SSDs

If QSD can provide these 2 benefits too then I think it's okay(ish), if not then it's not much better than NBD for me.
Also after reading the documentation of QSD I'm not sure. Does vhost-user-blk use a UNIX socket or shared memory for data? If it uses a UNIX socket then it's no better than NBD, if it uses shared memory it can in theory at least solve (1), but not (2).
There are also 2 smaller issues:
3) QSD can provide support for hypothetical storages that have a QEMU driver BUT don't have neither kernel driver nor iSCSI nor NBD gateway nor CSI driver nor ...anything else :). Though it doesn't sound like something existing in reality, I doubt if such storages exist at all.
4) QSD can in theory solve my NBD timeout problem. However I suppose that considering this issue alone it can also be solved just by exposing an NBD UNIX socket and using it from kubevirt directly using QEMU user-space nbd driver instead of the kernel...
So I think these 2 additional points are rather insignificant.
I'll try libvirt, thanks. By the way, libvirt also doesn't have a good plugin architecture, it has a hardcoded block device driver list and I also patch it for Vitastor support :). The best plugin architecture is in Proxmox. The block device is presented by a single Perl file (.pm) there and libvirt is not used at all :)

AFAIU, the qsd uses the shared memory over the UNIX socket using vhost-user protocol. It should not have any performance penalty but I'm not sure if we already have measured this.

How does it work over the socket? I tried virtiofsd once and it required access to the whole QEMU address space. Anyway single thread is better in terms of latency than 2 threads - QEMU and external process - having to communicate through any kind of IPC. I.e. if it uses shared memory then memory copying is probably not an issue but latency still suffers.

I'm not sure about the other points you mentioned. Could you please give more details about the reason you need them?

It was just theory :) What I want is direct block driver access. -drive file=vitastor:etcd_host=...:image=testimg. It's the simplest way) other options are more complex and have non-obvious advantages.

Just curious do you have any plans to integrate your driver in QEMU upstream?

I should probably at least try to offer it to them, yeah. But I'm not sure if they'll easily take it given that libvitastor-client isn't included in any major distros :)

Also after reading the documentation of QSD I'm not sure. Does vhost-user-blk use a UNIX socket or shared memory for data? If it uses a UNIX socket then it's no better than NBD, if it uses shared memory it can in theory at least solve (1), but not (2).

It uses the Unix socket as a control channel to set up everything, but I/O is done with shared memory. Essentially instead of the QEMU binary processing the virtio-blk ring, you do the processing in the QSD process. The advantage in your scenario is that you have full control over what that QSD process does, so you get access to all of QEMU's block backend functionality, including your custom driver.
Note that this only really works when you use virtio-blk in the guest, though. While we are working on a block driver that would allow attaching a vhost-user-blk export from QSD to any device in QEMU, this wouldn't be able to use shared memory any more, so without virtio-blk it wouldn't be very different from NBD any more.

There are also 2 smaller issues: 3) QSD can provide support for hypothetical storages that have a QEMU driver BUT don't have neither kernel driver nor iSCSI nor NBD gateway nor CSI driver nor ...anything else :). Though it doesn't sound like something existing in reality. I doubt if such storages exist at all.

Or for storage where other options like an NBD gateway exist, but aren't the best solution. In other words, your exact case. :)

How does it work over the socket? I tried virtiofsd once and it required access to the whole QEMU address space.

It requires access not to the whole QEMU address space, but to the guest RAM. You (or Kubevirt really) need to configure a memfd memory backend so that we have a file descriptor that can be shared over the Unix socket.

Anyway single thread is better in terms of latency than 2 threads - QEMU and external process - having to communicate through any kind of IPC. I.e. if it uses shared memory then memory copying is probably not an issue but latency still suffers.

There is no inherent reason why notifying the QEMU process of new requests (or the guest of request completions from QEMU) would be faster than notifying the QSD process.
What could well be is that the vhost-user-blk export hasn't received as much optimisation work yet as the virtio-blk device implementation in QEMU, so while the performance should in theory be able to be the same, in practice I would expect some differences.

There is no inherent reason why notifying the QEMU process of new requests (or the guest of request completions from QEMU) would be faster than notifying the QSD process.

Maybe... we need some benchmarks to decide :) if the guest notifies QSD directly without switching to QEMU event loop first, then it may be the same, yeah. It may even be slightly better because I/O will be done in a separate process and won't share the CPU core with the rest of QEMU event loop. So yeah, in this case it's also an option :)

Note that this only really works when you use virtio-blk in the guest, though

It's fine, other drivers are worse anyway :)

So, okay, in this case if it looks better to you to implement qemu block driver support via QSD+vhost-user it looks fine to me, too :)

Generalizing a bit, I think KubeVirt should support vhost-user-blk. This allows another process on the same host to handle virtio-blk I/O without adding overhead. This architecture also keeps storage access credentials out of the QEMU process so a compromised QEMU process cannot steal the credentials.
Once KubeVirt supports vhost-user-blk UNIX domain sockets then @vitalif can build a qemu-storage-daemon (QSD) container image with the vitastore QEMU block driver and it can be used with KubeVirt. Perhaps the QEMU project can release an official QSD container image in the future too.
In the long term it may be possible to introduce a new volume type in k8s for vhost-user-blk. It would be an alternative to file and block volumes for applications that speak vhost-user-blk natively, like KubeVirt/QEMU. Then the vitastore CSI plugin could advertise vhost-user-blk support and avoid the NBD performance penalty.

It requires access not to the whole QEMU address space, but to the guest RAM. You (or Kubevirt really) need to configure a memfd memory backend so that we have a file descriptor that can be shared over the Unix socket.

Memfd is already the default memory backend in KubeVirt, so nothing to do on this front :)

Once KubeVirt supports vhost-user-blk UNIX domain sockets then @vitalif can build a qemu-storage-daemon (QSD) container image with the vitastore QEMU block driver and it can be used with KubeVirt. At that point CSI is being bypassed though.

For this we could define a new couple of volume and disk types. Then, we need a privileged component that perform the mounting inside the VM pod. This could be done by KubeVirt if it knows where to find the socket or by another process like it happened for CSI.
All this is possible, but we need a design proposal and a couple of use cases to justify the change in KubeVirt.

In the long term it may be possible to introduce a new volume type in k8s for vhost-user-blk. It would be an alternative to file and block volumes for applications that speak vhost-user-blk natively, like KubeVirt/QEMU. Then the vitastore CSI plugin could advertise vhost-user-blk support and avoid the NBD performance penalty. That would allow the vitastore CSI plugin to be used again instead of a KubeVirt-specific vhost-user-blk connection.

I'm not sure if this will be possible. I think in order to be accepted in CSI, it would need to be useful for standard containers or adopted by other projects (maybe kata containers). So, I'd suggest to focus for now to have a good integration with KubeVirt.

I'm not sure if this will be possible. I think in order to be accepted in CSI, it would need to be useful for standard containers or adopted by other projects (maybe kata containers). So, I'd suggest to focus for now to have a good integration with KubeVirt.

Yes, Kata Containers could connect to vhost-user-blk volumes. The device would appear as a block volume to the container running inside the sandbox VM.
You know KubeVirt, CSI, and k8s better than I do. If you think a good step is to define a KubeVirt volume type for vhost-user-blk then that sounds good.

We will probably need some thinking about vhost-user integration. A list of possible use-case will be very helpful to understand how this will be used.
@vitalif could you please let us know how it goes with the QSD and your custom driver.

@vitalif one additional suggestion.
From your description, you don't need to mount anything particular to the VM pod, and the storage should be reachable from the network. You could build the QSD with your driver and inject it into the virt-launcher pod. This can be achieved with a webhook (like istio is injecting envoy as sidecar). Once you have an additional container with your changes, you can share a directory between the virt-launcher container and the QSD container, so you can make available the vhost-user socket to libvirt. Unfortunately, you still need a second sidecar to modify the XML in order to pass the socket but this should be a relative simple and viable solution for your setup. You don't need to path QEMU and libvirt and you can have your own container images.


Hydration fails to acknowledge the assigned value on a selection field.

Problem
While experimenting with the Dioxus platform, I have discovered that select boxes and forms do not hydrate well.
After discussing this issue with @ealmloff, a member of the core, we have decided to isolate this case in a minimal app that showcases the problem with option select boxes.
As you can see, when you refresh the page, hydration does not happen correctly based on the server generated value set on the select field.
The expected behavior is to render option2, but it is currently displaying option1 instead, disregarding the assigned value.
Steps To Reproduce
https://github.com/boymaas/dioxus-select-bug
Expected behavior
I expect to see option2 after hydration, is displays the first value option1
Screenshots

Environment:
See the github repo
Questionnaire

[X] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[X] I don't have time to fix this right now, but maybe later

If someone could guide me in the right direction or suggest where to look to solve this hydration issue, I would be willing to give it a try.

This is because setting the "value" attribute on select with raw html actually does not set the select value, counterintuitively.
https://stackoverflow.com/questions/3518002/how-can-i-set-the-default-value-for-an-html-select-element
React actually handles this, so we could consider handling it. However, there are workarounds as highlighted in the stackoverflow.
In Solid, this isn't handled.


Calling a Lua function from JavaScript

I believe it is possible to call a function in Lua from C and get its return values. How can I do the same with emlua?
I've tried using the functions outlined here with emlua, but I am getting unexpected results.

You have to do the same thing using the bindings to Lua C API emlua provides. It should be mentioned in the readme that lua_* functions can be used as properties of Lua state object and luaL_* functions as properties of state.aux. Here is the example from PiL translated into js, including configuration script execution and a test call of f:
var emlua = require('./emlua.js');

var state = emlua.state();
state.aux.openlibs();

var script = 'function f(x, y) ' +
  'return (x^2 * math.sin(y))/(1 - x)' +
'end';

state.aux.dostring(script);

function f(x, y) {
  state.getglobal('f');
  state.pushnumber(x);
  state.pushnumber(y);

  if (state.pcall(2, 1, 0) !== 0) {
    throw('error running function `f`: ' + state.tostring(-1));
  }

  if (!state.isnumber(-1)) {
    throw('function `f` must return a number');
  }

  var z = state.tonumber(-1);
  state.pop(1);
  return z;
}

console.log(f(2, 3));
state.close();

Running this using node I get -0.5644800322394689 which is consistent with native Lua. Can you post how did you try this and what results did you get?

Thanks, I think I was using something other than state.aux.dostring.

I'm closing this for now, let me know if you have any other questions.


Editting PCL

Hi!
I just want to ask if I can edit or remove unwanted data from the point cloud data. Are there any tools for that?

If you want to edit a point cloud, you can use PCL.

This is a place to report lidarslam_ros2 issues, not a question area, so please be careful next time.


[docs] Fix error in Select options

[x] I have followed (at least) the PR section of the contributing guide.

@eedrah It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!


[Automation] REST Timeout for all Request

By default the GET and POST connection timeout is set to None which means it'll wait until the connection is closed. Now with this timeout the session will hang up post 10 seconds and free up the session for other test request to come in.

CI Went through.. awaiting standard suite test result to come in..


Error when trying to patch US boot.elf

Getting this when running build.bat, changing the patch name doesn't help.
Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\Infallible Daystar\Desktop\DSDB\debug.patch.elf'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at PatchElf.Program.Run(String inputPath, String patchPath, String outputPath, String verifyHash, Boolean addCave, Nullable1 desiredCaveAddress, Nullable1 desiredCaveSize, Nullable`1 originalCodeSize)
at PatchElf.Program.Main(String[] args)

Yeah I made a mistake when I pushed the new commits and hadn't had a chance to push a fix yet.
If you open build.bat in notepad, change debug.patch.elf to debug.elf.patch, then save, it should resolve the issue.

I had a error like this as well, but my .bat is already set to that, so I am confused, I wasn't sure if this was because digital copies of the US version of demon souls were supported or not.
Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\nsiuser\Desktop\demon souls debug stuff\debug.patch.elf'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at PatchElf.Program.Run(String inputPath, String patchPath, String outputPath, String verifyHash, Boolean addCave, Nullable1 desiredCaveAddress, Nullable1 desiredCaveSize, Nullable`1 originalCodeSize)
at PatchElf.Program.Main(String[] args)

If it's looking for debug.patch.elf you didn't modify the .bat file as suggested in my earlier comment. I still haven't pushed a fix for this yet.

If it's looking for debug.patch.elf you didn't modify the .bat file as suggested in my earlier comment. I still haven't pushed a fix for this yet.

I am dumb, I am so sorry!

It's all good, were you able to sort it out?

It's all good, were you able to sort it out?
Edit: digital copies should in theory be supported on PS3 directly. They run the same code (it's effectively an ISO image emulation... thing).
I don't know if RPCS3 ever got support for that though.

Yeah I was able to patch it, I just can't get it to run, even turned it into a .self. I would also like to clarify I am trying t get it set up on an actual ps3, not on rpcs3.


Remove writing of memcached config from evmserver

Follow-up to https://github.com/ManageIQ/manageiq/pull/21343
Do we need to write out memcached config from the main app?  What memcached options do we want to expose as knobs and can they be turned from appliance_console?
Currently this code is only used on appliance deployments as podified has a separate memcached pod.

Strongly support moving this to appliance console.

This will conflict with #21367 , but I want to merge that one first.

I agree, this should be in the appliance console.  We probably shouldn't merge until that is in place.
The only real downside to this change is that these numbers would have to be tweaked on every appliance, which is a pain.  However, it's unlikely these settings are even used at all anyway.
Can you also create a data migration to remove /session/memcache_server_opts from the settings changes, and also remove the defaults in this PR?

Updated the description with the list of TODO items

Actually, now that I'm thinking about it do we actually need these setting even in appliance console?  I can't think of the actual use case for it.  If I recall, we added them in early on mainly for debugging and as a safety net, but I don't recall ever changing them nor a customer even using them.  Maybe @jrafanie remembers?  @bdunne perhaps you can comment with respect to podified, and whether we actually need them or not?

Actually, now that I'm thinking about it do we actually need these setting even in appliance console

I think we did this kind of stuff to support a single memcached across multiple nodes. this allows for a load balancer in front of the appliance.
But it was too much of a pain and I remember Dan C. saying that customers just used active record/postgres session store or sticky sessions.
I vote to not port to appliance console

Okay I put in a schema change to drop any existing settings_changes and removed from settings.yml here.
If we don't want to expose these in appliance-console today then I think this is ready to go.
I think when we want to add the ability to have a centralized memcached (perhaps with cert-based auth) between appliances then it will make sense to add configuration to appliance-console.

In pods, we allow users to specify MEMCACHED_MAX_MEMORY, MEMCACHED_MAX_CONNECTIONS and MEMCACHED_SLAB_PAGE_SIZE in the CR.  I don't know if anyone has ever used anything other than the defaults, but it is configurable.
https://github.com/ManageIQ/manageiq-pods/blob/bc27d1d70f451d7f52abe62db94bba540df34960/manageiq-operator/pkg/helpers/miq-components/memcached.go#L38-L50
https://github.com/ManageIQ/manageiq-pods/blob/bc27d1d70f451d7f52abe62db94bba540df34960/manageiq-operator/pkg/helpers/miq-components/cr.go#L197-L219

I'm actually fine with that being configurable in pods but not in appliances, because the usage patterns are a little different.  For example, MAX_MEMORY matters more in podified due to the shared nature of the memcache instance, as opposed to appliances where every appliance essentially has a "hidden" internal memcache instance.

I think when we want to add the ability to have a centralized memcached (perhaps with cert-based auth) between appliances then it will make sense to add configuration to appliance-console.

Right, and if/when we do this in appliances, then we might need that configuration.

Actually, now that I'm thinking about it do we actually need these setting even in appliance console? I can't think of the actual use case for it. If I recall, we added them in early on mainly for debugging and as a safety net, but I don't recall ever changing them nor a customer even using them. Maybe @jrafanie remembers? @bdunne perhaps you can comment with respect to podified, and whether we actually need them or not?

I think we had some bad session habits of storing large objects in it.  I don't know that we fixed them all but there are some better diagnostics to print when we start storing things in there that we shouldn't.
I don't think we need to expose CLI verbosity for memcached or the maximum size of the storage.  I'd rather add that again if we need it in the future.  We should really just fix the code and not do memcached workarounds.

martin p lead a lot of work getting stuff out of the session.
Pretty sure the session size has been reduced a bunch since the mongo session days.


More threads/block for SmemPADiffusionApply3D

Flip the inner loops so we can thread in z without atomics.
This change has been tested in our code and passes all our regression tests.
CUDA Results
CEED ex1 results on 1 V100:
./go.sh -c lassen -m xlc -p 1 -n 1 -r ./tests/mfem_ex1/ex1.sh mfem_branch=<> mfem_devs=cuda problem=1

master
this branch

AMDGPU Results
CEED ex1 results on 1 MI100:
# modified the corona config a little
./go.sh -c corona -m hip -p 1 -n 1 -r ./tests/mfem_ex1/ex1.sh mfem_branch=<> mfem_devs=hip problem=1

master
this branch

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#2638
@tomstitt
@tzanio
@camierjs + @artv3 + @YohannDudouit
11/06/21
⌛due 11/20/21
⌛due 11/27/21

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Hi @tomstitt , this looks really good, I see that you use a different threading strategy to improve the performance, I don't really understand your reference to "atomics", can you elaborate what you mean by  "Flip the inner loops so we can thread in z without atomics."

Hi @tomstitt , this looks really good, I see that you use a different threading strategy to improve the performance, I don't really understand your reference to "atomics", can you elaborate what you mean by "Flip the inner loops so we can thread in z without atomics."

Hey @YohannDudouit , yes, sorry for the minimal notes, that was a comment to myself since I had tried another threading strategy that did involve atomics, I'm going to strike it since it isn't at all clear...
There are a few blocks that look like this next snippet and at first I thought we could add threads in z doing the following:
double u[D1D], v[D1D];
MFEM_UNROLL(MD1)
for (int dz = 0; dz < D1D; dz++) { u[dz] = v[dz] = 0.0; }  ////// thread in z
MFEM_UNROLL(MD1)
for (int dx = 0; dx < D1D; ++dx)    ////// thread in z
{
   const int i = qi(qx,dx,Q1D);
   const int j = dj(qx,dx,D1D);
   const int k = qk(qx,dx,Q1D);
   const int l = dl(qx,dx,D1D);
   const double s = sign(qx,dx);
   MFEM_UNROLL(MD1)
   for (int dz = 0; dz < D1D; ++dz)
   {
      const double coords = X[dz][dy][dx];
      u[dz] += coords * B[i][j];
      v[dz] += coords * G[k][l] * s;
   }
}
MFEM_UNROLL(MD1)
for (int dz = 0; dz < D1D; ++dz)  ////// thread in z
{
   DDQ0[dz][dy][qx] = u[dz];  ////// atomic add into DDQ0
   DDQ1[dz][dy][qx] = v[dz];  ////// atomic add into DDQ0
}

But instead we can just move the for (dz = 0 to D1D) loop to the outside (and by "Flip the inner loops" I meant that we flip the ordering of the middle loop in the snippet above so that for (dz = 0 to D1D) is outside of for (dx = 0 to D1D) instead of inside) and and get this PR:
MFEM_FOREACH_THREAD(dz,z,D1D)
{
   double u = 0.0, v = 0.0;
   MFEM_UNROLL(MD1)
   for (int dx = 0; dx < D1D; ++dx)
   {
      const int i = qi(qx,dx,Q1D);
      const int j = dj(qx,dx,D1D);
      const int k = qk(qx,dx,Q1D);
      const int l = dl(qx,dx,D1D);
      const double s = sign(qx,dx);
      const double coords = X[dz][dy][dx];
      u += coords * B[i][j];
      v += coords * G[k][l] * s;
   }

   DDQ0[dz][dy][qx] = u;
   DDQ1[dz][dy][qx] = v;
}

It looks great -  good if all the regression tests are passing too: thank you @tomstitt !

Merged in next for testing...


Small improvements README.md

Thank you, but this is not necessary. I'm also happy with the indentation as it is.


Create Permutation_of_string.cpp

Permutation of a string in C++

🛠 Issue (Number)

Issue no #
👨💻 Changes proposed

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

Inactive PR


Increment version for identity releases

Increment version for identity releases

Can one of the admins verify this patch?


Modify es post-processor options

#63

The processor function is supported. The latest version is exchangis1.1.1. You can pay attention to it.


BUG: Some patches are missed during inference

@sahpet observed that the final segmentation had holes (or patches/squares) in them, where there were tissue. It seemed to happen close to the border of the tissue. This did not happen for all WSIs, but happened often enough to be of annoyance.
The result was both visualized in FP and imported and visualized in QuPath. The same holes were observed, and it is therefore not a rendering issue. It is likely not a patch generation issue, but perhaps something wrong with the stitcher.

This has been fixed in the latest release of FAST and will be made available in the upcoming release of FP.


GPU Affinity

Hi!
Is there a way to get the GPU affinity of my program through lwjgl? I'd like to automate this process for laptops that have 2 graphic cards and select the high performance card. I'm using Java 8, lwjgl 3.1.1 and aim to achieve this task on Windows.
I've already read about Nvidia Optimus and found following stackoverflow topic: https://stackoverflow.com/questions/6036292/select-a-graphic-device-in-windows-opengl
However, they set a C flag and that's tedious to do through Java for mac, linux and windows when the rest of my application stack is all written in Java.
I've also found following lwjgl package:

org.lwjgl.opengl.WGLNVGPUAffinity

However trying to loop through EnumGpusNV crashes the JVM:

  	PointerBuffer gbuf = MemoryUtil.memAllocPointer(1024);
  	for (int i = 0; i < 5; i++) {
  		WGLNVGPUAffinity.wglEnumGpusNV(i, gbuf);
  		//System.out.println("gpu["+i+"]: "+gbuf.getStringASCII());
  	}

Are there examples on how to auto-select a GPU through lwjgl?
Thanks,
Thomy

There are no ways to do this other than what is described here: http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
Also, the Stackoverflow answer you are referring to about WGL_NV_gpu_affinity mentions this: But it is only supported on QUADRO series. and hardly anyone has a Quadro card in their Laptops.
However, I do, and I've tested WGL_NV_gpu_affinity on my Laptop, and funny enough, that extension is only exposed/exported by the driver iff you are already running on the dedicated Quadro card.
So, WGL_NV_gpu_affinity is really only meant to be used on workstations that have multiple Quadro cards installed.

Thanks for the quick reply! In that case I have to add a native binding. Will there be support in the future by the lwjgl library to enable that behavior by default?

Please note that even a native shared library will not help. The process module file must export that symbol. Even if lwjgl.dll did export it, it would not work. Your only option in that regard is to provide a custom java.exe/javaw.exe launcher, which is quite simple to do. Have a look at the JNI Invocation API.

Please note that even a native shared library will not help. The process module file must export that symbol. Even if lwjgl.dll did export it, it would not work. Your only option in that regard is to provide a custom java.exe/javaw.exe launcher, which is quite simple to do. Have a look at the JNI Invocation API.

For future reference, I wrote a blog post on this subject with code examples: https://www.dunikovsky.online/posts/nvidia-optimus-jvm/


New column in table for IP of the RH in the Resource Hosts View

Would be nice to have an IP address column here. The RH names are useless.

Done

I guess you mean LAN IP right @Dilshat ?

i mean IP from interface wan


Hey Athena on Ubuntu 14.04 LTS gives ALSA error

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)

Related: Kubuntu 15.10 with Realtek multichannel onboard audio (AC'97 Style)
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave

I should note that this isn't really an "error". It is more of an "info" message produced by ALSA that I would like to suppress (optionally).


sendNonFatalCrash only sends the info to fabric.io after calling sendCrash

Hi, first of all, awesome plugin, I have been using it and is very good :)
Right now I have a request to log Non-Fatal Crashes, right now the sendNonFatalCrash function works but you have to call the sendCrash function after it in order for the app to actually send the info to Fabric.
So for example, if I do this:
window.fabric.Crashlytics.addLog('test 1');
window.fabric.Crashlytics.sendNonFatalCrash();
window.fabric.Crashlytics.addLog('test 2');
window.fabric.Crashlytics.sendNonFatalCrash();
and then I wait for and hour, there's no new Non-Fatal crashes reports in Fabric.
I have to call window.fabric.Crashlytics.sendCrash(); to actually see the Non-Fatal crashes in Fabric.
Thanks.
Robert

Basically the plugins is doing a direct call to the Fabric SDK using reflection, so... you must check if the Fabric SDK us having the issue you mention. Maybe you can try updating the SDK.

Still the same.
I did this:
-"cordova platform remove android"
-"cordova platform add android"
-Removed this plugin
-Added this plugin
-Opened platforms/android project using Android Studio, installed Crashlytics (Answers and Appsee too)

Sorry to re-open an old issue, but this describes the issue I'm facing perfectly. Is it possible that this is a regression?

I installed the plugin and was waiting for my non-fatal crash on Fabric's dashboard...
It appears that the the non-fatals crash are either

send with the next fatal crash
send at the next app start

@seza443 that's exactly it, did you implement a workaround or something?

@jpmsegurado nope, just live with it 😄


Combine garage_door and rollershutter to cover

Description:
Sorry @n8henrie, I went ahead with this, but please chime in if you'd like :)
WORK IN PROGRESS
This Is first draft for combining the garage_door and rollershutter components.
The services are:
open_cover - opens the cover so you can walk/see through it.
close_cover - closes the cover so you can't walt/see through it.
set_cover_position - sends the cover to a specified position.
stop_cover - stops the moving of the cover.
Special services for blinds:
open_cover_tilt - opens the tilt of the cover or increase if you like.
close_cover_tilt - closes the tilt of the cover or decrease if you like.
set_cover_tilt_position - sends the cover tilt to a specified position.
stop_cover_tilt - stops the tilt of the cover.
also
a new state attribute is added for the tilt position.
First I want to discuss the base of this component before going ahead to migrate the platforms.

[ ] tests
[x] command_line rollershutter
[x] demo rollershutter and garage_door
[x] homematic rollershutter
[ ] mqtt rollershutter and garage_door
[x] rfxtrx rollershutter
[ ] rpi_gpio garage_door
[x] scsgate rollershutter
[ ] wink rollershutter and garage_door
[ ] zwave rollershutter and garage_door

Related issue (if applicable): fixes #
https://www.pivotaltracker.com/n/projects/1250084/stories/118556451
#1949
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#
Example entry for configuration.yaml (if applicable):
cover:

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

No worries, I was obviously not making much progress (in large part due to not fully understanding the inner workings / how things were implemented).
Relevant to the issue and PR I'd been working on, what is the best way to implement optional services / state attributes? @balloob referenced light bulbs and brightness, which looks like this.

First I want to discuss the base of this component before going ahead to migrate the platforms.

Definitely seems like a good idea -- I spent a lot of time working on the individual platforms, which became a mess, and I was eventually recommended to drop them from my PR and worry about it later. I should have done this from the start.

I would have suggested not to add the tilting in the initial commit of the merge just to keep thing small 👍  Anyway, now that you added it, we need some tests for it on the cover demo to ensure it's working.
For the rest it looks great 👍

The demo and test is already migrated and extended😆

I suggest also Blind support, but i think the webcontrol for it is missing

will this be in the new release, thinking about knx integrate my blinds :-)

It depends on if I get it finished😛 I only have some issue/thoughts about the mqtt platform then the backend code should be ready. Then modify the frontend to support the tilt function.

Will do a KNX Integration Compontent when your base "Cover" component is finished or is it in dev already?

It's not in dev yet, but the base of the cover is already ready for use, so you can just check it out locally and start your work. :+1:

Wow, that escalated quickly :) Cleanup of others old code too :thought_balloon:
Ah... well :wrench:

Sorry, figure if you're in there, might as well clean it up...
On Aug 21, 2016 10:25 AM, "John Arild Berentsen"<EMAIL_ADDRESS>wrote:

Wow, that escalated quickly :) Cleanup of others old code too 💭
Ah... well 🔧
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/pull/2891#issuecomment-241267041,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC2fZdw8r6eRSYB8Ay9H4iCygx-cBiCNks5qiHwJgaJpZM4Jo0hM
.

No problem!:) Up for a challenge

#2896 changes should probably be included in this PR too.

Can you add the following line at the top of setup(hass, config) of the garage door and rollershutter components (adjusted for line length):
_LOGGER.warning('This component has been deprecated in favor of the "cover" component and will be removed in the future. Please upgrade.')

Wohaaa! Test passing :dancers:

I approve! I'd like one more set of eyes before I merge

I approve 🐬


Tracking: Implement emitter API

Per #41, implement the emitters api for all of our emitters (oss and Azure)

[ ] Determine how to do the validations currently in OnBuild in emitters
[x] Determine how to update the language server to support validation in emitters
[x] Determine mechanism for performing emitter validations in the language server for non-imported emitters

[x] Do we use configuration to determine which extension we call OnValidate for

[ ] Add size estimate for remaining work after this PR

I updated Friday the emitter PR to have the language server load the cadl config of the project and be able to load the emitter. This solve the main part of this problem.
If we want to think about separating the validation from the emitting then I think this is now a completely independent task and might not even make sense for some emitter:
onValidate would only get called if you import the library(so if you want to use some decorators from it or the validation it does)

[ ] for emitters, OnBuild -> OnEmit
[ ] config for public (openapi3)/private(cadl-autorest) repo default openapi emitter // no work, I think
[ ] ensure cadl-rpaas-controller.OnEmit is called during compile // no work, I think
[ ] cadl emit generate config file
[ ] document the configuration file


Fix simplifyCheckedCastAddrBranchInst to properly destroy the value.

Fixes a change from earlier today that popped up on ASAN.
The fix also uses a more idiomatic approach to destroying values.

@swift-ci smoke test and merge.


Add .difficulty adjustments command

Need sigmabot to answer questions about mining hashrates and difficulty adjustments. Here is one response from Flying Pig that we can modify and standardize (h/t @cafebedouin):

Difficulty is changed every 720 blocks and is calculated as an average of the hashrate over the last 8 epochs.
The algorithm will over time get back to 2 minutes blocktime (right now its 3.5 minutes as a result of a massive influx of miners who drove the difficulty up and then left the network)

thank you @cafebedouin
https://github.com/Eeysirhc/sigmabot/pull/43


Namespace of ApplicationInsightsJavaScriptExtensions.cs

The namespace of ApplicationInsightsJavaScriptExtensions.cs is still Microsoft.AspNet.Mvc.Rendering
Shouldn't it be Microsoft.AspNetCore.Mvc.Rendering?

Hello,
We didn't merge the aspnetcore changes to master yet. Please pull the develop branch to get the CLI updates.
Thanks


Are credentials required to view or work with the data?

If so, consider providing some mention about what credentials are used (in the broad sense) and how one might obtain permission to the data. If not, consider mentioning that this is publicly available data and possibly extend the code to use anonymous/unsigned mechanisms for reproducibility (and avoid awscli configurations).
Originally posted by @d33bs in https://github.com/WayScience/JUMP-single-cell/pull/1#discussion_r1161984680

I think this has been resolved with pr #25, so I'll close this issue


Ferdi hangs logging into new or existing account — "Could not load services and user information"

I am having the same issue described in issue #200

To Reproduce
Open Ferdi, this screen appears immediately
Expected behavior
Should load added services without hanging.
Desktop (please complete the following information):
OS: [e.g. iOS] Windows 10 Pro 21H1 19043.1288
Browser [e.g. chrome, safari]: N/A
Version [e.g. 22]: 5.6.2
Additional context
Prior to this issue emerging, Ferdi had stopped working properly with one of three MS Teams services. After deleting and re-adding that service a few times, I uninstalled Ferdi using Revo, rebooted, and reinstalled Ferdi. The failure to load issue has persisted for approximately 72 hours.
I have tried logging out of Ferdi and logging back in per suggestions in the issue #200 thread. But that did not work.
I was able to import my configuration settings and get Ferdi to function. But it will not load any services if I am logged into my account.

I also tried to create a new account and it hangs in a similar manner. I have tried to connect via a VPN to rule out any firewall or DNS issues (both with a new account and my existing account) and that hasn't helped.

My suspicion is that the button-click is not triggering. @mhatvan - is there a way to check this? Maybe start with a new Ferdi profile and see?

Also seems to be related to: https://github.com/getferdi/ferdi/issues/2039
Button-click is obviously triggered because there is a loading spinner on it.
Yes, this will need some investigation with a fresh account from scratch.

@vraravam / @mhatvan — thank you for your responses. Any suggestions for what I can do in the meantime to continue to use Ferdi? It's also non-functional on my Mac in addition to Windows. So the issue may be with my account or the client software more broadly.
Many thanks.

@RollingOnChrome - can you please try this without a server? ie "use Ferdi without a server" option when starting Ferdi on a fresh machine (or deleting the ferdi profile).

@vraravam — when I use it without a server I am able to get it to function.
Using any account, either new or old, causes the issue described above.
Thanks.

The remote server's only function is to be able to store the set of services that you have opted for, and the workspaces that they are in as well. Custom configurations, icons, etc are anyways not stored in the remote server.
With this being the case, I would strongly suggest that you use Ferdi without a server. IF you want to take a back of these same settings (the ones that are stored in the remote server), you can use the Help > Import/Export configuration data menu item to do so. Other than this, the remote server is useless.

Thanks, @vraravam. I use Ferdi on a couple of different computers. So, using an account is convenient.
Is there something wrong with my installation? My account? Do you have a sense of the underlying issue?
Many thanks!


Changed the aggregatePublisherStatsByProducerName config default to true

Motivation
The index-based publisher stat aggregation(configured by aggregatePublisherStatsByProducerName=false, default, triggered by pulsar-admin topics partitioned-stats api) can wrongly aggregate publisher metrics if each partition stat returns a different size or order of the publisher stat list. To avoid this issue, aggregatePublisherStatsByProducerName=true is the better default choice, as the state aggregation will be grouped by a unique key,  producer names.
Discussion Thread:
https://lists.apache.org/thread/vofv1oz0wvzlwk4x9vk067rhkscn8bqo

Modifications

Updated the aggregatePublisherStatsByProducerName config default to true.

Verifying this change

[x] Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[x] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/heesung-sn/pulsar/pull/19

Do we need a PIP to change the default configuration value? It will require a VOTE process.
For now, it's not explicitly listed in the PIP wiki. WDYT? @codelipenghui @eolivelli

We need a PIP to change the default value. The default value has been released since 2.10.0

Raised a PIP : https://github.com/apache/pulsar/issues/19125


Add field to config

The default drift field is made a model attribute so that it can be set via a configuration file instead of changing the value of DEFAULT_DRIFT_FIELD in x1t_sr1.py. This is useful to adapt the current drift field value which was set to the field value of xenon1T SR1 to the nominal drift field value in xenonnT. Note that the drift field is still a single value throughout the entire TPC (drift field is not a function of position).
The changes in this PR affect both fd.SR1ERSource and fd.SR1NRSource via p_electron in each of these sources. To ensure that the changes do not induce any bugs in the fitting process, MC events were simulated and fitted for both fd.SR1ERSource and fd.SR1NRSource.
For fd.SR1ERSource, the optimizer converged as expected (the biases are still there, but this is a known feature) when floating the full set of ER model parameters.

For fd.SR1NRSource, the optimizer converged as expected (the biases are still there, but this is a known feature) when floating the NR model parameters except Lindhard K, which @Ashley-Joy does not intend to float from his other studies.

Testing notebook available upon request.

I would also give the possibility of reading the drift field from a map in the same PR. This still sets the drift field as a constant, no?
One idea would be to implement it through a flag? or through a check if the drift field is given as a map, or a map path, and if not, use the fixed config.

This PR is meant to be small and quick just so that I can come up with the config file for nT which can be used by the other xenon flamedisx folks.
Reading in the full drift field map as a function of (x,y,z) would be accompanied by the associated field distortion map, distortion correction map and pos-rec smearing functions which are in the add_fdc branch but not ready to be merged yet.

I agree with Pueh on this. Loading from a map is a much larger project that is lower in priority. We are using a fixed value right now, and it's important we be able to adjust this through a config file (or at least not through recompiling code). This will all get overwritten later, but not soon enough that this change isn't worthwhile.


the big date extract rewrite

this is mainly a code backup of a WIP rewrite of the date extractor https://github.com/HelloChatterbox/lingua-nostra/pull/26

@coderabbitai review


Update setup.md

add curl http methods to command line examples for modifying DNS settings for DNSSEC
Summary

Screenshots (optional)

Documentation checklist

[ ] The documentation style guide has been adhered to.
[ ] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
[ ] Files which have changed name or location have been allocated redirects.

Hi @chris-martinelli
Whenever there's a --data / -d argument, curl will use the POST method by default and therefore we don't include it, per our guidelines.
Also, forcing a method with --request / -X can have unintended consequences, because the method won't change as expected when the server replies with a 30x redirect.


Add minimal readme

Can be a separate PR, but who are maintainers?

@AkihiroSuda should be low churn on this repo given it's history, cc'ed you on a slack thread


Diffusion Policy

I train the model with the --policy_class Diffusion parameters,but the error occurred：
Traceback (most recent call last):
  File "imitate_episodes.py", line 682, in <module>
    main(vars(parser.parse_args()))
  File "imitate_episodes.py", line 187, in main
    best_ckpt_info = train_bc(train_dataloader, val_dataloader, config)
  File "imitate_episodes.py", line 562, in train_bc
    policy = make_policy(policy_class, policy_config)
  File "imitate_episodes.py", line 203, in make_policy
    policy = DiffusionPolicy(policy_config)
  File "/home/lenovo/code_ws_python/act-plus-plus/policy.py", line 72, in __init__
    ema = EMAModel(model=nets, power=self.ema_power)
TypeError: __init__() missing 1 required positional argument: 'parameters'

Can you provide some help?

Hello,
When I changed the line as below
ema = EMAModel(parameters=nets, power=self.ema_power)
it started to train. However, during the inference I get another error. I will ask a question about it later.

@barsm42 have you found a solution to this? I am searching for one myself, I encountered the same problem

@barsm42 have you found a solution to this? I am searching for one myself, I encountered the same problem

Not yet, unfortunately.

@barsm42 I found it, it works but the parameters need to be set differently. try this:
python3 imitate_episodes.py
--task_name aloha_mobile_wipe_wine
--ckpt_dir /scr/tonyzhao/train_logs/wipe_wine_diffusion_seed0
--policy_class Diffusion --chunk_size 32
--batch_size 32 --lr 1e-4 --seed 0
--num_steps 100000 --eval_every 100000 --validate_every 10000 --save_every 10000
The problem is that if it's evaluating the policy for every 500, 2000 or another small stepnumber, then diffusion policy isn't working well it needs to be higher. I achieved the best result for the command above, if you use eval_every 6000 and onscreen_render you can directly see the improvements after 6000 steps instead of 100 000 steps

Thank you for your reply.
In my code, I dont have --eval_every 100000 --validate_every 10000 --save_every 10000 args.
imitate_episodes.py gave error for those arguments.

can you post a screenshot? Those arguments are definitely part of the imitate_episode.py script, look at this section "def main(args):
set_seed(1)
# command line parameters
is_eval = args['eval']
ckpt_dir = args['ckpt_dir']
policy_class = args['policy_class']
onscreen_render = args['onscreen_render']
task_name = args['task_name']
batch_size_train = args['batch_size']
batch_size_val = args['batch_size']
num_steps = args['num_steps']
eval_every = args['eval_every']
validate_every = args['validate_every']
save_every = args['save_every']
resume_ckpt_path = args['resume_ckpt_path']"

I don't have these four arguments. I searched with Ctrl+F in the script, there is not any variables as eval_every and the rest.
eval_every = args['eval_every']
validate_every = args['validate_every']
save_every = args['save_every']
resume_ckpt_path = args['resume_ckpt_path']"

@QueirosJustin,
What should I do for that arguments?

Hi guys, maybe just used the EMAModel class from Diffusion Policy, it will help you to solve that issue!


Plugin not working

Have followed the basic view and the advanced config, will not work with the rgb bulbs, please contact me for help on this.

To be clear, is it working with non-rgb bulbs for you?


Add SPF/DKIM to emails

We have a bunch of emails which drops because of lack of authentication on our emails through Sendgrid.
Adding those headers should help.

The emails you send out via SendGrid already have the correct SPF and DKIM signatures, they're attached automatically by SendGrid. Reason for this is that SendGrid uses a sendgrid.com address in the MAIL FROM command and this will pass most email provider filters since it's valid. It may not pass on some exceptionally restrictive providers. I think to overcome that you need to use whitelabeling.

Thanks @BenChapman for the investigation :+1:

Whitelabeling done

Updated first comment to reflect real issue/actions

email link whitelisting done


feature: add ConfigsWithSourceNames() function

add an api to query all configs key values along with its source, extra details can be used for debugging.

感谢贡献，非常棒的ut，不过注释并非必须，赞

感谢贡献，非常棒的ut，不过注释并非必须，赞

many thanks! great repository btw.


Change required inputs message

First of all, thank you for this magnificent tool. It always makes me happy to see markdown and code combined together (I implemented a ruby gem that runs tests embedded in markdown :)
One minor suggestion:
When there is a required input that is not entered, the error message is:
Task has required inputs:
        xc hello [NAME] [HEIGHT]
        NAME=[NAME] HEIGHT=[HEIGHT] xc hello

I believe the square brackets are incorrect in this context, as they denote "optional".
Perhaps this?
Task has required inputs:
        xc hello NAME HEIGHT
        NAME=... HEIGHT=... xc hello

or, the below which creates a distinction between an environment variable name (CAPS), and a <placeholder> string:
Task has required inputs:
        xc hello <name> <height>
        NAME=<name> HEIGHT=<height> xc hello

Note that in this case, it is common to have the string between <...> in lowercase.

@DannyBen thanks for the kind words, and the suggestion! ❤
I like the second suggestion more. I'm open to contributions if you want to submit a PR. Or I can cover this off when I get around to it!

if you want to submit a PR

Since my Go is rusty (no pun intended), I'm gonna gave to say: "maybe" :)

Happy to help if needed, I'll leave you to it but let me know if you give up :)

Released in v0.0.169


Scala Stubs is missing scala.scalajs.js package object

Using js.native, js. Any, js. Object etc. is not implemented in scalajs-stubs which affects defining defining a trait that implements js.Any in a shared folder forcing code duplication.

Hum... How is it reasonable to define a trait that implements js.Any in a shared folder? Such a trait will have JS calling conventions (e.g. runtime overloading dispatch), which is not (and IMO should not) be implemented on the JVM.
Could you give us more info about your use case?

It would be very useful to have only one definition of the models used in the requests to the API as these are used both in Scala.JS and in JVM.
If we are not allowed to used js.native in a shared folder, then these have to be defined twice, which is not ideal.
On the other hand I also understand your worry, but if it's only a stub it should not have any of the JS calling conventions, it will practically be ignored, right?

On the other hand I also understand your worry, but if it's only a stub it should not have any of the JS calling conventions, it will practically be ignored, right?

No, unfortunately not. A type extending js.Any having JS calling conventions is one of the fundamental cornerstones in Scala.js interoperability design (if you are interested, have a look at the talks about internals).
The problem is that the Scala.js compiler uses subtyping to check how to call a method. For example:
trait FooJVM {
  def foo(x: Int)
}

trait FooJS {
  def foo(x: Int)
}

def useFooJVM(foo: FooJVM): Int = foo.foo(1)
def useFooJS(foo: FooJS): Int = foo.foo(1)

Although the two definitions of the useFoo variants look very different, they will compile to very different code (simplified):
function useFooJVM(foo) {
  return foo.foo__I__I(1);
}

function useFooJS(foo) {
  return foo.foo(1);
}

As you can see, the method names are not the same. This is because of the calling convention distinction. If we would allow Scala style classes to extend JS types, that call would lead to an error at runtime, since the method is not defined.
If you want to augment your Scala types with JS calling conventions however, you can do that:
// Shared.
trait Foo {
  @JSExport // The export will propagate to subtypes implementing this.
  def foo(x: Int): Int
}

// In JS land only.
trait FooJS {
  def foo(x: Int): Int
}

// In some method
def jsMethodUsingFoo(x: FooJS): Int = js.native

def useFoo(x: Foo): Int = jsMethodUsingFoo(js.use(x).as[FooJS])

I added two extends js.Object that were missing in @gzm0's code snippets.

I'm actually wondering if that pattern above is sufficiently common so that we should add support for it... Seems not doable without macro-paradise in user space :S
OTOH it would be doable as another, independent compiler plugin :-/

@gzm0 I think what @cipacda wants is to have a stupid simple stub like this:
package scala.scalajs.js

trait Any
class Object extends Any

Which I assume he would use to define shared model data types such as
class Foo(val x: Int) extends js.Object

On the JVM, that would just be a normal JVM-style class, which happens to extend a no-op class (js.Object).
It is easy to think there is no harm in doing something like that. But then the semantics of the same code would be different on JVM than on JS, and I really do not like that.

Yes, I understand that and I absolutely agree that we should not do this. But I can see how there is value in having a simple way to express the following: "I want a simple Scala trait I can use on the server and client. I also want to pass that trait to JS methods".
My snippet emulates exactly that but contains a lot of boilerplate...

I agree that this will not be ideal to have different semantics on JVM than on JS, but would really be great to be able to use simple traits on both the server and the client, this being one of the main reasons we chose to use Scala.js and to avoid boilerplate.
The snippet you have provided would work, but is not ideal as will add a lot of duplicate (ish) code when a project grows.

I agree that this will not be ideal to have different semantics on JVM than on JS

It would be worse than not ideal. The reason you are able to write cross-compiling code to begin with, is that Scala.js preserves the semantics of Scala/JVM to a very high degree. Most compile-to-JS languages do not have that property.
Every compromise on that property weakens the ability to cross-compile code, instead of improving it.

What I do not understand is why you need a trait that extends js.Any. If you just want to have the same objects on both ends, make them normal (non-Scala.js) classes and you are done.
Please let us know more about your use case.

Because I need to cast from a Javascript object I get when completing a form (via Angular) to the Scala.js object and use that. That only work if I use a facade.
I had them as normal objects initially and had trouble casting them...

Related to: http://stackoverflow.com/questions/39095278/scala-js-with-angular-type-casting

I'm going to close this as as-designed.
I understand there can be use cases where one wants some data structure that is a facade on JS but still exists in some form on the JVM. However, I believe this should not be part of the core language nor tooling, as it definitely has semantic issues. In general, I would recommend to use a shared normal case class, and user-defined implicit conversions to/from a facade trait.


Fix/karma fixes

Current coverage is 91.14%

Branch #1 has no coverage reports uploaded yet.

No diff could be generated. No reports for master found.

Powered by Codecov. Updated on successful CI builds.