Mantra architecture

Hi Chef, I was wondering if you are planning to use Mantra architecture and if so, what would be the difference between base and https://github.com/mantrajs/meteor-mantra-kickstarter
I'm currently using base but the loggin is a bit buggy sometimes, so I thought it might be a good idea to check the meteor guide in regards to user accounts http://guide.meteor.com/accounts.html
Any thoughts about this two options?

I haven't looked into Mantra too much yet but no immediate plans to move to anything.
Re: login being buggy, is there something specific that's not working? If there is, can you file an issue for me with details on what isn't working? Will take a look at the guide to see how I can improve :)

I see,
In regards to login being buggy, when I'm logged out in localhost but logged in in my meteor free server, when I visit my meteor version again, the login form appears instead of the default view.
Another thing that happens is that when a user accepts an invitation, for few seconds the warning that the invite has been cancelled appears and then the form to provide the password.
Lastly, sometimes when I've been developing with the console active, I've noticed a message related to a group variable not being recognized or something similar, if I see it again, I'll post the message.
Other than that everything is working well and thank you for your answer.

In regards to login being buggy, when I'm logged out in localhost but logged in in my meteor free server, when I visit my meteor version again, the login form appears instead of the default view.

If I understand correctly this is expected. If you login and then leave the app, after some time you'll be required to login again. Following the recommended authentication pattern from Flow Router, instead of getting sent to /login, you will simply be shown the login template at whatever path you attempted to access (e.g., if you tried to go to /dashboard, you'd see the login form at that URL until you logged in).
See my thoughts/conversation on this with the author of Flow Router.

Another thing that happens is that when a user accepts an invitation, for few seconds the warning that the invite has been cancelled appears and then the form to provide the password.

There isn't a feature for handling invitations built into Base (however a recipe has been written about this using Base). Is the problem with the code from that recipe?

Lastly, sometimes when I've been developing with the console active, I've noticed a message related to a group variable not being recognized or something similar, if I see it again, I'll post the message.

Sounds good. If/when you see it again, please file an issue for me :)

I see thanks for the information. About the invitations you right, I added the code from that recipe.
And this is the error that I get sometimes:

The code is:
FlowRouter.notFound = {
  action() {
    BlazeLayout.render('default', {yield: 'notFound'});
  }
};

Accounts.onLogin(() => {
  let currentRoute = FlowRouter.current();
  if (currentRoute && currentRoute.route.group.name === 'public') {
    Modules.both.redirectUser();
  }
});

if (Meteor.isClient) {
  Tracker.autorun(() => {
    if (!Meteor.userId() && FlowRouter.current().route) {
      FlowRouter.go('login');
    }
  });
}

@lobosan going to close this out here, can you open an issue on the recipe repo for me?

Sure no problem


Visual Glitches in the header in connection with Material UI Tooltip (chrome)

material-react-table version
1.14.0
react & react-dom versions
18.2.0
Describe the bug and the steps to reproduce it
If I use mui Tooltips in the Table Cells as in the example I get the following visual bug (at least in Chrome, not Firefox).

Hover over a table cell so that the tooltip appears. (Preferably near top or bottom of table)
Scroll around via MouseWheel
Sometimes the header of the table will move up or down quickly before returning to its original location.

Minimal, Reproducible Example - (Optional, but Recommended)
https://stackblitz.com/edit/github-hfhl2t?file=src%2FTS.tsx
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
No, because I do not have time to dig into it
Terms

[X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Cannot reproduce anymore. Seems to have been resolved.


Remove link following in minimize_access file resource

This patch resolves Issue: https://github.com/hardening-io/puppet-os-hardening/issues/60
From this page, Ubuntu containing the symlink /usr/bin/X11 -> . is by design:
http://askubuntu.com/questions/191654/why-are-there-infinitely-many-x11-subdirectories-in-usr-bin-x11
This patch removes links => follow to prevent recursing down links.   The caller defines the directories to apply the File resource to, so defining the scope.  Any files lying in directories outside this scope should not be touched, covering symlink targets outside.

Bump!

Boop!

What can we do to get this PR to the next step? I'll take any feedback please.

No feedback?

Sorry, I'm going to take a look this week.

I think removing "follow links" is a viable option. Most symlinks in the bin-directories link to binaries in other bin-directories. There are of course symlinks that lie outside a bin-directory, e.g. virtualbox-binaries or systemd-links. These should be handled by the user (maybe we should add an info to the readme, stating that binaries otuside the usual bin-directories should be handled by the user).
However I think these do not justify breaking this task, so I think we should merge this change. @chris-rock, @arlimus what do you think?

+1 will merge this evening if noone disagrees.

@tuxmea is it possible for this be merged?


Template should include the Play Services dependency

I'm mentioning this because adding Play Services dependency to the app module causes an error.
dependencies {
    // App's dependencies, including test
    compile('com.google.android.gms:play-services-base:7.5.0')
...

Reported error:
:module-flavor1-androidTest-only:processDebugManifest
/somewhere/android-testing-templates/AndroidTestingBlueprint/module-flavor1-androidTest-only/build/intermediates/manifests/full/debug/AndroidManifest.xml:29:28-65 : No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

If there is a better place to report this issue please direct me to it.

It would be a bug in the build tools so please file it in b.android.com
Ideally, you can fork this project, add the lines that make it fail and add it to the bug report. That would make understanding the bug much easier. Thanks!

Submited the issue with the fork: https://code.google.com/p/android/issues/detail?id=182814&thanks=182814&ts=1439538894

Thanks! We will follow up on android bugtracker


Allow for multiple IFunctionMetadataProvider implementations

Overview
To enable functions being exposed from referenced assemblies - via the source generator or otherwise - we should expand the IFunctionMetadataProvider contract to allow for multiple implementations. Right now, it is assumed only one of them is registered to DI, limiting the ability to provide additional function metadata.
Use Cases
Functions from multiple projects
Customers may structure their application with functions split between multiple projects. These assemblies may have their own IFunctionMetadataProvider (from code-gen or otherwise) which needs to be registered in addition to the current projects generated provider. Supporting multiple providers will enable this use case.
Functions from extensions
Some extensions may want to expose function metadata definitions in their own way. For example, to support class-based orchestrators and activities in Durable Functions, the extension could provide functions metadata which all point to the same implementation which shims to the target class to invoke.
Concerns
We have an effective overlap between DefaultFunctionMetadataProvider and GeneratedFunctionMetadataProvider, where only one or the other wants to be registered. Today, this overlap is resolved by simply not registering the default provider if another registration exists: https://github.com/Azure/azure-functions-dotnet-worker/blob/9c3380d36af1ed79040707f62cdf2141410c53de/src/DotNetWorker.Grpc/GrpcServiceCollectionExtensions.cs#L55 This approach will no longer suffice with this extensibility point as not all providers will be a replacement of the default provider, but in addition to it (both use cases above). We will need to devise a way to enable/disable the registration of the default provider separately from a provider already existing.

We stumbled over this issue while looking into a problem we are facing. We are generating a function that gets triggered with a service bus trigger with a generator. Unfortunately, the order of source generator invocations is not deterministic and we are running after the function metadata provider source generator, which causes our function to not be recognized and added to the DirectFunctionExecutor internal dictionary.
Is there are reason the whole metadata gathering is not more composable? For example, why not allow registering multiple providers that are then aggregated by the host automatically to populate the metadata dictionary?

@fabiocav @jviau I have added a spike draft PR for discussion https://github.com/Azure/azure-functions-dotnet-worker/pull/2183#pullrequestreview-1810109597.

Quick question: Is it possible to execute functions when only the metadata is know when the source gened function executor is in use?


Fix nginx port definition in docker-compose.yml

If DD_PORT is set, it overwrites not only the published port but also the target port, which is wrong because nginx always listens on port 8080 inside the container. The same is true for port 8443 with TLS enabled.
This pull request also adds the variable DD_TLS_PORT (by default 8443) that allows setting the port for HTTPS to a different value than the port for HTTP.
When submitting a pull request, please make sure you have completed the following checklist:

[x] Give a meaningful name to your PR, as it may end up being used in the release notes.
[x] Your code is flake8 compliant.
[x] Your code is python 3.6 compliant (specific python >3.6 syntax is currently not accepted).
[ ] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
[ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
[ ] Add applicable tests to the unit tests.
[ ] Add the proper label to categorize your PR.

probably replaces #3004

Duplicates #3004 somewhat, the latter going the extra step to keep the flexibilty.

Or maybe #3004 is wrong and this one is simpler and would also make it work. Re-opened and will close #3004.

I forgot to update docker-compose.override.https.yml as well, I think changing
    ports:
      - target: ${DD_PORT:-8443}
        published: ${DD_PORT:-8443}
        protocol: tcp
        mode: host

to
    ports:
      - target: 8443
        published: ${DD_TLS_PORT:-8443}
        protocol: tcp
        mode: host

should do the job.
What's the usual approach in such a case, edit this pull request or create a new one?

you can't edit this one :-)

Okay, I never tried and was confused by the “Revert” button, but now I saw that it just creates a new pull request. Then a new one it is. :)


[Bug]Import-Module in VS17 produces "Parameter Not Found" error in 1.0.26

Environmental information
Name                           Value
----                           -----
PSVersion                      5.1.18362.145
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.145
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

dbatools Module version:
Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.26\dbatools.psd1
Version : 1.0.26
Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.20\dbatools.psd1
Version : 1.0.20

# Replace with output of Get-Culture

SQL Server:

Microsoft SQL Server 2014 (SP3-CU2) (KB4482960) - 12.0.6214.1 (X64)   Feb  2 2019 01:10:18   Copyright (c) Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: )

us_english

Report
Host used

[ ] powershell.exe

[ ] ISE

[ ] VS Code

[x] Other (please specify)
Visual Studio 2017 Community
If anything other than powershell.exe was used, please confirm that you can duplicate the issue with powershell.exe

[ ] Still buggy in powershell.exe

Errors Received

writeErrorStream      : True
PSMessageDetails      :
Exception             : System.Management.Automation.PSInvalidOperationException: The
                        module to process 'dbatools.psm1', listed in field
                        'ModuleToProcess/RootModule' of module manifest 'C:\Program
                        Files\WindowsPowerShell\Modules\dbatools\1.0.26\dbatools.psd1'
                        was not processed because no valid module was found in any
                        module directory. ---> System.IO.FileNotFoundException: The
                        module to process 'dbatools.psm1', listed in field
                        'ModuleToProcess/RootModule' of module manifest 'C:\Program
                        Files\WindowsPowerShell\Modules\dbatools\1.0.26\dbatools.psd1'
                        was not processed because no valid module was found in any
                        module directory.
                           --- End of inner exception stack trace ---
                           at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleMa
                        nifest(String moduleManifestPath, ExternalScriptInfo
                        manifestScriptInfo, Hashtable data, Hashtable localizedData,
                        ManifestProcessingFlags manifestProcessingFlags, Version
                        minimumVersion, Version maximumVersion, Version requiredVersion,
                        Nullable`1 requiredModuleGuid, ImportModuleOptions& options,
                        Boolean& containedErrors)
                           at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(P
                        SModuleInfo parentModule, String fileName, String moduleBase,
                        String prefix, SessionState ss, Object privateData,
                        ImportModuleOptions& options, ManifestProcessingFlags
                        manifestProcessingFlags, Boolean& found, Boolean&
                        moduleFileFound)
                           at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingExt
                        ensions(PSModuleInfo parentModule, String moduleName, String
                        fileBaseName, String extension, String moduleBase, String
                        prefix, SessionState ss, ImportModuleOptions options,
                        ManifestProcessingFlags manifestProcessingFlags, Boolean& found,
                        Boolean& moduleFileFound)
                           at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingMul
                        tiVersionModuleBase(String moduleBase, ImportModuleOptions
                        importModuleOptions, Boolean& found)
                           at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingMod
                        ulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1
                        modulePath, String name, SessionState ss, ImportModuleOptions
                        options, ManifestProcessingFlags manifestProcessingFlags,
                        PSModuleInfo& module)
                           at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportMod
                        ule_LocallyViaName(ImportModuleOptions importModuleOptions,
                        String name)
TargetObject          : dbatools
CategoryInfo          : ResourceUnavailable: (dbatools:String) [Import-Module],
                        PSInvalidOperationException
FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportMo
                        duleCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at Patch-Cluster<Begin>, C:\Users\c952142\OneDrive -
                        Exelon\TFS\xdnu001782\SQL Cluster Patch Automation\SQL Cluster
                        Patch Automation\Patch-Cluster.ps1: line 58
                        at <ScriptBlock>, C:\Users\c952142\OneDrive -
                        Exelon\TFS\xdnu001782\SQL Cluster Patch Automation\SQL Cluster
                        Patch Automation\Patch-Cluster.ps1: line 450
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}

Steps to Reproduce

Running a debug session in VS17 Community with the PowerShell Tools for Visual Studio installed, ran a script that had just completed initializing (created a log file, wrote a few messages). The Import-Module command produces a few errors resulting in the module not being loaded correctly.
Expected Behavior

Prior versions of the dbatools module had loaded without error. Worked around error by installing dbatools 1.0.20 side-byside with 1.0.26 and forced he older version load by setting the -MaximumVersion parameter. Older module loaded without error.
Actual Behavior

Version 1.0.26 produced the following error when imported in VS17. It did not produce any error when loaded from the powershell.exe command line. Version 1.0.20 did not produce any errors in VS or on the command line.
Register-DbaRunspace : A parameter cannot be found that matches parameter name 'Target'.

I have been doing more troubleshooting with this one. I have tried uninstalling dbatools and forcing an install of various older versions. In some cases, VS works, but in most it throws the above errors on Import-Module. Next, I am going to uninstall PowerShell Tools for Visual Studio extension and re-install it.

I use PoshTools but not with VS 2017 so can't verify this right off. I'm on VS 2019 and it has no issues that I have seen.
Do you have the same issue if you repeat your test using PoshTools in VS Code?

@jay-butler - can you install 1.0.26 is any other way? Either via Save-Module or by downloading the nuget and extracting from dbatools.io/gallery? This generally happens when the installer failed.

Thanks for the quick responses. @wsmelton I actually did test this on a coworker's machine using VS17 Pro and on my box in PowerShell ISE. But, I did not have VS Code installed on my box yet. @potatoqualitee I went through uninstalling and reinstalling manually as you suggested, but the problem persisted. That got me thinking about what could have changed. I was just making some relatively minor changes in my code which included renaming some variable and functions to be a bit more descriptive. I had inadvertently caused a function naming collision between one of the functions in my code with one of the private functions in dbatools. We both had a Write-Message function. Once I renamed my function to something else, the error was gone.
Thanks again for the quick responses.  You guys got me thinking in a way that got me to the solution.

Issue is resolved. One of the private functions in the dbatools (Write-Message) had a name collision with one of the functions in my own module. I had assumed that all dbatools functions used the Verb-Dba prefix convention, but now realize that only applies to the public/exported functions. I changed the naming convention in my own module to prevent further collisions.

excellent news, thanks for the update ⭐


[WIP] commands,pkg/test: support single namespace mode for local test

This commit brings support for running the tests in a single
namespace when using test local, which was previously only used
by test cluster (where it was a requirement to properly function)
/cc @hasbro17 @fanminshi

Changed to WIP because needs docs

LGTM


examples: example app improvement

Signed-off-by: Leonardo Rossi<EMAIL_ADDRESS>

@hachreak IMHO the example app is too complicated to present Invenio-REST package. Can you create simple one without Invenio-Records and Invenio-Search dependencies just to present simple content negotiated view with text, json, or xml?

@hachreak it looks good! Definitely, it should be for new developer to understand how the content negotiated view works. Thanks!


EnableSafeLinksForTeams parameter is not working anymore

The EnableSafeLinksForTeams parameter is not working anymore:
A parameter cannot be found that matches parameter name 'EnableSafeLinksForTeams'.
    + CategoryInfo          : InvalidArgument: (:) [New-SafeLinksPolicy], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,New-SafeLinksPolicy
    + PSComputerName        : outlook.office365.com

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

ID: 06a1f9fa-7dd6-ebf1-3e64-ef47bd3962b2
Version Independent ID: 5ea9bde3-9fe9-8ae1-0992-b12223c4d7c4
Content: New-SafeLinksPolicy (ExchangePowerShell)
Content Source: exchange/exchange-ps/exchange/New-SafeLinksPolicy.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

I'm also here to report this 'issue'. Is there a possibility to bring this parameter back in the New-SafeLinksPolicy?
We have scripted the configuration for Defender for Office 365, and now this parameter is not working anymore, we have to log in manually in to every tenant in order to enable this option on the Safe-links policy.
Thanks in advance!

@T13nn3s, if you're in the Teams TAP program, you should have access to the parameter. If you are and you don't, I highly encourage you to open a support case.
If the parameter was available to customers who weren't part of the TAP Preview, that was a mistake. The fact that the parameter went away for non-TAP members should be considered a correction of that mistake.


[HW] Kumaraswami Muthuswami

Name: Kumaraswami Muthuswami
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/kumaraswami-muthuswami-0b73627/
Attach the homework step I screenshots below:

Attach the homework step II screenshots below:

Thanks for the wonderful session

Thank you so much for saying so.

Were you able to get through the app as well. Do you have those screenshots? If so, please provide them here. Thank you.

Yes I am

Yes I was able to get through the app following the instructions the git, but I forgot to take and attache the screen shot of the stargate-demo app in the homework.

Ok, no worries. I'll trust you did the work. I would have helped if we check your submission 2 weeks ago anyway. :)

Congrats! Well done! https://api.badgr.io/public/assertions/krfr8u00Q7atOxLVWin5Dw?identity__email=swami.mig%40gmail.com


A11y_VisualStudioCodeClient_Welcome Screen_Parsing: Get started with VS Code button has a link inside it.

GitHub Tags:
#A11yMAS; #A11yTCS; #A11ySev2; #DesktopApp; #Win32; #Visual Studio Code Client; #BM-VisualStudioCodeClient-Win32-Aug2022; #WCAG4.1.1; #Parsing
Environment and OS details:
Visual Studio Code
Windows 11 Pro version 21H2 (OS Build 22000.856)
Repro Steps:
1)Open Visual studio code editor
2)Using "Alt+H" key navigate to the "Help" menu bar option .
3)Using "Down" arrow key navigate to the "Welcome" item.
4) Make sure you have the following setting in settings.json: "workbench.startupEditor": "gettingStarted"
5)Using "Alt+H" navigate to "Help" menu bar option and use "down" arrow key to navigate to "Getting started" and observe that the Get started with VS Code button has a link inside it or not.
Actual Result:
Get started with VS Code button has a link inside it.
Expected Result:
There should not be any link inside the Get started with VS Code button.

@lramos15 can we make sure that we set the role=button on the x in the welcome view.
I believe it is very low hanging and is affecting our grade thus assigning to November. Thanks!


Support uuid, ip, ipv4, ipv6, email and notWhitespaceOnly

I think we can safely say that a string passing one of those assertions is a non-empty string.

This was merged and reverted in the past (https://github.com/phpstan/phpstan-webmozart-assert/pull/89). No, changing the regression test to not report any errors isn't the right thing to do :)
Please open an issue (a feature request) instead to support these in the future. Thanks.

I have an idea about how to add that back, but it might also be dependant on something that Ondrej wants to fix soon. So just give it a bit more time please and I'd create a PR :)

Yeah, that's why I want an issue open about this so that we don't forget :)

Thanks for your answers!
By reading the linked issue I now understand what the test was for.
@herndlm do you want me to open the issue, or do you plan to it your self? I'm asking since you probably want to write down your ideas.

Nah it's fine, please go ahead and open a very simple issue. There's not much to plan yet :)


Sublime Text 3 update.

Sublime Text 3 compatibility update.

It looks like this PR has gotten stale for 2 years =/ I am not clear about some of these changes but some seems to be personal whereas others have been fixed:

Octal numbering is repaired https://github.com/wbond/sublime_terminal/blob/1.4.0/Terminal.py#L83
Print statement is repaired https://github.com/wbond/sublime_terminal/blob/1.4.0/Terminal.py#L132

If you feel that we missed any patches, please re-open this issue.


Error related to Uint8List in version 3.0.0

After updating mobile_scanner to version 3.0.0 i came across this error when running the code.

Has this ever happened to anyone? Can you help me?
Thanks in advance!

Can you please post the output of flutter doctor -v?

I saw in another post that you had informed about the flutter update.
After updating to version 3.3.9 it worked normally.


OTSubscriberErrorDomain Code=1600 "Internal error -- WebRTC subscriber error" while Subscribing to stream shows blank video of publisher in iOS

i am using this plugin for iOS , in server from where i am making a call i can see both video of my and one i am connecting to but to client i can only see my video not of server.what possibly could be wrong?
its also giving error -

subscriber didFailWithError Error Domain=OTSubscriberErrorDomain Code=1600 "Internal error -- WebRTC subscriber error." UserInfo={NSLocalizedDescription=Internal error -- WebRTC subscriber error.}

$scope.connect = function () {
var publisher = TB.initPublisher(apiKey,'publish');
var session = TB.initSession(apiKey,sessionId);
        session.on("streamCreated", function (event) {
                   session.subscribe(event.stream, "subscribe");
                   });

        session.connect(tokenId, function(){
                        session.publish(publisher);
                        });

    }

from where i make call (this shows both camera)

from where i receive caall(i can only view my camera on bottom and blank from server)

Sorry , i updated new plugin from here https://github.com/iramlg/cordova-plugin-opentok now problem is solved.


runtime: support unwinding logical cgo stack transitions using frame pointers

Note: follow-up issue for https://github.com/golang/go/issues/40044#issuecomment-1366030417
When using generic third-party debuggers (e.g. dbg or windbg) to debug a amd64 Go binary, it is currently not possible to know which piece of Go code started a cgo call once runtime.asmcgocall has switched from the Go routine stack to the system stack. This is because  asmcgocall is marked as NOFRAME, so the frame pointer is not set on the function prologue, confusing the debugger unwinding process.
Notice that this is only true for amd64 binaries, as all other architectures supporting frame pointers do not mark asmcgocall as NOFRAME. Yet, at least windows/arm64 neither supports cgo stack unwinding because asmcgocall calls asmstdcall, which is marked as NOFRAME.
IMO we should at least make sure that asmcgocall and related-auxiliary functions can be unwound from the system stack up to the Go stack by placing the right frame pointer in their prologue. I'm leaving out of this discussion other functions that perform a system stack on purpose, as they are not so fundamental as asmcgocall and correctly setting the frame pointer of low-level assembly functions is not straight-forward.
I'm particularly interested on this because on Windows, WinDbg uses the frame pointer to unwind the stack (see #57302) to unwound the stack of a debugged binary or crash minidump (#57441, #49471, #20498).
It would also help fixing at least #40044 and #57698.
@golang/runtime @golang/compiler

@qmuntal I've assigned this to you for now in triage; do you plan to work on it? (Feel free to unassign and leave a "help wanted" tag.)

@qmuntal I've assigned this to you for now in triage; do you plan to work on it?

Yep.  Will update them referencing this issue.

👋 It's great to see your CL above. I'm currently working on adding frame pointer unwind support to the execution tracer (much faster than gentraceback), see https://github.com/golang/go/issues/16638 . systemstack() not pushing frame pointers is an issue I also encountered, causing the caller frame of systemstack to be missing.

It was been quite a journey getting to that CL 🥲, glad that it also helps other effords other than my goal of enabling SEH unwinding on Windows.
Now that I almost managed to get rid of the implicit NOFRAME rule, it would be easier to have frame pointers in the runtime functions.

Please consider a release note about that semantic change that may surprise assembler code outside of the tree. @qmuntal

Please consider a release note about that semantic change that may surprise assembler code outside of the tree. @qmuntal

Sure
@aclements I'm having problems on CL 472195 trying to get TestTracebackSystemstack happy. It seems that gentraceback doesn't like the fact that systemstack now has a frame pointer. Manage to fix it, but without knowing why and probably by chance. As you are working on refactoring that gentraceback, could you provide some guidance on how to properly fix that?

FWIW, I'm still not convinced that saving frame pointers is a good idea for stack transition functions like systemstack, at least not implicitly. If we want to use the frame pointer to express stack transition, I think we may want to be very explicit.

FWIW, I'm still not convinced that saving frame pointers is a good idea for stack transition functions like systemstack, at least not implicitly. If we want to use the frame pointer to express stack transition, I think we may want to be very explicit.

Your opinion worth alot 😸. What I don't understand is what could go wrong when saving the frame pointer on functions that change the stack. And, if there are caveats, what could be worse than not having any stack unwinding at all?

I'm not sure if it could go wrong, just that as the stack transition is special enough I think it is clearer that we do it more explicitly, with comments. It may also simpler if we do save the FP only when the stack transition actually happens, and not on the tail call case.
For the traceback failure (I didn't read the code or the failure message), could it be that the frame layout of systemstack_switch need to match? Also the comment at gosave_systemstack_switch may be helpful.

I remembered that one of the problems we had with delve's stack unwinder was the morestack/newstack path. Maybe you have already accounted for it, I thought it mention it just in case.

the stack transition is special enough I think it is clearer that we do it more explicitly, with comments

Not sure I follow. Are you talking about some sort of compiler directly like this?
//go:emitfp
systemstack(func() { ... })

If we want to use the frame pointer to express stack transition, I think we may want to be very explicit.

FWIW, while working on CL 463835 I found that frame pointer unwinding through systemstack seems to be working already because systemstack doesn't clobber the BP register, so it gets saved by the callee of systemstack. This causes an unwinder to miss the caller of systemstack, but the stack transition itself seems to be working.

//go:emitfp
systemstack(func() { ... })

No. I was just thinking explicitly saving FP in the assembly code. If you all prefer the implicit saving, that is fine. But I think somewhere in the code we should have a comment mentioning that the frame pointer is chained through the stack transition.

arm64 versions of asmcgocall

Not sure if that is actually correct (https://golang.org/cl/241080). It does do the implicit saving, though.

No. I was just thinking explicitly saving FP in the assembly code. If you all prefer the implicit saving, that is fine.

Ah, got it! I don't have a preference on that. If it's better to do this "by hand" in the assembly rather than letting the compiler generate it, that works for me. As long as the frame pointer gets pushed I'm happy 😄.

Closing this issue as done. Tehre has been many CLs during go1.21 dev cycle to improve the frame pointer unwinding through the cgo transition, and there are even some tests verifying that there are no regressions in this area, i.e. @felixge's CL 474916.
Thanks everyone for the discussion and the reviews!


eslint configuration doesn't work out of the box in Atom.

gone round and round on this.
It's almost pointless to even use eslint if it cannot work reliably.
Here's what I did:

cloned repo
installed yarn
brew update; brew install yarn
launched atom
cd time-tracker; atom .
open any file that would be linted...

/Users/jklo/.atom/packages/linter/lib/linter-registry.js:177 [Linter] Error running ESLint Error: /Users/jklo/projects/timetracker/src/time-tracker/node_modules/eslint-config-airbnb-base/rules/variables.js:
	Configuration for rule "no-use-before-define" is invalid:
	Value "[object Object]" no (or more than one) schemas match.

Referenced from: /Users/jklo/projects/timetracker/src/time-tracker/node_modules/eslint-config-airbnb-base/index.js
Referenced from: airbnb
Referenced from: /Users/jklo/projects/timetracker/src/time-tracker/.eslintrc
    at validateRuleOptions (/usr/local/lib/node_modules/eslint/lib/config/config-validator.js:115:15)
    at /usr/local/lib/node_modules/eslint/lib/config/config-validator.js:162:13
    at Array.forEach (native)
    at Object.validate (/usr/local/lib/node_modules/eslint/lib/config/config-validator.js:161:35)
    at load (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:522:19)
    at /usr/local/lib/node_modules/eslint/lib/config/config-file.js:391:36
    at Array.reduceRight (native)
    at applyExtends (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:362:28)
    at load (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:529:22)
    at /usr/local/lib/node_modules/eslint/lib/config/config-file.js:391:36(anonymous function) @ /Users/jklo/.atom/packages/linter/lib/linter-registry.js:177

Tried doing this whole thing as noted on eslint-config-airbnb-base:
(
  export PKG=eslint-config-airbnb-base;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Configured Atom to use Global eslint; still no dice.
Not quite sure how to proceed.

Yep, and I think I sort of figured out a solution, but it's just frustrating that no project incorporates eslint in a consistent way (which is really eslint's fault).
I have a couple of projects that use eslint; they are either using this boilerplate or using facebook-create-react app and the two have conflicting configurations, albeit they look very similar.
Ultimately what I wound up doing is that the electron apps, I've got to configure to use the local eslint, and the create-react apps use the global eslint - yuck.
jklo$ apm list
Built-in Atom Packages (89)
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>
Community Packages (45) /Users/jklo/.atom/packages
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>

brew update; brew install yarn

I wouldn't recommend brew to install yarn
Instead,
npm i -g yarn
rm -rf node_modules
yarn

Also what does your eslintrc look like?  The boilerplate should work out of the box

Can confirm this issue affects me, running proposal by @amilajack

No dice, will investigate further and reply here if I find a solution

@jimklo Get anywhere with this?

@amingilani @jsplaine @jimklo What happens when you run npm run lint?

@jsplaine @amilajack
I fixed it, for me it was quite a few things.

I had a copy of eslint installed globally but didn't have the dependencies installed, and Atom was running my global eslint
My project's .eslintrc said "extends": "airbnb/base" where the format is now "extends": "airbnb"
My project's .eslintrc had a lot of deprecated rules that I had to remove until I got it to work.

I didn't post it because I thought it was a little to specific to my project, but here you go.

Thanks!

I'm having problems which I think come down to atom running global eslint
Shouldn't atom run local eslint if there is one in a package? ... is that an issue or a feature?

@shaunc for me, atom picked up the .eslintrc locally, but ran the global version of eslint


Avoiding using un-set repeated values from proto.

Fixes #138.
See https://gist.github.com/dhermes/29514e4926bef1837ebd for a test app and the differences before this PR and after it.
/cc @matantsu @kdeus

How's this work if the user explicitly sets {bar: []}?  Isn't bar left alone, rather than cleared, with this change?

Thanks for making me check myself before I wreck myself @kdeus. Luckily I have an automated test app so it'll be easier to check the behavior!

@kdeus It seems it would be easiest to just keep the keys when the message is decoded:
import json

from endpoints import protojson

class DJHProtoJson(protojson.EndpointsProtoJson):

    def decode_message(self, message_type, encoded_message):
        if not encoded_message.strip():
            return message_type()

        dictionary = json.loads(encoded_message)
        message = self._ProtoJson__decode_dictionary(message_type, dictionary)
        message.check_initialized()
        # Need to begin with _Message to make the Message metaclass happy.
        message._Message__decoded_fields = dictionary.keys()
        return message

Any suggestions for how to register a custom protojson class from within endpoints_proto_datastore?

Endpoints does this already...  You can probably do something similar, though I'm not sure if that'll end up clashing with our replacement:
https://chromium.googlesource.com/external/googleappengine/python/+/c10d3bdc6af30cb71cfb8a5a8551450e8ccce29c/google/appengine/ext/endpoints/apiserving.py#238
Alternatively, you could try to hack our replacement:
https://chromium.googlesource.com/external/googleappengine/python/+/c10d3bdc6af30cb71cfb8a5a8551450e8ccce29c/google/appengine/ext/endpoints/protojson.py

Will do. Thanks for the links. I'll ping you once I "figure it out".

@kdeus PTAL. Note the update to output_after.txt in the gist (i.e. it works as expected).

@kdeus Anything else to do?

LGTM.

Woo hoo! Thanks Kev!


Consider cross-fetch

latest 'node-fetch' throws type errors consider https://www.npmjs.com/package/cross-fetch
import fetch from 'cross-fetch'
import { JsonRpc } from 'eosjs'

// Instantiate a new JsonRpc object, with the Network Api Uri, and a request object
const rpc = new JsonRpc('https://api.kylin.alohaeos.com', { fetch })

hmm I'm still getting the same error with 'cross-fetch', it went away briefly but it was an IDE thing

Thank you for finding this!
The fix for this has been merged and is available in the latest version of edge and will be available in V21 once it is released.


[WIP] feat: support createRequire

close #14228

What kind of change does this PR introduce?
Support the following pattern as import CJS from ESM
import { createRequire as _createRequire } from 'module'
const __require = _createRequire(import.meta.url)

Did you add tests for your changes? Not yet

Does this PR introduce a breaking change? No

What needs to be documented once your changes are merged? Not yet

Also I think we should provide option for register custom names, like we do for web workers https://webpack.js.org/guides/web-workers/

My intention was to provide support for the usage of Node createRequire API as a kind of require usage. It's very possible that different libraries authors will write different const $NAME_HERE = createRequire(import.meta.url). My current design supports any top-level custom require function created by createRequire.

I found this is not needed. NodeJS has a little part of CJS-ESM co-op support.


Is it possible to disable compile-time verification and instead executing the checks at executable start-up?

I love SQLx and really appreciate the compile-time checks during testing, but struggle to integrate them into a application server deployment via a Docker image.
Our images are built either against a test database or in Ci, and the secrets for the live database are not accessible except in a production environment. One alternative would be to build the server on container startup, but unfortunately the long time it takes for other dependencies to compile exceeds the time allocated to a container before startup healthchecks report a failure. This approach would also negatively impact a production environments ability to automatically scale, since each container would have a long lead time.
As such, I was wondering if it was possible to disable the compile time checks and instead instrument them into a program such that the DATABASE_URL gets tested on program startup? I really appreciate the fail early we get from a schema divergence with the current compile time checks but it makes production use impractical

It's not really possible to do the checks at runtime because the information from the database is necessary for code generation.
Have you tried building in offline mode? https://github.com/launchbadge/sqlx/tree/master/sqlx-cli#enable-building-in-offline-mode-with-query
To make it harder to forget to run cargo sqlx prepare, I like to add it as a pre-commit hook:
echo "~/.cargo/bin/cargo sqlx prepare -- --lib 2>&1 >/dev/null; git add sqlx-data.json" > .git/hooks/pre-commit

This automatically runs cargo sqlx prepare and adds the updated sqlx-data.json to the commit without needing any user input. As written there, it doesn't require cargo sqlx prepare to pass before committing, so you can commit broken code, e.g. if you just want to push a WIP commit at the end of the day and you don't care if it builds.

Thanks for your detailed response! I didn't know about sqlx prepare and I think it will allow me to solve my build automation problem, I guess I should have done a little more reading.
I have one further question about this behavior. Is the query data constructed during compile or cached in one of these JSON files verified as the server starts up? For example, if I had a divergent staging and production environment such that my queries are no longer compatible, would the program error early or error only when the now broken query is executed?

There is no runtime checks in the query macros, but you can ensure your production environment is always migrated by embedding your migrations. This won't protect against manual changes to the database, but that would be nontrivial.

Great, thanks for all the info.


Respect server.path(), update deps, let objection preserve model class names

Updates dependencies (tmp)
Closes #24, now respecting server.path() when set.
Closes #36, now leaning on objection to preserve model class names when knex is bound to a model.

Note that this currently is a PR into #35, simply to provide a meaningful diff (since this PR branches from when #35 left off).  Once #35 is merged, we'll change the base of this PR to master.


Linux bot is down

The Linux bot appears to be down since the newly generated preview from http://<IP_ADDRESS>:8877/65321f96da43bee/web/viewer.html is not reachable, whereas pages from the Windows bot are.
/cc @brendandahl @yurydelendik; could you check what's causing this and/or kick the bot?

The above link seems fine to me, still having issues?

Not anymore. Yesterday none of the Linux bot's links worked anymore. Strange, but this is resolved now.


Sync controller mappings DB with SDL2 community repo

Synced with gabomdq/SDL_GameControllerDB@6191f6333bd66644c6a208fabb9fd5dabf0a5d43.

Cherry-picked for 3.2.2.


Error update_focused_file

Last commit b991a2ac482a31b9de7ca6b49d050b2076c1f96e introduced this error:
               E5108: Error executing lua ...vim/site/pack/packer/opt/nvim-tree.lua/lua/nvim-tree.lua:327: attempt to index field 'update_focused_file' (a nil value)
stack traceback:
        ...vim/site/pack/packer/opt/nvim-tree.lua/lua/nvim-tree.lua:327: in function 'change_dir'
        ...project.nvim/lua/telescope/_extensions/project/utils.lua:122: in function 'open_in_nvim_tree'
        ...project.nvim/lua/telescope/_extensions/project/utils.lua:131: in function 'change_project_dir'
        ...oject.nvim/lua/telescope/_extensions/project/actions.lua:103: in function 'run_replace_or_original'
        ...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'find_project_files'
        ...-project.nvim/lua/telescope/_extensions/project/main.lua:80: in function 'run_replace_or_original'
        ...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...ack/packer/opt/telescope.nvim/lua/telescope/mappings.lua:341: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk

This happens when nvimtree is closed and does not happen when nvimtree is open.

Is nvim-tree.lua the latest version? I didn't encounter this problem.

I can't reproduce the bug. It's working for me in the latest versions.

I will debug it later.

@tiagovla try reinstall plugin

@tiagovla try reinstall plugin

Sorry, I forgot to update this. The problem was that I'm lazyloading nvim-tree and this plugin calls it before it is loaded.

I'm really not sure why opening nvim-tree is the default behavior. A better solution IMO would be to emit an event and let the user decide if he wants to do something about it instead of introducing dependencies or forcing anything.

@tiagovla agreed. If you would like to submit a PR to fix this I'd be happy to approve

I'm really not sure why opening nvim-tree is the default behavior. A better solution IMO would be to emit an event and let the user decide if he/she wants to do something about it instead of introducing dependencies or forcing anything. Could this at least be optional?

It's done optional for the moment in latest PR


[Task]: Reconfigure SDS Automated Tests

Reconfigure the SPS automated tests to use the SPS nightly clusters in mcp-venue-dev and mcp-venue-test

This is also complete, we have nightly smoke tests that test SPS deployments in unity-venue-dev, unity-venue-test, and unity-sbg-dev
https://github.com/unity-sds/unity-sps/actions/workflows/smoke_tests.yml


"Dead" slider circles & overlap deadlock

I am encountering an issue where the outline circles for the controls persist in the original slider position and/or other spots. See image attached.
When the lower slider is at the 0 position and the upper slider is then dragged on top of it, the slider is "locked" – gestures seem to be picked up by the lower slider. In my use case the best way to resolve this would be to specify a minimum gap between the sliders relative to the total length (eg. 0.042 apart to make the minimum time slot 1 hour).
Thanks for all your work!

Thanks a lot for your feedback, I'm gonna have a look at that :)

great! let me know if you’d like to take a look at my code (tho i think i saw this in the example project when i built it too).
i’m using it to build the schedule entry view for a task-sharing platform, TimesFree (beta.timesfree.co http://beta.timesfree.co/) - let me know if you want to link to it as an example!
best
francis

On Jan 14, 2015, at 4:44 AM, William Archimede<EMAIL_ADDRESS>wrote:
Thanks a lot for your feedback, I'm gonna have a look at that :)
—
Reply to this email directly or view it on GitHub https://github.com/sgwilly/RangeSlider/issues/1#issuecomment-69891639.

Hi Francis,
I made some changes to avoid thumbs overlapping.
I can't reproduce the "dead" thumbs, so please tell me if the problem persists.
Cheers :) :100:

Thanks!  I maybe want to make the circles smaller, is there a param for that?
If you can't reproduce the dead circles it might be because I am drawing from the tableviewcell's subclass (probably not recommended I know).

Hi,I am also facing this same issue when lower thumb is at 0 and the upper thumb is overlapping it and i m unable to move any one thumb out of these two.please help,thanks!!

I have noted (late into the game here) that if you touch on the outer far edge of the seemingly top overlap, that circle will take the gesture.


script:  should have default click behavior if it doesn't have data-on-click

We need to explicit test that event does not bubble up to the parent.


Increase Testing Coverage to 90% for 0.7.0 Release

Goal is to get that coveted green code coverage badge!
This is coverage goal currently in devel branch on April 1st.

Increasing coverage for any of the above 15 files could help bump us up to 90%.

I would focus on our efforts first and foremost to the derive_*() function. Once these have 100% coverage we can move on to the other functions.


Fixed easy issue 3(PHP) #1594

Pull Request Type
Solved an issue with PHP
What kind of change does this PR introduce?
[ X] Solved an issue/task
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
What is the current behavior?
An issue descrobed and was needed to show 1 element from the array.

Issue Number: [Fixed easy issue 3(PHP) #1594]
What is the new behavior?
The code solved the issue.

Other information

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out our forkcommitmerge.io website repository. The repository contain real issues that you can help to resolve or create some of your own if you see any bugs or want to add new features to the site, etc. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


[DOC] Inconsistencies in docstrings in forecasting.py and series.py

Describe the bug

Not a bug, just bad docstrings (e.g. referring to y instead of X, or mixing up True and False). See pull request below for the changes.

Closed by #701


Incorrect Coverage Statistics when using a Workspace

Describe the bug
Hello, unless I missed a command flag, tarpaulin does not take into account which package is being tested using the -p flag when it comes to calculating coverage changed. What I mean by this is running cargo tarpaulin twice, each with a different package, will result in an incorrect calculation for change in coverage because it is comparing the coverage difference between the first package and the second package
As an example:
`cargo tarpaulin -p Package1
To Reproduce
cargo tarpaulin -p pkg1
16.08% coverage, 205/1275 lines covered, +0.00% change in coverage
cargo tarpaulin -p pkg1
16.08% coverage, 205/1275 lines covered, +0.00% change in coverage
cargo tarpaulin -p pkg2
13.08% coverage, 165/1261 lines covered, -2.99% change in coverage
Expected behavior
I would information to be cached based on the package, and comparisons be made on a per package basis (or workspace as a whole without -p) when determining coverage changes.

So I think currently my implementation is rather naive in it stores the previous coverage results but no details of the configuration and then just compares the cached previous run and current run. I can add something to store config info in that dat aand check it and not show the delta if the runs don't match.
I probably won't get onto it until next week but if you (or someone else) is interested in contributing most of the work would be in src/report/mod.rs in the print_summary function. Probably want to change the serialised output from TraceMap to some struct containing TraceMap and Config, update the saving and loading to add a check.

@xd009642 Thank you! I think I should have some time in the next week or two, and it's not a big rush for us, so if you have more urgent matters, you can wait for me to put up a PR for this and review it.

Also note that the report/results include files from the other package:
# Cargo.toml
[workspace]
members = ["lib", "cli"]

$ cargo tarpaulin -p lib
...
Jul 15 14:52:21.192  INFO cargo_tarpaulin::report: Coverage Results:
|| Tested/Total Lines:
|| lib/src/foo.rs: 56/56 +0.00%
|| lib/src/bar.rs: 27/27 +0.00%
|| cli/src/config.rs: 0/2 +0.00%
|| cli/src/log.rs: 0/6 +0.00%
|| cli/src/main.rs: 0/59 +0.00%
||
55.33% coverage, 83/150 lines covered, +0.00% change in coverage

For the moment, I only really care about the coverage in the lib workspace member. I did not expect the files in cli to show up with -p lib, and I would not like them to count.

Going one step further from my previous comment, it might also make sense to only consider the lines in lib for the coverage report, but use the code in cli to detect coverage, i.e. as if cli


fix full_state sync parameter

Otherwise the url parameter is "full_state=True" instead of  "full_state=true" and Synapse returns an error.
Signed-off-by: Valentin Deniaud<EMAIL_ADDRESS>

Thanks! Out of curiosity, what are you using this for that you're finding all these bugs?

I need to very reliably track the room members for e2e, so I've been playing around with different approaches (this was not a good one).


Update emergency region config to have dashes

Any underscores will be stripped out of the config env vars, so NORTH_WEST will be normalised to northwest. Replacing the dahses with underscores should fix this

@danlivings-dxw Good call!


A better way?

I MITM'd the iOS app with mitmproxy to figure out how it keeps the sessions alive. After the login process(which I can't figure out how to replicate outside of the app because I have no idea what I'm doing), it makes a call to https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/token and gets a refresh_token in the resulting json, which appears to be persistent and can be used to generate new oauth tokens at any time using a POST request:

curl -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' -H 'accept: */*' -H 'authorization: Basic (Base64 text here, decodes to xfinity-ios-application:0f70...1e22 for me. omitting it results in a client id not present error, so maybe it's the same for everyone?)' -H 'accept-language: en-US,en;q=0.9' -H 'user-agent: Xfinity/1733341591 CFNetwork/1494.0.7 Darwin/23.4.0' -X POST https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/token -d 'partner_id=comcast&refresh_token=(REFRESH_TOKEN_GOES_HERE)&grant_type=refresh_token&scope=profile&ui_locales=en&activity_id=(This UUID seems to be persistent from the first launch of the app, but this field is optional)&mso_partner_hint=true&active_x1_account_count=true(optional)'

Where the response contains:

{
  "access_token" : "",
  "refresh_token" : "(same as always)",
  "id_token" : "",
  "expires_in" : 3599,
  "activity_id" : "different from the activity id from before",
  "token_type" : "Bearer"
}

The resulting access and ID tokens can be plugged into the following request to https://gw.api.dh.comcast.com/galileo/graphql to get usage:

curl -H 'user-agent: Digital Home/Apple iPad/iPadOS 17.4.1/(SOME UUID)' -H 'client-detail: MOBILE;Apple;iPad;iPadOS 17.4.1;v<IP_ADDRESS>3341591' -H 'x-apollo-operation-name: InternetDataUsage' -H 'client: digital-home-ios' -H 'apollographql-client-name: com.xfinity.digitalhome-apollo-ios' -H 'apollographql-client-version: 5.39.0-1733341591' \
-H 'x-id-token: ID_TOKEN_HERE' \
-H 'authorization: Bearer ACCESS_TOKEN_HERE' \
-H 'accept-language: en-US' -H 'accept: */*' -H 'content-type: application/json' -H 'x-apollo-operation-type: query' -X POST https://gw.api.dh.comcast.com/galileo/graphql -d '{"operationName":"InternetDataUsage","query":"query InternetDataUsage { accountByServiceAccountId { __typename internet { __typename usage { __typename inPaidOverage courtesy { __typename totalAllowableCourtesy usedCourtesy remainingCourtesy } monthlyUsage { __typename policy month year startDate endDate daysRemaining currentUsage { __typename value unit } allowableUsage { __typename value unit } overage overageCharge maximumOverageCharge courtesyCredit } } } } }"}'

This comes up with the following output:

{"data":{"accountByServiceAccountId":{"__typename":"Account","internet":{"__typename":"InternetService","usage":{"__typename":"InternetDataUsage","inPaidOverage":false,"courtesy":{"__typename":"CourtesyData","totalAllowableCourtesy":1,"usedCourtesy":1,"remainingCourtesy":1},"monthlyUsage":[{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":12,"year":2024,"startDate":"2024-12-01","endDate":"2024-12-31","daysRemaining":11,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":11,"year":2024,"startDate":"2024-11-01","endDate":"2024-11-30","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":10,"year":2024,"startDate":"2024-10-01","endDate":"2024-10-31","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":9,"year":2024,"startDate":"2024-09-01","endDate":"2024-09-30","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":8,"year":2024,"startDate":"2024-08-01","endDate":"2024-08-31","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":7,"year":2024,"startDate":"2024-07-01","endDate":"2024-07-31","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":6,"year":2024,"startDate":"2024-06-01","endDate":"2024-06-30","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":5,"year":2024,"startDate":"2024-05-01","endDate":"2024-05-31","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":4,"year":2024,"startDate":"2024-04-01","endDate":"2024-04-30","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":3,"year":2024,"startDate":"2024-03-01","endDate":"2024-03-31","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":2,"year":2024,"startDate":"2024-02-01","endDate":"2024-02-29","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false},{"__typename":"MonthlyInternetDataUsage","policy":"limited","month":1,"year":2024,"startDate":"2024-01-01","endDate":"2024-01-31","daysRemaining":0,"currentUsage":{"__typename":"DataUsage","value":(USAGE HERE),"unit":"GB"},"allowableUsage":{"__typename":"DataUsage","value":1.23,"unit":"TB"},"overage":false,"overageCharge":0,"maximumOverageCharge":100,"courtesyCredit":false}]}}}}}

A couple other APIs that are currently implemented in the HA plugin that return the necessary data:
https://csp-prod.codebig2.net/selfhelp/account/me?loyalty=true - I think you are using this already? various account info including the modem data from above, this one uses a separate oauth call to get a special token for it. It might be better to use https://gw.api.dh.comcast.com/galileo/graphql with just the data necessary, this is what the app uses but i suppose you could just pick out whatever you need:

{
    "operationName": "User",
    "query": "query User($customerGuid: ID) { user(customerGuid: $customerGuid) { __typename experience analytics eligibilities tabs account { __typename serviceAccountId billingAccountId partner timeZone zipCode primaryGateway { __typename make model macAddress deviceClass } router { __typename make model macAddress deviceClass deviceType coam } modem { __typename make model macAddress deviceClass deviceType coam } } } }"
}

https://api.sc.xfinity.com/plan - getting plan details because the graphql fails to return it for me
A couple notes about the login process:
After the password is inputted, a 302 redirect to the following url is made:
https://oauth.xfinity.com/oauth/authorize?state=(TOKEN HERE)&scope=openid&client_id=xfinity-ios-application&response_type=code&redirect_uri=https://xerxes-sub.xerxessecure.com/xerxes-jwt/oauth/code&nonce=(THE UUID)&ui_locales=en&prompt=select_account%20select_billing_account&response=1&reqId=(some-request-id)&cima.ticket=(CIMA TICKET)%2A%2A which 302's to:
https://xerxes-sub.xerxessecure.com/xerxes-jwt/oauth/code?code=0.ac.w2.yaJvRu&state=(TOKEN FROM OAUTH.XFINITY.COM HERE) results in a xfinitydigitalhome://auth?state=xxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx&activity_id=UUID-FROM-BEFORE&code=(code) uri which is passed to the app. the app then makes an initial request to https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/token with :

curl -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' -H 'accept: */*' -H 'authorization: (Basic same as before)'-H 'accept-language: en-US,en;q=0.9' -H 'user-agent: Xfinity/1733341591 CFNetwork/1494.0.7 Darwin/23.4.0'-X POST https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/token -d 'prompt=select_account&active_x1_account_count=true&code=(CODE FROM BEFORE)&partner_id=comcast&scope=profile&code_verifier=(I can't figure out where this comes from)&grant_type=authorization_code&redirect_uri=xfinitydigitalhome://auth&ui_locales=en&activity_id=(THAT UUID)&mso_partner_hint=true'

This is where the refresh token first gets sent back.
Hopefully this is somewhat useful information for the project. If someone figures out how to put this all together it could avoid the browser automation stuff beyond the first login and then just renew the token and refresh data usage in under a second.

It seems like reverse engineering either the Android or iOS app is going to be needed. The browser method is just too problematic for authentication

Is it possible to get the base64 encoded authorization from you?


Shows "n" between keys in normal mode in WSL.

Problem
screenkey
Steps to reproduce

Enable screenkey
type keys like "j" "k", etc.

Screenkey log output
nothing shows in the popup window.
Expected behavior
No response
Neovim version (nvim -v)
NVIM v0.9.5
Terminal name/version
Windows Terminal Version: 1.20.11781.0

Thanks. it worked.


Unable to remove repository Stack after repository removes compose YAML (with GitOps)

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description
After removing a docker-compose YAML from a repository that's been used to create a Stack, and the Stack was updated via GitOps (in my case, a webhook), the Stack automatically removes the containers but is unable to be deleted. It fails with:
failed to remove a stack: docker compose command failed: chdir /data/compose/{stack_id}/...: no such file or directory

This occured as I've setup some automations around stack deployment and updates that use a monorepo of compose files. I renamed some of the compose YAML files and ran into this bug.
Expected Behavior
The Stack should be possible to delete.
Actual Behavior
The stack fails to delete.
Steps to Reproduce

Create a Stack from a Git repository
Setup GitOps to update
Remove the YAML from the repostory, and wait for the Stack to update
Attempt to delete the Stack

Portainer logs or screenshots
No response
Portainer version
2.19.5
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker 24.0.7
OS and Architecture
Debian AMD64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response

I also am experiencing this issue and am unable to remove the stack

I was having a really similar issue, except I deleted the entire repository. I was able to work around it by fiddling with the database and the filesystem (but this is only in my lab environment so I'm not too worried about breaking stuff.)
In all honesty what I did was pretty janky, and restoring from a backup was probably the move, but...
Here's how I brutally forced it to delete it. Most of these steps were a part of going on the journey, but probably aren't all necessary.

Find the ID of the stack (in my case it was 48)
Remove the contents of 48 (/portainer/compose/48/)
Stop Portainer and make a copy of the database, and a backup (/portainer/portainer.db)
Edit the copy of the database with something like BoltBrowser cli
Find stacks, then 48 in the db
Edit JSON in the db and set EntryPoint to ""
Edit JSON in the db and set ConfigHash to ""
Overwrite portainer.db with the modified version
Start Portainer
Delete stack normally from the GUI

I'm guessing you probably don't need to delete the ConfigHash if you delete the EntryPoint, or delete anything from the filesystem, It's just what I clumsily tried first and was too lazy to undo.
Before:

After:


fix!: correct ECMA version browserslist mapping

Summary
Fix https://github.com/web-infra-dev/rslib/issues/284.
Related Links

Checklist

[x] Tests updated (or not required).
[ ] Documentation updated (or not required).

Added it back.


Remove RuntimeIdentifier elements from publish profiles - they don't work

Based on repro steps provided here:
https://github.com/microsoft/microsoft-ui-xaml/issues/9740
RuntimeIdentifier(s) are already provided in the ProjectTemplate.csproj file.

/azp run


Rails 5: Doesn't work with action_cable

Hi,
I'm using the Rails 5 beta 3 with action cable, the integration works fine in development but when I try a feature test through capybara, it doesn't seem to hit the channel actions.
I'm using Portergeist and configured puma as capybara's server. Also I'm using es5-shim and es6-shim.
Has anyone else experienced this or knows any workaround?
Thanks!

Use the master branch and specify Capybara.server = :puma


Numeric argument conversion should avoid scientific notation

Problem
When passing numeric arguments that are too large or too small into Cadence script, toString() creates scientific notation and Cadence cannot read the argument properly
Steps to Reproduce
execute a script with an argument like
transaction(amount: UFix64) {
}

Pass in argument like
sdk.arg(
  0.00000001,
  t.UFix64
),

Generated TX argument
{
  "type":"UFix64",
  "value":"1e-8"
}

While it should be
{
  "type":"UFix64",
  "value":"0.00000001"
}

the TX argument results in Cadence execution failure
invalid argument at index 0

Thanks @boczeratul, this is great feedback. We will be prioritizing this in our next grooming session (Every Friday)
Pinging @JeffreyDoyle as he will probably be the one doing the work.

Hi @boczeratul , thanks again for raising this issue! I've done some investigation into it, and I've created a new issue https://github.com/onflow/flow-js-sdk/issues/312 that I will be using to fix this problem.
We really appreciate your support! 🎉


Add mapping from JPA Tuple to bean

It may be useful for mapping QueryTyple resultset to WS response object without intermediate mapping to Entity object
I develop this feature in https://github.com/ikozar/dozer.git

@ikozar ; is your fork still active? as i don't see any commits.

Closing due to inactivity.


Plans to be a full auth0 client?

I've been working on a Go client wrapper for some of the Auth0 auth and management APIs. Would it be a good idea to combine these?

Hi
As Auth0 we don't have any current plans for investing in a Go SDK. That could change in the future, as everything ;)
@yageek as been contributing to this project, and he could have a better answer for you.
Regards,
Andres

Okay. I wasn't necessarily asking Auth0, unless "auth0-community" is not what it implies. So yes, I was directing this question at whoever actively maintains or puts code into this project. I assumed @yageek was at least a partial maintainer, and if not, I'm not sure why he'd have a better answer.

Hello,
sorry for the long non answer period. I just came back from holiday the last week and I had a lot of work to do.
I started the library because I needed it for one project and I had a very limited knowledge about the Auth0 platform. I have less time to contribute those days but I am not against a merge of efforts.

I created a full Go Auth0 Client and also a Go JWT Verifier. https://github.com/apibillme/auth0 and https://github.com/apibillme/auth0-sdk - this thread inspired me - thanks!

There is another Go lib here which is currently being used by the auth0 Terraform module here.

Hey there @bishtawi !
Thanks a lot for sharing that. Indeed we are working with Alex and official Auth0 module for Terraform should be released soon! Stay tuned!


Assign connectionhandle id to a global variable in a include?

Just tried out some pawn scripting again after a couple of years of hiatus and i've encountered a problem with the latest release of the MySQL plugin.
To explain properly what i'm trying to do, i will show the code first as i'm scripting in several filterscripts instead of a single gamemode.
custom.inc:
#include <a_samp>
#include <sscanf2>
#include <a_mysql>
#include <zcmd>
#include <colors>

new MySQL: db_con;

database.pwn:

#include <custom>

#define MYSQL_HOST "<IP_ADDRESS>"
#define MYSQL_USER "root"
#define MYSQL_PASSWORD ""
#define MYSQL_DATABASE "samp"

public OnFilterScriptInit()
{
	print("Loading database script...");

	new MySQLOpt: option_id = mysql_init_options();

	mysql_set_option(option_id, AUTO_RECONNECT, true);
	print("Mysql Connection Auto Reconnect set!");

	db_con = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, option_id);

	if(db_con == MYSQL_INVALID_HANDLE || mysql_errno(db_con) != 0)
	{
		printf("Failed to connect to database: %d", mysql_errno(db_con));
		SendRconCommand("exit");
		return 1;
	}
	printf("Successfully connected to database \"%s\" at \"%s\".", MYSQL_DATABASE, MYSQL_HOST);
	print("Database script loaded.");
	return 1;
}

account.pwn:

#include <custom>

//===[Callbacks]======================
forward OnPlayerDataLoaded(playerid, race_check);
//====================================

//===[Variables}======================

//====================================

public OnFilterScriptInit()
{
	print("Loading Account script...");

	mysql_format(db_con, s_query, sizeof(s_query), "SELECT * FROM accounts WHERE username = 'test' LIMIT 1");
	mysql_tquery(db_con, s_query, "OnPlayerDataLoaded", "d", 1);

	print("Account script loaded.");
	return 1;
}

public OnPlayerDataLoaded(playerid)
{
	if(cache_num_rows() > 0)
	{
		SendMessageNF(playerid, "Account exist.");
	}
	else
	{
		SendMessageNF(playerid, "Account does not exist.");
	}
	return 1;
}

What i'm doing is basically creating a gamemode into several filterscripts instead of just a single gamemode. For this, i'm having a custom include where i'm storing commonly used variables and functions so i dont have to rewrite them into several scripts. In custom.inc, i'm creating 'new MySQL:db_con;' variable for the connection handle. I'm then trying to connect to the database in 'database.pwn" which is working. However, the problems begin in account.pwn which is loaded directly after database.pwn. As you can see, i'm having a query directly into OnFilterScriptInit which i put in after i found this problem for easy debug.
this is the error log produced every time i'm starting the server:
[15:40:13] [ERROR] mysql_format: invalid connection handle '0' (D:\SA-MP\filterscripts\account.pwn:17)
[15:40:13] [ERROR] mysql_tquery: invalid connection handle '0' (D:\SA-MP\filterscripts\account.pwn:18)

Looks like db_con is not given a proper connection handle ID or is there a problem with having it in a include?

database.pwn and account.pwn are two different filterscripts? If yes, then in account.pwn is by default 0 and you never connect to the mysql server.
If you only have 1 mysql connection, why don't you use MYSQL_DEFAULT_HANDLE?

MYSQL_DEFAULT_HANDLE actually worked great so thanks for that!
I haven't been scripting anything since beginning of 2014 and back then it was possible to just state 1 as connection handle in every script after connecting it so that's what threw me off when trying it now.
As this wasn't a bug, i'm closing this issue.


transformers NER model service start failure

Running service from following config, returns weird error. Service with other huggingface models for NER task ends with same result.
name: "default_app"
version: 0.1
active_learning:
  strategy:
    type: "RandomSampling"
    model:
      name: "dslim/bert-base-NER"
      hub: "huggingface"
      model: "bert-base-NER"
      tokenizer: "dslim/bert-base-NER"
      transformers_task: "ner"
      batch_size: 1
      device: "cpu"
  al_worker:
    protocol: "http"
    host: "<IP_ADDRESS>"
    port: 8081
    replicas: 1

  Waiting default_app... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2/1 0:00:02CRITI… default_app/rep-0@2592 can not load the executor from TorchALWorker                                                                                [12/29/22 19:05:32]
ERROR  default_app/rep-0@2592 TypeError("_sanitize_parameters() got an unexpected keyword argument 'return_all_scores'") during <class                                     [12/29/22 19:05:32]
       'jina.serve.runtimes.worker.WorkerRuntime'> initialization
        add "--quiet-error" to suppress the exception details
       Traceback (most recent call last):
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\orchestrate\pods\__init__.py", line 79, in run
           runtime = runtime_cls(
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\runtimes\worker\__init__.py", line 39, in __init__
           super().__init__(args, **kwargs)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\runtimes\asyncio.py", line 77, in __init__
           self._loop.run_until_complete(self.async_setup())
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\asyncio\base_events.py", line 616, in run_until_complete
           return future.result()
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\runtimes\worker\__init__.py", line 104, in async_setup
           self._request_handler = WorkerRequestHandler(
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\runtimes\worker\request_handling.py", line 54, in __init__
           self._load_executor(
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\runtimes\worker\request_handling.py", line 204, in _load_executor
           self._executor: BaseExecutor = BaseExecutor.load_config(
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\jaml\__init__.py", line 766, in load_config
           obj = JAML.load(tag_yml, substitute=False, runtime_args=runtime_args)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\jaml\__init__.py", line 174, in load
           r = yaml.load(stream, Loader=get_jina_loader_with_runtime(runtime_args))
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\yaml\__init__.py", line 81, in load
           return loader.get_single_data()
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\yaml\constructor.py", line 51, in get_single_data
           return self.construct_document(node)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\yaml\constructor.py", line 55, in construct_document
           data = self.construct_object(node)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\yaml\constructor.py", line 100, in construct_object
           data = constructor(self, node)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\jaml\__init__.py", line 582, in _from_yaml
           return get_parser(cls, version=data.get('version', None)).parse(
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\jaml\parsers\executor\legacy.py", line 46, in parse
           obj = cls(
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\executors\decorators.py", line 60, in arg_wrapper
           f = func(self, *args, **kwargs)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\serve\helper.py", line 73, in arg_wrapper
           f = func(self, *args, **kwargs)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\alaas\server\executors\al_torch.py", line 104, in __init__
           self._model = pipeline(self._task,
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\transformers\pipelines\__init__.py", line 870, in pipeline
           return pipeline_class(model=model, framework=framework, task=task, **kwargs)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\transformers\pipelines\token_classification.py", line 126, in __init__
           super().__init__(*args, **kwargs)
         File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\transformers\pipelines\base.py", line 788, in __init__
           self._preprocess_params, self._forward_params, self._postprocess_params = self._sanitize_parameters(**kwargs)
       TypeError: _sanitize_parameters() got an unexpected keyword argument 'return_all_scores'
ERROR  Flow@16320 Flow is aborted due to ['default_app'] can not be started.                                                                                [12/29/22 19:05:32]
WARNI… gateway/rep-0@16320 Pod was forced to close after 1 second. Graceful closing is not available on Windows.                                                           [12/29/22 19:05:33]
Traceback (most recent call last):
  File ".\server.py", line 9, in <module>
    main()
  File ".\server.py", line 5, in main
    Server.start_by_config('al-server.yml')
  File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\alaas\server\server.py", line 67, in start_by_config
    Flow(protocol=_proto, port=_port, host=_host) \
  File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\orchestrate\flow\builder.py", line 33, in arg_wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\orchestrate\flow\base.py", line 1782, in start
    self._wait_until_all_ready()
  File "C:\Users\jedrz\anaconda3\envs\active_learner\lib\site-packages\jina\orchestrate\flow\base.py", line 1913, in _wait_until_all_ready
    raise RuntimeFailToStart
jina.excepts.RuntimeFailToStart

AlaaS version: 0.2.0
System OS version: Win 11 22H2
Btw, does model really need to be initialized in service with random sampling strategy?

Thank you for your feedback! @jamnicki
For random sampling, I have skipped the model loading in the latest commit.
For NER tasks, the server can be started after the latest update. However, due to the task itself, sometimes the transformer model will return an empty list if there is no entity detected. In such cases, the AL strategy has no values to rank up. It is an interesting issue since currently our system only scores the score given by the hugging face models.
If you have any ideas about that, feel free to discuss them here.

Here is an example of this model's output:
Input texts:
The movie itself was to me a huge disappointment.
My name is Wolfgang and I live in Berlin

model outputs:
[[]]
[[{'entity': 'B-PER', 'score': 0.9990139, 'index': 4, 'word': 'Wolfgang', 'start': 11, 'end': 19}, {'entity': 'B-LOC', 'score': 0.999645, 'index': 9, 'word': 'Berlin', 'start': 34, 'end': 40}]]

For the first text, it cannot find a model output, which fails the data selection.

Afte 0.2.1 release service with HF NER models starts properl with random sampling strategy and others. I'll open new issue about missing scores and unequal arrays size


Synthesize feedback from NEAR CLI proposal feedback. Modify/update proposal as needed. Finalize NEAR CLI proposal.

https://gov.near.org/t/new-near-cli-design-proposal/3616

Final post if here: https://gov.near.org/t/new-near-cli-design-proposal/3616/15?u=serhii


runtime.js vs to5.runtime()

If I understand it correctly, I should be able to use these interchangeably:
to5.runtime();
File.readFileSync( require.resolve('6to5/runtime'), 'utf8')

But the output they generate is different. While runtime.js contains:
to5Runtime.interopRequireWildcard=function(obj){
  return obj&&obj.constructor===Object?obj:{
    "default": obj
  }
};

The method to5.runtime() returns:
 to5Runtime.interopRequireWildcard = function (obj) {
    return obj && obj.constructor === Object ? obj : {
      default: obj
    };
  };

Notice that the property name default, which is also a JavaScript reserved word, is not quoted in the output of runtime() and so the code fails with a syntax errors on some browsers.

The optional runtime is being removed in 3.0.0 due to the introduction of the selfContained transformer.

The global runtime was added back in 3.3.0. Closing this as the original question has been answered. Thanks!


Make the http_proxy environment variable available.

Hello.
I am using this library in an environment where an HTTP proxy exists.
I was following https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages to do the installation, but It did not complete successfully.
According to https://unix.stackexchange.com/a/507581, it appears that apt-key no longer reads the http_proxy environment variable.
I have replaced it with the curl-based method. This seems to be working fine. I have changed the documentation. What do you think?

Hi @takanotume24
Thanks for the patch


Update color and naming for consistency

The ClearColor PR was merged before I was quite finished. This fixes a few errors, and addresses Cart's feedback about the pixel perfect example by updating the sprite colors to match the existing bevy bird branding colors.

02ce409 reverts the plane color change in #10339 to address some passive aggressive comments on discord.

Much appreciated!

No worries, I didn't do a good job of communicating that. :)


chore: use less deprecated makeVaultInvitation

Stop using deprecated makeLoanInvitation so I can remove it.
https://github.com/Agoric/agoric-sdk/blob/1c354ca7e12343f61f4a0cbd93cfd9b4636c23a1/packages/run-protocol/src/vaultFactory/vaultFactory.js#L257-L260
makeVaultInvitation is also deprecated but is easier to keep around so this adopts it.

Closing in favor of https://github.com/Agoric/testnet-load-generator/pull/87


Dump django-sane-testing in favor of clean nose

Sane testing is no longer needed and breaks things

done in cleanup branch


modified integers to take floats instead

Hey, my code works now :)
If theres any other pieces of this you would like to change, let me know, but i think this is ok.
I did find that you do not allow Ellipses to have 0 width or height. What was the decision on that? Tiled seems fine with it.

No, that's great thanks. I'm glad it's working for you!

I did find that you do not allow Ellipses to have 0 width or height. What was the decision on that? Tiled seems fine with it.

To be honest, I can't remember. I guess at the time I thought it doesn't make any sense to have objects that have zero area. I suppose there are a few usecases though - you might just want to flag a particular position or something.
It's something that probably needs changing. Do you use this feature in particular? Do you need it for rects as well?

Yeah, I decided to use an ellipse for a spawn point, and by default Tiled makes it 0 sized, so it seemed like it should be a possibility if its the default.
Right now I am not using rectangles, if Tiled allows it, it should probably be allowed. lemme see if its a thing there.

Yeah, it seems that 0 sized objects are generally allowed, Ill see if theres a change to make. I see you made the Ellipse change too , thanks, I was on the run yesterday :)


VEText Phase 1 Configurations: Templates

VEText created 2 additional templates for long codes assigned to Veterans per short code use case. They need multiple templates so they can migrate these use cases at different times.
Please update these templates with the Twilio provider
Environment: Staging

[ ] VEText Outreach Long Code Messages: template-id - a0c02547-e731-4aa6-be02-72bbad6b6878
[ ] VEText One-Way Long Code Messages: template-id - 8b0b9e19-f935-4fbb-98c0-89a028091cc0

@ianperera when you're done please tell @k-macmillan so he can tell VEText

Completed


fix: correct API handler route in docs pages and readmes

Adds Quick Features sections to readmes
Ensure that get-started, README and not-found docs are in-sync
Text slider start 'version' at 1
adds meta info to docs pages
Changes "Chat toolkit" to Chat
removes unused POC interceptor routes and files for @error
text and wording changes to docs pages

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: