Package Microsoft.Build error

Hi
I downloaded
https://github.com/jorgenschumann/InitialEnterprise
Which I think is a good example of Domain-Driven Design when compiling app build errors occur
sample error out of 24
Severity	Code	Description	Project	File	Line	Suppression State
Error	NU1202	Package Microsoft.Build 15.3.409 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package Microsoft.Build 15.3.409 does not support any target frameworks.	React.Frontend	C:\Users\liudm\Downloads\CQRS\InitialEnterprise-master\Frontend\InitialEnterprise.Frontend\InitialEnterprise.MainFrontend\React.Frontend.csproj	1
Error	NU1202	Package Microsoft.Build.Utilities.Core 15.3.409 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package Microsoft.Build.Utilities.Core 15.3.409 does not support any target frameworks.	React.Frontend
C:\Users\liudm\Downloads\CQRS\InitialEnterprise-master\Frontend\InitialEnterprise.Frontend\InitialEnterprise.MainFrontend\React.Frontend.csproj	1
Error	NU1202	Package Microsoft.Extensions.Primitives 2.0.0 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package Microsoft.Extensions.Primitives 2.0.0 does not support any target frameworks.	React.Frontend	C:\Users\liudm\Downloads\CQRS\InitialEnterprise-master\Frontend\InitialEnterprise.Frontend\InitialEnterprise.MainFrontend\React.Frontend.csproj	1
There are a number of project samples currently investigating have similar issues, specific EquinoxProject-master
If my memory serves me correctly EquinoxProject-master didn't generate any errors until I had restored windows.
Action take:-
Repaired VS 2017
Searched Solution with notepad++ Microsoft.Build which highlighted all projects had
Microsoft.Build.Tasks.Core, Version=<IP_ADDRESS>
InitialEnterprise-master\Frontend\InitialEnterprise.Frontend\InitialEnterprise.BlazorFrontend\Blazor.Frontend\obj\Debug\netstandard2.0\Blazor.Frontend.csprojAssemblyReference.cache
But where the 24 error occured in CQRS\InitialEnterprise-master\Frontend\InitialEnterprise.Frontend\InitialEnterprise.MainFrontend

No reference to the above (Microsoft.Build) were found,  vs 2017 looked for the best match most prob
Any advise you can offer, would be helpful

Kind regards
Peter

SETUP
Microsoft Visual Studio Community 2017
Version 15.9.2
VisualStudio.15.Release/15.9.2+28307.108
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Community
Visual C++ 2017   00369-60000-00001-AA745
Microsoft Visual C++ 2017
ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools
Application Insights Tools for Visual Studio Package   8.14.11009.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017   15.9.04012.0
ASP.NET and Web Tools 2017
ASP.NET Core Blazor Language Services   0.7.0-rtm-20181115.1
ASP.NET Core Razor Language Services   15.8.31590
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2012   4.0.30625.0
For additional information, visit https://www.asp.net/
ASP.NET Web Frameworks and Tools 2017   5.2.60913.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0   15.9.03024.0
Azure App Service Tools v3.0.0
Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio   2.3.5001.4
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools   15.9.02046.0
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio   2.3.5001.4
Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Cookiecutter   15.9.18254.1
Provides tools for finding, instantiating and customizing templates in cookiecutter format.
Dotfuscator Community Edition   <IP_ADDRESS>50-e77ce80a6
PreEmptive Protection - Dotfuscator CE
Extensibility Message Bus   1.1.49 (remotes/origin/d15-8@ee674f3)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.ApplicationInsights   1.0
Allows user to instrument their Service Fabric projects for Application Insights.
Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events
GitHub.VisualStudio   <IP_ADDRESS>01
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
IncrediBuild Build Acceleration   <IP_ADDRESS>
IncrediBuild effectively reduces compilation and development times by up to 90%.
JavaScript Language Service   2.0
JavaScript Language Service
JavaScript Project System   2.0
JavaScript Project System
JavaScript UWP Project System   2.0
JavaScript UWP Project System
JustDecompilePackage2017 Extension   1.0
JustDecompilePackage2017 Visual Studio Extension Detailed Info
Microsoft Azure HDInsight Azure Node   2.3.5001.4
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service   2.3.5001.4
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio   2.4
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service   2.3.5001.4
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2
Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager   1.0
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package
MLGen Package Extension   1.0
MLGen Package Visual Studio Extension Detailed Info
Mono Debugging for Visual Studio   4.13.11-pre (400cfb1)
Support for debugging Mono processes with Visual Studio.
Node.js Tools   1.4.21001.1 Commit Hash:8dd15923800d931b153ab9e4de74e42a74eba5e6
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager   4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
NuProjPackage   1.0
NuGet Package Project System
Office Developer Tools for Visual Studio 2017 ENU   15.0.28224.00
Microsoft Office Developer Tools for Visual Studio 2017 ENU
PowerShell Pro Tools for Visual Studio   1.0
A set of tools for developing and debugging PowerShell scripts and modules in Visual Studio.
ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
Python   15.9.18254.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.
Python - Django support   15.9.18254.1
Provides templates and integration for the Django web framework.
Python - IronPython support   15.9.18254.1
Provides templates and integration for IronPython-based projects.
Python - Profiling support   15.9.18254.1
Profiling support for Python projects.
R Tools for Visual Studio   1.3.40517.1016
Provides project system, R Interactive window, plotting, and more for the R programming language.
ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools   15.1.61810.11040
Microsoft SQL Server Data Tools
Syntax Visualizer   1.0
An extension for visualizing Roslyn SyntaxTrees.
Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.
ToolWindowHostedEditor   1.0
Hosting json editor into a tool window
TypeScript Tools   15.9.20918.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.2 for F# 4.5   <IP_ADDRESS>.  Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 for F# 4.5
Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Apache Cordova   15.123.7408.1
Visual Studio Tools for Apache Cordova
Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake
Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers
Visual Studio Tools for Unity   <IP_ADDRESS>
Visual Studio Tools for Unity
Visual Studio Tools for Universal Windows Apps   15.0.28301.59
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac   1.0
Mac Extension for Visual Studio
Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Xamarin   <IP_ADDRESS> (d15-9@7b34d2bf1)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer   4.16.11 (fb8990483)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates   1.1.127 (e975299)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK   <IP_ADDRESS> (HEAD/61d16aa23)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK   <IP_ADDRESS> (f2a05ed)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

sorry missing entry in the cache file might be the issue, how can i regenerate or and add
Package Microsoft.Build

I am not sure which cache file are you referring to. Is this something that you are still facing?


MudSlider wrong value

Hello,
In the product page, the MaximumRate is set to 9999, when moving left the slider one step, the value is 99.

Hi,
Maybe the mudslider is not the best option for determining a range for the rates.
However, it can be fixed by adding Min & Max attributes to the Mudslider. Consider also a step attribute.
 <MudSlider T="decimal" @bind-value="SearchMaximumRate" Min="0" Max="9999" Step="100">@L["Maximum Rate"]: @_searchMaximumRate.ToString()</MudSlider>

Hi, Maybe the mudslider is not the best option for determining a range for the rates. However, it can be fixed by adding Min & Max attributes to the Mudslider. Consider also a step attribute.
 <MudSlider T="decimal" @bind-value="SearchMaximumRate" Min="0" Max="9999" Step="100">@L["Maximum Rate"]: @_searchMaximumRate.ToString()</MudSlider>

Thanks, I'll test it.


[Feedback] I found there has an endpoint is http://baidu.com....

I found there has an endpoint is http://baidu.com....

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

ID: ade7805f-ba79-1de6-1a0d-7cc3e221c5d8
Version Independent ID: ade7805f-ba79-1de6-1a0d-7cc3e221c5d8
Content: Debug your Teams app - Teams
Content Source: msteams-platform/toolkit/debug-overview.md
Service: msteams
GitHub Login: @surbhigupta
Microsoft Alias: surbhigupta

@v-npaladugu - Thanks for reporting your issue.
Could you please elaborate more on your requirement?


Add a -system-image flag for full system images

Depends on #5
This would be a custom vagrant box format. It would contain the required disk images as well as a transient config file so the vm can be started with specific defaults.

I no longer think this is worth doing. It is beyond the scope of this tool.


database: Better understand the window of loss (and loss scenarios) for database backups

The database component uses wal-e to ship backups and WAL logs to the deis-store component. Full backups occur by default every 3 hours, and WAL logs are shipped continuously. When a database comes up fresh on a host, it first asks WAL-e if there are any backups to restore. If so, it restores the backup and then begins to replay the WAL logs that were written since the backup.
There is potentially a small window of loss here if the database component should exit before the last WAL log is written to disk. Additionally, users (including @lorieri) have occasionally reported loss of some data when upgrading Deis or otherwise performing a database restore. We test Deis platform upgrades for every Deis release, and this includes a database restore. However, the amount of data we're storing is not large. There is likely either a larger loss window than we think, or other causes of data loss.
Ceph doesn't seem to be the blame, as registry data (which is also stored in Ceph) is reported to be fully intact. This points to a combination of the database backup loop logic and wal-e itself. We should so some investigation to better attempt to replicate what users are sometimes seeing in real-world environments.
Somewhat related is the fragility of the backup loop in the bin/boot script: #2741

Today I restarted the cluster, I started ceph in order (monitor, daemon, metadata, volume, gateway)
same happened, last app created did not appears in deis apps

This should be re-evaluated after #2741 -- that reimplementation of the /bin/boot scripts is something we want to do as soon as possible, and that work will affect the findings from this.

Hi,
I was thinking in something
lets say I start my database in machine A, it will create a database volume on A.
then A goes down, database will be migrate to B and gets backups from the gateway.
then all machines goes down and database starts on A before the gateway.
will it get the old volume and ignore backups ?

yes, that's what is described in #3128.

:)

The fixes mentioned have been merged into Deis, and several other boundary cases relating to DB restore were found and fixed by the v1.10.1 release. I'm going to close this, but please open a new issue with specifics if something like this recurs with the current Deis v1.11 release.


Change reciter bug

Play any ayah
Change the reciter

And you'll get hear two recitation, segments gone mad as well :)

Yes, I just got this too.


Vim plugin

As part of adding editor integration, could make a vim plugin as in black

Perhaps configuring in some popular plugin would do? For example:

https://github.com/sbdchd/neoformat
https://github.com/chiel92/vim-autoformat

@ashwinvis there is now a self-contained vim plugin: https://github.com/snakemake/snakefmt/blob/master/docs/editor_integration.md#vim.
However, it could be interesting to add support for vim-autoformat in the future. I guess one option is just writing up a section in the editor_integration document saying i)Set up filetype detection ii)Setup formatters and formatdef for the snakemake file type as per https://github.com/chiel92/vim-autoformat#basic-definitions
Another option would be a PR to vim-autoformat itself, but not sure if can add filetype detection for snakemake files there.

I use neoformat and I realized it is as simple as copying black's definition. The only difference was there is no -q / --quiet flag in snakefmt, but it does not seem to matter. It works:
let g:black_linelength=82
let g:neoformat_snakemake_snakefmt = {
        \ 'exe': 'snakefmt',
        \ 'args': ['-l '.g:black_linelength, '-'],
        \ 'stdin': 1,
        \ }

let g:neoformat_enabled_snakemake = ['snakefmt']

To make it work I run :Neoformat in any open file buffer. If you want to mimic this in your plugin you could:
if exists(":Neoformat")
  command! Snakefmt :Neoformat! snakemake snakefmt
endif

Or contribute it upstream into the neofrmat repo.


[5.0.0] Dictionary<Enum, T> Does not Respect Enum Naming Conventions

When generating a schema, a type that exposes a Dictionary where the key is an enum, the name of the key it generates is always what is in code (normally Pascal cased). I feel that this handler should respect the naming conventions of enums.
Expected:
"ServiceResponse": {
  "required": [ "updates"],
  "type": "object",
  "properties": {
    "updates": {
      "required: [],
      "type": "object",
      "properties": {
        "profile": {
          "format": "int64",
          "type": "integer"
        }
      }
    }
  }
}

Actual:
"ServiceResponse": {
  "required": [ "updates"],
  "type": "object",
  "properties": {
    "updates": {
      "required: [],
      "type": "object",
      "properties": {
        "Profile": {
          "format": "int64",
          "type": "integer"
        }
      }
    }
  }
}

C# Classes:
public enum UpdateTypes {
  Profile
}

public class ServiceResponse {
  public IDictionary<UpdateTypes, long> Updates { get; set; }
}

Reference to the code in question:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/e4402e3872462e7e42dc4baa58b7a2a0e0fb3f51/src/Swashbuckle.AspNetCore.Newtonsoft/SchemaGenerator/NewtonsoftDictionaryHandler.cs#L48
Would expect the following code to apply here as well.
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/e4402e3872462e7e42dc4baa58b7a2a0e0fb3f51/src/Swashbuckle.AspNetCore.Newtonsoft/SchemaGenerator/NewtonsoftEnumHandler.cs#L81

Closing - will be tracked in duplicate referenced above.


[New game]: Trivia it !

🎮 Game Request
Game logic and basic description:
This is a Trivia game that tests your knowledge on American RomComs and Shows like Game of Thrones using fun question.
Also, hints are provided to help them guess it.
Point down the features
Game features :

A countdown clock
A tracker for points
Correct answer displayed in case of incorrect answer chosen or time-run-out.

Hence, I request you to assign this issue to me as GSSoC 2023 Contributor. Thank You :)
Select program in which you are contributing
GSSoC 2023
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @harshita-kaushik2  ! Thank you for raising an issue 💗 You have been assigned this issue you can start working on the issue 🎮

Hey @harshita-kaushik2 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


waf.sh - v<IP_ADDRESS> - compile fails on Centos

It needs
sudo yum install pcre-devel
When it tries to compile on line 52,53,54,55
Even when it pcre-devel is installed - it still
`> sudo make -C standalone install >> /dev/null'

config.c: In function ‘process_command_config’:
config.c:1107:5: warning: passing argument 1 of ‘apr_filepath_root’ from incompatible pointer type [enabled by default]
     status = apr_filepath_root(&rootpath, &incpath, APR_FILEPATH_TRUENAME | APR_FILEPATH_NATIVE, ptemp);
     ^
In file included from /usr/include/apr-1/apr_file_io.h:29:0,
                 from /usr/include/apr-1/apr_network_io.h:26,
                 from /usr/include/apr-1/apr_buckets.h:29,
                 from /usr/include/httpd/util_filter.h:26,
                 from /usr/include/httpd/http_core.h:32,
                 from config.c:18:
/usr/include/apr-1/apr_file_info.h:336:27: note: expected ‘const char **’ but argument is of type ‘char **’
 APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
                           ^
config.c:1107:5: warning: passing argument 2 of ‘apr_filepath_root’ from incompatible pointer type [enabled by default]
     status = apr_filepath_root(&rootpath, &incpath, APR_FILEPATH_TRUENAME | APR_FILEPATH_NATIVE, ptemp);
     ^
In file included from /usr/include/apr-1/apr_file_io.h:29:0,
                 from /usr/include/apr-1/apr_network_io.h:26,
                 from /usr/include/apr-1/apr_buckets.h:29,
                 from /usr/include/httpd/util_filter.h:26,
                 from /usr/include/httpd/http_core.h:32,
                 from config.c:18:
/usr/include/apr-1/apr_file_info.h:336:27: note: expected ‘const char **’ but argument is of type ‘char **’
 APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
                           ^
[root@localhost modsecurity]#
`

Is this for Ubuntu or Centos.
The problem begins at the start when you do not want to post the result of what it finds.
`#!/bin/bash

for ARGUMENT in "$@"
do

    KEY=$(echo $ARGUMENT | cut -f1 -d=)
    VALUE=$(echo $ARGUMENT | cut -f2 -d=)

    case "$KEY" in
            PROXY)              PROXY=${VALUE} ;;
            VERSION)            VERSION=${VALUE} ;;
            HAPROXY_PATH)       HAPROXY_PATH=${VALUE} ;;
            *)
    esac

done
VERSION=$(echo $VERSION | awk -F"-" '{print $1}')
VERSION_MAJ=$(echo $VERSION | awk -F"." '{print $1"."$2}')

if (( $(awk 'BEGIN {print ("'$VERSION'" < "'1.8'")}') )); then
	echo 'error: Need HAProxy version 1.8 or later X'
	exit 1
`

The system is running
[root@localhost modsecurity]# haproxy -v
HA-Proxy version 1.8.17 2019/01/08
Copyright 2000-2019 Willy Tarreau<EMAIL_ADDRESS>

So according to your text, it should work, but it does not.
This error breaks the system, and I have to go back to an older version, where I fixed some of these errors.
The application design flaw and added complexity comes when you add Centos and Ubuntu in the same code.
Actually your code design requires that Centos fails on apt-get, but they are similar on Bash commands which leads to this problem.
You have to maintain control and have Ubuntu for Ubuntu and Centos for Epel/Redhat.

How says in Readme with Ubuntu maybe problem.... And will be better if you do fork and pull request with your changes instead of write here large, angry posts

I am not angry, only frustrated.

Ok, instead of write here frustrated posts

How can I write to you without beeing angry/frustrated, can I beta test your application development, I have a real production enviroment to do it in.
So what do you need from me?

There is simple guide how create polite issues:
Hi, your project is [cool,good, awesome,normal] but I have some problem. Can you help to solve me?

or
I have some problem there are solution how to solve them. Check out please

This is free project and no one sponsor it. And I don't want to read angry/frustrated posts. With that kind of posts I will do nothing to solve your problems. Or if you want to write angry/frustrated posts pay me and I will solve your problems with patience and smile

I cannot pay you, but you are not reading it correctly as I newer intended to be angry.
Frustrated yes, as I believed that your development was all about fixing issues.

Yes, to all about fixing my issues. If it will fix your problems I will be happy, if not, than ok

Many many thanks for the updates :-) :-)
You are the best
I will try them out.

Sarcasm I don't like too )


App is allowing access even if user is not assigned

I configured the application following the tutorial and added a new user to the directory. If I go to the Application in the Azure portal and go to the Users section, I see the user I added to the directory and the Assigned status is set to No, but I am still able to sign in with this user and access the application. What is the purpose of the Assigned flag if it does not prevent them from accessing the app?

Currently, the assigned flag will put the app onto the user's access panel.  It does not block who can access the application - this is functionality we are working on.

Hi Stuart. Thanks for responding.
So if I am understanding correctly, right now any authorization rules need to be handled on a per application basis? It cannot be controlled via the directory?
Travis Ellis
Solution Consultant
Office:<PHONE_NUMBER> x117
Mobile:<PHONE_NUMBER>
Deliveron Consulting Services
[cid:image015.png@01CF0620.0729E520]http://www.deliveron.com/
[cid:image016.png@01CF0620.0729E520]https://www.facebook.com/deliveron
[cid:image017.png@01CF0620.0729E520]https://twitter.com/deliveron
[cid:image018.png@01CF0620.0729E520]http://www.linkedin.com/company/deliveron-consulting-services
From: Stuart Kwan<EMAIL_ADDRESS>Sent: Thursday, January 22, 2015 12:47 PM
To: AzureADSamples/WebApp-OpenIDConnect-DotNet
Cc: Travis Ellis
Subject: Re: [WebApp-OpenIDConnect-DotNet] App is allowing access even if user is not assigned (#13)
Currently, the assigned flag will put the app onto the user's access panel. It does not block who can access the application - this is functionality we are working on.
—
Reply to this email directly or view it on GitHubhttps://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/13#issuecomment-71074982.

That's correct - you must handle authorization in your application right now.


Throw on module collision

Summary
Add throwOnModuleCollision option to jest-haste-map. Setting this to true will cause it to throw an error (rather than output a warning to console) when a module name collision is detected. This is useful for scenarios where determinism is critical.
Test plan
npm test

Current coverage is 87.74% (diff: 100%)

Merging #1750 into master will increase coverage by 0.02%

@@             master      #1750   diff @@
==========================================
  Files            31         31
  Lines          1181       1183     +2
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1036       1038     +2
  Misses          145        145
  Partials          0          0

Powered by Codecov. Last update 047144b...e2f5ce4

nice work!


Link the Telegram chat in the README

Assign me @joshklop

Thanks for offering to work on this @lazyfuhrer. If we could have an clickable Telegram icon similar to the Discord and Twitter icons, that would be amazing.

Can you provide me the telegram link and also in which branch should I make the PR ?

Link: https://t.me/+skAz9cUvo_AzZWM8
Any branch name is fine. Maybe lazyfuhrer/tg?

I've opened a PR at #932 please review


Fix high ram usage (#33)

Attempt to fix browser crash by filtering text on the database side.
Crashes are likely caused by excessive memory usage.
query.filter() limits RAM usage caused by query.toArray()
Previous queries are now aborted so that less memory is used and the performance is better.
I set 3 characters as the minimum when searching all categories.
Tested on Chrome and Firefox

Previous queries are now aborted

I tried using cancellableDexieQuery() but it was throwing exceptions I couldn't figure out so I used https://dexie.org/docs/Collection/Collection.until()

Seems to be working. Thanks!


Habitat package for Windows not working with powershell DLL

The Powershell shim DLL that makes powershell_exec able to talk to the system .net/PS does not work on Habitat which means we can't convert resources to use powershell_exec and any community written resources for powershell_exec will fail in Effortless.
Aha! Link: https://chef.aha.io/features/SH-110

Some work was done on the DLL in #9739. @mwrock looked at this last night and determined that the DLL was able to be located with that change, but it wasn't in a location that met the .net rules for where libraries could be. As of last night, it looked likely we would have to dirty the ruby package with the DLL to satisfy .net.

To elaborate further here, there are 2 key DLLs chef.powershell.wrapper.dll and chef.powershell.dll. The first is a small wrapper written in native C++ that simply fires up a .Net environment and loads the latter managed C# DLL that does the actual powershell wireup. With the ruby_dll_path set in the referenced PR, ruby can load the wrapper DLL but .Net has its own rules for locating assemblies (DLLs) that is not influenced by environment variables. By default, it will look in the GAC or in the same directory as the binary that owns the process - ruby.exe. The GAC is really not a great option for us because it is a global registry.
Today I'm going to investigate having the native wrapper start .net  and load the managed dll into a custom app domain where it can configure the codebase where .net will probe for assemblies. I know how to do that in C# but will need to do some studying on how to do from unmanaged code.
If that looks untenable, I do think the GAC is better than copying the DLL into the ruby package. We could have an install hook do the GAC registration but if we could provide a hint to the .net runtime with an alternative path for loading assemblies pointing to the same directory that holds the wrapper, that is the best option.

This should be fixed by https://github.com/chef/chef-powershell-shim/pull/11 and https://github.com/chef/chef/pull/10022.


feat(bundler-vite): improve chunk split

This should work, I found the reason why it breaks in user env.
@vuepress/client generate temp files for clientConfigs, and it includes all client entry of other plugins and theme, so rollup will think those shall all included in ventor chunk.
If we only split Vue, VueRouter and @vuepress/shared to framework, everything will be fine, and we split out a 80kb chunk to avoid update per deploy.
I try to read from app.dir.temp() and omit those internal files output @vuepress/client, but in that casae @vuepress/client becomes very "slim", and I personally think it's not worth spliting it in that case. Our main goal is to split out vue, vue-router and plugin:vite-helper as the first and second is large in app.js and the third one can actauly increase the final size if it's generated as a chunk by rollup


Do we even need to have the directory account marked as bot? After all there's no automation involved.

The directory is maintained fully manually, the bot has zero capabilities to do anything by itself and it's marked as a bot only because we use a github sync tool connected to a post made by this account to allow more people working on the directory. There are people that have bot visibility turned off and will miss the directory because of that.

Hmm, it's a bit of a grey area. Maybe ask the server admin if they're ok with that?

Admin said that that automatic copy/paste of the markdown into the body even though I'm spending hours on it and the automation saves a few minutes at most make the account a bot. Closed. :3

We got a green light to be exempted from bot status.

Well, I closed it before we even finished the task... Bringing it back now. xD

I've unset the bot setting as I was in there to create the 2nd directory post.  I've put a note in the bio as to what it is used for and that we have permission for it to not be marked as a bot.

Bringing it back because I want to change the wording a bit later. :3

Changed my mind on the wording. It should be alright.


Add 'encryptionKMSID' for 'Attach Storage' form

Follow-up of https://github.com/red-hat-storage/odf-console/pull/1662
https://issues.redhat.com/browse/DFBUGS-908

LGTM. @bipuladh @GowthamShanmugam @vbnrh to tag.

/cherry-pick release-4.18

/cherry-pick release-4.18-compatibility


Add more filters to user management

[ ] sort
[ ] filter for roles

Duplicate of https://github.com/fsr5-fhaachen/portals/issues/501


Labels for color settings is misaligned (PhotoshopPicker)

The labels for the color settings don't line up and the last one overlays the hex label.  This is for the photoshop picker.

you can change the style to resolve the problem


Maintain whitespace option on next/previous in review mode.

I'm curious if you'd review a pull request which would allow the preservation of the "whitespace" option (if it's enabled) when navigating individual commits using the "Next" and "Previous" buttons (n and p shortcuts) in review mode.  Presently, when using the "No whitespace" (w=1) option, it has to be re-enabled on each additional commit.

👍 Makes sense.


Regenerating The Session ID

Required to prevent session fixation: https://laravel.com/docs/10.x/session#regenerating-the-session-id

Thanks!


Detect likelihood in sqli rules

BB finding HOH7M88Q:
email=admin%40juice-sh.op\'%20and(%20likelihood%20(id,.0));'
Comment: Do a review of SQlite functions, are there more?

@franbuehler Did you had time to take a look at SQLite functions?


Add bq-jdbc-hikaricp-instrumented module

Ref: #69

Set<Class<? extends ManagedDataSourceFactory>> collapsedSet = new HashSet<>(set);
for (Class<? extends ManagedDataSourceFactory> factory : set) {
    if (factory.getSuperclass() != Object.class) {
        collapsedSet.remove(factory.getSuperclass());
    }
}

In the code above we are either implicitly relying on a certain order of classes in a set, or are ignoring a possibility of multiple levels of inheritance (A extends B extends C extends Object)

(deleted my earlier comment; at a closer look collapseSet method looks correct.

A few notes...
Mutable injectable object
private void addHealthChecks(Injector injector, HikariDataSource ds) {
    HikariCPHealthCheckGroup group = injector.getInstance(HikariCPHealthCheckGroup.class);

    if (health != null) {
        group.getHealthChecks().putAll(health.createHealthChecksMap(injector, ds.getHikariPoolMXBean(), ds.getPoolName()));
    }
}

The code above from HikariCPInstrumentedDataSourceFactory mutates an injectable object (HikariCPHealthCheckGroup). This may potentially result in another user of HikariCPHealthCheckGroup to read the incomplete (empty) map of health checks , depending on initialization order.
There's no easy way to invert this dependency. But perhaps we can take a modified approach from DataSourceHealthCheckGroup. E.g. make Map<String, ManagedDataSourceFactory> injectable, then use it to filter the Hikari data sources out of all data sources, and then create a healthcheck that would resolve the DataSource from the DataSourceManager on every check, and then read its parameters.
Health check naming convention
This hasn't been formalized (and there were some changes recently), but we are trying to follow a certain naming convention for built-in health checks (e.g. bq.jdbc.myDs.canConnect). Hikari checks are using different naming (e.g. myDs.pool.ConnectivityCheck). Let's try to align it with the the emerging convention.

For instrumenting bq-hikaricp, Dropwizard HealthChecks and Dropwizard Metrics supported by HikariCP 2.2.0+ have been  integrated into the new module bq-hikaricp-instrumented.
ConnectivityCheck and Connection99Percent will be configured as follows:
jdbc:
  derby2:
    type: "hikari-instrumented"
    poolName: "test2"
    minimumIdle: 1
    maximumPoolSize: 10
    driverClassName: org.apache.derby.jdbc.EmbeddedDriver
    jdbcUrl: jdbc:derby:target/derby/derby2;create=true
    health:
      connectivityCheckTimeout: 250
      expected99thPercentile: 10

New node health has made us extend HikariCPManagedDataSourceFactory. Generally speaking, the complexity of a data source factories hierarchy can be arbitrary, so that a module can have several bq-jdbc implementations at the same time. Without property typeset in YAML an exception is thrown as expected (doc). To cover such use cases, let's improve auto-detection of an available CP:

cp1<-extend cp1'<-extend cp1'' plugged in -> configs without 'type' are to be mapped on the cp1'' type - the last child in linear hierarchy, the others - on the set 'type'. In case of nonlinear hierarchy - throw an exception.

The issue #72 for this has been created.

In response to Andrus's notes, some improvements done e8a2a16:

follow naming convention for built-in health checks
make Map<String, ManagedDataSourceFactory> injectable


Skipper-azure buffers uploaded file to memory instead of streaming it

From what I read about skipper and skipper-azure, I thought it streams the uploaded file to it's destination (Azure), yet, I monitored sails process and found it buffering the whole file in memory. I'm using the standard code:
req.file('pictures').upload({
      adapter: require('skipper-azure'),
      key: storageAccount,
      secret: accessKey,
      container: 'default'
    }, function(err, files) {
        if(!err) {
            return res.json(cdn + files[0].fd);
        } else {
            return res.send(err);
        }
    });

Do I understand things mistakenly or there is something wrong?
Also, one more thing I notice, after the file upload is done, the memory is not freed-up, as if the uploaded file is still buffered!!

This is very serious, I need your support on this.

this is pretty disheartening

@super-iterator sorry for the VERY late reply, but don't make the mistake of confusing issues in a library for issues within a bigger ecosystem or runtime.
Each language runtime is suited to different use cases with overlaps. Node, for instance, is lightweight, rapidly evolving and strongly asynchronous. It, however, does have limitations, a number of which come from the V8 engine.
In this case, the biggest issue is NodeJS's memory limits but thats also why streams and iterators exist, both of which I'm using to process millions of files in a single Node process, the catch is they are harder to implement and in this case, aren't used or are done incorrectly, which is a library problem not a runtime problem.


WIP: support response handlers customization

closes https://github.com/inveniosoftware/invenio-rdm-records/issues/328

Not needed see https://github.com/inveniosoftware/invenio-rdm-records/issues/328#issuecomment-865915759


Samsung Internet input-group padding

The Samsung Internet Browser -- which is the default browser on Samsung Galaxy phones -- displays inputs in a input-group fluid and a input-group vertical with no padding. I haven't been able to duplicate this behavior on any other browser, so I'm in the process of setting up a debugger for it to pin down exactly what the problem is and if there's a easy fix. Any clues would be lovely. :)

Thanks for reporting this! I would expect it has to do with the flex implementation or something similar in said browser, provided that these .input-groups use this feature. However, this does not happen with aligned forms, as far as I can see, which might disprove my theory in the end. It's highly unlikely that something overrides the padding of the input fields so, if this is not a flexbox implementation bug, it might be a bug in the browser's implementation of input or similar. I'll google around to see if this has been reported anywhere else before, otherwise opening a SO question is our best bet to solve this.
Lately, I've been finding a lot of browser bugs that are specific to native browsers and I'm starting to believe that I will have to move away from Normalize and to something else that does actually provide a better documentation on how those are fixed.

Ok, it's here:
https://github.com/Chalarangelo/mini.css/blob/master/src/mini/_input_control.scss#L115
I think the Samsung browser is interpreting flex-basis: 0 to set the initial width and height of the element to 0 and then nothing ever gives it any height except the border and the padding. My flexbox skills only go as far as flexbox froggy, so I'm not sure what the ultimate solution is. However, flex-basis: auto seemingly fixes it without any side effects for my case.

Will test and, if I don't find any issues with it, I will apply flex-basis: auto as suggested I don't see anything that can actually go wrong, but I need to make sure. I'll keep you posted!

Ok. Thanks a lot! I'm working it around it pretty easily now, so no worries if you can't fix it. I'm guessing it's an old Chromium bug when Samsung forked that they never patched.

This has been addressed in #83 with a quick and simple fix. Just update to the latest version (I will release it in a little bit) and you shall be good to go!


Use lightweight SQLAlchemy expressions to operate on unbound tables

Closes #861

Sweet, this looks good. Let me have a look at the pytest refactor to get that in before things diverge too much


Unicode issues

Describe the bug
nvim-cmp fails completing "árbol" from "arbol", this suggestions are provided by the spell source, using spelllang=es nvim provides "árbol" as the first completion item but cmp is filtering it.
Minimal config based on this
if has('vim_starting')
  set encoding=utf-8
endif
scriptencoding utf-8

if &compatible
  set nocompatible
endif

let s:plug_dir = expand('/tmp/plugged/vim-plug')
if !filereadable(s:plug_dir .. '/plug.vim')
  execute printf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir)
end

execute 'set runtimepath+=' . s:plug_dir
call plug#begin(s:plug_dir)
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/vim-vsnip'
Plug 'neovim/nvim-lspconfig'
Plug 'f3fora/cmp-spell'

call plug#end()
PlugInstall | quit

" Setup global configuration. More on configuration below.
lua << EOF
local cmp = require "cmp"
cmp.setup {
  snippet = {
    expand = function(args)
      vim.fn["vsnip#anonymous"](args.body)
    end,
  },

  mapping = {
    ['<CR>'] = cmp.mapping.confirm({ select = true }),
    ['<CR>'] = cmp.mapping.complete()
  },

  sources = {
    { name = "spell" },
    { name = "nvim_lsp" },
    { name = "buffer" },
  },
}
EOF

lua << EOF
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())

require'lspconfig'.cssls.setup {
  capabilities = capabilities,
}
EOF

set spell
set spelllang=es

To Reproduce

nvim -u vimrc.vim
enter in insert mode un arbol

Expected behavior
First completion candidate should be fixing the spelling error, changing arbol -> árbol you can see this behavior using spelling suggestions <C-x>s in the case of cmp it doesn't even show árbol it's being filtered.
Additional context
I tried making sure it was not an issue with keyword pattern, sets it to \K\+ which matches [arbol, árbol] no problem.
Using print to debug a bit nvim-cmp, I manage to see that cmp is bailing out on árbol as completion because it doesn't find any matches. Right here
https://github.com/hrsh7th/nvim-cmp/blob/b10bb327f3909a215d65bc30b10cef3aaed5459b/lua/cmp/matcher.lua#L109

@muniter nvim-cmp's default keyword-pattern does not accept any multibyte chars because it sometimes problematic.
You can use \k\+ as keyword pattern via the following config.
cmp.setup {
  completion = {
    keyword_pattern = [[\k\+]]
  }
}

@hrsh7th thanks for the reply, but I've tried that and still have the same issue, also tried setting it to the spell source with the same result. Seems like cmp is filtering things it shouldn't another example "comunicacion -> comunicación" but you don't see that entry on cmp.

@dmitmel there's :help /\%Cto skip composing characters and :help /\Z

ah. I understand your problem.
Sorry. nvim-cmp will filter items by checking each bytes.
I have no idea to support it...

The matching algorithm is here.
Probably, it should be realized by source implementation.

@hrsh7th That's fine, just wanted  to put it out there. Perhaps is something that can be handled at the source level, I really don't know the internals of cmp. But if I remember correctly compe used to handle this, I'll take a look and let you know. Is fine if not supported 👍🏽

Yes. The dource can specify filterText so you can convert á as a.

If I am not mistaken, to convert for the general case like this you need to perform NFD normalization and then remove all combining characters. Here is how you do it in Python, but with a 3rd-party library. This needs to be done because there are actually multiple ways of encoding á: either as a single 2-byte character (btw Vim's \%C can't do anything about this exact method of encoding), or as an ASCII a with a combining character, and also there is some third way. NFD normalization rewrites the input string to use only one of those methods (a with a combining character), after which you can easily remove the unnecessary accents and so on (they have character class Mn).
Although, I guess that if you are just going to do that for Spanish, you can make a function which uses vim.fn.strchars and vim.fn.strgetchar (or something like that) to decode a UTF-8 string into characters and make a table which maps characters with accents which Spanish uses to English letters. I can't give a ready snippet because I haven't worked with multibyte strings with Vimscript functions much, sorry.
Also, if this discussion was about some legal things I would say "I am not a lawyer", but it is about Unicode, so I will say "I am not a Unicode expert" :slightly_smiling_face:

Thanks for the answers @dmitmel @hrsh7th I've managed to solve my usecase by just adding "filterText" with a littile filterText = v:gsub([[á]], [[a]]) on the spell source, thankfully there's not many variations in spanish which is what I need áÁéÉíÍóÓúÚ  😄 If cmp wasn't so awesome there wouldn't be filterText

Just posting in case someone finds this. Did the following to cmp-spell
diff --git a/lua/cmp-spell/init.lua b/lua/cmp-spell/init.lua
index 28325e2..1fbdda0 100644
--- a/lua/cmp-spell/init.lua
+++ b/lua/cmp-spell/init.lua
@@ -12,10 +12,35 @@ function source:get_keyword_pattern()
     return [[\K\+]]
 end

+local reg = vim.regex("[áÁéÉíÍóÓúÚ]")
+local replacements = {
+  ["á"] = "a",
+  ["Á"] = "A",
+  ["é"] = "e",
+  ["É"] = "E",
+  ["í"] = "i",
+  ["Í"] = "I",
+  ["ó"] = "o",
+  ["Ó"] = "O",
+  ["ú"] = "u",
+  ["Ú"] = "U",
+}
+function source:accents_filtertext(label)
+  if reg:match_str(label) then
+    for acc,unacc in pairs(replacements) do
+      local repl, n = label:gsub(acc, unacc)
+      if n > 0 then  -- Bail after the first substitution
+        return repl
+      end
+    end
+  end
+  return nil
+end
+
 local function candidates(entries)
     local items = {}
     for k, v in ipairs(entries) do
-        items[k] = { label = v }
+        items[k] = { label = v, filterText = source:accents_filtertext(v) }
     end
     return items
 end

Spanish only has one accent per word so bailing out in the first substitution makes things faster.

Hmmm I think you can do it without patching the source code of the original plugin:
local cmp_spell = require('cmp-spell')

local reg = vim.regex("[áÁéÉíÍóÓúÚ]")
local replacements = {
  ["á"] = "a",
  ["Á"] = "A",
  ["é"] = "e",
  ["É"] = "E",
  ["í"] = "i",
  ["Í"] = "I",
  ["ó"] = "o",
  ["Ó"] = "O",
  ["ú"] = "u",
  ["Ú"] = "U",
}
function source:accents_filtertext(label)
  if reg:match_str(label) then
    for acc,unacc in pairs(replacements) do
      local repl, n = label:gsub(acc, unacc)
      if n > 0 then  -- Bail after the first substitution
        return repl
      end
    end
  end
  return nil
end

local orig_complete = cmp_spell.complete
function cmp_spell:complete(request, callback, ...)
  return orig_complete(request, function(result, ...)
    for _, item in ipairs(result.items) do
      item.filterText = cmp_spell:accents_filtertext(item.label)
    end
    return callback(result, ...)
  end, ...)
end

{ name = 'buffer', preprocess = function(response) return response end } might be useful?

@hrsh7th That could be really useful, but at the same time It would be better for the sources to implement it, since adding the preprocess after calling source:complete means iterating over all the entries once more.

Having the same issue. It would be awesome to have that implemented by default or, at least, have some handy flag in the lua config to give that behavior without me having to implement it.
Awesome plugin btw :D

Same issue after migration from compe. In compe, set
require'compe'.setup {default_pattern = [[\k\+]]}

works. In cmp, I tried
cmp.setup({
  sources = cmp.config.sources({{name = 'buffer', keyword_pattern = [[\k\+]]}}),
  completion = {keyword_pattern = [[\k\+]]},
})

But nothing changes.

sources = cmp.config.sources({{name = 'buffer', option = { keyword_pattern = [[\k\+]]}}}),

Still not work。Buffer contains 本地通知. I type 本 then <Tab>.
  use {
    'hrsh7th/nvim-cmp',
    requires = {
      'hrsh7th/cmp-path', 'hrsh7th/cmp-cmdline', 'hrsh7th/cmp-nvim-lsp',
      'andersevenrud/cmp-tmux', 'dcampos/cmp-snippy', 'dcampos/nvim-snippy',
    },
    config = function()
      vim.o.completeopt = "menu,menuone,noselect"
      local snippy = require("snippy")
      local cmp = require 'cmp'
      local has_words_before = function()
        local line, col = unpack(vim.api.nvim_win_get_cursor(0))
        return col ~= 0 and
                 vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col,
                                                                            col)
                   :match("%s") == nil
      end
      cmp.setup({
        snippet = {
          expand = function(args)
            require'snippy'.expand_snippet(args.body) -- For `snippy` users.
          end,
        },
        mapping = {
          ['<c-l>'] = cmp.mapping(function(fallback)
            if snippy.can_expand_or_advance() then
              snippy.expand_or_advance()
            else
              fallback()
            end
          end, {"i", "s"}),
          ['<c-h>'] = cmp.mapping(function(fallback)
            if snippy.snippy.can_jump(-1) then
              snippy.previous()
            else
              fallback()
            end
          end, {"i", "s"}),
          ["<Tab>"] = cmp.mapping(function(fallback)
            if cmp.visible() then
              cmp.select_next_item()
            elseif snippy.can_expand_or_advance() then
              snippy.expand_or_advance()
            elseif has_words_before() then
              cmp.complete()
            else
              fallback()
            end
          end, {"i", "s"}),

          ["<S-Tab>"] = cmp.mapping(function(fallback)
            if cmp.visible() then
              cmp.select_prev_item()
            elseif snippy.can_jump(-1) then
              snippy.previous()
            else
              fallback()
            end
          end, {"i", "s"}),
          ['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), {'i', 'c'}),
          ['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), {'i', 'c'}),
          ['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), {'i', 'c'}),
          ['<C-y>'] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
          ['<C-e>'] = cmp.mapping({
            i = cmp.mapping.abort(),
            c = cmp.mapping.close(),
          }),
          -- Accept currently selected item. If none selected, `select` first item.
          -- Set `select` to `false` to only confirm explicitly selected items.
          ['<CR>'] = cmp.mapping.confirm({select = false}),
        },
        sources = cmp.config.sources({
          {name = 'snippy'}, {name = 'nvim_lsp'},
          {name = 'buffer', option = { keyword_pattern = [[\k\+]]}}, {name = 'path'},
          {name = 'tmux'},
        }),
        completion = {keyword_pattern = [[\k\+]]},
      })

      -- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
      cmp.setup.cmdline('/', {sources = {{name = 'buffer'}}})

      -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
      cmp.setup.cmdline(':', {
        sources = cmp.config.sources({{name = 'path'}}, {{name = 'cmdline'}}),
      })

    end,
  }

Thank you very much for the fix :smile:

sources = cmp.config.sources({{name = 'buffer', option = { keyword_pattern = [[\k\+]]}}}),

Please add this as a default setting for all us Unicode users :sweat_smile: otherwise nvim-cmp doesn't work with Cyrillic.

Please add this as a default setting for all us Unicode users 😅 otherwise nvim-cmp doesn't work with Cyrillic.

Thank you! I was looking for this. Now I can peacefully write in both languages (with autocompletion) with nvim-cmp (I transitioned from coc.nvim).

Since I'm new to nvim-cmp, can someone tell me how to enable both LSP autocompletion and plain text autocompletion? Because when I add
  sources = {
    {
      name = "buffer",
      option = {
        keyword_pattern = [[\k\+]],
      },
    },
  },

To my nvim-cmp setup config I can now reuse words that are already present in the file, but on the other hand I now can't use autocompletion from an LSP server. The practical reason to use both (if it even needs a reason) is Typst, where you can both write code and text in the same file.

I was able to fix my issue with:
  sources = {
    { name = "nvim_lsp" },
    {
      name = "buffer",
      option = {
        keyword_pattern = [[\k\+]],
      },
    },
  },

i have this as my cmp config
return {
  {
    "hrsh7th/nvim-cmp",
    dependencies = { "hrsh7th/cmp-emoji" },
    opts = function(_, opts)
      table.insert(opts.sources, { name = "emoji" })
      table.insert(opts.sources, { name = "orgmode" })
      table.insert(opts.sources, { name = "buffer", option = { keyword_pattern = [[\k\+]] } })
      opts.window = {
        documentation = {
          border = "rounded",
          winhighlight = "Normal:MyHighlight",
          winblend = 0,
        },
      }
    end,
  },
}

but i still can't autocomplete cyrillic text


brew: add DBus session address to browser env

Otherwise brew deps --graph will fail to launch Firefox on Linux (and probably all other browsers or utilities that rely on DBus for IPC).
Fixes https://github.com/Homebrew/brew/issues/12881.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

Review period will end on 2022-02-18 at 04:06:29 UTC.

Review period skipped due to critical label.


[SEQ-1855] Can't leave frame comments on timeline (only range)

From SyncLinear.com | SEQ-1855

Hmm weird I literally couldn’t do it—will test some more and get back to you


improving Gridcoin presence on steemit

 Issue by Erkan-Yilmaz
Wednesday Feb 08, 2017 at 21:35 GMT
Originally opened as https://github.com/Erkan-Yilmaz/Gridcoin-tasks/issues/84

These can be separated later on as own tasks, first let's see which useful, ...
pinging: @grctest

go on steem radio channels/streams

see task: go to other coins' conference calls/meetups/podcasts

promotion/boost on steemit

to get into popular lists/pages

make own Gridcoin steemit web frontend for the steemit backend

has only Gridcoin content then (or also selected others)
web dev needed

join some steem upvote groups
(use tags in posts more)

The effects of above may be increased/attention when combined with:

creating a Gridcoin witness: #85

Mentioned in hangout 8.

 Comment by grctest
Friday Apr 21, 2017 at 19:19 GMT

I've created https://beyondboinc.net to help improve Gridcoin's presence on Steemit.
I'll customize it to promote BOINC/Gridcoin in the navigation bar.

I think we've done well getting Gridcoin promoted/active/trending on steemit, don't think this needs a task anymore.


How do you draw the pie chart?

Hi, I see this image:
https://github.com/Blake-Madden/Wisteria-Dataviz/blob/main/docs/doxygen/images/DonutChart.svg
I just want to now how do you draw the portion of a ring?
I have looked at the source code:  Wisteria-Dataviz/piechart.cpp at 6670a45def9539e25f8be0e7c84763ffd202d2ce · Blake-Madden/Wisteria-Dataviz
I see it only have some GDI call like "dc.DrawEllipticArc".
I have a similar question in wx forum, see here: How to draw a portion of a ring?
So, do you use the pen which has the property set like:  pen.SetCap(wxCAP_BUTT);  or you use other method?
Thanks.

DrawEllipticArc draws the outer-arc line with the current pen (yes, I believe wxCAP_BUTT is recommended).  It then fills from the outer ring to the pie center with the current brush. To draw the lines from the start and end points of the outer arc, I have to use geometry::arc_vertex and manually draw those lines with the current pen.
Unfortunately, this will always give you a full pie slice (filled with the brush).  To create the illusion of a ring, I draw another pie slice (with a smaller bounding box) on top of the larger slice.  Making the inner slice the same background color as the plot gives the illusion that the center of the pie chart is hollow.
I originally tried calling DrawEllipticArc for an outer ring, then again for an inner ring and then flood filling that area.  (That would draw a true outer ring, like what I think you are looking for).  Unfortunately, flood filling is not available on macOS, so I couldn't rely on that method.

DrawEllipticArc draws the outer-arc line with the current pen (yes, I believe wxCAP_BUTT is recommended). It then fills from the outer ring to the pie center with the current brush. To draw the lines from the start and end points of the outer arc back to the center point, I have to use geometry::arc_vertex and manually draw those lines with the current pen.
Unfortunately, this will always give you a full pie slice (filled with the brush). To create the illusion of a ring, I draw another pie slice (with a smaller bounding box) on top of the larger slice. Making the inner slice use the same background color as the plot gives the illusion that the center of the pie chart is hollow.

Thanks for the explanation. I understand the method you use now.

I originally tried calling DrawEllipticArc for an outer ring, then again for an inner ring and then flood filling that area. (That would draw a true outer ring, like what I think you are looking for). Unfortunately, flood filling is not available on macOS, so I couldn't rely on that method.

In-fact, I haven't used wxDC::FloodFill before. From the document wxWidgets: wxDC Class Reference, it said:

The present implementation for non-Windows platforms may fail to find colour borders if the pixels do not match the colour exactly. However the function will still return true.
This method shouldn't be used with wxPaintDC under non-Windows platforms as it uses GetPixel() internally and this may give wrong results, notably in wxGTK. If you need to flood fill wxPaintDC, create a temporary wxMemoryDC, flood fill it and then blit it to, or draw as a bitmap on, wxPaintDC. See the example of doing this in the drawing sample and wxBufferedPaintDC class.

So, it may not work under non-Windows OS.
In my post in wxWidgets forum, some one suggest I should use wxGraphicsPath way, and that maybe another alternative.

You can fill a wxGraphicsPath, although you have to specify the points in the pie slice polygon to do that. So, you won't be able to use DrawEllipticArc; you would need to provide a Bezier curve in your polygon instead. In other words, use geometry::arc_vertex to get the corners of a slice and use Bezier curves between those to create the wxGraphicsPath. Seems like a lot of work and not sure how precise the curve would look, but that could be a solution.

I haven't used Bezier curve before, it looks like a complex task. But the below code works, it use some function calls like "path.AddArc" and "path.AddLineToPoint".
#include <wx/wx.h>
#include <wx/graphics.h>
#include <math.h>

class MyFrame : public wxFrame
{
public:
    MyFrame()
        : wxFrame(NULL, wxID_ANY, wxT("Annular Sector"), wxDefaultPosition, wxSize(640, 480))
    {
        Connect(wxEVT_PAINT, wxPaintEventHandler(MyFrame::OnPaint));
    }

private:
    void OnPaint(wxPaintEvent& event)
    {
        wxPaintDC pdc(this);
        wxGraphicsContext* gc = wxGraphicsContext::Create(pdc);

        if (gc)
        {
            gc->SetPen(wxPen(wxColor(255, 0, 0), 2));       // set the pen color and width
            gc->SetBrush(wxBrush(wxColor(255, 255, 0)));   // set the brush color

            // define the outer and inner radii of the annular sector
            const double r1 = 100.0;
            const double r2 = 60.0;

            // define the start and end angles of the annular sector, in radians
            const double startAngle = M_PI / 3.0;
            const double endAngle = 2.0 * M_PI / 3.0;

            wxPoint center;
            center.x = GetClientSize().GetWidth() / 2;
            center.y = GetClientSize().GetHeight() / 2;

            // calculate the coordinate of each endpoint of the annular sector
            wxPoint pt1, pt2, pt3, pt4;
            pt1.x = static_cast<int>(center.x + r1 * cos(startAngle));
            pt1.y = static_cast<int>(center.y - r1 * sin(startAngle));
            pt2.x = static_cast<int>(center.x + r1 * cos(endAngle));
            pt2.y = static_cast<int>(center.y - r1 * sin(endAngle));
            pt3.x = static_cast<int>(center.x + r2 * cos(endAngle));
            pt3.y = static_cast<int>(center.y - r2 * sin(endAngle));
            pt4.x = static_cast<int>(center.x + r2 * cos(startAngle));
            pt4.y = static_cast<int>(center.y - r2 * sin(startAngle));

            // create a graphics path object from the coordinate of each endpoint and draw it
            wxGraphicsPath path = gc->CreatePath();
            path.MoveToPoint(pt1.x, pt1.y);

            //path.AddLineToPoint(pt2.x, pt2.y);
            //path.AddLineToPoint(pt3.x, pt3.y);
            //path.AddLineToPoint(pt4.x, pt4.y);
            //path.AddLineToPoint(pt1.x, pt1.y);

            path.AddArc(center.x, center.y, static_cast<float>(r1), 2*M_PI - static_cast<float>(startAngle), 2*M_PI - static_cast<float>(endAngle), false);
            path.AddLineToPoint(pt3.x, pt3.y);
            path.AddArc(center.x, center.y, static_cast<float>(r2), 2*M_PI - static_cast<float>(endAngle), 2*M_PI - static_cast<float>(startAngle), true);
            path.AddLineToPoint(pt1.x, pt1.y);

            path.CloseSubpath();
            gc->FillPath(path);

            delete gc;
        }
    }
};

class MyApp : public wxApp
{
public:
    virtual bool OnInit()
    {
        MyFrame* frame = new MyFrame();
        frame->Show();
        return true;
    }
};

IMPLEMENT_APP(MyApp);

I have post the above code and screen shot in the forum: How to draw a portion of a ring? - wxWidgets Discussion Forum. I'm not sure such code works under macOS.

Nice.  It should be fine on all platforms. As far as I know, floodfill is the only drawing feature not available on macOS.
P.S.
Bezier curves requite a lot of...trial and error, shall we say.  If you're curious, I use them in the "shapes.cpp" file, where I draw male and female outlines.


Update stringify test to be more explicit about arguments

Updates the stringify test to make it more clear what is happening with the JSON.stringify usage. I've made the two tests more aligned and included the whitespace in the second test.
@mkelleyharris I understand what you are saying about the arcane parameters accepted by the stringify function. null, 2 makes no sense to anyone. I'd also hesitate to lock down the whitespace change in a specific keyword as there is more functionality that potentially could be used.

Hi Edwin - Thanks for your kind efforts to help me understand it. Going forward I'll defer to the projects' conventions re language-specific choices, docstrings, etc.   Thanks again. -- Kelley

Hello Kelley,
I think I should have marked that PR as draft. I am trying to understand the conventions of the repo, myself! I'm new to deno and the ecosystem and I appreciate any guidance you might have.
Thanks,
Ed


How to hide icon showing file status as (M: modified, U: untracked ... ) ?

🚨 The issue tracker is not for questions 🚨
If you have a question, please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code.

Hi @abhijais2, to keep our work manageable, we ask that issues created in this repository be either bug reports of features requests. In the future, please submit questions to stackoverflow.
You can use set the "git.decorations.enabled" setting to false to remove the file statuses from the file explorer.


Gitignore

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Style cleanup

This PR makes the clickable targets bigger, normalizes spacing and alignment, removes unnecessary properties.
Closes #1

This PR makes the clickable targets bigger, normalizes spacing and alignment, removes unnecessary properties.

Thank you very much, new version published.

Great! I'll send more updates later 🙂


Multivariate regression task

Issue description
Hello, thank you for your amazing work. I would like to use PyPOTS in my research with timeseries.
I woud like to train a model to predict 3D timeseries from other  differents 3D timeseries. My goal is to use timeseries of shape (batch_size, len_size, input_features) to predict differents timeseries of shape (batch_size, len_size, output_features) with input_features different from output_features (no commun features). Is it possible to do so as this type of problem is not exaclty seen as forcasting and if possible how should I start ?
Thnaks in advance

@IKetchup Thanks for your attention to our work. So far there is no model in PyPOTS supporting such a task. But we will add one soon. Please stay tuned, and you can follow me to get notified of updates on all PyPOTS toolkits in the future.


Error: Invalid for_each argument | create_role_assignment_network_contributor

Is there an existing issue for this?

[X] I have searched the existing issues

Greenfield/Brownfield provisioning
greenfield
Terraform Version
1.5.4
Module Version
9.0.0
AzureRM Provider Version
3.109.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster_node_pool
Terraform Configuration Files
module "aks" {
  source  = "Azure/aks/azurerm"
  version = "7.3.2"

  prefix                                     = "example"
  cluster_name                               = var.cluster_name
  enable_auto_scaling                        = true
  agents_pool_name                           = "systempool"
  agents_size                                = var.node_size
  agents_max_count                           = var.node_count.max
  agents_min_count                           = var.node_count.min
  agents_labels                              = var.agents_labels
  agents_taints                              = var.agents_taints
  agents_tags                                = var.agents_tags
  only_critical_addons_enabled               = true
  orchestrator_version                       = var.kubernetes_version
  kubernetes_version                         = var.kubernetes_version
  os_disk_type                               = "Managed"
  os_sku                                     = "Ubuntu"
  temporary_name_for_rotation                = var.temporary_name_for_rotation # enter this value when changing any of the default/system nodepool properties
  vnet_subnet_id                             = var.vnet_subnet_id
  agents_availability_zones                  = var.availability_zones
  resource_group_name                        = var.resource_group_name
  os_disk_size_gb                            = var.os_disk_size_gb
  sku_tier                                   = "Standard"
  node_pools                                 = var.node_pools
  network_plugin                             = "azure"
  network_plugin_mode                        = "overlay"
  net_profile_outbound_type                  = "userAssignedNATGateway"
  role_based_access_control_enabled          = true
  rbac_aad_managed                           = true
  local_account_disabled                     = true
  log_analytics_workspace_enabled            = false
  oidc_issuer_enabled                        = true
  workload_identity_enabled                  = true
  rbac_aad_azure_rbac_enabled                = true
  rbac_aad_admin_group_object_ids            = var.rbac_aad_admin_group_object_ids
  create_role_assignment_network_contributor = var.create_role_assignment_network_contributor
  web_app_routing                            = var.web_app_routing

tfvars variables values
resource_group_name = "staging"

node_size                   = "Standard_D8s_v3"
os_disk_size                = 100
temporary_name_for_rotation = null
environment                 = "staging"
kubernetes_version          = "1.27.9"

agents_labels = {}
agents_taints = []
agents_tags   = {}

availability_zones         = ["1", "2", "3"]
create_platform_namespaces = true
create_rbac_roles          = true

subscription_id = "XXXXXXXXXXXXXXXX"
env_prefix      = "pg"

create_role_assignment_network_contributor = true

Debug Output/Panic Output
╷
│ Error: Invalid for_each argument
│
│   on .terraform/modules/aks.aks.aks/main.tf line 790, in resource "azurerm_role_assignment" "network_contributor":
│  790:   for_each = var.create_role_assignment_network_contributor && (var.client_id == "" || var.client_secret == "") ? local.subnet_ids : []
│     ├────────────────
│     │ local.subnet_ids is a set of dynamic, known only after apply
│     │ var.client_id is ""
│     │ var.client_secret is ""
│     │ var.create_role_assignment_network_contributor is true
│
│ The "for_each" set includes values derived from resource attributes that cannot be determined until apply, and so Terraform cannot determine the full set of keys that will identify the instances of this
│ resource.
│
│ When working with unknown values in for_each, it's better to use a map value where the keys are defined statically in your configuration and where only the values contain apply-time results.
│
│ Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on, and then apply a second time to fully converge.

Expected Behaviour
When the variable create_role_assignment_network_contributor is set to true, it should create and iterate over resources.
Actual Behaviour
On the first run, you will encounter an invalid for_each loop if the variable create_role_assignment_network_contributor is set to true. To avoid this, set the variable to false initially. After the cluster is created, you can then set it to true, and it will work fine. Additionally, any changes to the VNet resource can also cause this error.
We are currently using version 7.3.2 of the "Azure/aks/azurerm" module in our environments. Both new and old deployments use this version, but the issue persists regardless of the deployment time. Notably, this bug still exists in version 9.0.0.
Steps to Reproduce
No response
Important Factoids
No response
References
No response

hello @prosaied
this is a known problem and it was fixed in PR https://github.com/Azure/terraform-azurerm-aks/pull/410
the variable create_role_assignment_network_contributor is deprecated and will go away in a future version.
Please migrate to the new network_contributor_role_assigned_subnet_ids variable.

@zioproto
Thank you so much for your quick response. We have introduced the network_contributor_role_assigned_subnet_ids variable and performed the Terraform import from the create_role_assignment_network_contributor. Everything looks good now.

@zioproto
Thank you so much for your quick response. We have introduced the network_contributor_role_assigned_subnet_ids variable and performed the Terraform import from the create_role_assignment_network_contributor. Everything looks good now.


Support IntelliJ's K2 mode?

K2 Kotlin Mode (Alpha) in IntelliJ IDEA
When enabled and the IDE restarted, the ktlint plugin is disabled.

Of course, this is in alpha, but would be handy and cool to see if it works using K2.

For the moment this will not be possible.

Third-party IntelliJ IDEA plugins depending on the Kotlin plugin will be disabled. We will provide migration guidance for third-party plugin authors soon!

I will investigate once more information becomes available.

The most(?) recent guidance:

Why does IntelliJ IDEA return the “plugin is incompatible with K2 mode” error?

Some third-party IntelliJ IDEA plugins may currently be unavailable because of recent changes to the Kotlin Plugin API. We’re actively working on assisting plugin authors to quickly make their plugins compatible with K2 mode.
https://blog.jetbrains.com/idea/2024/08/meet-the-renovated-kotlin-support-k2-mode/
Hopefully they will be reaching out...

and from the Slack:
Roman Golyshev [JetBrains] Today at 2:40 AM
Hi!
Regarding the K1/K2 compiler APIs difference, you can consult this guide: https://kotlin.github.io/analysis-api/migrating-from-k1.html
There is a catch, however: at the moment, you would not be able to fully enable your IDE plugin with K2 Mode even if you make it fully compatible with it. Currently our team is in the process of preparing clear migration mechanisms for 3rd party plugins authors, but it is a WIP
We’ll probably do some announcements here (in the public Kotlin Slack) when we have some news on that matter
Meanwhile, you can see the guide above and understand how much you would need to change the code of your plugin to make it compatible with K2 Mode :pray: (edited)

Jetbrains just posted this: https://kotlin.github.io/analysis-api/migrating-from-k1.html

Tnx for sharing. Unfortunately, this documentation does not help me to determine what needs to be changed so that the plugin can be used in projects that have enabled K2 mode. The Ktlint Intellij Plugin is not doing the code analysis itself, but uses the depencies provided by the ktlint project (for which I am the maintainer as well). If the incompatibility of the plugin can only be resolved by migrating ktlint from K1 to K2 compiling, than this will be a big project as every rule in Ktlint and a part of the KtlintRuleEngine need to be rewritten . I am estimating this to be multiple man months (full time) of work, which I can not afford to spend on it.

Blocked by #568


Crashes on OS 13 Samsung Galaxy

Following are the stack traces from Crashlytics, they show Open Telemetry which you use under the hood (we use your android sdk):
Fatal Exception: java.net.UnknownHostException: Unable to resolve host "xxxxxx": No address associated with hostname
       at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
       at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
       at java.net.InetAddress.getAllByName(InetAddress.java:1152)
       at okhttp3.Dns$Companion$DnsSystem.lookup(Dns.java:49)
       at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:169)
       at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:131)
       at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:73)
       at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
       at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
       at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
       at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.java:255)
       at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at io.opentelemetry.instrumentation.okhttp.v3_0.TracingInterceptor.intercept(TracingInterceptor.java:44)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
       at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)

and
Fatal Exception: java.net.SocketTimeoutException: timeout
       at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
       at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
       at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:143)
       at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
       at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
       at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:154)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at io.opentelemetry.instrumentation.okhttp.v3_0.TracingInterceptor.intercept(TracingInterceptor.java:44)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
       at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
       at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)

It would be good if we had a way to swallow these exceptions as they run through Open Telemetry. It is hard to know where they originate from.

Hey @ber4444 ,
I'm not sure I follow, how is the fact that you're getting these exceptions connected to the OTel instrumentation? They seem to be caused by actual network issues happening with your app.
The TracingInterceptor juts means that that particular HTTP call was instrumented; it's not the cause of the exception.

It's definitely an exception handling issue on our end, just saying that pinpointing the source is not easy, perhaps you could you provide a helpful stacktrace as you see these IOExceptions come through.

@ber4444 Just checking the obvious -- are you actually configuring a hostname of "xxxxxx" somewhere? Or did you just xxxxx that out manually because it is sensitive?
In any case, I think that both Fatal Exception: java.net.UnknownHostException: Unable to resolve host "xxxxxx": No address associated with hostname and Fatal Exception: java.net.SocketTimeoutException: timeout are pretty helpful and descriptive.
What kind of additional helpful information are you looking for?

Yes, that is X'd out to hide the actual host name. I am looking for the REST API path to know which call is missing proper exception handling, since we have a numbers of API's on the same domain (the second exception isn't even descriptive of the domain btw). We actually fixed it already by hunting through the codebase but in a much larger project it would have been a massive pain.


Use custom ViewModel constructor

Please write easy example, where ViewModel will use custom constructor with ViewDataBinding class. How init/restore its ViewModel?
I see only Class type
ViewModelProviders.of(this).get(CustomResultViewModel.class);
Thanks for help.

https://github.com/googlesamples/android-architecture-components/blob/master/BasicSample/app/src/main/java/com/example/android/persistence/ProductFragment.java#L71

Thanks.

That link is broken for me. I believe this is the correct link:
https://github.com/googlesamples/android-architecture-components/blob/master/BasicSample/app/src/main/java/com/example/android/persistence/ui/ProductFragment.java


Workqueue pulling only on subscription?

Dima noticed a workflow has a bunch of jobs running at FNAL, though it does not have trustiSitelists enabled. Maybe it's looking for blocks subscribed only, instead of blocks subscribed AND completed, from the phedex datasvc api, e.g.:

I cannot investigate this issue now, so keeping the record here for Monday.

@amaltaro, do you know which workflow is that?

fabozzi_Run2015D-DoubleEG-03Dec2015_7415p1_151203_165123_4976
all blocks were subscribed to FNAL but were 0% complete when I looked at it, the agent was reporting 6k jobs running there.

Fixed by #6807


[ECRAuthorizationToken] Failed to find an auth secret in the other namespace

Describe the bug
Failed to find an auth secret in the other namespace in spec.auth.secretRef in ECRAuthorizationToken.
 Warning  UpdateFailed  11m (x29 over 3h20m)  external-secrets  could not generate [0]: unable to create aws session: could not fetch SecretAccessKey secret: cannot get Kubernetes secret "secrets-aws-iam-cred": secrets "secrets-aws-iam-cred" not found

To Reproduce
Steps to reproduce the behavior:

provide all relevant manifests

apiVersion: generators.external-secrets.io/v1alpha1
kind: ECRAuthorizationToken
metadata:
  name: aws-ecr-token-generator
  namespace: default
spec:
  region: ap-northeast-1
  auth:
    secretRef:
      accessKeyIDSecretRef:
        name: secrets-aws-iam-cred
        namespace: kube-system
        key: AWS_ACCESS_KEY_ID
      secretAccessKeySecretRef:
        name: secrets-aws-iam-cred
        namespace: kube-system
        key: AWS_SECRET_ACCESS_KEY
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: aws-ecr-token
  namespace: default
spec:
  refreshInterval: "3h"
  target:
    name: aws-ecr-token
  dataFrom:
  - sourceRef:
      generatorRef:
        apiVersion: generators.external-secrets.io/v1alpha1
        kind: ECRAuthorizationToken
        name: aws-ecr-token-generator
---
apiVersion: v1
kind: Secret
metadata:
  name: secrets-aws-iam-cred
  namespace: kube-system
type: Opaque
data:
  AWS_ACCESS_KEY_ID: ******
  AWS_SECRET_ACCESS_KEY: ******

provide the Kubernetes and ESO version

Kubernetes: v1.28.1 (kubeadm)
external-secrets: 0.9.13
Expected behavior
find aws auth secret and a generator's secret should be created
Screenshots
$ k describe externalsecret.external-secrets.io/aws-ecr-token
Name:         aws-ecr-token
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  external-secrets.io/v1beta1
Kind:         ExternalSecret
Metadata:
  Creation Timestamp:  2024-03-20T08:21:22Z
  Generation:          1
  Managed Fields:
    API Version:  external-secrets.io/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:conditions:
    Manager:      external-secrets
    Operation:    Update
    Subresource:  status
    Time:         2024-03-20T08:21:22Z
    API Version:  external-secrets.io/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        .:
        f:dataFrom:
        f:refreshInterval:
        f:secretStoreRef:
          .:
          f:kind:
          f:name:
        f:target:
          .:
          f:creationPolicy:
          f:deletionPolicy:
          f:name:
    Manager:         kubectl-client-side-apply
    Operation:       Update
    Time:            2024-03-20T08:21:22Z
  Resource Version:  94729663
  UID:               80bde12f-ddd2-49c9-a0db-53dbd573ef69
Spec:
  Data From:
    Source Ref:
      Generator Ref:
        API Version:  generators.external-secrets.io/v1alpha1
        Kind:         ECRAuthorizationToken
        Name:         aws-ecr-token-generator
  Refresh Interval:   3h
  Target:
    Creation Policy:  Owner
    Deletion Policy:  Retain
    Name:             aws-ecr-token
Status:
  Conditions:
    Last Transition Time:  2024-03-20T08:21:22Z
    Message:               could not get secret data from provider
    Reason:                SecretSyncedError
    Status:                False
    Type:                  Ready
Events:
  Type     Reason        Age                   From              Message
  ----     ------        ----                  ----              -------
  Warning  UpdateFailed  11m (x29 over 3h20m)  external-secrets  could not generate [0]: unable to create aws session: could not fetch SecretAccessKey secret: cannot get Kubernetes secret "secrets-aws-iam-cred": secrets "secrets-aws-iam-cred" not found

# The secret actually exists
$ k get secret secrets-aws-iam-cred -n kube-system
NAME                   TYPE     DATA   AGE
secrets-aws-iam-cred   Opaque   2      6d20h

Additional context
First I tried to create ECRAuthorizationToken in kube-system(the same namespace with auth secret) and reference it in generatorRef in ClusterExternalSecret.
But I found generatorRef does not have namespace property and ExternalSecret created by ClusterExternalSecret also failed. So I do like this.
      generatorRef:
        apiVersion: generators.external-secrets.io/v1alpha1
        kind: ECRAuthorizationToken
        name: aws-ecr-token-generator
        namespace: kube-system # <-- Not allowed

Thanks for reporting the issue! As I commented in https://github.com/external-secrets/external-secrets/issues/3290#issuecomment-2016402108, Generators are currently namespace-scoped and hence cannot refer to resources in other namespaces. We should consider adding validation to prevent users from setting the namespace field or removing it, but the behavior itself is correct.

@shuheiktgw Thanks! I also found it is described on CRD.
https://github.com/external-secrets/external-secrets/blob/v0.9.13/apis/meta/v1/types.go#L22-L23
// Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults
// to the namespace of the referent.
// +optional
Namespace *string `json:"namespace,omitempty"`

I expected there should be validation but now I understand it would not be easy to add validations because generators are independent of each others.


Add truncateMiddle method to Yii2 StringHelper

Please add this code to yii\helpers\StringHelper:
/**
 * Truncates a string in middle to the number of characters specified.
 *
 * @param string $string The string to truncate.
 * @param int $length How many characters from original string to include into truncated string.
 * @param string $replacement String to append to the middle of truncated string.
 * @param string $encoding The charset to use, defaults to charset currently used by application.
 * @return string the truncated string.
 */
public static function truncateMiddle($string, $length, $replacement = '...', $encoding = null)
{
    if ($encoding === null) {
        $encoding = Yii::$app ? Yii::$app->charset : 'UTF-8';
    }

    if (mb_strlen($string, $encoding) > $length) {
        return rtrim(mb_substr($string, 0, ceil($length / 2), $encoding)) . $replacement . ltrim(mb_substr($string, -floor($length / 2), null, $encoding));
    }

    return $string;
}

This is definitely not a common requirement to have something like this in the framework so I must say no (unless you can provide serious use cases).


Appstudio update test-component-pac-abcu

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-abcu-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
12 seconds
init

✅ Succeeded
13 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
25 seconds
inspect-image

✅ Succeeded
10 seconds
deprecated-base-image-check

✅ Succeeded
21 seconds
clair-scan

✅ Succeeded
45 seconds
clamav-scan

✅ Succeeded
18 seconds
sbom-json-check

✅ Succeeded
11 seconds
label-check

✅ Succeeded
7 seconds
show-summary

✅ Succeeded
9 seconds
show-sbom


Do not add generated files from Temp if file is not dirty

Fixes : #4051
Generated scripts in Temp folder will not try to open in next ADS session if the files do not have any change.

Why are we generating file in temp and then opening them rather than just using vscode's open untitled editor extension point?

@anthonydresser @kburtram - the reason for file generation is that vscode's go to definition expects file locations and not script (I guess the it's because ideally code go to definition is already present).
I think it will be a design change and not in scope for this bug fix.


Highlighting in HTML not works

Highlighting in HTML not works:
Plugin CSS (Enable) and CSS3 (Disable):

Plugin CSS3 (Enable) and CSS (Disable):

Thank you for reporting this serious bug! I'm investigating now.

I can confirm the same issue happening in a .tpl file if it matters.
I just installed the plug-in and followed the steps to enable it.
My system is Windows 10 with Sublime text 3 installed.

Unfortunately, I don't have a solution for this. The default HTML package specifically references a rule in the default CSS package to highlight inline CSS. I can think of only two solutions:

Petition to have CSS3 replace the default CSS package, then change the default HTML package to reference a CSS3 highlighting rule instead.

pros: Everyone using Sublime would get great CSS support out of the box
cons: It would take some political effort to get it accepted, and I'm not sure I have the time for this :(

Make my own HTML6 package to complement CSS3.

pros: It would solve the inline highlighting problem.
cons: It would be months of work. Users would have to be guided through installing both packages.

Either the problem has resolved itself, or I have a different configuration (mac, sublime3, emmet, kobalt2 theme)

@Keesromkes That's wonderful if true. Can I ask if you have the default CSS package disabled. The highlighting may be coming from there, or from another package.

It might be just that @y0ssar1an, with Kobalt2 active (which also does highlighting it seems) - inline predective code for css3 doesn't work for instance. Sorry for the false flag! (or my lack of knowledge)

No worries. It's good to know about the Kobalt2 package.

Not to resurrect a dead issue, but the latest Sublime dev build (3153) is supposed to have fixed the hard reference to the default CSS syntax file by change the default HTML syntax to reference 'rule-list-body' by scope rather than syntax.
From WBond in the Sublime Dev Build 3153 forum:

The issue is that you have disabled the CSS package, per the instructions of the CSS3 author. Unfortunately, disabling the CSS package breaks the HTML syntax. The style attributes need to reference a specific context of the CSS syntax. When you disable the CSS package, it makes that context unavailable. With this build we moved the CSS and JavaScript code in the HTML syntax use the new embed syntax. When it tries to resolve the embedded context, it isn't able to find it.
Honestly, if the CSS3 package is going to tells users to disable the CSS syntax, it will likely need to include it's own HTML syntax that embeds CSS3 instead of CSS. Alternatively, if the CSS3 syntax can create a context named rule-list-body and I will make sure that the HTML syntax references scope:source.css#rule-list-body for the next build.
Edit: the HTML syntax now references CSS via scope name, so all the CSS3 author needs to do is create a context named rule-list-body that will properly highlight the contexts of a style="" attribute.

I did a quick copy/paste of the 'rule-list-body' code from the default package into the CSS3 syntax file, plus a couple variables, and it solved the problem.

This should be fixed now in #86. v2.1.11 should be out shortly. Thanks very much for reporting this!


Release markdown-transform

We need to release the ergo-replacement branch of markdown-transform so that the TemplateMark produced by markdown-transform can be used by the template engine, and the AgreementMark produced by the template engine can be rendered using markdown-transform.

This is now working, using the unstable "0.16.6-20230307230034" version of markdown-transform packages.

Implemented.


PEP8 reformatting, removal of unused code, leverage resource lookups for playbooks

What does this PR do?
pep8 compliance, cleanup unused code, using resource lookups for playbooks
Do you have any concerns with this PR?
no
How can the reviewer verify this PR?
run CI
Any background context you want to provide?
standard housekeeping
Screenshots or logs (if appropriate)
n/a
Questions:

Have you connected this PR to the issue it resolves?
si
Does the documentation need an update?
no
Does this add new Python dependencies?
no
Have you added unit or functional tests for this PR?
no

Looks good to me!


Fix the hyperlink in CONTRIBUTING.md for issue search

The issue label for new contributors should be "help wanted", not "help-wanted".

This change is

Coverage remained the same at 39.753% when pulling 7066ab04d349ec056a5e469fe281e31f5f44c64e on lichen2013:master into 697cf2d8c352b461447cf1a7f265702d3e6be530 on kubernetes:master.

I signed it!

LGTM

@lichen2013 thanks!


infer does not run preprocessor, or possibly just doesn't recognize X-macros

Please make sure your issue is not addressed in the FAQ.
Please include the following information:

[ v0.17.0 ] The version of infer from infer --version.
[ Debian 9 WSL] Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc.
[ infer run --compilation-database ] Which command you ran, for example infer -- make.
[ https://gist.github.com/ijustlovemath/18b734d4fe52169f44ffb0aac9c191c6 ] The full output in a paste, for instance a gist.
[ https://gist.github.com/ijustlovemath/ed1eb50d29e6e47def40a72e9de84f75 ] If possible, a minimal example to reproduce your problem (for instance, some code where
infer reports incorrectly, together with the way you run infer to reproduce the incorrect
report).

infer reports that the two variables prev_rule_number and prev_rule_zone were unused, even though they were used in the X-macro expansion.


Hidden github directory support

It would be cool to support the .github hidden directory as a place to store the yml file.
See https://github.com/blog/2111-issue-and-pull-request-templates

ghlabel doesn't care where the file is stored since you always pass the path to it explicitly. That new directory is definitely a great place to store it!


No output file  when the command does not finish the entire wordlist

Ffuf does not write to the designated output file unless the command finishes.
Considering wordlists can be rather large and canceling them before completion is a regular thing, the tool should write the output file as it runs, in case something happens and the command is unable to finish.

This is fixed in #101


Use higher level kafka Writer api instead of low level Conn api

What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area outputs

What this PR does / why we need it:
If no messages to the kafka broker has been sent within connections.max.idle.ms set on the broker (default 10 minutes) then the connection gets closed. The existing way of setting up the kafka connection does not re-open the connection and fails with error messages like:
<IP_ADDRESS>:42642-><IP_ADDRESS>:9092: write: broken pipe

I also think it's an anti-pattern to explicitly set the partition number to write to, this means we cannot balance the load across multiple brokers.

From the kafka-go readme:
To produce messages to Kafka, a program may use the low-level Conn API, but
the package also provides a higher level Writer type which is more appropriate
to use in most cases as it provides additional features:

Automatic retries and reconnections on errors.
Configurable distribution of messages across available partitions.
Synchronous or asynchronous writes of messages to Kafka.
Asynchronous cancellation using contexts.
Flushing of pending messages on close to support graceful shutdowns.

compared with: https://github.com/segmentio/kafka-go#connection-
The Conn type is the core of the kafka-go package. It wraps around a raw network connection to expose a low-level API to a Kafka server.

Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign leogr after the PR has been reviewed.
You can assign the PR to them by writing /assign @leogr in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 607747c8cc33f1ae48f27bea789b494c38a4971a

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: cpanato
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [cpanato]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/restest

/retest

I'm trying to trigger the CI, so I'm closing and reopening
/close

@leogr: Closed this PR.

In response to this:

I'm trying to trigger the CI, so I'm closing and reopening
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/reopen

@leogr: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cpanato @Issif Is there anything else needed to merge this PR?

@zemek definitely not, I removed the hold label, hope it will unlock the merge