How about exporting Tensor::FromProto to Python API?

Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information

TensorFlow version (you are using): 2.8
Are you willing to contribute it (Yes/No):

Describe the feature and the current behavior/state.
If we have to convert TensorProto message in Python env, we can't directly convert it.
We have to

construct a new tensor with protobuf message field
serialize message to string and parse it using tf.io.parse_tensor
or some other way

Will this change the current api? How?
Yes. Maybe we can add the tf.from_tensor_proto like tf.make_tensor_proto.
Who will benefit with this feature?
The people who frequently handle protobuf messages.
For example, I handle TensorProto messages directly when I predict some examples with TensorFlow Serving using gRPC.
Any Other info.
Tensor::FromProto docs link

@rainwoodman Oh, I didn't know about that function. Thank you!

Are you satisfied with the resolution of your issue?
Yes
No


Disable TLS re-negotiation via SSL_OP_NO_RENEGOTIATION option

Properly disable TLS re-negotiation by setting the SSL_OP_NO_RENEGOTIATION option via SSL_CTX_set_options(). This applies when the OpenSSL version is 1.1.0h and above when the SSL_OP_NO_RENEGOTIATION macro is defined.
Before the fix, I was able to do TLS re-negotiation from client side on an open session.

/usr/bin/openssl s_client -connect localhost:11211
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
SSL-Session:
Protocol  : TLSv1.2
....
R
RENEGOTIATING
depth=0 C = US, ST = CA, O = Test, OU = Subunit of Test Organization, CN = test.com, emailAddress =<EMAIL_ADDRESS>verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = US, ST = CA, O = Test, OU = Subunit of Test Organization, CN = test.com, emailAddress =<EMAIL_ADDRESS>verify error:num=21:unable to verify the first certificate
verify return:1

After the fix, client can no longer re-negotiate.

/usr/bin/openssl s_client -connect localhost:11211
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
SSL-Session:
Protocol  : TLSv1.2
....
R
RENEGOTIATING
140151971125152:error:14094153:SSL routines:ssl3_read_bytes:no renegotiation:s3_pkt.c:1481:

@dormando Can you please take a look? Trying to see if we can get this into the next memcached version. Thanks!

Thanks! Sorry I'm running pretty lagged right now. I'll get to it as soon as I can.
I thought we had disabled renegotiation already so I'll need to spend a few extra minutes to figure out why that failed.

I think the intention has been there all along to disable TLS re-negotiation as I can see there was a TODO in the code.

Yeah I can't tell why I didn't just do that in the first place, good catch. This still makes it into the next release since I haven't done one in a while :)

@dormando Thanks! Glad to hear this will get into the next release.

released in 1.6.16


Cannot debug Azure Durable Functions with the storage provide -MSSQL.

I've created a durable function with the storage provider MSSQL using func command line and set the "AzureWebJobsSecretStorageType": "Files" in local.settings.json.  Yet it's always prompt the dialog "In order to proceed, you must connect a storage account for internal use by the Azure Functions runtime." during debugging in vscode to block my debug.   However, I've created the same function with the same configuration within visual studio for mac(latest version), and no any prompt during debugging in vscode.

Here is my information:
VS code information:
Version: 1.84.2 (Universal)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:33.687Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.6.0

Azure Functions version:
1.13.1 - 2023-09-26
Azure Functions Core Tools 4.0
azure/functions/azure-functions-core-tools@4: stable 4.0.5455
Visual Studio for Mac information:
Visual Studio Enterprise 2022 for Mac
Version 17.6.7 (build 417)
Installation UUID: f4a4d770-df5b-4a0d-b031-29f57c710d7a

Runtime
.NET 7.0.3 (64-bit)
Architecture: Arm64
Microsoft.macOS.Sdk 13.1.1007; git-rev-head:8afca776a0a96613dfb7200e0917bb57f9ed5583; git-branch:release/7.0.1xx-xcode14.2

Roslyn (Language Service)
4.6.0-3.23180.6+99e956e42697a6dd886d1e12478ea2b27cceacfa

NuGet
Version: <IP_ADDRESS>

.NET SDK (Arm64)
SDK: /usr/local/share/dotnet/sdk/7.0.311/Sdks
SDK Versions:
	8.0.100
	7.0.311
	7.0.308
	7.0.307
	7.0.304
	7.0.302
	7.0.203
	7.0.202
	7.0.200
	7.0.103
	7.0.102
	6.0.417
	6.0.414
	6.0.413
	6.0.410
	6.0.408
	6.0.407
	6.0.406
	6.0.405
MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks

.NET Runtime (Arm64)
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	8.0.0
	7.0.14
	7.0.11
	7.0.10
	7.0.7
	7.0.5
	7.0.4
	7.0.3
	7.0.2
	6.0.25
	6.0.22
	6.0.21
	6.0.18
	6.0.16
	6.0.15
	6.0.14
	6.0.13

Xamarin.Profiler
'/Applications/Xamarin Profiler.app' not found

Updater
Version: 11

Apple Developer Tools
Not Installed

Xamarin.Mac
Version: <IP_ADDRESS> Visual Studio Enterprise
Hash: 9defd91b3
Branch: xcode14.3
Build date: 2023-10-23 16:14:59-0400

Xamarin.iOS
Version: <IP_ADDRESS> Visual Studio Enterprise
Hash: 9defd91b3
Branch: xcode14.3
Build date: 2023-10-23 16:15:00-0400

Xamarin Designer
Version: <IP_ADDRESS>
Hash: 2648399ae8
Branch: remotes/origin/d17-6
Build date: 2023-11-10 12:19:46 UTC

Xamarin.Android
Version: <IP_ADDRESS> (Visual Studio Enterprise)
Commit: xamarin-android/d17-5/45b0e14
Android SDK: /Users/wsong034/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		13.0 (API level 33)

SDK Command-line Tools Version: 7.0
SDK Platform Tools Version: 34.0.3
SDK Build Tools Version: 32.0.0

Build Information:
Mono: d9a6e87
Java.Interop: xamarin/java.interop/d17-5@149d70fe
SQLite: xamarin/sqlite/3.40.1@68c69d8
Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@ca1552d

Microsoft Build of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
<IP_ADDRESS>
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
<IP_ADDRESS>2
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager
Version: <IP_ADDRESS>
Hash: a715dca
Branch: HEAD
Build date: 2023-11-10 12:19:52 UTC

Android Device Manager
Version: <IP_ADDRESS>9
Hash: 06e3e77
Branch: HEAD
Build date: 2023-11-10 12:19:52 UTC

Build Information
Release ID:<PHONE_NUMBER>
Git revision: 179aa48a5702754e41a8218d0403ddc3be46706f
Build date: 2023-11-10 12:18:09+00
Build branch: release-17.6
Build lane: release-17.6

Operating System
Mac OS X 13.5.2
Darwin 22.6.0 Darwin Kernel Version 22.6.0
    Wed Jul  5 22:17:35 PDT 2023
    root:xnu-8796.141.3~6/RELEASE_ARM64_T8112 arm64

Enabled user installed extensions
Library Manager 0.4
NuGet Package Explorer 0.12
CSharp Interactive 0.5
NuGet Package Management Extensions 0.34

We check for AzureWebJobsStorage because in most cases, this is a requirement to debug Functions projects locally.
However, since it seems like you may not need it, as a workaround, could you try setting AzureWebJobsStorage: "skip" in your local.settings.json? I think that'll let you bypass that prompt.
We should offer a way to skip this prompt in the future though since there seems to be project configurations that we haven't considered that do not actually need AzureWebJobsStorage to be set.

@nturinski  Thanks for your help. It works according to your suggestion.


Layout export script

Is your feature request related to a problem? Please describe.
Programmatically export layouts.
Describe the solution you'd like
Create a script to export layouts in project.
Describe alternatives you've considered
Manual export.
Additional context
Should do the following:

[x] Ask user to select layouts to export
[x] Update dynamic text this is indeed done automatically on export
[x] Output layouts to reasonable folder

@t-mahon @BWS90
This is pretty much complete. The remaining item is the naming convention so I'll leave it open pending this discussion. The NWCG conventions are here: https://www.nwcg.gov/publications/pms936/file-naming, however I personally believe that the order of attributes should be in order of importance. I propose {map type}{current date}{time}{page size}{page orientation}_ {incident name}{Unit ID+ Local Incident ID}{Operational period if appropriate}.pdf.
That basically moves the date/time ahead of the size/orientation.
There are two ways I can see this:

We are in a position to choose our own naming convention and we do so for the sake of finding data more easily.
We just adhere to the standard for consistency sake and presume we can search for data.

I don't have the strongest of feelings and at the end of the day, I'm going to write the final string so it'll be fairly easy to change for organizations that want something different than what ships.

I have gone ahead and added the naming IAW the NWCG SOP. Please take a look and let me know what you think.

Cool, I think we can leave it for now. I did make it the format you have there. I think the next step is to add some of the export options to the tool.

@t-mahon -- can you confirm that this currently meets what you are after? I think we can tackle custom naming if that's something we want to address. I'm going to add that to the customization task. If everything else is working as advertised, you can close the issue. Thanks.

Closed.


Need a logo/icon

This project needs a logo, and I'm sure there are way better designers than me who could do the task justice.
Obviously this project is open source so there would be no payment, but if anyone can provide a decent logo which suits this project then I'll link to their website/portfolio for the lifetime of this project.
What's the spec?  Well, it's this project: a XAML/WPF toolkit for creating material design interfaces.  I guess the logo will probably follow the material design logo guidelines.

Hi, does this look?

Love it! Nice one!

I'll happily use that....your wanna send it me, or create an images directory and send a PR?  And a link to your homepage portfolio?

Great!
Enviado pelo meu Windows Phone
-----Mensagem Original-----
De: "snalty"<EMAIL_ADDRESS>Enviada em: 03/05/2015 13:17
Para: "ButchersBoy/MaterialDesignInXamlToolkit"<EMAIL_ADDRESS>Assunto: Re: [MaterialDesignInXamlToolkit] Need a logo/icon (#14)
Hi, does this look?
—
Reply to this email directly or view it on GitHub.

Don't really understand git so I'll post them here. The archive should contain the PSD and a 512px PNG.
https://drive.google.com/file/d/0Bz9SXjQies59RVBlZVpKYW0tTmc/view?usp=sharing
The closest thing I have to a portfolio is this old blog (I'm only a designer by night haha).

Many thanks, it's on the readme, and will popup on nuget, and the proper web page (when I get around to creating one!)


Selected Cell Type contains unexpected information

The "selected cell type" metadata field that appears in the browser does not contain the information I would expect it to, or the short description for the following study is wrong.
This study is an immune cell study: https://data.humancellatlas.org/explore/projects/8c3c290d-dfff-4553-8868-54ce45f4ba7f
The study clearly states that it sorts on CD45 and separately sequences the positive and negative populations, suggesting that it has done two selections: CD45+ and CD45-.
Yet, the "selected cell type" column contains a series of immune types that presumably the authors found after sequencing, if I believe the study description. The cell types in the "selected cell type" field here are more correctly identified cell types.
Corollary: I would expect to see a number of "None" fields where authors did not perform selection prior to experimentation.

This should be an Ingest issue - Data Browser is just reflecting what's in the metadata from cell_suspension.json:
https://data.humancellatlas.org/metadata/dictionary/biomaterial/cell_suspension#cell_suspension-selected_cell_types


Added unit test support for validating manifest file format 1 versus 2.

Decided the implicit tests of manifest format 1 versus 2 were insufficient.  Created an explicit method for validating VersionEdit::EncodeTo()'s second parameter.  Then updated existing VersionEdit unit test to use the validation.

+1 dfa6331


Add a Contact us Section in the footer

modify the footer to show MASK contact details, which includes:

FB
Email
phone

all details avalible from MASK's About  section in FB

I am working on this issue but I am not able to find the phone number. Please provide the same

@Shankusu993  pls check PR no. 38

please assign the issues you work on before starting the work so clashes can be avoided.
#38  solved the issue hence I'm closing this one here.


vcpkg copied the release dll to the debug .the cause some error !

Describe the bug
i have install vcpkg,
vcpkg install opencv:x64-windows
succ!
step1: use qt-online installer install QT
step1: vs2022 create a new QT project
step2: Nuget package  install vcpkg
step3:
`#inlucde <opencv2/opencv.hpp>
int main(){
cv::Mat = imread(R"(xxx.jpg)")
}
`
x64-debug:
error : [<EMAIL_ADDRESS>global loadsave.cpp:244 cv::findDecoder imread_(''): can't open/read file: check file path/integrity
x64-release:
succ
i checkd the debug dir:
the vcpkg copied the opencv-release dll to the debug dir, then got the error.

Environment

OS: [e.g. Windows]
Compiler: vs2022，msvc19, c++17

i also tried other way;
stpe1: create a win32 project,not qt project
step2: then run same code , all succ

@JackBoosY  do you have time to see what happed?

Can you please provide all the vcpkg related logs when build your project?

Can you please provide all the vcpkg related logs when build your project?

where should i got the logs?
我要去那里找这个log?

Can you please provide all the vcpkg related logs when build your project?

where should i got the logs? 我要去那里找这个log?

In your project build output.

this is what i done:
step1: create a new vs2022 qt project, named vcpkg-debugerror-test
step2: add opencv code ,just cv::Mat image = cv::imread(path)
step3:build the debug x64
step4:zip the debug log https://github.com/JaosonMa/for-models-download/blob/master/x64.zip
this is debug.exe dir

this x64.zip is from here

@Adela0814 Please verify this issue.

@JaosonMa  Could you please provide a simple reproduction project?

I zip the qt-5.15.2-msvc2019_64.zip and the vcpkg-debugerror-test project. herehttps://drive.google.com/drive/folders/1KesKIPpMnuDbA696UMUp7Eo-4TcSkgou?usp=sharing
step1: install QT vs tools in the vs2022
step2: config the QT version msvc_2019_64
step3: create an QT widgets app project
step4: add nugets install vcpkg
step5: add code in the main.cpp
step6: run debugx64 -error copy the release dll to debug
step7: run releasex64 -succ

@Adela0814  do you verify this Q?  i can‘t debug the code which Slow down the development speed.

@Adela0814 do you verify this Q? i can‘t debug the code which Slow down the development speed.

May I ask if it can be resolved soon? If not, I will temporarily use another solution and will not continue to wait. If possible, I can wait for a moment
请问近期能解决吗？ 如果不能我就暂时使用其他方案，不会继续等待，如果可以我可以等待一下

I don't know much about Visual Studio, but the logs in the zip file indicate that you are building a debug configuration (/MDd et al.) against the release libs from vcpkg (/LIBPATH:"E:\PROJECT\VCPKG\VCPKG_VS2022\VCPKG\INSTALLED\X64-WINDOWS\LIB" /LIBPATH:"E:\PROJECT\VCPKG\VCPKG_VS2022\VCPKG\INSTALLED\X64-WINDOWS\LIB\MANUAL-LINK").

@JaosonMa In order not to affect your project progress, you can try other solutions first, and I will also investigate this issue when I have time.

@Adela0814 Can't you explain how to fix a Visual Studio debug build which is using the wrong vcpkg build type?


first unique character

@tarun26091999 @rudrakshi99   I have made the changes for issue #569 and PR #822.

please don't create a duplicate PR!


District boundaries

Added key_type to deal with the fact that I'm using D_ID as the key, which is an np.int32, whereas the others are categories I think?
Other changes in line with the fact that D_ID is an np.int32 (or at least numeric) rather than string unlike the other OS area columns
The long term plan for districts_buffered.geojson (which currently contains the calculated district boundaries for the South West is to have a static resource of all the District boundaries in the UK. However the South West took approx 6200s (1.5hrs) and I anticipate the UK taking a while given an increase in points by a factor of 12, and pretty sure the algorithm is non-linear (probably quadratic) - an interim could be to produce maps of the 10ish regions individually - the districts on the boundaries would be a little larger than they should be ...

P.S. I intend to get better at writing slightly shorter commits to break it up a bit

Also meant to ask this earlier - what does nu_XYZ mean? nu ie new, nu ie number, nu ie nearest udder :P ?
I'm just confused - though lack of sleep could be responsible for that!

I have a version of second_buffer_distance in testing that has reduced the first pass from 4550 seconds to 235.7 - a 19ish times improvement. As you said it's not running in O(n) time, and was running in a kind of quasi quadratic - it ran n * len(nearest_points) times - i.e. 13991 times with an average of about a third of a second per loop.
By removing the valid variable & moving return 0 to everywhere valid was set to false, this means that the loop can break early, saving quite a lot of time. This was possible as valid was only set to False, and initialised to True.
Working on further improvements and will report back. @ox-baloo: If you've a second, please could you explain the whole buffering thing again? You told me on the skype call a while ago but I have forgotten. if possible a flowchart/bulleted list of the process just to get my head around it would be really useful.
Thanks
-A

@AA-Turner: For personal future reference: I was underestimating quatdratic time - 856t would be O(n), and O(n2) would be ~732750t - this is only 14000t or 50 times better than quadratic.
@AA-Turner:  Second note to self - get better at big o notation

Down to 40 seconds for the whole SW England! - entire script time not just geometry stuff

Full UK took 1670 seconds (27.5 mins), though I removed early breaking as I think I accidentally broke side-effects. For ref SW took 115 seconds under this change, so UK takes ~ 14x longer.

Also meant to ask this earlier - what does nu_XYZ mean? nu ie new, nu ie number, nu ie nearest udder :P ?
I'm just confused - though lack of sleep could be responsible for that!

Usually number

Down to 40 seconds for the whole SW England! - entire script time not just geometry stuff

Wow that's brilliant - to be honest when I finished working on it I was so pleased that it worked even though I knew it was incredibly inefficient ...

I have a version of second_buffer_distance in testing that has reduced the first pass from 4550 seconds to 235.7 - a 19ish times improvement. As you said it's not running in O(n) time, and was running in a kind of quasi quadratic - it ran n * len(nearest_points) times - i.e. 13991 times with an average of about a third of a second per loop.
By removing the valid variable & moving return 0 to everywhere valid was set to false, this means that the loop can break early, saving quite a lot of time. This was possible as valid was only set to False, and initialised to True.
Working on further improvements and will report back. @ox-baloo: If you've a second, please could you explain the whole buffering thing again? You told me on the skype call a while ago but I have forgotten. if possible a flowchart/bulleted list of the process just to get my head around it would be really useful.
Thanks
-A

The objective is to draw as big circle as possible around each Section without encroaching on neighbouring districts.
Essentially the complications occur at the corners, or if you're in the middle - I'll see if I get chance for a flow chart - likely to be about 2 weeks though

Find all the unique points from the Scout Census data
For each point, add the list of all the points that are within twice the distance of the closest point. This is because the maximum buffer distance is the distance to the nearest point.
For each point:
i. If a buffer distance has already been set then do nothing
ii. If a buffer distance has not been set then:
a. Lookup the nearest points (i.e. points within twice the distance), for each of these
i. if a buffer value has been set then if smaller, the buffer distance of this point is set to the complementary value to meet the other boundary
ii. if a buffer value hasn't been set, then ignore if the point is too far away, else work out whether this point and the original point are a pair (i.e. mutually closest). Further invalidate the previous calculations if this point would affect them.
Got to 3 until no further buffer values can be set

Thanks for the process list - really helpful!
RE district-boundaries, I'm still not sure that the datatype should be categorical - https://pandas.pydata.org/pandas-docs/stable/user_guide/categorical.html - I think as each value in the names & codes file is unique we would be adding overhead.
Will look through the rest

Thanks for the process list - really helpful!
RE district-boundaries, I'm still not sure that the datatype should be categorical - https://pandas.pydata.org/pandas-docs/stable/user_guide/categorical.html - I think as each value in the names & codes file is unique we would be adding overhead.
Will look through the rest

Okiedokie, to be honest not sure why I did that now, you should be able to create a local branch to track this one, make the changes, commit and push them - would you like to?

Okiedokie, to be honest not sure why I did that now, you should be able to create a local branch to track this one, make the changes, commit and push them - would you like to?

Will do!

What do you think now? Did you make any changes to the algorithm?

What do you think now? Did you make any changes to the algorithm?

I do have changes that work, but I'm not happy yet with readability/performance - when I get to that point I'll push to a new branch. Happy with everything now - thanks for the updated everything & sorry for being awkward!


Allow minor version of File API protocol to be greater than expected

Minor versions of the File API protocol are backwards compatible -
they only add new fields, and don't remove or change the meaning of
existing fields. Therefore, it is safe for the minor version to be
greater than what we expect.

Thank you @KyleFromKitware for the quick response!


Add maven check plugins for Greenwich branch & format code with it

Also need sync code from mater branch.

@echooymxq will do it. Thanks 😄

I found different version has different rules with different maven checkstyle plugin version.
so i think it's no need to format code, we begin to follow this rule in Hoxton version.


Scroll bar with bookmarks

Is your feature request related to a problem? Please describe.
No, it's just aesthetic. On the server administration screen, if browser bookmarks are always activated, a scroll bar will be added.
Describe the solution you'd like
I would like that if I always have the bookmarks activated, a scroll bar would not be added since it gets a little annoying.

This has for quite a while already been the case in the currently in development 3.0 version of PufferPanel, though this is not yet released I'll close this issue since the work is already done and just waiting to be released
2.x will probably not get that change due to development focus having shifted to getting 3.0 to release as well as 2.x using a different UI component library that, due to how we're using it, makes this a decent bit harder than one might assume it would be to just scale the console height relative to the viewport height


Reference well written blog post

https://github.com/ryanlabouve/ember-jwt-esa-blog
@ryanlabouve : ping

While I think @ryanlabouve's posts are indeed very good I don't think blog posts in general are sth. that belongs in the README. They tend to get out of date at some point and usually (and also in this case) cover a very specific aspect or use case of the library so are only relevant for some of the people reading the README.
@ryanlabouve suggested having a cookbooks collection or so somewhere and I think that would be a much better place for referring to blog posts like his.

@ssured thanks for the recommendation! I agree with @marcoow 100% on not adding it for the reasons he mentioned.
However, I'll update you on any progress that's made towards a cookbook!


Get-AzureRMVirtualNetwork requires an existing VNet

If you haven't created the VNet before starting this sample, you'll have to use New-AzureRMVirtualNetwork instead - and it requires a few other parameters which I had to look up here: https://docs.microsoft.com/en-us/azure/virtual-network/quick-create-powershell#create-a-virtual-network

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

ID: 04f5da69-0386-feb0-469a-788ae89d3a3d
Version Independent ID: 27031537-f436-7252-b73c-7f8edbc176cc
Content: Azure PowerShell Script Sample - Create a VM from a snapshot
Content Source: articles/virtual-machines/scripts/virtual-machines-windows-powershell-sample-create-vm-from-snapshot.md
Service: virtual-machines-windows
GitHub Login: @ramankum
Microsoft Alias: ramankum

Thanks for the feedback! For this example it is assumed since you are creating a new VM from the snapshot you already have a Vnet in place. Regardless, I have assigned this feedback to the content author to review and see if we can make that more clear.

Ok, I can see that from the comment related to the $virtualNetworkName variable. The description before the sample could maybe provide a link to the New-AzureRMVirtualNetwork docs. I didn't have one before, because I've got a snapshot moved from another subscription. I found this sample when I googled how to create a VM from a snapshot.

There is a weird character in the script it prevents the script from running when it is copied.  The character is Â


Code modification for  testcases of various network models in directory example

Description
In the example directory, there are some test cases that exits some small bugs and missed options  running  on CPU.  Thie pull request is to add the CPU options and fix some small bugs.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes
add CPU option

[x] bayesian-methods
[x] fcn-xs
[x] multi-task
[x] rcnn
[x] rnn-time-major

small bugs fix

[x] rcnn
[x] cnn_visualization

file location change

[x] module

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@pengzhao-intel @TaoLv @juliusshufan

@luobao-intel thanks for your contribution. Could you update the PR title to be inline with what exactly this is fixing?
@mxnet-label-bot[pr-awaiting-testing]

@luobao-intel Requesting an update on the PR, any progress on the build failures?

@sandeep-krishnamurthy The code has been modified according to your requirements. Can you review it again? Thank you!

@luobao-intel
Thanks for updating the PR. There are few minor review comments. Could you please take a look?

ping! @luobao-intel could you please take a look?

@pengxin99

@sandeep-krishnamurthy Could you take a look if your comments have been addressed with latest changes? Thanks.

@vandanavk @sandeep-krishnamurthy  I have change the code reference to the review comments, could you please make a review again? Thanks

LGTM

@sandeep-krishnamurthy could you take a look again? Thanks!

@vandanavk @roywei @sandeep-krishnamurthy Thanks for your reviews, and could this be merged?

@sandeep-krishnamurthy could you help take a look again? Thanks.


Add typescript definition file

This looks great @ejose19, thanks. Merging and publishing a new version.


Refreshed Link for Persistent Segment Tree

Edited the links of persistent segment tree part 1 and 2. Previous ones will not work.

Thanks a lot for your contribution. :+1:


Offering the Chance to define: Extension grant type

Hi,
I think it would be great, if one could implement his/her own extension grant type. Use cases could be AppStore receipts (for the different App Platforms).
I am certainly not a OAuth2 pro, but as far as I can see this is something that can be achieved with the OAuth2.0 Framework, See: 4.5. Extension Grants: https://tools.ietf.org/html/rfc6749#section-4.5
Thanks for your time and consideration.
PS.: I am quite new to node but I would love to help to create a PR, if someone is interested. I might need coaching on style and common pitfalls though ;-)

I am so blind! Looking into the code I found what I was looking for.
function useExtendedGrant (done)
Perfect. Sorry, for the inconvenience!

:)


JBDS-4472 Update DevStudio to latest 11.0.0.GA release

Codecov Report

Merging #825 into master will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #825      +/-   ##
==========================================
- Coverage   96.51%   96.38%   -0.14%
==========================================
  Files          36       36
  Lines        3210     3398     +188
  Branches      267      480     +213
==========================================
+ Hits         3098     3275     +177
- Misses        112      114       +2
- Partials        0        9       +9

Impacted Files
Coverage Δ

browser/model/helpers/downloader.js
96.94% <0%> (-1.52%)
:arrow_down:

browser/model/jbosseap.js
98.8% <0%> (-1.2%)
:arrow_down:

browser/pages/about/controller.js
21.05% <0%> (-1.17%)
:arrow_down:

browser/directives/componentPanel.js
14.28% <0%> (-1.1%)
:arrow_down:

browser/pages/confirm/controller.js
89.71% <0%> (-0.93%)
:arrow_down:

browser/services/data.js
97.03% <0%> (-0.92%)
:arrow_down:

browser/model/jbossfuse.js
99.21% <0%> (-0.79%)
:arrow_down:

browser/model/cdk.js
99.22% <0%> (-0.78%)
:arrow_down:

browser/model/jdk-install.js
97.29% <0%> (-0.45%)
:arrow_down:

browser/model/devstudio.js
89.13% <0%> (-0.41%)
:arrow_down:

... and 22 more

Continue to review full report at Codecov.

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


Fix #14 Memory Leaks

When pointers are passed from C/C++ to Python, Python takes ownership of the memory. Objects with data members that were dynamically allocated were not being freed correctly.
For more information:
https://cffi.readthedocs.io/en/latest/using.html#working-with-pointers-structures-and-arrays

Looks good! I think that covers the ones I know of. Anything else or should we go ahead and merge?

Cool! Those were all the ones I could find. I think it should be good to merge.


Server Side Completion doesn't work

As per the title really, nothing pops up to be tabbed.
Version 0.0.23

@murali-reddy
I found that @vogxn removed all the server side get_resource code in the commit cloudnativelabs/kube-shell@41b1f442cf2270ad5fabf12cde3cb4889ad095a2 . Can we get the server side completion back?
@daikeren I found that there no server side code in the current kube-shell version.

I will take a look over the week end and get back to you.
Please try version 0.0.21 meanwhile, it should have all the functionality.

@murali-reddy any update on this?

@murali-reddy Since the server side completion is an important feature for kube-shell, how about revert completer.py back to 0.21.0 first?
I think maybe we should do the refactoring of completer.py after we have some test cases for server-side completion to ensure the correctness.

Any updates on this? Just found this project and the readme advertises server-side completion as a feature.

the same issue here with 0.0.23, and back to 0.0.21 works

I am not having any time to look into kube-shell issues at the moment. But if there is anything i can help for someone to submit a PR I would do.

Even, we are having the same issue in the mac as well. Server side completion is not working.. Please help..

on mac server side not working i tried both 23 and 21 version no result.


Expand-SqlTlogResponsibly backups when -WhatIf is declared

If I run this command with the -WhatIf switch to validate what it's going to do, it backs up anyway. This could be problematic and generate uneeded backups, along with possibly disrupting the log backup chain. I suggest that this get altered that if -WhatIf is declared it will provide a message that a log backup will be taken, but not execute.

added whatif support in two areas

fixed


Keybinding service should not dispatch on modifier keys

Have the following keybinding:
{
	"key": "ctrl+<",
	"command": "workbench.action.reloadWindow",
	"when": "editorTextFocus"
}

Press ctrl. Notice the workbench reloading.
Found in https://github.com/Microsoft/vscode/issues/16539#issuecomment-265126973

@alexandrudima please review, an explanation is in the commit long desc.

@Tyriar thank you, I've written unit tests instead of reviewing this time, given the last reviews didn't uncover the regressions :).


Update base types in NativeSymbolModule

Add base type names for char16_t, char32_t, and char8_t
Make NativeSymbolModule.GetTypeName handle case where the base type is not in its list of known names

This fixes an issue where unhandled base types would result in:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Microsoft.Diagnostics.Symbols.NativeSymbolModule.HeapAllocationTypeInfo.GetTypeName(IDiaSymbol symbol)
   at Microsoft.Diagnostics.Symbols.NativeSymbolModule.<.ctor>b__14_0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Microsoft.Diagnostics.Symbols.NativeSymbolModule.GetTypeForHeapAllocationSite(UInt32 rva)
   at PerfView.ETLPerfViewData.<>c__DisplayClass5_17.<OpenStackSourceImpl>g__GetAllocationType|49(CallStackIndex csi)
   at PerfView.ETLPerfViewData.<>c__DisplayClass5_17.<OpenStackSourceImpl>b__45(HeapAllocTraceData data)
   at Microsoft.Diagnostics.Tracing.Parsers.Kernel.HeapAllocTraceData.Dispatch()
   at Microsoft.Diagnostics.Tracing.TraceEventDispatcher.DoDispatch(TraceEvent anEvent)
   at Microsoft.Diagnostics.Tracing.TraceEventDispatcher.Dispatch(TraceEvent anEvent)
   at Microsoft.Diagnostics.Tracing.Etlx.TraceLogEventSource.Process()
   at PerfView.ETLPerfViewData.OpenStackSourceImpl(String streamName, TextWriter log, Double startRelativeMSec, Double endRelativeMSec, Predicate`1 predicate)
   at PerfView.PerfViewStackSource.OpenStackSource(String streamName, TextWriter log, Double startRelativeMSec, Double endRelativeMSec, Predicate`1 predicate)
   at PerfView.PerfViewStackSource.<>c__DisplayClass23_0.<Open>b__0()
   at PerfView.StatusBar.<>c__DisplayClass22_0.<StartWork>b__0()

@elinor-fung, do you have an example trace that this fixes that you can share?  I'd like to understand the issue before merging.  Thanks.

This was failing when I tried to open the 'Net OS Heap Alloc Stacks' view. fail.etl.zip
It was in coreclr.pdb (should be on public symbol servers).

Thanks.  That is super helpful.  Last question (hopefully) - where did the new values come from?  Are they documented somewhere?

https://learn.microsoft.com/visualstudio/debugger/debug-interface-access/basictype
I can put the link in a comment for BasicType (especially since I had to look it up to figure out what it was).


[edx-opaque-keys]: Add Support for Django 4.2

Description
Follow and Complete all of the following steps for the issue to be marked as done.

[ ] Update tox & Github action workflow using modernisers to add support for Django 4.2
[ ] Remove any versions of Python earlier than 3.8 from tox.ini, .travis.yml, and GitHub Actions workflows.
[ ] Update the trove classifiers in setup.py, setup.cfg or pyproject.toml files.
[ ] Run and verify all tests are passing in the CI for Django 4.2
[ ] Run available code-mods to fix the failing tests
[ ] Add CHANGELOG entry with description “Support added for Django 4.2”
[ ] Bump the package version and release a new version on GitHub & PyPI (whichever is applicable)
[ ] Update the repo support field in the Dependency Upgrade Sheet.

There is no Django package in this repo.

It had the dependencies so made a PR and merged https://github.com/openedx/opaque-keys/pull/258 @salman2013


upgrade dotnet version

I think that it could upgrade from netstandard 2.1 to dotnet 6

To be compatible with all target frameworks it needs to be on .Net standard as is the abstraction


Wrap SCNetworkReachabilityFlags and fix Catalyst warning

1 Wrap SCNetworkReachabilityFlags in GDTCORPlatform.
2 Fix Catalyst warning in GDTCORPlatform.

Can you also add watchos along with other platforms in https://github.com/firebase/firebase-ios-sdk/blob/master/.github/workflows/datatransport.yml? This helps prevent errors again like presubmit.

Can you also add watchos in https://github.com/firebase/firebase-ios-sdk/blob/master/.github/workflows/datatransport.yml? This helps prevent errors again like presubmit.

Yes, we definitely should.

#4955

Standard pod lib lint doesn't do anything, so making this change doesn't do anything. watchOS also doesn't support unit tests. The reason why it works in storage is because they use a different build and test system. Doudou or myself would have to replicate that infra here in GDT.
pod gen can't even generate a watchOS project, so I'm not sure anything is building.
 -> GoogleDataTransport
[!] Skipping test spec `GoogleDataTransport/Tests-Unit` on platform `watchos` since it is not supported.
 -> GoogleDataTransport (4.0.0)
    - NOTE  | xcodebuild:  note: Using new build system

I see. Isn't storage just using the new github action? I thought as long as we copied the yml file, we've used the same build and test system.

I see. Isn't storage just using the new github action? I thought as long as we copied the yml file, we've used the same build and test system.

They're still using GHA for CI, but it calls into scripts/build.sh, whereas GDT's workflow calls scripts/pod_lib_lint.sh
For GDT, we'd need to probably add something back to build.sh for our watchOS build that builds and runs a manually created watchOS test project

I was planning just duplicate the yml in messaging, looks like there are more work needs to be done here. Thanks for the explanation! I will look into more for messaging as well.


Add ability to create new file within a new folder by typing e.g. 'folder_name/file_name'

https://github.com/Microsoft/vscode/issues/1169


Adds a graphite finder

Also fixes small bugs and makes test faster.
There are no unit tests yet, but I wanted to get this out so as to help
sync'ing with the ongoing work on writing a real Finder.
I checked it worked by inserting points and viewing them in Graphite.

This change is    Multiple assignees:  iksaif,  natbraun

+@iksaif  +@natbraun could you please review?
Previously, unbrice (Brice Arnould) wrote…
> #### Adds a graphite finder
>
> Also fixes small bugs and makes test faster.
>
>
>
> There are no unit tests yet, but I wanted to get this out so as to help
>
> sync'ing with the ongoing work on writing a real Finder.
>
>
>
> I checked it worked by inserting points and viewing them in Graphite.
>
>
>

Review status: 0 of 3 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: 0 of 3 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed.

biggraphite/plugins/graphite.py, line 47 [r1] (raw file):

class Reader(object):

Add some docstrings and tests please :)

biggraphite/plugins/graphite.py, line 90 [r1] (raw file):

            index = int(ts - start_time) // step
            points[index] = point
        print (start_time, end_time, step), points

remove print

biggraphite/plugins/graphite.py, line 96 [r1] (raw file):

        self.__refresh_metadata()
        start, end, unused_step = self.__get_time_info(0, time.time())
        print start, end

remove print

biggraphite/plugins/graphite.py, line 102 [r1] (raw file):

class Finder(object):

    def __init__(self, directories=None, django_like_settings=None):

Can you explain why we need this django_like_settings ?

Comments from Reviewable

Review status: 0 of 3 files reviewed at latest revision, 7 unresolved discussions.

biggraphite/accessor.py, line 322 [r1] (raw file):

        self.__cluster = c_cluster.Cluster(
            self.contact_points, self.port, executor_threads=executor_threads,
        )

Why this comma?

biggraphite/plugins/graphite.py, line 37 [r1] (raw file):

    """Configuration problems."""

divider?

biggraphite/plugins/graphite.py, line 119 [r1] (raw file):

        self._accessor = accessor.Accessor(keyspace, contact_points, port)
        self._accessor = accessor.Accessor(keyspace="biggraphite", contact_points=["localhost"],port=9042)

why instantiate twice?

Comments from Reviewable

Coverage decreased (-9.3%) to 61.741% when pulling 83b825cbc0c66c494fb71368d04ee617d6f64a3c on unbrice:master into 58e2eeed651391d2322338eb3c3b89360dadf20f on criteo:master.

Coverage decreased (-9.9%) to 61.122% when pulling 2dc710fcf22c156d80acc4f0b42589b7c33e15d1 on unbrice:master into 58e2eeed651391d2322338eb3c3b89360dadf20f on criteo:master.

Review status: 0 of 3 files reviewed at latest revision, 9 unresolved discussions, some commit checks failed.

biggraphite/plugins/graphite.py, line 63 [r1] (raw file):

            step, retention = 1, 60

        oldest_timestamp = time.time() - retention

Is retention always in second ? for me it was step * retention = time

biggraphite/plugins/graphite.py, line 95 [r1] (raw file):

    def get_intervals(self):
        self.__refresh_metadata()
        start, end, unused_step = self.__get_time_info(0, time.time())

Add a comment explaining why we return 0, time.time() instead of fetching the actual interval for this metric.

Comments from Reviewable

Review status: 0 of 3 files reviewed at latest revision, 9 unresolved discussions.

biggraphite/accessor.py, line 322 [r1] (raw file):
Previously, natbraun (Nathaniel Braun) wrote…
> Why this comma?

By anology with https://docs.python.org/dev/faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples

biggraphite/plugins/graphite.py, line 37 [r1] (raw file):
Previously, natbraun (Nathaniel Braun) wrote…
> divider?

Done.

biggraphite/plugins/graphite.py, line 47 [r1] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> Add some docstrings and tests please :)

Done for docstrings, are you OK with tests being part of another review?

biggraphite/plugins/graphite.py, line 63 [r1] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> Is retention always in second ? for me it was step * retention = time

Well spotted! Fixed.

biggraphite/plugins/graphite.py, line 90 [r1] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> remove print

Done.

biggraphite/plugins/graphite.py, line 95 [r1] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> Add a comment explaining why we return 0, time.time() instead of fetching the actual interval for this metric.

Done.

biggraphite/plugins/graphite.py, line 96 [r1] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> remove print

Done.

biggraphite/plugins/graphite.py, line 102 [r1] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> Can you explain why we need this django_like_settings ?

Done.

biggraphite/plugins/graphite.py, line 119 [r1] (raw file):
Previously, natbraun (Nathaniel Braun) wrote…
> why instantiate twice?

Done (I had pushed code without removing debug statements from Friday)

Comments from Reviewable

Review status: 0 of 3 files reviewed at latest revision, 9 unresolved discussions, some commit checks failed.

biggraphite/plugins/graphite.py, line 47 [r1] (raw file):
Previously, unbrice (Brice Arnould) wrote…
> Done for docstrings, are you OK with tests being part of another review?

In general not really, but since it will probably unblock Nath it's probably better this way.

biggraphite/plugins/graphite.py, line 111 [r3] (raw file):

        self.__refresh_metadata()
        # Call __get_time_info with the widest conceivable range will make it be
        # shortened to the widest range available according to retention policy.

Add a TODO to remove that once we support multiple retention policies ?

Comments from Reviewable

Coverage decreased (-9.3%) to 61.741% when pulling b27217135397abfa480bf21bc30356564d7ed327 on unbrice:master into 58e2eeed651391d2322338eb3c3b89360dadf20f on criteo:master.

Review status: 0 of 3 files reviewed at latest revision, 9 unresolved discussions.

biggraphite/plugins/graphite.py, line 111 [r3] (raw file):
Previously, iksaif (Corentin Chary) wrote…
> Add a TODO to remove that once we support multiple retention policies ?

Done.

Comments from Reviewable

Coverage decreased (-9.3%) to 61.741% when pulling 873753be45220735e567ab54d0a271c94870b07f on unbrice:master into 58e2eeed651391d2322338eb3c3b89360dadf20f on criteo:master.

 (don't forget to write unit tests in the next review)
Previously, coveralls wrote…
>
> [![Coverage Status](https://coveralls.io/builds/6229126/badge)](https://coveralls.io/builds/6229126)
>
> Coverage decreased (-9.3%) to 61.741% when pulling **873753be45220735e567ab54d0a271c94870b07f on unbrice:master** into **58e2eeed651391d2322338eb3c3b89360dadf20f on criteo:master**.
>

Reviewed 2 of 3 files at r1, 1 of 1 files at r3, 1 of 1 files at r4.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

Comments from Reviewable

Plesae put the commit message in the infinitive :), then
Previously, iksaif (Corentin Chary) wrote…
> :lgtm: (don't forget to write unit tests in the next review)

Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

Comments from Reviewable

Previously, natbraun (Nathaniel Braun) wrote…
> Plesae put the commit message in the infinitive :), then :lgtm:

Review status: 1 of 3 files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable

Coverage decreased (-9.1%) to 63.391% when pulling 873753be45220735e567ab54d0a271c94870b07f on unbrice:master into b34c3aa6565eca192be112d7d396bebf29978deb on criteo:master.

Coverage decreased (-9.08%) to 63.443% when pulling 873753be45220735e567ab54d0a271c94870b07f on unbrice:master into b34c3aa6565eca192be112d7d396bebf29978deb on criteo:master.

-@iksaif  as he's away until EOW
Previously, coveralls wrote…
>
> [![Coverage Status](https://coveralls.io/builds/6232466/badge)](https://coveralls.io/builds/6232466)
>
> Coverage decreased (-9.08%) to 63.443% when pulling **873753be45220735e567ab54d0a271c94870b07f on unbrice:master** into **b34c3aa6565eca192be112d7d396bebf29978deb on criteo:master**.
>

Review status: 1 of 3 files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable

Coverage decreased (-9.08%) to 63.443% when pulling e810bd33f2d40cc9f1ba21ee9f8bf64850b31a24 on unbrice:master into b34c3aa6565eca192be112d7d396bebf29978deb on criteo:master.


Optimize certificate reporting in Health Checker

Azure joined servers generate a lot of unnecessary errors as all the "MS-Organization-P2P-Access" are listed as invalid. I'd like to be able to exclude these, or only report on certificates that are assigned to Exchange roles.
These certificates cause a similar issue in the Exchange GIU as all the Azure certs are constantly expiring and triggering unnecessary warnings.

Will check if we can exclude these certificate from the check.
Just for the records:
_What are the MS-Organization-P2P-Access certificates present on our Windows 10/11 devices?
The MS-Organization-P2P-Access certificates are issued by Azure AD to both, Azure AD joined and hybrid Azure AD joined devices. These certificates are used to enable trust between devices in the same tenant for remote desktop scenarios. One certificate is issued to the device and another is issued to the user. The device certificate is present in Local Computer\Personal\Certificates and is valid for one day. This certificate is renewed (by issuing a new certificate) if the device is still active in Azure AD. The user certificate is not persistent and is valid for one hour, but it is issued on-demand when a user attempts a remote desktop session to another Azure AD joined device. It is not renewed on expiry. Both these certificates are issued using the MS-Organization-P2P-Access certificate present in the Local Computer\AAD Token Issuer\Certificates. This certificate is issued by Azure AD during device registration._
https://docs.microsoft.com/en-us/azure/active-directory/devices/faq#what-are-the-ms-organization-p2p-access-certificates-present-on-our-windows-10-11-devices


Fix drive integration

@tjbck only issue was the capitalization in backend/open_webui/routers/retrieval.py but I also reordered the env vars to be more sensible. Will submit a PR for documentation on the feature as well. I've built out an "Environment" tab in admin for my personal setup that I'd love to share later that will let you configure and manage things deployed as env vars ie oidc config & drive secrets

Documentation PR here as well https://github.com/open-webui/docs/pull/342

Thanks! Everything's working as intended I imagine?

Thanks! Everything's working as intended I imagine?

Yep humming along beautifully though very hidden until exposed in the docs haha


Seeking Swift developer

I am looking for a Swift developer who lost their job because of the pandemic. BitBar is too good to go stale, and I don't have the time to learn Swift and rebuild the project.
If you can recommend somebody, please tweet me @matryer.
Let's see if we can breathe some life into this project.

I am curious how difficult such a project is to pick up to get my hands on Swift actually, maybe too optimistic tho..

@matryer would you be interested in help with maintaining current code base? I don't have much time for rewriting from scratch, but I could definitely help with going thru PRs and maybe shaping something better suitable for further work.
BitBar deserves several bugfix-releases before reimplementation happens

There is https://github.com/swiftbar/SwiftBar now

I guess it is fixed by https://github.com/matryer/bitbar/issues/607 now 😆


Make it possible to test with null value

Describe the issue
For #3032 I used an ApiListener to test the adapter with a null value. It would be "a nice to have" to be able to use test a pipeline to test with null values.
Reporter
Jaco de Groot
Environment
FF! 7.8-20220407.104516: Frank2Example4
Running on xxx using Apache Tomcat/9.0.60
Java Version: OpenJDK Runtime Environment (1.8.0_292-b10)
Heap size: 259M, total JVM memory: 614M
Free disk space: 84GB, total disk space: 475GB
Up since: 2022-04-07 17:43:01 (1h)

See https://github.com/ibissource/iaf/issues/2620#issuecomment-1040196511 also

Allow frontend to send 'null' message in the test-pipeline form, backend should pick this up as a Message.nullMessage().

I see 2 ways of doing this

The user has a checkbox that sets the message to null and disables the message box
The user types "null" themselves which the backend checks as an exact value

Which one of the two would make more sense?

Option 3, an empty field :)


Add comments and link to the code

Could you provide some more information on this issue? That way I can understand better how I can help.


chore: implement initial support for CPython 3.14

This PR implements rudimentary support for CPython 3.14, adapting our monkey-patching of Morsel attributes to a new optimization in 3.14 stdlib.
In addition, the monkey patching of the SameSite attribute was removed, since it is no longer needed on 3.8+.
(See also Red Hat Bugzilla: Bug 2328020. @befeleme @carlwgeorge)

Thanks for mentioning this @vytas7!  I've included this commit as a patch in the Fedora package, and it's been built as python-falcon-4.0.2-2.fc42.


Livestream.com plugin broken, returns 404 for hdplayer-2.0-viewerplus.swf

Hi,
The livestream.com plugin unfortunately does not work anymore. For every channel you try, with all qualities (from worst to best), the program always returns with
[cli][error] Could not open stream: Unable to open URL: http://viewerplus.livestream.com/assets/swf/hdplayer-2.0-viewerplus.swf (404 Client Error: Not Found for url: http://viewerplus.livestream.com/assets/swf/hdplayer-2.0-viewerplus.swf)
Checking with a browser also reveals that the resource apparently required does not exist in the given place anymore.
I am using Mac OSX 10.11.4, livestreamer 1.12.2

You can try #1277

I can only get the streams from livestream.com to play with the hls streams.
using develop branch at commit ab80dbd6560f6f9835865b2fc9f9c6015aee5658
otherwise i get the same error mentioned above.


Potentially low hanging fruit: Introduce support for Java 17

![Screenshot_20211129_052545](https://user-images.githubusercontent.com/87507/143808881-0029835b-31e2-4a10-a1a3-220dea5dc62a.png

)
...is what I get with my Java 17 setup. I know there are ways to workaround this but even setting JAVA_HOME to point to Java 16 HOME did not resolved the problem without a re-login which I have not tried yet. So the examples are broken for me and might be broken for many other users.
Just execute a ./gradlew wrapper --gradle-version 7.3 in all projects that contain a gradle-wrapper.properties file to use Gradle 7.3 that support Java 17.

The error explains that your version of gradle is not supporting java 17, you should always search which versions of gradle support which versions of java, you usually change the version in gradle-wrapper.properties

I know, there are fixes that can be applied but it's not a good out-of-the-box experience.


Spelling mistake in document?

https://github.com/rohit-px2/nvui/blob/9435f945b8ee429764e10c9c660d3aa37afed05b/vim/doc/nvui.txt#L57
It should be "NvuiPopupMenu".

Thanks! Fixed it.


Update windows compilers

Hey all
This feedstock is directly specifying vs2017_win-64 as a dependency,
https://github.com/conda-forge/panda3d-feedstock/blob/9c4650d10c8a17cf80d740470ee3f58231405175/recipe/meta.yaml#L25-L32
but should just rely on the {{ compiler('c') }} function to provide the correct compilers on windows. In particular, conda-forge has moved on to vs2019 as the default compiler a while ago already, and doesn't support 32-bit builds anymore.
If you think you need vs2017, please let us know why (generally vs2019 and vs2022 should be fully compatible). If it's really necessary, please use the dedicated mechanism in conda_build_config.yaml for that, i.e.
c_compiler:     # [win]
  - vs2017      # [win]
cxx_compiler:   # [win]
  - vs2017      # [win]

as opposed to specifying it in meta.yaml directly.

@conda-forge-admin, please rerender


Question: Test-time resolution scaling up

In the paper you mentioned "test-time resolution scaling up images". I am not sure what this exactly means.

However, we surprisingly find that our model has the property of “test-time resolution scaling up”. [...] It means we can almost freely increase the image resolution at test time to produce more fine-grained depth maps.

Can I just increase the resolution when performing inference by setting the input size here or is another training required?

Okay I found it out by myself here for the interested:
Here an inference with --input-size 518:

Here an inference with --input-size 1036:

So yes, the increase in inference input improves the quality! Great job!


docs: Added Apcera to awesome-minio.

closing this Nitish will send PR with detailed description.

@koolhead17  This issue is not closed. We have to keep it open till it is fixed.

@NitishT can you take a look at this, @koolhead17 can share details with you.

sure @GarimaKapoor. @koolhead17 gave some info already, with check with him for more.

Closing this PR as merged.


div2k range question when --ext bin

when training, valid range is 801-810, when I use --ext bin, it generates a bin.
when testing, valid range is 801-900,  and when I use --ext bin, it uses the existed 10-images bin instead of generates a 100-images bin.

Hello.
You can evaluate the model on 801-900 by setting the input arguments.
Please try with --data_range 1-800/801-900 and let me know if it works.
With --test_only, I think --data_range 801-900 will also work.
Thank you!


[FEATURE] Not show debug connections on console and multi-threading support

Is your feature request related to a problem? Please describe.
I do not like that everytime I launch the rotating proxy server, it just always fills everything up with the connections being made...
I also would like multi-threading support being added for VPS 4-64+ cores.
Describe the solution you'd like
Making an option to make the console be clear from all debugging stuff and adding multi-threading for better performance.
Describe alternatives you've considered
Nope.
Additional context
Nope.

Just don't use --verbose flag.


Soft-token MFA causes indefinite hang (and locks me out of my account)

I'm having some trouble getting the soft-token MFA method to work.
First, thanks a lot to @chino for adding this support.
What worked
Next, for some background. Previous to setting up the authenticator app MFA method (as described below), I also had SMS MFA set up. I would use this command:
mintapi --headless --credit-score '<username>' '<password>'
After running this I would be prompted to enter the 6-digit code which was texted to me. This worked fine and I got a successful response with my credit score. Note that I'm running this in a docker container and I've included information about that below.
Setting up MFA for an authenticator app
Here are the specific steps I took to set up the authenticator app MFA method:

I went to https://accounts.intuit.com/app/account-manager/security
I clicked on "Two-step verification"
I clicked on "Turn on Authenticator app"
I selected "Android" then clicked "Continue"
I took the code under "Manual entry" and plugged it into the following command: oathtool -b --totp '<manual entry code>'
I entered the code in the text box

After this it takes me back to the "Two-step verification" page and says "Authenticator app is ON".
I'm also able to go to the site in my browser and log in by using my credentials and then the 6-digit code returned to me by using the oathtool mentioned above. So this indicates my process for getting the token is correct. Sorry if this was a bit verbose but I wanted to be explicit. Now onto using it with the mintapi cli tool.
Docker setup
I'm running this in docker. Here is the Dockerfile:
FROM ubuntu:20.04

RUN apt-get update && DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt install -y git wget jq python3 python3-pip

RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg --install google-chrome-stable_current_amd64.deb || DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get -fy install
RUN pip3 install mintapi

ENTRYPOINT ["mintapi"]

I then build and run this image:
docker build -t local/mintapi .
docker run -it --entrypoint bash local/mintapi

As mentioned before running mintapi --headless --credit-score '<username>' '<password>' in this environment works great and did so when I had only SMS MFA set up.
Attempting to use the soft-token
In order to use the soft-token I run the following command (from within the container):
CODE=$(oathtool -b --totp '<manual entry code>' | base32)
mintapi --headless --credit-score --mfa-method soft-token --mfa-token "$CODE" '<username>' '<password>'

With the menual entry code being the one given to me as explained in the Setting up MFA for an authenticator app section above.
When I run this two things happen:

The application seems to hang indefinitely
I'm locked out from using authenticator app MFA to access my account in the browser (I still have SMS MFA set up and can still log in with that as a backup)

I'm guessing the latter is due to the application attempting to enter the code and failing over and over. This also seems to be somewhat confirmed from https://github.com/mrooney/mintapi/issues/137#issuecomment-683480698
Does anyone know what may be going wrong here?

I'd like to make a correction. I've temporarily disabled authenticator app MFA and now I'm having issues with even the SMS MFA even though it was working before. The command I'm running is
mintapi --headless --credit-score '<username>' '<password>'
Now instead of prompting me to enter my MFA token that was sent to my SMS number it instead gives me this message:
Giving up on handling MFA. Please complete the MFA process manually in the browser.
One particular thing I noticed was that I start to get the above message around the time the text message arrives on my phone.
Unfortunately I'm having trouble troubleshooting this since I am not able to run without --headless on my local machine. I have the correct version of chromedriver to match up with my chromium install. I suspect it's possible it has something to do with the fact that it's an ubuntu snap package.

Is this a typo or copy/paste issue here?   The quoting looks wrong and you're also not using a sub shell to capture the output correctly?   Can you print the output of $CODE to verify it's what you expect?
CODE=oathtool -b --totp '<manual entry code> | base32'

You really need some kind of debugging enabled.   You could try to take a screenshot of the failure and/or get non-headless version working so you can watch what's going on.  There is various ways to do it like running something like selenoid which can give you vnc and screen recordings, or a quick image with a lightweight window manager (ex: fluxbox) and x11vnc for instance, also I've seen things like running x11 apps in container against your own desktop X server.  Even if you can simply enable debug logs to see what's goin going on.
I imagine it's stuck retrying at the login screen and hence somehow locks you out. If you pass the wrong credentials I believe it does end up doing that.
I do have a little patch locally for a simple back-off which has worked just fine for me so far but I haven't pushed it anywhere yet.  I would try to get some debugging working first to see what your issue is first anyway.

Thanks for the catch, that was a typo. I corrected it in the original comment. However, I have actually printed out the value and manually passed it to mintapi to verify it's correct as you mentioned.
Thanks for the ideas on testing it locally and I think you're probably right that it's stuck at the login screen. I haven't ever done any X11 forwarding to a container before and was hoping I wouldn't have to get my hands dirty doing that just yet.
Also on the topic of debugging, is there a way to enable debugging log output for mintapi? It might not be as helpful as seeing what's happening in the browser but it would hopefully give a little insight into what's going on. If there was some kind of looping happening that might be indicated in the logs.
Also if it wouldn't be too much trouble, would you mind pushing your back-off code to a branch? I see that you have a fork and I'd be able to get it working from a branch from there. I understand it might not be solid enough to be a PR but I'd like to try it out as is if it works :)

Sure I'll get to get to it tonight. It's just a very simple snippet.
You can run mintapi out of a clone to tweak the logging. I'm not exactly sure off hand right now as I'm not at a system.
Check out selenoid it makes it easy to record I believe. I haven't tried it my self but the free version might make it easy.

Hey @chino! Just thought I'd bump this for you in case it fell off your radar :)

Sorry to bug you again @chino, but would it be possible to push whatever you've got to a branch? Thanks :)

It's really nothing special and I'd rather some review/thought before attempting to merge this:
https://github.com/chino/mintapi/commit/27e469c8ce849b42aecc230fe5489999bd4bb551
The real thing you should focus on is actually watching/logging what's going on to make it fail and fixing that.

Hey @chino. I figured out what my issue was!
I finally took a look at the code and noticed that oathtool was being imported which surprised me since I was using oathtool on my own to get the code. After looking at a few more lines it hit me that I wasn't supposed to be passing in the 6-digit code (in base64) but just the original token itself and the application does the rest for me.
I'm not sure I'd say the documentation should be update at all because looking back at it it does say to use the token. I think I was just confused regarding nomenclature. I had just been playing around with oathtool already so my mind went in another direction and too far ahead.
In any case, your branch helped me get faster testing feedback so I was able to come to this realization :) Thanks again!


SSR Framework says window is undefined

Describe the bug
I'm using this on Next.js and it seems that window is called when it wasn't ready in the Next.js's server environment/build time
To Reproduce
Steps to reproduce the behavior:
just install and use it on nextjs (or anything with ssr/ssg method)
Expected behavior
I think you can prevent calling before windows object is ready, something like : if (window)
Screenshots
https://ibb.co/4Jvw0j9
https://ibb.co/4Jvw0j9

Well this workaround work form me and typescript
`import _useLocalStorage from 'use-local-storage';
type ProductTuple = [
state: T,
setState: ((newState: (prevState: T) => T) => void) & ((newState: T) => void)
];
export const useLocalStorage = (key: string, initial: T): ProductTuple => {
if (typeof window === 'undefined') return [initial, () => undefined];
else return _useLocalStorage(key, initial);
};
`

Closed by #20


Polio-1357 : HOTFIX create campaign 500 DO NOT MERGE

500 on create campaign because error in vaccine authorizations check
Related JIRA tickets : POLIO-1357
Self proofreading checklist

[X] Did I use eslint and black formatters
[ ] Is my code clear enough and well documented
[ ] Are my typescript files well typed
[ ] New translations have been added or updated if new strings have been introduced in the frontend
[ ] My migrations file are included
[ ] Are there enough tests
[ ] Documentation has been included (for new feature)

Changes

Removed the check on account that was causing the error when trying to objects.get the Teams

How to test
Try to create a campaign, it should't crash
Notes
Deployed and tested on polio staging
HOTFIX: v1.220d --> Add the tag before deploying on prod

closing as hotfix has been deployed


ARM64 Support

Hi, im running visual studio 2022 but its the arm64 version. i would love to see an arm64 version of this theme

literally thank you!!! i was trying to find a theme for my arch but there was none...


Not responding

The bot does not respond even though I've given it all permissions, and is online. It works in another server, but not mine. It does not respond to any commands...

Hi, this is not the github for the actual bot. I only work on the website. Thank you.


Commented out values get eaten

I just noticed this in the Async chapter, where some commented out code got removed entirely in the corrected file. I think the corrected file should never remove comments.

Can you give one example?

Hmm. Can't seem to replicate. I'm not sure what I was seeing, but will re-open if/when I experience it.

Just got it again. When I comment out this section:
[%%expect{|an error happened|};
ocaml {|- : unit = ()|}];;

[@@@part "36"];;
(*
exception Ignore_me;;
[%%expect ocaml {|exception Ignore_me|}];;
let swallow_some_errors exn_to_raise =
  let child_monitor  = Monitor.create  () in
  let parent_monitor = Monitor.current () in
  Stream.iter
    (Monitor.detach_and_get_error_stream child_monitor)
    ~f:(fun error ->
      match Monitor.extract_exn error with
      | Ignore_me -> printf "ignoring exn\n"
      | _ -> Monitor.send_exn parent_monitor error);
  within' ~monitor:child_monitor (fun () ->
    after (Time.Span.of_sec 0.25)
    >>= fun () -> raise exn_to_raise)
;;
[%%expect ocaml {|val swallow_some_errors : exn -> 'a Conduit_async.io = <fun>|}];;
*)

[@@@part "37"];;
Deferred.any [ after (Time.Span.of_sec 0.5)
             ; swallow_some_errors Not_found ]
;;
[%%expect{|Exception: (monitor.ml.Error Not_found ("Caught by monitor (id 61)")).|}];;
[@@@part "38"];;
Deferred.any [ after (Time.Span.of_sec 0.5)
             ; swallow_some_errors Ignore_me ]
;;

in the concurrent programming section, then topscript wants to delete it.

And this shows the state of the code and the result of the diff against the corrected file side-by-side. The red shows that the commented out bit is deleted.

Did we ever get a resolution on this?

It shouldn't occur with master. Is it still happening?

I'm currently using the opam release. Is this feature released yet? If not,
I'll look to matter and check again.
On Oct 4, 2017 7:28 AM, "Frédéric Bour"<EMAIL_ADDRESS>wrote:

It shouldn't occur with master. Is it still happening?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/let-def/topexpect/issues/5#issuecomment-334126574,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArqJmI7yDCdvFkQ07yKU4l3SeYxOz5Aks5so2vugaJpZM4O121v
.

No it is not released yet.

OK. I'll try it out and report back. If it all looks good, could we get an
opam release out after that?
y
On Wed, Oct 4, 2017 at 8:36 AM, Frédéric Bour<EMAIL_ADDRESS>wrote:

No it is not released yet.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/let-def/topexpect/issues/5#issuecomment-334141076,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArqJr79YLb7yDypvawbNcm2KuxpkswYks5so3vEgaJpZM4O121v
.

Sure.


Discussion for announcement: EF Core 2.0: design-time DbContext discovery changes

This is the discussion thread for https://github.com/aspnet/Announcements/issues/258.

In 2.0 Preview 1. I implemented IDbContextFactory because I don't want Add-Migration, Update-Database,... to run my Startup.cs. It worked as expected.
In Preview 2, I changed to IDesignTimeDbContextFactory, but when I run Add-Migration, I see it run both ConfigureServices and Configure in Startup.cs before CreateDbContext of IDesignTimeDbContextFactory. Is this a expected new behavior?

In Preview 2, I changed to IDesignTimeDbContextFactory, but when I run Add-Migration, I see it run both ConfigureServices and Configure in Startup.cs before CreateDbContext of IDesignTimeDbContextFactory. Is this a expected new behavior?

I suspect we changed the order in which things are discovered. I can't recall if we made an explicit decision that this was ok. @bricelam?

Nothing has changed. As part of discovering DbContext types, we have always tried to construct the application service provider. IDesignTimeDbContextFactory is only a hook for overriding the construction of DbContext types (not the discovery).

@bricelam Do we need the service provider to discover context types?

We always look in three places:

Referenced by IDesignTimeDbContextFactory implementations in the assembly or startup assembly
Registered in the application's service provider
DbContext derived types in the assembly or startup assembly

After we've discovered them all, we pick one to use.
I've considered having a way to bypass the type discovery (e.g. specify an assembly-qualified name on the command) and then discover a construction mechanism (factory first, service provider second, default constructor last), but this would require a completely separate and new code path, and the value always seemed minimal.

We could also look into ways of short-circuiting the type discovery so Startup isn't run if we find the type from its factory.

@bricelam I think it's very useful to have an escape hatch that doesn't involve trying to build the application's service provider since doing so could have side effects that need to be avoided. I had assumed that having a factory was the way to do that. Maybe the short circuiting would be the way to enable this.
Moving temporarily out of Discussions so we can triage this.

I hadn't deep dived into the internal implementation of the type discovery. But I have code for both 2.0 preview 1 work as expected  https://github.com/simplcommerce/SimplCommerce/tree/master and 2.0 preview 2 not work as expected https://github.com/simplcommerce/SimplCommerce/tree/netcore2preview2

@thiennn When you say, "not work as expected" can you be more specific? Does it throw an exception? If so, what is the exception message and stack trace? If it doesn't throw an exception, then other than it running code when you don't expect it to, what is not working?

@ajcvickers like my earlier comment. In 2.0 preview1: Add-Migration, Update-Database command doesn't invoke Startup.cs. But in 2.0 preview 2, it run both ConfigureServices and Configure of Startup.cs

@thiennn Yes, but then what happens?  Does the command complete successfully? Do you get an error?

@ajcvickers In 2.0 preview 2, the command run into my Startup.cs which have some dependencies that not ready at design time.
What I expected is the command should not invoke my Startup.cs because I already implemented IDesignTimeDbContextFactory

@thiennn If you don't remove those dependencies, what happens? Do you get an error? If so, what's the error message/output/stack trace?

@ajcvickers I don't show the error or the stack trace here because I think it's not relevant, and it's specific to my project (I built a custom config provider and it read the value from database during the Startup. At design time the database haven't created so I got error)
Again, What I expected is that the migration commands (Add-Migration, Update-Database,..) should not invoke my Startup.cs when I have IDesignTimeDbContextFactory implemented.

PM> Add-Migration Test
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Cannot open database "SimplCommerceDb" requested by the login. The login failed.
Login failed for user 'THIENPC\nlqth'.
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry)    at System.Data.SqlClient.SqlConnection.Open()    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.BufferlessMoveNext(Boolean buffer)
at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.MoveNext()    at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__172.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext()    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector)
at SimplCommerce.Module.Core.Extensions.EFConfigProvider.Load() in C:\DATA\Projects\SimplCommerce\SimplCommerce\src\Modules\SimplCommerce.Module.Core\Extensions\EFConfigProvider.cs:line 24
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList1 providers)    at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()    at SimplCommerce.WebHost.Startup..ctor(IHostingEnvironment env) in C:\DATA\Projects\SimplCommerce\SimplCommerce\src\SimplCommerce.WebHost\Startup.cs:line 40 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at Microsoft.Extensions.Internal.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)    at Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)    at Microsoft.Extensions.Internal.ActivatorUtilities.GetServiceOrCreateInstance(IServiceProvider provider, Type type)    at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance(IServiceProvider provider, Type type)    at Microsoft.AspNetCore.Hosting.Internal.StartupLoader.LoadMethods(IServiceProvider hostingServiceProvider, Type startupType, String environmentName)    at Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions.<>c__DisplayClass1_0.<UseStartup>b__1(IServiceProvider sp)    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactoryService(FactoryService factoryService, ServiceProvider provider)    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton(SingletonCallSite singletonCallSite, ServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(IServiceCallSite callSite, TArgument argument)    at Microsoft.Extensions.DependencyInjection.ServiceProvider.<>c__DisplayClass17_0.<RealizeService>b__0(ServiceProvider provider)    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)    at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureStartup()    at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()    at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()    at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()    at SimplCommerce.WebHost.Program.BuildWebHost(String[] args) in C:\DATA\Projects\SimplCommerce\SimplCommerce\src\SimplCommerce.WebHost\Program.cs:line 21    --- End of inner exception stack trace ---    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)    at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)    at Microsoft.EntityFrameworkCore.Design.Internal.AppServiceProviderFactory.CreateFromBuildWebHost(String[] args)    at Microsoft.EntityFrameworkCore.Design.Internal.AppServiceProviderFactory.Create(String[] args)    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextTypes()    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextType(String name)    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType)    at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_1.<.ctor>b__0()    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_01.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Exception has been thrown by the target of an invocation.

@bricelam I think it is reasonable to expect that we will ignore any exceptions caused by building the service provider and/or trying to resolve DbContext from it. Is that something we can fix for 2.0?
@ajcvickers recalls we used to do that.

Yes, we should ignore errors. This may have regressed.

@bricelam ok, I have created https://github.com/aspnet/EntityFramework/issues/9073 and I will re-add this to discussions.

@bricelam @ajcvickers ok, I have created https://github.com/aspnet/EntityFramework/issues/9073 and assigned to @bricelam  in 2.0.0 about ignoring errors. I will re-add this issue to the discussion milestone.

Also filed #9076 about the escape hatch.

Note, to prevent EF from calling Program.BuildWebHost(), you can simply make it private.

@bricelam , I made Program.BuildWebHost() private but EF still calling it. But after changed the method name to BuildWebHost2(), it works
public class Program
    {
        public static void Main(string[] args)
        {
            BuildWebHost2(args).Run();
        }

        private static IWebHost BuildWebHost2(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .Build();
    }

Oh weird, in that case, the documentation on TypeInfo.GetDeclaredMethod lies!

Quick fix for add migrations errors:
Just comment only when you need to generate/update migrations.
To be able to add migration I just commented what is in Configure() from Startup. It seems that tools also call Startup.Configure when migration is generated and not only the ConfigureServices.

Please I hope you don't mind. If I want to find the namespace where a particular class lies in DotnetCore, where can I get it?
For instance, what is the namespace forIdentityCookieOptions

@smithaitufe For ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/api/
For EFCore https://docs.microsoft.com/en-us/ef/core/api/

@smitpatel I have checked the links you provided. But it seems the information there have not been updated. For instance, I saw that IdentityCookieOption is listed under Microsoft.AspNetCore.Identity, but it is not recognized in core 2 preview2.

@smithaitufe - IdentityCookieOption was renamed to IdentityConstants in preview2. Therefore it is missing. For more info on changes in Identity, I suggest file a bug on https://github.com/aspnet/Identity repo.

@smitpatel Thanks. I have another problem. Can you assist? This might not be the right place. I can't run migrations now. It keeps throwing error that Relation Roles does not exist. I am using PostgreSql

@smithaitufe - Please check https://github.com/aspnet/Identity There can be existing issue like yours there. If not file a new issue. It would have more chances of getting eyes from the people who are maintaining identity.

Why isn't the main issue (https://github.com/aspnet/Announcements/issues/258) assigned to a milestone? Or is it some kind of "pending" announcement which may or may not make it to the final version?

@TsengSR - Thanks for info. I put it in 2.0 milestone. IT will be applicable to 2.0.0-preview2 & 2.0.0 release

I have a call in Startup.Configure that calls a helper function that runs dbContext.Database.Migrate() (in a try/catch) and a seed when the application is starting up.
It's very annoying that loop: trying to add a migration from the command line runs the migration, which doesn't exist yet because I can't add it because goto loop;

@glennc Have we followed up with Hosting about not calling Configure when all we need are the services?

@markrendle After discussing with Hosting, it sounds like Startup.Configure() should only be used to configure the request pipeline. Application startup code should go inside Program.Main() instead.
public static void Main(string[] args)
{
    var webHost = BuildWebHost(args);

    using (var scope = webHost.Services.CreateScope())
    {
        var services = scope.ServiceProvider;

        try
        {
            var db = services.GetRequiredService<ApplicationDbContext>();
            db.Database.Migrate();
        }
        catch (Exception ex)
        {
            var logger = services.GetRequiredService<ILogger<Program>>();
            logger.LogError(ex, "An error occurred while migrating the database.");
        }
    }

    webHost.Run();
}

@bricelam Thank you for the clarification, I shall use that pattern.

@Tratcher Had a cool idea to make this an extension method.
public static IWebHost MigrateDatabase(this IWebHost webHost)
{
    using (var scope = webHost.Services.CreateScope())
    {
        var services = scope.ServiceProvider;

        try
        {
            var db = services.GetRequiredService<ApplicationDbContext>();
            db.Database.Migrate();
        }
        catch (Exception ex)
        {
            var logger = services.GetRequiredService<ILogger<Program>>();
            logger.LogError(ex, "An error occurred while migrating the database.");
        }
    }

    return webHost;
}

public static void Main(string[] args)
{
    BuildWebHost(args)
        .MigrateDatabase()
        .Run();
}

@bricelam It's not clear for me what is the purpose of implicit call of BuildWebHost method? Why it called on every operation?

You want #9076

@bricelam Thanks for this solution! It makes perfect sense to me to put pipeline code in Startup.Configure(), and application code in Program.Main().
However, with that definition in place, why should EF Tools then ever want to run the code to "set up the pipeline"? (In addition to ConfigureServices().)

@memark EF doesn't 'want' to run Startup.Configure(), it's just a side effect of the new BuildWebHost pattern. It runs all of Startup before it returns the services that EF needs.

Hi,
I've got a question about the IDesignTimeDbContextFactory.
Previously i had to implement IDesignTimeDbContextFactory to get migrations running, e.g: PM > Add-Migration Initial PM > Update-Database
If not, the console threw an error and led me here: https://docs.microsoft.com/en-us/ef/core/miscellaneous/configuring-dbcontext#use-idesigntimedbcontextfactory.
So i did what it suggested and got migrations running. After that i have created new projects, and i didn't have to implement the IDesignTimeDbContextFactory. Migrations worked anyway. How is this possible? Same .NET Core version (2.0) on all of the projects.
Do we always need to create a IDesignTimeDbContextFactory if we want to use migrations from the Package Manager Console, or is it just in certain situations?
The below did't work at first, but once implementing the IDesignTimeDbContextFactory in one project, all the following new projects worked without it. Coincidence or did something in the background got updated?
Startups ConfigureServices:
services.AddDbContext<ApplicationDbContext>(options => options.UseSqlServer("the_connection_string"));
DbContext class
    public class ApplicationDbContext : DbContext     {         public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)         {}         public DbSet<Location> Locations { get; set; }     }
Thanks!

If you have a default constructor in your DbContext or are using the Program.BuildWebHost() pattern established in the ASP.NET Core 2.0 project templates, you typically won't need an IDesignTimeDbContextFactory implementation.

Thanks for the response @bricelam
I'm using the Program.BuildWebHost() (as it shipped with the project template for ASP.NET Core 2.0) and my constructor in my DbContext class is passing the DbContextOptions to the base (DbContext).
It all works well now, i'm just a bit confused why it all of a sudden started to work woithout the IDesignTimeDbContextFactory for new projects. When you say "typically", are there rare occasions when the IDesignTimeDbContextFactory could be needed even though running 2.0 and the BuildWebHost()?

In 2.0.0-preview1 Program.BuildWebHost() wasn't used and you needed a design-time factory.

Okay, thank you for the information @bricelam

Hi @bricelam, is there a way to resolve serivces configured inside a IDesignTimeDbContextFactory Implementation ?

Resolve them where? You may be able to use the dbContext.GetService<T>() extension method.

@bricelam , this "Application startup code should go inside Program.Main()" recommendation is huge. If this is indeed coming from Microsoft, this should definitely be clearly stated on MS docs. Think of how many projects there are out there calling db.Database.Migrate() (among many other things) on Configure!

There are improvements coming in version 2.1. Startup.Configure() won't be called when things like EF are just trying to access the app's IServiceProvider.

@leopignataro Indeed! Apart from this (rather obscure thread) I have never seen this mentioned before.


Use ssh to run ios-sim will cause segmentation fault:10

Hello,
We are using Jenkins to run CI tests, which will use ssh to run ios-sim. Locally, ios-sim can be run successfully, but in ssh mode, it will show an segmentation fault:10 error. This will only happen in Xcode6, and when we are trying to launch iOS8 device. Could someone please take a look? Thanks in advance.

Hi,
i am still facing same problem with the new 3.1.1 version. Anyone noticed this on newer version? Any workaround for it.
Thanks in advance

Try v4.x


Add MaaS specific rabbitmq user

Since we are removing the guest/guest user from rabbitmq as part of
os-ad we need to create a maas specific user that has "administrator"
privileges, otherwise the monitors don't work.
This patch adds a maas_user to rabbit, with a password specified in
user_extras_secrets. This is then passed to the monitors for rabbit as
they are created.
This won't adjust existing MaaS checks, so existing checks will need to
be removed and re-added or manually adjusted to address this problem.
Fixes: #223
(cherry picked from commit 6fc27ad7fd5a0b0191adc366faa91f8261f3c50e)

This is a kilo backport.

Backport of a security issue so auto-merging


Dynamically switch WMS layers based on zoom level

Some of the products generated by WFP's Open Data Cube are available at various resolutions (5km, 1km, 250m). On the ODC side, the layer won't return data unless the map is zoomed in. However, on the PRISM side, we don't enforce this, and we don't have the ability to automatically switch between layers depending on the zoom level.
We should allow for layers to be grouped together during configuration and to specify a zoom level where the layer can switch to the appropriate level based on the the users action. Note: currently PRISM's view resets when a new layer is loaded. We'll need to disable this functionality as part of this enhancement.
A current example of layers for the same product with different resolutions include mxd13a2_vim_dekad (10-day NDVI at 1km) and mxd13c1_viq_dekad (10-day NDVI at 5km). See screenshots below for 1) 5km product at default zoom level, 2) 1km product at default zoom level (no data loads), and 3) 1km product after zooming in

5km product at default zoom level

1km product at default zoom level (no data loads)

1km product after zooming in

This has been addressed on the ODC side. We can now specify a higher resolution layer (i.e. 1km or less) and ODC will serve the correct resolution based on the zoom extent.
ODC issue here: https://github.com/WFP-VAM/wfp-ram-odc/pull/7


11/08/2024 09:52:27 AM - CRITICAL - instaloader: error: Redirected to login page. Use --login or --load-cookies. Not logged into Instaloader

Description
Hello,
Seems that instaloader do not work without --login even for public profiles.
I'm logged in on instaloader, session file is present. But instawebhooks do not seems to use it
Have a nice day
Expected behavior
No response
Actual behavior

[mmuguet@muguet ~]$ instaloader --login michaelmuguet
Loaded session from /home/mmuguet/.config/instaloader/session-michaelmuguet.
Logged in as michaelmuguet.
Saved session to /home/mmuguet/.config/instaloader/session-michaelmuguet.
No targets were specified, thus nothing has been downloaded.
[mmuguet@muguet ~]$ instawebhooks michaelmuguet https://discord.com/api/webhooks/1304352859214839839/YUJy3lTfAQcgthtbwSZW1moJWKJKjadB211OqVcQ4y-TJe6vdUnYDbI1X1IQQTRrNWAx
11/08/2024 09:52:27 AM - INFO - Starting InstaWebhooks...
11/08/2024 09:52:27 AM - INFO - InstaWebhooks started successfully.
11/08/2024 09:52:27 AM - INFO - Monitoring 'michaelmuguet' every 3600 seconds on ̀https://discord.com/api/webhooks/1304352859214839839/YUJy3lTfAQcgthtbwSZW1moJWKJKjadB211OqVcQ4y-TJe6vdUnYDbI1X1IQQTRrNWAx.
11/08/2024 09:52:27 AM - INFO - Checking for new posts

HTTP redirect from https://i.instagram.com/api/v1/users/web_profile_info/?username=michaelmuguet to https://i.instagram.com/accounts/login/?next=/api/v1/users/web_profile_info/
11/08/2024 09:52:27 AM - CRITICAL - instaloader: error: Redirected to login page. Use --login or --load-cookies.
Not logged into Instaloader.
  instaloader --login YOUR-USERNAME

Steps to reproduce
No response
Other details
No response
InstaWebhooks version
0.1.3
Python version
3.9.18
Platform
Linux
Code of Conduct

[X] I agree to follow this project's Code of Conduct

It seems like quite a few people are getting the login error even when logged in. Instagram heavily rate limits you even when logged in. From my personal experience I recommend the following:

Waiting up to 48 hours before running InstaWebhooks again to clear any rate limits
Increasing the refresh interval to avoid hitting the rate limit

I will likely increase the default refresh interval in a future version to avoid rate limiting.
Related Links
https://github.com/RyanLua/InstaWebhooks/discussions/15#discussioncomment-10941534
https://github.com/instaloader/instaloader/issues/1617

Hey, does using the following command work:
instaloader profile michaelmuguet

Or do you get this error? If it's an error then it doesn't do with us and has to do with Instaloader.


Add script to build a Linux Mint appliance on Windows

This batch script creates a basic Linux Mint appliance for VirtualBox on Windows.
Resolves #142

Thanks for submitting this, Ryan! I have no means to test this PR, so I'm going to remove myself as a reviewer and let @ripleymj handle it.


service ps: Truncate Task IDs

Refactored to move resolution code into the idresolver
Made ps output more bearable by shortening service IDs in task names

/cc @aaronlehmann

I'm okay with truncating service IDs but I don't think switching print to use Resolve makes sense.

PTAL

LGTM

just one small nit: could we do switch t := t.(type) so we don't cast twice ?
otherwise LGTM

/cc @aluzzardi

I suspect this needs some docs changes.

@mstanleyjones pointed out that because of the trunctation, it's no longer possible to use task IDs from service ps to find out what DNS name to use to connect to a specific task. There doesn't seem to be a straightforward way to do this. Should we reconsider the change?

I think we should then, at least for 1.13, possibly we can do it again in 1.14, together with a --no-trunc flag (which is being worked on in https://github.com/docker/docker/pull/28213)

This change was largely reverted in https://github.com/docker/docker/pull/29196 (only difference with 1.12 is that it now shows the truncated id instead of the full length id)


Patterns Overview Page

Create a Patterns overview page which displays all available patterns and allows filtering based on pattern types.

This is included in #984. Closing issue.