Make HTTPS call from request module

I'm trying to make https call using request module, below is current  existing options
and i have pfx file and password.
strictSSL: false,
rejectUnauthorized: false,
agent: false

Can somebody help me out  about what all need to be set as true and  do i need to export cert files.
If possible please share openssl  command for this.
I tried exporting cert and made strictSSL and rejectUnauthorized true, but end up seeing  error like
 message: 'Error: unable to verify the first certificate'
Node Version is  6.9.2

Did you try by setting
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'

@rpgeeganage  this is not a preferred way.
Full error stack
{ Error: unable to verify the first certificate
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1085:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:603:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:433:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } 'error'

I have encountered this issue too. Did you find a workaround @tomalex0 ?

Any update on this?

I have come across this issue as well.

For a workaround, disable the requirement that SSL certificates must be valid and bypass altogether. Add "strictSSL: false" as such:
{
   url: "",
   method: "POST",
   headers: {
        "Content-Type": "application/json"},
   json: {},
   strictSSL: false
}

My server is in a private network (no Internet access) and it should work there and I signed the certificate and trust it with own CA...I get the UNABLE_TO_VERIFY_LEAF_SIGNATURE error even when I add the ca.pem file to the options.agentOptions.ca. What should I do to fix this error obviously without disabling the strictSSL option or any other unsafe options?

no one to follow so close it and pretend it never happen ?

I was getting same error. Fixed by marking strictSSL as false, below code worked for me.
var client = new RestClient({
connection: {
pfx: fs.readFileSync(certFile),
passphrase: certPassword,
strictSSL: false,
rejectUnauthorized: false,
agent: false
}
});
I am using node rest client architecture for my API.
Hope this might help anyone looking for similar fix

Try this:
var request = require("request").defaults({rejectUnauthorized:false});


Mouse not configurable on plasma 5.13

Issue description

Open systemsettings5
Go to Input -> Hardware Devices -> Mouse
Error message: "The shared library was not found."

Presumably this has to do with the kde mouse functionality now needing libinput - from the plasma 5.13 announcement:
The Mouse System Settings page has been rewritten for libinput support on X and Wayland.

Cc: @bkchr who has done great work on KDE!
Technical details

system: "x86_64-linux"
host os: Linux 4.17.2, NixOS, 18.09.git.02ea3cd39d9M (Jellyfish)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.0.4
channels(root): "nixos-18.03pre121670.4cbbecc85db"

I don't get any error while opening the mouse dialog.
I have: services.xserver.libinput.enable = true;. Does this maybe fixes the problem? If yes, we need to activate that automatically, if you enable plasma5.

I already have services.xserver.libinput.enable = true; as well.

Hmm okay. Maybe I need to attach a mouse to see the error ^^

On my other PC, I also do not get this error...

This is super odd. I get the error on 2 different machines. I'll try to reproduce this in a VM with minimal config. According to ldd, systemsettings5 doesn't reference libinput which I would assume that it does.

ldd /nix/store/mafzvjphwlby6qbvf725ncp2zp9iwkf8-plasma-desktop-5.13.0/lib/qt-5.11/plugins/kcm_mouse.so
Systemsettings only load the kcm modules. For me, ldd on this file does not show any dependency on libinput. But that is strange, because based on this cmake file, it should be added.

I looked into the code and the following line is responsible for selecting libinput or evdev:
https://github.com/KDE/plasma-desktop/blob/6a4b5870fb2ff918df9e5b8f708e8039b394177e/kcms/mouse/backends/x11/x11_backend.cpp#L56
Could you post your configuration.nix? I must be missing something and thus the libinput backend is not selected.

No, I haven't had time to try it out.

Okay, I verified that my kcm mouse also loads the libinput backend. I don't understand why you get this error.
Could you execute kcmshell5 mouse and try to find out which library is missing?

Now it works on one machine but still not on the other. THey have almost identical configuration. This is the error:
peter@mildred:~ $ kcmshell5 mouse
org.kde.kcoreaddons: Error loading plugin "kcm_input" "The shared library was not found."
Plugin search paths are ("/home/peter/.cache/npm-packages/lib/qt-5.11/plugins", "/home/peter/.local/lib/qt-5.11/plugins", "/home/peter/.cache/npm-packages/lib/qt-5.11/plugins", "/home/peter/.local/lib/qt-5.11/plugins", "/home/peter/lib/qt-5.11/plugins", "/run/wrappers/lib/qt-5.11/plugins", "/home/peter/.local/share/flatpak/exports/lib/qt-5.11/plugins", "/var/lib/flatpak/exports/lib/qt-5.11/plugins", "/home/peter/.nix-profile/lib/qt-5.11/plugins", "/nix/var/nix/profiles/default/lib/qt-5.11/plugins", "/run/current-system/sw/lib/qt-5.11/plugins", "/etc/profiles/per-user/peter/lib/qt-5.11/plugins", "/nix/store/ara5mkscd313n3nhxn5602lp68qghcaf-kde-cli-tools-5.13.0/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
Error loading KCM plugin "kcm_input" "The shared library was not found."

Could you maybe do a strace so that we see which shared library is not found? Or maybe already ldd reveals which is missing.

Could you upload the strace output for me?

Files were too big for pastebin, so I dropped them here: http://cdn.speartail.com/store/mouse_M2JlYmE1Yzk3NzJh.zip
There's a strace from the working machine as well as the non-working machine.
Thanks - much appreciated!

Hmm weird, what did you change between the working and the non-working machine?
The non-working tries to load libkcm-input.so, but the KCM was renamed to libkcm-mouse.so, before the 5.13 release...: https://github.com/KDE/plasma-desktop/commit/8f7a827f70174e50f21a0af60cb8b17b91948d31#diff-42f1c9ddf5f75cbbcbf4ea2b5c5e49b2
Your working machine loads the correct kcm, the libkcm-mouse.so. I don't know why that is happening, maybe some configuration file somewhere?

That's what so weird - apart from some minor hardware changes, those machines are otherwise built using the same configuration.nix. Maybe there is a stray config file somewhere that makes it load the wrong file?

@peterhoeg could you paste the content of the following file?
~/.config/kcmshell5rc
This file does not exist for me, but your kcm loads that successfully.

I think that's just a red herring:
[PlasmaRunnerManager]
LaunchCounts=

Do you have the file /run/current-system/sw/share/kservices5/mouse.desktop?
Or maybe /run/current-system/sw/share/kservices5/input.desktop?

mouse.desktop, yes, input.desktop, no.
Contents without the translation entries:
[Desktop Entry]
Exec=kcmshell5 mouse
Icon=preferences-desktop-mouse
Type=Service
X-KDE-ServiceTypes=KCModule,KCModuleInit
X-DocPath=kcontrol/mouse/index.html

X-KDE-Library=kcm_mouse
X-KDE-Init-Symbol=mouse
X-KDE-ParentApp=kcontrol
X-KDE-Init-Phase=0

X-KDE-System-Settings-Parent-Category=input-devices
X-KDE-Weight=60

Name=Mouse
Comment=Mouse Controls
X-KDE-Keywords=Mouse,Mouse acceleration,Mouse threshold,Mouse buttons,Selection,Cursor Shape,Input Devices,Button Mapping,Click,icons,feedback,Pointers,Drag,mapping,right handed,left handed,Pointer Device,Mouse Wheel,Mouse Emulation,Mouse Navigation,Mouse Drag and Drop,Mouse Scrolling,Mouse Sensitivity,Move Mouse with Num Pad,Mouse Num Pad Emulation
Categories=Qt;KDE;X-KDE-settings-hardware;

Really weird :/ And you still have one machine where it works and one where it does not work?

Yep.

Are both machines on the same version of nixpkgs?

Yes as well. Apart from a few mounts and of course the hardware differences (but nothing USB/input related), they are exactly the same.
But finally something - if I use a different user on the broken machine, it's working. So there is some left-over cruft that is causing this to break. I'm going to have to do some digging...

Yeah, would be nice to know what causes the problem!

One more random idea, could you execute kbuildsycoca5 and see if that changes something?

That did it!


Add the ability to Align Tensor Rows and Planes

Some platforms require that the Rows/Planes of tensors are aligned to a specific value.
Add two macros TTL_DEFAULT_INTERNAL_ALIGNMENT and
TTL_DEFAULT_EXTERNAL_ALIGNMENT to set these alignement values. The default if undefined is 1 byte.

An alternative to replacing TTL_create_layout() with TTL_create_int_layout() and TTL_create_ext_layout(), may be to support additional optional parameters to convey non-default alignments, but this may conflict with the existing optional parameters:, a single row-spacing stride parameter for 2D layouts and a pair of row-spacing, plane-spacing parameters for 3D layouts. E.g., does TTL_create_layout(row-spacing, 16) mean 3D layout with default alignment or 2D layout with rows aligned on 16 byte boundaries.
Another alternative may be to preprocess the layout parameters before they are fed into TTL_create_layout(), e.g., TTL_create_layout(TTL_align(width, (optional int/ext alignment)), TTL_align(height, (optional int/ext alignment)).
Note that in order for the actual tensor to be properly aligned, its base address must also be aligned. Would be good to check/assert somehow.
Would be good for existing tests to remain intact, thereby demonstrating backward compatibility, and introduce additional tests with explicit alignments.


proxy.config.net.per_client.max_connections_in

This implements proxy.config.net.per_client.max_connections_in which
allows the user to configure a per client IP incoming maximum number of
concurrent connections. This is the client-side analogue to
proxy.config.http.per_server.connection.max.

[approve ci]

[approve ci autest]

[approve ci autest]

[approve ci]


match logout route to devise configuration

Noticed that when I did:
Devise.setup do |config|
  config.sign_out_via = :delete
end

Things wouldn't work when I logged out and the DELETE /logout route didn't exist. This PR makes the routes in Solidus Auth Devise more closely adhere to what is also configured for Devise as well.

Thanks Ben


podspec needs update?

The current podspec on CocoaPods has a wrong source_files path and points to the old version 3.0.
Also, the podspec file is not on this GitHub repo either.
Could you please provide a fix for this? Thanks.

Merged.

So if we were using the "old" 3.0 we should change now to 2.6? This change is breaking for people that were using the cocoapod before this updated it.

You're right, this podspec isnt right. I'll look into updating it as soon as I can.

cocoa pods still shows 3.0 as the last version : https://github.com/CocoaPods/Specs/tree/master/Specs/1/3/9/TDBadgedCell

Related #71

Note to anyone else that needs this to work today:
pod 'TDBadgedCell', '~> 2.0'

^^ This works for me.


Question, how do I add or query points in octree?

Hi @trsh, when you asked this question this repo was largely a placeholder. Having finally released the first version, you should be able to do this now from both Rust, as well as using our Python bindings distributed via conda.
For installation instructions, checkout the updated readme. For usage, there are a some trivial examples in the project's wiki.

@skailasa would be nice to have a longer example showcasing all capabilities. Or documentation.

At the moment, these are more or less all the capabilites. You can create distributed trees from a set of distributed data points. There are Morton encoding functions under the hood, but those aren't really a feature of this library's API.  Future releases will make this more usable with MPI capable IO, support for different data formats, plotting etc. But the core API - to generate a distributed tree - will largely be the same.
What would you like to know specifally?

I was looking for a OC solution where can also add, remove and update points or AABB's containers. However at this point I am not working on the project any more. So I will close this.


[Blazor] libman libraries not included in first build

Issue moved from dotnet/maui#6709

Please respond to @campersau.

From @campersau on Saturday, April 30, 2022 6:31:24 PM
Description
Adding some client javascript libraries via libman does not include them in the first build.
When comparing the binlog with a blazor wasm build I can see that there is a _IncludePrePublishGeneratedContent target which is not present in the blazor maui build and thus any files which are generated under the wwwroot folder during the build are missing.
Here are the binlogs:
blazorbinlogs.zip
I only tested windows.
Steps to Reproduce

New Blazor Maui App
Add <PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="2.1.161" PrivateAssets="all" /> to the csproj
Add libman.json with the following content:

{
  "version": "1.0",
  "defaultProvider": "cdnjs",
  "libraries": [
    {
      "library"<EMAIL_ADDRESS>      "files": [
        "css/bootstrap.min.css"
      ],
      "destination": "wwwroot/libs/bootstrap"
    }
  ]
}

Update index.html and reference <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css" /> instead.
Remove the wwwroot/libs folder and do a new build / run. This will add the libs folder back but the app does include the CSS file. If you run the app again without removing the wwwroot/libs folder the CSS is included correctly.

It would be great if the libman library files were included directly in the first build.
Alternatively you can clone https://github.com/campersau/blazor-maui-libmanbug and do step 5.
Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net6.0-windows10.0.19041.0
Did you find any workaround?
Building the project a second time works correctly as the libraries are already restored.
Or copy the msbuild target from https://github.com/dotnet/sdk/blob/c53c8ac81e1bcb8118c31bc4f5622396c72e9959/src/WebSdk/Publish/Targets/ComputeTargets/Microsoft.NET.Sdk.Publish.ComputeFiles.targets#L48-L60 into the csproj.
<Target Name="_IncludePrePublishGeneratedContent" BeforeTargets="GetCopyToPublishDirectoryItems" Condition=" '$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true' ">
    <ItemGroup>
        <!-- First, clean up previously generated content that may have been removed. -->
        <ContentWithTargetPath Remove="@(ContentWithTargetPath)" Condition="!Exists('%(Identity)')" />
        <!-- Next, include any newly generated content. -->
        <_WebProjectGeneratedContent Include="wwwroot\**" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(_ContentIncludedByDefault)" />
        <ContentWithTargetPath Include="@(_WebProjectGeneratedContent)" TargetPath="%(Identity)" CopyToPublishDirectory="PreserveNewest" />
    </ItemGroup>
</Target>

Relevant log output
No response

@javiercn this is not an issue limited to libman.  The issue is that MAUI does not refresh items in wwwroot that were generated during the build (libman is one tool for generating those files).  Any other task that writes a file to wwwroot should have the same problem - the file will not be included in publish from a clean build.  In subsequent builds, the default glob would include the file as it would then be present on disk.
As shown by the workaround, the WebSdk addresses this by refreshing the wwwroot\** glob in the quoted target.  Does MAUI have an equivalent target?
(I can't transfer this back nor reactivate/comment on dotnet/maui#6709 as I'm not a collaborator on that project.)

Alternatively, is there another ItemGroup we could add these items to?  In the legacy (WAP/WSP, i.e. pre-dotnet sdk) web publish pipeline, we add the files to @(FilesForPackagingFromProject).  We could do something similar if MAUI has an item group intended for extension in this manner.
(But if there's already a default glob for wwwroot, as indicated in dotnet/maui#4537, then it seems simpler to just refresh that.)

@javiercn this is not an issue limited to libman. The issue is that MAUI does not refresh items in wwwroot that were generated during the build (libman is one tool for generating those files). Any other task that writes a file to wwwroot should have the same problem - the file will not be included in publish from a clean build. In subsequent builds, the default glob would include the file as it would then be present on disk.

I do think the issue here is that the code (that is the MSBuild target) for "correctly" integrating libman with the build system lives in the Web SDK, which is not going to play a role when run in a non-web SDK context (like MAUI).
I'm not convinced this is the best way to approach this problem since you are asking every SDK to include web specific concepts/targets to support this scenario. As things stand this won't work with WPF nor Windows Forms apps either.
In addition to that, if some other SDK like Maui were to include a target like that one, it wouldn't work either because it would run to late, on platforms like Maui, those files need to be converted to MauiAsset at the right time for the build to properly pack them.
You are likely better off including a target in the Build.targets file of the libman package that knows how to deal with the environments you are expected to run in and possibly finding a "point in time" early enough during the build process that allows you to use the same targets in the different target environments.

In addition to that, if some other SDK like Maui were to include a target like that one, it wouldn't work either because it would run to late, on platforms like Maui, those files need to be converted to MauiAsset at the right time for the build to properly pack them.

Generating content files during build is a common scenario, especially with web-like assets (compiling SCSS or minifying JS).  Libman is certainly not the only case this will come up, so providing some measure of this in the SDK will benefit lots of other tasks.
Does MAUI have a documented convention we can use to insert these assets into the build at the right time?  We already run before the Build target as a catch-all, but if there's an ItemGroup we need to add these to, that's easily added.
For legacy Web publish it's @(FilesForPackagingFromProject).
For WebSdk, they refresh the wwwroot** glob.
For MAUI, it's ...?

The issue also exists with Razor Class Libraries. My workaround for that is to just add the FilesForPackagingFromProject as Content items like this:
  <Target Name="_LibraryManagerRestoreContentItems" AfterTargets="LibraryManagerRestore">
    <ItemGroup>
      <Content Remove="@(FilesForPackagingFromProject)" />
      <Content Include="@(FilesForPackagingFromProject)" CopyToPublishDirectory="PreserveNewest" />
    </ItemGroup>
  </Target>


Failing to Validate Again (Probably my fault)

$data = [
            'memberID' => $memberId
        ];

        // Using the added service
        SoapWrapper::service('validMemberId', function ($service) use ($data,$memberId) {
         //var_dump($service->getFunctions());
         $returned_result = $service->call('CheckMemberID', [$data])->CheckMemberIDResult;
         if($returned_result==$memberId){
          //return $returned_result;
          return 'ok';
        exit;
         }
         else{
          //return 'Fail: ('.$returned_result.')';
          return 'fail';
        exit;
         }
        });
  return 'conditions not met - '.$returned_result.' / '.$memberId;

So there are no SOAP or Laravel errors being generated. I know the  $memberId being sent is correct because if I run this command outside Laravel I get this result:
object(stdClass)#4 (1) { ["CheckMemberIDResult"]=> int(550474) }
The issue is that $returned_result is not receiving the result of $service->call
Additionally the else{} statement is not being triggered, which I find plain odd.
Any ideas - and thank you for your patience - as this is undoubtedly my fault :) - thanks for providing this interface though as it makes connecting to a SOAP service really easy!
Martin

I think the issue might be in how my two public functions are passing variables
mock up of code:
 $memberId = "12345678";
 $is_member_valid = $this->is_member_valid($memberId);
}

public_function is_member_valid($memberId){
 // do SOAP Stuff
echo "yes";
 return "yes";
}```

The `return` value isn't ending up in $is_member_valid variable. Any idea why?

You can't return the result like that because it's a closure, you need to pass-be-reference.
See: http://stackoverflow.com/questions/25717810/laravel-soap-cant-get-the-response-outside-of-the-wrapper
Try doing it like:
$memberId = 10;
$data     = ['memberID' => $memberId];
$result   = null;

SoapWrapper::service('validMemberId', function ($service) use ($data, &$result) {
    $result = $service->call('CheckMemberID', [$data])->CheckMemberIDResult;
});

return 'The result from the call is:' . $result;

The & sign is for passing the $result var by reference.

Thanks for that - I know that was more PHP tutoring than a 'bug' - because there was no bug, but I now understand the logic behind it - I've got the successful call made now - thank you :+1:


docker hub images missing

docker pull microsoft/dotnet-framework

Using default tag: latest
latest: Pulling from microsoft/dotnet-framework
no matching manifest for unknown in the manifest list entries

docker pull microsoft/dotnet-framework:4.7.2-sdk

4.7.2-sdk: Pulling from microsoft/dotnet-framework
no matching manifest for unknown in the manifest list entries

docker pull microsoft/dotnet-framework:3.5-sdk

3.5-sdk: Pulling from microsoft/dotnet-framework
no matching manifest for unknown in the manifest list entries

This could be a problem on the docker hub side? I'd imagine that any tag listed here https://hub.docker.com/r/microsoft/dotnet-framework/tags/ , as the above are, should be pullable by definition.

Seems like this problem is caused because I'm running linux, not windows. I didn't realize that docker images don't always run on linux.
https://github.com/Microsoft/dotnet-framework-docker/issues/113

I'm running Docker for Windows on my Windows 10 laptop, and got the same error message. The solution was to right click the Docker icon in the notification ares (bottom right corner of the desktop), and click "Switch to Windows containers".


How to keep some visible width of the sidebar ?

Hi,
Thank you for this lib !
I would like to keep the sidebar visible in closed state, is there a prefered way to do this ?
Maybe by customizing the translateX percentage ?
Cheers,

good point. following this up

+1

@ryanbelt something like this would be really cool: https://d13yacurqjgara.cloudfront.net/users/331278/screenshots/1731885/sidebar-800x600.jpg

I'm really interested in this feature. Will this be implemented at some point? Thanks

It would be a cool enhancement. Currently I am going add basic accessibility before working on this feature. Pull requests are also acceptable too.

@onemanstartup could you share some code pls?

So I was able to achieve some good results by just adding a css class to the sidebar and content when toggling the state between full and reduced size. However the problem I'm facing right now is a way to override the existing transition and have the sidebar resize its width the same way it's doing now when we close it.
Any help on this would be really appreciated. Thanks

What the deal be.....

@globehealer-developer  The deal be that I am working a full time job along with freelancing work and can't address enhancements immediately. Feel free to fork this project and extend this version of the sidebar. If you come up with something nice, I'll review it and merge it in.


Cordova can not access to AJAX

i'm using Browser platform of Cordova, also i'm using cordova-plugin-whitelist and Content-Security-Policy tag into my html codes. but i get below error in console:
JQMIGRATE: Migrate is installed, version 3.0.0
adding proxy for Device
SEC7118: XMLHttpRequest for http://app.jpcomplex.com/appserver/?ios=1&username=&devid=1551073647241314 required Cross Origin Resource Sharing (CORS).
index.html
SEC7120: Origin http://localhost:8000 not found in Access-Control-Allow-Origin header.
index.html
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
index.html

here is my config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>HelloCordova</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author<EMAIL_ADDRESS>href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <access origin="*" />
    <allow-navigation href="http://app.jpcomplex.com/*" />
    <allow-navigation href="*" />
    <allow-navigation href="http://*/*" />
    <allow-navigation href="https://*/*" />
    <allow-navigation href="data:*" />
    <allow-intent href="http://app.jpcomplex.com/*" />
    <allow-intent href="*" />
    <plugin name="cordova-plugin-x-toast" spec="^2.7.2" />
    <plugin name="cordova-plugin-dialogs" spec="^2.0.1" />
    <plugin name="cordova-plugin-nativestorage" spec="^2.3.2" />
    <plugin name="cordova-plugin-device" spec="^2.0.2" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
    <engine name="browser" spec="^5.0.4" />
    <engine name="android" spec="^7.1.4" />
    <engine name="ios" spec="^4.5.5" />
</widget>

and here is the meta tag:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

and here is my ajax request:
$.get("http://app.jpcomplex.com/appserver/",{ios:1,username:'test'},function(data){
	alert(data);
});

how can i fix it?

SEC7120: Origin http://localhost:8000 not found in Access-Control-Allow-Origin header.

Is localhost:8000 included in the  Access-Control-Allow-Origin header?

@janpio , hi, how can i do it ?

How you can find out if it is? Look at the server code generating the response. If you don't control the server, the response is most probably no, but you can check using your browser's dev tools's network panel where you can look at the headers of the response.

@janpio ,I can use below header method in my php codes and it works fine but it does not secure!
<?php header('Access-Control-Allow-Origin: *'); //for all ?>
my question is:  Do i have the same problem in IOS/Android platform? or it is just for Browser platform? cause i didn't test it on other platform like android or IOS. I'm new in cordova.

You don't have to put *, adding it for the hostname in the error message should be enough.
This is a CORS problem, so you might have or not have the same problem on native platforms depending on how exactly the request is sent. Hard to predict, you best try it out.

@salehmosleh think that you need to include connect-self on the security policy meta, including the host, something like: https://github.com/benitogf/hotpot/blob/master/client/src/index.pug#L8

SEC7120: Origin http://localhost:8000 not found in Access-Control-Allow-Origin header.

Is stating that whatever server you're trying to access is being blocked because they have CORS enabled and you're server isn't the allowed origin. The server needs to send the Access-Control-Allow-Origin header with the value of http://localhost:8000 or use the * wildcard.
MDN has a good resource that explains everything you need to know about CORS. I've also written a blog post on this, while the subject is about iOS and the WKWebView... the CORS concept is still the same.
I'm closing this because this is not a bug with Cordova.


Code snippet for adding findings/evidence to cucumber multipart import?

I'd love an example showing how to add evidence alongside the raw results import. Our particular case is we generate a .webm video from Playwright as we step through our BDD tests, and it would be great to automatically attach the video as evidence alongside the BDD results upload.

References:

https://confluence.atlassian.com/jirakb/how-to-add-an-attachment-to-a-jira-issue-using-rest-api-699957734.html
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post

Added examples on how to upload attachment(s) to an issue (e.g, Test, Test Execution, Test Plan) in:

Python: https://github.com/Xray-App/xray-code-snippets/blob/main/use_cases/jira_rest_api_usage/python/add_attachments_to_issue.py
JavaScript: https://github.com/Xray-App/xray-code-snippets/blob/main/use_cases/jira_rest_api_usage/js/add_attachments_to_issue.js

In sum, you have to upload the test results.. obtain the Test Execution issue key from the response and then do another request, this time to Jira's REST API, to upload attachments.

Thank you for all those details. Much appreciated.

@robertlagrant ,
to clarify, we can have attachments at different leves:

in the Test Run, globally, as evidence
in the Test Run, at each step/Gherkin statement level
in the Test Execution issue itself (this is less common)

In Xray server/datacenter, evidence on the Test Runs is stored as attachments in the underlying Test Execution issue
In Xray cloud, evidence on the Test Runs is stored in Xray's cloud infrastructure itself; there's a storage limit (reach out Xray support team for more info on that)
If you decide to add attachments directly to the Test Execution issue (as shown on the snippets above), then it uses Jira way of managing attachments (i.e., a local directory on Jira server or the cloud infrastructure of Atlassian in the case of Jira cloud).
Hope it clarifies!


Question Regarding the Combination of DMT and TSIT

We observed that the authors effectively combined DMT with TSIT in both the paper and the code, achieving impressive overall results for DMT. During the "inference" stage, we noticed that for the TSIT model, both noisy_input_semantics and noisy_real_image are used to estimate the fake_image. However, my question is that during the "inference" stage, it seems that noisy_real_image cannot be directly obtained. Could the authors kindly elaborate on how this was considered and handled in this specific context?
In dmt_model line46
“elif mode == 'inference':
with torch.no_grad():
fake_image, _ = self.generate_fake(noisy_input_semantics,
noisy_real_image)
batch_size = fake_image.shape[0]
”

Thanks for following our work! We directly modify the codes from TSIT without any structural changes. In TSIT, the generator will be fed in with a sample from target domain for style extractor. Therefore, it would be proper to apply similar input.

Thank you so much for your detailed response! I have an additional question—when using TSIT and DMT, do TSIT and pix2pix rely solely on a generator, or do they also incorporate a discriminator, similar to the traditional GAN training process?


GC integration question

For implementors of APIs that create objects that are expected to be explicitly disposed, the consumer of that API is under no obligation to actually use the using syntax, because it is not enforced.
If they don't use the using syntax, there is still a risk the user does not dispose the resource, in which case having a GC finalizer can be beneficial.
As an API creator, I would ideally want one of the following guarantees:

My users must use the using syntax so that they must dispose the resource.
My API can be used optionally with explicit resource management, by also supporting GC integration.

I think otherwise this risks APIs intended to be consumed in this way to be vulnerable to a memory leak footgun by consumers.
If the GC integration is done manually, this involves manual tracking of the dispose state in Symbol.dispose in conjunction with a finalization registration.
Has there been much discussion around improving this common scenario?

Yes, #203, #195, #187, #160, #159, and #49 all touch on this in various ways. Per #195, I'm mostly interested in pursuing enforcement as a follow-on proposal if it seems like it is necessary. With using and await using shipping in TypeScript, we have the opportunity to gather feedback from real-world use of using. My hope is that such enforcement could ideally happen via a linter or type checker, as opposed to the runtime, and that new APIs could also lean on documentation and examples as guidance for acceptable use.
There are a large number of pre-exiting APIs across both the DOM and NodeJS that could readily adopt using/Symbol.dispose, but could never adopt an enforcement model without breaking existing callers. And there is little reason to bifurcate existing APIs for these cases when both would essentially produce the same value as that would just be moving the goalposts for enforcement.
So, for additional discussion on (1) above, I would suggest you follow up in #195. There are also examples of potential mitigations that require no additional follow-up, such as making [Symbol.dispose] into a getter which sets a flag indicating whether the disposer was captured before the object can continue to be used.
For (2) above, I brought up GC integration via FinalizationRegistry as a possible recommendation for APIs that wrap native handles, but the committee consensus was not to provide any such recommendation.
Closing as a duplicate of #195 and #159.

For the My API can be used optionally with explicit resource management part,
You can use FinalizationRegistry as a backup. Eg. let the returned Disposable be a proxy to the real result, let Symbol.dispose inform the real resource to dispose, and then let the FinalizationRegistry of the returned disposables to do the same.
This is for now the best you can have.


Multi milestone issue

Repeating issue when voting on multimilestone votes.
I am unable to vote on multiple informal items when presented in the system.

This is one example from the month of March. I will get a screen share going next time there is a multi milestone vote going.

Our team cannot replicate after 2 hours devoted to task and we have no other reports.
Next step planned - @timothytlewis  to reach out to Sam to have a zoom the next time multi-milestone vote is active. This process to be done from a computer using chrome. A recorded screenshare will watch the potential error and devtools will be open to view logs/errors.

Same issue: https://github.com/ledgerleapllc/devxdao-backend/issues/69


avs-device-sdk 1.9: Alexa not able to control music from bluetooth

Hello AVS Team,
I am using 1.9 version of avs-device-sdk compiled with bluetooth flag.
I am able to pair my phone through alexa command.
But when I play music from bluetooth (Wync music app), now when I give the alexa command "Alexa play music", It doesn't pause the bluetooth music. Both music plays parallely.
Configuration:-
All the bluetooth dependencies suggested by avs team (documented) are done.
Steps to reproduce:-

Run the alexa app on ubuntu environment (I am using artik board, avrcp profile is configured already)

Now I run these command parallely:-
pactl unload-module module-bluetooth-discover
pactl unload-module module-bluetooth-policy
pactl load-module module-bluetooth-discover
pactl load-module module-bluetooth-policy
These commands runs successfully.

Now I connect my phone through Alexa command " Alexa, connect my phone" .
This step also runs successfully and I am able to connect my phone to artik using alexa command
through bluetooth.

Now I play music from my phone on bluetooth. This also works.

Now I play music through alexa command.
In this step, both the music runs parallely (bluetooth music and avs music)

Can you please suggest how to control music on device (in my case artik) from alexa??

Hello AVS Team,
I have attached the critical logs of the scenario by enabling -DACSDK_EMIT_SENSITIVE_LOGS=ON
The scanario is as follows:-

Run avs-device-sdk (version 1.9 compiled with bluetooth flag)  client on my device (artik)
Execute the following commands on the board
pactl unload-module module-bluetooth-discover
pactl unload-module module-bluetooth-policy
pactl load-module module-bluetooth-discover
pactl load-module module-bluetooth-policy
Connect to my phone by saying "Alexa Connect to my phone"
Play music on my device through phone (using Wync music app)
Now play music using avs by saying "Alexa Play music"
The logs attached shows both the music are running parallely.

Please help me here to solve this problem.
bluetooth_control_critical_logs.txt

Hi @sumit3817,
Please ensure that you run Step 2 only after the SDK has started. Can you try that and see if you still have the issue of music playing in parallel?

Hi,
Yes, I am running the Step2 only after the SDK has started.
Still I am facing the issue music playing in parallel.

Hello AVS Team,
Can anyone help me here?

Hi @sumit3817,
In the logs I am seeing that the Bluetooth Capability Agent is not recognizing that streaming has started. Additionally, there is this error:
2019-02-06 12:33:55.918 [  e] 5 BlueZDeviceManager:onMediaStreamPropertyChanged:reason=pathMismatch,path=/org/bluez/hci0/dev_60_9A_C1_E3_29_19/fd0,streamingDevicePath=
These two signs typically indicate that the SDK is not handling the playback, and some other system (typically PulseAudio) is handling it instead.
Can you try running only
pactl unload-module module-bluetooth-discover
pactl unload-module module-bluetooth-policy

before starting the SDK, and then seeing if there is still music overlap? By not reloading the modules, the A2DPSource use case will not work. This is okay since we are attempting to debug A2DPSink.

Hi,
By running only
pactl unload-module module-bluetooth-discover
pactl unload-module module-bluetooth-policy
before starting sdk, the music is unable to play using bluetooth.
So only alexa music is played.
Can you please suggest

Hi,
I have uploaded the bluetooth.service and bluetooth.conf file.
Please let me know anymore files needed
bluetooth.conf.txt
bluetooth.service.txt

Hi @sumit3817,
The two config files you have attached look correct. Which platform are you using? Also in 1.12 we have added the functionality to allow for programmatic set up of BT endpoints with regards to PulseAudio. Can you try upgrading to 1.12 and following the new instructions at https://github.com/alexa/avs-device-sdk/wiki/Ubuntu-Linux-Quick-Start-Guide#include-bluetooth-optional? If there is still music overlap, please provide DEBUG9 logs.

Hi,
bluetooth_music_overlap.txt
I have also tried with 1.12 and have used the flag -DBLUETOOTH_BLUEZ_PULSEAUDIO_OVERRIDE_ENDPOINTS=ON
Still I am facing the same issue of music overlap.
I have attached here the sensitive logs with DEBUG9 enabled.

Hi @sumit3817,
In the logs I am seeing this specific line:
2019-03-12 09:05:23.267 [  1] 5 DefaultClient:bluetoothCapabilityAgentDisabled:reason=nullBluetoothDeviceManager
This means that the Bluetooth CA is not enabled, and the Bluetooth streaming you're hearing is completely being handled by the platform.
What do your cmake commands look like, and have you made modifications to the SampleApp or DefaultClient?

Hi,
There are no modifications in DefaultClient but yes I am compiling SampleApp seperately.
I am cross compiling the avs-device-sdk and SampleApp seperately for artik.
Here are my cmake commands:-
cmake command for compiling avs-device-sdk -
cmake -DCMAKE_TOOLCHAIN_FILE=/home/sumit/magicbox_alexa_build/toolchain.cmake /home/sumit/magicbox_alexa_build/1.12/sdk-source/avs-device-sdk -DCMAKE_INSTALL_PREFIX=/home/sumit/magicbox_alexa_build/build_alexa_debug/ -DKWD=ON -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=/home/sumit/magicbox_alexa_build/build_alexa_debug/lib/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=/home/sumit/magicbox_alexa_build/build_alexa_debug/include -DAMAZONLITE_KEY_WORD_DETECTOR=ON -DAMAZONLITE_KEY_WORD_DETECTOR_LIB_PATH=/home/sumit/magicbox_alexa_build/build_alexa_debug/lib/libpryon_lite.a -DAMAZONLITE_KEY_WORD_DETECTOR_INCLUDE_DIR=/home/sumit/magicbox_alexa_build/build_alexa_debug/include -DAMAZONLITE_KEY_WORD_DETECTOR_DYNAMIC_MODEL_LOADING=ON -DBLUETOOTH_BLUEZ=ON -DCMAKE_BUILD_TYPE=DEBUG -DACSDK_EMIT_SENSITIVE_LOGS=ON -DBLUETOOTH_BLUEZ_PULSEAUDIO_OVERRIDE_ENDPOINTS=ON
cmake command for compiling SampleApp seperately-
cmake -DCMAKE_TOOLCHAIN_FILE=/home/sumit/magicbox_alexa_build/toolchain.cmake /home/sumit/magicbox_alexa_build/1.12/sdk-source/Simplifi_Alexa -DCMAKE_PREFIX_PATH=/home/sumit/magicbox_alexa_build/build_alexa_debug/ -DKWD=ON -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=/home/sumit/magicbox_alexa_build/build_alexa_debug/lib/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=/home/sumit/magicbox_alexa_build/build_alexa/include -DAMAZONLITE_KEY_WORD_DETECTOR=ON -DAMAZONLITE_KEY_WORD_DETECTOR_DYNAMIC_MODEL_LOADING=ON -DBLUETOOTH_BLUEZ=ON -DCMAKE_BUILD_TYPE=DEBUG -DACSDK_EMIT_SENSITIVE_LOGS=ON -DBLUETOOTH_BLUEZ_PULSEAUDIO_OVERRIDE_ENDPOINTS=ON
Please suggest if there is a need in change to compile SampleApp seperately for enabling bluetooth functionality.

Hi @sumit3817 could you confirm that you are running SDK v1.12? I don't think you should be seeing the DefaultClient:bluetoothCapabilityAgentDisabled:reason=nullBluetoothDeviceManager error in the logs with your cmake command. Also, please send the latest log as well.

Hi,
Yes I am running v1.12.
I have attached the latest logs.
These logs are for the basic SampleApp which is compiled with avs-device-sdk itself.
Still I am facing the music overlap issues.
I am suspecting the error in the following log line:-
BlueZDeviceManager:onMediaStreamPropertyChanged:reason=pathMismatch,path=/org/bluez/hci0/dev_60_9A_C1_E3_29_19/fd4,streamingDevicePath=
sdk1.12_SampleApp_BT_Music_Overlap.txt

Hi @sumit3817 in the previous log the Bluetooth CA was not registered and that is why we were seeing  DefaultClient:bluetoothCapabilityAgentDisabled:reason=nullBluetoothDeviceManager in the log.  However in the new log you sent, I do see that the Bluetooth CA is registered.
I am seeing this error in the logs: DBusPropertiesProxy:getStringPropertyFailed:Failed to get string property=UUID,error=GDBus.Error\:org.freedesktop.DBus.Error.UnknownObject\: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
In order to rule out issues with the BlueZ version you are using, can you paste the output of the following command on Ubuntu : dpkg --status bluez | grep '^Version:' . Please note that the minimum version of BlueZ we support is 5.37.

Hi,
Currently the version of blueZ is 5.42.
[root@artik ~]# dpkg --status bluez | grep 'Version:'
Version: 5.42-0ubuntu1.2
Please suggest.

Hi @sumit3817 looking at this issue and the one listed here: https://github.com/alexa/avs-device-sdk/issues/1265 it seems like this could be caused because of the way blueZ interacts with SDK, PulseAudio and MPlayer.
To help us debug this issue more, could you do following:

Close the SampleApp instance you are running.
Run this command sudo journalctl --unit=bluetooth -f
Now in a new terminal tab run the SampleApp

Please post the output you see here. it should look something like this:

Mar 29 00:36:19 uf20db51c2d8d57.ant.amazon.com bluetoothd[2675]: Endpoint registered: sender=:1.247 path=/com/amazon/alexa/sdk/sinkendpoint
Mar 29 00:36:19 uf20db51c2d8d57.ant.amazon.com bluetoothd[2675]: Player registered: sender=:1.247 path=/org/mpris/MediaPlayer2
Mar 29 00:36:19 uf20db51c2d8d57.ant.amazon.com bluetoothd[2675]: Endpoint unregistered: sender=:1.240 path=/MediaEndpoint/A2DPSource
Mar 29 00:36:19 uf20db51c2d8d57.ant.amazon.com bluetoothd[2675]: Endpoint unregistered: sender=:1.240 path=/MediaEndpoint/A2DPSink
Mar 29 00:36:19 uf20db51c2d8d57.ant.amazon.com bluetoothd[2675]: Endpoint registered: sender=:1.248 path=/MediaEndpoint/A2DPSource
Mar 29 00:36:19 uf20db51c2d8d57.ant.amazon.com bluetoothd[2675]: Endpoint registered: sender=:1.248 path=/MediaEndpoint/A2DPSink

Thanks

Hi,
Here are the logs:-
[root@artik ~]# sudo journalctl --unit=bluetooth -f
-- Logs begin at Fri 2019-03-29 14:02:59 UTC. --
Mar 29 14:07:18 artik bluetoothd[2097]: Endpoint unregistered: sender=:1.12 path=/com/amazon/alexa/sdk/sinkendpoint
Mar 29 14:07:18 artik bluetoothd[2097]: Player unregistered: sender=:1.12 path=/org/mpris/MediaPlayer2
Mar 29 14:07:28 artik bluetoothd[2097]: Endpoint registered: sender=:1.14 path=/com/amazon/alexa/sdk/sinkendpoint
Mar 29 14:07:28 artik bluetoothd[2097]: Player registered: sender=:1.14 path=/org/mpris/MediaPlayer2
Mar 29 14:07:28 artik bluetoothd[2097]: Endpoint unregistered: sender=:1.13 path=/MediaEndpoint/A2DPSource
Mar 29 14:07:28 artik bluetoothd[2097]: Endpoint unregistered: sender=:1.13 path=/MediaEndpoint/A2DPSink
Mar 29 14:07:28 artik bluetoothd[2097]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSource
Mar 29 14:07:28 artik bluetoothd[2097]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSink
Mar 29 14:08:47 artik bluetoothd[2097]: Endpoint unregistered: sender=:1.14 path=/com/amazon/alexa/sdk/sinkendpoint
Mar 29 14:08:47 artik bluetoothd[2097]: Player unregistered: sender=:1.14 path=/org/mpris/MediaPlayer2
Mar 29 14:09:40 artik bluetoothd[2097]: Endpoint registered: sender=:1.16 path=/com/amazon/alexa/sdk/sinkendpoint
Mar 29 14:09:40 artik bluetoothd[2097]: Player registered: sender=:1.16 path=/org/mpris/MediaPlayer2
Mar 29 14:09:40 artik bluetoothd[2097]: Endpoint unregistered: sender=:1.15 path=/MediaEndpoint/A2DPSource
Mar 29 14:09:40 artik bluetoothd[2097]: Endpoint unregistered: sender=:1.15 path=/MediaEndpoint/A2DPSink
Mar 29 14:09:40 artik bluetoothd[2097]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSource
Mar 29 14:09:40 artik bluetoothd[2097]: Endpoint registered: sender=:1.17 path=/MediaEndpoint/A2DPSink

Hello Amazon Team,
As the link
https://github.com/alexa/avs-device-sdk/wiki/Dependencies#bluetooth-dependencies
says that minimum pulseaudio version must be 12.2 or earlier.
I check the pulseaudio version in my system. It is 12.0.
So this link mentions minimum version of pulseaudio must be 12.2 or earlier which is confusing.
Is the version pulseaudio 12.0 is okay for the avs-device-sdk app?
Thanks

Hi @sumit3817 , the dependencies listed are for minimum recommended version. It is possible an older version of each dependency may work, but we cannot guarantee there will be no issues.

I am going to close this ticket for inactivity, feel free to reply or open a new ticket for further issues.


Confused about project2B's impl peer storage "PeerStorage.SaveReadyState" description

The original description is "To append log entries, simply save all log entries at raft.Ready.Entries to raftdb and delete any previously appended log entries which will never be committed. Also, update the peer storage’s RaftLocalState and save it to raftdb."
what log is "delete any previously appended log entries which will never be committed"  ?
I looked at previous implementations of TIKV, the deleted log entries is the index between in [raft.Ready.Entries first index , the peer.raftState.LastIndex], why delete these ? writes to the new entries should override the original log, maybe just delete the log which index between in [raft.Ready.Entries last index, the peer.raftState.LastIndex]

I'm blind，your impl is delete the log which index between in [raft.Ready.Entries last index, the peer.raftState.LastIndex], sorry, but I would suggest that this logical description be a little bit more detailed, right?


there is a warning in the function "_select_logits_with_mask"

Warning: masked_scatter_ received a mask with dtype torch.uint8, this behavior is now deprecated,please
use a mask with dtype torch.bool instead.
when I change mask = mask.unsqueeze(-1).expand_as(logits).to(torch.uint8) with mask = mask.unsqueeze(-1).expand_as(logits).to(torch.bool) the warning disappear.
my environment is
python 3.7
pytorch 1.4
cuda 10.0
cudnn7.6

Thank you for point it out. I'll fix it.

Fixed in dd1ecbb


Added unescape to htmlToText

Added _.unescape to htmlToText method, because we are escaping in replace
Fixed Issues
$ https://github.com/Expensify/App/issues/17658
Tests

What unit/integration tests cover your change? What autoQA tests cover your change?
In Expensimark-test.js file, text named Test text is unescaped

What tests did you perform that validates your changed worked?
Checked if string is unescaped and character codes are turning back into characters

QA

What does QA need to do to validate your changes?
Run the new test cases
What areas to they need to test for regressions?
Check if character codes are turned back into charecters in htmlToText method. & ->&

I have read the CLA Document and I hereby sign the CLA


Cachable filters

What problem does this feature solve?
There are a lot of issues created about filters: #8497, #7304, #5920, #5682, #5109 etc.
Most of the issues are created because filters are executed multiple times.
For all of these issues answer is the same: for vdom comparison vue needs to run filter and then compares resulting dom tree - use computed properties instead.
Because filters are not cached right now there is no reason to use filters in mustache interpolations - they are the same as methods.
Angular filters for example are only evaluated when inputs change and this makes them much more usable.
Filters are supposed to be pure functions anyway and I see no reason to not cache them.
Making filters cachable (like computed properties) opens up possibilities for using them in mustache interpolations.
Examples where cachable filters will be beneficial:

vue-i18n by @kazupon works around this issue by having v-t directive to cache result of the translation.
https://kazupon.github.io/vue-i18n/guide/directive.html#t-vs-v-t But is less flexible then mustache interpolation:
It would be more readable and flexible instead of:

to write

{{ "hello" | $t }}

and it will be possible to do this:

{{ "hello" | $t }} {{ "world" | $t }}

Use Moment.js for date formatting. Moment.js is slow and because filters are not cached it is not really usable, especially when rendering lists.
All other places for formatting text, dates etc.
Creating computed property for each formatted value (text, date etc) is just a lot of work and unnecessary code to write.

What does the proposed API look like?
Make all filters work like computed properties instead of methods.
Or add different symbol (instead of pipe) to denote filters that are cachable (pure).

As you already saw this has been discussed many times and it's not going to happen. You can however achieve it in user and with a memoize helper (lodash has one)

Memorize will work but it will use more memory.
At least, if it is not going to be changed, it would be nice to update docs to clarify that filters are executed on every re-render.

@posva I know this has been discussed many times, but I think you should consider the number of times it has been discussed as a sign that it should be given further consideration. Many developers are under the impression that this is the behavior of Vue - why wouldn't it be, otherwise there's really no important reason to have filters. This is even implied in the accepted answer to https://stackoverflow.com/questions/47940007/what-is-the-difference-between-filters-and-methods-in-vue-js which is the first place people look when they want to understand filters. It's not made explicit in the docs at all, as the last comment mentions. This is all problematic, and it would make Vue a significantly better framework if this were made the behavior.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 67 ms

Resolved: ClamAV performance has improved in c4224da.


Ensure pyparsing version >3.0.0

My system (Ubuntu 22.04) preferred pyparsing == 2.4.7 for whatever reason. This led to the error
Traceback (most recent call last):
  File "/home/lobuglio/.local/lib/python3.10/site-packages/click_plugins/core.py", line 37, in decorator
    group.add_command(entry_point.load())
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/lobuglio/.local/lib/python3.10/site-packages/fio_planet/cli.py", line 38, in <module>
    from .features import map_feature, reduce_features
  File "/home/lobuglio/.local/lib/python3.10/site-packages/fio_planet/features.py", line 31, in <module>
    from . import snuggs
  File "/home/lobuglio/.local/lib/python3.10/site-packages/fio_planet/snuggs.py", line 152, in <module>
    nil = Keyword("null").set_parse_action(lambda source, loc, toks: None)
AttributeError: 'Keyword' object has no attribute 'set_parse_action'

fio-planet needs pyparsing >3.0.0 to use pyparsing snake_case names

This fix is in 1.0b1, uploaded a few minutes ago.


disable mutex owner check

this allows use cases like:
import _thread
import time

main_lock = _thread.allocate_lock()

def thread_function():
    print('thread_function')
    for t in range(5):
        print(t)
    print('thread_function check lock')
    if main_lock.locked():
        print('thread_function unlock')
        time.sleep(1)
        # this core dumps when CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y
        main_lock.release()

print('main')
time.sleep(1)
main_lock.acquire()
print('locked')
print('start thread')
_thread.start_new_thread(thread_function, ())
print('try to acquire')
time.sleep(5)
main_lock.acquire()
print('juhuu')

I'm fine to do it in this project. I'm still a bit doubtful whether we should do this in the general firmware ... but it's an interesting use case that isn't really covered otherwise ... maybe uasyncio ...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Can't login as Admin to MediaWiki

Describe the bug
MediaWiki installs, and loads, and appears to run properly. But I'm unable to login. I can't figure out how to login. Looking the code below, the install script, the administrator username appears to be "admin".
https://github.com/NixOS/nixpkgs/blob/526d051b128b82ae045a70e5ff1adf8e6dafa560/nixos/modules/services/web-apps/mediawiki.nix#L620
I have modified my code to match that of the MediaWiki test, yet I still cannot login.
{ config, pkgs, lib, ... }:

{
  services.mediawiki = {
    enable = true;
    httpd.virtualHost = {
      hostName = "localhost";
      adminAddr =<EMAIL_ADDRESS>    };
    passwordFile = pkgs.writeText "password" "correcthorsebatterystaple";
    name = "Sample Wiki";
    webserver = "nginx";
  };
}

I have tried logging in a "admin", "user", and "mediawiki".
Steps To Reproduce
Steps to reproduce the behavior:

Install MediaWiki service using test code (above).
Attempt to login with "admin" + "correcthorsebatterystaple"
Error: Incorrect username or password

Notify maintainers
@Mic92 @pennae @h7x4

Notice the option says "initial" password. Are you using an existing database?

@Mic92 Thank you for the quick reply. I'm not using a pre-existing database, but I did have troubles with the password initially. If using an initial password of 1 character length, then MediaWiki seems to be completely broken. So I put the Nix configuration that matches the Nix module test (as shown in OP). Also, I have attempted to delete the entire database and rebuild/reinstall several times (sudo rm -rf /var/lib/mysql). Still I can't login.

I'm just checking in to see if there's any update on getting this working.

Someone able to test and verify whether I'm missing a step or anything?

Today I tested the exact same configuration, but added channel 21.11 as nixpkgs2111, tested that old package
service.mediawiki.package = nixpkgs2111.mediawiki;

Attempt to login with user admin password correcthorsebatterystaple
Same result as OP. No difference, can't login.

Note:
I deleted all of /var/lib/{mediawiki,mysql} before running this test again.

With help from a random user on Matrix, we have discovered that this is simply another case of poor NixOS documentation. I'm very disappointed that this issue has gone on for over a month (and could have continued for how many more months?)
I know the devs are busy with many other things, but if someone knowledgeable would have kindly taken 10 minutes to simply install MediaWiki, then this could have been resolved very quickly. Instead, more time than that was wasted with Message replies between myself and @Mic92, and my project postponed for weeks. I'm a Nix newbie, but based on unfounded speculation, I took an hour out of my day to rule out the possibility of Regression. For what reason?? It makes no sense. All the information needed to reproduce issue was in the OP.
As stated in the OP

I have tried logging in a "admin", "user", and "mediawiki".

 That's not admin, haha. The admin is "Wiki"
WTF- Wiki
As stated in the OP

I have tried logging in a "admin", "user", and "mediawiki".

Hopefully my frustration is coming through without offense. There is no indication of admin named "Wiki" to be found anywhere. How could such a simple problem have failed to resolve on so many levels?

Not only did I fail to get help here.
Failure on NixOS Wiki. https://nixos.wiki/wiki/MediaWiki
Failure of Documentation.
Failure of community. As this solution has been solved by other NixOS users before, yet no one has reported it to Devs, nor corrected it on the NixOS Wiki. This issue has existed for how many years? Since at least 2021.

Credit goes to the community on NixOS Matrix chat. I got the solution there. REALLY smart and helpful people are on Matrix who answer many questions daily... But unfortunately, Matrix chat is ephemeral.
TO CONCLUDE:
While I'm very disappointed, I don't want to neglect all the incredible work all Devs are doing (and with little compensation). I'm very thankful for everything you do. You are true heroes in a world fought with non-free software. Without your devotion, NixOS and Linux would not exist.
I have a request. Please be careful not to take those of us who report bugs for granted. You know 99% of people never report any bugs. I'm in that 1% who often reports bugs. I'm not a developer. I'm not a Nix guru. Collecting proper information for you takes me a good deal of time, and I always try to write good reports with all necessary information. When you make a request of me to provide you more information, then I have to try to recreate the exact scenario to reproduce the problem, then add in those extra details you request. It takes a dummy like me a lot of time. A lot more time than it would take a expert such as yourself.

As you said wisely, nixpkgs maintainers are often overworked and with very little time to answer to such requests. The right place to find help is indeed matrix. Please, if you find the time, submit a PR to improve mediawiki's documentation in nixpkgs!

Understood. Thank you

Thank you for going through this, I had the same problem.
However, I'm a bit confused because I just installed the version of Mediawiki included with Nixos 23.11 and the admin account is "MediaWiki", not "Wiki"
So, which one is it?

Cheers. Essentially the issue is, Don't use spaces in the MediaWiki name prior to 24.05, Else it will parse incorrectly. The administrator login name should be "admin"


added the implementation steps for the go-web-app-devops project.pdf

This document has the implementation steps to follow along and create the project with required screenshots.

Thanks alot @prasad-suman for the contribution.


Chrome persists form data after hard reload (without initializing)

Are you submitting a bug report or a feature request?
bug (not 100% sure it is redux-form related)
What is the current behavior?
Currently when I refresh any page with a form on it it automatically fills in form values which were not initialized but rather typed in. As you can see in the GIF, it also does the @redux-form/CHANGE like it is really being typed. The problem persists only on Chrome.

Go to page with a form
Fill in "firstName" field with Neal
Refresh page
Form fills in Neal in "firstName" field(?!)
=> It doesn't have any initialize...

What is the expected behavior?
Expected is that the form clears all values which are not initialized.
Sandbox Link
Unfortunately I can't seem to reproduce the steps in a sandbox...
What's your environment?
redux-form: 6.7.0
chrome:  59.0.3071.115

After restarting my computer this problem went away -_- (I hope for good!)


When AVS Sample app is playing music, it can't answer your question by using Headset.

Hi AMAZON guy:
I got one issue:
Prepare:
1. Rapberry Pi3 .
2. AVS SDK 1.6.0.
3.  I used USB Headset as microphone input devices and playback device.
Install:
1. Install AVS SDK by using https://github.com/alexa/avs-device-sdk/wiki/Raspberry-Pi-Quick-Start-Guide-with-Script.
2. Connect my USB Headset to Raspberry.
3. Set ~/.asoundrc, let audio system to use the USB Headset as record and playback device.
Testing:
1. Let Alexa play music(Alexa, play music by iHeartRadio).
2. While it is playing music, I tried to ask alexa question.(Alexa, what't the time now),
I can't get any response of my question, but get the error log:
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Device or resource busy.
My Question:
Is there something need me to change in audio system config file(Eg. ALSA, Openal, Pluseaudio or Portaudio) to let my Headset work well with AVS SDK?

I encountered this issue too... I simply said "Alexa, stop" and then I could say what I want: e.g. "Alexa, what's the time"...

Hi @wangxiaohu2016,
This may be related to the problem we've seen in #447. Would you mind applying the solution suggested in that issue and see if it fixes your problem?
If the #447 solution doesn't fix your problem, can you please run the sample app with DEBUG9 and attach the logs in to this issue? Can you also please add the content of your ~/.asoundrc?
Question, can you barge in while Alexa is playing your flash briefings?
Thanks

Hi @celinval :

This may be related to the problem we've seen in #447. Would you mind applying the solution suggested in that issue and see if it fixes your problem?
I changed my code from "auto size = m_reader->read(info.data, info.size, &status); // This make thread blocking" to "auto size = m_reader->read(info.data, info.size, &status, std::chrono::milliseconds(200));" in avs-device-sdk/MediaPlayer/src/AttachmentReaderSource.cpp in line 102, but this issue is still on.

Here is my log:
Duplicate of
avs1.6.0bargeIssueLog.zip
Here is my Evn:
pi@raspberrypi:~ $ cat .asoundrc
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:1,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}

pi@raspberrypi:~/build $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~/build $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

When Alexa is playing flash briefings, I try to ask question, but I can't get any feedback from alexa about my question.
I think you can test it in your side by using Raspberry Pi and the USB headset, the issue is always here.

Thank you @wangxiaohu2016. I was able to reproduce the issue using similar configuration to yours. I managed to fix the problem by replacing the playback device to dmix:1,0. My ~/.asoundrc looks like:
pcm.!default {
  type asym
   playback.pcm {
     type plug
     slave.pcm "dmix:1,0"
   }
   capture.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
}

Can you please try that?

Awesome! Works for me! Thank you 👍

I have the same issue I have figured out how to use the RPi AVS with USB conference sound bar. I can ask Alexa and she replies. I can ask her to play I heat radio and she does. But when playing the music and asking a question she stops the music but no verbal answer. I can see in the console that Alexa may be giving the answer but I do not hear it. I tell her to stop and I heart radio stops. I can then ask and will hear her answer. I tried the solution above with no success. Any additional info is greatly appreciated!

I figured this out.  With the version of AVS for 4/4/2019 the file pi.sh needed to be edited with the information above before compiling the project.


Admin landmark fixes

Fixes #5411

Remove inappropriate banner roles
Remove inappropriate contentinfo roles
Add main tag to 404 page

@mixxorz thanks for preparing these fixes!
@thibaudcolas as mentioned, this is approved and good to merge so I have merged in via d0a0c804c25459bbf2161c5c53f10c37ba5b6b77
I also did a quick check locally in Firefox accessibility tools and all appears to work as described.


[ERROR HANDLING] Bot output when announcement & bot command channel isn't set.

What is the default announcement & bot command channel.

Would the error be raised when the bot joins the server like this?
Other options that I've thought of:

Checking if the bot has an announcement / bot channel (Would raise a CheckFailure Error but conflicts with existing CheckFailure Error handling of not having admin permissions unless another error can be thrown)
Bugging any user that tries to access the bot commands by exiting early out of that command's intended function

Yes errors like the stack overflow you linked would arise. Honestly we don't necessarily need to have a channel by default set. We could have no channel set and when someone invokes a command we can respond with "no channel set, please have an admin set the channel. " Or something

As for announcements, putting it in a random channel that it finds is fine.


Typos

Small changes to spellings and one sentence.

Given my conflicting changes I applied these by hand on the main branch


Module 1: Portfolio Deployment

This project includes:

HTML and CSS for a portfolio page
It includes work detail section and about me section
This project was created with major use of Flex box and grid.
Form Added To Portfolio and styled with collaborator
Desktop responsive style added
Deployment of portfolio to GitHub pages

@Abenezer-Tilahun hi, I have added the deployment link as per your review. Please take a look.

@ABDULALI3468 hello,
I think I have fixed it now as per your review. Please re-review when possible


Collaborative's plus action no response at configure containers step

In GitLab by @cuiaq123 on Dec 26, 2017, 09:23
If you are reporting a problem, please make sure the following information are provided:

Version of board (last git commit number) , docker engine and docker-compose.
Config files of board, you can get them by packaging "board.cfg" and files in the same directory, including subdirectory.
Log files, you can get them by package the /var/log/board/.
Other necessery information.

In GitLab by @liyanq528 on Nov 8, 2019, 07:44
fixed by pull request #834

In GitLab by @sokril on Nov 8, 2019, 08:17
closed

In GitLab by @sokril on Nov 8, 2019, 08:17
assigned to @liyanq528

In GitLab by @liyanq528 on Nov 11, 2019, 08:31
mentioned in merge request !319

In GitLab by @liyanq528 on Nov 13, 2019, 10:22
mentioned in merge request !505


Clarify default value of plan_updateable

It is specified in text later in the document, but was not specified in the table of response body fields.

LGTM

LGTM

Yikes, needs rebase.

LGTM

lgtm

Will LGTM after rebase, since it starts the counter again iiuc.

LGTM

LGTM

LGTM

The rebase nightmare strikes once again @pmorie

So close!  :-)

heh - will rebase tonight

Heh.  I think we are bound to have rebase issues as long as the entire spec is in a single file, but I'm sure not trying to solve that problem at 1am.

Rebased

LGTM - quickly, before more rebases are needed

LGTM

LGTM, what a PR.  What a guy

LOL I thought we were avoiding self-LGTMs  :-)

LGTM


Admin of References

Setting name, email, and ability for admin to resend
Also setting of status if received another way.

Also show mailgun info on the email that was sent.. Delivered/ opened

[ ] Admin can change Reference name & Email & Language

[ ] Admin can resend email

[ ] Admin can see when email was sent

[ ] Admin can see if email was opened

[ ] Admin can see if link was accessed

[ ] Admin can see if Reference was submitted

done


Run new test-compiletest harness on builders

Currently we only run on travis, so our merges don't gate on the testsuite passing.

This bit us when we removed a rustc plugin but not the corresponding unit tests :(

Which platforms do we need to run this on/is this platform agnostic? For example, can we run this only on the linux-dev builder, or should we be running this on all platforms - development, release, ARM, OS X, etc?

Linux-dev should be enough.


Add list of sponsors and link to become a sponsor on home page

thanks Brent! ❤
https://github.com/react-navigation/react-navigation.github.io/commit/69ac5d0e5fdf4d4846e169407830964ff26b9289


108108 microsoft.aspnetcore.autnetication deprecated

AB#108108

Since you've removed these packages:
		<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
		<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
		<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />

.. you've probably resolved 108109 and 108110also. If so, take those items into sprint, and link them via comment with AB-syntax


Provide check runtime error info when check fails to load

Overview
If an error exists in a check such as an invalid module import as an example the unittest.TestLoader() will fail to load that check and consequently that check will not execute as part of a check run.  The problem, at worst, is that it may not be apparent that the check didn't run if many checks were executed at the same time and at best you're left confused as to why one of your checks didn't run even though it is in the correct place, matches the entry in the controls.json and is part of the accreditation grouping specified on the command line.  To that end we should surface any errors encountered by the loader that relate to checks requested for execution on the CLI.
Requirements

Add logging for checks that failed to load.

Approach

Add logic to runners.CheckMode.get_checks that looks at the TestLoader.errors (tl.errors) list and cross references it with the checks that were requested for execution.  If there's a match then output that information.
tl.errors content example:

['Failed to import test module: arboretum.technology.auditree.checks.test_abandoned_evidence\nTraceback (most recent call last):\n  File<EMAIL_ADDRESS>line 436, in _find_test_path\n    module = self._get_module_from_name(name)\n  File<EMAIL_ADDRESS>line 377, in _get_module_from_name\n    __import__(name)\n  File<EMAIL_ADDRESS>line 20, in <module>\n    from meh_arboretum.common.utils import parse_seconds\nModuleNotFoundError: No module named \'meh_arboretum\'\n', 'Failed to import test module: test.test_version\nTraceback (most recent call last):\n  File<EMAIL_ADDRESS>line 436, in _find_test_path\n    module = self._get_module_from_name(name)\n  File<EMAIL_ADDRESS>line 377, in _get_module_from_name\n    __import__(name)\nModuleNotFoundError: No module named \'test.test_version\'\n']

Security and Privacy
N/A
Test Plan
TBD

This behavior is not limited to checks only.  It can happen for fetchers too.  Updating issue description and title accordingly.


Where sl_zed / Camera.hpp is located?

Hey ,guys.
When I tried to compile the code in tutorial, the head file "sl_zed/Camera.hpp" cannot be found.
So I want to know where I can find this header file, or do I need to create another environment?

It was not fixed yet, I'm still facing with that error!

Make sure that the ZED SDK include directory is in the include directories list. If using Cmake , it should be automatically done.
For example, under windows, the include dir is C:/Program Files(x86)/ZED SDK/include

Hi
I encountered the same error and i use cmake.
It is not solvec, the directory in ZED SDK is "sl", not "sl_zed".
Changing the #include "sl_zed/*" lines does the trick


Gatsby CLI

It would be really helpful if there was a Gatsby CLI image, similar to something like the Composer image.
That way you can use the CLI image to build the site in a multi-stage build.

@KyleAMathews we can do it. Have you though about it?

This would be great to see! I haven't looked into doing this though.

Somewhat related if you run a container with gatsby develop gatsbyjs/gatsby#4478

if we had the gatsby-cli build in, would that allow us to generate a new project with the docker image,
and if so whats the easiest way to get those files back out, export them to host or bind mount volume?
regards

and if so whats the easiest way to get those files back out, export them to host or bind mount volume?

For the builder to be able to build another docker image, we would need to integrate docker in docker. So I was wondering if we could build a basic image just with the cli and a default path where users could mount their project folder in. From there, the only purpose of it would be just the public/ folder / build.
This would be compatible with most of the CI/CD systems that are docker friendly.
A manual command would be something similar with this:
# docker run -ti --rm -v ~/project/x:/app gatsby:cli [options]
docker run -ti --rm gatsby:cli --help

# static build
docker run -ti --rm -v ~/project/x:/app gatsby:cli build

# dev usage
docker run -ti --rm -v ~/project/x:/app gatsby:cli develop

@mrhut10 do you have any other ideas?

@cusspvz  mmm, I wasn't talking about the initial build process, but the initial setup of a new project, using docker. i.e. creating a new gatsby project.
However your commands you just mentioned with the mounted volumes might make that easy anyway seeing the created project files will end up back on the host. I'll try them out now and see. :)

@cusspvz i was using your run command with the mounted project volume, and with a small change works well for me.
-v "$(pwd)"/src:/source
and until i work out #16 i'm using node:slim and just adding the gatsby-cli this way
'RUN npm install --global gatsby-cli'

I think you are looking for this something like this: https://github.com/aripalo/gatsby-docker/


3.8.0 - Weapon Presets fail to save

General information:
Weapon Presets are failing to save, attempting to save prints an error and then closes the game. [UNHANDLED][/client/builds/weapon/save]
How to reproduce:

Make any weapon and attempt to save it.
Error is printed to server log and game is closed.

Attachments

2024.01.05_21-18-56_<IP_ADDRESS>.28375 traces.log (55 KiB)
server-2024-01-05.log (1295 KiB)
LogOutput.log (7 KiB)
Sorry.png (161 KiB)

Originally written by Jester_Stacks

Should be fixed with: https://dev.sp-tarkov.com/SPT-AKI/Server/commit/8ef405e551b7dd9eeece98600db8d8238c7b57e8
This change touches all aspects of presets:

Saving weapons/equipment/mags
Deleting weapons/equipment/mags
Editing weapons/equipment/mags

Originally written by chomp

This appears to be fixed with the latest update.
Magazines also appear to save and load with the correct parameters

Originally written by Jester_Stacks


Update foyer documentation

PR Summary:
This PR overhauls the organization of the foyer documentation and adds a few new sections. Let me know what you think! Let's tear it up and make it better 👍.
I think I'm reasonably happy with the organization, but I think the topic guides could be sharpened up/expanded upon some.
Closes #407.

@umesh-timalsina I think I broke the fancy footer when I reorganized things. If you could have a glance when you have a chance that would be great.

I might suggest giving "Paper Examples" 1 and 2 more descriptive names. Maybe they could be combined with "Usage Examples"?

Yes! I agree. Those were vestiges from the previous organization...I didn't want to make the changes too dramatic at first but this is a good point and I will take a closer look.

@umesh-timalsina I think I broke the fancy footer when I reorganized things. If you could have a glance when you have a chance that would be great.

bump @umesh-timalsina

And whoops, it does seem like the fancy footer is missing.

@justinGilmer I vote we get these changes merged into the docs and then open an issue to update some of the examples. The paper examples will obviously stay the same.


Wrong data type parameters since and until.

The parameters "since" and "until" on this page should be string and not integer.

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

ID: 3dedace3-fcb7-45b7-8bc1-11b5485d033a
Version Independent ID: 1af36bac-1b08-f493-285f-23b64f12c500
Content: Retrieve IoT Edge logs - Azure IoT Edge
Content Source: articles/iot-edge/how-to-retrieve-iot-edge-logs.md
Service: iot-edge
GitHub Login: @v-tcassi
Microsoft Alias: v-tcassi

Hello @pmzara
I have assigned the issue to the content author for further review and update the doc as appropriate.

Hello @pmzara
I have assigned the issue to the content author for further review and update the doc as appropriate.

Hi! Thanks for your feedback. These changes have been applied in a pull request that has just been closed. #please-close


resourceServerId should be able to lookup Kubernetes resources

On the resources like ClientRolePolicy resource there is a required field of resourceServerId, which must be the UUID of the client that this policy is associated to. However, there is no way to lookup the resource ID via a reference since that field only allows a string, so it forces the user to add the UUID of the resource into the Kubernetes manifest.
What I think might work would be like resourceServerIdRef and have it reference another Kubernetes resource, similar to how providerConfigRef works where it takes the name of another Kubernetes resource and is able to look the object up. I'm thinking in most cases with this, it would be looking up the UUID of a Client resource, but I could be wrong.
Here is an example:
apiVersion: openidclient.keycloak.crossplane.io/v1alpha1
kind: ClientRolePolicy
metadata:
  name: client-role-policy
spec:
  forProvider:
    resourceServerIdRef:
      name: "k8s-resource-name"
    ...

Greetings,
I guess we just need to Set the references correctly in config/ as with other resources.
I can take care of that next week as I am on vacation until sunday

@Breee awesome, thank you very much!

I'm back, sorry for the long waiting time. I'm in the process of preparing moving to a new flat.
Is it correct that a  resource_server_id  is the ID of an keycloak_openid_client ?

#155 implements this - you can test it using this image:
xpkg.upbound.io/crossplane-contrib/provider-keycloak:v1.4.0-rc

built by this pipeline

@Breee Just tested those changes on v1.4.0-rc locally and they worked great! Thank you for adding this, it will be super useful for me when I go to roll this all out at work.

I'll make a New Release tomorrow
On Mon, Sep 2, 2024, 22:46 Aaron Finocchiaro @.***>
wrote:

@Breee https://github.com/Breee Just tested those changes on v1.4.0-rc
locally and they worked great! Thank you for adding this, it will be super
useful for me when I go to roll this all out at work.
—
Reply to this email directly, view it on GitHub
https://github.com/crossplane-contrib/provider-keycloak/issues/151#issuecomment-2325287572,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC3JPMMEMJDP63D4BZFHY4TZUTFBBAVCNFSM6AAAAABMPKO45SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVGI4DONJXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


[JSC] function (Array.sort) won't sort Array

var a = [1,3,2];
a.sort((num1, num2) => num1 > num2);
Global.alert('' + a);

And it logs [1,3,2],function sort does nothing

Same result on iOS and Android, also checked to see if value was just returned and it is not. see: https://rnplay.org/apps/yHvHGg
Note that this executes as expected in Chrome:
var a = [1,3,2];
a.sort((num1, num2) => num1 > num2);
alert('' + a);

Note that if you leave out the compare function, this works on both iOS and Android: https://rnplay.org/apps/n92mLg
Oddly, the compare function does get called with the expected args -- I tested this by just alert'ing the each of the values within the compare function.

Doesn't the sorter need to return a number instead of a boolean?

Yes, I have just tried
var a = [1,3,2];
a.sort((num1, num2) => num1 > num2 ? -1 : 1);
Global.alert('' + a);

It works

Thanks! @ide @brentvatne ,I'll close this issue

Thanks @LeoJiaXin


Bluesky Moderation Service label not shown after tapping 'Show hidden replies'

Describe the bug
When tapping on Show hidden replies, one post was revealed but there were no labels shown on the post. An ⚠ Intolerance label is present on the post but it is only shown if the user taps to view the post itself.
To Reproduce
Steps to reproduce the behavior:

Using default moderation settings (I used a fresh alt) or the PWI, visit this post:

https://bsky.app/profile/bepitropakis.bsky.social/post/3kudphdnfnl2b

Scroll down to the bottom and tap/click Show hidden replies.
See one post displayed, but with no labels on it, and be puzzled as to why the post is hidden when there are apparently no labels on the post and the user isn't muted.
Tap/click through to view the post by itself and see that it was hidden because there was an Intolerance label applied to the post.

Expected behavior
Any labels set by Bluesky Moderation Service should be shown on the post after the user has clicked Show hidden replies.
Screenshots

Details

Platform: iPad (mobile web and app)
App version: 1.85

Closing as this seems to be fixed now.


Javasphinx throws error if an interface has a default method defined

Running javasphinx will throw an error if you have an interface with a 'default' method defined
ERROR:root:Syntax error in /my/path/interface.java: Expected type at default line 486, character 5

This seems to be a total blocker for anyone wanting to use Javasphinx with Java 8 code.

@zero57 could you tell me what version of javasphinx and javalang you are using?

I got this error using javasphinx 0.9.13 and javalang 0.10.0

Same problem here, using javasphinx 0.9.13.
Here is some problematic parts of my source code:

default void ClassName(){} ;
public static void ClassName() {}.

Actually it's a problem with Javalang:
See here:
try:
    ast = javalang.parse.parse(source)
except javalang.parser.JavaSyntaxError, e:
    util.error('Syntax error in %s: %s', source_file, format_syntax_error(e))

Thank you for diagnosing this @roipoussiere. I've released a version 0.10.1 of javalang which I hope resolves this issue. Please let me know if there are still issues.

I've also released version 0.9.14 of javasphinx which bumps the javalang dependency to 0.10.1.

Thank you!


[5.1][test] Disable two more collection tests in unoptimized builds

(Cherry-picked from https://github.com/apple/swift/pull/22970)
https://github.com/apple/swift/pull/22844 disabled a bunch of exhaustive collection tests in unoptimized stdlib builds, but it missed a couple that were hiding amongst a forest of gyb-generated test files.
This PR unblocks CI builds that are still failing due to test timeouts.
rdar://problem/48418643

@swift-ci test

Build failed
Swift Test Linux Platform
Git Sha - 2af09a0b47dfa9d0ca2b14c47f356e6e870d252a

Linux build failure was unrelated; it looks to be resolved now.
@swift-ci test


Mini Optimizations Suggestions

Going over the code and writing some possible micro optimizations as no time to implement those right now.

[ ] Use NOOP pattern to avoid rechecking "static" values which cannot change during parsing.

    // This branch condition will be executed for each and every single token.
    // Yet these flags should never **during** parsing.
    if (this.flags & Flags.OptionsOnToken && this.token !== Token.EndOfSource) {
       this.collectTokens(this.token);
    }

     // -- Init time code --
     function NOOP() {}

     // execute this condition ONCE during parser initialization or per invocation
    // of the parse[Script|Module] APi
     if (this.flags & Flags.OptionsOnToken) {
        // The "realCollectTokens" contains the actual implementation.
        this.collectTokens = this.realCollectTokens
     }
     else {
      // the NOOP function is empty and will be inlined into nothing.
       this.collectTokens = NOOP
     }

    // Parsing time code
    // Either NOOP or the real logic, no cost for executing the condition ten of thousands of times.
    this.collectTokens(this.token)

[ ] More precise boolean conditions.
* ```javascript
// !x === !(x === false || x === 0 || x === undefined || x === null || x ===  "")
if (!this.hasNext()) return Token.LessThan;
     // So it is more efficient to just write
     if (this.hasNext() === false) return Token.LessThan;
     // because hasNext always returns a boolean
   ```

[ ] Avoid unnecessary property access.

    // the length of the source does not change during parsing
    if (index < this.source.length) { }

    // unsure if this would help but alternative options are:
    // 1. maintaining another property
    if (index < this.sourceLength) { }

   // 2. using a closure, (JS is single threaded, so no danger)
   if (index < sourceLength) { }

[ ] Avoid computing lines/columns if full location tracking is not enabled
* can be implemented using the NOOP pattern described above.

I think better to talk about thisin gitter rather than here?

@bd82 im closing this and adding it to my todo. Im in the middle of finalizing the parser now so will adress this issues in the end.

@bd82 Changed how  location tracking works. Undefined are passed instead of objects if no location tracking enabled.


Release 2.1.3

Milestone: https://github.com/etalab/inspire/milestone/18
Change Log

#486 Translate more broken strings (@tusbar)

Codecov Report

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

@@           Coverage Diff           @@
##           master     #487   +/-   ##
=======================================
  Coverage   21.44%   21.44%
=======================================
  Files         166      166
  Lines        1231     1231
=======================================
  Hits          264      264
  Misses        967      967

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 fd5d447...c5e8b16. Read the comment docs.


How to make a fixed navbar ?

How to make a fixed navbar ?

Thank a lot and good day.

Thank a lot and good day.
Le mer. 29 août 2018 à 15:23, Sébastien Côté<EMAIL_ADDRESS>a
écrit :

You just have to add your navbar inside a div :

Your navbar

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sherweb/ngx-materialize/issues/347#issuecomment-416951366,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AogsGdF0y69XJ3GMcIq68kSt9l5QNvKhks5uVpXTgaJpZM4WRFcQ
.


Added Control Flow Guard to configs

This change is

Codecov Report

Merging #643 into dev will increase coverage by 0.28%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #643      +/-   ##
==========================================
+ Coverage   77.13%   77.42%   +0.28%
==========================================
  Files          25       25
  Lines        7317     7339      +22
==========================================
+ Hits         5644     5682      +38
+ Misses       1673     1657      -16

Impacted Files
Coverage Δ

...x86/php-7.1.12-src/ext/sqlsrv/shared/core_stmt.cpp
82.29% <0%> (-0.4%)
:arrow_down:

...-7.1.12-src/ext/pdo_sqlsrv/shared/core_results.cpp
59.16% <0%> (-0.15%)
:arrow_down:

...rojects/php/x86/php-7.1.12-src/ext/sqlsrv/util.cpp
84.61% <0%> (-0.08%)
:arrow_down:

...php/x86/php-7.1.12-src/ext/pdo_sqlsrv/pdo_stmt.cpp
85.34% <0%> (-0.04%)
:arrow_down:

.../php/x86/php-7.1.12-src/ext/pdo_sqlsrv/pdo_dbh.cpp
92.27% <0%> (-0.02%)
:arrow_down:

...p-7.1.12-src/ext/pdo_sqlsrv/shared/core_stream.cpp
0% <0%> (ø)
:arrow_up:

...x86/php-7.1.12-src/ext/pdo_sqlsrv/php_pdo_sqlsrv.h
100% <0%> (ø)
:arrow_up:

...rojects/php/x86/php-7.1.12-src/ext/sqlsrv/init.cpp
88.73% <0%> (+0.05%)
:arrow_up:

...x86/php-7.1.12-src/ext/sqlsrv/shared/core_conn.cpp
72.72% <0%> (+0.05%)
:arrow_up:

...rojects/php/x86/php-7.1.12-src/ext/sqlsrv/stmt.cpp
87.83% <0%> (+0.06%)
:arrow_up:

... and 10 more

Continue to review full report at Codecov.

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


video show “The following content is not available on this app. Watch this content on the latest version of YouTube”

the link video shows that “The following content is not available on this app. Watch this content on the latest version of YouTube”

how to fixed it。thanks

update client params can solve this
https://github.com/kclauhk/youtube-downloader/blob/41eaed479142d163a9ad9142b24269a7e396a82e/src/YouTubeDownloader.php#L91

update client params to "CgIIAQ==" can solve this
https://github.com/kclauhk/youtube-downloader/blob/41eaed479142d163a9ad9142b24269a7e396a82e/src/YouTubeDownloader.php#L91
yt-dlp/yt-dlp#e7b17fc

update client params to "CgIIAQ==" can solve this
https://github.com/kclauhk/youtube-downloader/blob/41eaed479142d163a9ad9142b24269a7e396a82e/src/YouTubeDownloader.php#L91
yt-dlp/yt-dlp#e7b17fc

it works， thanks for your help

update client params to "CgIIAQ==" can solve this
https://github.com/kclauhk/youtube-downloader/blob/41eaed479142d163a9ad9142b24269a7e396a82e/src/YouTubeDownloader.php#L91
yt-dlp/yt-dlp#e7b17fc

it doesn't work again like this

same issue i meet, how to solve it,who can help me?

update client params to "CgIIAQ==" can solve this
https://github.com/kclauhk/youtube-downloader/blob/41eaed479142d163a9ad9142b24269a7e396a82e/src/YouTubeDownloader.php#L91
yt-dlp/yt-dlp#e7b17fc

hi, friend, do you have any idea?

remove this params:
https://github.com/kclauhk/youtube-downloader/blob/b67ee3cabf90689a469645ae670e13f614f34d74/src/YouTubeDownloader.php#L91
and changing this user-agent
https://github.com/Athlon1600/php-curl-client/blob/eff146de74ee3a4a9a7de1511e300b65b5c8efd2/src/BrowserClient.php#L12
to
'User-Agent' => 'com.google.android.youtube/19.09.37 (Linux; U; Android 11) gzip'
seems to help

remove this params: https://github.com/kclauhk/youtube-downloader/blob/b67ee3cabf90689a469645ae670e13f614f34d74/src/YouTubeDownloader.php#L91
and changing this user-agent https://github.com/Athlon1600/php-curl-client/blob/eff146de74ee3a4a9a7de1511e300b65b5c8efd2/src/BrowserClient.php#L12 to 'User-Agent' => 'com.google.android.youtube/19.09.37 (Linux; U; Android 11) gzip'
seems to help
Edit: the url will expire in short period of time, not working

yeah, it seems not  good, have others idea ?

aha, change it and test ,still failed, anyone who has idea..thank you so much

The following should work but it will not provide format 22.
change
https://github.com/Athlon1600/youtube-downloader/blob/215b2b74f5eea5a1e8c1b9ada28c72ca35e5ab4f/src/YouTubeDownloader.php#L81-L92
to

                "client" => [
                    "clientName" => "WEB",
                    "clientVersion" => "2.20240425.01.00",
                    "hl" => "en",
                    "timeZone" => "UTC",
                    "userAgent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36",
                    "utcOffsetMinutes" => 0
                ]
            ],
            "videoId" => $video_id,

and
changing this user-agent https://github.com/Athlon1600/php-curl-client/blob/eff146de74ee3a4a9a7de1511e300b65b5c8efd2/src/BrowserClient.php#L12
to
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
(the original Firefox 71 is too old)

The following should work but it will not provide format 22.以下内容应该有效，但不会提供格式 22。
change 改变
https://github.com/Athlon1600/youtube-downloader/blob/215b2b74f5eea5a1e8c1b9ada28c72ca35e5ab4f/src/YouTubeDownloader.php#L81-L92
to 自
            "client" => [
                "androidSdkVersion" => 30,
                "clientName" => "WEB",
                "clientVersion" => "2.20240425.01.00",
                "hl" => "en",
                "timeZone" => "UTC",
                "userAgent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36",
                "utcOffsetMinutes" => 0
            ]
        ],
        "videoId" => $video_id,

and changing this user-agent https://github.com/Athlon1600/php-curl-client/blob/eff146de74ee3a4a9a7de1511e300b65b5c8efd2/src/BrowserClient.php#L12并更改此用户代理 https://github.com/Athlon1600/php-curl-client/blob/eff146de74ee3a4a9a7de1511e300b65b5c8efd2/src/BrowserClient.php#L12 to 自 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36Mozilla/5.0 （Windows NT 10.0;Win64的;x64） AppleWebKit/537.36 （KHTML， like Gecko） Chrome/<IP_ADDRESS> Safari/537.36

OK， let me try it

log.json
i got the json , but can't get the final video play url, how to parse .
for example :
"s=M%3DM%3DwZ5YAUvlwE-ATCQAl83jUp%3DuK0wPvtUyPgmFjrwaACBDQICknvAs34WBTQSNGVVCEGUNyqwTALxWD5RU30dPE51w1JgIQRwsSdAfJQQ&sp=sig&url=https://rr3---sn-f5uxxo23-pnce.googlevideo.com/videoplayback%3Fexpire%3D1714153257%26ei%3DyZIrZomOFeCw1d8P7Ly5mAg%26ip%3D<IP_ADDRESS>%26id%3Do-AL9BxYPuSpqqSk8ZZUQFrOD1SVK9q7InTaIRu5qLEwnQ%26itag%3D18%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DLp%26mm%3D31%252C29%26mn%3Dsn-f5uxxo23-pnce%252Csn-hgn7ynek%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D3%26pl%3D24%26gcr%3Dpk%26initcwndbps%3D268750%26bui%3DAWRWj2TrpGiH0J5dZjLGqu1kH956m1mpT-jylZK2CG0nuImiPA4sYcHsk6-FxMPDr4T4H8nXpx00EUHQ%26spc%3DUWF9f6-A8Vz5wyczg5bzldxygBB722VDXVuQBdT59AjwAnQndcIWunUlFYaZ%26vprv%3D1%26svpuc%3D1%26mime%3Dvideo%252Fmp4%26ns%3DUp5c5akpTPmpNR7Kkb8-pr4Q%26rqh%3D1%26gir%3Dyes%26clen%3D11637024%26ratebypass%3Dyes%26dur%3D218.314%26lmt%3D1713913144365740%26mt%3D1714130946%26fvip%3D4%26c%3DWEB%26sefc%3D1%26txp%3D4538434%26n%3DvEpD0159Ienyz18%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cxpc%252Cgcr%252Cbui%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Crqh%252Cgir%252Cclen%252Cratebypass%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAHWaYeowRQIhAO41G0rCdi533Uo1tFl8Ha9pY7YT3P9be38MRLW3G7l2AiARny8ud4TeJTj4c_gGcBcmhu8Wnr-ldavfKof8y0FYJA%253D%253D"
@kclauhk

any update？

I replaced
https://github.com/Athlon1600/youtube-downloader/blob/215b2b74f5eea5a1e8c1b9ada28c72ca35e5ab4f/src/YouTubeDownloader.php#L79
$response = $this->client->post("https://www.youtube.com/youtubei/v1/player?key=" . $configData->getApiKey(), json_encode([             'context' => [                 "client" => [                     "clientName" => "TVHTML5_SIMPLY_EMBEDDED_PLAYER",                     "clientVersion" => "2.0",                     "hl" => "en",                     'clientScreen' => 'EMBED',                 ],                 'thirdParty' => ['embedUrl' => 'https://google.com'],             ],             "videoId" => $video_id,             "playbackContext" => [                 "contentPlaybackContext" => [                     "html5Preference" => "HTML5_PREF_WANTS"                 ]             ],             "racyCheckOk" => true,             "contentCheckOk" => true,         ], JSON_THROW_ON_ERROR), [             'Content-Type' => 'application/json',             'X-YouTube-Client-Name' => '85',             'X-YouTube-Client-Version' => '2.0',             'Origin' => 'https://www.youtube.com'         ]);
and it worked

I replaced this to
$response = $this->client->post("https://www.youtube.com/youtubei/v1/player?key=" . $configData->getApiKey(), json_encode([
            'context' => [
                "client" => [
                    "clientName" => "TVHTML5_SIMPLY_EMBEDDED_PLAYER",
                    "clientVersion" => "2.0",
                    "hl" => "en",
                    'clientScreen' => 'EMBED',
                ],
                'thirdParty' => ['embedUrl' => 'https://google.com'],
            ],
            "videoId" => $video_id,
            "playbackContext" => [
                "contentPlaybackContext" => [
                    "html5Preference" => "HTML5_PREF_WANTS"
                ]
            ],
            "racyCheckOk" => true,
            "contentCheckOk" => true,
        ], JSON_THROW_ON_ERROR), [
            'Content-Type' => 'application/json',
            'X-YouTube-Client-Name' => '85',
            'X-YouTube-Client-Version' => '2.0',
            'Origin' => 'https://www.youtube.com'
        ]);
        ```

        and it worked

the playing url this way get   don't need js decrypt？

the playing url this way get don't need js decrypt？

just copy url and it playing in browser

instead Client ANDROID you can use
"clientName": "ANDROID_TESTSUITE",
"clientVersion": "1.9"