Producer enable.idempotence

@h1alexbel thank you for reporting this. I'll assign someone to take care of it soon.

@h1alexbel this is your task now, please go ahead. Deadline (when this ticket should be closed) is 2023-05-22T11:52:18.131666.
Estimation here is 60 minutes, that's how much you will be paid.
Remember, you don't have to solve everything in this ticket - you can solve it partially and leave todo markers in the code, which will become future tasks.
If you have any questions don't ask me, I'm not a technical person. Open new tickets instead.
If you don't have time or simply don't want to work on this, you can always resign.

@h1alexbel thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard.


module input / output with nested modules

#185 attempted to address this but the solution doesn't work for nested modules
ie. root module contains module a and module b, feeding output of a to b, but module b has a two child modules c and d, that it tries to pass through outputs from module a as inputs to c  and d. currently it appears those inputs in module c and d appear blank.

Previous pr has some additional context
https://github.com/cloud-custodian/tfparse/pull/187

Looks like #195 had some additional changes/fixes/tests to cover this case. Nested modules appear to work as expected now.


scopus.utils not found

This will probably be a really newbie question, and for that I apologize. I am just starting with python on Windows and hitting a lot of speedbumps. :) Running Anaconda 3, and I already have my environment set to use the scopus libraries. When I change directory to where scopus_api.py is and try to run it, I get an error:
(C:\Users\schultz\Anaconda3\envs\scopus) C:\Users\schultz\scopus>scopus_api.py Traceback (most recent call last):   File "C:\Users\schultz\scopus\scopus_api.py", line 5, in <module>     from scopus.utils import get_content, get_encoded_text, ns ImportError: No module named scopus.utils

I have been trying a bunch of different things. Finally I ran this which seems to find everything needed, but I have no clue why I had to do this:
(C:\Users\schultz\Anaconda3\envs\scopus) C:\Users\schultz\Anaconda3\envs>set PYTHONPATH=C:\Users\schultz\Anaconda3\envs\scopus\Lib\site-packages\pip_vendor
(C:\Users\schultz\Anaconda3\envs\scopus) C:\Users\schultz\Anaconda3\envs>python -m scopus.Lib.site-packages.scopus.scopus_api.py

Yes that is a standard thing that Windows users have to do, unfortunatly.  It's to tell python where to look when there are relative imports.  scopus.utils is such a thing: It wants to import the submodule utils in "folder" scopus.

Thanks. I am still very confused, though. For instance, now I am trying to run some verification tests, but I cannot find test_ScopusAbstract.py at all - it is not on my harddrive at all. Is it possible that when I installed scopus using an older commit point that I did not pick up the tests directory?

These tests are only in the repo and not part of the installation package.  You don't need them to run scopus.
If you want to have them, the easiest way is this: Fork the repo and clone the fork on your computer.   But since you are on version 2.1 now (I reckon) they will likely fail.

I apologize for coming back to this, but I am having a headache trying to wrap my head around this. So I closed down Anaconda, and after coming back to it later in the day, I see that the "pip_vendor" directory is gone, and thus the "requests" module can no longer be found. I don't understand why it was even in the pip_directory to begin with (see where I set PYTHONPATH above). Again, I realize this is probably really basic Python stuff and not specific to scopus, and I apologize.
`(C:\Users\schultz\Anaconda3\envs\scopus) C:\Users\schultz\Anaconda3\envs\scopus\Lib\site-packages>dir
Volume in drive C has no label.
 I keep thinking "there has got to be a better way to do this!" grin

Since I never worked with Python on Windows nor with anaconda I really cannot help you on this.  My suggestion would be to go without anaconda and install Python 3.5 without editor (i.e. IDLE) and write in script mode instead.


Side drawer for web and mobile

Do we want the back button to close the drawer on Android? If so, can you add a TODO and we'll come back later?

Do we want the back button to close the drawer on Android? If so, can you add a TODO and we'll come back later?

You should just be able to swipe it open/closed. Were you not able to close the drawer on Android?

Do we want the back button to close the drawer on Android? If so, can you add a TODO and we'll come back later?

You should just be able to swipe it open/closed. Were you not able to close the drawer on Android?

Yup! I could close it the normal way. But hitting the back button pulled me out of the app. I don't use Android enough to know if that's expected or I should expect the drawer to go away.

Do we want the back button to close the drawer on Android? If so, can you add a TODO and we'll come back later?

You should just be able to swipe it open/closed. Were you not able to close the drawer on Android?

Yup! I could close it the normal way. But hitting the back button pulled me out of the app. I don't use Android enough to know if that's expected or I should expect the drawer to go away.

Oh interesting! I didn't think to use that button but I'm sure people might try. I just tested with the Sleeper app (for fantasy teams if you haven't used it) and they do allow the back button to close the drawer. I'll add that TODO


AngularJs binding issues with inner JSON object #15744

I'm submitting a ...  (check one with "x")
[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Trying to bind json object to the html elements in a webpage. Json returned objects have inner objects as well which is sometimes null as well. If crtain property is null then i still need to show div but with some hard coded values which i am trying to do with ng-if. But it does'nt work for me whereever i use ng-if these are binding from the returned inner employeeList object. Please suggest if two ng-repeats will be used here and ng-if is applicable here??
Expected behavior

The expected result should be to show all the html elements if certain property is absent from the inner object then the else condition should be visible. (else condition here means ng-if where condition is (!=)).
HTML Code

{{p.company}}

{{p.department}}

			   {{ p.Value | date: "hh:mm:ss" }}

JSON
profileData: [
  		      {
                 ID: "1",
                 employeeList: [{"Value":0.003,"Stat":{"parameter":0,"Name":"test0","Tag":"Devo100"}},
                               {"Value":0.004,"Stat":{"parameter":0,"Name":"test1","Tag":"Devo101"}},
                               {"Value":0.005,"Stat":{"parameter":0,"Name":"test2","Tag":"Devo102"}}],
                 comapny: "MSDFT",
                 department: "Sales"
                },
                {
                 ID: "2",
                 employeeList: null,
                 comapny: "MSDFT",
                 department: "HR"
                },
  			  {
                 ID: "3",
                 employeeList: [{"Value":0.003,"Stat":{"parameter":0,"Name":"test0","Tag":"Devo100"}},
                               {"Value":0.004,"Stat":{"parameter":0,"Name":"test1","Tag":"Devo101"}}],
                 comapny: "MSDFT",
                 department: "Development"
                },
  			  {
                 ID: "4",
                 employeeList: [{"Value":0.1,"Stat":{"parameter":0,"Name":"test2","Tag":"Devo102"}},
                               {"Value":0.25,"Stat":{"parameter":0,"Name":"test1","Tag":"Devo101"}}],
                 comapny: "MSDFT",
                 department: "Finance"
                },
  			  {
                 ID: "5",
                 employeeList: [{"Value":0.233,"Stat":{"parameter":0,"Name":"test0","Tag":"Devo100"}}],
                 comapny: "MSDFT",
                 department: "Accounts"
                }
  			]

What is the motivation / use case for changing the behavior?

It's a requirement
Please tell us about your environment:

Java with AngularJS.

Angular version: 1.0.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]
ES5
Node (for AoT issues): node --version =

I don't think this is a bug, your code looks invalid to me.

This has to be changed to

Next you need to put all elements with a binding on emp, inside the div above (and use === instead of ==):

Tag was Devo100

This doesn't look like a bug, but a general support question.
Please keep in mind that Github issues are reserved for bugs and feature requests.
For general support questions, feel free to ask for help in any of the channels mentioned here.

Thanks @frederikprijck for answering this!

So Can't it be done with one ng-repeat??

@imzubair10 No, your second ng-repeat is incorrect.

Thanks corrected now but problem is still same.

{{p.company}}

{{p.department}}

			   {{ p.Value | date: "hh:mm:ss" }}

			   0

There are couple of issues here i am facing.
What i wanted to do is
1-If employeeList is empty  , then still div and span for else condition should be created
2- If any of the property is present for employeeList then still div and span must be created whichever is not present then create the else one.
Looks like if employeeList is empty then it does'nt go inside creating div and span which is understood. To address this is there a better way to do something like this.
and if condition does'nt work properly it displays both values so else is always present if (if) is true

Hey @imzubair10, there's plenty of people who're willing to help you over at the channels mentioned at the bottom here.
Feel free to DM me over at gitter (https://gitter.im/angular/angular.js) with a reproduction sample (plunkr) and I'll be happy have a look.

@frederikprijck  i've shared plunker on gitter (https://gitter.im/angular/angular.js)


Remove RichEmbed helper

It's useless to load the whole RichEmbed helper for one comand which is used only once. It's better to write each RichEmbed in each command.
The other solution would be to create a subfolder in util in which each file would be for only one RichEmbed.

Related to #72.


Updated description for the device count APIs. No breaking changes

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[x] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

Can one of the admins verify this patch?

@jlian, the merge is blocked by model validation errors which are not related to your change. The current process requires you or your team to fix model validation error before merging this PR unless you have urgent need for merging this PR.

@jlian, could you address the comment above?

https://dev.azure.com/azure-sdk/public/_build/results?buildId=215321&view=logs&j=8d2f9c49-cd83-5a9d-f3fe-2fd651afa742&t=43324f1f-6724-5d61-785f-f0ac9fd256a1
Says build not found
I'm not sure if we would have bandwidth to fix the errors especially since this should be just simple string update


Response to the client formatted correctly

At this point, my API responses to the client with the id of the job to be processed by IBM speech to text service and then the client can make a GET request to receive the status of the transcript, if the transcript is ready, the API returns the transcript with some other information. 😋

I liked it😀


Add resizing support for gfx_window_sdl

Added some functions similar to those in gfx_window_glutin so you can resize the viewport according to the window size.

Nice, thank you!

Published in https://crates.io/crates/gfx_window_sdl/0.7.0


Help convert-dof, register -> ANTs

I would like help converting a dof file produced by register for use in ANTs.
I apply the following command:
register ${OUTPUTPREFIX}_t2w_restore_brain.nii.gz $DRAWEMDIR/atlases/non-rigid-v2/T2/template-40.nii.gz -dofout ${OUTPUTPREFIX}_template_dof.gz -parin $DRAWEMDIR/parameters/ireg.cfg -threads $OMP_NUM_THREADS -v 0

I assume this gives the transformation from  $DRAWEMDIR/atlases/non-rigid-v2/T2/template-40.nii.gz to ${OUTPUTPREFIX}_t2w_restore_brain.nii.gz
Because I then use
transform-image $DRAWEMDIR/atlases/non-rigid-v2/atlas-9/structure$strnum/40.nii.gz $strems -dofin ${OUTPUTPREFIX}_template_dof.gz -target ${OUTPUTPREFIX}_t2w_restore_brain.nii.gz -interp Linear

To register each of the tissue type probability maps to the native image.
My question is how do I convert the dof transform to ANTs format? Specifically, to get the forward and inverse non-linear warps and the affine portion in ITK format? I can't find any examples of how to do this with convert-dof.
Thanks so much in advance.

I figured it out. Just putting it here incase someone wants it.
I use wb_command to convert the world displacement to ITK format.
convert-dof template_dof.gz testWarp.nii.gz -source ~/dev/MCRIBS/MIRTK/MIRTK/Packages/DrawEM/atlases/non-rigid-v2/T2/template-40.nii.gz
wb_command -convert-warpfield -from-world testWarp.nii.gz -to-itk testWarpITK.nii.gz

Then testWarpITK.nii.gz warps ~/dev/MCRIBS/MIRTK/MIRTK/Packages/DrawEM/atlases/non-rigid-v2/T2/template-40.nii.gz to my native image correctly under ANTs.


Step Functions workflows -- integration -- rhodes

As a user of Troposphere, I've always found it...jarring...to drop back into JSON whenever I want to define Step Functions state machines. I go from a relatively user-friendly interface for building my resources programmatically to once again hand-crafting JSON.
This makes me a sad panda. :(
With that in mind, I started work a little while ago on something that I hope will be a good solution to this: Rhodes[1][2].
My goal with Rhodes is to create an analogous experience for Step Functions state machines as Troposphere provides for CloudFormation templates and to integrate closely with Troposphere so that they can be used in conjunction to easily and simply define state machines as part of CloudFormation templates (this later is still a WIP).
It's still very much early days, but most of the additions that I have in mind at this point are creature comforts and I wanted to get some more eyes on this and I figure folks around here might be interested. I also realized as I was starting to build out some of the service integration helpers that while I have quite a bit of experience with Step Functions itself, there are a lot of corners that I have not yet tread, so all the more reason for me to get feedback from others who have used the service in other ways.
One of the many things I still have left to do is building out good documentation for the library, but anyone interested in seeing how it works can check out the examples[3] that I have put together.
Any comments or suggestions are welcome. :)
[1] https://github.com/mattsb42/rhodes
[2] https://pypi.org/project/rhodes/
[3] https://github.com/mattsb42/rhodes/tree/master/examples/src

Nice! I'm sure numerous people run into the same issue with using json for
Step Functions. Thanks for sending a note to the mailing list letting us
know about your project.
Mark
On Tue, Nov 19, 2019 at 12:22 AM Matt Bullock<EMAIL_ADDRESS>wrote:

As a user of Troposphere, I've always found it...jarring...to drop back
into JSON whenever I want to define Step Functions state machines. I go
from a relatively user-friendly interface for building my resources
programmatically to once again hand-crafting JSON.
This makes me a sad panda. :(
With that in mind, I started work a little while ago on something that I
hope will be a good solution to this: Rhodes[1][2].
My goal with Rhodes is to create an analogous experience for Step
Functions state machines as Troposphere provides for CloudFormation
templates and to integrate closely with Troposphere so that they can be
used in conjunction to easily and simply define state machines as part of
CloudFormation templates (this later is still a WIP).
It's still very much early days, but most of the additions that I have in
mind at this point are creature comforts and I wanted to get some more eyes
on this and I figure folks around here might be interested. I also realized
as I was starting to build out some of the service integration helpers that
while I have quite a bit of experience with Step Functions itself, there
are a lot of corners that I have not yet tread, so all the more reason for
me to get feedback from others who have used the service in other ways.
One of the many things I still have left to do is building out good
documentation for the library, but anyone interested in seeing how it works
can check out the examples[3] that I have put together.
Any comments or suggestions are welcome. :)
[1] https://github.com/mattsb42/rhodes
[2] https://pypi.org/project/rhodes/
[3] https://github.com/mattsb42/rhodes/tree/master/examples/src
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudtools/troposphere/issues/1523?email_source=notifications&email_token=AAE4ABVUDNBAT3Q3H2B7N5TQUOO4DA5CNFSM4JO7SK4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2IRJNA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE4ABRAAT6ZSBS75NM2B6DQUOO4DANCNFSM4JO7SK4A
.


Drop patch numbers from deps versions

There's usually no reason not to want a higher patch number, and Rust's semver bumps it anyway.

Having patch numbers in the dependencies creates a checkpoint for you in case of regression. The semver system is not perfect as it is used by people. So sometimes not only do packages ship things not correctly but there are also many other things that can go wrong. Having the patch number gives you the oldest version of the package that you have ever used so I would leave it

I meant from a packaging point of view - running cargo install without --locked will get the newest patch number regardless of whether its specified in Cargo.toml or not.
To achieve immovable version we'd have to specify it as "=0.21.1" but that is wildly discouraged.


uint: Implement modulo operations for special moduli

For a project of mine where the modulus can be chosen to be close to UInt::MAX, I created optimized implementations of modular operations. I thought maybe others can benefit from them, too, so I ported my implementation to the crypto-bigint crate.
This commit implements modulo operations (neg, add, sub, mul) for special moduli that are so close to MAX that the difference to overflow fits in a single Limb. For such moduli, these new implementations are much faster than the existing generic modulus implementations. (For mul there's no comparison since there's no corresponding generic modulus implementation, yet.)
For U256, I benchmarked the generic against the specialized implementations using criterion-rs on Intel Core i7-8565U @ 1.80GHz and obtained the following average times. Note that I used a const modulus known at compile-time, which enables some compiler optimizations after inlining. With a modulus known only at runtime, times might differ.

U256::add_mod
U256::sub_mod
U256::mul_mod

generic (after #109 got merged)
10.857 ns
9.6262 ns
not implemented

_special
3.8276 ns
4.1339 ns
20.188 ns

This looks reasonable enough at first glance. Give me a little more time to more thoroughly review it.

I had an error in my benchmarks, namely I forgot to pass the inputs through black_box. I corrected the original post with updated benchmark results.

Thank you!


ModuleNotFoundError: No module named 'setuptools.extern

setuptools version
setuptools>=40.8.0
Python version
3.11.9
OS
Linux
Additional environment information
Github CICD Pipeline is failing - the run can be seen here
https://github.com/rtdip/core/actions/runs/9992039920/job/27655534592
Description
Get the below error in the output section on python -m build when running a CICD Pipeline in Github
Expected behavior
Python build should complete
How to Reproduce
python -m build
Output
Run python -m build
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - setuptools >= 40.[8](https://github.com/rtdip/core/actions/runs/9992039920/job/27655534592#step:6:9).0
* Getting build dependencies for sdist...
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.[9](https://github.com/rtdip/core/actions/runs/9992039920/job/27655534592#step:6:10)/x64/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.[11](https://github.com/rtdip/core/actions/runs/9992039920/job/27655534592#step:6:12).9/x64/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 308, in get_requires_for_build_sdist
    return hook(config_settings)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/build-env-yv5365m2/lib/python3.11/site-packages/setuptools/build_meta.py", line 330, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/build-env-yv5365m2/lib/python3.11/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
    self.run_setup()
  File "/tmp/build-env-yv5365m2/lib/python3.11/site-packages/setuptools/build_meta.py", line 497, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/tmp/build-env-yv5365m2/lib/python3.11/site-packages/setuptools/build_meta.py", line 3[13](https://github.com/rtdip/core/actions/runs/9992039920/job/27655534592#step:6:14), in run_setup
    exec(code, locals())
  File "<string>", line 23, in <module>
ModuleNotFoundError: No module named 'setuptools.extern'

To be fair, when I created the extern name, I did not make it private as I was unsure if users would need to reach into it. It's possible though unlikely that I even endorsed other users using it, which if I did was a bad choice on my part.
But agreed - the best thing for rtdip to do here is to (a) declare packaging in the build-requires for the package, and (b) import packaging directly. That approach should work for Setuptools before and after v71. Oh, as I look more closely, I see that packaging isn't used at all in the setup script. So just remove that line.
Unfortunately, that won't fix previously-published builds. I hope that's an acceptable compromise.

I got the same Problem when i tried to install OpenHands. Do you know how to solv it


Backoff prototype

@davidszotten for your consideration.
I've added this directly to nameko, but it could easily exist as a standalone library containing the Backoff classes and subclasses of the RPC and Messaging components.

This is failing because Travis uses RabbitMQ 3.4.3, but 3.5.4 is required for this feature. See https://github.com/rabbitmq/rabbitmq-server/issues/216

Consider using https://github.com/rabbitmq/rabbitmq-delayed-message-exchange

Closed in favour of #6, which is raised against master


post ts support for stream_metab_usa

This has merge issues, but I am leaving it open and will resolve. These changes were required for me to do the remake for stream_metab_usa for binary timeseries

@jread-usgs, you interested in renaming this PR? as far as i can tell this isn't about archiving tses, is it?

renamed ;)
Will be cleaning this up soonish.

ok, cleaned up conflicts.

:+1:


DoubleNegation default style (allowed_in_returns) should allow methods with rescue blocks

obs.: This is probably more a feature request than a bug - please let me know your thoughts.
Expected behavior
Since RuboCop's Style/DoubleNegation cop default configuration (allowed_in_returns) allows this:
def db_ok?
  !!db.query('1 + 1')
end

I would expect it to also allow this use of double negation:
def safe_db_ok?
  !!db.query('1 + 1')
rescue DatabaseError
  false
end

That probably means to also allow this other usage:
def safe_db_ok?
  !!db.query('1 + 1')
rescue DatabaseError
  !!ENV['DATABASE_URL']
end

Actual behavior
RuboCop's Style/DoubleNegation flags the double negation usage on any method that contains a rescue block.
RuboCop version
1.19.0 (using Parser <IP_ADDRESS>, rubocop-ast 1.10.0, running on ruby 2.7.3 x86_64-darwin20)

I think this is a false positive because it should be accepted as a similar semantics.


e2e: fix aws offline test

What problem does this PR solve?:
make packer-aws-offline-override.yaml previously did nothing. this should fix it
Which issue(s) does this PR fix?:

https://jira.d2iq.com/browse/D2IQ-NUMBER

Special notes for your reviewer:
Please run:
 make packer-aws-offline-override.yaml
 cat packer-aws-offline-override.yaml

on the main branch and this branch and see if things changed.
In between switching do make infra.aws.destroy

Does this PR introduce a user-facing change?:

This only the older bash script based e2e right?

Does this mean we weren't running the AWS tests in air-gapped?

I was able to get the infra references populated in the packer-aws-offline-override.yaml file when running make packer-aws-offline-override.yaml from main branch.

I was able to get the infra references populated in the packer-aws-offline-override.yaml file when running make packer-aws-offline-override.yaml from main branch.

same here!

Ok this is good news i'll make clean and try agian

This seems to have been an issue local to me.
I think this PR could still be helpful because it clears up names, but the e2e tests were working fine. I'll change the title to chore


Tools: CP fix fpgainfo phy  link status (mapping bits in consecutive ord…

…er for active ports) (#2428)
HSSI Spec: 2x1x100G shell active lanes are 0-3 and then 8-12, HSSI_STATS (UP/DOWN)  register bit field  corresponding to respective port/ indexed by the port, example bit-0 for port 0.
Current N6000 Shell HSSI_STATS register bit field  mapping the lanes to register bits that are consecutive, example bit0 for port 0, bit4 for port8
HW team proposed workaround is implemented in fpgainfo sw to fix link status , OPAE SW reads the bits in consecutive order for active ports.
Signed-off-by: anandaravuri<EMAIL_ADDRESS>

Coverage decreased (-0.001%) to 61.333% when pulling 4b1c81234d35fc525ecee9d2021f1ed5d7cbe01b on aravuri/cp_fpgainfo_status into 04388105af117dc2d48b1bb221c2a94bc2be71af on master.


Issue with Push Consumer in RocketMQ-Clients CPP

The issue is as follows: each time I try to use the Push Consumer or Simple Consumer, the program crashes with the error message "terminate called without an active exception." The command I am running is:
example_simple_consumer Configuration： topic="TEST" access_point="<IP_ADDRESS>:8081" group="GROUP"

It looks like you're connecting a locally deployed cluster. You probably need to check if your cluster is running normally.


Update machine incorrect limitation and response

Under "Limitations", this shows "Update machine only appends tags to the tag collection" and under "Response", this shows "If machine tags collection in body doesn't contain existing machine tags - 400 Invalid Input and a message informing of the missing tag/s." However, the API call does not return HTTP 400 error or append the tags. It replaces all tags with the tags provided in the request body. So, if the existing tags are "tag1" and "tag2" and the request body only has "tag3", it removes the first two tags and adds the third tag.

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

ID: de75f8e0-de5a-d4b2-b1ec-b720115ef6ae
Version Independent ID: 41a298e5-65fe-8a4b-ca34-bb0390005dbd
Content: Update machine entity API
Content Source: microsoft-365/security/defender-endpoint/update-machine-method.md
Product: m365-security
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@MastaDisasta Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/6033
Once the author approves the PR, the changes will be live.
Thanks
Sri

@msbemba Thank you very much for the contribution and updating the documentation with PR. @MastaDisasta Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


It takes too much time to prepare paper.

Hi:
Thanks for the amazing project!
However, when I use it to open some local pdfs, it sticks here for hours.

The pdf is available here: https://aclanthology.org/2021.acl-long.494.pdf .
Any help is appreciate.
Creling

Same problem, occurred on every local paper I tried.


Unit tests for plot modules

Description
The idea of this issue is to explore whether there is a way of setting up unit tests for the plot modules. At the moment, tests are only making sure every works fine without returning error, but does not check for an expected behavior.
Additional information
This issue has been opened following https://github.com/motleystate/moonstone/pull/9/files

Closed after discussion with @AgnesBaud


YAML output format in RakeTask

Hi!
Looks like there is no option to enable YAML output format in RakeTask.
Could you please add it?

This should be pretty straightforward to implement


Starting on Hub / Settings

Closes #1

Adds working logout button
Adds skeleton Settings menu
Adds firstName and lastName registration fields

Sounds good,  can change the register method to pass through more params.


Questions about chinese font "Kaiti"

Hello, first of all thank you about creating this great theme for us.
And now the question is : it's weird to find my blog's chinese font cannot display in the right form because they're good 3 days ago.   The characters can be seen, but they didn't display as Kaiti, and I don't know what font they are :(
I use the default "Kaiti" the same as your own blog. I never changed fonts before.
My thought:

First, i think browser didn't render the font, so I use other browser(firefox), but the problem is still here.
Then I think it's my Mac's problem,  I use my iPhone to test my site, but I think it's not my mac's fault.
I also change the css file in the source.css, and it didn't work, too. (I didn't forget to make css:)

So it's hard for me myself to solve this problem alone, could you please give me some advice? Thank you very much!  (my browser and my computer's os: chrome,  macOS high sierra)

The chinese font of my blog is now like this:

Thanks for the report.
Anything includes fonts is like usual in my Macbook and iPhone, you'd better check your font whether installed on your computer, maybe.


[Improvement] LineLengthExceeded could display lines

I've a minor suggestion for the output message of LineLengthExceeded: Line numbers would be awesome :smiley: It works as it is for small files but it takes quite a while in large Main files.
Line length exceeded on 1 line(s) in file "src/Main.elm".

Source
https://github.com/stil4m/elm-analyse/blob/master/src/Analyser/Messages/Util.elm#L467-L478
I think for duplicates it's already implemented to print ranges:
https://github.com/stil4m/elm-analyse/blob/master/src/Analyser/Messages/Util.elm#L315-L345

Good point. I use elm-analyse mostly as UI (elm-analyse -s) and then I do not encounter this issue. I must keep a broader mind when I implement these things. 🤐

@andys8 What about something like this:
Line length exceeded on line(s) [12,30] in file "docs/Docs/Configuration.elm".
Line length exceeded on line(s) [33,36,46,61,89,99,102,107] in file "docs/Docs/Features.elm".
Line length exceeded on line(s) [55,80,101] in file "docs/Docs/Home.elm".
Line length exceeded on line(s) [123,168,190,797] in file "docs/Docs/MsgDoc.elm".

Awesome :smiley:


Bug: When the user picks a date on Android the date is offset by 1 month

In this bit of code
public void PickerClosedEvent(string time)
        {
            DateTime dt = DateTime.Parse(time);

            //DateTime dt = DateTime.ParseExact(time, formatDate, CultureInfo.InvariantCulture);
            if (OnPickerClosed != null)
                OnPickerClosed(dt);
        }

The time is coming back wrong. For January it's returning 2019-0-22 instead of 2019-1-22
This is causing an issue because the C# DateTime class can't parse out a date with the month 0.
On the Java side I think this code
public static void ShowDatePicker(int year, int month, int day) {
        DatePickerDialog datePickerDialog = new DatePickerDialog(UnityPlayer.currentActivity,
                new DatePickerDialog.OnDateSetListener() {

                    @Override
                    public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {

                        String s = String.format("%d-%d-%d %d:%d:%d", year, monthOfYear, dayOfMonth,0,0,0);
                        UnityPlayer.UnitySendMessage("MobileDateTimePicker", "PickerClosedEvent", s);
                    }
                },
                year, month, day);
        datePickerDialog.show();
    }

is causing the issue when it format's the date out. The variable monthOfYear is off by 1 I believe.

Bug Fixed Here :

Thank @benjaben. I fixed


The provided token is invalid

I'm using the token from https://discordapp.com/developers/applications/me/, and it says the provided token is invalid. I've tried generating new tokens multiple times. I'm using the example code.

Thats no JDA issue... Please be sure you copied the whole token and pasted the whole token in JDABuilder#setToken(String token).
JDA = new JDABuilder(AccountType.BOT).setToken("<token here>").buildBlocking();

Also be sure to copy the token only and not more


Find max undefended Cells

💥 Proposal
Theodore implements a new strategy game “Defense of a Kingdom”.
On each level a player defends the Kingdom that is represented by a rectangular grid of cells.
The player builds crossbow towers in some cells of the grid.
The tower defends all the cells in the same row and the same column.
No two towers share a row or a column.
The penalty of the position is the number of cells in the largest undefended rectangle.
For example, the position shown on the picture has penalty 12.
Help Theodore write a program that calculates the penalty of the given position
Have you read the Contributing Guidelines on Pull Requests?
Yes
I want to work in C++

/assign


Implement ECS health check in api task definition

User Story - Business Need
In order to have reliable deploys, and only create ECS tasks when they are healthy, we should ensure that we have health checks in place for our ECS containers, specifically our API container.

[ ] Ticket is understood, and QA has been contacted (if the ticket has a QA label).

User Story(ies)
As a    VA Notify developer
I want  container level health checks for our API task
So that we can have reliable, healthy deployments
Additional Info and Resources

At a high level, ECS health checks work in two ways:

The target group performs health checks to the task on a specified port and path
The ECS service will perform container based health checks before marking the task as HEALTHY

We currently implement target group health checks for API (number 1 from above), but we do not implement ECS container based health checks (number 2 from above). This means that tasks API tasks are marked as healthy prematurely. We want to implement a health check in the task definition so that the API task is marked healthy once its container check passes.
https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/healthcheck.html
We already do something like this for Celery (https://github.com/department-of-veterans-affairs/notification-api/blob/main/cd/application-deployment/prod/vaec-celery-task-definition.json#L280)
Acceptance Criteria

[ ] A health check is implemented in the ECS task definition for our API

QA Considerations

Potential Dependencies

Hey team! Please add your planning poker estimate with Zenhub @coreycarvalho @cris-oddball @EvanParish @k-macmillan @kalbfled @MackHalliday @mchlwellman

Keeping. Confirming that Flask is still running.

Yesterday, I started looking at wait-for-it, since we have it in our repo but then realized it was doing the same thing the ECS health check pinger was doing, so I switched to curl, which means including it in the container (it's not there).


Implement Persistent Subscription API.

Waiting on #32 to handle Not Leader exception use cases.

Current status: Ack/Nack are currently ignored when sent. I'm using structured UUID constructor. Will try to use string constructor instead.


THIS WILL FIX THE MOST RECENT GOOGLE ISSUE

all i need to see is the text message come through and backup. this app is a dream!!! Please fix. Is there any work around the google restricted access at this time?  I know others have put fixes out there but i dont want to waste my time trying if the developer says no

You will have to go to advance setting SMS Backup+ then go into customize imap and set the imap.gmail.com:993 and use you email as user ID and your password. Make sure the authinication is set to clear text and security is tls.
After that go to a PC and login to gmail, in the right hand corner click the cog then setting then goto the tab "forward and pop/imap". Under the imap access change it to enable.
Now go to you gmail account settings on the left side click security. Scroll down to less secure settings and turn it on.
Now you should be able to continue to use the app. It is just not as secure.

The above worked for me. It was working fine until this morning. So this fixed it. Thanks

But can't get it to work on my wife's phone. She has pixel XL and I have pixel 3 xl

If you have 2FA enabled for your google account, you'll have to generate an app specific password.
https://support.google.com/accounts/answer/185833?hl=en

I'm having the same issues. I can't seem to find the security tab to change to less secure settings. Where is that?

I'm having the same issues. I can't seem to find the security tab to change to less secure settings. Where is that?

https://support.google.com/a/answer/6260879?hl=en

I'm having the same issues. I can't seem to find the security tab to change to less secure settings. Where is that?

https://support.google.com/a/answer/6260879?hl=en

SIGN INTO GMAIL
GO TO MY ACCOUNT
SECURITY
LESS SECURE APP ACCESS HALF WAY DOWN PAGE
TURN ON

I'm having the same issues. I can't seem to find the security tab to change to less secure settings. Where is that?

https://support.google.com/a/answer/6260879?hl=en

SIGN INTO GMAIL
GO TO MY ACCOUNT
SECURITY
LESS SECURE APP ACCESS HALF WAY DOWN PAGE
TURN ON

Got it. Thank you

So the above worked, but it won't complete a back up. Keeps failing. It shows my last back up from December 2016 and wants to backup 30k+ messages :(

my backup started too. i hit stop. it duplicated some old ones but after that new messages were there too

You will have to go to advance setting SMS Backup+ then go into customize imap and set the imap.gmail.com:993 and use you email as user ID and your password. Make sure the authinication is set to clear text and security is tls.
After that go to a PC and login to gmail, in the right hand corner click the cog then setting then goto the tab "forward and pop/imap". Under the imap access change it to enable.
Now go to you gmail account settings on the left side click security. Scroll down to less secure settings and turn it on.
Now you should be able to continue to use the app. It is just not as secure.

I tried this but can't find "less secure settings " under "gmail account settings".  Could you please provide a screenshot to help?

r u doing this from phone or desktop. easier on a computer

r u doing this from phone or desktop. easier on a computer.....go to manage Google account from your phone.....security tab will be on top

I am doing it from the PC version.  I tried it on my phone and the "LESS SECURE APP ACCESS" option still isn't' there.   Underneath Manage third-party access it says "Signing in with Google", then "Password Manager".

"Security" is under Google settings... Not Gmail.
My backup keeps failing once it gets to about 500-700 messages. I have like 34k. I definitely do not want that many dups and it'll take me forever to finish. So I'm gonna just wait until this issue is resolved.

"Security" is under Google settings... Not Gmail.

Yes, I am under the Google settings.

@Spinak627  I have 2-Step Verification turned on.  Might that have anything to do with it?

it could. i don't have that on

Ok. That's why it wasn't working.
So I turned off the 2-Step, then selected the option for Generated app password and made the App password.
So it appears 2-step verification is not compatible with this app.

Mine doesn't work with or without 2-step. Hopefully this is fixed soon.
I hope it doesn't back-up a bunch of duplicates once it is repaired

make sure sleeping apps is off. this made mine work

@flordagirl it's not necessary to turn off 2FA, and indeed you'd be crazy to do so. Generated app passwords can be used without 2FA even when 2FA is enabled -- that's what they're for.
Make sure you use a separate app password for each app that needs one, so that you can revoke just the one app that gets compromised and not all of them.

My sms are being backed up now. Thanks for the help. BUT my call log is not being backed up. Any help would be great! Thanks.
You will have to go to advance setting SMS Backup+ then go into customize imap and set the imap.gmail.com:993 and use you email as user ID and your password. Make sure the authinication is set to clear text and security is tls.
After that go to a PC and login to gmail, in the right hand corner click the cog then setting then goto the tab "forward and pop/imap". Under the imap access change it to enable.
Now go to you gmail account settings on the left side click security. Scroll down to less secure settings and turn it on.
Now you should be able to continue to use the app. It is just not as secure.

I'm having trouble!
So when I go into customize imap, which do I choose? (see image)
Also, do I need to manually type in my email (for user ID) & my email's password (for password).
Also, how do you choose authentication to clear text? I did not see that option.
I do not have 2-step verification set so I don't think I need to create the whole app password process.

clear text means plain text....choose that.  yes type in email and pw....email will save and bd shown but pw will save but be invisible

@ineedhelp637 as teezeu mentioned, "plain text" and "clear text" mean the same thing.
However I would strongly encourage everyone to use a separate password for each app rather than their main login password, so that if an app is compromised, its password can't be used to modify the security settings of your account, and you can revoke the access for just that one app, without breaking everything else. And conversely, you don't have to update your apps when you change your login password.
"Now" is always a good time to turn on two-factor authentication.

thanks everyone, it worked!

It's not clear on the long term, did i
I overlook or miss an update?

After reading this thread #973 the app is now working with workarounds. I'm not clear also in reading the outlook for long term application viability and doesn't appear to be developer support. There's no good alternatives available. I'm reading so much interest keeping it going and hope this can be made to continue and work...

I'm having the same issues. I can't seem to find the security tab to change to less secure settings. Where is that?

https://support.google.com/a/answer/6260879?hl=en

here's a direct link to the option:
https://myaccount.google.com/lesssecureapps

@whatistime  PLEASE use 2fa, don't suggest user to lower their security level.
Follow @3choBoomer  and @kurahaupo comments above.

https://myaccount.google.com/lesssecureapps

"This setting is not available for accounts with 2-Step Verification enabled. Such accounts require an application-specific password for less secure apps access. Learn more"

Why won't he just fix the app according to Google's requirements?

@flordagirl Because "Google's requirements" are political, not technical. Jberkel and I have both tried to get around them.
Google's position is essentially that "sensitive scope" access to Gmail will only be granted to programs whose primary purpose is to be an email program, so they see backing up non-email data as out of scope.
It's difficult to make the case that this program fulfills a need for email users when its name includes "SMS" "Backup" and does not include "Email", which is why I have raised renaming the project as a bug report.


[BUG] - _TypeError: Null check operator used on a null value in IosControlsDocumentLayerState.computeLayoutDataWithDocumentLayout

Package Version
  super_editor:
    git:
      url: https://github.com/superlistapp/super_editor
      ref: 35fdfc11598a64bee99a2c682d4a6a5b7d789384 #latest stable from 14.may.2024

only on iOS
_TypeError: Null check operator used on a null value
  File "ios_document_controls.dart", line 684, in IosControlsDocumentLayerState.computeLayoutDataWithDocumentLayout
  File "document_layers.dart", line 50, in DocumentLayoutLayerState.computeLayoutData
  File "content_layers.dart", line 948, in ContentLayerState.build
  File "framework.dart", line 5599, in StatefulElement.build
  File "framework.dart", line 5487, in ComponentElement.performRebuild
  File "framework.dart", line 5650, in StatefulElement.performRebuild
  File "framework.dart", line 5203, in Element.rebuild
  File "framework.dart", line 2905, in BuildOwner.buildScope
  File "binding.dart", line 1136, in WidgetsBinding.drawFrame
  File "binding.dart", line 443, in RendererBinding._handlePersistentFrameCallback
  File "binding.dart", line 1392, in SchedulerBinding._invokeFrameCallback
  File "binding.dart", line 1313, in SchedulerBinding.handleDrawFrame
  File "binding.dart", line 1171, in SchedulerBinding._handleDrawFrame
  File "zone.dart", line 1399, in _rootRun
  File "zone.dart", line 1301, in _CustomZone.run
  File "zone.dart", line 1209, in _CustomZone.runGuarded
  File "hooks.dart", line 314, in _invoke
  File "platform_dispatcher.dart", line 419, in PlatformDispatcher._drawFrame
  File "hooks.dart", line 283, in _drawFrame

@escamoteur Please include in the description the steps required to trigger the issue.

I I knew I would have provided that. Sentry does not give me more information


Null safety migration

@zihejia hi, with recent dart 2.12 and flutter 2.0 releases are there any plans for migration to null safety?
I'd be happy to open a PR for null safety if it isn't already in the works.

@zihejia great, created a PR #9, could you please take a look?

@zihejia hi, sorry for pinging, but are there any chances that you will take a look at the PR?

hi @incendial thank you so much for the PR, we will take a look by this week.

Hi @incendial, 1.1.0 has released and it has null safety support, thanks again! https://pub.dev/packages/mixpanel_flutter


JSON clickable in SSMS - how do I see it as formatted text?

I watched a video from Channel 9 about using the various JSON functions and operators. In the demo, when the engineer would click the hyperlinked query results in SSMS (like shown in example 2 above), it would format the JSON as text with indentations, etc. But when I click one, it opens as a .xml and I am shown all the red squiggly lines because obviously it is not xml. How do I achieve the result the engineer in the video was getting?

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

ID: ffb5c17b-c567-303f-00b8-0c8a0ad15fb5
Version Independent ID: a4ccc766-4a61-5b7a-e5dd-692e3cebb503
Content: Format Query Results as JSON with FOR JSON - SQL Server
Content Source: docs/relational-databases/json/format-query-results-as-json-with-for-json-sql-server.md
Product: sql
Technology: ****
GitHub Login: @jovanpop-msft
Microsoft Alias: jovanpop

@fatman45 -- Ron, thank you for your questions.  You may find answers here:

DBA Stack Exchange
Stack Overflow


STYLE: Replace vnl_vector[vnl_vector.size() - 1] by vnl_vector.back(). Also add vnl_vector::front()

Follow-up to pull request #2099 (STYLE: Replace container[container.size() - 1] by container.back()), commit 5eb4697 (6 November 2020)
Discussed with Hans @hjmjohnson at https://github.com/InsightSoftwareConsortium/ITK/pull/2099#pullrequestreview-525170416

Oops, a few build errors:
https://open.cdash.org/viewBuildError.php?buildid=6885446
https://open.cdash.org/viewBuildError.php?buildid=6885441

Thanks Dženan @dzenanz Just fixed the front() and back() members of vnl_vector_fixed, and the typo reported by Jon @jhlegarreta
Hans @hjmjohnson has already added them to vxl: pull request https://github.com/vxl/vxl/pull/810

VXL updates coming soon.

See and rebase on #2111


Polyfill web serial on Android

This should make ESP Web Tools work on Android. Not tested yet.
Via https://github.com/espressif/esptool-js/pull/144

You can simply import 'web serial polyfill' into your own project and implement 'navigator. serial' instead of modifying the source code to make it bloated

Bloated? You must have missed the use of the dynamic import. It's not loaded when a user doesn't need it.

What I mean is that compatibility with Android doesn't actually require 'esp-web-tools' to achieve it. We can use'web-serial-polyfill'to improve'navigator.serial '

Good point.


Flutter2.5.0 primaryColor wrong

ThemeData appLightTheme = ThemeData.light().copyWith(
  primaryColor: Colors.white,
);

result: still default

Hi @anchao-lu Theres a work in progress to migrate ThemeData to ColorScheme here's a related issue for the same https://github.com/flutter/flutter/issues/36624
Please try this instead
ThemeData appLightTheme = ThemeData.light().copyWith(colorScheme:ThemeData.light().colorScheme.copyWith(primary: Colors.white));

Hi @anchao-lu Theres a work in progress to migrate ThemeData to ColorScheme here's a related issue for the same #36624
Please try this instead
ThemeData appLightTheme = ThemeData.light().copyWith(colorScheme:ThemeData.light().colorScheme.copyWith(primary: Colors.white));

Why give up primaryColor? The colorScheme is too complex.

@anchao-lu This is an intended change to make Material Themes easier to use and understand. You can read more about it in Material Theme Updates document. Closing this issue as its working as intended, If you disagree feel free to write in the comments and I will reopen it.
Thank you.

The release notes do not mention this (breaking) change. The primary color is not applied and

2.3.0 didn't reach stable. When upgrading from old stable (2.2.3) to new stable (2.5.0), primary color do not apply anymore (but it's not deprecated, i don't know why) and I have some white text on white background. I will find how to fix myself but it's strange to not alert users in release notes

when I set
ThemeData appLightTheme = ThemeData.light().copyWith(colorScheme:ThemeData.light().colorScheme.copyWith(primary: Colors.white));

I have some white text on white background while ExpansionTile is expanded

Please follow up here for further investigation on the issue: https://github.com/flutter/flutter/issues/89839


Updates data/phones/README.md with instructions to re-scrape

[x] Updated Unreleased in CHANGELOG.md to reflect the changes in code or data.

Closes #279.

Sure, that makes sense to me. I'll make the edits.

Okay, I made the edits. Does it look good to you @kylebgorman ?


Proper alignment of images, content and enhancement of blog section

@unnati914 di I would like to work on this please assign it to me.

Hi, I would like to work on this


Pyramid Plunder display correct doorway

Possibly op?

I think this is fine as long as it is only for what you have seen. IE it isn't synced per world by anyone using RL.

Honestly kind of curious how the doorways actually work...i know they change and that if your in the room with some1 else its the same door for both of you...but if the other person has left by the room it changes (can tell because a skele/swarm will be right outside the door they went through)
So maybe it changes if room is empty or not? Idk assume some pattern to it

AFAIK its on a timer similar to Kourend Library where its the same location for everyone on that world for 20-30 minutes and then it will switch. That is why its better to run Pyramid Plunder in groups since you can figure out which door is good.
I think what you need to do is check when the player successfully goes through a door and mark it. One door per level and then if they go through another door mark that one. It wouldn't update for other players going through a door, but it would at least tell you where you know it works.

Looks like this is not possible other than tracking when other player goes through the doorway before you, what we do not really want to implement


Import types/funcs from github.com/twitchtv/twirp/... instead of generating them.

I have multiple proto files and I want all of them to be generated into a single directory. As a result, I have "redeclared in this package" error caused by redeclaring types like HTTPClient, TwirpServer and functions like newServerOpts, WriteError, writeError, and others.
Maybe it would be better just to import them instead of generating them in every .twirp.go file.

The duplicate definitions are omitted as long as all the clients are generated by the same protoc call. See this test package as an example of multiple services in the same directory. You can find the command used to generate the code in gen.go

The duplicate definitions are omitted as long as all the clients are generated by the same protoc call.

@3ventic I believe this doesn’t hold if you structure the service directory differently while generating clients in the same protoc call The resultant api.twirp.go for service2 will not have the shared Twirp types, e.g., HTTPClient as the filesHandled check at https://github.com/twitchtv/twirp/blob/82820bb18559d5a0cc4af61eb189beeaefd9a76d/protoc-gen-twirp/generator.go#L238-L240 assumes there’s a single output directory.
protoc -I=./rpc --go_out=paths=source_relative:./rpc --twirp_out=paths=source_relative:./rpc ./rpc/service1/api.proto ./rpc/service2/api.proto

rpc
└── service1
    └── api.proto
└── service2
    └── api.proto

@3ventic here’s an example: https://github.com/jeffreylo/twirp-multiple-services/blob/806fbd4dc88a73af8ebc10c8baae0a0e9f99ecca/rpc/cordswainer/v1/service.twirp.go#L40. This was generated with the Makefile command:
protoc \
	-I=./rpc \
	--go_out=paths=source_relative:./rpc \
	--twirp_out=paths=source_relative:./rpc
	rpc/haberdasher/v1/*.proto rpc/cordswainer/v1/*.proto

Over the years we’ve used different protobuf-related tools, and we’ve found that many have an expectation that the protoc command gets run a single time for each directory. We’ve built Twirp with that simplification. If you’re using a different structure for your project and use enough protobuf-related tools with it, you may encounter others with the same expectation. We don’t have plans to change Twirp to support that alternative, at least without more indication that it provides broad utility to our user-base.


😜 Gitmoji

📝 Description
For adding visual indicators to our releases, we would like to attach the following emojis to them:

💥 for major releases (💥 4.0.0)
✨ for minor releases (✨ 4.1.0)
🚑 for patch releases (🚑 4.0.1).

Also, starting from this issue, we will use Gitmoji for commits in the following way:
<intention> <message> (<identifier>)

intention: An emoji from Gitmoji.
message: A brief explanation of the change.
identifier: A reference to an issue or a pull request on this repository.

Here's an example of commit message:
⬆ Bump binary-compatibility-validator to 0.14.0 (#380)

It may also be interesting to configure the Gitmoji CLI locally.

✅ Checklist

[ ] Add emoji to milestones in repository.
[ ] Add emoji to releases in repository.
[ ] Update commit conventions in the contributing guidelines.
[ ] Add emoji to release notes in code.
[ ] Add emoji to changelog sections.

The definition of commit conventions is related to the issue #326.

For now, we don't need to change our commit conventions and to use emojis everywhere.


signalbackup-tools: 20230304-3 -> 20230305

Description of changes
Update to latest version. No changes that effect build (diff: https://github.com/bepaald/signalbackup-tools/compare/20230304-3...20230305).
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 219927 run on aarch64-darwin 1

1 package built:

signalbackup-tools


Ideas for fixing output error!

http://zetcode.com/java/processbuilder/
String line is not initialized in the article.

ProcessBuilder.inheritIO();

Start thread before execution.

Use ProcessBuilder.command() and delete path from commands.

See : https://stackoverflow.com/questions/20389255/reading-a-resource-file-from-within-jar

See : https://stackoverflow.com/questions/941754/how-to-get-a-path-to-a-resource-in-a-java-jar-file


Adds filter to all SelectVMs columns

Resolves https://github.com/konveyor/virt-ui/issues/131

@gildub Filter dropdown options look good except that "analysis" should be lowercase in "Migration analysis". Thanks.

@mturley, please run a final review.


add parameter to set cadl emitter options

Fix https://github.com/Azure/azure-sdk-for-net/issues/34357

Add parameter to set cadl emitter options

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

/azp run

@chunyu3 See eng/common workflow for the steps to merged eng/common changes. If you still need help let me know.

the steps to merged eng/common changes. If you still need help let me know.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

@weshaggard The cpp CI pipeline failed, https://github.com/Azure/azure-sdk-for-cpp/pull/4396/checks?check_run_id=11673492430, who can I ask to help on this? Thanks


 This provides no hint as to what will happen if one just presses enter, nor is there any output to indicate what happened. A common convention in this situation is to capitalize the choice that will be assumed if just enter is pressed. This patch does so, and also allows answering with a capitalized Y or N and being messy with the space bar.

This is good, but while we're on the subject, I'd like to actually reverse this behavior, and for the default to be to kill the process unless otherwise specified.
Could you modify this PR, or close it and submit another with the behavior described above?

I'm glad you said this because I felt the same way. Update incoming.

Superseded by #129.


Parse magicavoxel files into collision maps

https://github.com/codingchili/chili-game-ext/issues/5


Double-negative NoTrace, NoStats options in ocgrpc and ochttp

We should try to find a way to avoid these double-negatives.

We don't have to. It is an explicit request from user and it is little cost if both are disabled.

what do you mean "little cost if both are disabled"? Do you mean if neither option is specified, or if they are specified (meaning that trace and stats are disabled)?
What was the user requested feature?

If the user both disables stats and traces (NoStats=true, NoTrace=true), it doesn't add additional performance overhead to the Transport or Handler.
OTOH, having (NoStats=true, NoTrace=true) will be a valid case once we have tag propagation over HTTP implemented. User might just want to use ochttp for tag propagation.

I wasn't really thinking about performance, I was thinking about how confusing it sounds having a NoTrace bool parameter rather than Trace bool just so that the zero value is what we want.

If we have Trace bool and Stats bool, they are most likely to be set by every user all the time. I expect users coming to this plugin to enable at least trace or stats. Making it optional to enable them sounds like the opposite of why this package exists in the first place.
Most of the time, users shouldn't care about disabling but they have the option to disable.

Yeah I know, I don't want people to type that either. For stats, I think we can get to the point where if there are not views defined there is very little cost, so we can simply remove the option. For trace, we can maybe get to the same point if we allow the user to customize the StartOptions and replace the Sampler with something that never samples. To avoid tag/trace propagation, they can set the propagation format (for HTTP) or we can provide a toggle (for gRPC).

We briefly chatted about this issue offline and also removed NoTrace from ochttp and octrace. I assume renaming NoStats to DisableStats is the last thing left to do. Once the rename is in, we can close this issue.

Closed via 283e9037189fd258e9fffc6263e9aa0f0890ab95.


⚠ Shadow Does Streams has degraded performance

In 82952bd, Shadow Does Streams (https://stream.everythingbagel.me) experienced degraded performance:

HTTP code: 200
Response time: 4284 ms

Resolved: Shadow Does Streams performance has improved in 1b0b320 after 7 minutes.


[BUG] php artisan vendor:publish not working

Please prefix your issue with one of the following: [BUG] [PROPOSAL] [QUESTION].
Package version, Laravel version
Maatwebsite: ^2.1, Laravel: 5.4.*
Expected behaviour
After running "php artisan vendor:publish ..." as stated in the documentation, I'm meant to have an excel.php config file in my app/config directory.
Actual behaviour
I don't see any excel.php files anywhere, except in the vendor directory.
I need to change my export.pdf.driver setting, and I don't think it'll be appropriate doing that from the vendor directory.
Pardon my typing, I'm using a mobile device to create this issue. I seriously need some help on steps I could take out of this problem.

Tested it on a clean install:
php artisan vendor:publish
Copied Directory [/vendor/laravel/framework/src/Illuminate/Notifications/resources/views] To [/resources/views/vendor/notifications]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Pagination/resources/views] To [/resources/views/vendor/pagination]
Copied File [/vendor/maatwebsite/excel/src/config/excel.php] To [/config/excel.php]

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"
Copied File [/vendor/maatwebsite/excel/src/config/excel.php] To [/config/excel.php]

In both situations the excel.php file is copied for me. It's probably a problem with your setup.

OK.. You're right Patrick.. I solved this by running "php artisan config:cache" before "php artisan vendor:publish" could work.
Twas an oversight though.. Thanks for you tip, and it isn't at all a BUG..


[Boogie Backend] Use the original names of variables when generating Boogie

For MIR variables that map to a user variable in the source code, use their name in the source code in the generated Boogie.
If there are multiple occurrences (due to SSA), append a _i to the variable name, where i is 0, 1, ...
This change allows one to refer to the original variable name when adding contracts (e.g. loop invariants) in the output Boogie.
Example:
For the following Rust program:
#[kani::proof]
fn main() {
    let mut x = 41;
    let mut y = 43;
    x = 42;
    y = 42;
    kani::assert(x == y, "");
}

before this change, the generated Boogie was:
// Procedures:
procedure _RNvCsjrUp1z5o1KH_5test64main()
{
  var _1: int;
  var _2: int;
  var _4: bool;
  var _5: int;
  var _6: int;
  _1 := 41;
  _2 := 43;
  _1 := 42;
  _2 := 42;
  _5 := _1;
  _6 := _2;
  _4 := (_5 == _6);
  assert _4;
  return;
}

but with this change, the generated Boogie is:
// Procedures:
procedure _RNvCsjrUp1z5o1KH_5test64main()
{
  var x: int;
  var y: int;
  var _4: bool;
  var _5: int;
  var _6: int;
  x := 41;
  y := 43;
  x := 42;
  y := 42;
  _5 := x;
  _6 := y;
  _4 := (_5 == _6);
  assert _4;
  return;
}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

LGTM from reading the code, but if you could include an example in the description of the PR or a test case, it would be great.

Added an example to the PR description.


A parameter cannot be found that matches parameter name 'VivaConnectionsDefaultStart'

I may be missing something simple here but I am not able to update the parameter VivaConnectionsDefaultStart.  Here are the details on my envrionment:
PowerShell Version - 5.1.19041.2364
Commands I have succesfully ran:
Install-Module PnP.PowerShell -Scope CurrentUser -Force
and
npm install -g @pnp/cli-microsoft365
When I try to run the Set-SPOHomeSite command below, the parameter is not found.  What do I need to do to properly get the latest version?
Set-SPOHomeSite -HomeSiteUrl https://mysiteurl -VivaConnectionsDefaultStart $true

Hi @Sephiroth0327,
If you've installed PnP.Powershell, you'll need to use the PnP commandlet Set-PnPHomeSite.
So not set-SpoHomeSite. That one is coming from an older version of SharePoint Online Powershell that's probably still installed on your system.
The CLI for Microsoft 365 currently does not yet support this parameter, although it will sometime soon: #4480


editor middle-button-drag often fails to respond

Release Type: Release
Version: <IP_ADDRESS> beta2 0926
Platform(s): Windows
Describe the bug
When middle-button dragging in the Editor Studio 3d view, it often (15-30% of the time?) fails to respond or lags for 1-3 seconds.
To Reproduce
Steps to reproduce the behavior:

In the editor studio, repeatedly middle-button drag the 3d viewport
WITNESS: periodically the viewport won't drag, or will freeze for 1-2 seconds before dragging

Expected behavior
I expect the 3d viewport to reliably drag/pan when using middle mouse button, just like it reliably rotates when using right mouse button.

I can't seem to reproduce.
It doesn't happen with any other button?
Curious, could it be some other interaction? (another software or mouse driver?)

Note: I doubt this is it, but if you just opened the scene and move around right after, it might be stuck loading some asset? (most of it is async but there's a small point where it needs to synchronize with game thread)
Or maybe the texture streaming system somehow blocking while moving?

perhaps related to #686

It happens no matter how long the scene is open. It happens reliably at least 30% of the time with middle-button or modifier-key drag. RMB alone never exhibits the behavior.
I don't believe there is any reason for a driver or other software issue. Hard to completely rule out, but my middle button and modifiers don't work funny in any other programs, and I don't have any funky drivers or anything.
I'll do some sleuthing and see if I can figure out what might be going on.

Okay, i'm so sorry. this turned out to be a freak hardware failure. My middle button stopped working completely now. I tried another physical mouse and it's fine.
I really did test it in Blender back when I had this problem.. but I guess it was just starting to fail then and it was more intermittent.... weird signals. Anyhow.. no Stride bug.
I'm going to close this, but also feel free to just delete it.


Update Sonobi Bidder Adapter Documentation

@rmloveland
I've rebased the change.

Should be showing up on the Downloads page soon, thanks @bansawbanchee


MA's HA MediaPlayers entities become unavailable with every HA restart. Manual MA integration reload fixes issue.

What version of Music Assistant has the issue?
2.2.7
What version of the Home Assistant Integration have you got installed?
2024.9.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
Player 1: Moode Audio Player 5.3.1 with MPD 0.20.23
Player 2: Moode Audio Player 7.3.0 with MPD 0.22.8_p0x3
in Home Assistant via Music Player Daemon Integration (MPD)
in Music Assistant as Home Assistant MediaPlayers
With every restart of Home Assistant (or, for example, an update of Music Assistant), the Music Assistant player entities become unavailable. A reload of the Music Assistant integration makes them available again.
How to reproduce
Restart Home Assistant with the described player configuration
Music Providers
Music Assistant, Radio Browser, Youtube Music, Spotify
Player Providers
Home Assistant MediaPlayers
Full log output
2024-10-08 18:22:12.531 WARNING (MainThread) [music_assistant] Error loading provider(instance) Home Assistant: 502, message='Invalid response status', url='ws://supervisor/core/api/websocket' (will be retried later)
2024-10-08 18:24:12.550 INFO (MainThread) [music_assistant] Loaded plugin provider Home Assistant
2024-10-08 18:24:12.598 INFO (MainThread) [music_assistant] Loaded player provider Home Assistant MediaPlayers
Additional information
MASS related HA errors/warnings after HA restart:

Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:361
integration: Media player (documentation, issues)
First occurred: 18:22:32 (1 occurrences)
Last logged: 18:22:32
Error while setting up mass platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/mass/media_player.py", line 179, in async_setup_entry
async_add_entities([MassPlayer(mass, player.player_id)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mass/media_player.py", line 228, in init
super().init(mass, player_id)
File "/config/custom_components/mass/entity.py", line 32, in init
manufacturer=player.device_info.manufacturer or provider.name,
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

Logger: homeassistant.components.media_player.const
Source: helpers/deprecation.py:197
integration: Media player (documentation, issues)
First occurred: 18:22:32 (10 occurrences)
Last logged: 18:22:32
MEDIA_CLASS_TRACK was used from mass, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaClass.TRACK instead, please report it to the author of the 'mass' custom integration
MEDIA_TYPE_ALBUM was used from mass, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.ALBUM instead, please report it to the author of the 'mass' custom integration
MEDIA_TYPE_ARTIST was used from mass, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.ARTIST instead, please report it to the author of the 'mass' custom integration
MEDIA_TYPE_PLAYLIST was used from mass, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.PLAYLIST instead, please report it to the author of the 'mass' custom integration
MEDIA_TYPE_TRACK was used from mass, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.TRACK instead, please report it to the author of the 'mass' custom integration
What version of Home Assistant Core are your running
2024.10.1
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Alternative

Found similar reports in this discussion: https://github.com/orgs/music-assistant/discussions/2882

You have not ATTACHED the full MA log. (Please don't PASTE it).
Your title says the problem occurs after a HA restart. Your description says it occurs after a MA or HA restart?
How long have you waited to see if they get discovered?

You have not ATTACHED the full MA log. (Please don't PASTE it).

See attachment.
Entire server restarted around 16:22.
MA player entities become available.
HA restarted around 16:26.
MA player entities become unavailable and remain so until the MA integration is manually reloaded (or the entire server is restarted).
The relevant log entry is probably "WARNING (MainThread) [music_assistant] Error loading provider(instance) Home Assistant: 502, message='Invalid response status', url='ws://supervisor/core/api/websocket' (will be retried later)".

Your title says the problem occurs after a HA restart. Your description says it occurs after a MA or HA restart?

See further observations above. It occurs with HA restarts.

How long have you waited to see if they get discovered?

Hours. This is a permanent issue after HA restarts. The MA player entities remain unavailable until a manual reload of the MA integration, which brings them back immediately. On the contrary, reloading "Home Assistant MediaPlayers" under "Player Providers" in the MA settings alone does not.
The MPD entities are available and work perfectly fine in HA after HA restarts and can be selected and used from within MA, but MA's media player entities of these players will remain unavailable until the MA integration is reloaded.
music-assistant.log

Is it only MPD entities? Have you tried other HA players (I don’t see this with my HA players but I don’t have MPD)?

Is it only MPD entities? Have you tried other HA players (...)?

I can only confirm it with the MPD entities. I have no other HA players in use.

Please confirm this is still a problem with the 2024.11.2 version of the integration

The problem persists with version 2024.11.4.

I was never able to reproduce this issue however after some digging I think I may have found a tiny race condition that could explain this issue.
I just released 2024.11.5 as prerelease (you may need to adjust HACS to show beta releases) - please test that together with the beta server 2.4.0b6
Please test if that fixes the issue (or wait for the next stable release)
Thanks!

@gith-account we will close this soon assuming fixed

Sorry for the delayed response. I waited for the stable release. I am now on version 2024.12.1 and the problem seems to have been resolved. Thanks!


Fix usage on OpenGL 3.1+

GL_LUMINANCE_ALPHA is deprecated in OpenGL 3 and removed in 3.1.

You saved my day. Hope it will be merged soon.


SPP-10758 Invalidate Cloudfront Cache During Deployment

Description
Amendments to the Concourse pipeline to automatically invalidate all caches on the deployed cloudfront instance during CI/CD execution, allowing users to see updates to deployment environments immediately after deployment and no longer need to wait for the cache to expire/manually invalidate the cache
If you have not checked any of the lists below explain why here.
Type of change
Please delete options that are not relevant.

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

Checklist:
If any of these are not completed, please explain why in the notes.
Definition of Done
Code and merges

[ ] Code to be commented on where applicable
[ ] Documentation updated where required
[x] Have considered non-functional requirements such as Security, Performance, Scalability, and Fault Tolerance
[x] I have linted the code

Testing

[x] All levels of acceptance test are passing (automated, integration, manual, accessibility, etc.)
[x] I have run the behave command to check the selenium behaviour tests pass locally
[x] Acceptance criteria met

Other Checks

[x] I have performed a self-review of my own code
[x] I have checked for spelling errors
[ ] I have commented on my code, particularly in hard-to-understand areas
[x] My changes don't break anything unexpected
[ ] I have checked and updated the security.txt file where required
[x] Up to date with the main branch
[ ] For a change that needs to be deployed in a release I have a commit with the fix:, feat: or BREAKING CHANGE:
tags and will copy this commit message to the squash
[x] For a change that does not affect the deployed code I have added a commit with ci:, docs: or test:
depending upon which area of the solution was affected

Note when merging, squash commit must begin with one of the following tags:
"BREAKING CHANGE", "feat", "fix", "ci", "docs", "test"
Usage
BREAKING CHANGE: any change that breaks current functionality and may cause compatibility errors to users upgrading
E.G BREAKING CHANGE: refactored method x to take variable y as input (changed from variable z)
feat: A new feature
E.G feat: adding method x to future methods table
fix: A bug fix
E.G fix: amending page for method x to show correct release version
ci: Changes to our CI configuration files and scripts (Concourse)
docs: Documentation only changes
test: Adding missing tests or correcting existing tests

DEPLOY_URL=https://d2ubvyn44d8t4s.cloudfront.net/
cloudfront_id=E3B04R3F81QHU4

DEPLOY_URL=https://d2ubvyn44d8t4s.cloudfront.net/
cloudfront_id=E3B04R3F81QHU4

DEPLOY_URL=https://d2ubvyn44d8t4s.cloudfront.net/
cloudfront_id=E3B04R3F81QHU4

DEPLOY_URL=https://d2ubvyn44d8t4s.cloudfront.net/
cloudfront_id=E3B04R3F81QHU4

Can confirm on last run by checking aws manually, the pipeline found the correct cloudfront instance and created a validation on it

DEPLOY_URL=https://d2ubvyn44d8t4s.cloudfront.net/
cloudfront_id=E3B04R3F81QHU4


Getting Started with Simplex Optimization Algorithm in Machine Learning

NOTE: All 1st-time contributors should know Topic approval and PR submission does NOT guarantee your Topic/Article will be published. Our team of Peer Reviewers and Content Moderators will review all PRs that come in to make sure they adhere to the standard of quality we expect from the EngEd community.
We expect all community memebers to go through provided examples, resources, and previously published material before submitting content. As a rule of thumb, please only submit articles (pull requests) that are complete, formatted correctly, and include a fully polished article (ready to be published and error free).
All revisions and edits should be completed on your own forked repo (as to not take up room in the queue). Any PR that is submitted incomplete (meaning not ready to be published as is) will be closed. A PR being closed does NOT mean the article can not be published (or fixed) it simply means that the edits, revisions, and fixes will happen outside of the queue.
Topic Suggestion
Enter topic suggestion here...
Pre-submission advice
By following all our pre-submission advice and reviewing our Resources folder, you will maximise your chances of your topic being approved.
We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner.
Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published (subject to vary depending on volume and/or backlog of articles).
Be sure to visit our Resources Page for tools, resources, and example articles that will help you propose and write a successful article.
Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Writing sample(s):
Include any links or writing samples - to help our team better gauge your writing quality.
Proposal Submission
Getting Started with Simplex Optimization Algorithm in Machine Learning
Use keyword research to improve your article's SEO.
Proposed article introduction
The simplex method is one of the Convex Optimization machine learning methods and is used for solving a linear programming problem using the slack variable, the tableau, and a pivot variable as means to finding the optimal solution to an optimization problem.
To solve a linear programming model using the Simplex algorithm, We follow the following steps:

Re-writing the problem into standard form
Introducing slack variable
Creating an initial simplex table
Identifying the Entering variable(EV), i.e., the variable with the most negative value in the objective function.
Determine the pivot variable and apply the Gauss-Jordan elimination row-reduction to make the pivot value one and all the values below and above it zero.
Create a new tableau
Check for optimally
Identify optimal values.
Repeat the process until all Z values are non-negative that when the solution is optimal.

In this article, we shall break down the simplex method into the above steps and follow a real problem throughout our discussion to solve a linear programming problem. Later, we shall leverage a python library called scipy that contains an optimization function, and we shall implement the problem we shall have solved above and see if we really get the same answer. Again the trick is on how we present the matrices we fit the python function. We might miss the format and end up obtaining a totally wrong output. We shall learn the way we normally represent these matrices in this article.
Key takeaways
By the end of the session the reader will have a good understanding of;

What is the Simplex algorithm
How to set up an optimization problem for Simplex method
How the Simplex algorithm work(all steps until we have a an optimal solution)
How Simplex algorithm is implemented in python

Article quality
As the real-world problems are only in the problem statement form and not set up for solving, this article will teach how to formulate the optimization problem from the problem statement so as to ensure we have the correct setup for the Simplex method. This might sound like an easy task, but trust me, formulating an optimization problem is not straightforward. For example, one might know all the steps for solving a Simplex method problem and not know how to formulate a correct optimization problem. Due to this, the learner ends up optimizing the wrong function, and as a result, the final answer is not reliable.
Many articles online teach how the simplex method works only using an already formulated problem. This is because it's easy to do so, but setting up an optimization problem from the problem statement is not a straightforward task. So they chose to leave it in the hands of the learners. When the learner comes across such an unstructured problem, it becomes highly challenging for them and even unable to present the problem in the desired manner to get started. What makes this article different is that the learner will be taught how to solve a simplex method and a clever way to formulate optimization functions from the problem statement so that they do not end up optimizing a wrong function. In this article, we are not going to optimize an already set up problem; instead, we shall set up the problem of our own so that the learner can know how to do so by themselves in future problems.
References
N/A
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @Daniel695
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


"No matching function for call to 'RCTAppSetupPrepareApp'" and "No matching function for call to 'RCTAppSetupDefaultRootView'" errors when building project in Xcode

Description
I am unable to build my project due to the "No matching function for call to 'RCTAppSetupPrepareApp'"  and  "No matching function for call to 'RCTAppSetupDefaultRootView'" errors.

I'd be grateful for any help to resolve this issue.
React Native Version
0.71.2
Output of npx react-native info
System:
OS: macOS 13.2.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 104.64 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.11.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.19.2 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 13.0.2 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.2 => 0.71.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Steps to reproduce:

create bare react native project
add libraries to use with Husky and Lint-staged for pre-commit hooks
install react-native-navigation

My package.json:
{
"name": "bookcase",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"format": "prettier --write .",
"lint": "eslint --ext .js,.jsx,.ts,.tsx --fix",
"start": "react-native start",
"test": "jest"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
]
},
"dependencies": {
"@react-navigation/bottom-tabs": "^6.5.5",
"@react-navigation/drawer": "^6.6.0",
"@react-navigation/material-bottom-tabs": "^6.2.13",
"@react-navigation/material-top-tabs": "^6.6.0",
"@react-navigation/native": "^6.1.4",
"@react-navigation/native-stack": "^6.9.10",
"react": "18.2.0",
"react-native": "0.71.2",
"react-native-gesture-handler": "^2.9.0",
"react-native-pager-view": "^6.1.4",
"react-native-paper": "^5.2.0",
"react-native-reanimated": "^2.14.4",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.20.0",
"react-native-tab-view": "^3.5.0",
"react-native-vector-icons": "^9.2.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.1",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"babel-jest": "^29.2.1",
"eslint": "^8.33.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native-a11y": "^3.3.0",
"husky": "^8.0.3",
"jest": "^29.2.1",
"lint-staged": "^13.1.1",
"metro-react-native-babel-preset": "0.73.7",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
"jest": {
"preset": "react-native"
}
}
Snack, code example, screenshot, or link to a repository
Link to my repository:
https://gitlab.com/MagdaFronczyk/bookcase

You probably need to manually replace some files. I suspect you upgraded react native recently. If that's the case take a look at this: https://react-native-community.github.io/upgrade-helper/?from=0.70.7&to=0.71.3 and replace the files manually after that it should work again

This Worked !!
change the lines as per below for this issue:

File: AppDelegate.mm
Before:
RCTAppSetupPrepareApp(application);
After:
RCTAppSetupPrepareApp(application, true);
Before:
UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"Mobile", initProps);
After:
UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"Onboarding", initProps, true);

I am also having issues with this and the proposed fix did not work for me.
The line in where the rootView pointer is initialized looks like this:
  UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:initProps];
Not how it is described.

@AAlvarez90 Can you please mention what changes expo prebuild did.
Which line expo prebuild added instead of
UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:initProps];

I am also having issues with this and the proposed fix did not work for me. The line in where the rootView pointer is initialized looks like this:  UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:initProps]; Not how it is described.
Update: Running expo prebuild fixed all the issues. I did have to bring back some files like certificates, storekit configs, etc. But Expo updated all these files to the way they are supposed to be written in the newer version.

@AAlvarez90 please I'm having the same problem as @balkrushnag . Could you tell us please what change in RootViewline?

@elenitaex5 After running expo prebuild the entire line got removed from AppDelegate.mm

@elenitaex5 can you replace the function didFinishLaunchingWithOptions with the following mentioned here
`- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"main";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
[super application:application didFinishLaunchingWithOptions:launchOptions];
return YES;
}`
In my case, it worked for me


Added ObjectId reference for db entry removal.

While trying the tutorial, I had to adjust the mongodb statement.
I hope, this is the correct branch to make pull requests to.

thanks!


The type definition of $loading conflicts with Buefy's one

Version
v2.4.0
Reproduction link
https://github.com/iwata/codesandbox-nuxt
Steps to reproduce
$ git clone git@github.com:iwata/codesandbox-nuxt.git
$ yarn install
$ yarn dev

What is expected ?
No type checking errors
What is actually happening?
It shows this error:
ERROR in /Users/iwata/.go/src/github.com/iwata/codesandbox-nuxt/node_modules/@nuxt/vue-app/types/index.d.ts(73,18):
TS2430: Interface 'NuxtApp' incorrectly extends interface 'Vue'.
  Types of property '$loading' are incompatible.
    Property 'open' is missing in type 'NuxtLoading' but required in type '{ open: (params: LoadingConfig) => { close: () => any; }; }'.

Additional comments?
If you import Buefy looks like plugins/buefy.ts, it declares $loading for Vue instance.
https://github.com/buefy/buefy/blob/dev/types/index.d.ts#L10
So NuxtApp extends the Vue, therefore $loading conflicts.
https://github.com/nuxt/nuxt.js/blob/v2.4.0/packages/vue-app/types/index.d.ts#L73-L74

This bug report is available on Nuxt community (#c8559)

I didn't find a workaround yet, for the simple reason that IMO, UI libraries shouldn't directly non-namespaced add properties to the Vue instance interface.
For example, Vuetify uses this.$vuetify.x, meanwhile Buefy & ElementUI directly use this.x, which is IMO not good. (this being a Vue instance)
The issue is that these 2 UI libraries can't change this behavior without breaking changes.

I run into the issue with Element-ui as well.
I guess namespacing sounds like the way to go - but as @kevinmarrec mentioned this will come with breaking changes - so if rolled out as @deprecated via (several / major) releases until removed will take time..
Maybe it would be a good idea to escalate this to the vuejs team directly - to add documentation / guidelines to avoid such clashes going forward and with more frameworks, .. to come.

@iwata may you need to define the $loading type
import {ElLoading} from 'element-ui/types/loading'
import {ElMessage} from 'element-ui/types/message'
import {ElMessageBox} from 'element-ui/types/message-box'
import {ElNotification} from 'element-ui/types/notification'
declare module 'vue/types/vue' {
  interface Vue {
     readonly $loading: typeof ElLoading.service
     // maybe you will use these things also
     readonly $alert: typeof ElMessageBox.alert
     readonly $confirm: typeof ElMessageBox.confirm
     readonly $message: ElMessage
     readonly $msgbox: ElMessageBox
     readonly $notify: ElNotification
     readonly $prompt: typeof ElMessageBox.prompt
  }
}

@bichikim The issue is that it's a naming collision between the $loading from nuxt and the one from ElementUI/Buefy.

@manniL Oh i see~ in that case, fix element-ui loading at element-ui/lib/loading

This error prevents the command nuxt-ts generate from working...
In my case, it's conflicting with Buefy.
So as a dirty temporary fix, I've edited<EMAIL_ADDRESS>with:
+export interface LoadingConfig {
+}

export interface NuxtLoading extends Vue {
  fail?(): void;
  finish(): void;
  increase?(num: number): void;
  pause?(): void;
  start(): void;
+  open: (params: LoadingConfig) => { close: () => any; };
}

For now i added the following to my tsconfig.json:
"compilerOptions": {
    "skipLibCheck": true
}

@P-de-Jong's solution works for me

@P-de-Jong's solution works for me

This also worked for me, however, it seems to be more of a work-around than a solution.

We will change it to $nuxt.$loading in Nuxt 3 ☺

@manniL In fact it's already this.$nuxt.$loading, and this.$loading is only a shortcut (AFAIK).
$nuxt being a Vue instance, in any case we need to say that NuxtApp ($nuxt) extends Vue.
The issue is 100% Buefy fault which is not extending but overriding Vue typedefs through https://github.com/buefy/buefy/blob/dev/types/index.d.ts#L10.
By doing this, they force the Vue instance to always have $loading property and also forcing it to be of type LoadingProgrammatic, which is wrong.
Meanwhile within Nuxt, we only say that $nuxt is a Vue instance with a $loading property.
Unless we force us to change the name from $loading to something else, there won't be workarounds.
Buefy (and ElementUI) should highly initiate a breaking change which namespace their properties.

@kevinmarrec 	Whoops. Updated my statement based on the things discused in the last meeting☺

since if $loading is only used in NuxtApp
this could be a temp workaround
but won't be a perma fix if there is any naming collision in the future
interface NuxtAppAnyLoading extends Vue {
  $loading: any
}

export interface NuxtApp extends NuxtAppAnyLoading {
  $loading: NuxtLoading
  isOffline: boolean
  isOnline: boolean
}

I confirmed fixed issuse with Buefy v0.8.0.

This issue still persists with element-ui

This issue still persists with element-ui

For Element-UI, the only work-around that got me out of the mess is to override Nuxt's $loading. I did this by creating a new type file in my app and defining an interface which extends NuxtApp type, where I defined the type of $loading as 'any':
In file ~/types/nuxt.d.ts
import { NuxtApp } from "@nuxt/vue-app/types/index";

export interface NuxtLoading extends NuxtApp {
  $loading: any
}


traefik with rancher not putting containers back after upgrade

Do you want to request a feature or report a bug?
Bug
What did you do?
i am running traefik with rancher 1.6.17 i have tried traefik 1.6.5 and 1.6.6 with same results.
when i set a new service with the labels to get into traefik everything works fine. but when i upgrade it after the upgrade is complete the traefik backend is red with no containers in it. it does not put the container back in until i click "Finish Upgrade".

What did you expect to see?
when i upgrade a service when the new containers come up they should join the backend in traefik.
and i should be able to leave the old container there in case i need to rollback.
What did you see instead?
the backend does not work until i click "finish upgrade" in rancher.
Output of traefik version: (What version of Traefik are you using?)
1.6.6-0

Hello!
I close this issue as it targets an unsupported version of Traefik.
Feel free to re-open it or join our Community Forum.