Intermittent fatal Blue Screen Windows 10

Microsoft PowerToys version
<IP_ADDRESS>
Running as admin

[X] Yes

Area(s) with issue?
Awake
Steps to reproduce
Computer sits idle for awhile and monitors are in sleep mode. I wake the monitor to discover the computer has the blue screen (critical failure). I reboot and everything is good. Very rarely recently does this happen while I am using the computer, only after its been idle for awhile. Not sure how to cause
2021-07-11.txt
2021-07-02.txt
2021-07-04.txt
2021-07-10.txt
the failure event.
✔ Expected Behavior
No response
❌ Actual Behavior
Intermittent fatal Blue Screen Windows 10  "Critical Failure"
Other Software
No response

@rseaman79
Thank you for reporting it! How do you know it is caused by PowerToys? Can you verify if it happens when PowerToys doesn't run?

Hello,
Thank you for your reply.
After rebooting the computer, I received a message popup on the screen with the error log.
I am assuming it was related to the computer crashing. But honestly, I do not know as it happened only three time with giving this error message.
Over the past six months, very intermittent, the computer woke to a blue screen and only twice it happened while I was using it.
Like I said, it has been very intermittent, however, it has been the first time that I saw this popup message from PowerToys with an error log file created.
The message also provided instructions on how to send this message to you.
I will stop PowerToys from running to see if it happens again. Until then I will not bother you.
Thank you.
Respectfully,
Robert Seaman
From: Mykhailo Pylyp @.>
Sent: Monday, July 12, 2021 6:49 AM
To: microsoft/PowerToys @.>
Cc: rseaman79 @.>; Mention @.>
Subject: Re: [microsoft/PowerToys] Intermittent fatal Blue Screen Windows 10 (#12320)
@rseaman79 https://github.com/rseaman79
Thank you for reporting it! How do you know it is caused by PowerToys? Can you verify if it happens when PowerToys doesn't run?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/12320#issuecomment-878175454 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AMTEFWCRVJXTL2NJUVSS3WDTXLCBBANCNFSM5AE7HAYA .  https://github.com/notifications/beacon/AMTEFWHJNWDXJ33FK4V4YRLTXLCBBA5CNFSM5AE7HAYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGRL6JXQ.gif

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Method 'get_Name' in type 'Microsoft.Plugin.Calculator.Main' from assembly 'Microsoft.Plugin.Calculator, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   Source: System.Private.CoreLib
   TargetAssembly: System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
   TargetModule: System.Private.CoreLib.dll
   TargetSite: System.RuntimeType[] GetTypes(System.Reflection.RuntimeModule)
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at Wox.Plugin.PluginPair.CreatePluginInstance()
   at Wox.Plugin.PluginPair.LoadPlugin()
   at Wox.Plugin.PluginPair..ctor(PluginMetadata metadata)
   at PowerLauncher.Plugin.PluginManager.<>c.<get_AllPlugins>b__7_1(PluginMetadata x)
   at System.Linq.Enumerable.WhereSelectListIterator`2.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at PowerLauncher.Plugin.PluginManager.get_AllPlugins()
   at PowerLauncher.Plugin.PluginManager.GetPluginsForInterface[T]()
   at PowerLauncher.ViewModel.MainViewModel.RegisterResultsUpdatedEvent()
   at PowerLauncher.ViewModel.MainViewModel..ctor(PowerToysRunSettings settings)
   at PowerLauncher.App.<>c__DisplayClass13_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

@rseaman79
Thank you for following up!
I suspect the PowerToys issue doesn't have anything to do with the Blue screen.
Closing it as duplicate of #11916.
Feel free to reopen it if you still think the Blue screen is caused by PowerToys.

Hi @rseaman79   ,
This might be caused by some older files not being uninstalled correctly.
Would you mind:
1 - Uninstall PowerToys.
2 - See if the PowerToys install directory (default: C:\Program Files\PowerToys) is still there. If it is, delete it manually.
3 - Install PowerToys.
Please let us know if this works for you.

Thank you to everyone for their assistance, very much appreciated and impressed by the quick response.
1 - Uninstall PowerToys. (done)
2 - See if the PowerToys install directory (default: C:\Program Files\PowerToys) is still there. If it is, delete it manually. (Yes, Directory and files did remain. I deleted it all manually.
3 - Install PowerToys.  (reinstalled PowerToys)
All is good so far, Thanks.
Respectfully,
Robert Seaman
From: Jaime Bernardo @.>
Sent: Tuesday, July 13, 2021 4:51 AM
To: microsoft/PowerToys @.>
Cc: rseaman79 @.>; Mention @.>
Subject: Re: [microsoft/PowerToys] Intermittent fatal Blue Screen Windows 10 (#12320)
Hi @rseaman79 https://github.com/rseaman79  ,
This might be caused by some older files not being uninstalled correctly.
Would you mind:
1 - Uninstall PowerToys.
2 - See if the PowerToys install directory (default: C:\Program Files\PowerToys) is still there. If it is, delete it manually.
3 - Install PowerToys.
Please let us know if this works for you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/12320#issuecomment-878902222 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AMTEFWGFS7IKNRPI6ZOJWYLTXP477ANCNFSM5AE7HAYA .  https://github.com/notifications/beacon/AMTEFWE33M5RKNWTU2RIGFLTXP477A5CNFSM5AE7HAYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGRRPXTQ.gif


Add testcase for "Attribute configured?" check of protocol attribute

protocol is an attribute added to multiple services. This attribute is an enumeration of two values like "HTTP" and "HTTPS". To check if server is accepting and configuring the input values given from user, testcase to be added to applicable services under "Acceptance" :: "Attribute configured?" section.
Services required for changes are

[x] /v1/bequeath-your-data-and-die
[x]  /v1/redirect-info-about-approval-status-changes

Fixed as part of pull #191


"-->" is detected as xss

What is this feature about (expected vs actual behaviour)?
"-->" is no xss but it is detected as such
How can I reproduce it?
<?php
require_once('./vendor/autoload.php');
use voku\helper\AntiXSS;

$a = new AntiXSS();
echo $a->xss_clean('foo --> bar');
echo "\n";
echo "xss " . ($a->isXssFound() ? 'found' : 'not found');
echo "\n";

Does it take minutes, hours or days to fix?
minutes
Any additional information?
Thank you for this nice library ;-)

Thanks for the bug report. :+1: fixed in version 4.1.16


Add safe way to pass shared secret to openssl mac and/or openssl dgst -hmac

(This is similar to https://github.com/openssl/openssl/issues/13382 except that one started more as what looks like a user error or the OP's misunderstanding of the API so may have been overlooked; see also this August 2022 message on the mailing list)
Doing MAC with the openssl utility at the moment can be done with:
openssl mac -digest "$digest" -macopt key:"$raw_key" "$mac_name"
openssl mac -digest "$digest" -macopt keyex:"$hex_encoded_key" "$mac_name"

Or variants using openssl dgst -mac/-hmac...
In all those cases, the shared secret key is passed in clear on the command line which on most systems is public information, which makes it impossible to do MAC safely in scripts.
Would it be possible to have a CLI similar to that described at openssl-passphrase-options(1ssl) to pass those secrets in a more secure way?
Maybe some similar -macopt key{pass,env,file,fd,stdin} as in -macopt keyfile:path/to/file as suggested in https://github.com/openssl/openssl/issues/13382#issuecomment-1181577183 or -macopt keyenv:varname (and -macopt keyexenv:varname) as I suggested on the users mailing list earlier today?

Its possible, yes, but why not just use command substitution here:
openssl mac -digest "$digest" -macopt key:$(cat key.txt) "$mac_name"

Because the result of that command substitution will still show up publicly in the command line.

Its possible, yes, but why not just use command substitution here:
openssl mac -digest "$digest" -macopt key:$(cat key.txt) "$mac_name"

That's the same. The shell still passes the secret in clear in one of openssl's command line arguments (again, which is public information on most systems) to openssl. Only in that case it got the value from the contents of key.txt¹.
There are some dirty non-portable hacks one can use to inject code into openssl that updates argv[] just after the execve(), but users shouldn't have to go there.

¹ with all trailing newline characters removed and, since you forgot the quotes around $(...) subject to split+glob; and since you can't pass NUL in arguments to commands, you'd rather use that with keyex than key.


fix: update README.md and fix inconsistency in command names

Hi, how are you today?
I am a big fan of this plugin and I would like to contribute to its development by working on improving the README.md file.
Also, I have corrected some inconsistencies in the name of the commands.
I hope you like these improvements.

Hi, how are you today? I am a big fan of this plugin and I would like to contribute to its development by working on improving the README.md file. Also, I have corrected some inconsistencies in the name of the commands.
I hope you like these improvements.

Sorry for the late reply due to personal reasons, and Thank you for your improvements. :)
It is just a small plugin that I temporarily wrote to get rid of tagbar when writing markdown.
I didn't expect anyone to find this plugin, and I'm glad it can help you.


infinite update on a specific RSS

I have an endless update on this RSS.

Could it be that the problem is with Smart RSS?
I tried another extension and it doesn't happen.

closed without an answer?

it was answered multiple times

fix is released

but where?
we pray for it 🙏


Information about "configuration pending"

Would be good to add an information about the async behaviour of the Cmdlet and what to expect in terms of duration. Get-PnPTenantOrigin lists the newly added as "configuration pending" but would be nice to get a heads-up in this here in the documentation upfront. Something like "Once you've run the command, the system synchronizes the configuration across the datacenter. This takes 15 minutes." like here: https://support.office.com/en-us/article/use-the-office-365-content-delivery-network-with-sharepoint-online-bebb285f-1d54-4f79-90a5-94985afc6af8

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

ID: 5a3b6781-410b-bdc8-0e8e-fa67a0569cf2
Version Independent ID: d1abc1ba-6432-79d7-8365-855ad11ea1a7
Content: Add-PnPTenantCdnOrigin (sharepoint-pnp)
Content Source: sharepoint/sharepoint-ps/sharepoint-pnp/Add-PnPTenantCdnOrigin.md
Service: unspecified
GitHub Login: @techwriter40
Microsoft Alias: kirks

@thomyg Thanks for your valuable comment. We will try to update as necessary.

@thomyg Thank you for this feedback
We want to make sure your PnP issue is handled appropriately.
We have a separate repo for the PnP PowerShell issues. We want your issue to get the proper attention it deserves.
Please open your issue in this repo: https://github.com/SharePoint/PnP-PowerShell
I am going to close this issue so that we can track to correct one in the PnP PowerShell repo.


Access to HTTP headers

We recently switched from jQuery to NativeView/NativeAjax. Before the switch I was able to access the HTTP headers through the XHR object in my Backbone parse method:
parse(response, options) {
    if (options.xhr.getResponseHeader('Content-Type').includes('application/vnd.api+json')) {
        ...
    }
}

With NativeAjax, options.xhr is a Promise which resolves to the data I already have through the response parameter.
Hence, I have no possibility to access the response headers or did I miss something?
Backbone: 1.2.1
Backbone.NativeAjax: 0.3.2

Yes, Backbone assigns options.xhr to the return value of Backbone.ajax because the return value from $.ajax is a jqXHR, basically an XHR wrapped in a $.Deferred. It's similar but not exactly what we do here.
We have a few options here:

We could provide an originalXhr property on the options object ourselves.
We could assign a xhr property on the returned promise that you could access as options.xhr.xhr.
We could emulate jqXHR by proxying readyState, status, getAllResponseHeaders, etc. from xhr on the returned promise.

I'd prefer to be able to access the real original xhr if needed, but I prefer the API of using those methods directly on the returned promise. Let me see what I can come up with.

Try 44f0df0 and see if that works for you.

Works great! Thanks for the quick fix.

One sec.. just realized I have to update the promise methods in onreadystatechange. Patch incoming.


Fix API version for GET clusters_detail; utilize new endpoint for rule content

The patch changes v1 to v2 for the /rule/{rule_id}/clusters_detail endpoint => the affected clusters table renders fine.
Also, a v2/rule/{rule_id} is used to obtain rule content.

Codecov Report

Merging #50 (a529c29) into master (0f10d76) will decrease coverage by 2.95%.
The diff coverage is 3.52%.

:exclamation: Current head a529c29 differs from pull request most recent head ccca6e9.

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


Validate > support asynchronous custom validators

Currently only the remote validator is asynchronous, all other validator methods are executed synchronously. This means that asynchronous custom validators aren't supported.
We could either execute all validation methods asynchronously or custom methods. Executing all methods async simplifies the code a little.
We would just need to return a Promise from the validate function something like:
return new Promise((resolve, reject) => {
        validator.type === 'custom'
            ? resolve(methods['custom'](validator.method, group))
            : resolve(methods[validator.type](group, validator.params));
    });

and update getGroupValidityState (which isn't the cleanest code we've ever written) to something like
return Promise.all(group.validators.map(validator => {
        return new Promise((resolve, reject) => {
            validate(group, validator)
                .then(res => {
                    if (res) resolve(true);
                    else resolve(false);
                })
                .catch(err => console.log(err));
        });
}));

Closed with #210


Added Config map to Helm charts to add configurable values.

Description
Please provide a summary of the change and the issue fixed. Please include relevant context. List dependency changes.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist

[ ] I have read the CONTRIBUTING doc
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have already been accepted and merged

Further comments

Thanks for the PR!
Deployments, as required, will be available below:

Frontend

Verified the Sonar warning. Not an issue for us.


[Snyk] Security upgrade astro from 4.5.12 to 4.12.2

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

package.json
package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Cross-site Scripting (XSS) SNYK-JS-ASTRO-7547139
  541

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting (XSS)

Superseded by https://github.com/vipyrsec/vipyrsec-site/pull/70


We are getting an error "ERROR Error: Canvas is already in use. Chart with ID '2' must be destroyed before the canvas can be reused."  while rebinding the chart from API,

We are getting an error "ERROR Error: Canvas is already in use. Chart with ID '2' must be destroyed before the canvas can be reused."  while rebinding the chart from API,
we have used
ctx.clear();   and   ctx.destroy()
method for clearing the canvas but getting errors while used
ERROR TypeError: ctx.destroy is not a functin
ERROR Error: Canvas is already in use. Chart with ID '2' must be destroyed before the canvas can be reused.
at new Chart (chart.esm.js:5354:1)
at new WordCloudChart (index.umd.js:747:1)
at EmployeeComponent.wordcloudChart (employee.component.ts:281:21)
at employee.component.ts:339:14
at Object.next (Subscriber.js:110:1)
at SafeSubscriber._next (Subscriber.js:60:1)
at SafeSubscriber.next (Subscriber.js:31:1)
at map.js:7:1
at OperatorSubscriber._next (OperatorSubscriber.js:9:1)
at OperatorSubscriber.next (Subscriber.js:31:1)

how is the given angular created error related to this plugin of chart.js? I would ask the devs who developed the angular chart.js binding


Custom proxy by host

@webysther
Does the content of the file cannot simply be put inside the custom configuration inside the "Location" tab of the proxy_host ?
What is the difference between this field (the one displayed with the clog/gear icon) with your PR ?

@webysther Does the content of the file cannot simply be put inside the custom configuration inside the "Location" tab of the proxy_host ? What is the difference between this field (the one displayed with the clog/gear icon) with your PR ?

Automation, like the other options, the server don't have a well exposed API and with this is possible to use a decoupled which is not rewrite every time the host is saved.


prepare for release 3.4.3

Summary

prepare for release 3.4.3

Pull Request Test Coverage Report for Build 1377

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.321%

Totals

Change from base Build 1375:
0.0%

Covered Lines:
3764

Relevant Lines:
4214

💛  - Coveralls


Upload file with Post

I use cpr::Multipart to upload file. How to limit send data buffer size (chunk size)??

How do you construct a cpr::Multipart instance?
Since cpr::Multipart takes an std::initializer_list<Part> which allows you to define the size of your individual parts.

cpr::Response r = cpr::Post(cpr::Url{ "http://www.httpbin.org/post" },
	cpr::Multipart{ {"Filenam", "test.txt"},
				   {"Filedata", cpr::File{"c:\\test\\test.txt"}, "application/octet-stream"} });

I want to set max chunk buffer size send to server and how to set offset size?

POST /post HTTP/1.1
Host: www.httpbin.org
User-Agent: curl/7.77.0
Accept: /
Accept-Encoding: identity
Content-Length: 313
Content-Type: multipart/form-data; boundary=------------------------b2a6bc2a84e00f6d
--------------------------b2a6bc2a84e00f6d
Content-Disposition: form-data; name="Filenam"
test.txt
--------------------------b2a6bc2a84e00f6d
Content-Disposition: form-data; name="Filedata"; filename="test.txt"
Content-Type: application/octet-stream
hello
--------------------------b2a6bc2a84e00f6d--
I use cpr::ProgressCallback([](size_t downloadTotal, size_t downloadNow, size_t uploadTotal, size_t uploadNow) to control upload size, but uploadTotal/uploadNow include all transferred data size not only file size, how can i got file transferred size progress only??


Update quickcheck to 1.0

Quickcheck had a 1.0 release. We should update the dev-dependency to it. There have been attempts in #368 but there were memory allocation errors in CI:
test conversions::sample_rate::test::divide_sample_rate ... ok
memory allocation of<PHONE_NUMBER>02 bytes failed
error: test failed, to rerun pass '--lib'

Caused by:
  process didn't exit successfully: `D:\a\rodio\rodio\target\debug\deps\rodio-0e4135a1fbf0228b.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
Error: Process completed with exit code 1.

cc @alexheretic

was this memory allocation issue ever resolved? I am seeing something similar here: https://github.com/RustAudio/rodio/issues/606 and I have no idea whats causing it.


Azure Tests - Improve Documentation

There is a readme.md in the tests\templates folder with a small explanation of how we use ARM templates to ensure we have a repeatable way to regenerate cassettes, and there is a bit of official Custodian documentation about running Tox.
There isn't really anything about Azure tests specifically - how the VCRpy and Cassettes stuff works, when things run and how you should write new tests.  I think we should document this with links to appropriate framework documentation (vcrpy, vcrunittest, etc) in the Azure section of the Sphinx docs to help new people get started.
We might also be able to include pointers on how to run the tests outside of Tox config (does require specific auth environment variables, python paths, etc) - without getting into pycharm/vscode/ide specifics.

Developer docs would are definitely an area of interest, @jonathana is working on some general principles (a bit of zen of python and convergent behavior), but i'd it would be great to see breakouts per cloud provider given there's specific dev workflows and tooling around each.


DetectCommentPaginationURLs isn't being used

What's the plan with this class?

If unused, can just delete it. Would have been for paginated comment pages, which gets trickier with custom post types, etc, so not even sure it could be relied upon if fixed up. Better that we end up with recursive crawling of discovered URLs to handle such URLs.


Tornado Example Error

I'm trying to run the simplest thiftypy 0.2.0 / tornado 4.1 example I can find. So, I came across the docstring example in thiftpy/tornado.py
I set up a pingpong server, and although I can get an rpc client working fine, a tornado client as shown in the docstring will always fail with a TTransportException. So the following script:
import logging

import thriftpy.rpc
import thriftpy.tornado

from tornado import ioloop

pingpong_thrift = thriftpy.load("pingpong.thrift", module_name="pingpong_thrift")

def rpc_test():
    client = thriftpy.rpc.make_client(pingpong_thrift.PingPong, '<IP_ADDRESS>', 6000)

    return client.ping()

def tornado_test():
    client = ioloop.IOLoop.current().run_sync(
        lambda: thriftpy.tornado.make_client(pingpong_thrift.PingPong, '<IP_ADDRESS>', 6000))

    return ioloop.IOLoop.current().run_sync(client.ping)

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)

    print rpc_test()
    print tornado_test()

will yield:
pong
DEBUG:root:socket connecting
Traceback (most recent call last):
  File "/home/bamiller/workspace/DmHbase/thriftpy_test_client.py", line 25, in <module>
    print tornado_test()
  File "/home/bamiller/workspace/DmHbase/thriftpy_test_client.py", line 19, in tornado_test
    return ioloop.IOLoop.current().run_sync(client.ping)
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in run_sync
    return future_cell[0].result()
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/tornado/concurrent.py", line 209, in result
    raise_exc_info(self._exc_info)
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/tornado/gen.py", line 810, in run
    yielded = self.gen.throw(*sys.exc_info())
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/thriftpy/tornado.py", line 195, in _recv
    frame = yield self._oprot.trans.read_frame()
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/tornado/gen.py", line 807, in run
    value = future.result()
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/tornado/concurrent.py", line 209, in result
    raise_exc_info(self._exc_info)
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/tornado/gen.py", line 810, in run
    yielded = self.gen.throw(*sys.exc_info())
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/thriftpy/tornado.py", line 124, in read_frame
    raise gen.Return(frame)
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/bamiller/opt/python/local/lib/python2.7/site-packages/thriftpy/tornado.py", line 100, in io_exception_context
    message=str(e))
thriftpy.transport.TTransportException: TTransportException(message='', type=4)

I can run the test case in tests/test_tornado.py so I'm guessing there's nothing wrong with the version of thriftypy / tornado I'm using, but if there was a little bit more in the way of examples / docs that would be really helpful.
Thanks!

I had a similar error, and then I remembered something when working with Apache Thrift. The tornado code will use a framed transport. If you switch your server to use a framed transport, this may work. I'm doing the opposite (tornado server and RPC client) and switching the client to use a framed transport is what got this to work for me.


Exposed shortcut_context property to scripting and added documentation.

I didn't expose this as a property or add documentation in the original PR #42109.
Oops!

Thanks!


ko: init at 0.8.3

Motivation for this change
ko: init at 0.8.3
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase 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 130145 at 1cd629d8 run on x86_64-linux 1

1 package failed to build:

ko

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.


Multiple Conditions

Is it possible to create a custom condition with multiple conditions?
for example , run the task if source branch = A  or source branch = B ?

Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Here are a couple of options where you might consider asking your question:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot


Introduction of Custom Rules with initial EQUAL operator support

Description of changes:

New custom rules feature allowing simple one line rules to be defined using specified operators
Implementation of first "EQUALS" operator
Basic custom rules template with example

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Can you change the destination branch?  We don't want to merge to master yet. We can create one big PR at the end that targets master.

Nice! Got it running on my side with this if anyone else wants to try it out:
brew install github/gh/gh
gh pr checkout 1559
echo 'AWS::SNS::Topic TopicName EQUALS "A"' > custom_rules.txt
pip3 install -e .
echo \
'Resources:
  Resource:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: B' > template.yaml
cfn-lint template.yaml

E9999 Not Equal as B does not equal A
custom_rules.txt:1:0

Really cool.  Making things even easier.  I can't wait to see more.

echo 'AWS::SNS::Topic TopicName EQUALS "B"' > custom_rules.txt

Resources:
  Resource1:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: A
  Resource2:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: C

E9999 Not Equal as A does not equal B
custom_rules.txt:1:0

@kddejong think this should extend CloudFormationLintRule like the rest of the rules?
Thinking it'd help with running on relevant types, catching multiple violations per template, and path and line number information

@kddejong think this should extend CloudFormationLintRule like the rest of the rules?
Thinking it'd help with running on relevant types, catching multiple violations per template, allowing custom rules to be ignored or made mandatory, and path, file, and line number information

Yea agreed here.  Let me know if you need any other thoughts around this.  It could add some trickiness in how to take the rules in and applying them to the rule.  We do have a framework for rule configuration so that could be passing in the parameter to the rules file, it could be parsing the rules file and configuring the rule with the operators and values, etc.  I think there are some interesting ways to tackle this and absolutely willing to help out if needed.


[Bug]: Unable to locate source file

What happened?
When I run "php artisan translate id" command, the result is "Unable to locate source file".
How to reproduce the bug
Step 1 : Run composer require rpwebdevelopment/laravel-translate
Step 2 : Run php artisan vendor:publish --tag="translate-config"
Step 3 : Edit translate config file

'reader' => 'php',
'default_source' => 'en',
'target_locales' => ['id'],
'lang_directory' => base_path('lang'),
'provider' => 'google',

Step 4 : Run php artisan translate id
Package Version
1.3.1
PHP Version
8.4.1
Laravel Version
11.36.1
Which operating systems does with happen with?
Windows
Notes
No response

@lovermans can you provide some details around the existing directory structure/files within your lang directory? This exception is expected if the source file/files cannot be found.


Bulk aggregate

In https://github.com/znicholls/silicone/pull/72, @Rlamboll has added a feature to do bulk aggregation within an IamDataFrame. This is a convenience function, but means you could quickly specify to calculate a bunch of aggregate variables (some of which are more complex than just a pure sum) without writing a custom wrapper every time (current implementation here, work in progress though).
@danielhuppmann Does this feature already exist? If no, is it something you'd be interested in bringing across?

Thanks @znicholls for the cross-reference. This is similar to the recent improvements of aggregate() (#305 & #312). This now supports a method arg (min, max, weighted sum) and doing "bulk" aggregation by passing a list of variables to be aggregated. Similar for aggregate_region(), the related check_*() functions and the downscale_region() function.
The current implementation in pyam, though, only works with a list of variables when you do the "obvious" aggregation, i.e., all subcategories of each variable - whereas the implementation in silicone takes a dict(variable=components). This would be a useful addition to pyam, I think.
As for the second feature, I have some concerns that this would be overloading the function. If the multiplication relates to conversion to CO2-equivalents, I'd rather use separate function for conversion and aggregation, for example:
_df = df.convert_unit('Mt CH4', 'Mt CO2e', context='gap_AR5GWP100')
_df.aggregate('Kyoto GHG', components=['Emissions|CO2', 'Emissions|CH4'])

Or the first step could use the dataframe-operations feature (work in progress by @gidden, see #333)...

The main use of the factors is to do subtraction with -1, e.g.
aggregate = "Emissions|CO2|Other"
other_CO2 = mi.infill_composite_values(     sr15_data,     {         aggregate: {             "Emissions|CO2": 1,             "Emissions|CO2|Energy and Industrial Processes": -1,             "Emissions|CO2|AFOLU": -1,         }     }, )
I just allow any multiple in case people want to do other things like weightings. It could be restricted to a sign if you want.

Yep I completely agree with all of that. I wasn’t actually thinking of altering aggregate directly, rather creating a new method or utility function. That method or utility would wrap the operations done by @gidden and/or aggregate. Does that a sensible way forward to you?

I'm not quite sure what you have in mind and whether it's worth the additional maintenance overhead if it's just a wrapper for two or three existing functions.
Can you specify the suggested function name and the API (kwargs and returned object)?

whether it's worth the additional maintenance overhead if it's just a wrapper for two or three existing functions

I'm also not sure.
My current thoughts (@Rlamboll may have others)
def bulk_aggregate(iamdf, aggregates):
    """
    Aggregate variables within a :obj:`pyam.IamDataFrame`

    This convenience function allows a number of aggregate variables to be
    calculated from the data within a :obj:`pyam.IamDataFrame`. The
    aggregation is flexible, allowing users to write potentially complex
    algorithms.

    Parameters
    ----------
    iamdf : :obj:`pyam.IamDataFrame`
        :obj:`pyam.IamDataFrame` containing the data from which the aggregates can be calculated

    aggregates : dict{str: dict{str: float}}
        Dictionary specifying how to calculate the aggregates. Each key is the
        name of an aggregate variable to be calculated. Each value is itself a
        dictionary. The keys are variables which already exist in ``iamdf``
        and the values of are constants which are multiplied by the value of
        that variable's data before being included in the aggregate (i.e. sum).

    Returns
    -------
    :obj:`pyam.IamDataFrame`
        :obj:`pyam.IamDataFrame` containing the aggregate data (can be
        appended to the source :obj:`pyam.IamDataFrame` by the user if
        desired).

    Examples
    --------
    # simply take aggregate of multiple variables
    bulk_aggregate(
        iamdf=input_df,
        aggregates={
            "Emissions|CO2": {
                "Emissions|CO2|Industrial": 1,
                "Emissions|CO2|AFOLU": 1
            },
            "Emissions|CH4": {
                "Emissions|CH4|Industrial": 1,
                "Emissions|CH4|AFOLU": 1
            },
        },
    )

    # one variable is difference between two others, one is sum of one
    # variable plus two times another
    bulk_aggregate(
        iamdf=input_df,
        aggregates={
            "Emissions|CO2|AFOLU": {
                "Emissions|CO2": 1,
                "Emissions|CO2|Industrial": -1
            },
            "Emissions|SOx (RF weighted)": {
                "Emissions|SOx|Industrial": 2,
                "Emissions|SOx|AFOLU": 1,
            },
        },
    )
    """

Yeah, I don't know that there's a pressing need for it other than to infill values defined by consistency conditions, which is very much something you'd download silicone to do. I don't mind it going into pyam wholesale, but it feels time-consuming to duplicate it with slightly different options concerning the inputs in both pyam and silicone.

Just for completeness, a big benefit of having it in pyam is that you have a bigger team of maintainers and users. Happy with whatever though, just wanted to ask the question.

Yes, pushing features that be useful to many users "upstream" is definitely welcome in principle - maybe just too specific for the infilling use-case with factors.
But let me reiterate that an extension of aggregate() and similar function to take a mapping dictionary would be welcome, i.e, if you have a mapping = {variable: [<list of components>]},
currently one needs to do:
for v, lst in mapping.items():
    df.aggregate(v, lst)

This could be streamlined to allow:
df.aggregate(mapping)


update: Update to revamped c binding

[x] mlx-explore/mlx-c#45

@dcvz somehow it's requiring metal3.2 and only macos 15 is supported. Would there be macos 15 support in blaze soon?

@minghuaw set it to blaze/macos-15 :)

Didn't realize this is available since it was not shown on your website lol


Add UI for adding OAuth applications

Developer users will need a way to registering OAuth applications on their account.
@icereval points out that this can be done in parallel with his work on CAS.

Moved to main repo/


[bug]: img2img with sd2.1-768 model and scaled init image yields poor results

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
24GB
What happened?
Poor results using img2img with sd2.1-768 model and the scale init image to output size flag. sd1.5-512 yields great results.
Different samplers yield similarly poor results, just badly cooked in different ways. Prompt, seed, etc doesn't seem to affect anything.
Unsure when this started occurring as I only recently (post-diffusers) started to remember the 768 model exists and use it.
This issue makes hires fix useless on sd2.1-768
examples
Generation parameters
Only changed the width and height during this particular test:

{
  "model": "stable diffusion",
  "model_weights": "stable-diffusion-2.1-768",
  "model_hash": "0694d102c495979988257ed977cc15ae40ad26b5e7407c89729bc4077a88ed1c",
  "app_id": "invoke-ai/InvokeAI",
  "app_version": "3.0.0+a0",
  "image": {
    "prompt": "baobab forest alien landscape kelp mushroom fungus vine",
    "steps": 51,
    "cfg_scale": 7.5,
    "threshold": 0,
    "perlin": 0,
    "height": 1344,
    "width": 1344,
    "seed":<PHONE_NUMBER>,
    "seamless": false,
    "type": "img2img",
    "postprocessing": null,
    "sampler": "k_lms",
    "variations": [],
    "strength": 0.83,
    "fit": true,
    "orig_hash": "c840bb194187a7d8191695054cc64dc5a2cbd2127ec654cb30d1a7ca76a6c165",
    "init_image_path": "outputs/002154.df74edda.3435340366.png"
  }
}

Init image

img2img scaled output to 768x768
sd1.5-512

sd2.1-768

img2img scaled output to 1024x1024
sd1.5-512

sd2.1-768

img2img scaled output to 1344x1344
sd1.5-512

sd2.1-768

Screenshots
No response
Additional context
No response
Contact Details
No response

still an issue


Gc timeout is not triggered in the context of a query declared with the defineQuery composable

It seems that the removeDep function is not called in the context of a query declared with the defineQuery composable. More precisely, the onScopeDispose hook seems not to be called.
Not sure if it is relevant, but I noticed that the scopes are not the same for a query declared with the useQuery composable and the defineQuery composable.
In the useQuery context:

And in the defineQuery context:

Note: I will provide later the demo of these two cases.

Nice catch. The funny part is that I wrote down this initially but forgot to implement it. There are cases where both, onUnmounted and onScopeDispose need to be used to work correctly. For globals like stores, the entry will never be gc collected until the key changes.


Properly run restartComponent.sh avoiding hardwired paths

Fixes #12184
Status
ready
Description
With the current change we avoid hardwired paths inside the restartComponent.sh script, and instead we properly tie  those as relative paths to the proper environment $WMA_* variables.
In addition we add the executable flag to the script and change its shell from sh to bash, in order to be correctly run and later quit in case of errors from the cronjobs of the agents, instead of being sourced and the errors silently ignored if the script just quits (exit $errCode inside a sourced script will just close the shell sourcing the script leaving no trace of the error code returned).
Is it backward compatible (if not, which system it affects?)
YES
Related PRs
This PR  goes hand in hand with: https://github.com/dmwm/CMSKubernetes/pull/1569
External dependencies / deployment changes
The WMAgent packages uploaded to Pypi.
Since the restartComponent.sh script is always run by our cronjobs  from $WMA_DEPLOY_DIR/deploy/ it will always be the version of the script coming from the WMAgent pypi package which is to be executed, regardless if one runs the service from source or from the pypi packages. So even if the fix is applied and patched the change won't take effect until the newly built python package is redeployed at the destination or eventually the script substituted manually.

thanks @vkuznet


Realtime is not available when using sync client

Bug report

[x] I confirm this is a bug with Supabase, not with my own application.
[x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
Realtime is not available when using the sync client in supabase-py.
The traceback is:
Traceback (most recent call last):
  File "C:\Users\USER\Desktop\Apps\ChatRock\chatrock\main.py", line 86, in <module>
    messages = supabase.channel("messages")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\USER\Desktop\Apps\ChatRock\venv\Lib\site-packages\supabase\_sync\client.py", line 204, in channel
    return self.realtime.channel(topic, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\USER\Desktop\Apps\ChatRock\venv\Lib\site-packages\realtime\_sync\client.py", line 39, in channel
    raise NotImplementedError(NOT_IMPLEMENTED_MESSAGE)
NotImplementedError: This feature isn't available in the sync client. You can use the realtime feature in the async client only.

To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
from supabase import create_client, Client

supabase: Client = create_client("SUPABASE_URL", "SUPABASE_KEY")
messages = supabase.channel("messages") # This triggers the error

Create supabase project with a realtime table called "messages"
Input URL and key
Run code in python
See error

Expected behavior
The module should just subscribe to the channel without tracebacks.
System information

OS: Windows 10
Version of realtime-py: 2.0.2
Version of supabase-py: 2.7.2
Version of Python: 3.12.4

Additional context
I am aware that realtime is available in the async class, but I prefer the sync class for ease of use.

It's not a bug, its a feature. This won't be changed until we find a way to make websockets work without asyncio.

Where is the async python client even documented? I can't for the life of me find it.


undefined symbol: NPdset0

I am facing this error, has someone else also seen this error.
OSError: /home/runner/miniconda3/envs/env-work/lib/python3.8/site-packages/pyscf/lib/libcgto.so: undefined symbol: NPdset0

Please post the output of
ldd /home/runner/miniconda3/envs/env-work/lib/python3.8/site-packages/pyscf/lib/libcgto.so
readelf -d /home/runner/miniconda3/envs/env-work/lib/python3.8/site-packages/pyscf/lib/libcgto.so | grep runpath


Add conditions to check for class extension or implementation of prim…

fixes unresolved issues that discussed on https://github.com/microsoft/TypeScript/pull/49208.
Example
Class implementing the primitive:
class C implements number { }
class C2 implements string { }
class C3 implements boolean { }

Actual behavior:
'number' only refers to a type, but is being used as a value here.
'string' only refers to a type, but is being used as a value here.
'boolean' only refers to a type, but is being used as a value here.

Improvement:
A class cannot implement a primitive type like 'number'; a class can only implement interfaces.
A class cannot implement a primitive type like 'string'; a class can only implement interfaces.
A class cannot implement a primitive type like 'boolean'; a class can only implement interfaces.

Class extending the primitive:
class C extends number { }
class C2 extends string { }
class C3 extends boolean { }

Actual behavior:
'number' only refers to a type, but is being used as a value here.
'string' only refers to a type, but is being used as a value here.
'boolean' only refers to a type, but is being used as a value here.

Improvement:
A class cannot extend a primitive type like 'number'; a class can only extend named types and classes.
A class cannot extend a primitive type like 'string'; a class can only extend named types and classes.
A class cannot extend a primitive type like 'boolean'; a class can only extend named types and classes.

Notes:

gulp runtests passed on current branch.
The errors related to implement weren't covered by current unit tests. I added a new test tests\cases\compiler\classImplementsPrimitive.ts to test classes implementing primitive types.
I updated a few unit tests to test for the error.
I made additional changes for some minor typos.

Description
PR https://github.com/microsoft/TypeScript/pull/49208 was initially created to address issue https://github.com/microsoft/TypeScript/issues/46246 along with some related problems.
However, that issue https://github.com/microsoft/TypeScript/issues/46246 has been resolved by a different PR. So, PR https://github.com/microsoft/TypeScript/pull/49208 wasn't merged and It was closed while leaving some issues that had been newly found and discussed in this PR, specifically related to incorrect error messages where classes extends or implements primitive types, as shown in the examples above.
To address these issue, I have made changes to the checkAndReportErrorForUsingTypeAsValue function, which has been responsible for these kinds of errors since https://github.com/microsoft/TypeScript/pull/46357 was merged.
I have added new functions, isExtendedByClass and isImplementedByClass which determine if errorLocation 's grandparent contains SyntaxKind.ImplementsKeyword or SyntaxKind.ExtendsKeyword. If a condition evaluates to true, the relevant error message is emitted.
I would appreciate any feedback!

The errors are no longer exactly correct. They should be
An interface cannot extend a primitive type like '{0}'. It can only extend other named object types.

A class cannot implement a primitive type like '{0}'. It can only extend other named object types.

A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values.

Sorry, looks like you’ll need to git merge main and fix the diagnostic message conflicts. Someone probably took one of the numbers you were using 🙈

Thank you for letting me know. I did git rebase main to put my changes on the top of the latest commit. I stored old branch in case I made a mistake.
Is it okay to git rebase main? I just fixed error numbers during the rebase.


RDTSC limitations

The more I read about it, the more of a minefield it looks, e.g https://www.strchr.com/performance_measurements_with_rdtsc says:

The scope of the method
This method is useful for measuring the tasks that are mostly computation-bounded,
e.g. various calculations, cryptographic functions, fractal generation, some text-processing tasks, etc.
Your data should be located in L1 or L2 cache entirely. If you are measuring memcpy function
for several megabytes of data, you should use a different method.
Ditto for most image-processing functions and other memory-intensive tasks.
If your task involves reading or writing files, calling "heavy" API functions, you should use
a different method.
This method is ideal if you have a simple function that is called very often, doesn't call any
API functions, and operates on a small data set.

As I understand it, timing measurements have to be calibrated to understand what's a typical reading. perf for small computations and something like criterion for longer-running ones.

All of those issues you quote apply equally to both short and long-run processes - if there's context switches and GC activity and such, these will show up no matter what method you use.  I would back perf-style method over criterion no matter the length or complexity.  Except if you want a solid library,, then go with criterion.
That's not to say that the library is robust yet - just that criterion leaves a lot on the table when it comes to understanding what's going on.  perf is leaving a lot on the table as well, but because I could never find low-level c code for the RDPMC chip.
https://github.com/nh2/haskell-cpu-instruction-counter is a very similar recent effort, but i don't have a linux box.

This SO answer deals with interacting with RDPMC from C : https://stackoverflow.com/questions/22309041/rdpmc-in-user-mode-does-not-work-even-with-pce-set . Also, I'm thinking of doing some surgery on criterion as well, pulling out Criterion.Measurement and its dependencies (minus the statistics, js-* and stache bits) into a standalone package: https://github.com/bos/criterion/issues/189

What are you looking for in criterion?  There's not much in Criterion.Measurement,, it's pretty much a coarse wrapper around GHC.Stats.  If you take out statistics then you're ditching the outlier analytics that the library rests on.  whnf, nf and friends are important, and contain a great deal of battle-hardened knowledge about stopping memoization. But their related context - Benchmarkable - swallows the original type being benchmarked, and this is why I went with a new library rather than used criterion: you can't write Benchmarkable as a logger/ReaderT/continuation.

This SO answer deals with interacting with RDPMC from C : https://stackoverflow.com/questions/22309041/rdpmc-in-user-mode-does-not-work-even-with-pce-set .

#include <linux/module.h>   /* Needed by all modules */
#include <linux/kernel.h>   /* Needed for KERN_INFO */

This was the show-stopper for me when I tried to hack this up: I wanted an osx solution and it proved difficult to port


Need a data submission page

I got a ResearchGate email (barely-not-spam) referencing a technical report (http://dx.doi.org/10.13140/RG.2.2.19171.68643) we wrote with Paul Gepts and Travis Parker last year prior to the site revamp in which the URL https://legumeinfo.org/submit_data is prominently featured; now it 404s, but content for that URL still available at https://legacy.legumeinfo.org/submit_data .
Probably we ought to port it over to the new site, possibly updating content if needed. Will initially assign to @cann0010 since I think he wrote the original page but he should feel free to re-assign as seems appropriate.

should we discuss this further with the broader group? we got some feedback from AgBioData that this was not obvious on our site...


pub run polymer:new_element runs out of heap space

This issue was originally filed by @sethladd

I've zipped up my little demo app.
~/tmp$ dart --version
Dart VM version: 1.6.0 (Tue Aug 26 22:30:33 2014) on "macos_x64"
~/tmp$ pub --version
Pub 1.6.0
The output is so long I'll need to add as multiple comments.

This issue has been moved to dart-lang/pub#1152.


to_additive doesn't always translate proofs generated by simp

The reason is that simp sometimes generates auxiliary lemmas that might not need to be additivized.
One example occurs at https://github.com/leanprover-community/mathlib4/blob/65d9c6c4d7f2bad2aac31291c2a7dccee4ea8a35/Mathlib/GroupTheory/SpecificGroups/Cyclic.lean#L402
The simp [..., _root_.le_zero_iff, ...] generates Mathlib.GroupTheory.SpecificGroups.Cyclic._auxLemma.12 stating ∀ {α : Type u_1} {a : α} [inst : LinearOrderedCommMonoidWithZero α], (a ≤ 0) = (a = 0) that should not be additivized. (I have no idea why this lemma is generated.)

Note: as a workaround, it often helps to specify some arguments (e.g. the types) explicitly in the simp-lemma.

Perhaps this is fixed by #14628.


[Bug] Canary Discord or PTB wont load with BD

when using the installer, discord canary and PTB wont load with  BD injected only the stable version

This is a duplicate of #548


Allow concurrent logins when using vouchers. Implements #2146

[X] Redmine Issue: https://redmine.pfsense.org/issues/2146
[X] Ready for review

When using vouchers it is not possible to use them more then once, even when enabling 'allow concurrent logins'. Using one vouchers more than once is sometimes required. For example when you rent meetingrooms and want to give them access by giving a voucher to the meetingholder.

@vktg please rebase your fork and fix conflicts

already implemented in https://redmine.pfsense.org/issues/9432 (see Multiple mode)


[Event Request] codeunit 90 "Purch.-Post" - OnPostInvoiceOnBeforePostLedgerEntry

Describe the request
Hello, can you please add a new event OnPostInvoiceOnBeforePostLedgerEntry to codeunit 90 "Purch.-Post"?
    local procedure PostInvoice(var PurchHeader: Record "Purchase Header")
    var
        TotalAmount: Decimal;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforePostInvoice(PurchHeader, PreviewMode, SuppressCommit, GenJnlPostLine, IsHandled, Window, HideProgressWindow, TotalPurchLine, TotalPurchLineLCY, InvoicePostingInterface, InvoicePostingParameters, GenJnlLineDocNo, GenJnlLineExtDocNo, GenJnlLineDocType, SrcCode);
        if IsHandled then
            exit;

        with PurchHeader do begin
            // Post purchase and VAT to G/L entries from buffer
#if not CLEAN23
            if UseLegacyInvoicePosting() then
                PostInvoicePostingBuffer(PurchHeader, TotalAmount)
            else begin
#endif
                GetInvoicePostingParameters();
                InvoicePostingInterface.SetParameters(InvoicePostingParameters);
                InvoicePostingInterface.SetTotalLines(TotalPurchLine, TotalPurchLineLCY);
                InvoicePostingInterface.PostLines(PurchHeader, GenJnlPostLine, Window, TotalAmount);
#if not CLEAN23
            end;
#endif

            OnPostInvoiceOnAfterPostLines(PurchHeader, SrcCode, GenJnlLineDocType, GenJnlLineDocNo, GenJnlLineExtDocNo, GenJnlPostLine, TotalPurchLine, TotalPurchLineLCY);

            // Check External Document number
            if PurchSetup."Ext. Doc. No. Mandatory" or (GenJnlLineExtDocNo <> '') then
                CheckExternalDocumentNumber(VendLedgEntry, PurchHeader);

            // Post vendor entries
            if GuiAllowed and not HideProgressWindow then
                Window.Update(4, 1);

            IsHandled := false;
            OnPostInvoiceOnBeforePostLedgerEntry(PurchHeader, TotalPurchLine, GenJnlPostLine, TotalPurchLineLCY, SuppressCommit, VendLedgEntry, IsHandled);
            if IsHandled then
                exit;

#if not CLEAN23
            if UseLegacyInvoicePosting() then
                PostVendorEntry(
                    PurchHeader, TotalPurchLine, TotalPurchLineLCY, GenJnlLineDocType, GenJnlLineDocNo, GenJnlLineExtDocNo, SrcCode)
            else
#endif
            InvoicePostingInterface.PostLedgerEntry(PurchHeader, GenJnlPostLine);

[IntegrationEvent(false, false)]
local procedure OnPostInvoiceOnBeforePostLedgerEntry(PurchHeader: Record "Purchase Header"; TotalPurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)
begin
end;

Additional context
An event is needed to stop posting in certain scenarios.
Internal work item: AB#500432

Please provide more details about this requirement. What exactly you need to skip and why you cannot do it using your own implementation of this posting procedure?

After consulting with the responsible developers, we agreed that we didn't need the event. The ticket can be closed.


Last Found Build is Sometimes Current Build

Your checklist for this issue

[x] Jenkins version
2.164.2

[x] Plugin version
2.2.1

[x] OS
Ubuntu Xenial

Description
The plugin now helpfully logs what it found as the most recent build like this:
11:46:38 [Slack Notifications] found #2126 as previous completed, non-aborted build

Unfortunately this was in the console log for build 2126, which means the 'Back to Normal' notification was never sent, even though it was configured. It seems this code that finds the most recent completed build for a project can sometimes return itself:
https://github.com/jenkinsci/slack-plugin/blob/master/src/main/java/jenkins/plugins/slack/ActiveNotifier.java#L133-L137
Perhaps a good solution would be to find the most recent completed, non-aborted build with build number before the current build?

Related to https://github.com/jenkinsci/slack-plugin/issues/544 I think?


Update addScriptScoreFunction to be more complex and work correctly.

When I tried to use script_score with addScriptScoreFunction got an error:
"script_score query does not support [params]."
So I started digging and there is what i found:
Now code merge "script" and array with params (even if empty).
  "script_score": {
    "script": "_score * doc['my_numeric_field'].value",
    "params": []
  }

ES script_score should look like this (via doc.):
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html
  "script_score": {
    "script": {
      "lang": "painless",
      "inline": "_score * doc['my_numeric_field'].value"
    }
  }

or with params:
  "script_score": {
    "script": {
      "lang": "painless",
      "params": {
        "param1": value1,
        "param2": value2
      },
      "inline": "_score * doc['my_numeric_field'].value / Math.pow(params.param1, params.param2)"
    }
  }

I made a few changes, now it works correctly.

This change is

Duplicated.


Wrong symbol naming in several newer commits

isDialyse instead of is_dialyse (should always use snake_case for members)
DateTransplantation (should use snake_case + should be in English)

Fixed for kidney scoring, let's keep at this for other algorithms


Add systemd service

Ya know, if you want it :)
It assumes you clone/install to /opt/endlessh. I cranked up some systemd permission restrictions because it never hurts. Seems to work fine on my ubuntu 16.06 server, though it takes a few log lines for entries to show up in the journal, it must be getting buffered.

Thanks! I actually did look into this, but I passed on the idea when I
saw that StandardOutput and StandardError can only be redirected to
files in very recent versions (236) of systemd. For my own use I just
wanted the logs to be plain files under /var/logs/endlessh/.

because it never hurts

Well, currently binding to port 22 (privileged ports in general) is denied, and PrivateUsers and/or PrivateDevices seem to be responsible for this.

Well that's no good :(
I'm running this on Ubuntu 16.04.6 with systemd 229 and it works fine for me. Perhaps running the service as root is wiggling around the protections, or maybe the protections act differently in a release as old as mine.


fix: timeInputToHrTime Date handling

The getTime() method returns the number of milliseconds* since the Unix Epoch.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime

seems to be a duplicate of #1784

seems to be a duplicate of #1784

Ah oops you are correct.

Ah oops you are correct.


DO NOT MERGE: bisecting ci failures

Looking for the commit in #1442 that causes the CI failures.
/hold

/close


What are the retention periods for AAD delivered with Office 365 ?

If customer has O365 will they have retention for the Free tier or the premium tier?

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

ID: 5975a65a-630f-a2ab-7cc8-268e278a057b
Version Independent ID: ed2cdee0-9a1e-c435-a172-054896ec35f8
Content: How long does Azure AD store reporting data?
Content Source: articles/active-directory/reports-monitoring/reference-reports-data-retention.md
Service: active-directory
Sub-service: report-monitor
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@Larryngolog
Thanks for your question! We will investigate and update as appropriate.

@Larryngolog
Thank you for your patience.
When it comes to Office365 and AzureAD, your Microsoft 365 subscription includes a free Azure AD subscription, which means you'll be using the AzureAD Free retention policies.
For more info:
Azure AD editions and Microsoft 365 identity management
Subscriptions, licenses, accounts, and tenants for Microsoft's cloud offerings
If you have any other questions, please let me know. Otherwise, I'll go ahead and close out this issue at the end of the day.
Thank you for your time and patience throughout this issue.


Clean up persistence component code

What type of PR is this?
Code cleanup
What does this PR do / why is it needed ?
Change variables/columns used in tests to have more general purpose names
Which issue(s) this PR fixes:

Fixes #
Other notes for reviewers:
Does this PR introduce a user-facing change?
No

Lets clean up the kerberos's attached to some of the TODO's as well. Rest LGTM


Commands won't find ID addresses that are above index 16

Reported by pbj in our slack:
> when i try to use it, i get the following error: `Error: Identity address does not belong to this keychain`

This seems like its because the default value for identity index searches is 16:
https://github.com/blockstack/cli-blockstack/blob/master/src/keys.js#L92
We probably need a way to configure that from a command line argument.

We are using the cli to run our public channels. Would be really helpful to get more than 16 keys per keychain. Currently we're seeing the error mentioned in Aaron's post.

It's to prevent the CLI from just spinning forever looking for an address.  Will push a fix.

Yeah -- if we could add a flag like --max-keychain-search-index, that'd help here. Alternatively, a more RPC-heavy approach is to keep searching so long as there is a name associated with the last index.

Pushed a fix.  Bumped the default to 256 from 16 (it doesn't take very long to search through addresses).  Pass -M <number> if you need to search through more.

@prabhaav did this fix work on your end?

Closing due to inactivity.  Please re-open if the problem persists.


Feature: Translate UI

I made a translation based on the official site of Pokemon
Format is:
EN
JA

Normal
ノーマル
Poison
どく
Bug
むし
Fire
ほのお
Electric
でんき
Dragon
ドラゴン
Fighting
かくとう
Ground
じめん
Ghost
ゴースト
Water
みず
Psychic
エスパー
Dark
あく
Flying
ひこう
Rock
いわ
Steel
はがね
Grass
くさ
Ice
こおり
Fairy
フェアリー

HP
HP
Attack
こうげき
Defense
ぼうぎょ
Sp. Atk.
とくこう
Sp. Def.
とくぼう
Speed
すばやさ

Total is 合計 or 総計 i guess?

Search by name, number, or types is 「名前・番号・タイプで検索できます」

I've added these to https://github.com/wavebeem/pkmn.help/pull/134
If you would like, I can add you to the "Special Thanks" section!

Ty. add me pls!

Does this look good?
👇🏻
Special Thanks

Minamorl (Japanese translation)
Jansjo (testing, research)
Several anonymous Poké Fans

lgtm. thx

This is being tracked in Google Sheets now


Gas Limit attack on removeAlerter and removeOperator

The functions removeOperator and removeAlerter of the PermissionGroups.sol contract are subject to a Gas Limit attack.
Every action of a smart contract consumes gas. In case gas runs out, the contract will stop processing the transaction and the transaction will fail.
Both functions attempt to loop over the operatorsGroup and alertersGroup respectively without having a way to control the max number of iterations.
In case those arrays are very large the for loop will consume all the gas and the transaction will fail.
Currently, there is no limit on the number of operators or alerters that can be added to the contract.
The impact of this issue is that in case a very big number of alerters or operators are added to the relevant arrays, the functions removeOperator or removeAlerter will become dysfunctional, being able to remove only alerters or operators being at the beginning of the operatorsGroup and alertersGroup arrays or at least before the transaction runs out of gas.
As a solution to this issue, the introduction of a limit to the number of operators or alerters is advised.
Vulnerable snippet
    for (uint i = 0; i < operatorsGroup.length; ++i) {
       if (operatorsGroup[i] == operator) {
                operatorsGroup[i] = operatorsGroup[operatorsGroup.length - 1];
                operatorsGroup.length -= 1;
                OperatorAdded(operator, false);
                break;
            }
        }

        for (uint i = 0; i < alertersGroup.length; ++i) {
            if (alertersGroup[i] == alerter) {
                alertersGroup[i] = alertersGroup[alertersGroup.length - 1];
                alertersGroup.length--;
                AlerterAdded(alerter, false);
                break;
            }
        }

Please also note that in the event of the mistake admin can simply delete the first opertors and make the array smaller (and add them later).
In any case, this issue was fixed at this commit.

Hi yaronvel,
Sorry for digging up this issue but I just noticed that you actually fixed the issue I mentioned. Since I reported a valid issue that was later fixed by your team does it mean that it qualifies for Kyber Network's bug bounty program?
Thanks

Hi.

One of our auditor already reported this issue before you did, and in any case we were aware of it before your report.
The bug bounty scope currently only covers bugs that put user and reserve funds at risk.

Hence, at the moment it does not qualify. However, if over time our bounty budget is not depleted we will consider it.


$scope.tableParams.reload() occurring twice

Hi,
To reload the data in to table I have written following method.
var reloadTable = function() {
$scope.tableParams.page(1);
$scope.tableParams.sorting({});
$scope.tableParams.reload();
};
As per my observation due to $scope.tableParams.sorting({}) method getData() method in prams getting invoked automatically. As reload() method will again invoke getData() method.
Please let me know if i'm wrong at any place or suggest me better approach.

I have the same problem

            $scope.tableParams = new ngTableParams({
                page: 1,            // show first page
                count: 25,          // count per page
                sorting: {
                    views: 'desc'     // initial sorting
                }
            }, {
                counts: [],
                getData: getDataFn
            });

and the function itself is defined after the init block. And I got double triggered getData function

I'm hust wondering why I'm getting this function triggered at first initialization if tableParams?

can we expose ```isFirstTimeLoad```` into $params ?

@AndrewEastwood @vvohra87
I see, I have modified the function according following one
var reloadTable = function() {
$scope.tableParams.page(1);
$scope.tableParams.sorting({});
};


Gradle tasks spuriously failing when building against 2022.3 EAP due to Java 11/17 discrepancy

Describe the bug
Error: Unable to initialize main class org.intellij.grammar.Main
Caused by: java.lang.UnsupportedClassVersionError: com/intellij/lang/LanguageBraceMatching has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Unable to initialize main class org.intellij.grammar.Main

Caused by: java.lang.UnsupportedClassVersionError: com/intellij/lang/LanguageBraceMatching has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

To reproduce
The error is somewhat spurious in the sense that it depends on the JDK/Gradle setup on a specific machine (although if it happens on a given machine, then it happens deterministically). We don't know the exact combination of factors; killing Gradle processes and/or clearing up ~/.gradle/ seems to have helped on some machines.
Might be reproduced on latest develop of git-machete-intellij-plugin... but again, depends on a specific machine. Having java point to Java 11 (rather than 17) might increase the chances (although the issue was observed even with java pointing to Java 17).
Additional context
I believe this is caused by the following circumstances:

Since 2022.3, classes of IntelliJ (like com/intellij/lang/LanguageBraceMatching) are compiled for Java 17 (classfiles version 17+44=61).
JDK version for Java compilation can be set up in Gradle via java { toolchain { ... } }; this, however, apparently does not affect the Java version used for execOperations.javaexec in GenerateLexerTask
If GenerateLexerTask, for whatever reason, still runs under Java 11, then an attempt to load org.intellij.grammar.Main (itself a Java 11 class) fails since Java 11 cannot load Java 17 classes from IntelliJ 2022.3.

Suggested remedy
Maybe make the Java version used for .javaexec configurable in both GenerateLexerTask and GenerateParserTask? As suggested in Gradle docs
Environment:

OS: macOS
Gradle Grammar-Kit Plugin Version: 2021.2.2
Gradle Version: 7.5.1

...although as stated, it's more about IntelliJ/Java version in this case.
CC
@LukaszKontowski, @MaciejG604

Delving deeper... looks that ultimately the JVM to run is selected inside org.gradle.process.internal.DefaultExecActionFactory.DecoratingExecActionFactory#newDecoratedJavaExecAction (at least under Gradle 7.4.2), which in turn uses:
        public JavaExecAction newDecoratedJavaExecAction() {
            final JavaForkOptionsInternal forkOptions = newDecoratedJavaForkOptions();
            forkOptions.setExecutable(Jvm.current().getJavaExecutable());
            return instantiator.newInstance(
                DefaultJavaExecAction.class,
                fileResolver,
                fileCollectionFactory,
                objectFactory,
                executor,
                buildCancellationToken,
                temporaryFileProvider,
                javaModuleDetector,
                forkOptions
            );
        }

So just Jvm.current(), not really configurable apparently ☹

For a 100% reproducible setup:
 docker run gitmachete/intellij-plugin-ci:9.0.0 'git clone https://github.com/VirtusLab/git-machete-intellij-plugin --depth=1 --branch=debug/grammar-kit-java-17 gmip/ && cd gmip && ./gradlew frontend:file:generateLexer'

Basically, this runs in a container where Java 11 is installed by default.

Let @MaciejG604 take a look (rewrite both tasks to JavaExec)

Thanks for raising this issue, Paweł – I agree that making tasks exec-like is a good move.


Loop subdivision

Hello, it is a fantastic work.
I wanna use Loop subdivision, I wonder is there any available code in your project to operate Loop subdivision? (Cause the description does not mention this part.)
Thank you.

You should be able to just do.
import openmesh as om
V = some_vertices
F = some_faces
num_subdivision_steps = 1
update_points = True
mesh = om.TriMesh(V, F)
mesh.subdivide(num_subdivision_steps, update_points)

Sorry for the late response. I wasn't expecting anyone to use this :)


Added scheduler closure check during RegistryNotifier notify.

What is the purpose of the change
https://github.com/alibaba/nacos/issues/11294
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Hello, I'm seeing a CI error that says: "TEST FAILURE: case config not found: /home/runner/work/dubbo/dubbo/1-basic/dubbo-samples-spring-xml/case-configuration.yml," but I haven't made any changes to the relevant logic. Why did this CI error occur?

Codecov Report

Merging #13273 (6e47cef) into 3.2 (6b634b7) will decrease coverage by 0.08%.
Report is 8 commits behind head on 3.2.
The diff coverage is n/a.

:exclamation: Current head 6e47cef differs from pull request most recent head 4fdb88d. Consider uploading reports for the commit 4fdb88d to get more accurate results

@@             Coverage Diff              @@
##                3.2   #13273      +/-   ##
============================================
- Coverage     69.49%   69.42%   -0.08%
  Complexity        2        2
============================================
  Files          1653     1652       -1
  Lines         68942    68959      +17
  Branches      10048    10057       +9
============================================
- Hits          47911    47874      -37
- Misses        16392    16428      +36
- Partials       4639     4657      +18

see 54 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Getting-Started Wiki  instructions need to be update for 2.0

Getting-Started Wiki instructions need to be update for 2.0
See https://github.com/Microsoft/ApplicationInsights-aspnetcore/issues/478
I can do an edit  pass when these are in PR

Made a starting point.
https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Getting-Started-for-a-ASP.NET-CORE2.0-WebApp
Not quite perfect, but a good starting doc.

I made some minor edits.

<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.0-beta1" />
@cijothomas  do you want the beta version?


More details

Hi Kaixhin,
I just want to try your demo. But I am new to FCN model. Can you give more details on how to process data, and how to run the demo successfully.
I met the same problem on pytorch that the train accuracy is low when train object detection. And I solved the problem with a few tricks. I am very interest in your code. And will be happy figure out your problem.

I've added more details in the readme for everyone to see. Another minor detail that I haven't included is that the data is normalised according to the ImageNet preprocessing procedure used for PyTorch's pretrained models. Let me know if you have any more questions!

The problem in pytorch training is that all parameters have the same global weight decay including bn and bias. I find it a big problem to get good training result. You can  try to set bn and bias params' weight decay to zero according to the following code.  Maybe helps for you.
params_dict = dict(model.named_parameters())
params = []
for key, value in params_dict.items():
if key.find('.bn') >= 0 or key.find('.bias') >= 0:
params += [{'params': [value], 'weight_decay': 0.0}]
else:
params += [{'params': [value], 'weight_decay': decaybatch_size}]
optimizer = optim.SGD(model.parameters(), lr=learning_rate/batch_size, momentum=momentum, dampening=0, weight_decay=decaybatch_size)

I've tried this now, plus a double learning rate for biases as I've seen in other places/been told by someone, but not seeing a change in results. Still seeing ~40 IoU with RMSprop, and nothing much at all with SGD+momentum.


docs: header style update

:tada: This PR is included in version 2.3.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


optifinePackages: refactor version generation

From https://github.com/NixOS/nixpkgs/pull/179372.
A python script is created to automatically look up the available mainstream optifine versions (the ones highlighted in blue on the optifine download page), then write the appropriate metadata into versions.json for default.nix to pick up from.
Since the implementation is acceptable, I decided to not change much besides updating the versions.json. But if that's not enough then I will try to cook up something else instead.
This should have been completed a month ago, but turns out university is a heavier burden than what I have prepared for.
cc @IvarWithoutBones :DD
Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Thanks! This is looking great :)
Few things:

You should set passthru.updateScript so that this can be automatically updated.
Should also make sure that the scripts run from the maintainer script, has a bit of trouble when the updater isn't ran from nixpkgs root sometimes IIRC.

After scanning through the maintainer script I have found this: https://github.com/NixOS/nixpkgs/commit/1efc042d92c0f20be6261be73e462789596fff09
Apparently an auto-commit mechanism is already built in the maintainer script... which is surprising because I found no documentation for it at all. :P Since most of the messages are redirected and not displayed anyways, I have removed them altogether and instead used stdout exclusively for dumping the JSON for the maintainer script to pick up from.
So now simply doing a nix-shell ./maintainers/scripts/update.nix --argstr package optifinePackages.optifine-latest --argstr commit true will not only update the versions, but also write the commit message and actually commit it!


configDrive: Fix failure to delete (unstarted) VM

Description
This PR fixes the issue observed when trying to expunge a VM created using config drive userdata service (with startVM=false) and the env has no secondary stores.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[X] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

On an env with no secondary store, set the global setting: vm.configdrive.primarypool.enabled to true
Deploy a VM with a network offering with configDrive userdata service, but do not start it
Attempt deleting(expunge) the VM - the VM deletes successfully without NPE

Performed the above test with  vm.configdrive.primarypool.enabled set to false and was also able to expunge the VM

@blueorangutan package

@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 2987

@blueorangutan test

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-3726)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35622 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6146-t3726-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_primary_storage.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py

@blueorangutan test

@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-3732)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36691 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6146-t3732-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test
Result
Time (s)
Test File


error in instalation using ... devtools::install_github("data-edu/dataedu")

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.
Brief description of the problem

> devtools::install_github("data-edu/dataedu")
Downloading GitHub repo data-edu/dataedu@master
sh: 1: /bin/gtar: not found
sh: 1: /bin/gtar: not found
Error: Failed to install 'dataedu' from GitHub:
  error in running command
In addition: Warning messages:
1: In system(cmd) : error in running command
2: In utils::untar(tarfile, ...) :
  ‘/bin/gtar -xf '/tmp/RtmpCrd0sR/file33f81e7ec26a.tar.gz' -C '/tmp/RtmpCrd0sR/remotes33f8291625ea'’ returned error code 127

please solve this

Hello,
Could you please let us know if 1) you installed R using anaconda and 2) if you've taken any steps to try to solve this before posting? A Google search led me to these links. Unfortunately, it seems like it is a system environment issue, not a package issue.

https://github.com/r-lib/devtools/issues/379
https://github.com/r-dbi/RPostgres/issues/110

Please try Sys.setenv(TAR = "/bin/tar") per these posts.
If that does not work and you installed R through anaconda, this issue from 29 days ago states that if you are using conda you need to use conda to install all packages. See https://whattheyforgot.org/set-up-an-r-dev-environment.html#what-about-conda for more info.
Thanks!

Hi @suresh2014, closing this but please try out my recommendations above. Hope you are able to install the package!


ModuleNotFoundError for pytinydiffsim_ad and AttributeError for pytinydiffsim when running Python code

I thought I'd just gotten Python working after finding https://github.com/google-research/tiny-differentiable-simulator/issues/63. But I was mistaken. I've found other errors as I've played with the example files for Python. Apologies if you would prefer if I had created multiple issues, one for each error.
It's especially odd to me that I can import pytinydiffsim_dual just fine, but not pytinydiffsim_ad.
$ python cppad_example.py
Traceback (most recent call last):
  File "cppad_example.py", line 1, in <module>
    import pytinydiffsim_ad as pd
ModuleNotFoundError: No module named 'pytinydiffsim_ad'

$ python b_urdf_structs_example.py
Traceback (most recent call last):
  File "b_urdf_structs_example.py", line 47, in <module>
    sphere_mb.set_base_position(pd.Vector3(0.,0.,25.))
AttributeError: 'pytinydiffsim.TinyMultiBody' object has no attribute 'set_base_position'

But other examples do work (each imports pytinydiffsim and/or pytinydiffsim_dual):
$ python e_load_urdf.py
robot_name= plane

$ python billiard_optimization.py
sphere2red_path= /mnt/c/users/mretc/OneDrive/Documents/Grad School/thesis/motion/tiny-differentiable-simulator/data/sphere2red.urdf

I don't know enough about automatic differentiation to know if I need pytinydiffsim_ad if I have pytinydiffsim_dual.

To solve ModuleNotFoundError for pytinydiffsim_ad, I did the following:

I had to amend the issue I linked to and add SET_TARGET_PROPERTIES(pytinydiffsim_ad PROPERTIES PREFIX "") to python/CMakeLists.txt.
I had to run make with the flag -D USE_CPPAD=ON.

Still not sure how to fix the other issue.

If you can import pytinydiffsim_dual , you should be fine. We haven't updated the setup.py code to include the pytinydiffsim_ad I think.


refactor(error): remove código desnecessário

Coverage increased (+5.3%) to 100.0% when pulling 55b044941d19ca23c21af337ed53eecde90dafdd on develop into 2067afe613e016c9d6024427662b260b9a12740d on master.


try/catch inconsistent

to demonstrate it I have a file with the following content
try
    sleep 2
  catch /^Vim:Interrupt$/
    echo 'interupted'
  finally
    echo 'continuing'
endtry
" I wonder why I do not see "Press enter" if i press ^C within 2 seconds (to interrupt the sleep)
call input('Press enter')
call input('press enter again')

vim -u NONE -U NONE -c "so file.vim" rsp.
gvim -u NONE -U NONE -c "so file.vim"
Observation : gvim shows the "Press enter" line, while vim does not.
If it matters, this is :
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jul  1 2018 04:17:01)
Included patches: 1-127, 129-133

to demonstrate it I have a file with the following content
try
    sleep 2
  catch /^Vim:Interrupt$/
    echo 'interupted'
  finally
    echo 'continuing'
endtry
" I wonder why I do not see "Press enter" if i press ^C within 2 seconds (to interrupt the sleep)
call input('Press enter')
call input('press enter again')

vim -u NONE -U NONE -c "so file.vim" rsp.
gvim -u NONE -U NONE -c "so file.vim"
Observation : gvim shows the "Press enter" line, while vim does not.
If it matters, this is :
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jul  1 2018 04:17:01)
Included patches: 1-127, 129-133

Most likely the CTRL-C causes script execution to be aborted.
When try/catch was added this was kept backwards compatible.
Thus after the catch and finally statements execution of the script
stops.
You can try putting this in a function, then perhaps only the function
aborts.
--
hundred-and-one symptoms of being an internet addict:
173. You keep tracking down the email addresses of all your friends
(even childhood friends).
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Michael Naumann wrote:

I don't think that it is related to source.
The script is not aborted - the second input() gets executed.
Only the first input('press enter') does not show up.
Also, wrapping it in a function doesn't change behaviour

function Foo()
  try
      sleep 2
    catch /^Vim:Interrupt$/
      echo 'interupted'
    finally
      echo 'continuing'
  endtry
  " I wonder why I do not see "Press enter" if i press ^C within 2 seconds (to interrupt the sleep)
  call input('Press enter')
  call input('press enter again')
endfunction

call Foo()

OK, I see it now (I thought you said was was working OK in the GUI and
not working in the terminal).
Looks like in this specific case we never read the CTRL-C from the input
stream before calling input().
--
Some of the well known MS-Windows errors:
EHUH		Unexpected error
EUSER		User error, not our fault!
EGOD		Horrible problem, god knows what has happened
EERR		Errornous error: nothing wrong
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Fixed with patch 8.1.0158


how can i update firebase-messaging???

my current version is 10.0.1 want to update it to 10.2.+ i couldn't find any way to update it

Hey!
We've split up this repo in three. One for each platform. If your issue is still valid please reopen in the appropriate repo which are:

https://github.com/firebase/friendlychat-web
https://github.com/firebase/friendlychat-android
https://github.com/firebase/friendlychat-ios


Can't connect to openssl s_server with Chrome browser

I'm testing 1.2.0-rc0.  When I try to set up a trivial webserver with a self-signed certificate and visit it from Chrome, I see a weird NET::ERR_CERT_INVALID error:

HOST normally uses encryption to protect your information. When Chrome tried to connect to HOST this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be HOST, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Chrome stopped the connection before any data was exchanged.

You cannot visit HOST right now because the website sent scrambled credentials that Chrome cannot process. Network errors and attacks are usually temporary, so this page will probably work later.

In this case I don't have an option under Advanced to bypass the certificate warning, which you'd normally see with a webserver using a self-signed cert.
Here is my procedure:
tpm2_createprimary -C o -g sha256 -G ecc -c primary_sh.ctx
tpm2_evictcontrol -C o -c 0x81000001 || true
tpm2_evictcontrol -C o -c primary_sh.ctx 0x81000001
openssl genpkey -provider tpm2 -algorithm EC -pkeyopt group:P-256 -pkeyopt parent:0x81000001 -out eckey.pem
openssl req -provider tpm2 -provider default -x509 -subj "/C=GB/CN=foo" -key eckey.pem -out cert.pem
openssl s_server -provider tpm2 -provider default -propquery '?provider=tpm2' -www -accept 443 -cert cert.pem -key eckey.pem

If I try to connect with openssl rather than Chrome, I don't get any errors:
openssl s_client -verify_return_error -CAfile cert.pem -connect localhost:443

Likewise, Firefox 110.0.1 is able to connect after bypassing the cert warning.
If I use software based keys instead of the TPM2, Chrome lets me connect after bypassing the (expected) NET::CERT_AUTHORITY_INVALID warning:
openssl ecparam -name prime256v1 -genkey -noout -out ecc_private.pem
openssl pkey -in ecc_private.pem -pubout -out ecc_public.pem
openssl req -x509 -subj "/C=GB/CN=foo" -key ecc_private.pem -out cert_sw.pem
openssl s_server -www -accept 443 -cert cert_sw.pem -key ecc_private.pem

This is Chrome 109.0.5414.119 on Linux.

I suspect it may be because the certificate subject (-subj) does not match the server.

There is a name mismatch in the test that used the software based keys, too.  If you click Advanced, you can bypass that warning and proceed to the site.
By contrast, Chrome doesn't let you bypass NET::ERR_CERT_INVALID.  It seems to be a different failure mode.  The abort happens right after a digest operation:
PROVIDER INIT
DER DECODER DECODE
DER DECODER DECODE
TSS2 DECODER DECODE 0x87
TSS2 DECODER LOAD parent: persistent 0x81000001
TSS2 DECODER DECODE found EC
EC LOAD
EC GET_PARAMS [ bits security-bits max-size ]
EC HAS 0x1
RAND NEW
RAND NEW
RAND GET_CTX_PARAMS [ max_request ]
RAND GENERATE
RAND NEW
RAND GET_CTX_PARAMS [ max_request ]
RAND GENERATE
RAND GET_CTX_PARAMS [ max_request ]
RAND GENERATE
RAND GET_CTX_PARAMS [ max_request ]
RAND GENERATE
DER DECODER DECODE
Using default temp DH parameters
EC NEW
EC IMPORT [ point-format encoding group pub point-format group-check use-cofactor-flag ]
EC MATCH 7
EC MATCH 7
ACCEPT
EC GET_PARAMS [ group ]
RAND GET_CTX_PARAMS [ max_request ]
RAND GENERATE
SIGN DIGEST_INIT ecdsa MD=SHA256
EC GET_PARAMS [ group ]
RAND GET_CTX_PARAMS [ max_request ]
RAND GENERATE
SIGN DIGEST_INIT ecdsa MD=SHA2-256
SIGN DIGEST_SIGN estimate
SIGN DIGEST_SIGN

Do you see the same thing on your setup?

Another data point: if I have the TPM generate an RSA privkey/cert rather than ECC, Chrome is now able to connect:
# same as above
tpm2_createprimary -C o -g sha256 -G ecc -c primary_sh.ctx
tpm2_evictcontrol -C o -c 0x81000001 || true
tpm2_evictcontrol -C o -c primary_sh.ctx 0x81000001

# use RSA instead of ECC for the server cert
openssl genpkey -provider tpm2 -algorithm RSA -pkeyopt parent:0x81000001 -out rsakey.pem
openssl req -provider tpm2 -provider default -x509 -subj "/C=GB/CN=foo" -key rsakey.pem -out rsacert.pem
openssl s_server -provider tpm2 -provider default -propquery '?provider=tpm2' -www -accept 443 -cert rsacert.pem -key rsakey.pem

For RSA, Chrome shows the expected NET::ERR_CERT_AUTHORITY_INVALID due to the self-signed cert.  Unlike in the ECC case, I can click Advanced and bypass it.


[LOC] Back-Translation "ヘルプ"→"Help"

https://docs.microsoft.com/ja-jp/nuget/tools/cli-ref-list

The PR is not being built because the target branch live is filtered in .openpublishing.publish.config.json on live branch.

@hyoshioka0128:
Thank you for your feedback and suggestion!
We agree with your suggestions, and we will include them into the next article update release.
Kind regards,
Microsoft DOCS Global Experience Team

The PR is not being built because the target branch live is filtered in .openpublishing.publish.config.json on live branch.


SSR serialization of fetch() responses is triggered only if their body is read

When SvelteKit-provided fetch runs on the server, the response is serialized inside <script type="svelte-data" ... tags only if await response.text() or await response.json() are invoked on the response object. Responses whose body is not read (e.g. responses with no content, errors, ...) won't be serialized and a duplicated network request will be triggered by the client.
Related code here.
Related documentation here (not mentioning this behavior).

Yeah, I'm not sure if there's any other way of implementing this. I know there was another issue about this somewhere in the tracker, but don't have time to look for it at the moment

#842 is the previous issue for this. Closing this one.


Bug report: spo list list --query on BaseTemplate fails

Description
The command below fails to return any lists
o365 spo list list --webUrl https://organisation.sharepoint.com/sites/site --query '[?BaseTemplate==`101`]'

The following one does
o365 spo list list --webUrl https://beisgov.sharepoint.com/sites/1919708 --query '[?Title==`Documents`]'

Steps to reproduce
o365 spo list list --webUrl https://organisation.sharepoint.com/sites/site --query '[?BaseTemplate==`101`]'

Expected result
Id   :
Title: Documents
Url  : /sites/site/Shared Documents
Actual result
Nothing returned
Environment
Azure Cloud Shell
o365 version: 2.10.0
bash version: 4.3.48(1)-release

Thank you for reporting the issue and you've uncovered a bug, although the behavior you mentioned is partly by design.
In Office 365 CLI, JMESPath queries are applied after the data set was retrieved and just before it's passed to the output. In your example, you're using the default text output, which contains only Title, URL and ID of each list. So when you try to filter it by BaseTemplate, which isn't in the data set, you get an empty result.
For your filter to work, you'd need to change the output mode to json (--output json) which returns the full data set as retrieved from the server. Here is where you found an issue.
In this particular command, we pass the raw response from the server so the result set is exposed behind an additional value property, eg. {value:[{list1}, {list2}]}, instead of [{list1}, {list2}]. This is clearly a bug and we'll fix it. Sorry for the trouble and great to see that you tried using CLI in Azure Cloud Shell! ❤

Understood and having added the --output json and prefixing my query with value it is all working as expected:
o365 spo list list --webUrl https://organisation.sharepoint.com/sites/site --output json --pretty --query 'value[?BaseTemplate==`101`]'

Thank you for your feedback and yes this has been a huge help allowing me to use the cloudshell to perform real work on a production system instead of having to use a client with PnP PowerShell and Windows installed on it.
Big stride forward.

Awesome and thank you for the kind words! Great to hear that you're unblocked 👏

We have just released a new beta version with the fix for this issue. Once again, thank you for bringing it up to our attention 👏