No way to recover if ParseUser.CurrentUser throws an exception

Every once in a while I get a ArgumentException when accessing ParseUser.CurrentUser. The stack trace is below. Not sure what causes it, but the issue is once I get this error there is no way to recover. I cannot call LogOut or BecomeAsync or any Parse function for me to clear/change the CurrentUser. The only solution is to delete and reinstall the app.
Can we change it so that if the CurrentUser json is invalid, it will return null and clear the invalid json?
Stack trace of the exception I get:
 /Users/kostub/Projects/mathchat-xamarin/MathChatShared/Models/User.cs [Line 365] Error fetching current user (Exception: System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Input JSON was invalid.
   at Parse.Internal.Json.Parse (System.String input) [0x00033] in <filename unknown>:0
   at Parse.ParseClient.DeserializeJsonString (System.String jsonData) [0x00000] in <filename unknown>:0
   at Parse.PlatformHooks+SettingsWrapper..ctor (System.String fileName) [0x0003e] in <filename unknown>:0
   at Parse.PlatformHooks.<.ctor>b__4f () [0x00000] in <filename unknown>:0
   at System.Lazy`1[Parse.PlatformHooks+SettingsWrapper].CreateValue () [0x00000] in <filename unknown>:0
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions) [0x00014] in /Users/builder/data/lanes/2320/1f068b49/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:2168
   at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x00052] in /Users/builder/data/lanes/2320/1f068b49/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:3218
   at System.Threading.Tasks.Task.Wait () [0x00000] in /Users/builder/data/lanes/2320/1f068b49/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:3083
   at Parse.ParseUser.get_CurrentUser () [0x00006] in <filename unknown>:0
   at MathChat.Models.User.get_Current () [0x00013] in /Users/kostub/Projects/mathchat-xamarin/MathChatShared/Models/User.cs:361

Which platform are you running on?

Xamarin iOS.
On Wed, Nov 18, 2015 at 12:03 PM, Richard Ross<EMAIL_ADDRESS>wrote:

Which platform are you running on?
—
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/Parse-SDK-dotNET/issues/85#issuecomment-157845683
.

Looks like it could be related to #163

Any update on this? Unity3D has this issue as well

Hey, Bumping this up. It's been two years; This issue still exists.

Do you have any idea how to resolve the issue? Have you conducted any particular experiments to identify it?

Closing this issue due to the problem been possibly fixed with the latest version in the master branch.
If you can recreate this issue with the latest version please reopen this issue or create a new one to discuss possible solutions.


No option to install after adding repo

When you are on app page and add repo (which contains this app) there is no option to install this app. To do that you have to leave app page and then go back to app page and use pulley menu. Before leaving app page there is no option to install app in pulley menu.

Hi,
It's a known issue and it's already fixed in latest commits that wasn't pushed here yet. So I leave this issue opened.


Allow blacklisting mxids

Add new config setting 'bridge.userBlacklist', a list of mxids, to
prevent any messages sent by a blacklisted mxid from being bridged.

No new tests fail when running npm run test. I can write a new test for this change if you want, but I won't be able to get to it for at least few days.

I should point out that the lint & test failures this hits are also encountered in the develop branch. I got rid of the lint problem but not the test failures.
I'll write tests to cover this when I get the chance.

sorry that it took so long....how about making the blacklist an array of regexes? That way you could easily block everyone from a specific homeserver

That's a good idea. I'' try to get to it soon.


Can I do some UI labeling changes to help me understand the PR workflow

Hey Guys,  after reviewing the code base/application for a few days, I find things to be a little confusing to a new user.  Software that maps the business model you have in your head, to screens and labels is easy to use.
At first glance I was confused with the name Tenants and the button Show Old.

I would like to create a simple branch to do some name changes in the UI.  making this simple contributions will help me verify that I understand the workflow and could make larger contributions in the future.
The tenants page looks like it is where organizations go to find their campaigns.  I would suggest changing Tenant to Organization. and removing the word  organization from other places on the page.
I would also change Show Old, to something like Show Completed Campaigns, and label older campaigns in the list view as such.  Finally I would only introduce the search box if we cannot put all the campaigns on the page.
Is it OK if I create a branch to do this work?

I also see the words 'Campaign Organizer' referring to the Tenants,  Organization and Organizer would make things consistant

Go for it!
I believe that Tenant should be Organization and Tenant Admin should be Organization Admin. @tonysurma and/or @BillWagner can confirm.

Yep .  If for admin if it is the admin in the scope of an org then it is org admin.  If it is the global scope - meaning admin across all orgs then something like already admin would be good.  Tenant should be stricken from the books :)

Hi @SteveStrong, there is also a use of 'tenants' in a code block at the top of Index.cshtml in Areas\Admin\Views\Tenant :)


fix(consensus): Refactor block subsidy to handle Height::MAX without panicking

Motivation
Zebra panics when doing the block subsidy calculations for Height::MAX.
This is unlikely to ever happen on mainnet, because it only happens when block subsidies are all zero zats. But it's good to clean it up anyway, to avoid future changes causing actual panics in production.
Specifications

https://zips.z.cash/protocol/protocol.pdf#subsidies
Designs
Use Option<u64> internally whenever 2Halving(height) would overflow a u64.
Solution
Refactor the halving divisor to avoid overflows and panics.
Add tests for Height::MAX and other large values.
Review
This is a routine consensus rule fix, it would be good to get two people to review it.
This doesn't need to be included in the audit, because it only happens with very large heights.
Reviewer Checklist

[ ] Will the PR name make sense to users?

[ ] Does it need extra CHANGELOG info? (new features, breaking changes, large changes)

[ ] Are the PR labels correct?
[ ] Does the code do what the ticket and PR says?
[ ] How do you know it works? Does it have tests?

This isn't needed for anything else now, so it's a low priority.


visual studio 2015 support

hello!
according to the instructions, you need visual studio 2013 to build electron.
what's blocking us from building with visual studio 2015? i'm writing some code for electron, but they use c++14 features not supported in vs2013.
thank you!

Currently Chromium is compiled with VS 2013, and we use the same compiler to compile Electron to avoid potential problems.
You can track the progress of moving to VS 2015 at https://code.google.com/p/chromium/issues/detail?id=440500.


typo: extentions -> extensions

additioanlly -> additionally
ingetration -> integration
Trim trailing spaces
Add code fence langauges
Space areound headers
Space around code fences
Malformed link

OPS Build status updates of commit 592d2a5:
:clock10: Preparing: average preparing time is 1 min(s) 13 sec(s)

OPS Build status updates of commit 592d2a5:
:clock10: Incremental building: average incremental building time is 12 min(s) 30 sec(s)

OPS Build status updates of commit 592d2a5:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md
:x:Error

Details

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md
:x:Error

Details

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPApplicationCredentialKey.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Stop-SPDistributedCacheServiceInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/sharepoint-server.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Uninstall-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Test-SPProjectWebInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-online/sharepoint-online.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-FASTSearchSpelltuningStatus.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Update-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchLinksDatabase.md
:warning:Warning

Details

exchange/exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md

[Error] Unable to load file 'exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md' via processor 'AzureCliDocumentProcessor': :2871:(2776) 'To see the input types that this cmdlet accepts, s...'
Expect Heading

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md

[Error] Unable to load file 'exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md' via processor 'AzureCliDocumentProcessor': :2436:(2414) 'To see the input types that this cmdlet accepts, s...'
Expect Heading

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md

Line 143: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set.FASTSearchMetadataCrawledProperty.md).

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPApplicationCredentialKey.md

Line 93: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-ApplicationCredentialKey.md).

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md

Line 127: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Clear-SPAppDeniedEndpoints.md).
Line 129: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPAppDeniedEndpoints.md).

sharepoint/sharepoint-ps/sharepoint-server/Add-FASTSearchSpelltuning.md

Line 53: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Reset-FASTSearchSpelltuning.md).

sharepoint/sharepoint-ps/sharepoint-server/Stop-SPDistributedCacheServiceInstance.md

Line 85: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Remove-SPDistributedCacheServiceInstanceOnLocalServer.md).
Line 87: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Add-SPDistributedCacheServiceInstanceOnLocalServer.md).

sharepoint/sharepoint-ps/sharepoint-server/sharepoint-server.md

Line 166: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPContentDatabaseOrphanedData).
Line 270: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPApplicationCredentialKey).
Line 403: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPO365LinkSettings).
Line 405: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPO365LinkSettings).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit b347c57:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md
:x:Error

Details

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md
:x:Error

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPApplicationCredentialKey.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Update-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Uninstall-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Test-SPProjectWebInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-FASTSearchSpelltuningStatus.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Stop-SPDistributedCacheServiceInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/sharepoint-server.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-online/sharepoint-online.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchLinksDatabase.md
:warning:Warning

Details

exchange/exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md

[Error] Unable to load file 'exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md' via processor 'AzureCliDocumentProcessor': :2871:(2776) 'To see the input types that this cmdlet accepts, s...'
Expect Heading

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md

[Error] Unable to load file 'exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md' via processor 'AzureCliDocumentProcessor': :2434:(2414) 'To see the input types that this cmdlet accepts, s...'

Line 87: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Add-SPDistributedCacheServiceInstanceOnLocalServer.md).

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md

Line 143: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set.FASTSearchMetadataCrawledProperty.md).

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md

Line 127: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Clear-SPAppDeniedEndpoints.md).
Line 129: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPAppDeniedEndpoints.md).

sharepoint/sharepoint-ps/sharepoint-server/sharepoint-server.md

Line 166: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPContentDatabaseOrphanedData).
Line 270: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPApplicationCredentialKey).
Line 403: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPO365LinkSettings).
Line 405: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPO365LinkSettings).
Line 407: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Test-SPO365LinkSettings).

sharepoint/sharepoint-ps/sharepoint-online/sharepoint-online.md

Line 292: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-online/Revoke-SPObjectSecurity.md).

sharepoint/sharepoint-ps/sharepoint-server/Get-SPAppInstance.md

Line 182: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Restart-SPAppInstanceJobs.md).

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchLinksDatabase.md

Line 217: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Repartition-SPEnterpriseSearchLinksDatabases.md).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit ec6fe26:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md
:x:Error

Details

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md
:x:Error

Details

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchLinksDatabase.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Stop-SPDistributedCacheServiceInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPApplicationCredentialKey.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-online/sharepoint-online.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Update-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Uninstall-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Test-SPProjectWebInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/sharepoint-server.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-FASTSearchSpelltuningStatus.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md
:warning:Warning

Details

exchange/exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md

[Error] Unable to load file 'exchange-ps/exchange/client-access-servers/Set-OwaVirtualDirectory.md' via processor 'AzureCliDocumentProcessor': :2871:(2776) 'To see the input types that this cmdlet accepts, s...'
Expect Heading

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md

[Error] Unable to load file 'exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md' via processor 'AzureCliDocumentProcessor': :2434:(2414) 'To see the input types that this cmdlet accepts, s...'
Expect Heading

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchLinksDatabase.md

Line 217: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Repartition-SPEnterpriseSearchLinksDatabases.md).

sharepoint/sharepoint-ps/sharepoint-server/Stop-SPDistributedCacheServiceInstance.md

Line 85: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Remove-SPDistributedCacheServiceInstanceOnLocalServer.md).

Line 270: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPApplicationCredentialKey).
Line 403: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPO365LinkSettings).
Line 405: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPO365LinkSettings).
Line 407: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Test-SPO365LinkSettings).

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md

Line 127: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Clear-SPAppDeniedEndpoints.md).
Line 129: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPAppDeniedEndpoints.md).

sharepoint/sharepoint-ps/sharepoint-server/Add-FASTSearchSpelltuning.md

Line 53: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Reset-FASTSearchSpelltuning.md).

sharepoint/sharepoint-ps/sharepoint-server/Get-FASTSearchSpelltuningStatus.md

Line 47: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Reset-FASTSearchSpelltuning.md).

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md

Line 143: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set.FASTSearchMetadataCrawledProperty.md).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit 802de1f:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md
:x:Error

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchLinksDatabase.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Add-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-online/sharepoint-online.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Uninstall-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Stop-SPDistributedCacheServiceInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-FASTSearchSpelltuningStatus.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Test-SPProjectWebInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/New-FASTSearchMetadataCrawledProperty.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-FASTSearchSpelltuning.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Get-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/sharepoint-server.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Update-SPAppInstance.md
:warning:Warning

Details

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPApplicationCredentialKey.md
:warning:Warning

Details

exchange/exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md

[Error] Unable to load file 'exchange-ps/exchange/client-access/Set-OwaMailboxPolicy.md' via processor 'AzureCliDocumentProcessor': :2434:(2414) 'To see the input types that this cmdlet accepts, s...'
Expect Heading

sharepoint/sharepoint-ps/sharepoint-server/Add-SPAppDeniedEndpoint.md

Line 127: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Clear-SPAppDeniedEndpoints.md).

Line 270: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPApplicationCredentialKey).
Line 403: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Get-SPO365LinkSettings).
Line 405: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-SPO365LinkSettings).
Line 407: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Test-SPO365LinkSettings).

sharepoint/sharepoint-ps/sharepoint-server/Update-SPAppInstance.md

Line 142: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Restart-SPAppInstanceJobs.md).

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPApplicationCredentialKey.md

Line 93: [Warning] Invalid file link:(~/sharepoint-ps/sharepoint-server/Set-ApplicationCredentialKey.md).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit aed9733:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

spmt/spmt-ps/spmt/Add-SPMTTask.md
:x:Error

Details

spmt/spmt-ps/spmt/Add-SPMTTask.md

[Error] Unable to load file 'spmt-ps/spmt/Add-SPMTTask.md' via processor 'AzureCliDocumentProcessor': :34:(177) 'Json sample for File Share migration:

'
Expect Heading
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit f938c23:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

spmt/spmt-ps/spmt/Add-SPMTTask.md
:x:Error

Details

spmt/spmt-ps/spmt/Add-SPMTTask.md

[Error] Unable to load file 'spmt-ps/spmt/Add-SPMTTask.md' via processor 'AzureCliDocumentProcessor': :34:(177) 'Json sample for File Share migration:

'
Expect Heading
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@nschonni: Don't feel obligated to "fix" perceived markdown issues in Exchange/Exchange Online/EOP/Security & Compliance Center cmdlet topics. I'd rather have them all be the same kind of wrong than have a handful of them fixed. For example:

No need to make web links hot; they won't be hot at the command line, and the important URL part will disappear if you format them "correctly" per markdown.

No need to put "powershell" in front of code blocks.

The INPUTS and OUTPUTS sections require the ### subsection to hold the text. When you removed them, it caused build errors.

Don't worry about missing carriage returns under section headings.

Thanks.

And now I see there's a build error in the SharePoint file. I'm closing this PR


Exported variables not immediately accessible in the inspector upon modifying .gd script

Godot version
4.1.1
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated Radeon RX 5500 XT (Advanced Micro Devices, Inc.; 31.0.12027.9001) - AMD Ryzen 5 3500X 6-Core Processor (6 Threads)
Issue description
Exported variables seem to not be immediately accessible in Godot Inspector. Meaning that if a new variable is added, I am forced to restart my project before I can access it.
The issue seems kinda important, because if multiple people work on the same project, then when person A introduces new exported variables and sets them to some value, then person B has to: close the project, pull from remote, and start the project once again, otherwise they risk setting all those exported variables to null.
Steps to reproduce
Reproduction steps:
1 - Have a node with .gd script attached present on the scene
2 - Add new @export var to the script, and save it.
(issue has been noticed while using PackedScenes with .gd scripts attached, issue may be present in other nodes as well)
Expected behavior: I can immediately edit the exported variable for the node that is present on the scene.
Actual behavior: The new exported variable remains invisible. I am forced to restart the project entirely before I can access this variable.
Minimal reproduction project
N/A

iirc 4.1 used to sometimes inspect the edited script in the inspector rather than the selected scene's node, so it lead to me thinking the variables didn't show up consistently. Like, adding a new script to a node sneakily stole the inspector.
After testing in 4.2, none of the problems mentionned are here. Also you don't need to save for exported variables to appear in the inspector.

Can you please try this with a supported version, like 4.1.3 (only the latest patch version is supported, and it might already be fixed)

@AThousandShips - the issue persists in Godot 4.1.3
Added new variable to a script attached to PackedScene node on the scene and saved the script. Then clicked over all the nodes of that PackedScene type.
New export variable is nowhere to be found. Only after restarting the project it appears again.

Okay your description didn't make it clear it was an inherited class, then this is a duplicate of:

https://github.com/godotengine/godot/issues/82998


fix: Squashed minor search api bugs

Codecov Report

Merging #359 (5755c09) into main (9acf153) will increase coverage by 0.62%.
The diff coverage is 51.92%.

:exclamation: Current head 5755c09 differs from pull request most recent head 95c2234. Consider uploading reports for the commit 95c2234 to get more accurate results

@@            Coverage Diff             @@
##             main     #359      +/-   ##
==========================================
+ Coverage   29.09%   29.71%   +0.62%
==========================================
  Files          64       62       -2
  Lines        6775     6642     -133
==========================================
+ Hits         1971     1974       +3
+ Misses       4585     4450     -135
+ Partials      219      218       -1

Impacted Files
Coverage Δ

server/services/v1/query_runner.go
0.00% <0.00%> (ø)

server/services/v1/search_reader.go
0.00% <0.00%> (ø)

api/server/v1/marshaler.go
17.94% <100.00%> (+6.04%)
:arrow_up:

server/midddleware/metrics.go
20.58% <0.00%> (-7.32%)
:arrow_down:

server/metrics/requests.go
88.57% <0.00%> (-0.32%)
:arrow_down:

server/metrics/metrics.go
100.00% <0.00%> (ø)

server/services/v1/admin.go
0.00% <0.00%> (ø)

server/midddleware/middleware.go
0.00% <0.00%> (ø)

server/midddleware/request_metadata.go

server/midddleware/namespace.go

... and 3 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 9acf153...95c2234. Read the comment docs.


⚠ 366.ru has degraded performance

In 477a87a, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 7708 ms

Resolved: 366.ru performance has improved in 0856aaf.


Added information about bound conditions on the foreach loop would be useful

It would be useful to add information on what happens when the foreach loop is executed on empty list or null object.  I can code to find the answer, but it would be better if the documentation provided it.

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

ID: d710feeb-8f03-b211-a070-155938929d6b
Version Independent ID: c980ea8e-ffb4-fbb1-1761-292858616cdd
Content: C# foreach statement
Content Source: docs/csharp/language-reference/keywords/foreach-in.md
Product: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

That's a good suggestion @alaniane
There are two answers:

If the source collection is null, a NullReferenceException is thrown.
If the source collection is empty, the body of the foreach loop is skipped. In other words, all "none" of the elements are enumerated, and execution continues with the next statement.

I've added this to our backlog, and applied the "up for grabs" label. If you'd like to submit a PR, I'll watch for it.  Otherwise, we'll address this when we next update this article.


HOW TO CANCEL HULU +1_866✶994_3657 ?

~~HOW TO CANCEL HULU

^^HOW DO I CANCEL HULU
&&&HOW CAN I CANCEL HULU
***HOW DO I DISCONTINUE HULU
(((HOW DO I UNSUBSCRIBE FROM HULU
+++HOW DO I UNSUBSCRIBE TO HULU
$$$HOW DO YOU CANCEL HULU
#####HOW DO YOU UNSUBSCRIBE FROM HULU
===HOW I CANCEL HULU
!!!!HOW TO DISCONTINUE HULU
^^^^^HOW TO UNSUB FROM HULU
---HOW TO UNSUBSCRIBE FROM HULU
~~^^HOW TO UNSUBSCRIBE ON HULU

Ask For Help Official HuLu support number in the USA +1-866-994-3657, providing direct access to their customer support team. This number offers assistance with a range of issues, ensuring quick replies for users needing help. Ask For Help Official HuLu support number in the USA +1-866-994-3657, providing direct access to their customer support team. This number offers assistance with a range of issues, ensuring quick replies for users needing help.


Freewall doesn't load in on first entrance of webpage in Chrome and Safari

Hi,
I have an issue with Freewall on my website. I want to show a flex-grid and it all works fine in FF.
When i try to load the page in Chrome or Safari the grid is not formed by the plugin. If i stay on this page and i refresh it or when i resize it the grid is shown correctly. Any suggestions? This is the code that i'm using. Thanks for your response!
$(document).ready(function() {
var gutter = 2;
var wall = new freewall("#block-views-portfolio-block-1 .view-content");
wall.reset({
	selector: '.views-row img',
	animate: true,
	cellW: 150,
	cellH: 'auto',
	gutterX : gutter,
	gutterY: gutter,
	fixSize: 0,
	onResize: function() {
		wall.fitWidth();
	}
});

var images = wall.container.find('.views-row');
images.find('img').load(function() {
	wall.fitWidth();
});

});

did you fix it ?  i have a similar problem


Fix chargeback vm timezone-dependent specs

These are failing for the same reason as addressed in
26554e285972d3eec369aec26c70d65636ba5948 /
https://github.com/ManageIQ/manageiq/pull/13287
/cc @lpichler
@miq-bot add-label bug, test
@miq-bot assign @gtanzillo

👍 Looks good!


[FEATURE]: Enhance Documentation + Configuration Files

Within the PowerFlex helm deployment directory with ./csi-install ... please stage the config.yaml and values.yaml in this directory to refrain from having customer moving between multiple directories.
Please change config.yaml to secret.yaml
Please add a sample vales to a secret.yaml (config.yaml) that reflects both a secret without ssl and with ssl so as to show what the endpoint: <IP_ADDRESS>  (without ssl)
endpoint: https://powerflex.local (with ssl)
Please call out that if LDAP is utilized on PowerFlex that SSL will most likely be enabled requiring the creation of a certificate into the namespace.

Can we also please ensure that customers are made aware that if they are brining their certificates - they must be FQDN and not short names as it can result in x509 issues

@bharathsreekanth : Could you please look into this request?


Process args for tempest to avoid resplitting

Previously, in tempest-wrapper,
arguments containing whitespace were split into multiple arguments, because of the type of processing.
Use different bash logic with arrays to retain the arguments as-is, while still performing the same argument replacing.
Fixes #62

@agileshaw @rgildein I opened #75 which will obsolete this patch if accepted. UPDATE: that PR is not likely to go ahead, so please go ahead with this one. :)

So we can close this one?

I think we should get this merged which fixes the bug. For future enhancements (suggested in #75), we will come back to them in future.

And to close the loop, the permission error in the log shown here are not related to the snap itself. See #74 for more information.


Efficientnetb1-b7 hyper parameters

First of all thanks for the fantastic code!
I am wondering if anyone has successfully reproduce (or close to it) the results for Efficientnetb1-b7? I am able to reproduce b0 with jiefengpeng's setting:
./distributed_train.sh 8 ../ImageNet/ --model efficientnet_b0 -b 256 --sched step --epochs 500 --decay-epochs 3 --decay-rate 0.963 --opt rmsproptf --opt-eps .001 -j 8 --warmup-epochs 5 --weight-decay 1e-5 --drop 0.2 --color-jitter .06 --model-ema --lr .128
The same setting (with adjusted drop rate) for b1 came with only 78.11 (with EMA enabled), compared to 78.8% reported in the paper.

Unfortunately, nobody has shared successful h-params with the larger models and I haven't had a chance to try. If anyone does, I'll start a collection of hparams on the README (with attribution) for any shared successes.
A few things to try:

Google trains with a different batch norm epsilon and momentum than PyTorch defaults. You can use the flag --bn-tf to enable both. I have trained with the PyTorch defaults for other models, but perhaps it has more impact for larger models? Downside to this is that you always need to set the epsilon to non-default for inference as well (something to remember for deployment).
I assume you enabled drop_connect in the model entrypoint as has been mentioned in other issues? kwargs['drop_connect_rate'] = 0.2
I added experimental implementation of AutoAugmentation a while back. I tested it with a ResNet model that is faster to train and it worked well, slight improvement. Since Google had success with AutoAugment for their EfficientNet, it might have an impact? Use the flag --aa v0 for a setup that's similar to Google's efficientnet AA or --aa original for one closer to the origina AA paper. The color jitter flag is ignored when aa is set.

I added a memory efficient Swish impl last week so you should see some memory usage improvements while training...

Also, with 8 * 256 effective batch size, you might want to try bumping up the the EMA decay a notch .. maybe closer --model-ema-decay 0.9999  (default is 0.9998)

Thanks for the detailed feeback. I am in the process of trying couple settings and will get back to you if any of these runs are (or not) able to reproduce the reported accuracy.

i am getting a pickle error when trying to use the autoAugment. It seems that since it is a lambda function it is not pickable during multiprocessing (distributed training). I am curious if you have encountered this issue before?

@pichuang1984 I'm aware of pickle concers with lambdas but haven't run into the problem. I can run distributed training w/ AA enabled (on one Linux machine with multiple GPUs) and don't have any problems.
I'm not sure it's the distributed processes though, since there shouldn't be any sharing of dataset / transforms for that. Seems more likely to be the main process sharing the dataset with the worker processes... I know people have had issues with lambdas + transforms on Windows with PyTorch... I'll make a note to replace them with normal functions sometime next week but you can probably do it yourself quicker.

@rwightman I am actually using a customized training script so that might be why. Not sure exactly what the problem is yet but your point makes sense. I will continue debugging as well as working on replacing them. Also looking forward to your implementation.

I am able to closely reproduce B1 results (top1/top5: 78.74/94.4) based on the parms from https://arxiv.org/pdf/1908.06022.pdf. Here are some settings I use/derive:
decay_epoch: 2.4 decay_rate: 0.99 color_jitter: 0.1 base_lr = 0.016 ema_decay = 0.9998
The actual learning rate is: (total # of images) / 256 * 0.016 per iteration
I also tried my implementation of the auto augment but didn't see an accuracy increase.

@pichuang1984 Thanks for the update. Did you switch the LR scheduler setup so that it's adjust on updates and not epochs?

@rwightman  No i didn't, still using your implementation based on epochs. I am also using pytorch BN default instead of TF. Using TF BN parms actually drop the accuracy by 0.8% for B1
The same receipt doesn't seen to work for B2 though. I am still ~ 1% short from the paper. Any recommendation will be appreciated for B2/B3 and so on.

@pichuang1984 I just finished training B2 to 80.4%. Weights added and hparms posted in the 'what's new', I used my new RandAugment implemenation.
Something to watch out for when using distributed training is that the distributed validation while it's training (and thus checkpoint selection) doesn't necessarily match up exactly the actual validation from the saved weights. This can be sometimes improved or mitigated by averaging a few checkpoints after the fact or keeping a larger number of checkpoints and validating against all to find the best afterwards.

@rwightman how long did it take to train B2 from scratch? How many GPUs did you use, and which ones?

@rwightman This is very cool! I have not been able to reproduce results for B2/B3. So far my best results are B2: 79.7% and B3: 81.1%. Will try your hparams.
Is this caused by the difference between running validation on single GPU vs distributed? Do you think if we enforce the validation to run on only single GPU will that mitigate this problem?

@michaelklachko not super quick, 13 days on two Titan RTX running in FP16 with AMP at near full tilt (95-98% utilization).. I got impatient and killed training at epoch 420 or so and went through the results. Things had levelled off for a while by that point.
@pichuang1984 I think the biggest reason is the batchnorm running stats, they remain on on each distributed node separately and aren't synched. When validation is performed each GPU is using slightly different BN stats for the validation, the stats from rank=0 end up being saved in the checkpoint. One can use sync-bn but it really slows things down as the BN calcs are synced each batch, and can actually hurt training with larger batch sizes. I have tried looking for an implemenation that maybe syncs the stats once per epoch, after the training iteration, before validation and model saving, but I didn't find anything like that. I may try it myself someday and see if it helps...

But I must say, with the addition of the JIT + memory optimized Swish implementation I added, it has made this process quicker, allowed slightly larger batch sizes, probably would have been a number of days more before I made that change.

@rwightman Ah I see. I think there is an all_reduce call in Pytorch (https://pytorch.org/docs/stable/distributed.html) that we can utilize? We can just sync up the BN parameters once before validation instead of every mini-batch.

@pichuang1984 yup, I'm experimenting with that at this very moment... will let it run for a day and add an argument if it seems good
            train_metrics = train_epoch(
                epoch, model, loader_train, optimizer, train_loss_fn, args,
                lr_scheduler=lr_scheduler, saver=saver, output_dir=output_dir,
                use_amp=use_amp, model_ema=model_ema)

            if args.distributed and True:
                if args.local_rank == 0:
                    print("Averaging bn running means and vars")
                # ensure every node has the same running bn stats before eval/save
                for bn_name, bn_buf in unwrap_model(model).named_buffers(recurse=True):
                    if ('running_mean' in bn_name) or ('running_var' in bn_name):
                        torch.distributed.all_reduce(bn_buf, op=dist.ReduceOp.SUM)
                        bn_buf /= float(args.world_size)

            eval_metrics = validate(model, loader_eval, validate_loss_fn, args)

Nice looking forward to hear your good news :)

@rwightman, I see. I'm going to train on 2x v100, so hopefully will be a little faster. I'm thinking to try training B0 first. To reproduce your 76.9% B0 result, do I need to change any params in the command you provided for B2?
Also, to clarify:

These results (B0 and B2) are done without BN stats syncing, correct?

Did you validate picking the best checkpoint or averaging across multiple ones (per your comment regarding distributed validation)?

@michaelklachko yeah, for B0 you'd want to reduce the drop rate to 0.2., make sure you scale the LR to your global batch size (.016 * global_batch) / 256 where global batch is the value of -b * number of distributed nodes
All the training so far was done without BN stats syncing, yes. I'm currently experimenting with my 'once per epoch' BN stats syncing and it does seem to be providing more consistent validation to saved checkpoint correspondence, but not clear it's impacting the end result (for good or bad). Still running my experiments.
It's probably quickest just to average the best checkpoints you end up with in the output folder for your run, keeps the 'best' 10 by default.

A few more questions if you don't mind:

The BN sync you're trying currently - it's the same as BN sync done in AMP, only you want to do it once per epoch, correct?

Would you recommend increasing batch size to the maximum that fits in v100 memory (32GB)?

If you had to train multiple B0 models, and you had two V100 cards, would you prefer to train them one at a time using 2x v100, or two different models in parallel, one per V100?

How are 01 and 02 AMP modes different from a practical perspective? Which one is faster and which one is more stable?

I just finished training Mobilenet v2, using my own implementation, but I only got 71.6% accuracy using the hyperparams from here  which are supposed to get 72.2%. Which accuracy did you get on Mobilenet v2, and what params did you use?

I appreciate your help!

@michaelklachko

It's simpler than the BN sync done in AMP. The AMP or native Pytorch SyncBN keeps the running mean/var updated on a per batch basis as you train by calculating the batch statistics across all GPUs. My solution just averages the running mean/var across all nodes at the end of each training epoch, technically the average of variances isn't correct. I feel it's 'good enough' and better than nothing.

Yes, within this range you shouldn't be getting into the range where your batch sizes are big enough to hurt training, just scale the LR properly.

Depends. If you want to try more hparams, do multiple runs in parallel

I do not notice much difference between O1 and O2 with these models.

I haven't trained MobilenetV2, I have trained V3 and Mnasnet from scratch with earlier versions of this repo see #11 ...very similar hparams to B0, probably better with the new randaugment but unsure.

Ok, submitted two B0 jobs to the cluster (256 and 384 batch sizes). I also tested it on 4 GPUs (Titan Xp) dev server, and it's most likely being bottlenecked by the CPU. The CPU on that server has 6 cores and all 12 logical cores are 99-100% utilized, while GPUs are in 70-80% range. This is with -j 4, and -b 128.
How do you choose an optimal value for num_workers?

@michaelklachko yes, sounds like the CPU is bottleneck, exceeding the logical core count in workers will just make things worse. I usually use 4-6 for # workers, but try to keep the total number workers across all training sessions or distributed nodes < logical cores. Pillow-SIMD can be a big help because pillow image decompression and processing is slow. OpenCV is much faster but requires setting up a whole nother pipeline of augmentations, dataset, etc. DALI can be used for that but is a bit of a pain to get setup.

@rwightman Any chance you can share the unwrap_model function call? Trying to implement the same thing and would like to avoid duplicating the work.
Thanks!

@pichuang1984 it's on the reduce-bn branch

@rwightman Any chance you can share the training log for your latest EfficientNet (B2) run? Have been trying to reproduce your result (top-1 80.4) without much success. Best I can get is around 80 at ~epoch 400.
Thanks, and Happy Holiday

@pichuang1984 Summary attached, the best single checkpoint was a little over 80.2, top 8-10 averaged hit 80.4. If you run post train validation, remember to run with --use-ema if you trained with --use-ema
summary.csv.zip

Hi, @rwightman ;Thanks for your great works. Recently, I am reproducing the B4 results. When I utilize your implemented RandAA, it indeed improves the performance. However, I see you set the max value of magnitude is 10. However, in google TPU code, the hyper-parameters of magnitude on B5 is 17, and B7 is 28, respectively.  This phenomenon confuses me. Are there some differences compared with TPU code? or just bugs?

@JoinWei-PKU this issue has come up before, see #63 ... there are also two issues on the TPU repository about this. I believe it is a misunderstanding and difference between the paper and TPU impl as going above 10 doesn't make sense for many of the augmentations. The whole setup is a bit troubling too because some augmentations increase in intensity with magnitude but others actually decrease (solarize, posterize) or others have a low point in the middle (color, saturation, etc)

@rwightman Happy new year!
I just finished B0 training - results are consistent and better than I expected. I tried 8 simulations: Single GPU with batch size 384, two GPU batch size 384, two GPUs batch size 128, and four GPUs batch size 128 (in all cases, the batch size is per GPU). Learning rate is scaled appropriately. Each config ran twice. The command is identical to your B2 command, with --drop 0.2 instead of 0.3. Dec 4 commit code.
The results range from 77.55 to 77.70 - this is the EMA value, the best epoch per training run. Not averaged across multiple checkpoints. Non-EMA was usually ~0.2-0.4% worse for the corresponding epoch.

How does this compare to the results you got for B0?
Do you think averaging weights across best N checkpoints would improve it further?
Have you tried training with AdvProp?
Did syncing BN every epoch help in your experiments?

I haven't noticed any significant difference between training on a single GPU with batch size 384 vs training on four GPUs (batch size 128), so it seems BN sync is not that important, at least not for B0 with these params.

@michaelklachko thanks for the update! I'll add your result to the README training section. Those are good results, I have not tried training B0 or B1 with those newer hparams that leverage my RandAugment impl.
I think you may get a bit more of a bump by averaging a few checkpoints. It usually helps in training sessions where EMA also helps. So with the EfficientNet style training there are usually some gains (+.1-.3%), but hardly any gain with SGD + cosine that's my goto for ResNets. I'll push some averaging code to this repository today so you can try, just needs a quick cleanup :)
I'd like to give AdvProp a try. I was planning to come up with a mechanism for doing the Aux BatchNorm (batch norm per sub-batch / samples) first.  It is going to be much slower though (or require 2-4x the # GPUs) since it runs PGD attacks on the fly to generate training examples.
I can't say that doing my once per epoch BN stats sync (I'm calling it dist-bn as an arg to differentiate from sync-bn) improves the end result. However, it does make the validation results during training more consistent. So when training is done and I'm left with my N best checkpoints, they are more likely to actually be the N best and the numbers recorded match post training validation on the saved checkpoints.

@rwightman can you please elaborate more on what you meant by averaging a few checkpoints? In the current setup the saver will keep the top K best checkpoints, and you are saying that if we average the EMA weights of these top-K best checkpoints through post-processing, we will get an additional small gain on accuracy?

@pichuang1984 the divisor should be 256, otherwise no issues with your calculations (my .016 was for batch 128 with 2 gpus, so 256 total batch size).
Using 32-64 GPUs is obviously something I have not tried so I can't really comment. I've seen the warmup ramp up causing stability issues with rmsprop, you could try disabling it by setting --warmup-epochs 0 ... otherwise, could try bumping rmsprop eps even higher?
You are definitely using the rmsproptf right? The PyTorch default rmsprop goes unstable much easier than my modified one with these hparams.
Failing all that, if you get me some time on a 32-64 GPU cluster I'll run some experiments ;)

@pichuang1984 @michaelklachko I just cleaned up and pushed my checkpoint averaging script, give it a try. Typically I just ./avg_checkpoints.py --input output/train/mylasttraining -n ?  try a few different n.
Michael, it sounds like your B0 results are better than my old ones. I wouldn't mind hosting yours if you're willing to share. Maybe you can hit 78 with the averaging :)

Here you go: https://drive.google.com/open?id=1JysN-66uIi7LuEGCcn0S0c184ImP-6AN

@michaelklachko thanks, just added them... the averaging was counter productive for these weights, 77.7 it is.

@pichuang1984 Summary attached, the best single checkpoint was a little over 80.2, top 8-10 averaged hit 80.4. If you run post train validation, remember to run with --use-ema if you trained with --use-ema
summary.csv.zip

@rwightman. Thanks so much for sharing the training log. Just want to double check. In your summary.csv, the eval_prec1 and eval_prec5 are the validation with or without the ema weights?

@pichuang1984 yeah, I actually wanted to see both just recently for an experiment, so will probably add separate ema columns soon...

@rwightman Thanks for confirming. It seems that I can reproduce your 2gpu experiment results, though its only at epoch 16 now, which means that the problem arises when trying to scale up the number of GPUs...

I'm going to close this issue now, I think there are enough hparams to get great results, at least for B0-B2 and somewhat B3.
I made a change to the weight init based on a discovery (that it didn't 100% match the TF TPU impl init) by another user of this code that impacts all of these models, specifically the depthwise convs. It may prove helpful in getting that last bit of performance on the larger models. Please let me know if anyone tries training B3+ from scratch with the changed init.


Collect materials inside root assembly

Hi,
This change fixes the issue with missing materials when material is assigned to objects in root assembly and to objects in their own assembly (created with appleseed modifier with Optimized for Instancing checked).
Before materials were collected each in the assembly of the object, but in cases of shared material it sometimes gets listed in the nested assembly which makes it invisible to the objects in parent assembly.
This change puts all the materials to the root assembly.
Thanks for review!

Thanks!


feat: improve tree shaking support

What is the feature you would like to implement?
Structure our package distributions to better support tree shaking by not bundling into a single index file.
Additional context
The safest form of tree shaking relies on ES module structure to eliminate unused code. We currently bundle our package distributions into a single index file, which makes this kind of tree shaking impossible.
I'd suggest just transpiling with tsc. This would also make #411 viable.

Is this assigned yet?

It is not

Wondering if it would be as simple as adding treeshake option to tsup in places like here: https://github.com/farcasterxyz/hub-monorepo/blob/main/packages/core/tsup.config.ts

Since we are building a library, we aren't bundling our dependencies which is where tree shaking would happen. Instead we want to make our library more tree shakable for end consumers by not combining the modules into a single file.
Great right up here https://cmdcolin.github.io/posts/2022-05-27-youmaynotneedabundler


What is the best practice to handle very large images?

Our group has incorporate Cellpose as a key component into our pipeline. It works rather well most times. A small pitfall is an issue that Cellpose gives memory error and slowness when dealing with really large images, like in Gigabytes size. Do you have any suggestion for handling those large images? Parameter setting or images preprocessing? Thanks!

tile them or if time is not an issue, create enough vram

tile them or if time is not an issue, create enough vram

@papalagirauscher thanks for your input, I would really like some help on this - how do you make all of that vram available?

@papalagirauscher thanks for your input, I would really like some help on this - how do you make all of that vram available?


Update README.md

Fixed spelling for line 53 and might aswell use one way of spelling things for everything so I changed the spelling of Category at lines 57 - 67

Thanks.


ImportError: `GLIBC_2.33' not found

Problem Description
The tool does not start and shows a specific version problem on my raspberry pi.
Steps to reproduce the behavior:

pipx install mitmproxy
mitmweb

System Information
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/user/.local/share/pipx/venvs/mitmproxy/lib/python3.9/site-packages/mitmproxy_wireguard/mitmproxy_wireguard.abi3.so)
$ ldd --version
ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u9) 2.31

Paste the output of "mitmproxy --version" here.

I hope so... It doesn't run even if I just asked for the version.
Is there a procedure to build binaries on rPi?

You're using an outdated Python version, we're 3.10+. For RPis, I'd recommend looking at the Docker images we provide. There's also an arm64 image.

OK, I try to look at the docker image but I don't understand how I can use it to tap the traffic.
Where can I find guidelines for building from scratch?

https://docs.mitmproxy.org/stable/overview-installation/#advanced-installation
The issue in your specific case is a Python version that's too old (mitmproxy_wireguard is not a dependency of mitmproxy anymore), and then potentially also an outdated glibc version.


FEATURE REQUEST: Hide All Accounts Option

Defective ToolKit Feature Name: Hide All Accounts option
Expected Behavior
Would like to be able to hide the All Accounts option in the left hand main panel. I personally never use it - I always view individual accounts.
Actual Behavior
Steps to Reproduce the Behavior

Export of Toolkit Settings (Bottom Left of Settings Page)
[paste settings here]

System Settings
ToolKit Version:
Operating System (Mac/Windows/Etc):
Browser (Chrome/Firefox/Safari):
Browser Version:
Other Extensions:

Hi, thanks for the suggestion. We store feature requests in trello. I moved it there.
https://trello.com/c/8PBLRTjD
Issue should be closed as I think.

Cool, I'll go ahead and close this issue so we can track progress on the Trello card. Thanks for the suggestion!


Start at Login : MonitorControlHelper keeps crashing

Every 10 seconds I get the following in my system log after selecting any option MonitorControl Preferences Keys Listen for  example below:
Oct 23 14:09:35 xxxxxx com.apple.xpc.launchd[1] (me.guillaumeb.MonitorControlHelper[2055]): Service exited with abnormal code: 1
Oct 23 14:09:35 xxxxxx com.apple.xpc.launchd[1] (me.guillaumeb.MonitorControlHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
...and thousands more of the lines above, etc..

Actually, I reported this wrong... It's not the Preferences/ Keys/ selections that cause the constant Mac system messages..It's when you've selected, Preferences/ General/ Start MonitorControl at Login option. Then the endless respawn messages begin, once I unchecked this, the Mac system log stopped the messages.

Same here, crashes after sleep/wake on multi monitor setup. I even used sleep watcher to kill it before sleep and start after wake, but 1 in 10 times it still crashes (detects only one monitor)..

This is probably fixed now.


Implement cursor inventory API

There is no way to clear the item that the player is holding on the cursor inv right now.
It needed it in my case (It isn't actually a dupe glitch like the video title).
The player was holding an item in cursor inv and paste it back to inv when kit reapplied (Items added).

Duplicate of #510


fix: Panic non-integer for the second argument of nth_value function

Which issue does this PR close?

Closes #12073
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thanks @Weijun-H  and @crepererum


Cup as VolumeUnit

Hi again!
I'm working on a food nutrition system and we need to be able to reference the volume unit of cup (see wiki def).
UnitsNet.Unit.VolumeUnit has Teaspoon and Tablespoon but no Cup.
I propose adding:

MetricCup (250mL)

I don't need US Cups for now but would be happy to add to help clarify the distinction. There are two(!) US cups. Their names might be

UsCustomaryCup
UsLegalCup

Would a PR for MetricCup be accepted?

Absolutely :-) sounds good.

#131 submitted


[FEEDSTOCK REQUEST] lightgbm [cpu/cuda]

Describe the package you'd like added
Add a recipe for LightGBM for cpu and cuda variants.
Describe how this package fits in with the project
LightGBM is a popular machine learning framework and would compliment XGBoost
Additional context
LightGBM added CUDA support with: https://github.com/microsoft/LightGBM/commit/f7ad945717d90a47f68dcac78ebc508a1fe00c40
The CI job was just set up with CUDA11:
https://github.com/microsoft/LightGBM/commit/12e220b79d459396ce74f60f260786ad67a8fbb9

This was closed by open-ce/LightGBM-feedstock#1


[BP-1.15][FLINK-28352][tests] Disable PulsarSourceUnorderedE2ECase, PulsarUnorderedPartitionSplitReaderTest and PulsarUnorderedSourceITCase

1.15 backport PR for parent PR https://github.com/apache/flink/pull/21478

Force-pushed an updated after a comment in the parent PR

I verified that the tests PulsarSourceUnorderedE2ECase, PulsarUnorderedPartitionSplitReaderTest and PulsarUnorderedSourceITCase didn't run comparing this PR's build with a recent 1.15 build


Heresy - modal key bindigs?

I like simple but highly effective things like zee. Despite my general dislike of modal interfaces, with text editing it's the opposite :wink:.
Therefore my heretical question - would you be willing to support modal key bindings?

A really awesome feature of spacemacs that Zee could adopt if modal editing becomes option is when you initialize spacemacs for the first time, it prompts the user to choose between evil mode keybindings (vi/modal) and holy mode (emacs). I am personally a fan of emacs keybindings, but being able to offer both is a nice feature and I really like how spacemacs handles the choice up front.

I am waiting the same feature (modal ediding).
Have been using holy mode for 7 years and switched to Doom modal editing.
Can't wait to apply Doom keybindings to Zee.


Time is cut off when tag and billable is on

using .208 version
##142135

Known issue and fixed in master with #1178 . Just not released yet.


📖 Brush up E2E READMEs

Summary
This PR updates the test/e2e/README.md to be a decent introduction to the whole topic of E2E testing, and trims the READMEs in the scenario subdirectories to focus on describing their scenario.
Related issue(s)
Fixes #

/cc @dumb0002
/cc @KPRoche
/cc @effi-ofer

@MikeSpreitzer, in addition to trim down description, IMO we should keep the examples of how to run the e2e tests for example:
a) Bash tests:
cd test/e2e
./run-test.sh

b) Ginkgo tests:
cd test/e2e
./run-test.sh --test-type ginkgo

@dumb0002: one of those two is not like the other. test/e2e/ginkgo/README.md describes how to run the ginkgo test suite WITHOUT using the generic test runner (as well as pointing to the doc on the generic test runner). For the bash scenario we have nothing analogous; test/e2e/bash/use-kubestellar.sh can ONLY be used from the generic runner; there is nothing to add to the description in test/e2e/README.md of how to run it.

/lgtm

/approve


Questions: How can I ensure that my workflow works perfectly?

Hi there, I would like to inquire about Tinkerbell provisioning questions, and here are the questions:

Should Tinkerbell have to install tink-cli to manage workflow, hardware, and monitor its events?
When I use ipxe.yml to reboot the target Arm server and start to provision, the target can enter the grub menu, but it cannot load the target OS (e.g., Ubuntu 20.04). I also checked the logs in each component of Tinkerbell, but they do not show any errors.  I have already collected the logs from tink-controller and tink-server, and they are shown below. By the way, I have installed vmlinuz-aarch64, initramfs-aarch64, initramfs-x86_64, and vmlinuz-x86_64. Also, the Ubuntu image has already been converted into raw.gz (focal-server-cloudimg-arm64.raw.gz/focal-server-cloudimg-amd64.raw.gz).
When I provision an x86 machine, we encountered PXE-99: Unexpected network error, and here are the full logs from the target server.

Expected Behaviour

The "Ubuntu 20.04" option is not appearing in the grub menu, and there are no errors shown in the log.
Current Behaviour

The grub menu did not show the "Ubuntu 20.04" option, and there were no errors shown in the log.
Possible Solution

Steps to Reproduce (for bugs)

deploy tinkerbell pods by helm stack
apply hardware.yml
apply template.yml
apply workflow.yml
apply ipxe.yml (which control BMC and set the ipxe booting mode)

Note: The workflow state always shows as "Pending."
Context

Your Environment

Operating System and version (e.g. Linux, Windows, MacOS):
Operating System: Linux (Ubuntu 20.04)

How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
Deploy by kubernets (helm) approach

tink-controller log:
|--------|
| {"level":"info","ts":1695707823.051005,"logger":"github.com/tinkerbell/tink","caller":"tink-controller/main.go:120","msg":"no config file found"}
{"level":"info","ts":1695707823.05112,"logger":"github.com/tinkerbell/tink","caller":"tink-controller/main.go:70","msg":"Starting controller version devel"}
{"level":"info","ts":1695707823.0534592,"logger":"github.com/tinkerbell/tink","caller":"manager/internal.go:360","msg":"Starting server","kind":"health probe","addr":"[::]:8081"}
{"level":"info","ts":1695707823.0535295,"logger":"github.com/tinkerbell/tink","caller":"manager/server.go:50","msg":"starting server","path":"/metrics","kind":"metrics","addr":"[::]:8080"}
{"level":"info","ts":1695707823.0536685,"logger":"github.com/tinkerbell/tink","caller":"controller/controller.go:177","msg":"Starting EventSource","controller":"workflow","controllerGroup":"tinkerbell.org","controllerKind":"Workflow","source":"kind source: *v1alpha1.Workflow"}
{"level":"info","ts":1695707823.0537043,"logger":"github.com/tinkerbell/tink","caller":"controller/controller.go:185","msg":"Starting Controller","controller":"workflow","controllerGroup":"tinkerbell.org","controllerKind":"Workflow"}
{"level":"info","ts":1695707823.1586273,"logger":"github.com/tinkerbell/tink","caller":"controller/controller.go:219","msg":"Starting workers","controller":"workflow","controllerGroup":"tinkerbell.org","controllerKind":"Workflow","worker count":1}
{"level":"info","ts":1695707823.1588185,"logger":"github.com/tinkerbell/tink","caller":"workflow/reconciler.go:38","msg":"Reconciling","controller":"workflow","controllerGroup":"tinkerbell.org","controllerKind":"Workflow","Workflow":{"name":"smc-arm-workflow","namespace":"tink-system"},"namespace":"tink-system","name":"smc-arm-workflow","reconcileID":"acc48843-fff4-436f-b5d4-1239aea0a2d6"}|
tink-server log:
|--------|
| {"level":"info","ts":1695707823.8072968,"logger":"github.com/tinkerbell/tink","caller":"tink-server/main.go:178","msg":"No config file found"}
{"level":"info","ts":1695707823.8073664,"logger":"github.com/tinkerbell/tink","caller":"tink-server/main.go:96","msg":"Starting version devel"}
{"level":"info","ts":1695707823.8500073,"logger":"github.com/tinkerbell/tink","caller":"tink-server/main.go:137","msg":"started listener","address":"[::]:42113"}
{"level":"info","ts":1695707823.8501341,"logger":"github.com/tinkerbell/tink","caller":"httpserver/http_server.go:31","msg":"serving http"} |

Hey @howard-yeh, apologies for the delayed response.
1. Should Tinkerbell have to install tink-cli to manage workflow, hardware, and monitor its events?
There is not tink-cli. You can use kubectl to manage hardware, templates, and workflows.  Workflow events can be seen on the workflow object and via Boots/Smee and Tink controller.
Would you mind sharing the Boots/Smee logs? and any screen shots from the machines console?

Hi @jacobweinstock, thanks for reply this issue.
After reviewing the code and logs, I discovered that my tinkerbell-client was unable to pull down the tink-worker image via Docker. The root cause was due to being in an air-gap environment, where connections to the public network are not allowed. As a workaround, I manually modified the /etc/hosts file using 'docker-shell'.
The related issue reference: https://github.com/tinkerbell/sandbox/issues/178


Cherry-pick e2e run changers on release 0.3

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Cherry-pick e2e run changers on release 0.3.
#894
#879
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

/lgtm
/approve


Feature request: Disable built in oregen

I'd like the ability to restrict oregen and use another method to generate it, a setting that allows oregen to be disabled would be appreciated.

This option is now available on the VS_World sub-module config file


*: remove dependency of module github.com/pingcap/tidb

What problem does this PR solve?

Issue Number: close #708
Problem Summary:
github.com/pingcap/tidb depends on too many packages, which frequently causes dependency conflicts.
What is changed and how it works:
Remove all dependencies of github.com/pingcap/tidb.
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Notable changes

[ ] Has configuration change
[ ] Has HTTP API interfaces change
[ ] Has tiproxyctl change
[ ] Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Codecov Report
Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@abcf70a). Learn more about missing BASE report.

Files with missing lines
Patch %
Lines

pkg/proxy/net/compress.go
0.00%
2 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #709   +/-   ##
=======================================
  Coverage        ?   66.11%
=======================================
  Files           ?      122
  Lines           ?    11173
  Branches        ?        0
=======================================
  Hits            ?     7387
  Misses          ?     3252
  Partials        ?      534

Flag
Coverage Δ

unit
66.11% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Feature request - Annotation option

JSDoc seems to have two primary options:  Api docs and tutorials
Why not add a third - annotations
Annotations in code are normally accomplished by standard codings comments
However, there are examples of cleaner annotations that are separate from the code, for example Docco which powers Underscore/Backbone docs.
Right now I want to annotate some code, but I am finding it hard to do with JSDoc

This is pretty far outside of the scope of JSDoc, which is designed to support Javadoc-style API documentation, not literate programming-style annotations like Docco. If you want something like Docco, I recommend using a different tool than JSDoc.


WIP: customizable filters

This is a start of the idea I suggested in https://github.com/bkeepers/github-notifications/pull/130 to allow the filters to be customizable. For now this would only filter by notification reason, but eventually we could add type (Issue, PR, Commit, Release), specific repositories, any repository attribute, or really anything we can imagine.

TODO

[ ] edit existing filters
[ ] figure out persistence (local storage or implement a permanent storage API?)
[ ] cherry pick commits that are not directly related to this feature into master to reduce the size of the diff

/cc @cobyism https://github.com/bkeepers/github-notifications/pull/130

Any change to revive this PR ?

I'm no longer working on this project. I recommend http://octobox.githubapp.com/ to anyone looking for a replacement.


Table Designer Error - "An error occurred while initializing the table designer: Object reference not set to an instance of an object"

Hi there
I am for some reason unable to use the Table Designer, as keep getting an "An error occurred while initializing the table designer: Object reference not set to an instance of an object" error.
Full error details:
at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable)
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.CreateTableDesigner(TableInfo tableInfo) in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 1545
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass13_0.<b__0>d.MoveNext() in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 87
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass12_0`1.<b__0>d.MoveNext() in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 73
This seems to be happening regardless of whether I try and create a new table or edit an existing table using the Table Designer.
Version Info:
Version: 1.39.1 (user setup)
Commit: 7553f799e175f471b7590302dd65c997b838b29b
Date: 2022-08-30T01:11:13.047Z
VS Code: 1.62.0
Electron: 13.6.6
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19044
Apologies in advance if this has been raised already - I couldn't find any duplicates when searching.
Many thanks

@caohai could you please follow up on this issue?
@MrHippo85 do you happen to have azure data studio insider build installed? please give it a try and see whether you are still seeing the same problem, it can be installed from here: https://github.com/microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-main

@alanrenmsft Sure.
@MrHippo85 Can you share the sql server version you are using? Can you also try table designer on a different sql server and see if you still have this issue?

Hi there @alanrenmsft / @caohai!
Thanks for getting back to me.
The SQL server version I am using is 12.0.2000.8. I have tried replicating the issue on ADS Insider and the same error message is displayed unfortunately.
I have also tried to use the Table Designer in an Azure Synapse server instance, but again, get the same message.
Many thanks for your assistance thus far - this would be a massive help if I can get this working, as it would avoid swapping between ADS and SSMS!
Cheers

@MrHippo85 is it an Azure SQL DB? what is the pricing tier of the database? please let us know all the information about the database (without personal/sensitive information) so that we can reproduce the issue.

@alanrenmsft I setup a Debian machine and did a quick test with my Azure SQL Server and couldn't repro.

@caohai Debian is for a different issue with query results exporting not with this issue.

@caohai Debian is for a different issue with query results exporting not with this issue.

oops, mixed the two issues.....

also I just tried table designer with Azure Synapse, I was able to open table designer successfully. what is the spec for your Azure Synapse database?
note that there is an issue with publishing changes for non-master databases: https://github.com/microsoft/azuredatastudio/issues/20839

Hi there @alanrenmsft.
Thanks again for getting back to me.
Unfortunately, I am unable to provide the information requested, as I am using ADS within a corporate environment and do not have the required permissions to access the billing information nor spec of the databases we use in any detail. I am aware that we are on an Enterprise Agreement if this helps. I appreciate this is not very helpful!
I have had one of my colleagues try the same process and he has been able to access the Table Designer; however it took a very long time to load. I have noticed that when I try and open the Table Designer twice, the first time I get the error message I have mentioned, but the second time, I just get a "loading designer" spinning wheel. Nothing happens.
Is this a known issue? I am sure I have seen this elsewhere!
Cheers

@caohai could you please follow up?

As for the long loading time, there's one setting you can try out:

I use a fairly low end Azure SQL Server for testing and haven't seen a similar issue...
For the error happening during opening the Table Designer twice, we have a fix related to initialization that might help. This fix should be merged into main today and you can either test with tomorrow's insider build or wait for this month's release.

Did you get a chance to try out the new version?

Hi there,
I couldn‘t to use the Table Designer either.

Full error details:
at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, Int32 largeTableRowCount)
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.CreateTableDesigner(TableInfo tableInfo) in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 1800
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass18_0.<<HandleInitializeTableDesignerRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 99
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass17_0`1.<<HandleRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 85

Version Info:

Version: 1.41.1
Commit: 33dce95b152227c4f10f6251ab30690fe9895c0c
Date: 2023-01-28T00:47:32.573Z
VS Code: 1.67.0
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.3.0

SQL Server Info:

Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64)   Aug 22 2017 17:04:49   Copyright (C) 2017 Microsoft Corporation  Express Edition (64-bit) on Windows Server 2019 Datacenter 10.0  (Build 17763: ) (Hypervisor)

at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, Int32 largeTableRowCount)
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.CreateTableDesigner(TableInfo tableInfo) in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 1807
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass18_0.<<HandleInitializeTableDesignerRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 101
--- End of stack trace from previous location ---
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass17_0`1.<<HandleRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 87

I also encounter the same problem, after checking, it seems that Azure Data Studio failed to initialize the TableDesigner class.
Error Started: https://github.com/microsoft/sqltoolsservice/blob/e63f571a7b4d0b86cc84edbf10a930cd1602cd46/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs#L1807 Error Ended: https://github.com/microsoft/sqltoolsservice/blob/e63f571a7b4d0b86cc84edbf10a930cd1602cd46/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs#L87
According to first line: at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, Int32 largeTableRowCount)
It seems that Int32 largeTableRowCount is not needed for the initilization.
It would be very helpful, if anyone could find the solution.

@Tao4free Is table designer loading failing consistently for you? Can you also share the version info? largeTableRowCount used to be an optional variable but we made some changes recently and it's no longer used.

I have some useful testing on this. I tried the table designer on a database with several hundred tables. It took several minutes to load, but finally succeeded. It then took a very long time to save a new table. Succeeded, but several minutes is obviously unexpected. I then tried on another database (same server) with only 5 tables. The table designer loaded instantly. Developers, I suggest investigating if the issue might be related to number of tables or indexes, or possibly database size. It might be that the table designer function is collecting too much data, or collecting data inefficiently. Tested with on-site SQL Server 2019 with all currently available CU.

@sivan-koren Several minutes sounds a bit too long, I previously did some testing with a local db that has >1k tables (with fairly simple schema) and the publish time is ~10s. I'm wondering if the db you are having issue with has any specific objects causing this issue. It would be great if we can have a minimal reproducible example for it,

at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, Int32 largeTableRowCount)
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.CreateTableDesigner(TableInfo tableInfo) in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 1807
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass18_0.<<HandleInitializeTableDesignerRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 101
--- End of stack trace from previous location ---
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass17_0`1.<<HandleRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 87

I also encounter the same problem, after checking, it seems that Azure Data Studio failed to initialize the TableDesigner class.
Error Started: https://github.com/microsoft/sqltoolsservice/blob/e63f571a7b4d0b86cc84edbf10a930cd1602cd46/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs#L1807 Error Ended: https://github.com/microsoft/sqltoolsservice/blob/e63f571a7b4d0b86cc84edbf10a930cd1602cd46/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs#L87
According to first line: at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, Int32 largeTableRowCount)
It seems that Int32 largeTableRowCount is not needed for the initilization.
It would be very helpful, if anyone could find the solution.

@Tao4free Is table designer loading failing consistently for you? Can you also share the version info? largeTableRowCount used to be an optional variable but we made some changes recently and it's no longer used.

@caohai
Thanks for the confirm.
It still happens.
The version is latest one: 1.44.1
Error message here:
at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, TableDesignerOptions options)
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.CreateTableDesigner(TableInfo tableInfo) in /_/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs:line 1808
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass18_0.<<HandleInitializeTableDesignerRequest>b__0>d.MoveNext() in /_/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs:line 102
--- End of stack trace from previous location ---
   at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass17_0`1.<<HandleRequest>b__0>d.MoveNext() in /_/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerService.cs:line 88

@sivan-koren @Tao4free @ArrNNG is it possible for you guys to provide us the script to create a database that could reproduce the issue? please make sure to remove any sensitive information from the script.

@alanrenmsft I can't share this database as it would take many months to scrub identifying information from the table and column names.
But I can offer some further findings that may be interesting, as I did script the creation of this db in various ways.

If indexes are not included, the table designer loads in ~5 seconds.
If indexes ARE included, the table designer loads in ~45 seconds.

I did not try scripting with the data.
Also, possibly interesting, on this database, some objects couldn't be recreated after scripting due to dependencies.

I also am experiencing this same error

Azure Data Studio version = 1.44.1
Database Connection to Managed Azure SQL Server DB
Trace:
` at Microsoft.Data.Tools.Sql.DesignServices.TableDesigner.TableDesigner..ctor(String connectionString, String accessToken, String schemaName, String tableName, Boolean isNewTable, Int32 largeTableRowCount)
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.CreateTableDesigner(TableInfo tableInfo) in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 1807
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass18_0.<b__0>d.MoveNext() in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 101
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.TableDesigner.TableDesignerService.<>c__DisplayClass17_01.<<HandleRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\TableDesigner\TableDesignerService.cs:line 87

I also had the error "An error occured while initializing the table designer: Failed to initialize the table model." with the exact same Stack Trace.
The solution for me was that I didn't have sufficient permission to create a new table.
I only had db_datareader and db_datawriter but needed db_owner. After that, the error message disappeared and everything worked as expected.

Here is another test what I did. I created an identical database my local machine and tried. It worked on the local but still fails to the one deployed in azure.

Any updates on this issue? I'm using v1.47.1 and can create and drop tables, but continue to get the  "Failed to initialize the table model" error.

@kisantia  @cheenamalhotra  FYI.


CTRL-X and other escape chars for RomWBW

RomWBW makes extensive use of escape characters. At the least CTRL-X is needed to cancel qterm transfers. CTRL-C and CTRL-Y are already mapped to dedicated keys. There is one more F* Key open at the least for CTRL-X.
Perhaps, if a loop can be triggered by a press of a special key, the next character key would be an escape key. This would require translating the key value and setting/removing a flag during that cycle of keypress.
Alternately, removing the plain text macros on the function keys might free up enough keys for all the necessary escape chars.
ToDo: See exactly which / how many escape characters need to be added.

Solved with https://github.com/Alex-Kw/c64-rc2014-Keyboard/commit/6516ef6d9c655a9ef505f7984be4167a6060d00f
Commodore key now acts as CTRL for escape characters.


Peggy vs PEG.js

What are the differences between Peggy and PEG.js? I wanted to look at PEG.js Codemirror grammar file and maybe migrate it to Peggy. Since it's hard to edit Peggy grammar with PEG.js syntax highlighting in Codemirror.

The full list o changes is https://github.com/peggyjs/peggy/compare/Renaissance...main.
The count of functional changes in grammar not so big and listed in https://github.com/peggyjs/peggy/blob/main/CHANGELOG.md, namely:

#73: Added global initializer blocks, which contain code that is only run once
when the grammar is loaded, rather than once every time the parser runs.
Global initializers are surrounded by {{ and }}, and must come before
the per-parser initializer, which is surrounded by { and }.
#89: Back-ported value plucking with @ from pegjs head.  If your rule has a simple action that returns one or more of the values matched by the rule, you can instead mark those expressions with @ and not need an action.  This works inside of parens as well.

Thanks, I think that there is a lot more to even PEG.js that is not implemented in Codemirror grammar that is very simple. My language is all messed up in the editor.

If you mean this artifact then it seems that $ symbols confuse a highlighter:

Thanks, will investigate, maybe issue is with JavaScript mode.

Is this syntax different in Peggy:
extra_commands = _ method:adapter_asterisk_strings SPACE expr:command_argument SPACE args:(
    ("," _ expression)+ / '' {
        if (expr.type !== 'SpreadElement') {
            error('Command ' + method+ ' require at least two arguments`);
        }
    }) _ {
    if (args) {
        args = args.map(x => x[2]);
    }
    return  {
        "type": "AwaitExpression",
        "argument": gaiman_call(map_extra_method(method), expr, ...(args || []))
    };
}

It's not highlighted properly unless I delete the first JS code.

Aren't you missing at least one ) in there?  It'd be easier to see if you split args into a separate rule.

Is it the backtick
' require at least two arguments`

vs the single quote
' require at least two arguments'

I think this was solved.


insertionsort

Hi Dear @Kunalmehta99
Great code
Thanks for your contribution......
Show your support on my youtube channel web Pixar(The institute of coding)
like , share , subscribe
youtube - https://youtu.be/5qnQjgdpFPg
telegram-channel - https://t.me/WebPixar
join our telegram channel for more goodies , swag packs


Automate Releases

The manual method:

When a developer writes code, the developer has to ensure that he/she has used resource_path() util for loading the assets, be it of any type.
Run pyinstaller.exe .\main.spec --onefile --noconsole
After the execution of the above command a main.exe file will be generated at ./dist directory, which has to be taken and be uploaded manually to the release as a binary.
Then a new tag is created for the release in which the format is Major.minor.patch

@Mayank0255 I can take a stab at this.
I don't think CI can help with first point, that'll have to be taken care by developer. But all the others are easy to do.
But before that I think we should add setup.py to the project. It'll give us two benefits:

A proper place to write down version number in
Allow the project to be published on pypi

I'm thinking of following flow:
We will have a release branch. whenever this branch gets updated, CI will check setup.py for version. If version has not been updated, CI will fail. Otherwise it'll go ahead and build main.exe and make a release tag on github (adding Changelog from newer PRs).
So generally everyone will merge into master and occasionally master will get merged into release

@nkitsaini
Sorry for the late reply, I got busy with work.
Nice idea. I think the second flow is better as in the first flow the problem would be to keep on changing the version in the code itself, which is slightly harder to maintain.
Should I assign it to you then?

@Mayank0255
Makes sense. Yeah, you can assign to me.


fix: update scorecard version to fix invalid key error

Pushed image from this set of changes: https://github.com/testifysec/witness/pkgs/container/witness/103619933?tag=0.1.13-ci-test


Invalid CI link found in contributing.rst file

@pekkaklarck I am unable to reach the CI link found here.
Is this a private CI?

See also https://github.com/robotframework/robotframework/pull/2676.


feat(affinity): support affinity

Signed-off-by: cndoit18<EMAIL_ADDRESS>

@cndoit18 maybe we need this feat for helm:  https://github.com/helm/community/pull/256

Hello, is this PR ready to review ?


Switch to a Discord.py fork

Description

Consider switching to a discord.py fork, such as nextcord, which will be maintained for the foreseeable future.
Reasoning

We won't miss out on new features of discords API, and therell be more support in the long term.
Proposed Implementation

Switch to nextcord. It's more or less a drop in replacement. Switch up a few imports and we're good.
Would you like to implement this yourself?

[x] I'd like to implement this feature myself
[ ] Anyone can implement this feature

There's no reason to switch this early.
See https://canary.discord.com/channels/267624335836053506/635950537262759947/881484956495392768 for a statement from Zig.
Also that fork in particular is not the best, IMO.
Good summary here:

I don't think we should switch to a fork unless we absolutely need to. dpy 2.0 seems to be doing well atm.

I've only found a few bugs anyhow, neither of which should affect pydis
right now.

If this is considered, it will be done in the future. For now, there is no need to switch.
Thanks for bringing this up.


[Swift] Fix crash when using optional Int16/Int32/Int64 properties

Fixes #2681. /cc @bdash @tgoyne

Feedback addressed.

It'd be great if in the future commit messages contained a high-level explanation of how the changes achieve what they are doing, and why they're necessary. It'd make reviewing much easier.

It'd be great if in the future commit messages contained a high-level explanation of how the changes achieve what they are doing, and why they're necessary. It'd make reviewing much easier.

Duly noted. I'll make more of an effort on that in the future. Anything in particular that you'd like clarified here for now? Otherwise, any further feedback?

A few different questions:

Why was the old code crashing?
In what manner was it crashing? Was it throwing an exception, hitting an assertion failure, segfaulting, etc?
What is the new code doing differently that addresses the problem?

Why was the old code crashing?

RealmOptional expects to be specialized with a type that's implicitly convertible to AnyObject, which works for Int but not its explicitly-sized variants.
Int(0) as AnyObject    // => 0
Int16(0) as? AnyObject // => nil
Int32(0) as? AnyObject // => nil
Int64(0) as? AnyObject // => nil

In what manner was it crashing? Was it throwing an exception, hitting an assertion failure, segfaulting, etc?

It was triggering a Swift force-cast failure at runtime, because the value couldn't be force-casted to AnyObject.

What is the new code doing differently that addresses the problem?

The new code is explicitly checking for the types which we know aren't force-castable to AnyObject in the setters and getters, and converting to a type that can be casted to AnyObject (in this case NSNumber).

Filed as rdar://23172237.

Thanks for the details, @jpsim. That makes the change much easier to follow.
A protocol-based approach could keep RealmObjects semantics from being obscured by the type conversions. Something like:
diff --git a/RealmSwift-swift2.0/Optional.swift b/RealmSwift-swift2.0/Optional.swift
index 8bf76ea..67291f3 100644
--- a/RealmSwift-swift2.0/Optional.swift
+++ b/RealmSwift-swift2.0/Optional.swift
@@ -18,8 +18,14 @@

 import Realm

+public protocol RealmOptionalTypeConversionsToAnyObject {
+    func asObject() -> AnyObject
+    static func fromObject(_: AnyObject?) -> Self?
+}
+
 /// Types that can be represented in a `RealmOptional`.
-public protocol RealmOptionalType {}
+public protocol RealmOptionalType: RealmOptionalTypeConversionsToAnyObject {}
+
 extension Int: RealmOptionalType {}
 extension Int16: RealmOptionalType {}
 extension Int32: RealmOptionalType {}
@@ -39,29 +45,10 @@ public final class RealmOptional<T: RealmOptionalType>: RLMOptionalBase {
     /// The value this optional represents.
     public var value: T? {
         get {
-            if T.self is Int16.Type {
-                return ((underlyingValue as! NSNumber?)?.longValue).map { Int16($0) } as! T?
-            } else if T.self is Int32.Type {
-                return ((underlyingValue as! NSNumber?)?.longValue).map { Int32($0) } as! T?
-            } else if T.self is Int64.Type {
-                return ((underlyingValue as! NSNumber?)?.longLongValue).map { Int64($0) } as! T?
-            }
-            return underlyingValue as! T?
+            return T.fromObject(underlyingValue)
         }
         set {
-            guard let unwrappedValue = newValue else {
-                underlyingValue = nil
-                return
-            }
-            if let int64Value = unwrappedValue as? Int64 {
-                underlyingValue = NSNumber(longLong: int64Value)
-            } else if let int32Value = unwrappedValue as? Int32 {
-                underlyingValue = NSNumber(long: Int(int32Value))
-            } else if let int16Value = unwrappedValue as? Int16 {
-                underlyingValue = NSNumber(long: Int(int16Value))
-            } else {
-                underlyingValue = unwrappedValue as! AnyObject
-            }
+            underlyingValue = newValue.map { $0.asObject() }
         }
     }

@@ -75,3 +62,23 @@ public final class RealmOptional<T: RealmOptionalType>: RLMOptionalBase {
         self.value = value
     }
 }
+
+public extension RealmOptionalTypeConversionsToAnyObject {
+    func asObject() -> AnyObject { return self as! AnyObject }
+    static func fromObject(object: AnyObject?) -> Self? { return object as! Self? }
+}
+
+extension Int16: RealmOptionalTypeConversionsToAnyObject {
+    public func asObject() -> AnyObject { return NSNumber(long: Int(self)) }
+    public static func fromObject(object: AnyObject?) -> Int16? { return object.map { Int16($0.longValue) } }
+}
+
+extension Int32: RealmOptionalTypeConversionsToAnyObject {
+    public func asObject() -> AnyObject { return NSNumber(long: Int(self)) }
+    public static func fromObject(object: AnyObject?) -> Int32? { return object.map { Int32($0.longValue) } }
+}
+
+extension Int64: RealmOptionalTypeConversionsToAnyObject {
+    public func asObject() -> AnyObject { return NSNumber(long: Int(self)) }
+    public static func fromObject(object: AnyObject?) -> Int64? { return object.map { Int64($0.longValue) } }
+}

It's more code, but a little more self-documenting. Thoughts?

I'd really rather not do that because that's really an implementation detail, but because RealmOptionalType is a public protocol, it would have to leak those details. We can prevent HTML documentation from being generated, but you get the idea that this really expands the scope. We then can't use our SwiftObjectWithNonRealmOptionalType test class because we can't provide public declarations of a generic type from a different module....
If your concern is with better documenting what this code is doing and why it's needed, I think we'd be better off making explicit, documented, private functions for realmOptionalToAnyObject(_:) and anyObjectToRealmOptional(_:).

Hopefully that made things clearer.

I see what you mean with regards to commingling implementation details with the public protocol. Your change achieves the same improvement in clarity without that downside. :+1: