'Diagnostics' (aspx page) does not contain a constructor that takes 0 arguments

Hi,
We're solving for the same problem as you (old webforms application to move towards .net core)!
We've followed the guide and am receiving the error:
App_Web_diagnostics.aspx.cdcab7d2.ouhviywy.0.cs(156): error CS1729: 'App2.Diagnostics' (aspx page) does not contain a constructor that takes 0 arguments.
We've also followed the troubleshooting steps including wiping out the temp asp.net files, bin folder, obj folder, etc.
Here's my code
Startup:
`using AspNetDependencyInjection;
using App2.Web;
using Microsoft.Extensions.DependencyInjection;
using WebActivatorEx;
[assembly: PreApplicationStartMethod(typeof(DependencyInjectionStartup), nameof(DependencyInjectionStartup.PreStart))]
[assembly: PostApplicationStartMethod(typeof(DependencyInjectionStartup), methodName: nameof(DependencyInjectionStartup.PostStart))]
[assembly: ApplicationShutdownMethod(typeof(DependencyInjectionStartup), methodName: nameof(DependencyInjectionStartup.ApplicationShutdown))]
namespace App2.Web
{
public class DependencyInjectionStartup
{
private static ApplicationDependencyInjection ApplicationDependencyInjection;
    internal static void PreStart()
    {
        System.Diagnostics.Debug.WriteLine(nameof(DependencyInjectionStartup) + "." + nameof(PreStart) + "() called.");

        ApplicationDependencyInjection = new ApplicationDependencyInjectionBuilder()
            .ConfigureServices(ConfigureServices)
            .Build();
    }

    private static void ConfigureServices(IServiceCollection services)
    {
        // TODO: Add any dependencies needed here
        services
            .AddDefaultHttpContextAccessor()
            .AddWebConfiguration();

        services.AddScopedWithFactory<MyDbContext, MyDbContextFactory>();

    }

    internal static void PostStart()
    {
        System.Diagnostics.Debug.WriteLine(nameof(DependencyInjectionStartup) + "." + nameof(PostStart) + "() called.");
    }

    internal static void ApplicationShutdown()
    {
        System.Diagnostics.Debug.WriteLine(nameof(DependencyInjectionStartup) + "." + nameof(ApplicationShutdown) + "() called.");
    }
}

}`
Factory:
`using System;
using AspNetDependencyInjection;
using Microsoft.EntityFrameworkCore;
namespace App2.Web
{
public class MyDbContextFactory : IServiceFactory
{
private readonly string _connectionString;
    public MyDbContextFactory(IWebConfiguration webConfig)
    {
        if (webConfig == null)
        {
            throw new ArgumentNullException(nameof(webConfig));
        }

        this._connectionString = webConfig.RequireConnectionString("mainConnectionString"); // `RequireConnectionString` is an extension method.
    }

    public MyDbContext CreateInstance()
    {
        var optionsBuilder = new DbContextOptionsBuilder<MyDbContext>();
        optionsBuilder.UseSqlServer(_connectionString);

        return new MyDbContext(optionsBuilder.Options);
    }
}

}`
Diagnostics (aspx):
      public Diagnostics(MyDbContext dbContext)         {             _dbContext = dbContext;         }         protected void Page_Load(object sender, EventArgs e)         {             var employees = _dbContext.Employees.ToList(); }
We're probably missing something simple, thoughts?

Are you seeing the error only in Visual Studio's Error List window when you have an .aspx file open? If so, then it's actually a completely benign and ignorable bug in Visual Studio's WebForms codebase.
You can verify this by verifying/confirming that you're able to build your *.csproj project (either in VS or using MSBuild) and that aspnet_compiler.exe runs successfully then you're all-set and you can ignore the message.
If you're seeing that same error elsewhere then that's a problem that I'd like to address!

BTW, in your MyDbContextFactory, you can probably move the .UseSqlServer call into the MyDbContextFactory constructor and only keep the DbContextOptionsBuilder<DbContextOptionsBuilder> as a readonly field.

You're right, it was the message in the error panel when the aspx file is open!
Thanks!


N-level harmonic oscillator

Add a simulation for an n-level quantum system.
Requirements:

Visualization of an analog to an ensemble (Coupled to a heat bath with a specific T?)
Real-time histogram of populations in different energy levels (horizontal?)
Ability to control n.
Ability to control T
Ability to control "size" of "ensemble"

Use Delta E/(K_b T) instead of T.


Align DDO structure with industry standards (W3C VC) - stack update

Feature # 95.2

Since now we have the structure for the new DDO, it's time to implement it.
TO DO:

decide what DID_METHOD to use  (did:op  (status quo)  or did:ope)

If we decide did:op  , let's have another version  (call it 5.0.0)

create shacl schema file  (5.0.0.ttl) for validation in schema folders.    (see https://github.com/oceanprotocol/ocean-node/tree/develop/schemas)
A good example is https://github.com/oceanprotocol/ocean-node/blob/develop/schemas/4.5.0.ttl

If we decide did:ope , the task is much bigger

change the code to validate DIDs using only identifier part, and not hardcode DID_METHODx (ocean-node is using hardcoded did:op pretty much everywhere)
change schema folder to use  DID_METHOD-DID_VERSION.ttl files
change ocean-node to load the ttl file based on both DID_METHOD and DID_VERSION (now it's loading based only on version)

As agreed in the weekly meeting on July 23rd, we will implement the did;ope method.


Enable doc_values based searching across different field types

Is your feature request related to a problem? Please describe.
While working on #11097 i realized that MultiTerm queries over Boolean fields in OpenSearch don't support doc_values. I also noticed that the documentation is incorrect and that booleans have doc_values enabled by default.
This is prevalent across multiple field types, there is a fix going out in #11144 to fix this for IP fields, I would also like to do this for other fields:

Date field -- https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/index/mapper/DateFieldMapper.java#L467
Geo Point - https://github.com/opensearch-project/OpenSearch/blob/10d34beb85ebee0a6bf36afece16e4ed991de641/server/src/main/java/org/opensearch/index/mapper/GeoPointFieldMapper.java#L239C9-L239C9
Geo Shape - https://github.com/opensearch-project/OpenSearch/blob/10d34beb85ebee0a6bf36afece16e4ed991de641/server/src/main/java/org/opensearch/index/query/VectorGeoShapeQueryProcessor.java#L84

Describe the solution you'd like
Since boolean fields type extends TermBasedFieldType we should probably override the termQuery and termsQuery functions and add support for doc_values queries. While we're at it, we should also add IndexOrDocValuesQuery to the range query. This will help use-cases where we have a range on a boolean field matching a lot of values.
Describe alternatives you've considered
Alternative is to do nothing. This is obviously bad since users will miss out on doc_values based queries that can improve performance.
Additional context
N/A

Hi, are we on track for this to be released in 2.12 ?

Note that for Boolean fields, we might not see much benefit from a performance standpoint for indexed fields (since we have an efficient advance implementation for term queries and multiterm query expansion isn't going to expand beyond two terms).
That said, for consistency, now that we're supporting DV-only queries on many field types (including keyword, where Boolean is essentially a very restricted subcase of a keyword field), I like the idea that any field with doc values can support a (maybe slow) DV-only query.


Reformat build-aux/logfile-uploader.py

Overview
https://ci-couchdb.apache.org/job/jenkins-cm1/job/PullRequests/job/PR-3541/1/ was failing with an unrelated python-black failure. This PR fixes the issue. The diff is produced by make python-black-update

Testing recommendations

Related Issues or Pull Requests
https://github.com/apache/couchdb/pull/3541

Checklist

[ ] Code is written and works correctly
[ ] Changes are covered by tests
[ ] Any new configurable parameters are documented in rel/overlay/etc/default.ini
[ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

Thank you for the review, @nickva ! I'm about to merge this.


Deck render no tag and workspace information

Hi all,
we tried to use deck render to create a single YAML file from a distrubuted config and we would use this configuration on a Kong in-memory storage istance. It's not possible into deck render command to specify the "_info" configuration for tags an "_workspace" part.
Is it possible to avoid this limit?
Thanks,
Marcello

with "Kong in-memory storage instance" you mean a DBless deployment?
I think you encounter some entries in the file that are not supported by the DBless format. The formats, though similar, are not compatible. Have you tried using deck file patch to remove the invalid entries?
For more clarity; can you provide a minimal example of what you're getting and what you are expecting?

@Tieske
I used these 2 files:
_format_version: "3.0"
_info:
  select_tags:
  - test-external
_workspace: $WORKSPACE
services:
- connect_timeout: 60000
  host: test1-svc.local
  name: test1
  path: /
  port: 443
  protocol: https
  read_timeout: 60000
  retries: 5
  write_timeout: 60000
  routes:
  - hosts:
    - site.local
    name: test1-get
    methods:
    - GET
    paths:
    - ~/v1/test1/[A-Z]{3}$

_format_version: "3.0"
_info:
  select_tags:
  - test-external
_workspace: $WORKSPACE
services:
- connect_timeout: 60000
  host: test2-svc.local
  name: test2
  path: /
  port: 443
  protocol: https
  read_timeout: 60000
  retries: 5
  write_timeout: 60000
  routes:
  - hosts:
    - site.local
    name: test2-get
    methods:
    - GET
    paths:
    - ~/v1/test2/[A-Z]{3}$

I executed the render command but  the tags and workspace information weren't present.
# deck version
decK v1.29.2 (77682ca)
# deck file render .
_format_version: "3.0"
services:
- connect_timeout: 60000
  host: test1-svc.local
  name: test1
  path: /
  port: 443
  protocol: https
  read_timeout: 60000
  retries: 5
  routes:
  - hosts:
    - site.local
    https_redirect_status_code: 426
    methods:
    - GET
    name: test1-get
    path_handling: v0
    paths:
    - ~/v1/test1/[A-Z]{3}$
    preserve_host: false
    protocols:
    - http
    regex_priority: 100
    request_buffering: true
    response_buffering: true
    strip_path: false
  write_timeout: 60000
- connect_timeout: 60000
  host: test2-svc.local
  name: test2
  path: /
  port: 443
  protocol: https
  read_timeout: 60000
  retries: 5
  routes:
  - hosts:
    - site.local
    https_redirect_status_code: 426
    methods:
    - GET
    name: test2-get
    path_handling: v0
    paths:
    - ~/v1/test2/[A-Z]{3}$
    preserve_host: false
    protocols:
    - http
    regex_priority: 100
    request_buffering: true
    response_buffering: true
    strip_path: false
  write_timeout: 60000

@cello86 can you please describe your intended workflow a little more clearly?  Are you intending to use deck file render to apply the resulting configuration using deck gateway sync or do you intend to push the resulting file to a DB-Less Kong instance via the /config endpoint?

@rspurgeon ideally deck provides some features like:

variables substitution
deduplication plugib config
distributed configuration with different files
default configuration injection
These features can simplify the life with db-less config because actually requires the management with a single file.
We raised to Kong commercial team this requirement to have a CI/CD environment and a blue green deployment done via versioned dbless config file and a simple docker image, but kong suggestion is to install the hybrid mode and this can be an useless overhead for some customers. The dbless config has a lot of advantages but with a single file management is not useful and easy to implement.

@rspurgeon Is the use I described of deck to try to create a db-less from files used for normal sync incorrect?

@rspurgeon Is the use I described of deck to try to create a db-less from files used for normal sync incorrect?

Sorry @cello86  it's still unclear to me what workflow you are trying to enable.  Are you trying to configure a DB-Less Kong instance or are you trying to assemble a decK file to apply using deck gateway sync ?

I tried to generate a db less config starting from different files (one file per service)


[QUESTION] How to install DS in windows10

*For better global communication, please give priority to using English description, thx! *
Describe the question
The environment is installed, but I won't build the front and back end.

You can check this doc.
https://www.baidu.com/link?url=MmuiFZtNBtE8Uzda4JlYwfTcugNyf4IveZe08N2pMcv3LYukvEzTlE9mJ-hUYT_cT6_JmeBDHoSdUGoXFAw0-q&wd=&eqid=aa2e0b6a00019370000000025edca36e


Populate eLife Cell Biology list up to Feb 2nd

Issue we found with existing events in prod. There seem to be 12 duplicate ArticleAddedToList events for the elife list.
database_capital_antelope=>  SELECT count(distinct(payload->>'articleId')) FROM events WHERE type='ArticleAddedToList' AND payload->>'listId'='f1561c0f-d247-4e03-934d-52ad9e0aed2f';
 count
-------
    27
(1 row)

database_capital_antelope=> SELECT count(*) FROM events WHERE type='ArticleAddedToList' AND payload->>'listId'='f1561c0f-d247-4e03-934d-52ad9e0aed2f';
 count
-------
    39
(1 row)


1.20.6 Crashing on Launch

Might just be a personal/user error issue, but I can't get the 1.20.6 version of the mod to launch with Fabric/Sodium. Haven't been able to fix the issue by removing other mods either (including Sodium/Iris). Are there any prerequisites for this mod? I'm new to this so any help is appreciated!! Crash report is attached above.
Best regards,

Yes I did, sorry! It's working perfectly, my issue was I had only installed 1 out of the 2 .jar files needed for it work properly.
Mistake on my part. Awesome mod though, thank you!!


[CARBONDATA-3695]  Integrating deep learning framework PyTorch

Apache CarbonData should provides python interface to support deep learning framework PyTorch to ready and write data from/to CarbonData
Why is this PR needed?
Nowadays AI model training is getting more and more popular. Currently many AI framework uses raw data files or row format data files for model training, it could not provide projection, filtering, and fast scan capability like in columnar store. So, if CarbonData supports AI framework, it can speed up model training by increase IO throughput, and provide more flexible training set selection ability to AI developers
What changes were proposed in this PR?
https://github.com/apache/carbondata/pull/3479 already provide Basic framework for it and integrated TensorFlow. This PR integrates PyTorch and provide new interface for it.
Does this PR introduce any user interface change?

Yes

def make_data_loader(reader, batch_size=1, collate_fn=decimal_friendly_collate):
  """
  Initializes a data loader object, with a default collate.

  Number of epochs is defined by the configuration of the reader argument.

  :param reader: PyCarbon Reader instance
  :param batch_size: the number of items to return per batch; factored into the len() of this reader
  :param collate_fn: an optional callable to merge a list of samples to form a mini-batch.
  """

part code of example:

  # Instantiate each pycarbon Reader with a single thread, shuffle enabled, and appropriate epoch setting
  for epoch in range(1, loop_epochs + 1):
    with make_data_loader(make_reader('{}/train'.format(args.dataset_url), is_batch=False, num_epochs=reader_epochs,
                                      transform_spec=transform),
                          batch_size=args.batch_size) as train_loader:
      train(model, device, train_loader, args.log_interval, optimizer, epoch)

    with make_data_loader(make_reader('{}/test'.format(args.dataset_url), is_batch=False, num_epochs=reader_epochs,
                                      transform_spec=transform),
                          batch_size=args.test_batch_size) as test_loader:
      evaluation(model, device, test_loader)

Is any new testcase added?

Yes

pytorch_example_carbon_unified_api.py . and so on.

Build Success with Spark 2.4.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.4/269/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/1972/

Good. Can we add one documentation "carbondata AI guide" that can explain which all AI engines we support and points to simple example code for each AI engine?

@ajantha-bhat added, please check readme.md in python folder

@jackylk @ajantha-bhat Please review it again.

Build Success with Spark 2.4.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.4/323/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2025/

Build Success with Spark 2.4.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.4/344/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2046/

LGTM


Allow to create tables without security rules [default rule should be applied automatically]

As there is a 'default' rule in the rules tab, allow users to create tables without individual security rule. And that default rule should be applied automatically.
P.S: On a related note, allow to clear rules for a table (after it is created) and save it. Again, the default rule is automatically applied.

We already have this feature built in. @Jayesh333 we should allow the user to opt in into defining security rules for a particular table and later delete if they wish to.

The current scenario:

On any CRUD request, SC validates it based on the rules for the concerned table. If no rule for the requested table is found, then SC validates the request based on the default rules. If default rules are also not provided then in that case SC rejects that request with 403
Whenever you add a database to SC via Mission control, it configures the allow rule as the default rule for that database
While adding a new table via mission control, it prefils the rules for that table with allow rule, which can be changed later
No option to delete the security rule of a table via mission control so that SC falls back to the default rule for that table

My proposal:

While adding table through mission control, no security can be mentioned. SC will apply the default rules for this table as no rules are mentioned. This removes the need of solving #585. This also provides enough space in the modal to define schema.
similarly while tracking a table, mission control doesn't configure the SC with the rules for that table, which results into default rules being applied. This solves #586
Option to add and remove security rules for a table from the Rules tab in the Database section

What do you think @s-kris ?

I am assuming that most of the times, user won't be willing to change security rules while creating the table. If that's not true, then while creating table, we can have checkbox that says Apply default security rules which will be checked by default. If user unchecks it, then he will be provided an input to put in the security rules which again will be prefilled by the default rules.

@Jayesh333 you had summarised nicely. I'm just adding to that.

Kindly provide checkbox thing as you mentioned. It is more elegant and better ux.
Done
Done
<---new--->
Kindly look at the screenshot for making changes to rules tab.
Use the above guidelines for schema tab too.
I suggested to increase the size of Rules/Schema input box because, it's too small in height to write complex rules/schema.
[Totally unrelated to this issue] Kindly remove that 'Have a Question?' floating button and add it to sidebar or give an option to show/hide it in configure tab.

Fixed. coming in v0.16.0


Fix bellow typo in docs

Summary of changes
Spotted a tiny typo on the new pyproject.toml documentation. Grepping through the repository, the same typo was also present in other documents.
Pull Request Checklist

[ ] ~Changes have tests~ Not applicable
[ ] ~News fragment added in [changelog.d/].
(See [documentation][PR docs] for details)~ Not applicable

Woops, that is an error that I always make.
Thank you very much @mkniewallner for spotting and fixing that.


fe assesment-3

Metric
Value

alert_status
:white_check_mark: OK

bugs
7

code_smells
5

reliability_rating
B (at least 1 Minor Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


Cow: Watch freelancerforweb.in

Cow requests the watch of the watch_keyword freelancerforweb\.in. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

freelancerforweb\.in has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Ollie in Charcoal HQ


🐛 FIX: CREATE DATABASE with psycopg2 v2.9

Addresses https://github.com/aiidateam/aiida-core/issues/5002 (database cannot be created within a transaction)
See https://github.com/psycopg/psycopg2/issues/941#issuecomment-864019726
You can see the fix working, going from fe7f8ee to 2a2108c (the remaining windows failures are pre-existing from #22)

Codecov Report

Merging #27 (fe7f8ee) into master (43d8d30) will decrease coverage by 8.33%.
The diff coverage is n/a.

:exclamation: Current head fe7f8ee differs from pull request most recent head 2a2108c. Consider uploading reports for the commit 2a2108c to get more accurate results

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   95.83%   87.50%   -8.34%
==========================================
  Files           2        2
  Lines         168      168
==========================================
- Hits          161      147      -14
- Misses          7       21      +14

Impacted Files
Coverage Δ

pgsu/cli.py
91.66% <0.00%> (-8.34%)
:arrow_down:

pgsu/__init__.py
87.17% <0.00%> (-8.34%)
:arrow_down:

Continue to review full report at Codecov.

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

should probably drop ububtu-1604 now, and python 3.5

so the issue is just that the connection needs to be closed?

no its that you don't use a contextmanager for the connection, so that psycopg2 does not start a trabsaction (which only happens in v2.9)


Fixed supply promote uploading metadata to wrong track

Fixes #19058

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

Description

Testing Steps

@googlebot I signed it!

I have done a manual test and it worked as intended.
I tried writing a test for it but wasn't really able to tie it all together, would appreciate some assistance on that if a test is required.

@joshdholtz Updated the description

Thank you for fixing this @spacecowboy


utils.modules.Conv2d seems wrong

As far as I know, a convolutional layer should not have bias when a Batch Normalization applied after it. I think it is a serious issue according to the theory of Batch Normalization. I would appreciate if you learn more about Batch Normalization and fix the issue.
Thus you can add a bias=False as a kwarg of torch.nn.Conv2d in utils.modules.Conv2d module, then retrain the models.

Even if I use bias in Conv2d, the bias will be eliminated by bn which means it is equal to 0 bias. But it doesn't mean we have to cancel bias in conv. I still can randomly set bias. So I won't retrain it. It is unnecessary.
---Original---
From<EMAIL_ADDRESS>Date: Tue, May 26, 2020 23:44 PM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Subject: [yjh0410/yolov2-yolov3_PyTorch] utils.modules.Conv2d seems wrong (#35)
As far as I know, a convolutional layer should not have bias when a Batch Normalization applied after it. I think it is a serious issue according to the theory of Batch Normalization. I would appreciate if you learn more about Batch Normalization and fix the issue.
Thus you can add a bias=False as a kwarg of torch.nn.Conv2d in utils.modules.Conv2d module, then retrain the models.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Fine.But don't you think it is unnecessary?And add some redundant computation costs……

Yeah, I agree with you that useless bias will bring some redundant computation cost.
But, I have only one GPU... If I retrain yolov2 on coco(voc is too simple.), I have to wait for a half of a month....
So sorry~I have no choice~
All in all, thanks for your advice !(๑>؂<๑）
---Original---
From<EMAIL_ADDRESS>Date: Tue, May 26, 2020 23:59 PM
To<EMAIL_ADDRESS>Cc: "Comment"<comment@noreply.github.com>;"Jianhua<EMAIL_ADDRESS>Subject: Re: [yjh0410/yolov2-yolov3_PyTorch] utils.modules.Conv2d seems wrong (#35)
Fine.But don't you think it is unnecessary?And add some redundant computation costs……
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hello, I think you can name your lightweight model based on YOLO v2 as Slim YOLO v2.
By the way, I am going to study in the Tsinghua Shenzhen International Graduate School (Tsinghua SIGS) since September, major in Big Data.

Nice to see you again！
Slim YOLOV2？Sounds wonderful！
Recently, I'm trying to reproduce TinyYOLOv3.
And，congratulation！！
I am glad to hear the good news！
I sincerely wish you have a good time in Tsinghua SIGS.
By the way, I'm studying for a PhD in HIT.
---Original---
From<EMAIL_ADDRESS>Date: Sat, Jun 13, 2020 18:10 PM
To<EMAIL_ADDRESS>Cc: "Comment"<comment@noreply.github.com>;"Jianhua<EMAIL_ADDRESS>Subject: Re: [yjh0410/yolov2-yolov3_PyTorch] utils.modules.Conv2d seems wrong (#35)
Hello, I think you can name your lightweight model based on YOLO v2 as Slim YOLO v2.
By the way, I am going to study in the Tsinghua Shenzhen International Graduate School (Tsinghua SIGS) since September, major in Big Data.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.


How to use clickhouse-jdbc to query millions of data？And stream way for reading large result set?

问题使用clickhouse-jdbc 查询千万数据量？ Stream方式读取SELECT超大结果集 ？
需要导出百万级别数据 从ck中导出，clickhouse-jdbc怎么支持？如果使用api 解决这个问题？

Use clickhouse-jdbc to query millions of data?

By default, clickhouse-jdbc is synchronous and resource-efficient. It simply reads data one field at a time and then deserialize in the same thread. There's tiny buffer(8192 bytes) and objects like ClickHouseRecord and ClickHouseValue reused for less CPU and memory consumption. As long as you don't cache lots of data in your application, there's not much to worry about. Having said that, you may still run into OOM error when dealing with large field(e.g. a movie stored in a column) with limited memory.

Stream way to read SELECT large result set?

Both JDBC driver and Java client uses streaming for both query and insert. There's nothing special, but you should avoid to use large SQL statement with many values expressions.

Need to export millions of data from ck, how does clickhouse-jdbc support it? If use api to solve this problem?

JDBC standard does not provide convenient way for loading/dumping data. However, you can use one-liner in Java client, for example: ClickHouseClient.load() or ClickHouseClient.dump() instead.

有对应的例子吗

I'll add more details into #928 and maybe examples in weekend, but for starters:

Java Client

one-liner for loading and dumping data - see ClickHouseClient.load(...) and ClickHouseClient.dump(...)
streaming basics - see ClickHouseInputStream.of(...) and ClickHouseOutputStream.of(...)
piped output stream - ClickHouseDataStreamFactory.getInstance().createPipedOutputStream(...)
writing data into request - ClickHouseRequest.write().query(...).data(...).send() #909
reading response - ClickHouseResponse.getInputStream() (you have to deserialize by yourself in this case)

JDBC Driver

batch insert - see examples at here
unwrapping - ClickHouseStatement.unwrap(ClickHouseRequest.class) and then use Java Client to do the rest

stmt.unwrap(ClickHouseRequest.class).query(selectSQL).output("/data/test.csv").executeAndWait()
this code generates the outFile, it should have data, but the file is empty. Is the code wrong?
using clickhouse-jdbc:0.3.2-patch11


Error

2024/06/20 17:59:58 Error connecting to the server: dial raknet: read udp <IP_ADDRESS>:63903-><IP_ADDRESS>:48335: use of closed network connection

Is your internet connection stable and upstream server is available?

What is an upstream server?

What is an upstream server?

RemoteServer from config

RemoteAddress = 'waternoob1005.aternos.me:48335'

check if you can access this server from your local machine (where proxy is located)

yes i can

Does this happen all the time you trying to connect proxy? The connection can be closed sometimes due to network issues (even without using proxy server )

The error message “The connection to the server was lost” continues to appear and the error still occurs.
2024/06/29 11:05:33 Error connecting to the server: dial raknet: read udp <IP_ADDRESS>:61209-><IP_ADDRESS>:48335: i/o timeout

its aternos server

waternoob1005.aternos.me:48335

I also have that error on my local machine, I can join without proxy and with proxy I get i/o timeout


Continue(using error output) setting issues

Hi, the puppeteer node works great with the browser too!
Bg: when I go to settings and set Continue(using error output) from Stop Workflow, I see Success and Error at the end of the node.
Now say, a link is WRONG(does not exist for example) is passed to the puppeteer node, I see an error as expected. But then it is being passed through Success line instead of Error.

You can see 1 item in the Success node.
Here is the input

Please share why this issue is present, and can the error be passed through the Error one instead of success?

This is resolved in v1.3.0 which was just published to npm.

Oh awesome! Thanks. I will update to the latest code.


Field level validation - get name of the currently validated field

This is a feature request
From quick glance at redux-form code, currently I see that the name of currently validated field name is discarded. I made the following change:
diff --git a/src/generateValidator.js b/src/generateValidator.js
index 8a7e503..35bd705 100644
--- a/src/generateValidator.js
+++ b/src/generateValidator.js
@@ -10,11 +10,12 @@ const getError = (
   value: any,
   values: Object,
   props: Object,
-  validators: any
+  validators: any,
+  name: string
 ) => {
   const array = toArray(validators)
   for (let i = 0; i < array.length; i++) {
-    const error = array[i](value, values, props)
+    const error = array[i](value, values, props, name)
     if (error) {
       return error
     }
@@ -28,7 +29,7 @@ const generateValidator = (
   let errors = {}
   Object.keys(validators).forEach(name => {
     const value = getIn(values, name)
-    const error = getError(value, values, props, validators[name])
+    const error = getError(value, values, props, validators[name], name)
     if (error) {
       errors = plain.setIn(errors, name, error)
     }

All mocha tests succeed, other tests are stuck on my computer. Shall I make a PR, or you are against changing API?

Done by #3364

Published fix in v7.1.0.


Add anchor to BitmapText

Fixes #1769
BitmapText (unlike Text) is inheriting from Container rather than Sprite and therefore BitmapText.anchor does currently not exist.  There are workarounds to add centring behaviour (see #1769), but they all rely on manually changing the position.
This PR adds an anchor to BitmapText that behaves similar to anchor for Text.
Since every anchor is a PIXI.Point we can't just use a getter/setter to set dirty but instead have to regularly compare anchor against a private copy. I would have rather avoided this, but it's the only solution that I can currently see to detect those changes. Suggestions welcome!
Performance considerations
In case of anchor being left at (0, 0) the only costs is a PIXI.Point.equals every frame to check whether it has changed.  It's a relatively cheap check, so I hope it's not going to be a problem.
If anchor is set to anything else then there's an additional loop over every glyph during #updateText.
Backwards compatibility
Unless someone has set (the currently ineffective) anchor property this change is backwards compatible.

This is a nice PR! one that I think people (including myself! ) will find very useful.
My one suggestions is that we use PIXI.ObservablePoint so that we can set the dirty flag whenever anchor is changed. That way we only loop through the characters if the anchor changes. What do you think?

@GoodBoyDigital that's what my SpriteFrame was about.

I only found out about ObservablePoint last week, but I haven't gotten around to update the PR yet. Will do so today or tomorrow (I hope).
The only problem I can see is how am I going to deal with someone doing text.anchor = new PIXI.Point(0.5, 0.5)? Silently convert it into an ObservablePoint?
@ivanpopelyshev Have you done something similar? Could you point me at those changes?

@ivanpopelyshev nm, I found it. will update.

@GoodBoyDigital @ivanpopelyshev updated. I had to pull in some changes from #2465 to make it work, I hope that's not a problem.

Nice! @GoodBoyDigital what do you think?

Is there anything outstanding for this PR or something I can do to help it get merged?


docs(samples): Adding example of creating a clustered table

Define a schema based on fields and clustering columns.

https://cloud.google.com/bigquery/docs/clustered-tables

Any ideas on why the Kokoro test is keep in pending status?

Thanks for submitting this. We prefer writing our samples along side the client library: https://github.com/googleapis/java-bigquery. If possible, can you reopen this in that repository and @stephaniewang526 will be able to take a look.

@irvifa Thank you for writing this sample -- I will see to adding it to java-bigquery repo.


Reference monotonics by type alias

The PR tries to fix #470. I think we can correct the monotonic codegen with const generics by changing the way we reference user-defined monotonics.
Here's what the user does:
const MONO_HZ: u32 = 8_000_000;

#[monotonic(binds = SysTick, default = true)]
type MyMono = DwtSystick<MONO_HZ>;

Before this PR, RTIC generated code that referenced the monotonic by the right side of the type alias, DwtSystick<MONO_HZ>. RTIC could access the DwtSystick identifier from the user imports. But, RTIC doesn't seem to have a way to reference the MONO_HZ user-defined const.
As of this PR, RTIC references monotonics by the left side, MyMono. To disambiguate the type alias from the generated module of the same name (withing the monotonics module), we use an absolute path afforded by app_path.
Tested by compiling the schedule.rs example:
cargo build --example schedule --target thumbv7em-none-eabihf --all-features

Thanks for the help! The commit on flattened works for the proposed test.
If you'd like to include it, I've reduced this PR to just the test case. Otherwise, I'm happy to close this PR. Looking forward to the next release.

Thanks for testing! I have added the test case to the flattened branch.
I'm preparing for a new release in the coming week.


fix can't not find tomcat when start web-ark-plugin in test

fixed by https://github.com/sofastack/sofa-ark/pull/915


far pointer always trigger onfocus instead of on rest

Describe the bug
A clear and concise description of what the bug is.
To reproduce
Steps to reproduce the behavior:
create a sample mrtk project and just play in unity
see the default gaze

curser is always on rest even if u focus .
2 ) use hand in far pointer onfocus vursor is always an
even if u are not focussiing any object

Expected behavior
when u don't focus it should show rest cursor
Screenshots
Your setup (please complete the following information)

Unity Version [e.g. 2018.3.11f1]
MRTK Version [e.g. v2.0]

Target platform (please complete the following information)

unity editor

Additional context
Add any other context about the problem here.

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


Take screenshot automatically on failure (and also allow using other actions)

Originally submitted to Google Code by Marcin.Koperski on 5 Oct 2010

I would be good to have flag/option that will automatically make screen shot on Fail or other unexpected behavior. Also it would be good to highlight object which is under testing e.x. for example object which is provided as location for validation/input.

Originally submitted to Google Code by spielman... on 5 Oct 2010

Hi Marcin,
If a test fails, you can log a screenshot:
Run Keyword If Test Failed  Capture Screenshot
(or Capture Page Screenshot), see [1] and [2].
Put that into the Test Teardown like:
*** Settings ***
Test Teardown  Teardown Selenium
*** Keywords ***
Teardown Selenium
Run Keyword If Test Failed  Log Screenshot
Log Screenshot
to work around IE problems, we exclude the related browser profiles
Run Keyword If  '${BROWSER_PROFILE}' != '*iexplore' and '${BROWSER_PROFILE}' != 'ie' and '${BROWSER_PROFILE}' != 'internetexplorer' and '${BROWSER_PROFILE}' != '*iehta' and '${BROWSER_PROFILE}' != 'iehta'  Capture Page Screenshot
So that would cover all cases where the test fails.
About highlighting the "object under test", I assume you mean something like draw a green border around a certain element in the page? Do you have exact ideas or an example of what you would like to do?
[1] http://robotframework-seleniumlibrary.googlecode.com/hg/doc/SeleniumLibrary.html?r=2.4#Capture%20Screenshot
[2] http://robotframework-seleniumlibrary.googlecode.com/hg/doc/SeleniumLibrary.html?r=2.4#Capture%20Page%20Screenshot

Originally submitted to Google Code by Marcin.Koperski on 5 Oct 2010

Hi Robert
My idea was to have similar look as we get using Selenium IDE, using button Find which highlights Target, maybe its possible to execute this command (or functionality ) and at the same time make screen shot.
Your solution is good, but it will give only screen shot on the finish of the test, sometimes you want to proceed even when validation failed but functional step are working properly.

Originally submitted to Google Code by @pekkaklarck on 21 Oct 2010

This is a very often requested feature. Ought to be relatively easy to implement with some metaclass magic so that existing methods don't need to be touched.
Should we take screenshots always when a keyword fails automatically or should this be configurable? If this is configurable, should the default be on or off? Would it be enough to have an import parameter or should we have a keyword instead (or in addition)?

Originally submitted to Google Code by Marcin.Koperski on 21 Oct 2010

I think it should be configurable (default on) using import parameter. The same solution would be nice to work with highlighting Target.

Originally submitted to Google Code by @pekkaklarck on 22 Oct 2010

Highlighting target should be a separate issue. How to implement that depends on how Selenium RC supports highlighting.

Originally submitted to Google Code by spielman... on 24 Oct 2010

I remember that we had major issues with screenshots in Internet Explorer, which effectively forced us to build a smart keyword that only takes a screenshot if no IE browser profile is being used for the test run. I'll investigate this, because even if taking the screenshot is configurable, it would probably not be desirable to switch screenshots on and off by ugly hacks if you run tests across multiple browsers.

Originally submitted to Google Code by @pekkaklarck on 14 Nov 2010

I've been investigating this and already got the basic functionality working. There's currently autoscreenshot.py file in the code base which implements a metaclass that automatically wraps keywords so that a screenshot is taken upon failure. This code isn't yet used, though.

Originally submitted to Google Code by @yanne on 15 Nov 2010

Since there are some differences in how taking screenshots works on different platforms, we decided to implement this so that it is possible to configure a keyword which is executed when another SeleniumLibrary keyword fails.
The keyword to be run can be given on library init or using a separate keyword-

Originally submitted to Google Code by @yanne on 15 Nov 2010

Implemented and added tests for the functionality described in comment 9 in revision d4feacc481f5.
The keyword that changes the keyword that is executed on failure is called Run On Failure.
Documentation is still missing.

Originally submitted to Google Code by @yanne on 15 Nov 2010

Added some docs in revision d524080e96d5

Originally submitted to Google Code by @yanne on 15 Nov 2010

Added some docs in revision d524080e96d5

Originally submitted to Google Code by @pekkaklarck on 15 Nov 2010

I enhanced the docs in revision 3c2e1443ee. Janne, could you do the final review and close this one if everything looks good? Comments from others are obviously highly welcome too.

Originally submitted to Google Code by @yanne on 15 Nov 2010

Added one more example in revision  ab1c024223ea
I consider this now done.

Originally submitted to Google Code by Marcin.Koperski on 15 Nov 2010

I think this solution is useful, not only for selenium test, because often if something brakes there is need to make additional steps

Originally submitted to Google Code by @pekkaklarck on 16 Nov 2010

Notice that this feature only works with Selenium. Generally you should use teardowns if you need to do actions in case of failures.

Originally submitted to Google Code by spielman... on 16 Nov 2010

This issue was updated by revision 95cc7d834c.
I fixed a mini-typo in the docs. Looks good otherwise.

Originally submitted to Google Code by spielman... on 16 Nov 2010

This issue was updated by revision d43b5fe19f.
I fixed another mini-typo in the docs. =)

Originally submitted to Google Code by jollych... on 28 Nov 2010

anybody knows why this function throw out the error?
ERROR: java.io.FileNotFoundException: /var/folders/yC/yC-BR3EaE+0V23rq+scaok+++TI/-Tmp-/customProfileDir9b54401dac2c40f19022e892b0290b79/screenshots/page-screenshot-9b54401dac2c40f19022e892b0290b79.png (No such file or directory)
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
Selenium RC server v2.0 a7  and selenium library 2.5 ;Robot Framework 2.5.4 (Python 2.6.1)


Update strings.xml

To match new strings in Italian

These are new strings for new features. They are missing from other languages.

I translated them in Italian

Sorry, my bad. Merging


Twig2

Summary

require PHP7
follow Twig 2.x changes
update composer deps to new stable versions
update Makefile (plovr url)
add more PHP tests
rebuild twig.js and twig.dev.js

I've set the composer alias to 2.0.x-dev as this is a major update. Not sure if this should go onto a 2.0 branch first and leave master for twig 1.x compatibility for now. Not sure how much more work is going into Twif 1.x...

Failing tests are related to the changed prefix for macros in Twig, ie:
https://github.com/twigphp/Twig/blob/2.x/lib/Twig/TokenParser/From.php#L48
https://github.com/twigphp/Twig/blob/2.x/lib/Twig/ExpressionParser.php#L405

Someone plan to merge this PR into master ?


[Website] generate website for C client API

Background
Currently, we have API websites for various languages, such as the Java / C++ / Python API website.
Issue

C does not have an API website.
.h files of C are available at here.
@BewareMyPower found that Doxygen generates C++ rather than C API website.

C lacks many descriptions.

Example:

Solution

Generate a website for C client API

Add missing descriptions for C

Anyone would like to help? Thanks

@Anonymitaet The C API is packaged together with the C++ client library. I think it's because of the Doxygen configuration that it's not considering the C headers for documentation. In particular, it could be just that we need to add the directory on https://github.com/apache/pulsar/blob/6704f12104219611164aa2bb5bbdfc929613f1bf/pulsar-client-cpp/Doxyfile#L812

This can be relevant to #17498


[ISSUE #5746] Correct variable

Make sure set the target branch to develop
What is the purpose of the change
Close #5746
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #5747 (f5123e5) into develop (646d04f) will increase coverage by 0.00%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             develop    #5747   +/-   ##
==========================================
  Coverage      42.45%   42.45%
+ Complexity      8215     8214    -1
==========================================
  Files           1060     1060
  Lines          73193    73193
  Branches        9598     9598
==========================================
+ Hits           31071    31073    +2
+ Misses         38221    38218    -3
- Partials        3901     3902    +1

Impacted Files
Coverage Δ

...etmq/remoting/protocol/heartbeat/MessageModel.java
85.71% <66.66%> (ø)

...tmq/remoting/protocol/body/ConsumerConnection.java
95.83% <0.00%> (-4.17%)
:arrow_down:

...controller/impl/DefaultBrokerHeartbeatManager.java
82.27% <0.00%> (-3.80%)
:arrow_down:

...ache/rocketmq/proxy/common/ReceiptHandleGroup.java
65.30% <0.00%> (-2.05%)
:arrow_down:

...org/apache/rocketmq/common/stats/StatsItemSet.java
41.79% <0.00%> (-1.50%)
:arrow_down:

...he/rocketmq/client/trace/AsyncTraceDispatcher.java
83.17% <0.00%> (-1.45%)
:arrow_down:

.../apache/rocketmq/store/ha/DefaultHAConnection.java
65.86% <0.00%> (-1.21%)
:arrow_down:

.../org/apache/rocketmq/store/ha/DefaultHAClient.java
61.53% <0.00%> (-0.52%)
:arrow_down:

...mq/store/ha/autoswitch/AutoSwitchHAConnection.java
71.89% <0.00%> (-0.28%)
:arrow_down:

...ava/org/apache/rocketmq/filter/util/BitsArray.java
59.82% <0.00%> (ø)

... and 8 more

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

I guess the original full name is modeConsumerName. It is also OK to keep the original.

Agree with :-)


Bug report-application gateway v1 module endless apply when error happened

Is there an existing issue for this?

[X] I have searched the existing issues

Community Note

Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Version of the module you are using
5.6.0
Rover Version
aztfmod/rover:1.2.3-2207.1907
Terraform Version
1.3.0
AzureRM Provider Version
3.0.0
Affected Resource(s)/Data Source(s)
azurerm_application_gateway
Terraform Configuration Files
application_gateway_platforms = {
  agw_platform = {
    resource_group_key = "agw_region1"
    name               = "agw_platform"
    lz_key             = "networking_spoke_agw"
    vnet_key           = "agw_region1"
    subnet_key         = "agw1_private"
    sku_name           = "WAF_v2"
    sku_tier           = "WAF_v2"
    capacity = {
      autoscale = {
        minimum_scale_unit = 0
        maximum_scale_unit = 5
      }
    }
    zones        = ["1"]
    enable_http2 = true

    identity = {
      remote = {
        launchpad = {
          managed_identity_keys = [
            "level3"
          ]
        }
      }
    }

    front_end_ip_configurations = {
      public = {
        name          = "public"
        public_ip_key = "agw_v1_pip"
      }
      private = {
        name                          = "private"
        lz_key                        = "networking_spoke_agw"
        vnet_key                      = "agw_region1"
        subnet_key                    = "agw1_private"
        subnet_cidr_index             = 0 # It is possible to have more than one cidr block per subnet
        private_ip_offset             = 21 # e.g. cidrhost(<IP_ADDRESS>/25,4) = <IP_ADDRESS> => AGW private IP address
        private_ip_address_allocation = "Static"
      }
    }
    front_end_ports = {
      80 = {
        name     = "http"
        port     = 80
        protocol = "Http"
      }
      443 = {
        name     = "https"
        port     = 443
        protocol = "Https"
      }
    }

    #default: wont be able to change after creation as this is required for agw tf resource
    default = {
      frontend_port_key             = "80"
      frontend_ip_configuration_key = "public"
      backend_address_pool_name     = "default-beap"
      http_setting_name             = "default-be-htst"
      listener_name                 = "default-httplstn"
      request_routing_rule_name     = "default-rqrt"
      cookie_based_affinity         = "Disabled"
      request_timeout               = "60"
      rule_type                     = "Basic"
    }

  }
}
application_gateway_applications_v1 = {
  app01 = {
    name                    = "app01"
    application_gateway_key = "agw_platform"

    backend_pools = {
      app01 = {
        name  = "app01"
        fqdns = ["app01.petcafsandpit.com"]

        # ip_addresses = ["<IP_ADDRESS>", "<IP_ADDRESS>"]

        # app_services = {
        #   lz_key = ""
        #   key = ""
        # }
      }
    }

    http_settings = {
      http_80 = {
        name                        = "http_80"
        front_end_port_key          = "80"
        host_name_from_backend_pool = true
        timeout                     = 45
      }
    }

    http_listeners = {
      // Cannot have two same port listener. Default already use port 80
      //  public = {
      //    name                           = "http_listener01"
      //    front_end_ip_configuration_key = "public"
      //    front_end_port_key             = "80"
      //    # host_name                      = "demo1.app1.com" //for multisite listener
      //  }
      public_ssl = {
        name                           = "https_listener01"
        front_end_ip_configuration_key = "public"
        front_end_port_key             = "443"
        # host_name                      = "demo1.app1.com" //for multisite listener
        ssl_cert_key = "app01_ssl"
      }
    }

    ssl_certs = {
      app01_ssl = {
        name = "app01_ssl"
        keyvault = {
          certificate_key = "demoapp1.cafsandpit.com"

          # lz_key                  = "" #remote keyvault

          # certificate_request_key = "" #for cert request

          # manual cert
          lz_key           = "ssl-cert-ca"             #remote keyvault
          key              = "certificates"            #keyvault key
          certificate_name = "app01-petcafsandpit-com" #manual cert name
        }
      }
    }

    request_routing_rules = {
      default = {
        name              = "default_demo_app1"
        rule_type         = "PathBasedRouting"
        http_listener_key = "public"
        backend_pool_key  = "app01"
        http_settings_key = "http_80"
        url_path_map_key  = "demo"
      }
    }

    url_path_rules = {
      rule1 = {
        name             = "rule1-demo"
        url_path_map_key = "test_path_map"
        paths            = "/test/rule1/*"
      }
      rule2 = {
        name             = "rule2-demo"
        url_path_map_key = "test_path_map"
        paths            = "/test/rule2/*"
      }
    }

    url_path_maps = {
      demo = {
        name              = "test_path_map"
        paths             = "/test/*"
        rule_name         = "rule1"
        backend_pool_key  = "app01"
        http_settings_key = "http_80"
      }
    }

    probes = {
      test = {
        name                         = "test-http"
        protocol                     = "Http"     # Http or Https
        host                         = "test.com" // multisite agw - single site use <IP_ADDRESS>
        host_name_from_http_settings = false
        # port                                    = "" # Leave not set if pick port from backend http settings
        path               = "/api/health"
        interval           = "60"
        timeout            = "60"
        threshold          = "3"
        min_servers        = "0"
        match_status_codes = "200-499"
      }
    }
  }
}

Expected Behaviour
application gateway and application gateway application created successfully
Actual Behaviour
endless apply when there is error occurred due to misconfiguration
refer here below:
endless apply when there is error occurred due to misconfiguration
refer here below:
module.solution.module.application_gateway_applications["demo_app1"].null_resource.set_http_listener["public"]: Still creating... [3h34m8s elapsed]
module.solution.module.application_gateway_applications["demo_app1"].null_resource.set_http_listener["public"]: Still creating... [3h34m18s elapsed]
module.solution.module.application_gateway_applications["demo_app2"].null_resource.set_backend_pools["demo"]: Still creating... [3h35m28s elapsed]
module.solution.module.application_gateway_applications["demo_app2"].null_resource.set_backend_pools["demo"]: Still creating... [3h35m38s elapsed]
module.solution.module.application_gateway_applications["demo_app1"].null_resource.set_http_listener["public"]: Still creating... [3h34m28s elapsed]
module.solution.module.application_gateway_applications["demo_app1"].null_resource.set_http_listener["public"]: Still creating... [3h34m38s elapsed]
module.solution.module.application_gateway_applications["demo_app2"].null_resource.set_backend_pools["demo"]: Still creating... [3h35m48s elapsed]
Steps to Reproduce
No response
Important Factoids
No response
References
No response

Might be related to #937.
Alternative fix is to export ATTEMPTS=1 before running the apply.


Add appropiate ifdefs for Linux

unistd.h is required for sleep
string.h is required for memcpy
Only Windows appears to have sleep with a capital S, all other (unix based) operation systems appear to use the lower case name.

Sorry for the super late response. I got derailed by different subjects and forgot to report back.
I am a Linux developer and to my surprise could not get the build environment working on Windows, so I could not concretely test it.
But Microsoft indicates they use Sleep, and not sleep, and you previously already had an ifdef for it but it only triggered the Unix variant (used by Mac OS X, Linux and *BSD) on Mac OS X, leaving the Linux and BSD compilers confused when they encounter Sleep (which again, is a Windows only function).
TL;DR: we don't actually need to do a test compilation for such a minor, but important change.

Without this patch on Linux: (which worked before you commited 4117669)

mitchell@ubuntu-pc:~$ npm install node-core-audio
[...]
><EMAIL_ADDRESS>install /home/mitchell/node_modules/node-core-audio
> node-gyp rebuild
[...]
../NodeCoreAudio/AudioEngine.cpp:406:11: error: ‘Sleep’ was not declared in this scope
Sleep(1);
^
make: *** [Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o] Error 1
make: Leaving directory /home/mitchell/node_modules/node-core-audio/build' gyp ERR! build error  gyp ERR! stack Error: make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-43-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/mitchell/node_modules/node-core-audio
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1
npm ERR! not ok code 0

It's important to note that Windows' Sleep is not the rule, it's the exception. Our if statements should follow that. Your initial ifdef was correct.


Great repo!

I have found this repo extraordinarily informative and helpful along with the blog https://hochwald.net/ship-windows-event-logs-with-winlogbeat.
I was wondering, is this is the same configuration you use on domain controllers?
Additionally I was wondering what audit policies you like to turn on in accordance with this.

I'm curious as well...

Yep! You can use the config on all Servers. The ID's relevant for Domain Controllers are captured, at least the ones in which I was interested.
What I did: Instead of logging everything to my SIEM (Graylog) I start logging towards (a dedicated) Logstash Instance. I always start with "Log everything" and start to develop a filter from there on. Events that are not relevant will be filtered on the client... It can take a while to find all the relevant information and filter (reduce) the noise.
It depends on your requirements and the events that you would like to log/see.
Audit: At least the Login part must be turned on (Success and unsuccessful). And like above: It depends on your requirements and your configuration.
My (personal) recommendation: Turn on as much as possible! If you do not need it... Who cares, set up filtering and drop everything that you do not need (on the client or on your target).
Please keep in Mind: This config is now outdated. It is not compatible with newer WinLogBeat versions (The Processors are incompatible). Please see #4 for further information.
There might be an updated version.

You might find this repo useful: https://github.com/palantir/windows-event-forwarding/tree/master/group-policy-objects
Therefore I have the references within the config


Create an ingress implementation

Setting aside the debate of the default implementation that was running in the mailing list,
I think that we should have an Ingress implementation so the community can start reporting feedback about the new Ingress API.
At the end of the day, you'll never know how this is going to evolve until is being used :smile:

@aojea I'm just afraid of this happening, but I also think we should at least provide a really simple ingress implementation to work only as a validation of user stories :)

@bowei Should we close this once we merge in https://github.com/kubernetes-sigs/service-apis/pull/87?

fair enough, community talked
/close


Implement Firebase In-App Messaging

Overview
Implement Firebase In-App Messaging for sending context-specific announcements to the users. Previously, in Dante, this was done with hardcoded announcements. Since announcements should be made without a new release, Firebase In-App messaging should be used.
Implementation
Use the standard package for this: https://pub.dev/packages/firebase_in_app_messaging

@shockbytes I've tried to do the "Test on device" steps as described in the getting started document, but the button is disabled for me. I assume I'm missing a permission or something. Do you want to enable the permission for me or just do this one yourself?


I have a problem with a target (connection reset by peer)

I launch prometheus as a Docker image. Connection is not establishing with one of the targets (but it's good with the others). Here are a config and the error.
global:
  scrape_interval: 25s
  evaluation_interval: 25s
  scrape_timeout: 20s

  external_labels:
    monitor: 'mobil-med-monitor'

rule_files:
  - '/etc/prometheus/cadvisor.rules'
  - '/etc/prometheus/nodes.rules'
  - '/etc/prometheus/alert.rules'

scrape_configs:
  - job_name: 'ansible'
    metrics_path: '/ansible_manager_metrics'
    bearer_token: '123123'
    static_configs:
      - targets: ['some.service.stud.consul:443']
    scheme: https
    tls_config:
       ca_file: /tmp/rootCA.crt
#      insecure_skip_verify: true

Get https://some.service.stud.consul:443/ansible_manager_metrics: read tcp <IP_ADDRESS>:33290-><IP_ADDRESS>:443: read: connection reset by peer

There is no problem with the target itself, if I try to watch metrics manually it's working.

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


issues after upgrade to v 2.0.1

Hi after upgrade the integration broke i have removed the integration and also removed from HACS
reinstall it again now getting issue to login
i have checked my login in HARAD page login and all good.
any idea?
BTW the error is only red raw without any info.

I had the exact same problem when I used the password from the old city-mind website.
Register to the new website, and login with the new password. 😊

Hi Maor,
Can you send link to the new website?
I am registered to this one
https://cp.city-mind.com/
if needed to register to a new site need to add this in the GitHub documentation.
Thanks ,
Shay 😉
From: Maor @.>
Sent: Sunday, 16 October 2022 18:33
To: maorcc/citymind_water_meter @.>
Cc: shay lami @.>; Author @.>
Subject: Re: [maorcc/citymind_water_meter] issues after upgrade to v 2.0.1 (Issue #32)
I had the exact same problem when I used the password from the old city-mind website.
Register to the new website, and login with the new password. 😊
—
Reply to this email directly, view it on GitHub https://github.com/maorcc/citymind_water_meter/issues/32#issuecomment-1279993111 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAX6FWAPACWCJIZCOHSVMMTWDQN4NANCNFSM6AAAAAARGLAXSM .
You are receiving this because you authored the thread.Message ID: @.*** @.***> >

Shay Lami would like to recall the message, "[maorcc/citymind_water_meter]
issues after upgrade to v 2.0.1 (Issue #32)".

The new website where you need to sign up is https://rym-pro.com/

Hi,
I have registered to the new site its better to update this in the github page.
Thanks, I will try the integration now after registration
From: Maor @.>
Sent: Monday, 17 October 2022 0:01
To: maorcc/citymind_water_meter @.>
Cc: shay lami @.>; Author @.>
Subject: Re: [maorcc/citymind_water_meter] issues after upgrade to v 2.0.1 (Issue #32)
The new website where you need to sign up is https://rym-pro.com/
https://user-images.githubusercontent.com/255973/196058047-71437625-a870-438b-b139-a7c841da6cbd.png
—
Reply to this email directly, view it on GitHub https://github.com/maorcc/citymind_water_meter/issues/32#issuecomment-1280056427 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAX6FWHPMNW2VFTB5OZSYJDWDRUITANCNFSM6AAAAAARGLAXSM .
You are receiving this because you authored the thread.Message ID: @.*** @.***> >

hi after register to the new site all is working
need to update the GitHub page with the new url and guidance
thanks close

@shaylami, It is likely that others will counter the same issue.
I suggest adding a clear explanation message when authentication fails.  The message should explain about the new website, and that users need to register there with a new password even if they used the old site before.

Will try to get to it later today


X-Axis Linechart (AreaChart) Label

Going through the documentation,  I have not seen the equivalent of yAxisLabelTexts={ [     "Jan",     "Feb",     "Mar",     "Apr",     "May",     "Jun",     "Jul",     "Aug",     "Sep",     "Oct",     "Nov",     "Dec",   ]} for X-Axis.
I want this to be  xAxisLabelTexts={ [     "Jan",     "Feb",     "Mar",     "Apr",     "May",     "Jun",     "Jul",     "Aug",     "Sep",     "Oct",     "Nov",     "Dec",   ]} so it shows  on x axis instead but it does not  work.

Hi @noelzappy 👋
We already have the label and 'labelComponentproperties in theitem` object that can be used for the same purpose.
For a simple text like your example, we can use label in the item object. The style of the label can be controlled with the labelTextStyle property.
Here's a simple example -
<BarChart
  data={
    [
      {value: 250, label: 'Jan'},
      {value: 500, label: 'Feb'},
      {value: 745, label: 'Mar'},
      {value: 320, label: 'Apr'},
      {value: 600, label: 'May'}
    ]}
/>

Hope it helps. 🤗
Also, you can see the complete list of all different props for BarCharts here
Closing the issue.

Does this apply to LineChart also?

Yes @noelzappy it does apply to LineChart too.
Here's the prop list for Line charts - Line and Area Chart props

Ok. I will check it out. Thanks 😊


Just trigger a CI run

/hold

/retest

Missed tagging a docker image with v1.0.0, let's try again.
/retest


add allow_ip flag availability from URL validator

URL validator validate url and ip (without possibility to exclude ip). That because in URL.call method at initialization HostnameValidation allow_ip flag hard-coded to True.
Added argument allow_ip to URL.init method.

Thank you.


Feature request: @updatedAt field to be update only on change of any specified field in a model, if mentioned any

Problem
@updatedAt field updates only on any change happened on a model
but don't have something that will only update on change happened to specific field of a model
Suggested solution
only syntax as suggestion, something like
update the @updatedAt field on change happened on mentioned field(s)
@updatedAt[filed1, field2, ..., fieldN]      // Need to update only if any change made in one of the multiple mentioned fields

Like : as an example below
modal User {
 id             Int
 name           String
 country        String
 user_type      String
 update_info    DateTime?    @updatedAt[name, country]
}

In the example above update_info will only update when name or country updates
=====================
Benefits
It will avoid a lot of code work needed to be tracked while development,

Any updates on this?

Any news?

encountered this situation, interested in this feature.

i would be interested too! any news on this topic?

also interested, any updates?


move @n1ru4l/graphql-codegen-relay-optimizer-plugin over to graphql-codegen monorepo

move @n1ru4l/graphql-codegen-relay-optimizer-plugin https://github.com/n1ru4l/graphql-codegen-relay-plugins/tree/master/packages/graphql-codegen-relay-optimizer-plugin over to graphql-codegen monorepo

There is also an example app in my monorepo: https://github.com/n1ru4l/graphql-codegen-relay-plugins/tree/master/packages/todo-app-example
Should we move that one over here as well? It kind of served as a test to ensure there are no conflicts with the other plugi^ns.

@n1ru4l Thank you!
Maybe the test repo could be a unit test in this repo? It will be easier to test it this way.

@dotansimha Any examples for a unit test that runs the codegen cli with multiple plugins?

@n1ru4l You need the cli itself or just running the plugins is ok?
Because if you needs the plugins, you can import them directly in your tests (from the src or as a node library, and then run it and merge the outputs together.

@dotansimha I can add these tests later in case anything breaks. Should I also update the docs?

Yes please :)
Thanks @n1ru4l !

@dotansimha Done 👍


Wrap up virtual environment after creation

This is a solution for https://github.com/tox-dev/tox/issues/283 - detox does not completely wrap up the virtual environment after creating it, and keeps recreating the venv for every execution.
Native tox behavior for the skipsdist case is located at https://github.com/msabramo/tox/blob/master/tox/_cmdline.py#L444 - calling venv.finish() writes the necessary configuration so that this environment will be reused in future runs.

This is relevant to me too -- will someone be able to get to this? It's incredibly annoying for me, as I am sometimes working on projects with very large dependency trees and not the fastest internet, and it can take a very long time to regenerate envs...

For now I've cherry-picked both of these commits locally and installed that in my virtualenv. Thanks for the patches, I really hope someone can merge this soon. 👍


estimate gas for a transaction

As a third party wallet,
I would like to know how much gas fee I should charge the user for a transaction in advance
So that I can easily estimate the tx cost and/or collect the gas fee from the user and pay through one of my own addresses.
Recommendation

Add an /estimateFee endpoint to the aggregator and also implement estimateGas method on the Signer such that it works exactly the same as the usual RPC call

Considerations

@JohnGuilding @kautukkundan We've had /estimateFee on the aggregator since March last year #161 (much older than this issue). Is some clarification needed here?

@kautukkundan
When you say 'yeah', is it:

'yeah I know' or
'yeah some clarification is needed'?

😅

Hmm ChatGPT thinks I didn't need to reply 😂

😂 that's one brand new use-case for chatGPT


Marvell aug20

Marvell PR - R8 release - August 13 2019
Description
First Marvell PR. August 13 2019.
This PR includes Marvell SDK R8
Our changes have been applied on top of 201906.00_Major tag from the amazon repository (changelist below). Before uploading to our fork, I made sure that the SDK was building without any issue.
Main changes:
Created binary modules for psm, rfget, partition, wifidriver and wlcmgr.
Additional mdev drivers added:

Checklist:
X     I have tested my changes. No regression in existing tests.
My code is Linted.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Related PR which also in 'open' state -- https://github.com/aws/amazon-freertos/pull/1076


Cross-Site Scripting (XSS) in Permission Management

Version: Papermerge 2.0rc35
Group names are not properly escaped, which leads to XSS if the permissions of a document are edited.
Steps to reproduce
First, create a new group with the following XSS payload as group name:
<script>alert(0)</script>

Then proceed and upload an example document into the papermerge application.
Select the document, right-click and chose Permissions.

After clicking the edit, create or view button, the group name's XSS payload is triggered and executed by the browser.

Steps to mitigate this issue
As previously, it is recommended to escape all untrusted user input before reflecting or storing the data.

@l4rm4nd, thank you for your detailed report. I will take care of XSS fixes!

@l4rm4nd, fix is not part of 2.0.0rc38 release

Seems fixed. Cannot reproduce the XSS vulnerability.


TypeError: Cannot read property 'add' of undefined

Thank you for the boilerplate that is very helpful for me.
The problem I  faced with is  the cooler stater compatibility with ant.design that is our hand to develop react SSR web application.
Additionally we need to do some test with jest and enzyme on the component but I faced with the following problem:
FAIL  src/components/Sidebar/Sidebar.test.js
● Test suite failed to run
TypeError: Cannot read property 'add' of undefined

With it’s stack trace :
  at Object.add (node_modules/antd/lib/icon/icon/index.jsx:23:11)
  at Object.<anonymous> (node_modules/antd/lib/layout/layout/Sider.jsx:19:1)
  at Object.<anonymous> (node_modules/antd/lib/layout/layout/index.jsx:2:1)
  at Object.<anonymous> (src/components/App/AuthorizedWrapper.js:160:38)
  at Object.<anonymous> (src/components/App/index.js:1:1)
  at Object.<anonymous> (src/components/index.js:4:1)
  at Object.<anonymous> (src/components/Sidebar/Sidebar.test.js:3:1)

I was wondering if you would mind me helping with the issue.

@rtagithub This is the issue between ant and jest. Have you found the solution?

yes we done it here https://github.com/parham-fazlali/react-panda

@rtagithub I just see a panda on README bro...


Failing to deploy the app to Azure Spring Apps

Describe the issue:
When executing ./mvnw azure-spring-apps:deploy according to README.md, the error is as follows:

Repro Steps:

Create Azure Spring Apps in portal.
Clone code to local and switch to complete folder.
Config the web app:

export MAVEN_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED"
./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.14.0:config -DadvancedOptions

Deploy the app: ./mvnw azure-spring-apps:deploy

Environment:

OS: Windows desktop.

Expected behavior:
Deploying the app can pass.
@hemarina for notification.

@v-jiaodi thanks for helping testing the readme, could you change the version of maven plugin version from 1.14.0 to 1.18.0 and then rerun the deploy command?
that's to say, you can rerun the command ./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.18.0:config -DadvancedOptions, then run ./mvnw azure-spring-apps:deploy and see if the error still exists

will update the version in https://github.com/spring-guides/gs-spring-boot-for-azure/pull/24

hi @v-jiaodi , now that pr #24 has been merged, could you double check and see if this issue can be closed? thanks


Connected device (the doctor check crashed)

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
when run flutter doctor run
Actual results
[☠] Connected device (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message
      below is not helpful, please let us know about this issue at
      https://github.com/flutter/flutter/issues.
    ✗ Exception: Unable to run "adb", check your Android SDK installation and
      ANDROID_SDK_ROOT environment variable:
      /Users/abduallah/Library/Android/sdk/platform-tools/adb

Logs

Logs

<!-- Paste your logs here -->

Flutter Doctor output

Doctor output

<!-- Paste your output here -->

when connect usb with physical device i get and run flutter doctor i get:
[☠] Connected device (the doctor check crashed)
✗ Due to an error, the doctor check did not complete. If the error message
below is not helpful, please let us know about this issue at
https://github.com/flutter/flutter/issues.
✗ Exception: Unable to run "adb", check your Android SDK installation and
ANDROID_SDK_ROOT environment variable:
/Users/abduallah/Library/Android/sdk/platform-tools/adb

@abdullahgebril
As the error points out and gives you a suggestion to check Android SDK installation and env variable to confirm if the setting is correct ? That is, check if your SDK path is correct or not.
Also, are you using mac or windows ? If mac, then can you check if csrutil is enabled or disabled ?
The error says Exception: Unable to run "adb",, indicating something might be preventing adb to run properly.

I get unable run adb when connect USB cable with physical device, otherwise
adb running on Mac
On Fri, Aug 25, 2023, 10:25 AM darshankawar @.***>
wrote:

@abdullahgebril https://github.com/abdullahgebril
As the error points out and gives you a suggestion to check Android SDK
installation and env variable to confirm if the setting is correct ? That
is, check if your SDK path is correct or not.
Also, are you using mac or windows ? If mac, then can you check if csrutil
is enabled or disabled ?
The error says Exception: Unable to run "adb",, indicating something
might be preventing adb to run properly.
—
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/133294#issuecomment-1692968186,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIAMIRDMXZRQMOX6K75IULXXBOQ7ANCNFSM6AAAAAA35WVHT4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Can you help me with this error? 🙏
On Fri, Aug 25, 2023, 9:03 PM Abdullah Gebreil @.***>
wrote:

I get unable run adb when connect USB cable with physical device,
otherwise adb running on Mac
On Fri, Aug 25, 2023, 10:25 AM darshankawar @.***>
wrote:

@abdullahgebril https://github.com/abdullahgebril
As the error points out and gives you a suggestion to check Android SDK
installation and env variable to confirm if the setting is correct ? That
is, check if your SDK path is correct or not.
Also, are you using mac or windows ? If mac, then can you check if
csrutil is enabled or disabled ?
The error says Exception: Unable to run "adb",, indicating something
might be preventing adb to run properly.
—
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/133294#issuecomment-1692968186,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIAMIRDMXZRQMOX6K75IULXXBOQ7ANCNFSM6AAAAAA35WVHT4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Please check if you have any utility on mac that might be preventing adb to run properly. You can check on support channels like StackOverflow for the error you are getting.

[☠] Flutter (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
about this issue at https://github.com/flutter/flutter/issues.
X Exception: Cannot find the executable for where. This can happen if the System32 folder (e.g.
C:\Windows\System32 ) is removed from the PATH environment variable. Ensure that this is present and then try
again after restarting the terminal and/or IDE.

Now only get black screen on simulator, I am using xcode 14.3.1
On Thu, Aug 31, 2023, 4:33 AM Ririn238 @.***> wrote:

[☠] Flutter (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message
below is not helpful, please let us know
about this issue at https://github.com/flutter/flutter/issues.
X Exception: Cannot find the executable for where. This can happen if the
System32 folder (e.g.
C:\Windows\System32 ) is removed from the PATH environment variable.
Ensure that this is present and then try
again after restarting the terminal and/or IDE.
—
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/133294#issuecomment-1700284851,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIAMIXBQZPRLEKAHZOA2B3XX7ZY5ANCNFSM6AAAAAA35WVHT4
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Ririn238 Your issue is different. It has suggestion you can try:
This can happen if the System32 folder (e.g.
C:\Windows\System32 ) is removed from the PATH environment variable. Ensure that this is present and then try
again after restarting the terminal and/or IDE.

@abdullahgebril
Is your originally reported error resolved ? The one you mentioned above looks like a different issue.

No not working but I changed my laptop, and now I really need to solve this
issue when simulator open I getting only black screen, so please give me
some solutions about this issue 🙏
On Thu, Aug 31, 2023, 7:35 AM darshankawar @.***> wrote:

@abdullahgebril https://github.com/abdullahgebril
Is your originally reported error resolved ? The one you mentioned above
looks like a different issue.
—
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/133294#issuecomment-1700395342,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIAMIWYSAQ74FDCUWEON7LXYAPDRANCNFSM6AAAAAA35WVHT4
.
You are receiving this because you were mentioned.Message ID:
@.***>

when simulator open I getting only black screen, so please give me some solutions about this issue 🙏

@abdullahgebril Please provide some code sample that we can use to verify this behavior.
Also, this issue seems more appropriate for a support channel like StackOverflow.


Configs for SSF adapter models not available

Hi! Reopening this as I ran into problems with the SSF adapter model -- configs for training them seem to not be available.
Could you provide a fix for this?
I'm attaching the log for reference
2024-01-17 20:54:51,168 [_builder.py] => No pretrained configuration specified for vit_base_patch16_224_in21k model. Using a default. Please add a config to the model pretrained_cfg registry or pass explicitly.
Traceback (most recent call last):
  File "/media/bayesiankitten/Hanson/RanPAC-main/main.py", line 18, in <module>
    main()
  File "/media/bayesiankitten/Hanson/RanPAC-main/main.py", line 15, in main
    train(args)
  File "/media/bayesiankitten/Hanson/RanPAC-main/trainer.py", line 20, in train
    ave_acc=_train(args)
  File "/media/bayesiankitten/Hanson/RanPAC-main/trainer.py", line 54, in _train
    model = Learner(args)
  File "/media/bayesiankitten/Hanson/RanPAC-main/RanPAC.py", line 77, in __init__
    self._network = SimpleVitNet(args, True)
  File "/media/bayesiankitten/Hanson/RanPAC-main/inc_net.py", line 196, in __init__
    super().__init__(args, pretrained)
  File "/media/bayesiankitten/Hanson/RanPAC-main/inc_net.py", line 154, in __init__
    self.convnet = get_convnet(args, pretrained)
  File "/media/bayesiankitten/Hanson/RanPAC-main/inc_net.py", line 87, in get_convnet
    model=timm.create_model("vit_base_patch16_224_in21k_ssf",pretrained=True, num_classes=0)
  File "/media/bayesiankitten/Alexander/anaconda3/envs/py310/lib/python3.10/site-packages/timm/models/_factory.py", line 117, in create_model
    model = create_fn(
  File "/media/bayesiankitten/Hanson/RanPAC-main/petl/vision_transformer_ssf.py", line 857, in vit_base_patch16_224_in21k_ssf
    model = _create_vision_transformer('vit_base_patch16_224_in21k', pretrained=pretrained, **model_kwargs)
  File "/media/bayesiankitten/Hanson/RanPAC-main/petl/vision_transformer_ssf.py", line 738, in _create_vision_transformer
    pretrained_custom_load='npz' in pretrained_cfg['url'],
TypeError: 'PretrainedCfg' object is not subscriptable

@drimpossible , I am unable to reproduce this problem in my current python conda environment. My understanding is that pre-trained_cfg is part of the model downloaded from timm.  My best guess is you are using an older (or maybe newer) version of timm. I am using timm==0.6.12. Can you try changing to that and see if he problem persists?

Ah yep, that's correct. I was using a newer version of timm==0.9, downgraded and it worked!~ Thanks.

Thanks for  confirming that. At some point I'll see what can be done to make everything work with different timm versions...

Hi! Embarassingly, I reproduced CIFAR100 which didn't require the SSF models.
Running ImageNet-A which does require ssf models, the error persists. It was not a timm package issue.
(py310) RanPAC-main > python
Python 3.10.12 (main, Jul  5 2023, 18:54:27) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import timm
>>> timm.__version__
'0.6.12'
>>> exit()
(py310) RanPAC-main > bash reproduce_gpu_1.sh
2024-01-21 13:04:13,054 [trainer.py] => Starting new run
2024-01-21 13:04:13,055 [trainer.py] => ID: 7
2024-01-21 13:04:13,055 [trainer.py] => dataset: imageneta
2024-01-21 13:04:13,055 [trainer.py] => shuffle: True
2024-01-21 13:04:13,055 [trainer.py] => init_cls: 2
2024-01-21 13:04:13,055 [trainer.py] => increment: 1
2024-01-21 13:04:13,055 [trainer.py] => model_name: ssf
2024-01-21 13:04:13,055 [trainer.py] => convnet_type: pretrained_vit_b16_224_in21k_ssf
2024-01-21 13:04:13,055 [trainer.py] => device: [device(type='cuda', index=0)]
2024-01-21 13:04:13,055 [trainer.py] => seed: 1993
2024-01-21 13:04:13,055 [trainer.py] => batch_size: 48
2024-01-21 13:04:13,055 [trainer.py] => tuned_epoch: 20
2024-01-21 13:04:13,055 [trainer.py] => body_lr: 0.01
2024-01-21 13:04:13,055 [trainer.py] => head_lr: 0.01
2024-01-21 13:04:13,055 [trainer.py] => weight_decay: 0.0005
2024-01-21 13:04:13,055 [trainer.py] => min_lr: 0.0
2024-01-21 13:04:13,055 [trainer.py] => use_RP: True
2024-01-21 13:04:13,055 [trainer.py] => M: 10000
2024-01-21 13:04:13,055 [trainer.py] => use_input_norm: False
2024-01-21 13:04:13,055 [trainer.py] => do_not_save: False
Traceback (most recent call last):
  File "/media/bayesiankitten/Hanson/RanPAC-main/main.py", line 18, in <module>
    main()
  File "/media/bayesiankitten/Hanson/RanPAC-main/main.py", line 15, in main
    train(args)
  File "/media/bayesiankitten/Hanson/RanPAC-main/trainer.py", line 20, in train
    ave_acc=_train(args)
  File "/media/bayesiankitten/Hanson/RanPAC-main/trainer.py", line 54, in _train
    model = Learner(args)
  File "/media/bayesiankitten/Hanson/RanPAC-main/RanPAC.py", line 77, in __init__
    self._network = SimpleVitNet(args, True)
  File "/media/bayesiankitten/Hanson/RanPAC-main/inc_net.py", line 196, in __init__
    super().__init__(args, pretrained)
  File "/media/bayesiankitten/Hanson/RanPAC-main/inc_net.py", line 154, in __init__
    self.convnet = get_convnet(args, pretrained)
  File "/media/bayesiankitten/Hanson/RanPAC-main/inc_net.py", line 87, in get_convnet
    model=timm.create_model("vit_base_patch16_224_in21k_ssf",pretrained=True, num_classes=0)
  File "/media/bayesiankitten/Alexander/anaconda3/envs/py310/lib/python3.10/site-packages/timm/models/factory.py", line 71, in create_model
    model = create_fn(pretrained=pretrained, pretrained_cfg=pretrained_cfg, **kwargs)
  File "/media/bayesiankitten/Hanson/RanPAC-main/petl/vision_transformer_ssf.py", line 857, in vit_base_patch16_224_in21k_ssf
    model = _create_vision_transformer('vit_base_patch16_224_in21k', pretrained=pretrained, **model_kwargs)
  File "/media/bayesiankitten/Hanson/RanPAC-main/petl/vision_transformer_ssf.py", line 732, in _create_vision_transformer
    print(pretrained_cfg['url'])
UnboundLocalError: local variable 'pretrained_cfg' referenced before assignment
(py310) RanPAC-main >

So its all good now @drimpossible ?

Yes, all good! It ran


Add Linux support

I was getting these errors before on swift 5.3 images:
.build/checkouts/SwiftyXMLParser/SwiftyXMLParser/Parser.swift:60:31: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
        func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String]) {
                              ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
.build/checkouts/SwiftyXMLParser/SwiftyXMLParser/Parser.swift:73:31: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
        func parser(_ parser: XMLParser, foundCharacters string: String) {
                              ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
.build/checkouts/SwiftyXMLParser/SwiftyXMLParser/Parser.swift:81:31: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
        func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
                              ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
.build/checkouts/SwiftyXMLParser/SwiftyXMLParser/Parser.swift:88:31: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
        func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
                              ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject
                 ^
.build/checkouts/SwiftyXMLParser/SwiftyXMLParser/Parser.swift:28:29: error: cannot find type 'XMLParserDelegate' in scope
    class Parser: NSObject, XMLParserDelegate {
                            ^~~~~~~~~~~~~~~~~
.build/checkouts/SwiftyXMLParser/SwiftyXMLParser/Parser.swift:37:26: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
            let parser = XMLParser(data: data)
                         ^~~~~~~~~
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
public typealias XMLParser = AnyObject

Thanks!


[New API] : Authentication and Authorization API:

Brief Description 🤓
About the API
Implement an API for managing user authentication and authorisation, including features such as user registration, login, password reset, and access control. This API could provide developers with a secure and calculable solution for handling user authentication in their applications.
How will you develop it?🤩
API Development: Authentication and Authorisation API
Overview
The Authentication and Authorisation API aims to provide developers with a secure solution for user authentication and access control in their applications.
Features
User Registration and Management

Description: Allow users to register accounts, manage profiles, and update information.
Implementation: RESTful endpoints for registration, profile management, password reset, and account deletion.

User Authentication

Description: Support authentication mechanisms like username/password, OAuth, and JWT.
Implementation: Middleware for validating credentials, generating/verifying JWT tokens, and managing sessions.

Access Control and Authorization

Description: Define RBAC or ABAC policies to regulate resource access.
Implementation: Middleware for enforcing access control based on user roles, permissions, or attributes.

Security Features

Description: Include features such as password hashing, encryption, rate limiting, and IP whitelisting.
Implementation: Integration with bcrypt, JWT, and firewall rules for security.

Technologies and Tools

Node.js, Express.js
Passport.js, JSON Web Tokens (JWT)
MongoDB or PostgreSQL
Postman, bcrypt

API Endpoints

User Registration: POST /api/auth/register
User Login: POST /api/auth/login
Profile Management: PUT /api/users/:id

Testing Strategy

Unit Tests: Ensure functionality and error handling.
Integration Tests: Verify interactions between components.
Manual Testing: Validate behavior and edge cases using Postman.

Documentation Plan

API Documentation: Generate using Swagger or Postman.
Usage Examples: Provide code snippets and scenarios for integration.

Deployment
None
Select the open source program you are contributing to
Other
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINES of this project.

Greetings @Suyash878🎀 ! , We are excited to have you dive into another issue with us!🚀
Your involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇.  Use command /gdsc to self assign the issue.  This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.
We request you to follow CONTRIBUTING GUIDELINES.
Looking for your PR soon!
In case of any issues, you can contact us on Discord.❣

Hey @Suyash878 ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.
In case of any issues, you can contact us on Discord.
Thank you! ❣
Happy Coding! ✨
Will See you soon❣

I came to realise someone else is already working on this idea.

Hey @Suyash878 ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.
In case of any issues, you can contact us on Discord.
Thank you! ❣
Happy Coding! ✨
Will See you soon❣

Hey @Suyash878 ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.
In case of any issues, you can contact us on Discord.
Thank you! ❣
Happy Coding! ✨
Will See you soon❣


soundwork-list/src/instructions/buy_listing.rs

#[inline(never)]

This line still needed?

This is no longer required.
Downgraded to solana-cli 1.18.11 (src:48254fa2; feat:3469865029, client:Agave) to resolve the stack overflow issues


Unable to pass default environment values

I'm having a hard time to pass values to helmfile template. I have following helmfile
repositories:
  - name: stable
    url: https://kubernetes-charts.storage.googleapis.com
environments:
  default:
    values:
    - defaults.yaml
releases:
  - name: "{{ .Values.nginxIngressRelease }}"
    chart: stable/nginx-ingress
    values:
      - ingx-values.yaml
    atomic: true
  - name: "{{ .Values.nginxIngressRelease }}"-to-sd
    chart: stable/prometheus-to-sd
    values:
      - metricsSources:
          nginx-ingress-metrics: http://{{ .Values.nginxIngressRelease }}-nginx-ingress-controller-metrics:9913
    atomic: true

with defaults.yaml looking like this
nginxIngressIP: <IP_ADDRESS>
nginxIngressRelease: ingx

but I'm getting an error while running helmfile --log-level=debug template
processing file "helmfile.yaml" in directory "."
first-pass rendering starting for "helmfile.yaml.part.0": inherited=&{default map[] map[]}, overrode=<nil>
first-pass uses: &{default map[] map[]}
replaced <no value>s to workaround https://github.com/golang/go/issues/24963 to address https://github.com/roboll/helmfile/issues/553:
  strings.Join({
      ... // 6 identical lines
      "    - defaults.yaml",
      "releases:",
-      `  - name: "<no value>"`,
+      `  - name: ""`,
      "    chart: stable/nginx-ingress",
      "    values:",
      "      - ingx-values.yaml",
      "    atomic: true",
-      `  - name: "<no value>"-to-sd`,
+      `  - name: ""-to-sd`,
      "    chart: stable/prometheus-to-sd",
      "    values:",
      "      - metricsSources:",
-      "          nginx-ingress-metrics: http://<no value>-nginx-ingress-controller-metrics:9913",
+      "          nginx-ingress-metrics: http://-nginx-ingress-controller-metrics:9913",
      "    atomic: true",
      "",
  }, "\n")

could not deduce `environment:` block, configuring only .Environment.Name. error: failed to read helmfile.yaml.part.0: reading document at index 1: yaml: line 13: did not find expected key
error in first-pass rendering: result of "helmfile.yaml.part.0":
 0: repositories:
 1:   - name: stable
 2:     url: https://kubernetes-charts.storage.googleapis.com
 3: environments:
 4:   default:
 5:     values:
 6:     - defaults.yaml
 7: releases:
 8:   - name: "<no value>"
 9:     chart: stable/nginx-ingress
10:     values:
11:       - ingx-values.yaml
12:     atomic: true
13:   - name: "<no value>"-to-sd
14:     chart: stable/prometheus-to-sd
15:     values:
16:       - metricsSources:
17:           nginx-ingress-metrics: http://<no value>-nginx-ingress-controller-metrics:9913
18:     atomic: true
19:

first-pass produced: &{default map[] map[]}
first-pass rendering result of "helmfile.yaml.part.0": {default map[] map[]}
second-pass rendering failed, input of "helmfile.yaml.part.0":
 0: repositories:
 1:   - name: stable
 2:     url: https://kubernetes-charts.storage.googleapis.com
 3: environments:
 4:   default:
 5:     values:
 6:     - defaults.yaml
 7: releases:
 8:   - name: "{{ .Values.nginxIngressRelease }}"
 9:     chart: stable/nginx-ingress
10:     values:
11:       - ingx-values.yaml
12:     atomic: true
13:   - name: "{{ .Values.nginxIngressRelease }}"-to-sd
14:     chart: stable/prometheus-to-sd
15:     values:
16:       - metricsSources:
17:           nginx-ingress-metrics: http://{{ .Values.nginxIngressRelease }}-nginx-ingress-controller-metrics:9913
18:     atomic: true
19:

err: error during helmfile.yaml.part.0 parsing: template: stringTemplate:9:21: executing "stringTemplate" at <.Values.nginxIngressRelease>: map has no entry for key "nginxIngressRelease"
in ./helmfile.yaml: error during helmfile.yaml.part.0 parsing: template: stringTemplate:9:21: executing "stringTemplate" at <.Values.nginxIngressRelease>: map has no entry for key "nginxIngressRelease"

It looks like it doesn't load defaults.yaml even I'm following the documentation in README.md. I have a latest release of helmfile helmfile version v0.85.2

@zen4ever Hey! Could you try replacing this:
  - name: "{{ .Values.nginxIngressRelease }}"-to-sd

to:
Could you try replacing this:
  - name: "{{ .Values.nginxIngressRelease }}-to-sd"

The important point here is that, in order for Helmfile to load defaults.yaml, it should somehow obtain a valid YAML document BEFORE loading the defaults.yaml.
My guess is that rendering your helmfile.yaml without the contents of defaults.yaml results in name: "{{ .Values.nginxIngressRelease }}"-to-sd rendered to name: ""-to-sd which (I believe) can be a YAML syntax error. If that's the case, moving the closing double-quote to the end of the yaml hash value part would fix it.

Thanks for your help @mumoshu, you are right, it was an invalid YAML, once I fixed it everything worked. I think error could more clear though.