Simplified way to author PowerShell resources for DSCv3

Summary of the new feature / enhancement
The feedback from customers is that authoring class-based resources is too complex and script-function resources require a MOF schema.  Although we will continue to support existing script-function and class-based PS resources, we should consider them legacy and only via PSDSC module (with eventual 3.0 release).  This also means legacy resources will never get support for export, for example.
This proposes a new way to author DSCv3 resources in PS that does not require PSDSC module and instead is part of the PowerShellGroup resource and does not require authoring JSONSchema.
A goal is to not require any changes in PS itself to make this work so this will also work for WinPS5.1.
Proposed technical implementation details (optional)
The new PS resource model will be a module with cmdlets for get, set, test, export.  The mapping will be defined in the .psd1 within a PrivateData section specifically for DSC.  This means that these resources will still be discovered via $env:PSModulePath.
Most cases where the JSON structure is flat, the type and constraint information will simply be directly mapped to the parameters of a cmdlet.  The PowerShellGroup resource will handle validating the input JSON maps to the cmdlet parameters.
In some cases, the input JSON may require nested objects.  To accommodate this, there are several options:

require a PS class to define the nested object

the advantage here is that the current syntax is sufficient, but requires authoring a class which was one of the complaints and testing would have to be within module scope to access the class

use another PS function to simply define the object and in the actual get, etc... cmdlet have the parameter name match the "type" function name which simply accepts a hashtable

this approach is a bit hacky, but testing would be easy if the "type" function just returns a hashtable using the parameters as properties.  Deeply nested objects would just follow the same design.  Keys could be represented as parameters being members of a Keys parameterset.

Here's an example for a simple object:
{
  "name": "powershell",
  "version": "7.4.0"
}

In this case, a get could look like:
function get-powershell {
  param(
    [parameter(mandatory)]
    [string]$name,
    [string]$version
  )
}

If we change this to have a nested object:
{
  "name": "powershell",
  "version": {
    "major": 7
    "minor": 4
    "patch": 0
  }
}

Then the required function would look like:
function get-powershell {
  param(
    [parameter(mandatory)]
    [string]$name,
    [hashtable]$version
  )

  # when dsc calls this resource, it would pass a hashtable that looks like the one below for `$version`
}

function version {
  param(
    [int]$major,
    [int]$minor,
    [int]$patch
  )

  # this part wouldn't be used by DSC, but could be used for unittests
  return @{major=$major;minor=$minor;patch=$patch}
}

Would this design pollute Get-Command with DSC cmdlets?
Could you also explain how this design is simpler than a class based resource? If class based resources were defined as an interface it would simplify authorship and able to be implemented in PowerShell or C#. That could also allow for the removal of the PSDSC module by having all logic in the PowerShellGroup.

@ThomasNieto good question.  My expectation is that these DSC resources would not be used as general cmdlets so they wouldn't be exported as they would in a normal module.

I've thought about this a lot over the last couple of years, especially since working on the Puppet.Dsc module that had to inspect and metaprogram handlers to use DSC Resources as "nearly native" Puppet resources. I encountered a lot of DevX challenges and inspected a ton of DSC Resource implementations along the way.
I filed a few discussions in the PSDSC repository on this, in particular:

PowerShell/PSDesiredStateConfiguration#81
PowerShell/PSDesiredStateConfiguration#82
PowerShell/PSDesiredStateConfiguration#97

Leaving those aside for a second, I think the most significant advantage class-based resources offer authors is the definition of the resource schema as class properties. I don't think people primarily struggle with defining resource properties, my experience and discussions with community members indicates that they primarily struggle with the way they're expected to implement class methods.
I've been playing around with some prototype ideas, but I see two main ways forward, with different options for each:

The v3 model for defining DSC Resources relies on convention - no dependencies at all.
The v3 model for defining DSC Resources builds on a defined interface or base class, which means having a dependency on a module.

Personally, I favor the latter and having the dependency be on the PSDSC module itself - that module is already required for using Invoke-DscResource and discovering existing resources, so as dependencies go it's (functionally, or nearly so) free. The downside to using PSDSC is WinPS compatibility, so it could be a separate module[^1].
Conventional Resource Definitions
If we're going the conventional route without runtime dependencies, the most effective model I can see is for authors to define resources as standalone scripts. The body of the script can be generated from a template and validated to a degree with AST parsing checks.
The alternative outlined above, which includes a mapping of parameters, may still require type definitions for complex use cases. With a conventional implementation, we could extract schemas from the script so they "just work" with the rest of the tooling, even though they're called by the PowerShell provider.
The downside to conventional resources is that they would need to be regenerated any time the conventions change - you can't "freely" get improvements for them. An upside is that if their runtime implementation is purely a script, you don't need to do anything special to integrate with them.
Conventional Resource Workflow

Author runs New-DscResourceDefinition to generate the definition file, like Tailspin.dsc.definition.ps1
Author fills out the definition file defining their class (the resource schema), and the required functions, deleting any their resource doesn't support:

Get-TargetResource
Export-TargetResource
Test-TargetResource
Set-TargetResource

Author runs Build-DscResourceDefinition to generate the self-contained script from their definition - this could also include updating the module manifest or defining a resource manifest. It should probably include a validation step to check the definition file, but authors should be able to run Test-DscResourceDefinition separately for that purpose too.

Interface Resource Definitions
Interface definitions have a lot of benefits outlined in the discussions, including:

Built-in static analysis for what functionality the resource implements and whether it does so correctly.
Default implementations for the constructor (to obviate the inability to determine from within a class-based resource whether a value-type property is its default value because it was specified that way or wasn't specified at all - e.g. does the user care whether the UpdateFrequency property 0? We can't tell in the current model).
Default implementations for the Test method (to mimic the synthetic test in V3 when using Invoke-DscResource)
Handling serialization without the users needing to do anything special - resolving the issues around returning properties that the resource shouldn't in Get for v3.

Aside from the static author-time analysis, a base class gives a lot of the same benefits.
I think a shared interface for resources is the most robust option, but I understand that it introduces a runtime dependency we want to avoid.
Interface Resource Workflow

Author runs New-DscResource to generate the script module or snippet to put in an existing script module.

Author fills out the class definition, which inherits from the interface/base class.
Instead of defining the logic for the operations in class methods, the author defines the functions to call for those operations as static properties. All implementation logic lives in normal functions that take an instance of the class as input.

[^1]: For a separate module, it would probably make sense to ship that module with the PowerShell provider for DSCv3 - so you have some assurance that the version you pin to works with the provider implementation.

If the primary problem is authoring the schema, I wonder if the answer is simply tooling to generate JSON Schema whether it comes from a class definition or something else.

There's a two-way problem for non-class-based PSDSC resources - you have to define the schema and keep your implementation functions in sync with the schema. I definitely endorse being able to generate JSON Schema from PSDSC resource definitions (and generally for other objects/uses).

New PowerShell resources should support Export scenario.


Cannot convert from HEX to others

It works to convert from dec to others and from bin (0b1010) to others but not from hex (0xC) to others. Would you please help to fix this? I am using JetBrains Rider 2022.1.2

Hello, thank you for the issue!
Yes, I see the problem and fix it soon.


Finish uic program

The uic program is almost done but it needs tons testing for robustness and such

Its much better now, but needs edge case support


Add Battery status accessory

Added new battery status accessory that provides:

Battery level
Charging state

@athal7 Thanks for your response. So I wanted the ability to show the charging state and I though that did not fit well with the range service.
Can you let me know when you have committed that file so I can revert my change on the range file.
Thanks

Got it. To me it would make sense to include the charging state in the existing range accessory because it is a battery service type. Would you be open to updating the existing accessory instead of creating a new one?

@athal7  I think if you change the range name then yes, it could work. It would be weird that the charging state would be under range.  My thinking too would be that we could add a boolean switch in the config for EV, and then battery service would be only displayed for EV users.
What about that idea?


fix: Docker ephemeral env

SUMMARY
Fixes Docker ephemeral env secrets step. It was using a wrong indentation and interpreting aws-access-key-id and aws-secret-access-key as parameters of steps instead of run.
TESTING INSTRUCTIONS
Check that you don't get a Push ephmereral env image: No jobs were run error when opening a new PR.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

I think the revised action only runs when merged, but... in case I'm wrong


Fatal error: Uncaught Error: Class 'Roots\Sage\Assets\JsonManifest' not found

Submit a feature request or bug report

[ ] I've read the guidelines for Contributing to Roots Projects
[ ] This is a feature request
[x] This is a bug report
[ ] This request isn't a duplicate of an existing issue
[ ] I've read the docs and NPM Debugging Guidelines post and followed them (if applicable)
[ ] This is not a personal support request that should be posted on the Roots Discourse forums

Replace any X with your information.

What is the current behavior?
I just started playing with sage and cloned the repo and install npm packages... i activated this theme in the wordpress admin
Fatal error: Uncaught Error: Class 'Roots\Sage\Assets\JsonManifest' not found
What is the expected or desired behavior?
It should run without any glitch.

Bug report
(delete this section if not applicable)
Please provide steps to reproduce, including full log output:
`
( ! ) Fatal error: Uncaught Error: Class 'Roots\Sage\Assets\JsonManifest' not found in C:\wamp64\www\wordpress\wp-content\themes\mensa\src\helpers.php on line 27
( ! ) Error: Class 'Roots\Sage\Assets\JsonManifest' not found in C:\wamp64\www\wordpress\wp-content\themes\mensa\src\helpers.php on line 27
Call Stack
Time	Memory	Function	Location
1	0.0015	364216	{main}( )	...\index.php:0
2	0.0601	366272	require( 'C:\wamp64\www\wordpress\wp-blog-header.php' )	...\index.php:17
3	0.0605	381664	require_once( 'C:\wamp64\www\wordpress\wp-load.php' )	...\wp-blog-header.php:13
4	0.0608	394152	require_once( 'C:\wamp64\www\wordpress\wp-config.php' )	...\wp-load.php:39
5	0.0644	478920	require_once( 'C:\wamp64\www\wordpress\wp-settings.php' )	...\wp-config.php:89
6	0.4694	16997880	do_action( )	...\wp-settings.php:395
7	0.4694	16998632	App{closure}( )	...\plugin.php:524
8	0.4702	17001776	App\asset_path( )	...\setup.php:67
`
Please describe your local environment:
WordPress version: 4.6.1
OS: Windows 10
NPM/Node version: NPM - 3.8.9, Node - 6.2.0
Where did the bug happen? Development or remote servers?
Development
Is there a related Discourse thread or were any utilized (please link them)?
No

Feature Request
(delete this section if not applicable)
Please provide use cases for changing the current behavior:
X
Other relevant information:
X

you didn't follow the installation instructions which say to use composer create-project, so run composer install.

oh my bad... thanks


Feature/faq component

Problem
As an engineer, I want to refractor the FAQ component.
Link to Asana Ticket
Solution
Refactored the FAQ component by using flexbox.
Steps to Verify:

A setup step / beginning state
What to do next
Any other instructions
Expected behavior
Suggestions for testing

Screenshots (optional):
Show-n-tell images/animations here

This looks very much like what we had in #146. Is this PR necessary? I believe we reverted from these changes.

This looks very much like what we had in #146. Is this PR necessary? I believe we reverted from these changes.

This looks very much like what we had in #129. Is this PR necessary? I believe we reverted from these changes.

I removed the scrolling from the FAQ component and on smaller screens, I removed the three-column format so that the content is easier to read

This looks very much like what we had in #129. Is this PR necessary? I believe we reverted from these changes.

I removed the scrolling from the FAQ component and on smaller screens, I removed the three-column format so that the content is easier to read

I removed the scrolling from the FAQ component and on smaller screens, I removed the three-column format so that the content is easier to read

Ok, I'd suggest rebasing off of main as it seems like you're not up to date with main which might also be why you've got a ton of merge conflicts.

I removed the scrolling from the FAQ component and on smaller screens, I removed the three-column format so that the content is easier to read

Ok, I'd suggest rebasing off of main as it seems like you're not up to date with main which might also be why you've got a ton of merge conflicts.


ner的few_shot GPU训练最小需要多大显存

Describe the question

A clear and concise description of what the question is.
我用了一台小米笔记本 有俩个G的显存，训练时提示内存不足，看GPU使用情况是百分之0,batch_size设置成2也还是不行
RuntimeError: CUDA out of memory. Tried to allocate 76.00 MiB (GPU 0; 2.00 GiB total capacity; 1.61 GiB already allocated; 0 bytes free; 1.62 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Environment (please complete the following information):

OS: [e.g. mac / window]
Python Version [e.g. 3.6]

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

显存的占用与模型占用以及一些训练配置有关，使用bart-large，设置batch size=1，prompt_len=10, prompt_dim=800, 显存占用约4.7个G

也就是说bart-large这个模型最少也得5个G的显存哈


List markers are not vertically centered when font size is larger

List markers are not vertically centered when font size is larger
Steps for Reproduction

Visit the third example of quilljs.com homepage
Type any text on a new line in the editor and select it
Set its font size to "Huge" then set it to "list" ("bullets" or "ordered")
You can see that the markers before the list are not centered vertically.

Expected behavior:
The list marker should be centered vertically.
Actual behavior:
The marker before the list is not vertically centered
Platforms:
Browser: Chrome 129.0.6668.70
Version:
V2.0.2

It can be fixed by the following CSS. If it is confirmed that this is a bug, I can submit a PR
li > .ql-ui {
    position: absolute;
    top: calc(50% - 9.75px);
}

I used the wrong account, I will resubmit with a different account


Throw MappingException if owning/inverse side of refs are missing targetDocument

Closes #258

Merged manually in https://github.com/doctrine/mongodb-odm/commit/c659449fac9bbbf37fcfe056098ffb0bc829f196


Expose the template generator via a REST api

It seems that cloudflare workers dont allow the use of eval, this is used by ETA (the templating library we use). I dont see an immediate way around this.
It does also present an intresting attack vector for this if we do self host this.

I think it's possible to use Vite to precompile the eval into string templates.
https://github.com/storipress/unplugin-eta/ It's for Eta v2, but I don't think we necessarily need v3 features.

Ohh intresting, thanks. It seems it uses ETA.compileToString to generate the code usually consumed via eval. Doing this at build would likely be a benefit everywhere this is ran.

Well, I tried it, doesn't seem to be working. Still spits out Function calls.
https://github.com/deirn/fabricmc.net/tree/precompile-eta

Eta v3's compile seems to guard the Function call, so it works fine here
https://github.com/deirn/fabricmc.net/tree/precompile-eta3
Custom made Vite plugin :P


feat(command): add support for nodejs

This would be amazing, we'd like to offer the windmill cli with bunx, npx and deno and this is our only bottleneck at the moment. Happy to give a help if we can!

Does this mean cliffy will get published on npm or shall it be used from jsr ?

Or could it be sufficient for CLI to use dnt https://docs.deno.com/runtime/manual/advanced/publishing/dnt and publish to npm directly?


Can we increase the backstage function of the mall?

Can we increase the backstage function of the mall?
I hope that the author will increase this function, thank you!

Uhh... I'm sorry, I have no idea what you're asking for... Please clarify your request

Shopping Mall Meuns and programs.

That doesn't help. Please try again. What are you asking for?

I'm going to be the admin of the mall.


Support more tags

encoded cbor-seq
date, epoch-date
shareable, shared-ref
ipv4, ipv6
typed arrays

bors r+

bors r+


Fix: Update conditional import to use correct library for wasm

The current file_saver builds for wasm, but trying to use it immediately fails with "Cannot create PlatformHandler"
This is because the conditional import on dart.library.html does not happen on wasm.
From https://dart.dev/interop/js-interop/package-web#conditional-imports

This shows that dart.library.html should be replaced with dart.library.js_interop
This PR does just that.
With this change, I have tested that I get a working file save under wasm now.

small piece forgotten. lgtm 👍

I'm still unable to build wasm using flutter build web --wasm after applying this patch, getting errors like below:
../../../.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.2.1/lib/src/path_provider_windows_real.dart:5:1: Error: 'dart:ffi' can't be imported when compiling to
Wasm.
import 'dart:ffi';
../../../.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.2.1/lib/src/get_application_id_real.dart:5:1: Error: 'dart:ffi' can't be imported when compiling to Wasm.
import 'dart:ffi';
^

Is there a way to import path_provider_windows and path_provider_linux merely on Windows / Linux to avoid them interrupting wasm build?

That looks like an issue with path_provider - not with file_saver. You should post issues related to path_provider in that repo, not file_saver.

That looks like an issue with path_provider - not with file_saver. You should post issues related to path_provider in that repo, not file_saver.

It should be, but in file_saver's

Can this please be merged? :)


Missing create/update/delete actions on miq-policy and miq-policy-profile in REST API

There is a need to create policies through API in order to enable an easy to automate.
cc @gtanzillo @imtayadeway @simon3z

cc @moolitayer @cben @dkorn

what about assigning a policy profile to an entity, is that supported @alongoldboim?

created issue for the alert parts following this one.

Assigning seems supported.
On Sep 23, 2016 06:09, "Mooli Tayer"<EMAIL_ADDRESS>wrote:

created issue https://github.com/ManageIQ/manageiq/issues/11475 for the
alert parts following this one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ManageIQ/manageiq/issues/11449#issuecomment-249091249,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQtGNQkJIDKAYyXys618AIFbY1hOXM3ks5qs0LZgaJpZM4KDytl
.

yes, policy/policy profile assignment to CI's is there: https://github.com/ManageIQ/manageiq_docs/blob/master/api/reference/policies.adoc

WIP pr:
https://github.com/ManageIQ/manageiq/pull/11505

Policy CRUD done in PR https://github.com/ManageIQ/manageiq/pull/11505
no CRUD on policy_profiles currently.

cc @zgalor


Fix the F1 keywords

Currently, F1 from sys.query_store_query DMV leads to this page instead of the correct one.

@zikato : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@rwestmsft
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Thanks @zikato for taking the time to submit this PR! Good catch. Your commit will be merged and this article update is in flight. After the updated article is published, GitHub will list you as an article contributor.
Thanks again for this feedback, your suggestions help improve our documentation.
#sign-off

@WilliamDAssafMSFT: I'm sorry - only the author of this article, @rwestMSFT, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


bug: TypeError: Cannot read property 'direction' of null

Short description of the problem:
The following exception is thrown when using the ViewController.dismiss() method:
TypeError: Cannot read property 'direction' of null
What behavior are you expecting?
I'm expecting that ViewController.dismiss() should be working similar to NavController.pop(), although I'm using Ionic for only 1 week and maybe I'm missing something or using something incorrectly.
Steps to reproduce:

Click the Profile button on HomePage, bound to HomePage.profile().
Click the Logout button on ProfilePage, bound to ProfilePage.logout().
The following exception is thrown:

Uncaught EXCEPTION: Error during evaluation of "click"
ORIGINAL EXCEPTION: TypeError: Cannot read property 'direction' of null
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'direction' of null
    at NavController.remove (http://localhost:8100/build/js/app.bundle.js:47600:31)
    at ViewController.dismiss (http://localhost:8100/build/js/app.bundle.js:45635:27)
    at ProfilePage.logout (http://localhost:8100/build/js/app.bundle.js:62635:20)
    at AbstractChangeDetector.ChangeDetector_ProfilePage_0.handleEventInternal (viewFactory_ProfilePage:186:31)
    at AbstractChangeDetector.handleEvent (http://localhost:8100/build/js/app.bundle.js:14022:30)
    at AppView.triggerEventHandlers (http://localhost:8100/build/js/app.bundle.js:18329:37)
    at eval (viewFactory_ProfilePage:605:110)
    at http://localhost:8100/build/js/app.bundle.js:33400:37
    at http://localhost:8100/build/js/app.bundle.js:32777:87
    at Zone.run (http://localhost:8100/build/js/app.bundle.js:2258:25)

Code:
@Page({
	...
})
export class HomePage {
	constructor(private nav: NavController) {
		...
	}

	profile() {
		this.nav.push(ProfilePage, { ... });
	}
}

@Page({
	...
})
export class ProfilePage {
	constructor(params: NavParams, private nav: NavController, private view: ViewController) {
		...
	}

	logout() {
		...
		// Error when executing the following:
		this.view.dismiss(null);
		// It works OK rewritten this way though:
		// this.nav.pop();
	}
}

Ionic Version: 2.x
Browser & Operating System: Chrome (Windows 8.1 64-bit)
Run ionic info from terminal/cmd prompt:
Your system information:

Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.1
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
OS: Windows 8.1
Node Version: v5.6.0

Good catch! This issue helped expose some problems with how we were generating navigation opts objects when the argument was missing, or it had an undefined or null value. Should be fixed in the next release, thanks for the help!

Wow, that was fast. Thanks for the reply and the quick fix! Looking forward to the next release.

Hi, Im having a very similar problem even after upgrading to latest ionic version.
Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.23
Ionic App Lib Version: 2.0.0-beta.13
OS:
Node Version: v5.7.0
In my case, when I try to do this.viewCtrl.dismiss(), im getting Cannot read property 'removeEventListener' of null when I have an ion-infinite-scroll on the page.
I have tried using this.nav.pop() and this.nav.popToRoot() and still get the same issue.
The only things that has worked is removing the infinite scroll. But I need it.
Any suggestions?
Thank you

@cperez1087 This is a known issue and will be fixed in beta.4.


"Show name" option does not work if "Text scrolling effect" is off

Describe the bug
"Show name" option does not work if "Text scrolling effect" is off
To Reproduce
Steps to reproduce the behavior:

Card type button (switch, slider)
Go to Button settings
Enter something in "Optional - Name"
Set "Text scrolling effect" to off
Switch "Show name"-Setting
Nothing will happen, name still shown
Set "Text scrolling effect" to on
Switch "Show name"-Setting
Name will show/hide as expected

Expected behavior
Show/hide name can be set no matter is text scrolling is active or not
Informations (please complete the following information):

OS: Windows 10
Browser/App: Chrome
Bubble Cardv2.2.1
Home Assistant version:
Core 2024.8.1
Supervisor 2024.08.0
Operating System 12.4
Frontend 20240809.0

Thank you! 🍻

Damn, I was sure that it was fixed, I will take a look!

The "Show name" toggle isn't working at all...

Hi again, this issue will be fixed in the next release 👌

Is there any update available ?
I want to be able to hide the name, in case of a 'button' one could then actually make a horizontal stack with the normal bubble button which looks nicer than the horizontal  stack option, which has a different/inconsistent styling compared to the rest of the options.
eg:

eg. if name is hidden, then they should be equally aligned.


ExaminableDamage now puts its message at the bottom and in color

About the PR
When examining damage on windows or tesla-coils, the message was sorted by alphabetical order and in things with lots of examine messages (like tesla-coils) it sort of gets lost in the noise.
Damage examine is now at the bottom of the examine page, always. And for the last 3 damage states it is now in color, to make it even more obvious.
Why / Balance
Resolves #32797, looks better and is easier to read
Technical details
PushMarkup has a "priority" argument which I made use of. Strangely enough I couldn't find any other examples of this being used anywhere in the code (probably just missed it) but it worked in my testing so :tada:
Media

Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes
Shouldn't be any
Changelog
nah

Nice, that's great!

tfw test fail. Someone tell me what I did wrong if anything at all :P

It does not look like a real fail...

the usual solution of merging the upstream changes into the branch doesn't work because my branch is already fully up to date so...

Nice QOL change, I approve. My only suggestion would be to maybe set the text priority to something absurdly low, like -99, if you want to ensure it's always at the bottom

Good change, thank you for your contribution!


ERR_CERT_VALIDITY_TOO_LONG for the local.adguard.com certificate

STR on Android

Move AG certificate to the system store
Reboot the device
Refresh any page and check errors in the browser console (use chrome://inspect).

Consider this while fixing it:
https://github.com/AdguardTeam/CoreLibs/issues/277

Why just not to use certificate validity interval that fit into new constraints?

That's basically what we need to do


Check for Source IP/CIDR in Policies

It's possible to allow access based on aws:SourceIpkeyword [1].
The task is to detect that and try to correlate VPC with VPC's subnet.
Sine there is no 100% guarantee the correlation will be correct, an information about similarity must be displayed, if potential subnets are detected within account.
Refs
[1] https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceip

Imagine that I have this policy..
"Condition": {
"Bool": {"aws:ViaAWSService": "false"},
"IpAddress": {"aws:SourceIp": "<IP_ADDRESS>"}
}
What you're saying is when found key ipAddress-SourceIp, find in all subnets from that vpc to discover if its a potencial Ip used? Makes sense. This will require a little more attention cause some ips are a CIDR block and not explict IP.
Good.

Yes, that's what I had in mind. There are ofc some pitfalls. If an IP address/CIDR is within a range of overlapping CIDRs like in [1], things aren't getting so obvious.
[1] https://docs.aws.amazon.com/vpc/latest/peering/peering-configurations-partial-access.html#one-to-two-vpcs-simple-hub

Ok, I get it! I'll simulate some scenarios.

@meshuga it's a prototype in a separated branch... There are some issues to fix before merge in developer branch:
1 - Works only if the key "aws:SourceIp" is a single IP, not a list.
2 - Works only if the key "aws:SourceIp" has a IP with no subnet block.. Example: <IP_ADDRESS> works.. <IP_ADDRESS>/32 doens't work.
I need to improve reg expression to fix these itens.. But it's working :D

Maybe you'll need to run: pip install ipaddress

Fixed

2 - Works only if the key "aws:SourceIp" has a IP with no subnet block.. Example: <IP_ADDRESS> works.. <IP_ADDRESS>/32 doens't work.

That policy doesn't much work (nothing is detected):
{
  "Version": "2012-10-17",
  "Id": "arn:aws:sqs:ap-southeast-1:xxx:aaaaa/SQSDefaultPolicy",
  "Statement": [
    {
      "Sid": "xxx",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "SQS:*",
      "Resource": "arn:aws:sqs:ap-southeast-1:xxx:aaaaa",
      "Condition": {
        "IpAddress": {
          "aws:SourceIp": [
            "<IP_ADDRESS>",
            "<IP_ADDRESS>",
            "<IP_ADDRESS>/24",
            "2001:DB8:1234:5678::/64"
          ]
        }
      .
    }
  ]
}

Policy without IPv6 CIDR is not detected as well.
I got an idea: to make the tool be solid - let's just add another detection mechanism and not correlate it with any VPC or subnet whatsoever. Let's just display the information as is. It will reduce potential misunderstanding of the report entries.

Is it a IAM Policy or SQS Policy inside a queue? In this branch the tool just check if policy is inside the queue not just as IAM Policy. I'll replicate if success in SQS Queue Policy..

And about your ideia, I didn't get it... explain more, please.

Yup, it's an access policy assigned to my queue, as shown below:

Maybe yours subnets CIDR? I can enable except too and we can check if some error shows..
And tell me more about your ideia.

I pointed that out in https://github.com/leandrodamascena/aws-network-discovery/issues/14#issuecomment-624711033
The idea is not to display network information from a context of solely VPCs but also other, like in this case, IP addresses, subnets.

Ok, get it! I'll able debug in this version and you check if some error...

Try now... script will show exceptions when check if a ip is inside a subnet..

Merged this branch into developer.

Included in 0.5.0 release.


The go tool trace command should not contain hardcoded javascript.

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

Latest master 1.7.

What operating system and processor architecture are you using (go env)?

n/a, but darwin/linux amd64.

What did you do?

I originally tried to use go tool trace in 1.6:

found that the bundled catapult trace viewer was so old as to need a deprecated experimental browser api
followed the thread from misc/trace/README.md
after copying in a newer trace viewer bundle, it turned out that the api had shifted so much that the inline javascript was now broken

From there I started hacking on my copy of the go 1.6 source, eventually I got a hold of the 1.7 source and found that at least all of the assets had already been upgraded (now including a polyfill for the ill-fated Object.observe).
However the future surface area fur such drift had only increased since 1.6; compare:

before: https://github.com/golang/go/blob/release-branch.go1.6/src/cmd/trace/trace.go#L51
after: https://github.com/golang/go/blob/master/src/cmd/trace/trace.go#L50

This is truly unfortunate since the only dynamic part of that entire "template" is a URL parameter for the XHR request to load data.

What did you expect to see?

Principled separation between frontend code and server-side code.

What did you see instead?

A hardcoded html+javascript "template" (not even an html/template
I have a proposed change that I'm working to get into Gerrit now.

There is a significant advantage to having a single file contain everything, including data, javascript, etc. A standalone file can easily be shared and does not require any special tools to open. If anything, I'd like to see the trace viewer go the other direction—rather than generate a file with the data but still require 'go tool trace' to be running to serve js and assets, I think go tool trace should spit out standalone output.
I plan to add a -trace flag to cmd/go for 1.8, and in that context, a standalone file is even more important for usability.
The bitrot vs the upstream trace viewer code is unfortunate and should be fixed. That's just something we have to maintain.

But maybe I misunderstand the issue.

Indeed, it'd be great to have a different mode for go tool trace that just spits out a data file to load into trace viewer out of band; maybe go tool trace && curl .../jsontrace would suffice fro now, but something like a go tool trace -out flag would be a bit better.  I did consider opening a separate issue about the higher level usage pattern concern.  This issue is more towards "if you're going to do these sorts of things, here's a more maintainable way to do X" (gerrit submission coming Soon ™).

We could have go tool trace launch a browser that opens a file written to a temporary location, and go tool trace -out <path> just write the file. Then at least we'd only have a single trace generation code path.
In case it's helpful, here's the crud I hacked together when I was last working on this (unstable url): https://github.com/josharian/go/commit/a5a9f7595338afbfd5f814956b17dc60e0bc586e. I'd love to see it done better.
I look forward to the gerrit CL. Just advance warning, we're in a code freeze, so nothing will go into the tree until it opens for 1.8 (in a few weeks, I think).

Okay got the gerrit cl submitted: https://go-review.googlesource.com/#/c/24916/ ; this is exciting as it's my first rodeo with a gerrit instance, looking forward to learning how this thing works :-)

I can't tell from the discussion here what the actual plan is. Sounds like it is not CL 24916. Leaving for Go 1.9.


2nd Release (with corrections)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

100 of 100 (100.0%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+8.6%) to 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
8.6%

Covered Lines:
363

Relevant Lines:
363

💛  - Coveralls


[Discussion] Minimum System Requirements

We never specified any minimum system requirements, but there are implicit requirements. Besides ZSH being the biggest part of this, I didn't want to constrain it to ZSH only.

functions/colors.zsh need at least ZSH 5.1
Conditionals like [[ -v "VARIABLE" ]] (found here) to test if a variable is declared need at least ZSH 5.3. Workaround is to use our own defined from functions/utilities.zsh. I we decide to go with ZSH 5.3, we could deprecate our defined function.

I am sure there are others. I just wanted to collect my findings so we could set up a wiki page. Also, it is important to know what ZSH versions we should test.

@bhilburn Any thoughts on this? Would be nice to know what the minimum is as it affects not only coding, but also testing

Yup, I think this is a great idea. We should for sure do this for v0.7.0.
@onaforeignshore - You have a great point re: testing. Let's settle on our minimum reqs, here, and then make sure we are testing against that (as well as the latest).
So, generally, I like using Ubuntu 16.04 LTS as a good benchmark for minimum requirements, which ships ZSH 5.1.1 by default (see here) - so I think we have to keep our own defined, for now. Once 18.04 LTS matures a bit and starts to displace 16.04, we can chat about bumping it up.
What else should we cover? Also, it would be good to test for minimum requirements at init and issue an error if they aren't present.

Too late to keep 5.1. At least for the battery segment.. To keep that, we should rework that condition to use our defined function.
Other minimum requirements we should document are git, mercurial, svn.. In other words: we should look at every segment and document the minimum version of the used programs, especially segments that make heavy use of other programs like VCS- , battery- and other segments.

At least for the [[ -v from the battery segment, is there anything wrong with using (( ${+POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD} )) instead of [[ -v POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD ]] ?

This is what appears to work for me:
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index c1ea754..8b2a217 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -498,7 +498,7 @@ prompt_battery() {
     fi
   fi
   # return if POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD is set and the battery percentage is greater or equal
-  if [[ -v "POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD" && "${bat_percent}" -ge $POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD ]]; then
+  if (( ${+POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD} )) && [[ "${bat_percent}" -ge $POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD ]]; then
     return
   fi

Closing this, cause we now have that documented in the wiki.


Move imports in caldav component

Breaking Change:

Description:
Moved import from function to top-level as requested in #27284
Related issue (if applicable): #27284
Pull request with documentation for home-assistant.io (if applicable): n/a
Example entry for configuration.yaml (if applicable): n/a
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.

Tests ran through fine locally without any modification (py37 tested only).


Remaining work for F# 4.0

We are at the tail end of the Visual F# 4.0 development cycle, but there is still work to be done.  Below, I've shared the remaining test/lockdown items that need to be completed as we approach the finish line.
Some of this needs to be done using internal tools or resources, but much of it would benefit from help by the community.  I've tried to make it clear where we would love help.
As this work gets done, I'll try to keep the check boxes up to date so we can see progress :-)

[x] Finish up remaining small features

Complete, final feature work has been merged

[ ] Bug fixing

Bug fixes and low-risk performance improvements will continue to be welcome until the very end
There are still up for grabs issues available!
Action:

[ ] Fix bugs: everybody

[ ] Focused test pass at downlevel F# targeting

We have historically found downlevel F# targeting to be a high-risk scenario:

Using vCurrent compiler to interact with vPrevious runtime

Consuming libraries built with F# 3.1- from F# 4.0
Using F# 4.0 to create libraries targeting F# 3.1-

Using vPrevious compiler to consume output of vCurrent compiler

Using F# 3.1- to reference libraries built in F# 4.0

Lots of runtime and compiler changes for 4.0 => particularly high risk
Action:

[ ] Test your libraries and apps in cross-targeting situations: everybody
[ ] Coverage via test automation: @latkin

[ ] Fix up internal IDE tests

We have decent IDE scenario tests that are still closed-source
They have bit-rotted somewhat during F# 4.0 development
Action:

[ ] Get the test up and running again: @latkin
[ ] Add any appropriate new tests: @latkin

[ ] Final all-up test pass

Run-through of all test automation on top OSes: Win7, Win8.1, Win10
Spot check of various key end-to-end scenarios

Project upgrade/round-trip
Express SKUs
Type provider dialog

Action:

[ ] Test automation on supported OSes: @latkin
[ ] Trying out end-to-end scenario: everybody

[ ] Check-offs for internal release criteria

Lots of Microsoft-internal tools and release criteria that need to be tracked and handled

Localization
Security
Accessibility
etc

Action:

[ ] Track these: @KevinRansom
[ ] Follow up with fixes/mitigations: @KevinRansom

Nice writeup, Lincoln :+1: :smile:.
Definitely looking forward to wrapping up the first release of F# 4!


298 fix iframe errors for h1 and role main

Resolves https://github.com/bbc/bbc-a11y/issues/298
Summary
Removes requirement for iframes to have exactly one main heading and exactly one main landmark
Details
Adds topFrameOnly: true to exactlyOneMainHeading.js and exactlyOneMainLandmark.js to test configuration so that these tests will not run in iframes.
Fixes tests in iframeSpec.js that always pass because of incorrect async setup with use of promises. The fix uses async/await. Uses 'Principles: Anchors must have hrefs'  to test failures in iframes. Fixes the warnings tests in tests contents of iframes test by correcting test.only config to 'Structure: Headings: Headings must be in ascending order' it was missing Structure:  at the beginning. Adds tests to ensure no errors are returned when iframe does not have a main heading or landmark
Motivation and Context
In BBC World Service the bbc-a11y tool fails for media embeds because they are contained within an iframe and they don't contain h1 elements or elements with a landmark.
How Has This Been Tested?
Tests were fixed and more assertions added to no errors are returned when iframe does not have a main heading or landmark.
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] I've added tests for my code
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Thanks for looking at this @jroebu14 It sounds great though I'm probably not best placed to review the code. Perhaps @sbeaumontweb and/or @andymsuk might be able to take a peek?

Seems OK in terms of what it is aiming to do relative to the guidelines. Like Catharine, I'm not best to review the code. Also, @micmath is across this now, though I'm not sure if he is working this week.

I think lets merge this @jroebu14 if no one else wants to review. You and Andy have taken a look...

@greenc05 I'm dedicating time to this on Monday and Tuesday next week if it can wait until then for me to check over, merge and deploy.


About page improvements

Use article element for wrapping the content
Use PageHeader component instead of H1 element
Limit the width of the content on desktop view ~80 columns
Decrease the font-size of the paragraphs to 1rem

Text is not taking up the whole width on smaller screens, it only need to be limited on large screens
Reference link as to why https://baymard.com/blog/line-length-readability

Fixed in #63


Add OSMLoader

Loads a .pbf file with OSM data.

Add additional OSM Loader based on Overpass API (osmnx, OSMPythonTools)


Add flag to ignore dependencies on delete command

It would be nice to add a test for StackPlan.delete


Step by Step of how to use it with WinForm.

Example to references via WinForm project

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

ID: 09e77fe7-6970-8c3b-09f9-47986e2010c2
Version Independent ID: 25715011-c3c8-ce15-a1fc-db2bd62a58cf
Content: Getting started with the Windows UI library - Windows UWP applications
Content Source: winrt-related-src/toolkits/winui/getting-started.md
Product: uwp
GitHub Login: @mijacobs
Microsoft Alias: mijacobs

/cc @marb2000

@marb2000 - can you let me know if you resolved this issue?

Closing due to age of original issue and evolution of WinUI and supporting docs. Please re-open if issue persists.


Request to support Parquet format

Redshift just supported to copy using parquet format, which might be much faster than csv.
https://aws.amazon.com/about-aws/whats-new/2018/06/amazon-redshift-can-now-copy-from-parquet-and-orc-file-formats/

@iShiBin  please check this thread

+1

+1


One or more errors occurred. (Unable to load shared library 'libwkhtmltox' or one of its dependencies

Currently, I am using a Linux container, and I encountered the following error: "One or more errors occurred. (Unable to load shared library 'libwkhtmltox' or one of its dependencies)"
I have included the stack trace for further analysis.
System.DllNotFoundException: Unable to load shared library 'libwkhtmltox' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/app/runtimes/linux-arm64/native/libwkhtmltox.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.8/libwkhtmltox.so: cannot open shared object file: No such file or directory
/app/libwkhtmltox.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-arm64/native/liblibwkhtmltox.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.8/liblibwkhtmltox.so: cannot open shared object file: No such file or directory
/app/liblibwkhtmltox.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-arm64/native/libwkhtmltox: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.8/libwkhtmltox: cannot open shared object file: No such file or directory
/app/libwkhtmltox: cannot open shared object file: No such file or directory
/app/runtimes/linux-arm64/native/liblibwkhtmltox: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.8/liblibwkhtmltox: cannot open shared object file: No such file or directory
/app/liblibwkhtmltox: cannot open shared object file: No such file or directory
at DinkToPdf.WkHtmlToXBindings.wkhtmltopdf_init(Int32 useGraphics)
at DinkToPdf.PdfTools.Load()
at DinkToPdf.BasicConverter.Convert(IDocument document)
at DinkToPdf.SynchronizedConverter.<>n__0(IDocument document)
at DinkToPdf.SynchronizedConverter.<>c__DisplayClass5_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
Here is the code from my Dockerfile, along with the various packages I have tried in my attempts to resolve the issue.
FROM mcr.microsoft.com/dotnet/aspnet:7.0.8-bullseye-slim-arm64v8 AS base
RUN apt-get update
RUN apt-get install -y --allow-unauthenticated libgdiplus
RUN apt-get install xvfb libfontconfig wkhtmltopdf libc6-dev openssl libssl-dev -y
RUN apt-get install libxrender1 libfontconfig1 libxext-dev -y
WORKDIR /app
EXPOSE 80
# copy csproj and restore as distinct layers
FROM mcr.microsoft.com/dotnet/sdk:7.0.305-bullseye-slim-arm64v8 AS build
WORKDIR /src
COPY *.sln .
COPY ["PdfApp/PdfApp.csproj", "PdfApp/"]
RUN wget -P /src https://github.com/rdvojmoc/DinkToPdf/raw/master/v0.12.4/64%20bit/libwkhtmltox.dll
RUN wget -P /src https://github.com/rdvojmoc/DinkToPdf/raw/master/v0.12.4/64%20bit/libwkhtmltox.dylib
RUN wget -P /src https://github.com/rdvojmoc/DinkToPdf/raw/master/v0.12.4/64%20bit/libwkhtmltox.so
RUN dotnet restore "PdfApp/PdfApp.csproj"
# copy and publish app and libraries
COPY . .
WORKDIR "/src/PdfApp"
RUN dotnet build "PdfApp.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "PdfApp.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "PdfApp.dll"]

The application functions properly when hosted in IIS, but encounters issues when running within a linux container.
Below DLL are present in the root directory.
libwkhtmltox.dll
libwkhtmltox.dylib
libwkhtmltox.so

Did you find a solution to this, I'm having exactly the same issue on linux

@novocodev The issue lay with my previous docker image, where I was using Debian. However, after switching to Ubuntu, the problem was resolved, and the new configuration works seamlessly. Below is my Docker file; I hope it proves useful to you. Also please make sure you have the libwkhtmltox.dll, libwkhtmltox.dylib and libwkhtmltox.so in your root directory.
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus
ENV ASPNETCORE_ENVIRONMENT Production
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY *.sln .
COPY ["PdfApp/PdfApp.csproj", "PdfApp/"]
RUN dotnet restore "PdfApp/PdfApp.csproj"
# copy and publish app and libraries
COPY . .
WORKDIR "/src/PdfApp"
RUN dotnet build "PdfApp.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "PdfApp.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "PdfApp.dll"]

I have fixed this problem in .NET 8
Needed below lines of code to dockerfile between:
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
RUN apt-get update
RUN apt-get install -y --allow-unauthenticated libgdiplus
RUN apt-get install xvfb libfontconfig wkhtmltopdf libc6-dev openssl libssl-dev -y
RUN apt-get install libxrender1 libfontconfig1 libxext-dev -y
USER app
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
And need to have the libwkhtmltox.dll, libwkhtmltox.dylib and libwkhtmltox.so in your root directory and additional links below in the .csproj file:

Always

Always

Always


Add flag for http method

Feature: -m http_method where http_method=GET|POST|PUT|PATCH
Relates to #4
A user would use this flag to force the requests to be a different http method other than GET

I put up a PR for to implement this flag, here: https://github.com/mattjegan/wtfuzz/pull/8

Thanks @dbradf , merged that PR in.


Update animation to include useNativeDriver Property

As per the latest react native versions using Animated.spring, Animated.timing should include useNativeDriver field to be true or false set,
Please add that to get rid of the warning created by react native,
backend.js:32 Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

As per the latest react native versions using Animated.spring, Animated.timing should include useNativeDriver field to be true or false set,
Please add that to get rid of the warning created by react native,
backend.js:32 Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

where should i put it ?


Missing REST API examples

Why are there no REST API examples for any of the articles in this section? Not everyone uses .NET in their backend, and it's really hard to follow along and implement these solutions without examples we can use.

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

ID: 3a24db2a-d155-3adc-b9a7-ebdbf8f227f3
Version Independent ID: 9c033161-a4ce-45e0-3da2-3ae8876680ce
Content: Use PlayReady and/or Widevine dynamic common encryption
Content Source: articles/media-services/previous/media-services-protect-with-playready-widevine.md
Service: media-services
GitHub Login: @Juliako
Microsoft Alias: juliako

@fariazz Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Hi,
We would like to let you know that Azure Media Services v2 is our “legacy” API now and we are not actively building new features or functionality on that path. All of our investments are focused on the v3 API which is an ARM based API and a more consistent and performant development model aligned with all other Azure services.  We strongly encourage you to migrate to Media Services v3 API to get access to all of our latest features and continued performance updates, especially if you are looking for .Net Core support (or languages other than .Net). We specifically released .NET Core and Standard SDK support on the new v3 API.  Please see the migration guidance for moving from Media Services v2 to v3.
Please let us know if there is a reason or missing features for why you would not be able to migrate to v3.
You can find the REST collection for v3 swagger: here https://docs.microsoft.com/en-us/azure/media-services/latest/media-rest-apis-with-postman. We are working on adding new samples. Read about protection in v3, here: https://docs.microsoft.com/en-us/azure/media-services/latest/content-protection-overview

#please-close


Fix 7.4 runtime issue where PHP 8.1 is loaded

This fixes an issue where, for some reason, PHP 8.1 modules are accidentally installed on the 7.4 runtime and thus enabling PHP 8.1 by default. By removing these again explicitly, we get 7.4 to run by default again.
Fixes https://github.com/laravel/sail/issues/442

Would like to know root reason that PHP 8.1 is suddenly being installed?

I have no idea really...

As said in #442, a more stable solution might be to rely on an LTS version of Ubuntu instead

It sounds like this is fixed by rebuilding - maybe something in the PPA?

Resubmit this again if I'm wrong.

@taylorotwell seems like this was resolved.

For reference: https://github.com/oerdnj/deb.sury.org/issues/1799


Animation not progressing properly.

Description
Animation is not working properly. it is progressing / animating only for the first time when 'Animation.timing' is wrapped inside map. in V-5 it used to work fine.
Steps to reproduce
import { Animated, Easing, } from "react-native";
import LottieView from "lottie-react-native";

const AnimatedLottieView = Animated.createAnimatedComponent(LottieView);
const progress = useRef(new Animated.Value(0));
const lottieReff = useRef<LottieView | null>(null);

Animated.sequence(
      wheelSequence.map((item, index) => {
           return Animated.timing(progress.current, {
                    toValue: item.Value,
                    duration: item.animationDuration,
                    useNativeDriver: true,
                    easing: Easing.linear,
            });
       })
).start(()=> { some function });

<AnimatedLottieView
      source={lottieFile}
      progress={progress.current}
      ref={lottieReff}
      style={{
        width: wr(1),
        height: hr(1),
        flex: 1,
        alignItems: "center",
        justifyContent: "center",
      }}
    />

Lottie React Native version
6.7.2
React Native version
0.73.1
Platforms
iOS
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Acknowledgements
Yes

I can not reproduce this based on the code given, please provide a reproducible


Support using roles instead of AWS use accounts

When authenticating to AWS services (EKS and ECR), we currently require AWS user accounts, with credentials generated and checked in. This isn't good practice - we should instead be using roles, and assuming them when needed.
In https://github.com/yuvipanda/hubploy/blob/master/hubploy/auth.py#L84, we set AWS_SHARED_CREDENTIALS_FILE to the path of the AWS user credentials for pushing images. This is good enough to help us do a docker pull or push.
In https://github.com/yuvipanda/hubploy/blob/master/hubploy/auth.py#L225, we do very much the same for EKS.
Instead, we should assume the appropriate role (for ECR, or EKS) for the duration of the operation, and drop those permissions afterwards. We can require the role names be passed in via hubploy.yaml - if you add an extra parameter to this function signature, that key can now be used in hubploy.yaml.
We should not remove current support we have for AWS user keys though, as many users depend on it.

Should #82 have closed this issue?

I think so yepp! Thank you @yuvipanda @cslocum @salvis2 for idea, implementation, and attention! :heart: :tada:


HTTPServer stops working on CircuitPython version >= 9.0

HTTPServer stops working on CircuitPython version >= 9.0
Around line 207 in server.py it is assumed that sock.setsockopt(socket_source.SOL_SOCKET, socket_source.SO_REUSEADDR, 1) would work as of CircuitPython version 9.0.  Unfortunately it doesn't and raises an OSError: [Errno 95] EOPNOTSUPP.
Perhaps better in the circuitpython implementations to just try to set SO_REUSEADDR and catch + ignore the error.

Which board? This is fixed in 9.0.1 for Pico W.

Duplicate of #90?

Indeed a duplicate of https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer/issues/90 .
And it was on 9.0.0  I'll upgrade to 9.0.1 and retry.


Styling

Dear TSE, hello! :wave:
Thank you for reviewing my project :grin:
Here's what I did in this milestone:

Used flex display mode for App, Display and ButtonPanel components;
Set the Calculator width to 700px;
Styled the Display component according to the suggestions;
Styled the ButtonPanel component according to the suggestions;
Styled the Button component according to the suggestions and more:

Added an effect when hovering and clicking the button.

Passed “color” and “wide” props to the Button component and styled according to the suggestions.

Alright @Torres-ssf , leave it to me, thank you again! 😁


mvt vectortile with multiPolygon not displayed

I want to dispaly some MVT vectortile ,but I found some polygon is not displayed like this.The white background color should be same as others.

I debug the source code and found that

ends does not match endss.  I think  endss.push(ends.slice(prevEndIndex, i)) has some problems ， when i=0 and prevEndIndex=0 , ends[0] has to be [] .
I modify endss.push(ends.slice(prevEndIndex, i)) to endss.push(ends.slice(prevEndIndex)),the background color is displayed correctly.

Is this a bug?

Can you share a live example that shows the issue?

Thanks for your reply.
There is an example: examples.
The background color of "10,164,-148" tile  should be red.

I try to add a function flips the linearRingIsClockwise in format/MVT. But a I encountered some new issue after that.
My data is like this:

But he shows like this

I think it may be a problem in MVT.js#L204 ~ L216 .
I may need a little more time to test and fix.

I try to add a funcrion flips the linearRingIsClockwise in format/MVT, but I encountered new problems:
I have two holes in the rectangle，like this

But aflter i fix linearRingIsClockwise check，it show like this：

I think it may be a problem in format/MVT.js#L204~#L216
I may need a little more time to test and fix.

Thanks for your investigation @songyumeng. Take your time. Would be great if you could fix the whole issue.
Maybe also take a look at https://github.com/mapbox/vector-tile-js/blob/a9a9102/lib/vectortilefeature.js#L129-L193, to compare how they convert tile geometries to GeoJSON.
For rendering tests, which we'd definitely need, I think it would be good if you could create GeoJSON from your test geometries, use  geojson-vt to convert them them to MVT, and render those in comparison to the original GeoJSON.


Can this work for Blazor .Net MAUI??

Hello Thanks for your great work.

Yes it does :)

Thanks for your fast response. Do you have a sample please?


Fix urlsplit

For this PR, I implemented parsing based on what was implemented in GURL class :) #12

Running the performance test gives 0.18sec for urlsplit and urljoin, which is expected 😄

Hey @lopuhin, thank you so much for the review. I have optimized the code as you have suggested. Can you take a look at it when you have time 😄


Typo in German translation

https://github.com/DSpace/dspace-angular/blob/ee7e8358e7e0fd0b69f7c2e308d539670a103026/src/assets/i18n/de.json5#L3453
"Beschreibeung" should be "Beschreibung"

Done 😉


Error "Feature 'implicitly typed local variables' is unavailable".

When I open a template that uses var, I get the error message mentioned in the title.
I found that this is necessary in the project's app.config:
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs;cshtml" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
        <providerOption name="CompilerVersion" value="v4.5" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
    </compilers>
  </system.codedom>
  <system.web>
    <compilation targetFramework="4.5">
      <assemblies>
        <add assembly="System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
    </compilation>
    <httpRuntime targetFramework="4.5" />
  </system.web>

Could you update the https://antaris.github.io/RazorEngine/IntellisenseAndResharper.html page to include this information?

I made two projects, one have the error, the other not.
In both case I didn't use app.config at all, Don't ask me why or how or what the hell, but it works in one, not the other. You can try this solution, where the use of var works: https://github.com/cyrilgandon/RazorEngineGenerator

any update on this? I have the same issue where the template doesn't compile. I cannot use 'var' as well as 'null propagating operator' (object?.value)

Closing in favor of https://github.com/Antaris/RazorEngine/issues/368


Widget for large data (X rows * Y columns) display?

Hi guys,
Anyone know of a widget or has perhaps made one for viewing large sets of data, for example 500 rows * 150 columns?
I have tried:

flx.GridLayout: Would be ideal as it seems to render large numbers of widgets quite quickley, but it has weird behavior when putting it inside a container and setting the children's maxsize=(w,h) and flex=0. Example:

from flexx import flx

class Test(flx.Widget):
    def init(self):
            with flx.HSplit():
                with flx.GridLayout(ncolumns=10):
                    for i in range(200):
                        flx.Button(text="T", maxsize=(25,25), flex=(0, 0))

test_app = flx.App(Test, title="TEST")
test_app.serve('')
flx.start()

produces this for me:

Rows represented by a flx.Hbox inside a flx.VBox: Very slow for large number of widget's in a single row.

Anyone have any solutions for this?
Thanks

For the 'hbox inside a vbox' option I reduce the number of widgets by concatenating  the displayed data values and  then display that as a  single pre-formatted html label. Just using extra widgets on the row for any  'action' buttons needed. It is far from an ideal solution but it does extend the viability of this approach to a somewhat larger data set.

@gwingnhbc
Thanks for the idea with the single formatted label, I never thought of that. Will try it.

Anything based on widgets will be hard to scale up due to the overhead that you get for each widget. I think it's feasible to implement a TableWidget that uses <table>, and should scale up really well. If you want to scale it even further, a more elaborate solution would be to use <canvas>, like PhosphorJS datagrid


check: pin flutter version

This approach uses direnv and fvm to setup the environment with the pinned version of the repo.
When setup correctly, direnv will turn on fvm's pinned flutter version whenever entering the zulip-flutter repository (directory).
The .envrc does the following:

Use fvm's flutter version if it's available.
Check that whether the flutter binary version matches what was pinned for the repo.
Let users know if there's a mismatch of version so that the user can take action.

Other notes:

Power users can:

use their checked out flutter sdk (either their own custom path, configured in .envrc, or the system default)
disable the check if they know what they're doing and want to use a custom flutter installation

TODOs:

[x] fix git commit styling
[ ] check whether this approach works with non-VSCode IDEs

Closes #15

Thanks for picking this up!
Since you're working on this, here's a couple of thoughts about our needs here which I think aren't yet explicit on the issue thread #15:

I'd really like the pinned version to apply when building or running the app — so flutter build, flutter run, and when hitting the "run" button or equivalent in an IDE — and not only when running tests.
Similarly, it's common to use flutter test directly (or a "run this test" button in an IDE) rather than tools/check, because that gives control over which specific tests to run. If that uses a different version of Flutter than tools/check does, that's likely to be super confusing when one way doesn't reproduce the same failures as the other way.
Accomplishing that may require some sort of setup step, which is OK (though I'll be interested in keeping that setup as clean as possible). The key is just that when someone clones the zulip-flutter repo and follows our setup instructions in the most straightforward way, they consistently get our pinned Flutter version across all the above ways of building or running our code.

It's pretty common for us to develop changes to contribute to Flutter upstream, and that's been quite valuable for us. That's currently an extremely low-friction thing to do: the flutter tool is already using your local Git clone of the Flutter repo, so you just start editing that — and committing, and using git reset to move to various branches, etc. — and the changes show up just as seamlessly as if you were making them in your zulip-flutter tree itself.
So I'd quite like to preserve that property, or close to it. Given the nature of pinning, we'll probably need to introduce a nonzero amount of friction — you're not really using a pinned version once you start making edits — but I'd like to keep that friction to the absolute minimum possible. For example, having to do something simple to disable pinning (so that you can make changes) would be fine.

@gnprice I've outlined a prototype that addresses your concerns, and updated the description of this PR.
Please take a look. This PR is still in discussion phase. I plan to clean it up as we iron out some of the details.
This does introduce 2 dependencies in the setup for most users. Power users can skip this setup and just not use the pinned version at their own risk of using a mismatched flutter version.

Thinking on this PR more, I think there's some value with testing the commit with the latest commit on flutter. Something like check-flutter-nightly job. This helps with continuously verifying that zulip is compatible with newer versions of flutter and would allow you to skip testing it and just upgrade to a new (tested) version.
However, I saw that this behaviour is not supported on GitHub actions: https://github.com/actions/runner/issues/2347 .
So I'm going to leave that check-flutter-nightly idea out for now.
I don't like that I'm introducing two tools at the same time, so it's not as clean as I'd like. But this seems like it would be most dummy-proof (hopefully) for most newcomers to the repository.

Very interesting, thanks!
I installed direnv and played around with it a bit, and it seems great — a very solid design. I'd be happy to start relying on it.
I also installed fvm, and… am less impressed. It scatters files across my homedir (~/.fvm_flutter/ for the program itself, ~/fvm/ for its data), which is not a good first sign. And the way it manages versions doesn't seem very coherent across upgrades:

You can pick a specific version in .fvmrc (or as an argument to fvm use), just as this draft does, and fvm will install that version.
This creates a Flutter tree in a location like ~/fvm/versions/18340ea16/, named after the specific version.
But then the recommended way to upgrade Flutter versions is to run flutter upgrade.
And when I do that, I now have a Flutter tree at a path ~/fvm/versions/18340ea16/, which fvm sees as the version named 18340ea16, but which is not in fact at commit 18340ea16 — it's at the newer, upgraded commit 233dd97f1e:

$ fvm spawn 18340ea16 --version
Spawning version "18340ea16"...
Flutter 3.21.0-13.0.pre.14 • channel master • https://github.com/flutter/flutter.git
Framework • revision 233dd97f1e (2 hours ago) • 2024-03-22 17:11:25 -0400
Engine • revision 52142e4287
Tools • Dart 3.4.0 (build 3.4.0-261.0.dev) • DevTools 2.34.0-dev.12

It's likely we could find ways to hack around that to some degree in order to get reasonable behavior. Effectively that's part of what the check_flutter_version in this draft's .envrc is doing. But at that point I think there's very little work left that fvm is actually successfully doing for us.
So I'd be interested in seeing a version of this that uses direnv, and uses fvm for partial inspiration, but then handles for ourselves the tasks we'd otherwise be trying to get fvm to do.

So I'd be interested in seeing a version of this that uses direnv, and uses fvm for partial inspiration, but then handles for ourselves the tasks we'd otherwise be trying to get fvm to do.

Specifically, this could look like:

There's a subdirectory with a name like .sdk/, inside the project root. It's a Git worktree of the Flutter repo — much like ~/fvm/versions/VERSION/ is.

Optionally this could save a bit of disk space, and download bandwidth, by using fancy Git features to have its .git/objects/ reuse the data in an existing Flutter clone, much as fvm has each ~/fvm/versions/VERSION/ reuse what's in ~/fvm/cache.git/. But this is actually a pretty minor optimization — the downloads in bin/cache/, of the Dart SDK and the Flutter engine and so on, are an order of magnitude bigger than the .git/ directory anyway, at around 1.4GB vs. 149MB. So might as well skip in a first version.

Then there's the version number we've pinned. Ideally this would come directly from pubspec.yaml or pubspec.lock, to keep the upgrade process simple; but it could also come from a separate file, like .fvmrc in this draft, if that simplifies implementation.
So we'd have a little script inside tools/ that updates .sdk/, or creates it if necessary, to match the pinned version. This is the job fvm use does on first creation, but it would also handle switching versions.

Also, it seems like direnv unfortunately doesn't work with IntelliJ/Android Studio. So.. :/ Maybe I'll need to rethink this approach.

It should be a matter of telling the IDE what path to find Flutter at, right? Like this draft does for VS Code in .vscode/settings.json:
  "dart.flutterSdkPaths": [".fvm/flutter_sdk"],

I expect there's a corresponding setting we can set for IntelliJ / Android Studio. (It won't use direnv, but VS Code doesn't appear to be doing so either.)

Agree with the sentiment around fvm. I found myself working around unexpected behaviour — what felt like buggy behaviour.
I'm testing an alternative approach using git submodules. I initially avoided it because it seemed a bit archaic with fvm around, but based your comments, I think it's worth exploring that option.
Testing that out via #579 . If it looks good, I may replace this PR with that approach.

Cool, sounds good.
I'm a little wary of Git submodules, because my experience has been that Git's UX with them can be annoying. But fundamentally they do implement pretty much exactly the design I sketched in https://github.com/zulip/zulip-flutter/pull/577#issuecomment-2016071452 , without requiring us to write much or any code for it. So that sounds like a good experiment to try.
And if we like the design but decide the Git submodules UX is annoying, we can always try replacing it later with our own implementation.

I'm a little wary of Git submodules, because my experience has been that Git's UX with them can be annoying.
Yes, same, I had somewhat bad memories from prior usage though it could've been minor annoyances in the grander scheme of things.

But fundamentally they do implement pretty much exactly the design I sketched in #577 (comment) , without requiring us to write much or any code for it. So that sounds like a good experiment to try.

Yes it does look pretty much like that. #579 is working. I'll take a stab at what README instructions could look like.

And if we like the design but decide the Git submodules UX is annoying, we can always try replacing it later with our own implementation.

+1

I expect there's a corresponding setting we can set for IntelliJ / Android Studio. (It won't use direnv, but VS Code doesn't appear to be doing so either.)

Yep, it does have a corresponding setting ✅

#579 is shaping up to look promising.
I've added a pros/cons in the PR's description. If that looks good, perhaps I'll move forward with that approach/PR instead.

Yep, it does have a corresponding setting ✅
I didn't find way to easily set this up programmatically via the .idea files, but it could be mentioned via the README instructions.

Cool. Yeah, that screen looks familiar — I think I've had to set something there whenever first setting up Flutter and Android Studio on a given machine. It corresponds to a step in Flutter's own setup instructions:

So we'll definitely need to write some clear instructions for it, but it shouldn't be too much of a burden.

I also spent some time fiddling to try to figure out what file in IntelliJ's config controls that setting. IntelliJ's config setup is kind of a mess, but what I expected from past experience was:

I change the setting.
I look for config files that have a recent last-modified timestamp, and/or files that contain something looking like the value I just set.
One of those is clearly the setting.
If we're lucky, the file it's in consists only of stuff that's reasonable to share in version control. Add that file to version control.

For more background, see commit 62a0d7c4da2113fa9882f4c5330b546cba8f633e.
Instead, I couldn't find the setting anywhere! Even rg -uuu vendor/flutter .idea/ didn't find anything relevant — all the matches were more-specific paths that seem to be used for more-specific purposes.
The closest match I found was this, over in the config that lives in a global place in my homedir:
$ grep -B5 -A3 vendor/flutter ~/.config/Google/AndroidStudio2023.1/options/other.xml
  "keyToStringList": {
    "DART_SDK_KNOWN_PATHS": [
      "/home/greg/n/flutter/flutter/bin/cache/dart-sdk"
    ],
    "FLUTTER_SDK_KNOWN_PATHS": [
      "/home/greg/z/flutterz/vendor/flutter",
      "/home/greg/n/flutter/flutter",
      "/home/greg"
    ],

But that's a list of several possible values; it looks like it might be the list of values it'll suggest in that very dropdown.
Anyway :shrug: I think we'll be OK with the manual setup step.

#579 supersedes this PR.
I've incorporated the code review comments in this PR into #579 .


Added example for LIFO/FILO

@ezimuel if you add this clarification I'll be appeased.

@TomHAnderson can you add some explanations in the docs about the example, thanks!

@ezimuel This PR is ready for review.

This repository has been closed and moved to laminas/laminas-permissions-acl; a new issue has been opened at https://github.com/laminas/laminas-permissions-acl/issues/1.

This repository has been moved to laminas/laminas-permissions-acl. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:

Squash all commits in your branch (git rebase -i origin/{branch})
Make a note of all changed files (`git diff --name-only origin/{branch}...HEAD
Run the laminas/laminas-migration tool on the code.
Clone laminas/laminas-permissions-acl to another directory.
Copy the files from the second bullet point to the clone of laminas/laminas-permissions-acl.
In your clone of laminas/laminas-permissions-acl, commit the files, push to your fork, and open the new PR.
We will be providing tooling via laminas/laminas-migration soon to help  automate the process.


Explanation for needing to pass children property

This isn't needed. This is a react-router concern.


Base class import does not work

Type: Bug
In version 1.88, the automatic import of base classes from MUI no longer works.
For example, the base class BOX or SKELETON is no longer suggested in Intellisense.
The problem can be solved by downgrading to version 1.87. I cannot say whether this has anything to do with an extension.
VS Code version: Code 1.87.2 (Universal) (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:21:31.043Z)
OS version: Darwin arm64 23.4.0
Modes:

System Info

Item
Value

CPUs
Apple M3 Max (16 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
7, 4, 3

Memory (System)
64.00GB (2.92GB free)

Process Argv
--crash-reporter-id dd747b07-6cb5-4fa2-b35a-3ad2c04fcb15

Screen Reader
no

VM
0%

Extensions (8)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.4.4

gitlens
eam
14.9.0

prettier-vscode
esb
10.4.0

vscode-docker
ms-
1.29.0

csdevkit
ms-
1.4.29

csharp
ms-
2.23.15

vscode-dotnet-runtime
ms-
2.0.3

vscodeintellicode-csharp
ms-
2.0.25

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
8082a590:30971561
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
gee8j676:31009558
dsvsc021:30996838
gd77d436:30999572

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

I have the latest version of VSCode and I have the same issue. Auto-imports do not work with neither MUI, nor React-bootstrap. Also I experience issues importing from react-router-dom (however after I manually import at least something from the library, auto-imports and import suggestions begin to work for the react-router-dom)

I have the latest version of VSCode and I have the same issue. Auto-imports do not work with neither MUI, nor React-bootstrap. Also I experience issues importing from react-router-dom (however after I manually import at least something from the library, auto-imports and import suggestions begin to work for the react-router-dom)

This does not work for me with MUI. For example, I imported the button manually but the skeleton was still not suggested.

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

I am also facing this issue in the latest update with vs Code. For example when you try importing the Link component in next js it doesn't suggest it neither the image component

Duplicate of https://github.com/microsoft/TypeScript/issues/58113


Upload object demo

(This PR depends on #36, at which point it will only be a single commit.)

Other than the command string, :shipit:

Fixed up - will merge when green.


Added Kotlin Course in Bengali

What does this PR do?
Add resource(s)
For resources
Description
Added a Kotlin in Depth tutorial in Bengali
Why is this valuable (or not)?
It is valuable because in the tutor has gone through in depth Kotlin Concepts with hands on projects
How do we know it's really free?
Because it is available on YouTube
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Changes committed


chore(master): release 1.1.32

:robot: I have created a release beep boop
1.1.32 (2023-04-24)
Miscellaneous

deps: lock file maintenance (0e7da5b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/keywind/releases/tag/v1.1.32 :sunflower:


Can't Pass dict Objects as Execution Inputs

When I try to pass a dict object as an execution input, I receive a ValueError.
Notes to reproduce:
Run this example notebook but add a dict input to the workflow with the following cells:
from stepfunctions.inputs import ExecutionInput
execution_input = ExecutionInput(schema={
'InputDict': dict})`
InputDict = {"Key":"Value"}
type(InputDict)
basic_workflow_execution = basic_workflow.execute(
inputs={"InputDict": InputDict})
When I run the execute method I receive the following error:

ValueError                                Traceback (most recent call last)
 in
1 basic_workflow_execution = basic_workflow.execute(
----> 2     inputs={"InputDict": InputDict})
~/anaconda3/envs/python3/lib/python3.6/site-packages/stepfunctions/workflow/stepfunctions.py in execute(self, name, inputs)
285             validation_result = self.workflow_input.validate(inputs)
286             if validation_result.valid is False:
--> 287                 raise ValueError("Expected run input with the schema: {}".format(self.workflow_input.get_schema_as_json()))
288
289         if self.state_machine_arn is None:
ValueError: Expected run input with the schema: {"InputDict": "dict"}

I tried passing in the same dictionairy to the created Step Functions directly through the console and it works:

Hi @SJWilkinson
What version of stepfunctions are you using? Are you still experiencing the issue?
I tested out a simple example with a Pass state, using the same execution input format, but did not get the same exception. The following example ran successfully (v2.2.0):
from stepfunctions.inputs import ExecutionInput, StepInput
execution_input = ExecutionInput()

execution_input = ExecutionInput(schema={
'InputDict': dict})

pass_state = Pass(
    'PassState',
    parameters={
        'ParamA': execution_input['InputDict']
})

basic_workflow = Workflow(
    name="PassStateMachineExample",
    definition=pass_state,
    role=workflow_execution_role
)
basic_workflow.create()

input_dict = {"Key":"Value"}
basic_workflow_execution = basic_workflow.execute(inputs={"InputDict": input_dict})

Confirmed that the above example also works in following versions, which were available at the time the issue was opened:

v<IP_ADDRESS>
v<IP_ADDRESS>
v<IP_ADDRESS>

Closing this issue as it is possible to pass a dict as ExecutionInput
Please reopen if the issue reoccurs


Any level DB high availability partitioned cluster available?

Hello Level DB masters,
Any level DB high availability partitioned cluster available?
thank in advance,
Lin

Forum is at https://groups.google.com/forum/#!forum/leveldb


Cheaper and faster prehash generation mechanism

I am not sure if you have much interest in this, but I found that this method of creating id is no less reliable and faster as well as cheaper.
I must admit I have not done exhaustive testing, but if you find this interesting I am happy to do a good bit more validation. In my limited testing it has been reliable.
Ran a few comparisons just so there's something I can show. The only difference is this changeset.
These are my two test scripts...
#!/bin/sh
echo "*** Run 1000 iterations new method ***"
for i in `seq 0 999`; do
    /home/ubuntu/bin/c.new "redis-h1get.c -ggdb -Wall -I/usr/include/hiredis `pkg-config --libs --cflags hiredis`" h1 tags > /dev/null
done
echo "*** Done running new method ***"

#!/bin/sh
echo "*** Run 1000 iterations original method ***"
for i in `seq 0 999`; do
    /home/ubuntu/bin/c "redis-h1get.c -ggdb -Wall -I/usr/include/hiredis `pkg-config --libs --cflags hiredis`" h1 tags > /dev/null
done
echo "*** Done original method ***"

*** Run 1000 iterations new method ***
*** Done running new method ***
3.56user 6.32system 0:38.73elapsed 25%CPU (0avgtext+0avgdata 3280maxresident)k
0inputs+16000outputs (0major+2885064minor)pagefaults 0swaps

*** Run 1000 iterations new method ***
*** Done running new method ***
3.48user 6.51system 0:38.55elapsed 25%CPU (0avgtext+0avgdata 3304maxresident)k
0inputs+16000outputs (0major+2890112minor)pagefaults 0swaps

*** Run 1000 iterations original method ***
*** Done original method ***
17.10user 19.30system 1:02.29elapsed 58%CPU (0avgtext+0avgdata 8440maxresident)k
0inputs+112000outputs (0major+3196581minor)pagefaults 0swaps

*** Run 1000 iterations original method ***
*** Done original method ***
16.76user 20.06system 1:01.91elapsed 59%CPU (0avgtext+0avgdata 8420maxresident)k
0inputs+112000outputs (0major+3196095minor)pagefaults 0swaps

Thanks!

Nice! Yeah, that method looks a lot faster.
It seems that all tests are passing, so I don't see a reason not to accept this. I'll take a deeper look at the code itself tomorrow.
Nice work!

Sounds good. I am sure one can find that this method could be improved. Let me know if you find any issues you feel are non-starters, and I can see about addressing them as time allows.
And, thanks again!

@ryanmjacobs, I was wondering if we should just close this, or if you have interest still, I am happy to fix it, to make sure it could be merged in without any conflicts.

Hi @szaydel, I'm okay with merging this as long as I'm 100% certain that it doesn't break anything.
In terms of efficiency, this bumps it down from ~17 ms to ~4 ms. Generally, if a UI element performs in less than 100 ms, nobody will notice anyways. I'm okay with sacrificing 15 ms for correctness.
That being said...
My primary concern is that this doesn't run the file through cpp (the C Preprocessor). For example, when you compile this code...
int main(void) {
#ifdef __unix__
  return 1;
#endif

  return 0;
}

c should re-compile the code if __unix__ happens to be redefined. But without running through the C preprocessor, the hash will never change (because the source code technically never changed).

Fair point about the preprocessor. I guess I am not 100% certain that this does not break anything, at least in my testing it did not. Why don't we close this out for now, and I will play more with this to make sure I am very confident first, and then we can open this conversation up again.


linux-3: Device healthcheck failed: developer_mode: developer mode is off;

Linux-3 quarantined due to device not being in dev mode:
https://chromium-swarm.appspot.com/bot?id=flutter-devicelab-linux-3

\cc @keyonghan is this something the auto-recovery should already fix?

A manual device reboot brings the bot back to pass the health check.
I will take a look how device recovery was conducted on_after_task on this bot.

@keyonghan can we close this one?

The bot should have been restarted as expected. Issue has been fixed here, closing.


[EN] Feedback for: /web/showcase/case-study/lightsaber?hl=en

ok can you guys add face recognition to the start wars

and special tasks

I'll pass it on to the team.

Thank You So Much because I love the Star Wars thing on Google chrome


fix(modal): add missing hidden in template

Short description of what this resolves:
Passing the showBackdrop option in ModalController didn't seem to work. Further inspection on similar components like PopoverCmp show that the hidden property was missing in the Modal template.
Changes proposed in this pull request:
Fill in the missing hidden property.

Ionic Version: 3.7.1
Fixes: #12866

Hello and thank you for contributing to Ionic! We have been working on porting all of the Ionic components to web components and have recently updated master to reflect this. This significant change has caused this pull request to break. While we really appreciate the time and effort you put into creating this, we are not able to merge it because of the newly introduced conflicts. We are extremely sorry about this. We will not be merging any more features in to v3. If this is a feature and you have the time, please resubmit this PR against the master branch. If this is a critical security issue in v3, we would greatly appreciate it if you would resubmit the PR against the new v3 branch. Thanks so much for your time!


Change Page's Publish Directory

Hello. I have built my blog and it works great. There is one thing i want to do but i don't know how. My english is limited to search the issue. I could make this in hugo with a single permalinks parameter.
My blog posts publishing under /blog directory and when i called a page, it shows like https://url/blog/sample-page so i would like to change this like https://url/sample-page.
How do i do this? Any help would be appreciated.

Hi, it's slightly different with nextjs since it uses file-based routing - the posts in /pages/blog/[slug] are routed to https://url/blog/slug. If you want to change it posts instead of blog, that would be relatively simple since you can move [slug].js to posts folder instead of blog but it's more tricky for it to be at the root and would need quite a bit of modification to make it work.
Alternatively, if you are porting from hugo, you can add a redirect from url/sample-page to url/blog/sample-page. The documentation covers it in detail - https://nextjs.org/docs/api-reference/next.config.js/redirects

The problem is that Google already indexed my old blog posts so when the visitor try to open my new site it will show 404 error. That's why i wanted to move posts in root pages directory. I will search another solution on next.js community. I hope they have a solution for this.
I also recommend you to make this modifications on your template since people who decided shifting to your theme would definitely search the same solution. Serving pages under /blog directory is not much practical.

Hey @koraylinux I think it's pretty straightforward to do what you want:

from https://nextjs.org/docs/routing/introduction#dynamic-route-segments
At least for me, it just works out-of-the-box by moving the [slug].js file from pages/posts/[slug].js to pages/[slug].js... other than updating some of the links in the rest of the code.

That's what redirects do - it redirects users from the original link to the new link without 404 errors. My old blog uses the url/year/month/day/slug format and I re-directed them to url/blog/slug page for the new one so there are no such errors.


Bug/#184 computation switching

Problem: The consortium form’s covariate state becomes irreparably contorted after computation change (see #184).
Solution: Migrate all consortium form state to rely on redux-form. (Bonus: keep consortium form state after user leaves form.)
Testing:

Boot client
Create a consortium with the single-shot computation selected
Save the consortium
Edit the consortium to use the multi-shot computation
Run a computation

Rebased this on master and now I see this when attempting to add a metadata file:

master itself is good. Might have something to do with how covariates are saved?

Ah, shucks. Looks like a project component was relying on ComputationFieldCovariates.typeMap, which this PR dropped. Re-adding it.

Looking good now:


chore: new cast builtin syntax

Zig 0.11.0-dev.3853 has changed @***Cast syntax. The return value type could be inferred now. And the destination type parameter is removed from all cast builtins.
Doc: https://ziglang.org/documentation/master/#alignCast

Thanks!


Add cell population scatter plots

During a comparison of the features in cell atlas and cellxgene_VIP, one was absent: "Cell population view"

i.e. for a given cell population, compare gene expression for any 2 distinct condition groups.
To begin with, it would be good to have a new static plot feature in the VIP panel to replicate this. Later on, we can look into adding additional functionality, such as clicking an individual cell to bring up detailed information.

The file that contains the DE scatterplot Seurat data appears to be tcells_combined_de_ggplots_table.rds from tracing through the code. Will try to get a copy of this for you to look through.

Now that you have a basic scatterplot function, try the following approach:

create a new feature branch from the cellxgene_VIP fork iii-cell-atlas/cellxgene_VIP: Enables cellxgene to generate violin, stacked violin, stacked bar, heatmap, volcano, embedding, dot, track, density, 2D density, sankey and dual-gene plot in high-resolution SVG/PNG format. It also performs differential gene expression analysis and provides a Command Line Interface (CLI) for advanced users to perform analysis using python and R. (github.com)
(I've just added one called feature-cell-pop-view)

Add your CellPopView function to VIPInterface.py

Have a look at the exact format of the outputs for the other plotting functions (such as SGV, PGV, etc). There is a common pattern: They all take in an object called "data", which is fed through a function createData; and they return iostreamFig(fig). Are you able to reformat your inputs and outputs to ensure they follow this same pattern?

Hint: Remember the trace-through in the New user guide for the Violin Plots: in the SGVPlot js function there was a json data object being created (line 3593: var D {...}). This is the format that you can expect for the "data" input to your function. Are you able to mangle together something similar?


fix(fetch): use application/json for array body

It may fix #28

Thanks! Released as<EMAIL_ADDRESS>


Register custom fields destroy defaults fields

Description
When i trying to register new custom field, the defaults are destroyed ( input etc ... )
Minimal Reproduction

new empty project
create new component , configure to extend FieldType

i registered my component on app.module with :
FormlyModule.forRoot({       types: [         { name: 'wysiwyg', component: WysiwygComponent }       ],     })
My component is ok but all other are destroyed, error message :

[Formly Error] There is no type by the name of "input"

Your Environment

Angular version: 8.2.14
Formly version: 5.5.15

resolve by update my version of package ( nmp i )


Timer frequency

Right now the timer frequency is linked to the frequency used by ATAT. However, esp-at-hal needs its own timer instance, while hardware timers can generally not be cloned. This means that there are two timers needed: One for atat, and one for esp-at-nal.
If that's the case, is there any reason to tie the timer frequency of esp-at-nal to the frequency used by the atat timer? Right now the two timers cannot have different frequencies.

Oops, I just realized (1 min after posting) that I was wrong, the timer frequencies are parametrized and can differ... Sorry for the noise.


Poll daemon killing result

Previously we use a sleep(10) to poll the daemon killing result,
which is a bit inefficient. Now we use polling.

@bot-gradle test and merge

OK, I've already triggered a build for you.

This is what you get currently as output:
https://builds.gradle.org/buildConfiguration/Gradle_Master_Check_PerformanceTestTestLinuxbucket31/44025992?buildTab=log&focusLine=2&linesState=94
  Starting: /home/tcagent1/agent/temp/agentTmp/custom_script550198873980432343
  in directory: /home/tcagent1/agent/work/e67123fb5b9af0ac
                total        used        free      shared  buff/cache   available
  Mem:          64108        3733       23335        2897       37038       56888
  Swap:         16383           7       16376
  1537420
  Attempt 0: failed to kill daemons.
  All daemons are killed, exit.
                total        used        free      shared  buff/cache   available
  Mem:          64108        1352       25717        2897       37039       59270
  Swap:         16383           7       16376
  Process exited with code 0

It could be better, though I think it is fine.


Fix: Use QueryOptions.GetSerialConsistencyLevel() as default

I've included unit tests for the frames generated for BATCH, QUERY and EXECUTE requests.

I've addressed the issues and included a new test using simulacron based on your test.


Closes: #1 Updated validations.py python script

Closes: #1
Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

Nice