Policy enforcement on created object

Adding option to enforce policy based authorization for the created object thus modifying the final object attribute.

Added tests for this PR


.Net.sdk.web not found

Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
 Version:   2.2.202
 Commit:    8a7ff6789d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.2.202\

Host (useful for support):
  Version: 2.2.3
  Commit:  6b8ad509b6

.NET Core SDKs installed:
  2.2.202 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
PS C:\Dotnet Core\NgWebApi>

VS Code version:1.33.0
C# Extension version:1.18.0
Steps to reproduce
Build or run from VS Code
Expected  behavior
no errors
Actual behavior
Starting OmniSharp server at 4/5/2019, 3:37:16 PM
    Target: c:\Dotnet Core\NgWebApi

OmniSharp server started.
    Path: C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\OmniSharp.exe
    PID: 13684

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\msbuild\15.0\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to 'C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\msbuild\15.0\Bin\MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 15.0 - "C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\msbuild\15.0\Bin"
            CscToolExe = csc.exe
            CscToolPath = C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\msbuild\15.0\Bin\Roslyn
            MSBuildExtensionsPath = C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\msbuild
            MSBuildToolsPath = C:\Users\Acer\.vscode\extensions\ms-vscode.csharp-1.18.0\.omnisharp\1.32.11\msbuild\15.0\Bin
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'c:\Dotnet Core\NgWebApi'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
        Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in 'c:\Dotnet Core\NgWebApi'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Dotnet Core\NgWebApi\NgWebApi.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'c:\Dotnet Core\NgWebApi'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Dotnet Core\NgWebApi\NgWebApi.csproj
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'c:\Dotnet Core\NgWebApi' on host 17188.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Dotnet Core\NgWebApi\NgWebApi.csproj'.
c:\Dotnet Core\NgWebApi\NgWebApi.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.  c:\Dotnet Core\NgWebApi\NgWebApi.csproj
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List`1& projects, Boolean throwOnFileNotExistsError)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
   at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String toolsVersion)
   at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath)
   at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath)
   at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectLoader loader)
   at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func`1 loader)

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: c:\Dotnet Core\NgWebApi\NgWebApi.csproj

I am also seeing this issue.

I am also seeing this issue.

Did you find any solution? if yes please post on here

I'm also getting this. It seems to be related to .NET Core being updated to 2.2.202.
.NET Core SDK (reflecting any global.json):
 Version:   2.2.202
 Commit:    8a7ff6789d

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.10
 OS Platform: Linux
 RID:         ubuntu.18.10-x64
 Base Path:   /usr/share/dotnet/sdk/2.2.202/

Host (useful for support):
  Version: 2.2.3
  Commit:  6b8ad509b6

.NET Core SDKs installed:
  2.2.202 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

This looks like it might be a duplicate of #2965.

I'm also getting this. It seems to be related to .NET Core being updated to 2.2.202.

ya, I got the point, the reason was the latest update (2.2.202.) So I downgrade .Net core to 2.1.202 and now problem solved

I'm also getting this. It seems to be related to .NET Core being updated to 2.2.202.

ya, I got the point, the reason was the latest update (2.2.202.) So I downgrade .Net core to 2.1.202 and now problem solved
I also got this problem, I try to downgrade the .Net core to  2.1.602 and have uninstalled the visual studio code many times,but the omniSharp cache always in there ,so everytime I reinstall the visual studio code,the omniSharp not reinstall,So the problem still in there
`.NET Core SDK（reflecting any global.json）:
Version:   2.1.602
Commit:    04475eb7cf

Runtime Environment:
OS Name:     Windows
OS Version:  10.0.17134
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\2.1.602\
Host (useful for support):
Version: 2.1.9
Commit:  dcedc87d22
.NET Core SDKs installed:
2.1.602 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download`

I'm also getting this. It seems to be related to .NET Core being updated to 2.2.202.

ya, I got the point, the reason was the latest update (2.2.202.) So I downgrade .Net core to 2.1.202 and now problem solved

I also got this problem, I try to downgrade the .Net core to 2.1.602 and have uninstalled the visual studio code many times,but the omniSharp cache always in there ,so everytime I reinstall the visual studio code,the omniSharp not reinstall,So the problem still in there
.NET Core SDK（reflecting any global.json）:
 Version:   2.1.602
 Commit:    04475eb7cf

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17134
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.602\

Host (useful for support):
  Version: 2.1.9
  Commit:  dcedc87d22

.NET Core SDKs installed:
  2.1.602 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

well,I figured out where the omnisharp cache is,So I reinstalled the fk little software,finally I found the reason is the slow speed of downloading the omnisharp ,haha,anyway thank u everyone

As a quick workaround, you can also set the MSBuildSDKsPath environment variable and point to Sdks location.
On Linux (Ubuntu 18.04 in my case) I added following to my .bashrc
export MSBuildSDKsPath ="/usr/share/dotnet/sdk/2.2.202/Sdks"
On Windows Edit System Environment Variables and add a system variable MSBuildSDKsPath and set to C:\Program Files\dotnet\sdk\2.2.202\Sdks

As a quick workaround, you can also set the MSBuildSDKsPath environment variable and point to Sdks location.
On Linux (Ubuntu 18.04 in my case) I added following to my .bashrc
export MSBuildSDKsPath ="/usr/share/dotnet/sdk/2.2.202/Sdks"
On Windows Edit System Environment Variables and add a system variable MSBuildSDKsPath and set to C:\Program Files\dotnet\sdk\2.2.202\Sdks

yeah,thank u ,my system is windows10 , I choosed the default install location,I checked the selection in process of install which reminded me  to inject the path,my problem have been solved,thank u again :)

I'm also having this problem on Ubuntu 18.04 LTS.

I also have this problem on Ubuntu 18.04 LTS, and this worked for me:
$ export MSBuildSDKsPath="/usr/share/dotnet/sdk/2.1.603/Sdks/"
$ code .

Hi all, we recently changed the version of mono that ships with omnisharp to hopefully improve this. Can you give it a try by setting "omnisharp.path": "1.32.16" in your VS Code options?

@rchande I see the same problem also with "omnisharp.path": "1.32.16".

I have the same problem

This issue resurfaced for me.. The above mentioned fixes didn't fix it this time around for some reason.  I'm using the Snap on Solus.. I had already set an alias with alias dotnet="dotnet-sdk.dotnet", but I guess that wasn't good enough.
Instead, I used sudo snap alias dotnet-sdk.dotnet dotnet and that resolved the issue for me.

:heavy_check_mark: Using the following command solved the problem for me on arch-linux:
MSBuildSDKsPath=/opt/dotnet/sdk/$(dotnet --version)/Sdks code my-dotnetcore-project
if I execute the code my-dotnetcore-project without setting MSBuildSDKsPath I am able to reproduce the issue.
exporting environment variable shall also work.
Output of  dotnet --info :
.NET Core SDK (reflecting any global.json):
 Version:   2.2.108
 Commit:    33ed5b90ce

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /opt/dotnet/sdk/2.2.108/

Host (useful for support):
  Version: 2.2.6
  Commit:  7dac9b1b51

.NET Core SDKs installed:
  2.2.108 [/opt/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.2.6 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

please let me know if you need some more information for the bugfix. :+1:

heavy_check_mark Using the following command solved the problem for me on arch-linux:
MSBuildSDKsPath=/opt/dotnet/sdk/$(dotnet --version)/Sdks code my-dotnetcore-project
if I execute the code my-dotnetcore-project without setting MSBuildSDKsPath I am able to reproduce the issue.
exporting environment variable shall also work.
Output of dotnet --info :
.NET Core SDK (reflecting any global.json):
 Version:   2.2.108
 Commit:    33ed5b90ce

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /opt/dotnet/sdk/2.2.108/

Host (useful for support):
  Version: 2.2.6
  Commit:  7dac9b1b51

.NET Core SDKs installed:
  2.2.108 [/opt/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.2.6 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

please let me know if you need some more information for the bugfix. +1

Excellent!!!
Since my dotnet version is preview, I used this in "~/.profile":
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
export MSBuildSDKsPath=$HOME/dotnet/sdk/$(dotnet --version)/Sdks
Now I can use "code" command as before.

I have used this fix until now but with the last version of omnisharp this workaround doesn't work any more.
I got this issue:
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/gpad/workspace/gpad/azure_service_bus/lb/lb.csproj
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download

Omnisharp 1.21.4

I have used this fix until now but with the last version of omnisharp this workaround doesn't work any more.
I got this issue:
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/gpad/workspace/gpad/azure_service_bus/lb/lb.csproj
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download

Omnisharp 1.21.4

Same issue here, started last week.
vscode displays this error but all editor functions continue to work.

I use this workaraound (thanks to @gpad tips) setting MSBuildSDKsPath, DOTNET_ROOT and PATH environment variables before opening VSCode.
I use asdf to manage dotnet installation, I run this script (I put inside a function in my .zshrc) before running VSCode:
function set-dotnet-vars {
  DOTNET_BASE=$(dotnet --info | grep "Base Path" | awk '{print $3}')
  echo "DOTNET_BASE: ${DOTNET_BASE}"

  DOTNET_ROOT=$(echo $DOTNET_BASE | sed -E "s/^(.*)(\/sdk\/[^\/]+\/)$/\1/")
  echo "DOTNET_ROOT: ${DOTNET_ROOT}"

  export MSBuildSDKsPath=${DOTNET_BASE}Sdks/
  export DOTNET_ROOT=$DOTNET_ROOT
  export PATH=$DOTNET_ROOT:$PATH
}

Having same issues. Setting SDK path helps but still having issues. OmniSharp will now load correctly but I still cannot launch a debug session. Any ideas is much appreciated!

Thanks a lot @PaoloLaurenti. Worked perfectly.  The only change I made was to place the contents of this function inside the code binary (located in /usr/bin/code), so I wouldn't have to remember to run the function every time before opening a .Net Core project in VSCode.

@PaoloLaurenti, thank you for the great tip. I've been wondering about this for ages. asdf offers a convenient way to compute DOTNET_ROOT, so here is a simplified version of the script that I put in my .bashrc:
export DOTNET_ROOT="$(asdf where dotnet-core)"
DOTNET_VERSION="$(basename $DOTNET_ROOT)"
export MsBuildSDKsPath="$DOTNET_ROOT/sdk/$DOTNET_VERSION/Sdks"
export PATH="$DOTNET_ROOT:$PATH" # I suspect this is not necessary.

I see from the OmniSharp log in VSCode that OmniSharp finds the correct .NET Core SDK:
[info]: OmniSharp.Services.DotNetCliService
        Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to "$(asdf where dotnet-core)/dotnet"

However, at face value it doesn't appear that the MSBuildSDKsPath environment variable gets used:
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '~/.vscode/extensions/ms-dotnettools.csharp-1.24.1/.omnisharp/1.38.1/omnisharp/.msbuild/Current/Bin/MSBuild.exe'

I feel like I'm overlooking something obvious here if anyone has any suggestions.

is it still non resolved?
having same issue - vs code running on WSL, unable to find dotnet managed by asdf

A lot has changed with sdk resolution since this issue was opened. If you are still having problems, please open a new issue.


Unsecured content to https

Hello! First of all, I love your project. As a huge movie-holic it's my dream to build a recommendations engine some day using data from IMDb, TMDb, Trakt, Letterboxd, etc.
But for the issue. My https is not green and I see the images from tmdb are unsecure. Can you update flox to be 100% under http, including assets from outside.

Hey!
Sorry for the delayed response. I will change the few TMDb links that are not served under https tomorrow :)


Hi, any interest to  reimplement CLONE together?

Hi, I found that you are reimplementing HierSpeech, and I noticed that CLONE is another good end2end tts models, which  has none mispronunciation issues and performs more stable than VITS arrording to the paper, do you have any plans to reimplement it togethert?
Controllable and Lossless Non-Autoregressive End-to-End Text-to-Speech？https://arxiv.org/pdf/2207.06088.pdf
Thanks.

Hierspeech is 10x times better than "CLONE", Hierspeech can do multi-speaker TTS ,voice conversion and Speaker Adaptation. While CLONE only does single-speaker, maybe the only advantage is it does 48khz , I see that Hierspeech can perform 48khz too, why not. Also from the paper it looks like they trained Vits for 500k only along with CLONE , and Vits needs Atleast 800-900k to shine. "CLONE" also still has slight hearable speech artifacts, if you are really looking for natural artifact-less TTS look into this , https://github.com/heatz123/naturalspeech

Hi, @GuangChen2016
I am interested in the model you mentioned, but I am currently employed and in a position where collaboration with external personnel is restricted. I appreciate your proposal, but unfortunately, collaboration seems to be difficult. Thank you for introducing me to the good model, and I apologize for any inconvenience caused by the limitation on collaboration.
Best regards,
Heejo

Hi, @dutchsing009
Thank you for introducing the good model. Based on the implemented code, it seems that using ground-truth based duration is recommended as a priority. However, have you ever tested it with the use_gt_duration=False condition? If possible, I am considering exploring the option of using external aligners as little as possible.
Best regards,
Heejo

Hello Mr. @CODEJIN I hope you are doing okay. Well In general, using ground-truth based duration can result in more accurate and natural-sounding speech output because the model is trained to generate speech with durations that match those of the reference speech segments. However, this approach requires having high-quality reference speech data with accurate duration information, which may not always be available.
2-On the other hand, using "use_gt_duration=False" means that the model is not explicitly trained to match the duration of reference speech segments. Instead, the model may learn to predict duration based on other features of the input text. This approach may be more flexible and better suited to situations where accurate duration information is not available or difficult to obtain. so no I still didn't try use_gt_duration=False condition but I will soon and will tell you if it succeeded . Some say that it is recommended as a default. This is because TTS systems are designed to be adaptable to different input texts, and relying on fixed durations may not always produce the best results. In addition, when dealing with spontaneous speech or unaligned data, ground-truth durations may not be available or accurate.
3- final thing for me,  Can I email you to know what's missing in the "XiaoiceSing2" for it to be correctly implemented and if I can help you with it ?, because I actually need it , and maybe also solve the vocoder problem because it is the main thing that made the paper unique , and help you also in the training I have 4 NVIDIA V100 GPUs. For example in the email you tell me the exact problem or what you can't figure out and I will keep helping until it is correctly fully implemented. :)

Hi, @dutchsing009
Thank you for your opinion on NaturalSpeech. After analyzing the code provided in the link, I would like to perform some verifications.
And, as for XaioiceSing2, it would be better to leave any issues related to it on the corresponding XaioiceSing2 platform rather than here.
Best regards,
Heejo


Remove Jekyll documentation

I looked through the existing documentation but don't see anything particularly useful to port to the pattern library. I think as we work with building new components or updating existing components, they can be added to the pattern library.

[ ] Remove jekyll documentation
[ ] Remove jekyll dependencies
[ ] Remove jekyll references from README

Acceptance criteria:

[ ] Documentation contains no references to Jekyll
[ ] Dependencies on Jekyll are not able to be found
[ ] README contains no references to Jekyll
[ ] CONTRIBUTING contains a note that adding/updating UI components should also require that you add/update the component in the pattern library

@adborden I added acceptance criteria – can you please update if you feel they should be clearer?

:+1: thanks, looks great. I added one note about adding a line to the CONTRIBUTING doc.


Fix bug in index_resources.get_all()

The essential problem is that index_resources.get_all() calls the
Resource get() method which doesn't handle pagination and thus only
returns the first page of results.  The complication is that
index_resources.get_all() builds its own URI complete with filtering, so
the Resource get_all() is probably not appropriate since it builds the
complete URI from a set of provided filters.  To fix we've added a new
method to Resource - get_all_prebuilt_uri - which passes the pre-built
URI directly to the underlying __do_requests_to_getall method.  The
implicated unit-tests have been updated.
Fixes #364
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve. e.g., Fixes #01]
Check List

[ ] New functionality includes testing.

[ ] All tests pass for Python 2.7+ & 3.4+($ tox).

[ ] New functionality has been documented in the README if applicable.

[ ] New functionality has been thoroughly documented in the examples (please include helpful comments).
[ ] New endpoints supported are updated in the endpoints-support.md file.

[ ] Changes are documented in the CHANGELOG.

Coverage decreased because I've removed a few lines from index_resources.py


The test results of level2 and level3 are worse

Test Number: 3466
Time Consume: 24.520 s
FPS: 141.351
LEVEL - 1
Mean Error:
Left Eye       = 0.022420
Right Eye      = 0.023296
Nose           = 0.030268
Left Mouth     = 0.028703
Right Mouth    = 0.028891
Failure:
Left Eye       = 0.060300
Right Eye      = 0.064628
Nose           = 0.137046
Left Mouth     = 0.110502
Right Mouth    = 0.122331
################## Summary #####################
Test Number: 3466
Time Consume: 46.793 s
FPS: 74.071
LEVEL - 2
Mean Error:
Left Eye       = 0.090333
Right Eye      = 0.015689
Nose           = 0.018732
Left Mouth     = 0.020073
Right Mouth    = 0.091233
Failure:
Left Eye       = 0.983266
Right Eye      = 0.031448
Nose           = 0.040969
Left Mouth     = 0.055972
Right Mouth    = 0.973745
################## Summary #####################
Test Number: 3466
Time Consume: 71.581 s
FPS: 48.421
LEVEL - 3
Mean Error:
Left Eye       = 0.089275
Right Eye      = 0.014808
Nose           = 0.061951
Left Mouth     = 0.063852
Right Mouth    = 0.089410
Failure:
Left Eye       = 0.980958
Right Eye      = 0.031160
Nose           = 0.804385
Left Mouth     = 0.866128
Right Mouth    = 0.970571
Where is my wrong, thanks!

@ustcluq Sorry for the late reply. It seems the Level-1 network is trained well, but some networks in Level-2 and Level-3 is not well. Please pay attention to the training loss of these networks, some weight initialization of these networks makes the training process failed (loss is not converge). You should re-train these networks.

Thank you~


Cannot click anything

Hi all,
I installed Kaiwa and could successfully connect it to our OpenFire server. Anyways, I'm not able to click anything after login. I can see the buddy list and if I click on any of them, nothing happens. Also the settings button is not clickable (I checked this, but it didn't help -> https://github.com/digicoop/kaiwa/issues/48), though I'm able to update status of user.
I also checked traffic with tcpdump, when clicking any link in Kaiwa web client, but none of the requests arrived at server.
When I send a message from a client (e.g. Pidgin), the user logged in on Kaiwa receives the message, but cannot open it, as nothing is clickable.
I tried it with latest FF, latest Chrome and IE 11 on different workstations.
Am I doing anything wrong? Could someone may please help me?
Greets
Thomas

Have you used the js console/dev tools in your browser? They may be able to
tell you more.
On 15 Sep 2015 09:09, "thmmueller"<EMAIL_ADDRESS>wrote:

Hi all,
I installed Kaiwa and could successfully connect it to our OpenFire
server. Anyways, I'm not able to click anything after login. I can see the
buddy list and if I click on any of them, nothing happens. Also the
settings button is not clickable (I checked this, but it didn't help ->
#48 https://github.com/digicoop/kaiwa/issues/48), though I'm able to
update status of user.
I also checked traffic with tcpdump, when clicking any link in Kaiwa web
client, but none of the requests arrived at server.
When I send a message from a client (e.g. Pidgin), the user logged in on
Kaiwa receives the message, but cannot open it, as nothing is clickable.
I tried it with latest FF, latest Chrome and IE 11 on different
workstations.
Am I doing anything wrong? Could someone may please help me?
Greets
Thomas
—
Reply to this email directly or view it on GitHub
https://github.com/digicoop/kaiwa/issues/55.

Yes, I tried. I found this issue here, which exactly describes my problem -> https://www.bountysource.com/issues/23255732-kaiwa-not-navigating-between-views
When adding the break points, it works. But I've no clue, how to fix it....

Duplicate of https://github.com/digicoop/kaiwa/issues/37


Associated plans to offers in the DB

Describe the bug
Associated plans to offers in the DB
To Reproduce
Steps to reproduce the behavior:
Currenlty there is no way to map subs-plans-offers.
Expected behavior
plans should be filtered by offers.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Duplicate of #344


Theme switching leads to low contrast/wrong background & font colors (expose a theme prop on the widget ?)

We no longer ship components with the SDK.


Upgrade dependency

Change socket_io_common dependency version to latest pre-release ^2.0.0-beta.1-nullsafety.1

The socket.io-dart server is based on Socket.io v2 spec. and socket_io_common ^2.0.0.* is based on Socket.io v3 spec., so we cannot use it with the currect socket.io-dart version.


WIP: Adds big radio buttons

The other half of #18. WIP until the big-radio-button PR gets merged in capital framework.
Preview

Should disabled checkboxes and radios get the same cursor: not-allowed we use on disabled buttons?

👍 There's conflicts, but feel free to merge when they're resolved.

Fixed conflicts and merged locally. Everything seems good.


Alfred4 security issue?

Installed, trying to run it and getting:
This error

Ah. I have to start signing it now since Catalina. I’ve been looking into this for a few other projects, but I haven’t quite figured out how to do it in Go quite yet.
If you are comfortable doing so, you can review the source code and compile the binary yourself if you want to make sure that it’s good.

I'm seeing this as well.


License

Hi, @davidmatson. Can I use your code examples here

UnsafeRelaxedJsonEscaping escapes too much #86463: https://github.com/dotnet/runtime/issues/86463
Default JSON escaping is biased against other languages #86805: https://github.com/dotnet/runtime/issues/86805

in this project/nuget and license it like this?
---snip---
MIT License
Copyright (c) 2024 davidmatson

---snip---

Yes, but please list Microsoft Corporation (my employer) as the copyright holder.
MIT License is fine.
Thanks,
David
From: osexpert @.>
Sent: Wednesday, 04 September 2024 04:30
To: osexpert/ExtremeJsonEncoders @.>
Cc: Mention @.***>
Subject: [osexpert/ExtremeJsonEncoders] License (Issue #1)
Hi, @davidmatsonhttps://github.com/davidmatson. Can I use your code examples here

UnsafeRelaxedJsonEscaping escapes too much #86463: dotnet/runtime#86463https://github.com/dotnet/runtime/issues/86463
Default JSON escaping is biased against other languages #86805: dotnet/runtime#86805https://github.com/dotnet/runtime/issues/86805
in a project/this nuget and license it like this?

---snip---
MIT License
Copyright (c) 2024 davidmatson
---snip---

Reply to this email directly, view it on GitHubhttps://github.com/osexpert/ExtremeJsonEncoders/issues/1 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZUMFL5WVPJPRRHV62ZHFLZU3VMFBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTLDTOVRGUZLDORPXI6LQMWSUS43TOVS2M5DPOBUWG44SQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJYGUZDCNRRGY2TDAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDENJQGUYDONRQGE42O5DSNFTWOZLSUZRXEZLBORSQ.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Its alive. Thanks!

Sure!
From: osexpert @.>
Sent: Wednesday, 04 September 2024 12:12
To: osexpert/ExtremeJsonEncoders @.>
Cc: Comment @.***>
Subject: Re: [osexpert/ExtremeJsonEncoders] License (Issue #1)
Its alive. Thanks!

Reply to this email directly, view it on GitHubhttps://github.com/osexpert/ExtremeJsonEncoders/issues/1#issuecomment-2329790465 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZUMFIUPXOHQTEFFRZPS3TZU5LRNBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVE4DKMRRGYYTMNJRQKSHI6LQMWSWS43TOVS2K5TBNR2WLKRSGUYDKMBXGYYDCONHORZGSZ3HMVZKMY3SMVQXIZI.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Failing with SGE

I would like to try using dask-jobqueue to set up a Dask cluster on our internal Grid Engine cluster (I believe it is UGE, not SGE, but they should be siblings of each other).
My script is below:
# dask_sge_test.py
from dask_jobqueue.sge import SGECluster
cluster = SGECluster(queue='regular')

The error is below:
$ python dask_sge_test.py
Traceback (most recent call last):
  File "dask_sge_test.py", line 1, in <module>
    from dask_jobqueue.sge import SGECluster
  File "/home/maer3/anaconda/envs/tm-sleep/lib/python3.6/site-packages/dask_jobqueue/__init__.py", line 2, in <module>
    from .core import JobQueueCluster
  File "/home/maer3/anaconda/envs/tm-sleep/lib/python3.6/site-packages/dask_jobqueue/core.py", line 11, in <module>
    from distributed.deploy import Cluster
ImportError: cannot import name 'Cluster'

I did some checking in an IPython session:
In [9]: import distributed

In [10]: 'Cluster' in distributed.deploy.__dict__.keys()
Out[10]: False

Not sure why this is happening, I dug into the distributed Python module, and found everything set up correctly: under deploy/__init__.py, I see from .cluster import Cluster, so the name is available.

git-master of dask-jobqueue depends on git-master of distributed which also depends on git-master of dask
A release of all three should be out within a week

@mrocklin I had installed this using conda-forge; is the git commit version still a relevant point here?

Not sure when Cluster was added, but it's there now
In [1]: import distributed

In [2]: 'Cluster' in distributed.deploy.__dict__.keys()
Out[2]: True

So my guess is that there is some version mismatch here.  If you just conda installed everything then that's surprising.

Yes, that is quite surprising. What was even more surprising for me was that when I dug into site-packages/distributed, Cluster was imported into deploy.
$ pwd
/home/maer3/anaconda/envs/tm-sleep/lib/python3.6/site-packages/distributed/deploy
$ cat __init__.py | grep Cluster
from .cluster import Cluster
from .local import LocalCluster
    from .ssh import SSHCluster
$ cat cluster.py | grep Cluster
class Cluster(object):
    Clusters inheriting from this class should provide the following:
    >>> from distributed.deploy import Cluster
    >>> class MyCluster(cluster):
    >>> cluster = MyCluster()
    LocalCluster: a simple implementation with local workers
        Cluster.scale_up
        Cluster.scale_down

Let me check version numbers:
$ conda list | grep distributed
distributed               1.21.8                   py36_0    conda-forge
$ conda list | grep dask-jobqueue
dask-jobqueue             0.1.1                      py_0    conda-forge

In your situation I would either install from git across all three
packages, or else wait a day or two.
On Thu, Jun 14, 2018 at 12:13 PM, Eric Ma<EMAIL_ADDRESS>wrote:

Yes, that is quite surprising. What was even more surprising for me was
that when I dug into site-packages/distributed, Cluster was imported into
deploy.
$ pwd
/home/maer3/anaconda/envs/tm-sleep/lib/python3.6/site-packages/distributed/deploy
$ cat init.py | grep Cluster
from .cluster import Cluster
from .local import LocalCluster
from .ssh import SSHCluster
$ cat cluster.py | grep Cluster
class Cluster(object):
Clusters inheriting from this class should provide the following:
>>> from distributed.deploy import Cluster
>>> class MyCluster(cluster):
>>> cluster = MyCluster()
LocalCluster: a simple implementation with local workers
Cluster.scale_up
Cluster.scale_down
Let me check version numbers:
$ conda list | grep distributed
distributed               1.21.8                   py36_0    conda-forge
$ conda list | grep dask-jobqueue
dask-jobqueue             0.1.1                      py_0    conda-forge
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask-jobqueue/issues/69#issuecomment-397351555,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AASszNjmTobnungiP9rzOez9EkpBlfsjks5t8ouRgaJpZM4UoL98
.

👍

As things turn out, there was a legacy ~/.local/... in my PYTHONPATH that was interfering with everything! Big lesson learned.
Btw, thank you for teaching me the PDB tricks at PyCon, @mrocklin! :smile:

A worthwhile investment it seems :)
On Thu, Jun 14, 2018 at 3:49 PM, Eric Ma<EMAIL_ADDRESS>wrote:

As things turn out, there was a legacy ~/.local/... in my PYTHONPATH that
was interfering with everything! Big lesson learned.
Btw, thank you for teaching me the PDB tricks at PyCon, @mrocklin
https://github.com/mrocklin! 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask-jobqueue/issues/69#issuecomment-397417281,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AASszAce0hxtoxpb324peW7ilUnBg7XMks5t8r5kgaJpZM4UoL98
.

OK to close @ericmjl ?

Closing!


Adjust CMS commands for format and add TEPP Group parameter

Type of Change

[ ] Bug fix (non-breaking change)
[x] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[x] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Pester test is included

Purpose

Add TEPP for Group parameter with CMS/RegisteredServer command
Applied format and standard to Get-DbaRegisteredServerName
Included alias of previous parameter Groups

Fixes #1776
Approach
Allows calling of Get-DbaRegisteredServerName -SqlInstance sql2016a -Group xxx to auto-populate the Groups found on the CMS.
Adjusting Get-DbaRegisteredServerName brings it to our standards for the module, in regard to format. I also adjusted the command to use Get-DbaCmObject instead of WMI command. Should allow it to run a bit more efficiently.
Commands to test
#Credential is SQL Login, member of sysadmin role
Get-DbaRegisteredServerName -SqlInstance sql2016 -Group Legacy -SqlCredential (Get-Credential heman)

Get-DbaRegisteredServerName -SqlInstance sql2016 -Group Legacy -NoCmsServer

Get-DbaRegisteredServerName -SqlInstance sql2016 -Group Legacy -IpAddr

Get-DbaRegisteredServerName -SqlInstance sql2016 -Group Legacy -NetBiosName

Screenshots
Original command execution time (as accurate as Measure-Command can be), for version in 0.9.10

Command execution time in this PR, not extreme but still a difference

Show TEPP command working for Group

Example commands:

btw, I never commented on GitHub on how awesome this PR was :D Love even the animation!


Introduce tabs for Windows/Linux/macOS

To make it easier to find relevant content. Right now the same page contains all architectures and it is easy to be redirected to the wrong place.

No I don't think this is the problem. The problem is rather that "how to verify" is easy to miss.

Followed up in #59.


Export API: Sink.Disconnect API

As a user of the Workload Manager, I would like an API to disconnect a sink from an application so that the process can be automated by scripts and other applications.
Acceptance Criteria

A RESTful API to disconnect a sink from an application

Closing due to redesign


[TechDocs] Create techdocs mdx plugin

Refs.: https://github.com/backstage/backstage/pull/9385
Create an implementation for TechDocs reader page using MDX.

[x] Create backend generator
[x] Create frontend storage api
[x] Create frontend reader page and content
[x] Adjust styles for mobile layout
[ ] Add test for new components
[ ] Add/Create more extensions

Front-End
We are designing a way to customize the plugins used by the MDX compiler, but for now, you cannot do that.
Routes
You have two different ways to use this plugin, they are enumerated just below.
1. Default page layout
Explicitly use the MDX implementation for your Reader page:
App.tsx
import { TechDocsReaderPage } from '@backstage/plugin-techdocs';
import { techDocsReaderPage } from '@backstage/plugin-techdocs-mdx';

<Route path="/docs/:namespace/:kind/:name/*" element={<TechDocsReaderPage />}>
  {techDocsReaderPage} 👈
</Route>;

2. Custom page layout
This is for you who want to have a different layout than the default reader, if you want to know more about how to customize the TechDocs reader page, take a look here.
App.tsx
import { TechDocsReaderPage } from '@backstage/plugin-techdocs';
import { TechDocsReaderContent } from '@backstage/plugin-techdocs-mdx';

<Route path="/docs/:namespace/:kind/:name/*" element={<TechDocsReaderPage />}>
  <TechDocsReaderPage>
    {({ entityRef, entityMetadataValue, techdocsMetadataValue }) => (
      <>
        <TechDocsReaderPageHeader
          entityRef={entityRef}
          entityMetadata={entityMetadataValue}
          techDocsMetadata={techdocsMetadataValue}
        />
        <Content data-testid="techdocs-content">
          <Reader entityRef={entityRef}>
            <TechDocsReaderContent /> 👈
          </Reader>
        </Content>
      </>
    )}
  </TechDocsReaderPage>
</Route>;

Storage API config
This plugin expects you to have a TechDocs Storage API that returns markdown files, the @backstage/plugin-techdocs-mdx does that for you based on this guide:
import {
  createApiFactory,
  configApiRef,
  discoveryApiRef,
  identityApiRef,
  fetchApiRef,
} from '@backstage/core-plugin-api';
import { techdocsStorageApiRef } from '@backstage/plugin-techdocs';
import { TechDocsStorageApiImpl } from '@backstage/plugin-techdocs-mdx'; 👈

const app = createApp({
  apis: [
    createApiFactory({
    api: techdocsStorageApiRef,
    deps: {
      configApi: configApiRef,
      discoveryApi: discoveryApiRef,
      identityApi: identityApiRef,
      fetchApi: fetchApiRef,
    },
    factory: ({ configApi, discoveryApi, identityApi, fetchApi }) =>
      new TechDocsStorageApiImpl({
        configApi,
        discoveryApi,
        identityApi,
        fetchApi,
      }),
  }),
});

Writing documentation
You have to add a techdocs_config.json file to the root of your Backstage project, these are the available options:

Name
Description
Type
Default value
Required

site_name
Site name
string

yes

site_description
Site description
string

no

docs_dir
Docs directory
string
docs
no

nav
Navigation
array
[]
no

.
├── README.md
├── build-info.yaml
├── docs
│   ├── index.md
├── techdocs_config.json
├── node_modules
└── service-info.yaml

Back-End
The Front-end expects you to have implemented a backend Generator that returns markdown files, to do that use the TechDocsGenerator exported by the @backstage/plugin-techdocs-mdx-node package to generate documentation files on demand in your Backstage backend using Tech Docs and MDX, you can find a complete guide on setting up a backend for Tech Docs here.
backend/src/plugins/techdocs.ts
import { Generators } from '@backstage/plugin-techdocs-node';
import { TechDocsGenerator } from '@backstage/plugin-techdocs-mdx-node';

const generators = await Generators.fromConfig(config, options);
generators.register('techdocs', TechDocsGenerator.fromConfig(options)); 👈

:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

related: https://github.com/backstage/backstage/issues/4548

@camilaibs - Curious if anything every came out of this? I'm really interested in MDX as possible alternative to using mkdocs for techdocs.


Support constrain_to=___ argument in pyro.param()

The usual way to do constrained optimization in Pyro is to transform unconstrained parameters, e.g.
log_variance = pyro.param("log_variance", Variable(torch.zeros(10), requires_grad=True))
variance = log_variance.exp()

PyTorch 0.4 introduces a generic way to do this using transform_to():
from torch.distributions import constraints, transform_to

variance = transform_to(constraints.positive)(pyro.param("unconstrained_variance", ...))

It would be nice to use transform_to() to provide more first-class support for constraints in pyro.param, something like
# possible future syntax:
variance = pyro.param("variance", Variable(...), constrain_to=constraints.positive)

See also discussion in #702

@eb8680 I've attempted to implement this a couple of different ways (directly in the ParamStore, or as a poutine), but both were foiled by our use of site['value'] to discover active params.
Could we pair code on this next week to see if there's a path forward? In particular I'd like to determine if we need any breaking changes to the ParamStore before 0.2 release, even if this feature doesn't make the 0.2 release.

Could we pair code on this next week to see if there's a path forward?

Sure


doc(readme): Add quickstart link

Codecov Report

Merging #1 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #1   +/-   ##
=======================================
  Coverage   77.77%   77.77%
=======================================
  Files           4        4
  Lines          27       27
=======================================
  Hits           21       21
  Misses          6        6

Continue to review full report at Codecov.

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


Questions about the spider dataset

Hello, it's an honor to be able to use such a large text to SQL dataset. However, I recently encountered an issue while using the spider dataset. The latest downloaded spider dataset includes three directories: database, test-data, test-database, and dev.json, which contains 1034 validation data and corresponding 20 databases. However, when processing the data, I found that the database in the database does not fully include the databases in the validation set. It only contains 899 data from 18 databases, and the rest are in the test-database folder. This has caused me a bit of confusion. I would like to ask if there is an error in the content of the new version of the spider dataset. Is it?

Sorry, I noticed that it's not due to the database folder, it's because processing a table creation statement indicates that two databases do not have a schema.SQL file. Sorry to bother you.

Sorry, I noticed that it's not due to the database folder, it's because processing a table creation statement indicates that two databases do not have a schema.SQL file. Sorry to bother you.

The link to download the spider dataset in the webpage " https://yale-lily.github.io/spider " is giving a 404 error. Do you know where the dataset is available?


set rB to false if any storage slot in the requested range is unset

For posterity, this change was done in order to avoid the case of upgradable contracts not having guarantees that storage is set/unset consistently by the compiler.


NullReferenceException in switch on line 155

When I run this program in MonoDevelop on my Macbook Air I get an error saying that the variable choice is not set, and therefor leaving a NullReferenceException. This can be fixed by wrapping the switch in a try statement that catches NullReferenceExceptions.

Random Fighter is currently a windows-only game, if you want to have OS X support using MonoDevelop feel free to fork the repo, add support and create a pull request.

Might do that, seems to be some issues with how it interacts with the Console object though, and I don't think I have enough skills to edit that.


Global layout component

App.js needs to be singular and free of all nested components, only subscribed to global stores and persist configurations. Common components for each page should come under a global layout component. Also modified prettierrc.json to keep tab indentation to 2 spaces.
Signed-off-by: Aquib Baig<EMAIL_ADDRESS>

@Harkishen-Singh,

App.js needs to be singular and free of all nested components, only subscribed to global stores and persist configurations. Common components for each page should come under a global layout component.

Having a layout simplifies much of our codebase, freeing App.js only to things that it needs. We may need to add other components such as ContainerQuery, Persistors, etc. It's a common practice for React developers.


Create new goal that attaches existing zip to Maven build

This can be done with build-helper-maven-plugin but we'll add a goal because:

One less dependency
If we need any logic to check that the zip file is valid then we can add it in the future

Decided to go with skip options instead. See: #75


[BUG] llamalend TWAP is not working

There are currently 2 llamalend bots in the API. Both have
remaining_count: 2 and number_trades: 3, so we expect 2 additional bots to be created for each record.
There are no errors in the logs
Remaining bugs:

[ ] createNextBot cosmwasm transaction doesn't work yet.

from @rootedbox

the reason its not processing is that the contract address is differnt
wait..
yah it's a bug i gotta fix it. it's nto passing the right transaction

ok we are now processing the deposits.. that being said their health is above health_threshold.

@rootedbox what was the fix? Is there a PR for that?

This issue is not related to processing deposit but createNextBot. We have many pending deposits for twap but nothing happens on EVM yet. I am reopening and working on it. @rootedbox

May 30 15:45:17 bots-server start.sh[2873124]: {"message":"Request failed with status code 500","name":"Error","stack":"Error: Request failed with status code 500\n    at createError (/home/rooted...

@rootedbox Here's the code to get the crvUSD token amount in FE:
https://github.com/VolumeFi/palomabot/blob/fc92a20de04b0adc92a9b4dc93b75a1573e5ec2c/hooks/useCurveLendMarketDetails.tsx#L95-L161
callbackArg value is the amount of crvUSD tokens we want to get. (https://github.com/VolumeFi/palomabot/blob/fc92a20de04b0adc92a9b4dc93b75a1573e5ec2c/hooks/useCurveLendMarketDetails.tsx#L161)
Please refer to this code and ask me if you have any questions.

@rootedbox
https://github.com/VolumeFi/llamalend-leverage-lending-bot-/blob/e7e8273c41c1569d20f7942394569e000f8b4b09/llama-leverage.js#L490
After this BotStarted event, we need to process a more event.
https://github.com/VolumeFi/curve-llamalend-leverage-bot-vyper/blob/908f9533e78f800d3b0ff24bf7b77900b5cf261b/contracts/factory.vy#L82
We need to add amount0, amount1 and update remaining counts.

@webelf101 @verabehr what's the status of this issue? It's related to llamalend TWAP and we are unable to announce until this is fixed.

Closing as fixed until we learn it's not.


Revise model fields and asset file check/download logic

Resolves #1, #7, #8 and #9
Partially resolves #6 (private documents cannot be supported, as the 'original' value is required)
Summary of changes:

Added null=True to bynder_id
Removed unused bynder_id_hash field
Removed metadata field and the attributes/methods involved in setting it.
Added the original_filesize field for all asset models, and original_width and original_height fields for image and video. asset_file_has_changed() methods have also been updated to utilise these field values accordingly.
Replaced the bynder_original_filename field with source_filename, which will store the 'original' filename for documents, the 'source derivative' filename for images, and 'primary derivative' filename for videos. This allows private images and videos to be used in Wagtail, and because derivative names are repeated in derivative filenames by default, it should mean that asset_file_has_changed() returns True when BYNDER_IMAGE_SOURCE_THUMBNAIL_NAME is modified.
Adds unit tests covering 97% of wagtail_bynder/models.py

Breaking changes

Users of the app will need to run python manage.py makemigrations to reflect abstract model changes in their concrete models, followed by python manage.py migrate to apply those changes.
It is also recommended that the commands added in #18 be used to set new field values in all environments.
The download_asset_file() method has been removed from all base models. The newly added update_file() method is now responsible for downloading files and updating any relevant field values

pre-commit.ci autofix

pre-commit.ci autofix


Update how we Save and Propagate Consent Preferences

Is your feature request related to a specific problem?
Supersedes https://github.com/ethyca/fides/issues/2835
Create a PrivacyPreference table that creates new record for every consent preference saved. This is analogous to our Consent table but will link preferences with respect to a privacy notice history instead of a data use instead and also preserve a history of saved preferences instead of the latest saved state. It will have a FK to the PrivacyRequest created to propagate that preference.
Have consent propagation look at the attached PrivacyPreference for consideration of what preferences need to be propagated for which system.
Don't break our existing saving consent/ consent preference workflow.
Describe the solution you'd like
Details here
Describe alternatives you've considered, if any
A description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

moving to done


[GHSA-3h5v-q93c-6h6q] ws affected by a DoS when handling a request with many HTTP headers

Updates

Affected products

Comments
I'm not sure how to fix, but https://github.com/prebid/Prebid.js/security/dependabot/152 is not generating a pr despite reporting being able to upgrade to patched version 7.5.10. the security advisory says the earliest fixed version is in 8.17.1 and fails to generate a pull request

Hi there @lpinca! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

Hi @patmmccann, sounds like you are looking for help with Dependabot rather than an update to the advisory.  In that case, please contact GitHub support for help.


[Snyk] Upgrade i18next from 21.9.2 to 21.10.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade i18next from 21.9.2 to 21.10.0.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released a month ago, on 2022-10-06.

Release notes

Package name: i18next

21.10.0 - 2022-10-06
Add formatter cache 1843

21.9.2 - 2022-09-18
optimize single quotes replacement for $t() nesting 1836

    from i18next GitHub release notes

Commit messages

Package name: i18next

6bc410b 21.10.0
2a2d28a release cached formatters
e12564d Add formatter cache (#1843)
69313fc additional interpolation nesting tests

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

handled by dependabot


Remove hardcoded MC tag from KKP

User Story
As a user I want to have functionality to update MC version without upgrading KKP.
Acceptance criteria

MC version is taken from Kubermatic Configuration CR
created compatibility matrix for MC and KKP
documented steps how to upgrade MC

After studying the code I changed approach a bit, I think for now it makes sense to replace MC versions for dev/test/PoC purposes so still the option is needed, although, I think it doesn't make sense to change the way how we track version only for MC. Thus I created an issue to write proposal how to remove all hardcoded versions in KKP https://github.com/kubermatic/kubermatic/issues/7031

PR that allows to override MC version https://github.com/kubermatic/kubermatic/pull/7036


Looking for viable hosting for dev server

The server should be:

Relatively fast
Support Git and SSH (mostly git, I don't like updating files over FTP)
Support PHP 8++

If anyone knows about any good hosting that meet these criteria, do please comment on this thread or reach me by email. Thanks!

Mentioned in #21

you can use nearlyfreespeech

000webhost also supoorts git in all plans except for the free plan (though i have a way how to do that)

Thanks, can you reach me on Discord? I'm maybeimawok#6686


Can't set random state

Currently, there is no way to set and use a fixed random seed. We have only two options: either completely random or completely deterministic. Looking at the code, we can probably set a random seed by setting the global random seed for python's random module, but that's not very clean and could affect other parts of our project code.
It would be great if we could set a random_state parameter, much like scikit-learn allows us to do for randomized algorithms.
One concern is backward compatibility. If we add a random_state parameter, then randomize no longer makes sense, and should be removed. One possibility would be to keep randomize for a while and adding a deprication warning, having it be equivalent to random_state=None, and then eventually removing it altogether.
Is this something you would be willing to include in the library? If so, I would be willing to implement this.

Hello,
Yes it would be great, patch are welcomed.
It would be great to raise some error if randomize and random_state are both set !
Logic would be something like:
if random = True and random_state = None -> same behavior than current random=True
if random = False and random_state = None -> same behavior than current random=False
if random = True and random_state != None -> error value
if random = False and random_state != None -> set your state like scikit-learn
?

Yes, that sounds good. I'll open a PR within the next couple of days.

Actually, I have one thought on this. If I implement the logic as you stated it above, we'd have to keep the functionality of randomize=True. This simply iterates over the nodes in order. I guess this was included to enable deterministic results.
But now, we'll be able to set a random seed and this will also enable deterministic results. Is there any reason at all to keep the current behaviour? Using the new random_state alone can't replicate the current behaviour. In scikit-learn random_state=None simply means that something random will happen (and the point of this is to introduce consistency). I thought of using a reserved value (e.g. -1) to indicate no shuffling, but this is not something typically done and adds complexity.
So if we want to keep the current behaviour and not add reserved parameter values, we'd have to keep both the randomize and random_state parameters. IMO this is not a good idea, since this could lead to confusion. Unless there is a very good reason to keep the current deterministic behaviour (so no shuffling), then it would be better to remove it altogether. That way we can still have determinism by setting a random seed, we have the familiar random_state parameter present in popular libraries, the code is simpler, and we avoid any confusion from having two parameters.
What do you think?


Highlighting multidimensional arrays and slices

This parser highlights multidimensional array and also variables in brackets as a type when is used with variables to get specific item in the array.
Example code:
package main

func main() {
	var cells [3][2]int;
	var i = 90;
	var j = 20;

	cells[i][j] = 90;
}

The parser highlights variables cells, i and j as types on the line 8.

this repo is for the parser, highlights are implementation dependent, unless using the cli with the queries here.


Compilation & Execution Instructions

Resolves Issue #9
Also removed an import that was causing issues when compiling

I'm trying to merge pull requests in order of when they arrive if they don't have conflicts. Unfortunately since I merged other pull requests there are conflicts with your branch that need to be resolved, so if you'd like you can resolve the conflicts and I'll merge your pull request next, or I'll get around to resolving conflicts in a day or two when I get a chance.


Default dependency array for useAsync and useAsyncRetry

The dependency array is optional for useEffect so I think we should follow that pattern too. If useEffect doesn't have a dependency array it runs on every render. This doesn't seem like the behaviour you want would want from a hook like this so the best solution seems to make the default deps parameter an empty array.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fix library linkage for example plugins.

Some of the example plugins don't work because of run time loading problems. This is due to link time failures, which are (mostly) fixed by this patch.

Yes.

[approve ci autest]


Scroll bar looks broken in intelli-sense documentation widget

This is linux, though it is prolly everywhere

Duplicate of #1928


Add length check to github signature

Adds a length check to avoid an out-of-range panic.

coverage: 88.574% (-0.2%) from 88.742%
when pulling 34f4b9bb4e1c8f0b3aa62d0e7ec7a864a6060ed4 on AdamKorcz:fix-out-of-range
into c3b1a44049dbc1641f3919a98e44e09f8f17ca37 on go-playground:master.

@robinlieb, this PR relates to a Security Audit done to the CNCF Knative Project,
Knative uses this repository as a dependency and the audit requires this to be fixed.
Can you check to see if this PR is expected to be fixed any time soon, or should Knative look for alternatives instead?

Hi @AdamKorcz,
is this change still needed after the merge of #173?

Hi @AdamKorcz, is this change still needed after the merge of #173?

Yes

@robinlieb Can you have a look at https://github.com/go-playground/webhooks/security/advisories/GHSA-m7vc-6h95-xrjq and invite @davidhadas as a collaborator there as well?

@robinlieb Can you have a look at https://github.com/go-playground/webhooks/security/advisories/GHSA-m7vc-6h95-xrjq and invite @davidhadas as a collaborator there as well?

I'm the other security lead on Knative, and I'd appreciate if I could be on this issue as well.

Actually, #173 did fix this by swapping []byte(signature[5:]) for strings.TrimSignature, which removes the slice indexing.
I think we can close this given #173 being merged.  Do you agree @AdamKorcz ?

Seems like I don't have access neither. @deankarn can you have a look and add me and the two mentioned in the thread to this security advisory?

Maybe I missed something how would I add someone to the security advisory? Not sure I understand.

https://docs.github.com/en/code-security/security-advisories/working-with-repository-security-advisories/adding-a-collaborator-to-a-repository-security-advisory

OK y'all should be added now as collaborators.


Few implementations that do not match the original paper.

The similarity computation is cosine-related function in the paper, but here is torch.bmm, may be such function is not important.

It is the cosine similarity in the paper that is usually computed using dot product, therefore bmm may compute the cos-similarity of each possible vector pairs ([cosine] similarity matrix) coming from the output of the backbone net.

It is the cosine similarity in the paper that is usually computed using dot product, therefore bmm may compute the cos-similarity of each possible vector pairs ([cosine] similarity matrix) coming from the output of the backbone net I guess.


Could not create parent directory for lock file C:\Program Files\Java\wrapper\dists\gradle-7.4-bin\c0gwcg53nkjbqw7r0h0umtfvt\gradle-7.4-bin.zip.lck

Expected Behavior
I should be able to save my android studio files multiple times without this error message.
Current Behavior
Error originally started in android studio eel version. Projects that are saved more than once have this error for unknown reasons.
Context (optional)
Unable to save, continue work, modify and create .apk for practice purpose.
Steps to Reproduce
I don't have to show you anything. Just download a copy of android eel or flamingo.  See https://issuetracker.google.com/issues/279270917?pli=1. You can get a copy of my project from this link.
Gradle version
Not sure
Build scan URL (optional)
NA/not known
Your Environment (optional)
Android Studio Flamingo | 2022.2.1 on win 11.

Thank you for your interest in Gradle!
Your issue appears to be a question about how to use Gradle. Your question might be answered in Gradle documentation or on our community Slack or forums. Find links to these resources on help.gradle.org.
If you think you have come across a Gradle bug, please file a new issue describing the problem and how to reproduce it.
If you think Gradle is missing a feature, please file a new issue describing your use case for the feature.

It's weird that you are using the path "C:\Program Files\Java...", which is not the standard Gradle user-home path.
Are you sure you have write permissions in that path?

Bro，have you solved this problem ? I also met this .

Hello @mayuelantianyu, not yet. I'm still working on it. My problem might be from react native. It didn't suddenly appear in AS.

All right. Thanks for your answer.🤜🤛

Hello @mayuelantianyu, not yet. I'm still working on it. My problem might be from react native. It didn't suddenly appear in AS.
Update: I found a youtube video that shows the same thing as https://reactnative.dev/docs/environment-setup?guide=native. Whilst I cannot get my virtual running yet, lots of PATH settings in the computer was missing. Depending on what system you're using e.g. Mac, Linux, Windows, you have to check what you need to do. My error messages have changed to "Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details"

All right. Thanks for your answer.🤜🤛

Hello @mayuelantianyu, I managed to solve my problems. At current time, I need to connect my physical phone to the android studio took and later yesterday, I even managed to connect the phone and install the react native wirelessly. I hope you solve your case.
Note: I'll be unsubscribing from all emails as I no longer need to post anymore questions.

go to settings , under build, execution & deployment section, under build tools , go to gradle and change your gradle user home path
it should be referring to ${USER}/.gradle. In windows should be , C:\Users(username).gradle. It will default to your java sdk if you have configured open jdk in your environment before u downloaded and setup android studio
i would recommend to remove java in your pc environment (the jdk you configured on your own) to avoid any similar conflict  BEFORE you install android studio, such that it jdk will default to an android studio downloaded version path in future.


ALB on BSD Systems

This issue started with AP-ALB v0.8.x adaptations to support RHEL/CentOS 8 family and design changes to allow flexibility even for non-tested OSs #34. This issue mostly likely to be a place to mention things on ALB that are different from the other systems and/or have a place to mention what is not implemented.
Note: I do not use BSDs systems in production, but this does not means that, when viable, at least made the base ALB have at least some bare minimum compatibility. Initially the ALB is tested on FreeBSD 12.

Aboud BSDs & BSDs & Ansible

Ansible and BSD

https://docs.ansible.com/ansible/latest/user_guide/intro_bsd.html

Ansible Community / BSD Working Group

https://github.com/ansible/community/wiki/BSD

freebsd.org: Comparing BSD and Linux

https://www.freebsd.org/doc/en_US.ISO8859-1/articles/explaining-bsd/comparing-bsd-and-linux.html

Wikipedia: Comparison of BSD operating systems

https://en.wikipedia.org/wiki/Comparison_of_BSD_operating_systems

Ansible Packages related to BSD

Ansible Packaging modules OSs (full list)

https://docs.ansible.com/ansible/latest/modules/list_of_packaging_modules.html#os

package – Generic OS package manager

https://docs.ansible.com/ansible/latest/modules/package_module.html

pkgng – Package manager for FreeBSD >= 9.0

https://docs.ansible.com/ansible/latest/modules/pkgng_module.html

portinstall – Installing packages from FreeBSD’s ports system

https://docs.ansible.com/ansible/latest/modules/portinstall_module.html

openbsd_pkg – Manage packages on OpenBSD

https://docs.ansible.com/ansible/latest/modules/openbsd_pkg_module.html

pkgin – Package manager for SmartOS, NetBSD, et al

https://docs.ansible.com/ansible/latest/modules/pkgin_module.html

and others...

Ansible System modules related to BSD

System modules (full list)

https://docs.ansible.com/ansible/latest/modules/list_of_system_modules.html?

beadm – Manage ZFS boot environments on FreeBSD/Solaris/illumos systems

https://docs.ansible.com/ansible/latest/modules/beadm_module.html

syspatch – Manage OpenBSD system patches

https://docs.ansible.com/ansible/latest/modules/syspatch_module.html#syspatch-module

and others...

BSD service management

4. Inicialização do Sistema

https://www.freebsd.org/doc/pt_BR.ISO8859-1/articles/linux-users/startup.html

Managing Services in FreeBSD

https://www.freebsd.org/doc/handbook/configtuning-rcd.html

Problems with Systemd and Why I like BSD Init

https://www.textplain.net/blog/2015/problems-with-systemd-and-why-i-like-bsd-init/

Update 1:

Created BSD service management section

v0.8.4-alpha, I'm having errors similar to what had before with ansible facts related for permissions of directories. This one is very specific to FreeBSD
TASK [Gathering Facts] ****************************************************************************************************************************************************************************************************************
ok: [ap_foxtrot_centos8]
ok: [ap_delta_ubuntu18]
ok: [ap_echo_debian10]
ok: [ap_golf_archilinux]
fatal: [rocha_anortosito_freebsd12]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/local/bin/python3.6"}, "cmd": "/etc/ansible/facts.d/alb_openresty.fact", "failed": true, "invocation": {"module_args": {"fact_path": "/etc/ansible/facts.d", "filter": "*", "gather_subset": ["all"], "gather_timeout": 10}}, "msg": "[Errno 2] No such file or directory: b'/etc/ansible/facts.d/alb_openresty.fact': b'/etc/ansible/facts.d/alb_openresty.fact'", "rc": 2, "warnings": ["Platform freebsd on host rocha_anortosito_freebsd12 is using the discovered Python interpreter at /usr/local/bin/python3.6, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information."]}}, "msg": "The following modules failed to execute: setup\n"}

dirty fix is deleting the file (like ansible rocha_anortosito_freebsd12 -i hosts.yml -m shell -u root -a "rm -f /etc/ansible/facts.d/alb_openresty.fact") but this must be solved later

This
-#!/bin/bash
+#!/bin/sh

solves https://github.com/fititnt/ap-application-load-balancer/issues/37#issuecomment-564359038.

The HAProxy path is also different from the other *nix.
(...)
TASK [ap-application-load-balancer : reconfigure.yml]
included: /alligo/code/fititnt/ap-application-load-balancer/tasks/haproxy/reconfigure.yml for ap_delta_ubuntu18, ap_echo_debian10, ap_foxtrot_centos8, ap_golf_archilinux, rocha_anortosito_freebsd12, rocha_basalto_opensuse15

TASK [ap-application-load-balancer : haproxy | reconfigure: /etc/haproxy/haproxy.cfg]
changed: [ap_echo_debian10]
changed: [ap_delta_ubuntu18]
fatal: [rocha_anortosito_freebsd12]: FAILED! => {"changed": false, "checksum": "af6b6093e5663f933e09e50c4ce1ae273316ab43", "msg": "Destination directory /etc/haproxy does not exist"}
changed: [ap_golf_archilinux]
[rocha_anortosito_freebsd12] TASK: ap-application-load-balancer : haproxy | reconfigure: /etc/haproxy/haproxy.cfg (debug)>

On the node
[root@rocha-anortosito-freebsd12 /]# find / -iname haproxy
/usr/ports/net/haproxy
/usr/local/sbin/haproxy
/usr/local/etc/rc.d/haproxy
/usr/local/share/examples/haproxy
/usr/local/share/doc/haproxy
/opt/alb/haproxy

This is our actual yaml task
- name: "haproxy | reconfigure: /etc/haproxy/haproxy.cfg"
  template:
    # src: "{{ role_path }}/templates/openresty/nginx/conf/nginx.conf.j2"
    src: "{{ alb_haproxy_haproxy_template }}"
    dest: /etc/haproxy/haproxy.cfg
    owner: "{{ alb_internal_root_user }}"
    group: "{{ alb_internal_root_group }}"
    mode: '0644'
    backup: yes
  notify:
    - reload haproxy

HUMMM... FreeBSD does not use systemd. It's the old school service. Not that this is bad, just different. Will need more specific strategy. Also not so easy to find tutorials on internet, but maybe will not take that long.
Also, something I really, really liked on all other OSs tested that are not Centos or Ubuntu/Debian: all they already ship with HAProxy 2.0 or 2.1. So actually they do not need a repo for what we need.
[root@rocha-anortosito-freebsd12 /]# cat /usr/local/etc/rc.d/haproxy
Here I' trying to discover where to make things work and where to put everything.

#!/bin/sh
#
# $FreeBSD: branches/2019Q4/net/haproxy/files/haproxy.in<PHONE_NUMBER>-08-24 19:19:26Z demon $
#

# PROVIDE: haproxy
# REQUIRE: DAEMON LOGIN
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable haproxy:
#
# haproxy_enable (bool):	default: "NO"
#				Set to "YES" to enable haproxy
# haproxy_pidfile (str):	default: /var/run/haproxy.pid
#				Set to the full path of the pid file
# haproxy_config (str):		default: /usr/local/etc/haproxy.conf
#				Set to the full path of the config file
# haproxy_flags (str):		default: Autogenerated using pidfile and config options
#				Set to override with your own options
# haproxy_profiles (str):	default: empty
# Set to space-separated list of profiles: for each profile separate haproxy
# process will be spawned, with haproxy-${profile}.conf config file.
# You can override default pidfile and config file for each profile with
# haproxy_${profile}_config and haproxy_${profile}_pidfile.

. /etc/rc.subr

name="haproxy"
rcvar=haproxy_enable
command="/usr/local/sbin/haproxy"
extra_commands="reload configtest hardstop hardreload softreload"
reload_cmd="haproxy_reload"
hardreload_cmd="haproxy_reload"
hardreload_precmd="def_hardreload_option"
softreload_cmd="haproxy_reload"
softreload_precmd="def_softreload_option"
stop_cmd="haproxy_stop"
hardstop_cmd="haproxy_stop"
hardstop_precmd="def_hardstop_signal"

: ${haproxy_enable:="NO"}
: ${haproxy_config:="/usr/local/etc/${name}.conf"}
: ${haproxy_socket:="/var/run/${name}/socket"}
pidfile=${haproxy_pidfile:-"/var/run/haproxy.pid"}

def_hardreload_option()
{
    reload_opt="-st"
}

def_softreload_option()
{
    reload_opt="-x ${haproxy_socket} -sf"
}

def_hardstop_signal()
{
    sig_stop="TERM"
}

load_rc_config $name

is_valid_profile() {
    local profile
    for profile in $haproxy_profiles; do
        if [ "$profile" = "$1" ]; then
            return 0
        fi
    done
    return 1
}

if [ -n "$2" ]; then
    profile=$2
    if ! is_valid_profile $profile; then
        echo "$0: no such profile ($profile) defined in ${name}_profiles."
        exit 1
    fi
    eval haproxy_config="\${haproxy_${profile}_config:-/usr/local/etc/haproxy-${profile}.conf}"
    eval pidfile="\${haproxy_${profile}_pidfile:-/var/run/haproxy-${profile}.pid}"
else
    if [ "x${haproxy_profiles}" != "x" -a "x$1" != "x" ]; then
        for profile in ${haproxy_profiles}; do
            echo "===> ${name} profile: ${profile}"
            /usr/local/etc/rc.d/haproxy $1 ${profile}
            retcode="$?"
            if [ ${retcode} -ne 0 ]; then
                failed="${profile} (${retcode}) ${failed:-}"
            else
                success="${profile} ${success:-}"
            fi
        done
        exit 0
    fi
fi

: ${haproxy_flags:="-q -f ${haproxy_config} -p ${pidfile}"}
configtest_cmd="$command -c -f $haproxy_config"
start_precmd="$command -q -c -f $haproxy_config"
required_files=$haproxy_config
sig_stop=SIGUSR1
reload_opt="-sf"

haproxy_reload()
{
	${command} -q -c -f ${haproxy_config}
	if [ $? -ne 0 ]; then
	    err 1 "Error found in ${haproxy_config} - not reloading current process!"
	fi
	rc_pid=$(check_pidfile ${pidfile} ${command})
	if [ $rc_pid ]; then
		${command} ${haproxy_flags} $reload_opt $(cat ${pidfile})
	else
		_run_rc_notrunning
		return 1
	fi
}

haproxy_stop()
{
	rc_pid=$(check_pidfile ${pidfile} ${command})
	if [ $rc_pid ]; then
		rc_pid=$(cat ${pidfile})
		kill -$sig_stop $rc_pid
		wait_for_pids $rc_pid
	else
		_run_rc_notrunning
		return 1
	fi
}

run_rc_command "$1"

Lastest commit we're already have HAProxy installed based on OS Family (the Ansible Generic package fails even for Debian/Ubuntu when I try to enforce one specific version.
Because BSD, this also means that at least the other step, that separate how to reload/restart/start the HAProxy, must be also dependend of the system.
This is our version using systemd (this Ansible module https://docs.ansible.com/ansible/latest/modules/systemd_module.html).
# Enabled/Started must be AFTER moving new /etc/haproxy/haproxy.cfg
# configurations or Ansible will not be able to update one new valid
# configuration if old one was already with error. By moving this step
# after we avoid user being forced to solve manually on the server
- name: "haproxy | reconfigure: sudo systemctl enable haproxy.service"
  systemd:
    name: haproxy
    state: started
    enabled: yes

The BSD I guess will use the service, https://docs.ansible.com/ansible/latest/modules/service_module.html. Loggin on rocha_anortosito_freebsd12 I see that service command works like the old school method. But seems that the service alone will not make it aware of some default location of configutation, so have to add rules on /etc/rc.conf file. That's a bit scary if not well done.

[root@rocha-anortosito-freebsd12 /]# cat /usr/local/share/examples/haproxy/transparent_proxy.cfg
#
# This is an example of how to configure HAProxy to be used as a 'full transparent proxy' for a single backend server.
#
# Note that to actually make this work extra firewall/nat rules are required.
# Also HAProxy needs to be compiled with support for this, in HAProxy1.5-dev19 you can check if this is the case with "haproxy -vv".
#

global
defaults
	timeout client		30s
	timeout server		30s
	timeout connect		30s

frontend MyFrontend
	bind	<IP_ADDRESS>:80
	default_backend		TransparentBack_http

backend TransparentBack_http
	mode			http
	source <IP_ADDRESS> usesrc client
	server			MyWebServer <IP_ADDRESS>:80

#
# To create the the nat rules perform the following:
#
# ### (FreeBSD 8) ###
# --- Step 1 ---
# ipfw is needed to get 'reply traffic' back to the HAProxy process, this can be achieved by configuring a rule like this:
#	fwd localhost tcp from <IP_ADDRESS> 80 to any in recv em0
#
# The following would be even better but this did not seam to work on the pfSense2.1 distribution of FreeBSD 8.3:
#   fwd <IP_ADDRESS>:80 tcp from any 80 to any in recv ${outside_iface} uid ${proxy_uid}
#
# If only 'pf' is currently used some aditional steps are needed to load and configure ipfw:
# You need to configure this to always run on startup:
#
# /sbin/kldload ipfw
# /sbin/sysctl net.inet.ip.pfil.inbound="pf" net.inet6.ip6.pfil.inbound="pf" net.inet.ip.pfil.outbound="pf" net.inet6.ip6.pfil.outbound="pf"
# /sbin/sysctl net.link.ether.ipfw=1
# ipfw add 10 fwd localhost tcp from <IP_ADDRESS> 80 to any in recv em0
#
# the above does the following:
# - load the ipfw kernal module
# - set pf as the outer firewall to keep control of routing packets for example to route them to a non-default gateway
# - enable ipfw
# - set a rule to catches reply traffic on em0 coming from the webserver
#
# --- Step 2 ---
# To also make the client connection transparent its possible to redirect incomming requests to HAProxy with a pf rule:
#   rdr on em1 proto tcp from any to <IP_ADDRESS> port 80 -> <IP_ADDRESS>
# here em1 is the interface that faces the clients, and traffic that is originally send straight to the webserver is redirected to HAProxy
#
# ### (FreeBSD 9) (OpenBSD 4.4) ###
#   pf supports "divert-reply" which is probably better suited for the job above then ipfw..
#

[root@rocha-anortosito-freebsd12 /]# cat /usr/local/share/examples/haproxy/haproxy.init
#!/bin/sh
#
# chkconfig: - 85 15
# description: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited \
#              for high availability environments.
# processname: haproxy
# config: /etc/haproxy/haproxy.cfg
# pidfile: /var/run/haproxy.pid

# Script Author: Simon Matter<EMAIL_ADDRESS># Version:<PHONE_NUMBER>

# Source function library.
if [ -f /etc/init.d/functions ]; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 0
fi

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# This is our service name
BASENAME=`basename $0`
if [ -L $0 ]; then
  BASENAME=`find $0 -name $BASENAME -printf %l`
  BASENAME=`basename $BASENAME`
fi

BIN=/usr/sbin/$BASENAME

CFG=/etc/$BASENAME/$BASENAME.cfg
[ -f $CFG ] || exit 1

PIDFILE=/var/run/$BASENAME.pid
LOCKFILE=/var/lock/subsys/$BASENAME

RETVAL=0

start() {
  quiet_check
  if [ $? -ne 0 ]; then
    echo "Errors found in configuration file, check it with '$BASENAME check'."
    return 1
  fi

  echo -n "Starting $BASENAME: "
  daemon $BIN -D -f $CFG -p $PIDFILE
  RETVAL=$?
  echo
  [ $RETVAL -eq 0 ] && touch $LOCKFILE
  return $RETVAL
}

stop() {
  echo -n "Shutting down $BASENAME: "
  killproc $BASENAME -USR1
  RETVAL=$?
  echo
  [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
  [ $RETVAL -eq 0 ] && rm -f $PIDFILE
  return $RETVAL
}

restart() {
  quiet_check
  if [ $? -ne 0 ]; then
    echo "Errors found in configuration file, check it with '$BASENAME check'."
    return 1
  fi
  stop
  start
}

reload() {
  if ! [ -s $PIDFILE ]; then
    return 0
  fi

  quiet_check
  if [ $? -ne 0 ]; then
    echo "Errors found in configuration file, check it with '$BASENAME check'."
    return 1
  fi
  $BIN -D -f $CFG -p $PIDFILE -sf $(cat $PIDFILE)
}

check() {
  $BIN -c -q -V -f $CFG
}

quiet_check() {
  $BIN -c -q -f $CFG
}

rhstatus() {
  status $BASENAME
}

condrestart() {
  [ -e $LOCKFILE ] && restart || :
}

# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart)
    restart
    ;;
  reload)
    reload
    ;;
  condrestart)
    condrestart
    ;;
  status)
    rhstatus
    ;;
  check)
    check
    ;;
  *)
    echo $"Usage: $BASENAME {start|stop|restart|reload|condrestart|status|check}"
    exit 1
esac

exit $?

Ok, FreeBSD does not come with an haproxy user/group at all. Some discussion here https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199314 and proposed patch here https://bugs.freebsd.org/bugzilla/attachment.cgi?id=155368&action=diff.

See Implementation of Ansible Molecule on AP-ALB & travis-ci integration #2

Reliable CI testing (like with travis-CI) may be more complicated than other linuxes. Here have some discussion on travis-ci about not supporting https://github.com/travis-ci/travis-ci/issues/1818.
In short, while is not as complicated than running a Windows conteiner inside linux host, run a BSD container requires a BSD host. BSDs are not a major concern on Docker to give full support as a host.
I found some places like these ones

https://github.com/ustclug/ustcmirror-images/tree/master/freebsd-ports
https://github.com/weitjong/dockerized/blob/master/urho3d/freebsd/Dockerfile

that seems to use some linux OS (in the case, Alpine and Ubuntu) to then download a BSD image and somewhat "work" as if was BSD.
Not sure if this would be able to emulate a full BSD (at at least the bare minimum that could already be sufficient for our tests). But in this case, I guess that means that

AP-ALB should have (if already not possible just with playbook vars for custom OSs) to support "act as one OS at install, but as another when running"
AP-ALB, idealy, but not strong requeriment, be able to run on Alpine Linux.

One image that seems to already ship with near everyting that we need is openresty/openresty:alpine-fat. It even comes with luarocks and opm, so maybe its less complicated (or even would run faster than other tests) to implement


Add adapter tests to waterline core...

... to ensure changes in waterline don't break adapters.
Back in issue #862 @particlebanana said:

All features need to work across all our adapters.

Which I totally agree BUT currently the waterline core code doesn't automatically run against any adapters. As a quick way to find out if a waterline change breaks the adapters I suggest running waterline against the sails-memory integration tests on every build. In my machines this only makes the tests run for 2-3 seconds longer.
Another added benefit is that waterline core code coverage increases:

Coverage
Before
After

Statements
78.61% ( 2933/3731 )
84.4% ( 2933/3731 )

Branches
67.87% ( 1335/1967 )
74.78% ( 1335/1967 )

Functions
84.3% ( 521/618 )
89.64% ( 521/618 )

Lines
83.12% ( 2778/3342 )
88.96% ( 2778/3342 )

Note: for now the adapter tests are always returning 0 because "Semantic Interface .find() should escape attribute names to prevent SQL injection attacks" test is broken sails-memory
Note2: We probably should also have some sort of automated build that would run tests agains every official adapter, maybe in the waterline-adapter-tests?

+1 for this, but FYI your before/after numbers are the same (copy/paste mixup?)

Awesome :)

Thanks @blah238, fixed it now :wink:

@tjwebb, @randallmeeker and @particlebanana, would like to hear from you.

+1

Thanks @tjwebb!


Issue with unnest_tokens inside PrepText

When running PrepText, I am getting the error:
"Error in check_input(x) :
Input must be a character vector of any length or a list of character
vectors, each of which has a length of 1."
This seems to be an issue with unnest_tokens inside the function, similar to the problem reported here.
I am able to use unnest_tokens outside PrepText just fine on the same data frame.

Hello- if this doesn't work will you please let me know:
https://github.com/cbail/textnets/issues/11

Ah, didn't see that issue. Renaming the text variable column in my data to "textvar" worked. Thanks!

Hey- I am unable to reproduce your problem-- are you working on mac or pc? Also, when you got the problem were you trying to rename the variable in the SOTU example data or your own dataset? In otherwords, is the problem that you had to rename your own textvar variable "textvar"? Thanks.

Hi - I'm working on a Mac, so that might be the issue (session info below).
To clarify, I was working with my own data and had to rename the text variable from "text" to "textvar" for the function to work. I just tried with the SOTU data as well, and I get the same error. Changing sotu$sotu_text to sotu$textvar fixes the problem.
R version 3.6.2 (2019-12-12)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.3

Huh- must be an issue with either macOS or R, since I am on older versions of both.
On May 13, 2020, at 10:37 AM, Michael Bossetta <notifications<EMAIL_ADDRESS>wrote:
Hi - I'm working on a Mac, so that might be the issue (session info below).
To clarify, I was working with my own data and had to rename the text variable from "text" to "textvar" for the function to work. I just tried with the SOTU data as well, and I get the same error. Changing sotu$sotu_text to sotu$textvar fixes the problem.
R version 3.6.2 (2019-12-12)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.3
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cbail/textnets/issues/13*issuecomment-628032904__;Iw!!OToaGQ!4OObX3kLMlPSjyBXdqljkhDTndSTlAIzlor06AzarAuv8jLwF7hxMA-PjtnPjAQtUKd1ZA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ACAJ2D3SQYAK7K73ZSYIKYTRRKWA5ANCNFSM4M7IPIPA__;!!OToaGQ!4OObX3kLMlPSjyBXdqljkhDTndSTlAIzlor06AzarAuv8jLwF7hxMA-PjtnPjAQQNoUkxg$.


How to disable enforced compilation?

Hey there,
I am using node-gyp and prebuild-install to build native node modules for an Electron application. The repos of the dependencies don't have the versions prebuilt that I need, so they need to be compiled locally.
However, calling npm install a second time doesn't result in a cache hit. I noticed the --force flag, introduced by
https://github.com/prebuild/prebuild-install/pull/48. Where is this set to true?
Any help is highly appreciated!

  • rebuilding native dependencies<EMAIL_ADDRESS><EMAIL_ADDRESS>platform=darwin arch=x64
  • install prebuilt binary  name=drivelist version=9.2.4 platform=darwin arch=x64 napi=
  • execute command  command=/usr/local/bin/node /Volumes/FooProject/node_modules/prebuild-install/bin.js --platform=darwin --arch=x64 --target=14.2.8 --runtime=electron --verbose --force
                     workingDirectory=/Volumes/FooProject/node_modules/drivelist
  • build native dependency from sources  name=drivelist
                                          version=9.2.4
                                          platform=darwin
                                          arch=x64
                                          napi=
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.6
    prebuild-install WARN install prebuilt binaries enforced with --force!
    prebuild-install WARN install prebuilt binaries may be out of date!
    prebuild-install info looking for cached prebuild @ /Users/sebastian/.npm/_prebuilds/5a2fbc-drivelist-v9.2.4-electron-v89-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/balena-io-modules/drivelist/releases/download/v9.2.4/drivelist-v9.2.4-electron-v89-darwin-x64.tar.gz
    prebuild-install http 404 https://github.com/balena-io-modules/drivelist/releases/download/v9.2.4/drivelist-v9.2.4-electron-v89-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=14.2.8 runtime=electron arch=x64 libc= platform=darwin)

electron-builder does its own manual invocation of prebuild-install, and is the one setting that flag https://github.com/develar/app-builder/blob/4e2aa6a12e2bc3d31ec0d01d661fb3a4d65248ff/pkg/node-modules/rebuild.go#L220
My guess is that it might need to do that to ensure the correct platform/architecture is installed


Window minimize event not running when Window.borderless = 1 (disabled)

Versions

Python: 3.7.4
OS: Windows 10
Kivy: latest version
Kivy installation method: pip

Description
This issue was found when developing a Kivy desktop application on Windows 10.
When the Window.borderless option is set to 0, I am able to minimize the App window by clicking the App icon in the task bar. However, when the Window.borderless option is set to 1, and the border is disabled, I cannot minimize the window by clicking the App icon in the task bar (nothing happens).
It appears that this issue is driven by the fact that the 'windowminimized' event is NOT running at all when borderless is set to 1 within the event loop of the window SDL2 Kivy Source code located here: Python37-32\Lib\site-packages\kivy\core\window\window_sdl2.py.
Here is the App Icon button being clicked in the task bar when the App is running:

Here is the test code I wrote into the Window SDL2 source code to print the events as they execute:

Scenario 1:
When the App is open and the App icon in the task bar is clicked, here are the events that run when Window.borderless is set to 0 (enabled). As you can see below, the 'windowminimized' event from Window SDL2 source code runs.

Scenario 2 (ISSUE):
When the App is open and the App icon in the task bar is clicked, here are the events that run when Window.borderless is set to 1 (disabled). As you can see below, the 'windowminimized' event from Window SDL2 source code does NOT run. This explains why the App window won't minimize when the App icon is clicked in the task bar while the border is disabled.

How do I get the 'windowminimized' event to run in a situation where borderless is set to 1 and the App icon in the task bar is clicked? This appears to be a bug in the Window SDL2 source code. This event must run if the developer wants to remove the border and create their own custom title bar with minimize, maximize, close, etc. features. The developer needs to be able to distinguish between a 'windowfocuslost' and 'windowminimized' event when the border is disabled on the window and the App icon is clicked by the user in the task bar.

Can you please confirm if this still happens with Kivy 2.2.1?


⚠ ClamAV has degraded performance

In bf00901, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in cc96108.


Nested list-group-horizontal inside list-group-flush renders without proper borders

Bug reports must include:

Operating system and version (Windows)
Browser and version (Tested on Chrome and Firefox)
Test Case : https://codepen.io/jarodhanko/pen/vYEaoKr
Bootstrap Version: 4.4.1

Perhaps this is a bit of an edge case or simply unsupported behavior, but if you attempt to nest a list-group-horizontal inside of a custom list-group that is using list-group-flush, the list-group-horizontal renders with the inner borders, the side borders, or the top border of the first item.  It is inheriting the css from .list-group-flush .list-group-item.  Any nested list groups that are not horizontal list groups render as list-group-flush as well.
It works fine with a normal list group.

Closing per https://github.com/twbs/bootstrap/pull/30110#issuecomment-585988983


Update Interface to comply with Tabler 1.0-alpha-8

Actually I was able to lock tabler to alpha.6 version after all, and apply some security patches


Upgrade to latest unplugin

Looks like there might be a regression in unplugin.
I'm getting the following error logs when building locally TEST_WITH_WEBPACK=1 yarn nuxi build playground:
ERROR in ./playground/components/FetchTest.vue?vue&type=template&id=7a38cfc8&
Module not found: Error: Can't find options with ident 'nuxt:auto-imports-transform'
 @ ./playground/components/FetchTest.vue?vue&type=template&id=7a38cfc8& 1:0-402 1:0-402
 @ ./playground/components/FetchTest.vue
 @ ./playground/pages/legacy-capi.vue
 @ ./playground/.nuxt/router.js
 @ ./playground/.nuxt/index.js
 @ ./playground/.nuxt/client.js
 @ multi<EMAIL_ADDRESS>./playground/.nuxt/client.js

Possibly related: https://github.com/webpack/webpack/issues/8952.
Originally posted by @danielroe in https://github.com/nuxt/bridge/issues/435#issuecomment-1199583257

/cc @antfu

Also related to https://github.com/webpack/webpack/issues/8406
Seems to be fixed in Webpack 5, I will see want I can workaround it with webpack 4 in unplugin

I have set up the test against Webpack 4 but does not hit this error:
https://github.com/unjs/unplugin/runs/7659282481?check_suite_focus=true#step:9:39
Might need some help to reproduce it


How to calling function in ionic3?

Hi, how to calling function like this.firebase.hasPermission().then(xxx)? I'm not able to use this within ionic 3 project.
I'm getting error when calling any function
Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function

You need to call the plugin directly via its Javascript API as discussed in #50
Since this appears to be confusing people, I'll add a section to the documentation about using this plugin fork with Ionic.

Isn't no need to import @ionic-native/firebase anymore?
Can provide some simple example?
Haha, I'm bit confused on this

I've added a new section to the documentation:
https://github.com/dpa99c/cordova-plugin-firebasex#ionic-3

Thanks for answer, you’re really great and awesome.
so isn’t means can remove completely for @ionic-native/firebase with this implementation? and with this implementation no need to declare the library as ionic-native, just (window).FirebasePlugin will do?
Besides, with this implementation can testing within ionic-serve right?

Yes you can remove the ionic native wrapper and just use the JS API


Physics iteration 10

Visualize instanced bodies
Update PhysicsShape creation to allow for using an already existing reference

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/13559/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13559/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13559/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/13559/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/13559/merge
https://gui.babylonjs.com/?snapshot=refs/pull/13559/merge
https://nme.babylonjs.com/?snapshot=refs/pull/13559/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/13559/merge#BCU1XR#0