[Question] - What is the recommended way to sign an AWS request using AWSSignerV4?

Hi all,
I'm going to create an ElasticSearch Service that will live on a VPC instead of exposing a public IP address so only my compute resources which correct IAM policies will be able to reach it.
To achieve that my AWS compute resources will need to make signed requests to ES domain endpoints and I would like to know how is the best way to sign those requests using AWSSignerV4.

If you are calling ElasticSearch commands, you can setup ElasticsearchService to use a custom endpoint.
let elasticSearch = ElasticsearchService(endpoint: "https://my-endpoint")

If you just want to sign a URL you can do this via the ElasticsearchService client. It is preferable you do this via the client rather than through AWSSignerV4.
elasticSearch.client.signURL(url: URL, httpMethod: String, expires: Int = 86400)

In v5 which is currently in alpha you can call
elasticSearch.signURL(url: URL, httpMethod: String, expires: Int = 86400)

This returns a EventLoopFuture<URL> as the service credentials might not be ready at that point.

If you are calling ElasticSearch commands, you can setup ElasticsearchService to use a custom endpoint.

I'm going to make calls to index, update and delete documents so I think this customs endpoint is not going to work.

If you just want to sign a URL you can do this via the ElasticsearchService client. It is preferable you do this via the client rather than through AWSSignerV4.

I will need to also use request's body when signing because I'll need to make PUT and POST requests when I need to create or update a document. In this case do I need to use AWSSignerV4 directly?
If so, do you think it would be a nice to add signHeaders and signURL to AWSClient?

Not sure you can have unsigned payloads with ElasticsearchService,so you are probably best using AWSSigner.signHeaders.
If you want to use AWSSigner you can do it as follows.
let credentials: Credential = StaticCredential(accessKeyId: "MYACCESSKEY", secretAccessKey: "MYSECRETACCESSKEY")
let signer = AWSSigner(credentials: credentials, name: "es", region: "MYREGION")
let headers = signer.signHeaders(
    url: URL(string: "https://MYURL")!,
    method: .PUT,
    headers: MYHEADERS,
    body: .data(MYDATA)
)

Not sure you can have unsigned payloads with ElasticsearchService,so you are probably best using AWSSigner.signHeaders.
If you want to use AWSSigner you can do it as follows.
let credentials: Credential = StaticCredential(accessKeyId: "MYACCESSKEY", secretAccessKey: "MYSECRETACCESSKEY")
let signer = AWSSigner(credentials: credentials, name: "es", region: "MYREGION")
let headers = signer.signHeaders(
    url: URL(string: "https://MYURL")!,
    method: .PUT,
    headers: MYHEADERS,
    body: .data(MYDATA)
)

Thanks for your help!
Earlier you mentioned:

In v5 which is currently in alpha you can call

elasticSearch.signURL(url: URL, httpMethod: String, expires: Int = 86400)
This returns a EventLoopFuture as the service credentials might not be ready at that point.

Please let me know if you think is worth adding http header signing capabilities to the AWSClient and I will gladly submit a PR adding this feature following the same lines the of signURL methods.

I'd rather not add the header signing wrapper to AWSClient and increase the public API surface. It is mainly used internally and this is the first case where I have seen it to needed elsewhere. So I think the method above should suffice.
I added signURL to the AWSClient because I see a request for that at least once every week.
thanks anyway

I'm gonna close this if we are done

@yuriferretti don't know if you noticed I ended up adding a signHeaders function which is available from all service objects. So now you can do the following
func elasticSearchExecute(url: String, method: HTTPMethod, headers: HTTPHeaders, body: AWSPayload = .empty) -> EventLoopFuture<HTTPClient.Response> {
    let es = ElasticsearchService(client: awsClient, region: .useast1)
    return es.signHeaders(
        url: URL(string: url)!,
        httpMethod: method,
        headers: headers,
        body: body
    ).flatMap { headers in
        let request = try! HTTPClient.Request(
            url: url,
            method: method,
            headers: headers,
            body: body.asByteBuffer().map { .byteBuffer($0) }
        )
        return httpClient.execute(request: request, logger: logger)
    }
}


[image_picker] android studio suggests to not use android.media.ExifInterface

android studio suggests not using android.media.ExifInterface and using android.support.media.ExifInterface , however , migrating to androidX results to it becoming  androidx.exifinterface.media.ExifInterface ,it also needs adding
// implementation 'androidx.exifinterface:exifinterface:1.0.0'
// implementation 'androidx.legacy:legacy-support-v4:1.0.0'
to the dependencies

Is this related to https://github.com/flutter/plugins/pull/1114. I feel like these 2 changes could be in the same PR.

Closing this PR and we can track the process in #1114


[WIP] Support create_table with PAY_PER_REQUEST billing mode of DynamoDB

Thank you for this great library.
This is a patch for #2046 .
WIP - check if the tests fail or not.

Coverage increased (+0.001%) to 93.072% when pulling 504d358963200f27ff11233865848f3eeddc5139 on shiba24:dynamodb2_pay_per_request into 4a286c4bc288933bb023396e2784a6fdbb966bc9 on spulec:master.

@mikegrima are you a maintainer of this project? Could you check this PR?


Incorporate non-standard proposal in pdf workflow

Fix for issue #572. I got rid of now obsolete pdf templates and made sure the pre-assessment and pre-approval proposals are properly incorporated in the new PDF workflow.
Maybe the pdf_template_name function can be removed entirely? I guess it is not being used in this version. What do y'all think?
@tymees I did notice that the change to https in the handle_field_file function of the RowValueClass causes an error in my browser when clicking links in the pdf, with the error code: SSL_ERROR_RX_RECORD_TOO_LONG
However, Django tells me this is because the development server only support http:
You're accessing the development server over HTTPS, but it only supports HTTP.
So it will be fine on the production server?

@tymees I did notice that the change to https in the handle_field_file function of the RowValueClass causes an error in my browser when clicking links in the pdf, with the error code: SSL_ERROR_RX_RECORD_TOO_LONG
However, Django tells me this is because the development server only support http:
You're accessing the development server over HTTPS, but it only supports HTTP.
So it will be fine on the production server?

I'll look at this PR tomorrow in-depth. But for now:
Yeah, it's because local dev doesn't have https. Normally, you'd solve this by retrieving the used protocol (http vs https) from the request object; but PDF gen doesn't (always) have access to that.
It will be fine on the server, those are HTTPS only. You could maybe create an if on the DEBUG setting, but I don't have any strong opinions tbh


Connection problems using mTLS are not shown as exceptions

Describe the bug
(A clear and concise description of what the bug is.)
Attempting to set up an mTLS connection is tricky. Certificates must be in the right place, keystore passwords must be correct, and the server running kafka-ui must be able to talk to the server running kafka. Currently it seems like connection problems are squashed when using mTLS.
Set up
(How do you run the app?)
Kubernetes
Steps to Reproduce
Steps to reproduce the behavior:

Set up a valid keystore/truststore combination
Set the broker URL to something obviously incorrect (i.e. google.com)
Observe no exception is thrown in the logs, and the connection is simply reattempted

or

Set up a valid keystore/truststore combination
Set the broker URL to a valid URL, but firewall the connection
Observe no exception is thrown in the logs, and the connection is simply reattempted

Expected behavior
(A clear and concise description of what you expected to happen)
Some detail on why the kafka-ui is reattempting to connect (is the host unreachable? are the certs invalid?).
Screenshots
(If applicable, add screenshots to help explain your problem)

This, along with the admin config, get printed out in the logs repeatedly.
Additional context
(Add any other context about the problem here)

@dmichelin. Thx for creating this issue. We'll try to fix it soon.


Need to reinstall libudev1 for ubuntu22

Looking into what makes the CI fail in https://github.com/mavlink/MAVSDK/pull/1816

Seems like the problem got solved in the github images. No need for this fix anymore.


[WIP]docs(sweep): remove renderer throughout

There is one more file that I don't know quite how to approach:
Testing

Thanks. I took care of the testing and amended your commit.


Test Pretrain model for single image

Thanks for an amazing repository.
How can I test the result with Cityscapes pre-trained weights for the single image?

Same question, pls help~

@PingoLH @Mps24-7uk @huang45
I have same issue.
I am trying to use test.py to test a single (or couple of) images.
Can you share a typical test.py command line to do this?
I am using the following but it is not working:
python test.py --model_path '/home/arl/Documents/FCHARDNET/FCHarDNet-master/ptsemseg/models/hardnet.py' --dataset 'cityscapes' --input '/home/arl/Documents/FCHARDNET/FCHarDNet-master/test_image/index.jpeg' --output '/home/arl/Documents/FCHARDNET/FCHarDNet-master/test_image/index_output.jpeg'
In particular what should the --model_path point to? hardnet.py? or the weights *.pkl?
Also why does --dataset point to cityscapes if I am trying to test my own data?
I get the following error:
File "test.py", line 122, in
test(args)
File "test.py", line 39, in test
device, model, loader = init_model(args)
File "test.py", line 24, in init_model
test_mode=True
File "/home/arl/Documents/FCHARDNET/FCHarDNet-master/ptsemseg/loader/cityscapes_loader.py", line 82, in init
self.images_base = os.path.join(self.root, "leftImg8bit", self.split)
File "/home/arl/anaconda3/envs/rgbsemseg/lib/python3.6/posixpath.py", line 80, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType


Crash when trying to enter a song

Describe your bug here. If you are modding, try testing your bug in a clean version of the engine instead. Also, if you're using an older version of JSE, please try the latest version/action build. Also, be sure to check the pinned 'JS Engine: Known Issues' issue, to check if your issue hasn't already been found!
1.32.2
Command Prompt/Terminal/Crash logs (if existing)
It crashed without a crashlog i have proof of it (check next field)

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
I had like 1.29.something and i had the note color mode set to be by character and i disabled it when i tried making a mod and crashed when placing a note on the chart editor it crashed

i have a video but its on a mod i have been making for a while that i just updated the Engine today

https://drive.google.com/file/d/1m4XEmuV-G16TN3CX82RJjxsc9tw-t-tI/view?usp=sharing

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
I didnt edit anything
If you use 1.12.0 or earlier, did you have Optimized Chart Loading turned on?
None
Did you check for any similar issues to what you're reporting? Check, then come back here. If there is a similar issue, then do not report the issue, otherwise it will be marked as a duplicate.
No

this is because the engine uses an new color system and noteskins for the new color system

also, i'd suggest NOT using the Char-Based note colors if you're charting a song in the editor! also, please try opening the visuals & UI menu to reset your noteskin and splash settings to their defaults. if it still crashes, try changing the note splash and skin options. if it STILL crashes, idk

they were also moved to a new folder so that’s very likely why

if still crashes doing another splash but not physcs engine

i disabled that and it didnt work Char-Based note i might try to disable it in an older version

i will try disabling everything about notes

any fix? there is one mod that crashes on the new update that i have

I had to wait to till the settings file updated to try ty for the help

np


Using SCons tools

This is a PR to remove the language builders from the main SConstruct file, and put them into their own tools.
I confirm that everything compiles on my machine, but GH actions will prove me right or wrong on general Ubuntu, and I have no idea what's gonna happen on Windows.
This was inspired by my thought process on #976, and it gives us a structure for future compiled languages.
I did not touch the Copier builder, and there are probably things I could remove for uniformity in rust_SConscript.
Apart from that, if you have any remark, feel free to leave them here.

From the SCons docs:

At the moment, user-added tools do not automatically have their exists function called. As a result, it is recommended that the generate function be defensively coded - that is, do not rely on any necessary existence checks already having been performed. This is expected to be a temporary limitation, and the exists function should still be provided.

I'm not sure how this would best be remedied. Immediately returning from the generate functions isn't viable, as the build script sees that as a success and crashes SCons in it's entirety when it tries to build that language with an AttributeError.
I think we should add some sentry value instead of the builder to avoid the AttributeError, and then have the SConscripts check against this value and fail immediately and print some message. I would prefer it fail when SCons tries to build the tool, but I can't find how we would achieve this.
We could have the languages dictionary accessible through the Environment, and remove languages that can't be built from it when the generate function gets called, but I fear this would end up hard to debug and obscure.

I'm also not a massive fan of having two directories just for SCons plumbing, but it's just a minor gripe.

I'm also not a massive fan of having two directories just for SCons plumbing, but it's just a minor gripe.

This could be remedied simply by putting both the builders and sconscripts directories in a scons directory, and changing toolpath=['builders'] to toolpath=['scons/tools'] or something like that

I'm not sure how this would best be remedied. Immediately returning from the generate functions isn't viable, as the build script sees that as a success and crashes SCons in it's entirety when it tries to build that language with an AttributeError.

This is something that is remedied by the Kotlin tool in scons-contrib repository, something like this:

class ToolKotlinWarning(SCons.Warnings.SConsWarning):
    pass

class KotlinNotFound(ToolKotlinWarning):
    pass

SCons.Warnings.enableWarningClass(ToolKotlinWarning)

def _detect(env):
    """ Try to detect the kotlinc binary """
    try:
        return env["kotlinc"]
    except KeyError:
        pass

    kotlin = env.WhereIs("kotlinc")
    if kotlin:
        return kotlin

    raise SCons.Errors.StopError(KotlinNotFound, "Could not detect kotlinc executable")
    return None

with generate calling env['KOTLINC'] = _detect(env). It is probably a good enough solution, but potentially prevents building entirely, so I'll try that.

Following discussion on Discord, @PeanutbutterWarrior and I converged to this version.
The only thing left is to decide whether or not we want to have a single directory for SCons thingies, or if we keep two.


Cannot deleteOne when a blob is part of the PK (Tables, v1.0.18)

When trying a deleteOne on a Table with this in the primary key:
...
                "p_blob": {
                    "type": "blob"
                },
...

the deleteOne looking like this:
{
    "deleteOne": {
        "filter": {
            "p_ascii": "abc",
            "p_bigint": 10000,
            "p_blob": {
                "$binary": "q83vASNFZ4k="
            },
            "p_boolean": false
       }
    }
}

the command fails with HTTP 200 and:
{
    "errors": [
        {
            "message": "Server internal error: Unrecognized JsonExtensionType: BINARY",
            "errorCode": "SERVER_INTERNAL_ERROR"
        }
    ]
}

Note: if trying the relaxed repr. in the filter, i.e. ... "p_blob": "q83vASNFZ4k=", ..., the error becomes Server failed: root cause: (io.stargate.sgv2.jsonapi.exception.catchable.ToCQLCodecException) Error trying to convert to targetCQLType BLOB from value.class java.lang.String, value "q83vASNFZ4k=". Root cause: no codec matching value type instead.

Yes, codec and filter interaction is not covered by basic codec work (which supports Insert and Find operations). So this sounds like a gap; I think @Yuqi-Du and @amorton are working on Delete (with filters).

Moving To Do, we need a basic reproduction case with the full table schema and then re-test to see if other changes have fixed things
maybe related to:
#1697
#1698 - test we return it correctly when in the PK
#1480

This issue hasn't been fixed in previous changes. Here is the basic reproduction:
Create Table:
{
    "createTable": {
        "name": "test",
        "definition": {
            "columns": {
                "p_ascii": {
                    "type": "ascii"
                },
                "p_bigint": {
                    "type": "bigint"
                },
                "p_blob": {
                    "type": "blob"
                },
                "p_boolean": {
                    "type": "boolean"
                }
            },
            "primaryKey": {
                "partitionBy": [
                    "p_ascii",
                    "p_blob"
                ],
                "partitionSort": {
                    "p_bigint": 1,
                    "p_boolean": -1
                }
            }
        }
    }
}

Delete One:
{
    "deleteOne": {
        "filter": {
            "p_ascii": "abc",
            "p_bigint": 10000,
            "p_blob": {
                "$binary": "q83vASNFZ4k="
            },
            "p_boolean": false
       }
    }
}

Response:
{
    "errors": [
        {
            "message": "Server internal error: Unrecognized JsonExtensionType: BINARY",
            "errorCode": "SERVER_INTERNAL_ERROR",
            "exceptionClass": "JsonApiException",
            "id": "fbc355a0-3f12-445d-9d30-74b21e6c079c",
            "title": "Server internal error",
            "family": "SERVER",
            "scope": "EMPTY"
        }
    ]
}

Note: the second example ... "p_blob": "q83vASNFZ4k=", ... has been fixed:
Create Table:
{
    "createTable": {
        "name": "test",
        "definition": {
            "columns": {
                "p_ascii": {
                    "type": "ascii"
                },
                "p_bigint": {
                    "type": "bigint"
                },
                "p_blob": {
                    "type": "blob"
                },
                "p_boolean": {
                    "type": "boolean"
                }
            },
            "primaryKey": {
                "partitionBy": [
                    "p_ascii",
                    "p_blob"
                ],
                "partitionSort": {
                    "p_bigint": 1,
                    "p_boolean": -1
                }
            }
        }
    }
}

Delete One:
{
    "deleteOne": {
        "filter": {
            "p_ascii": "abc",
            "p_bigint": 10000,
            "p_blob":"q83vASNFZ4k=",
            "p_boolean": false
       }
    }
}

Response:
{
    "errors": [
        {
            "message": "Only values that are supported by the column data type can be included when filtering.\n\nThe table default_keyspace.test defines the columns: p_ascii(ascii), p_blob(blob), p_bigint(bigint), p_boolean(boolean).\nThe command included the column p_blob that has BLOB type defined.\n\nResend the command using only supported column values.",
            "scope": "FILTER",
            "errorCode": "INVALID_FILTER_COLUMN_VALUES",
            "exceptionClass": "FilterException",
            "id": "6fd544f2-e7ae-45ba-b213-a38e0c7d22d7",
            "family": "REQUEST",
            "title": "Column value in filter is not valid"
        }
    ]
}


Visual bug with bootstrap 5

Laravel Version: v8.77.0
PHP Version: v8.0.13
Database Driver & Version:

Description:
Laravel update bootstrap 4 to 5 but the forms are still using bootstrap 4 so it doesn't display properly.
For example:
{{ __('E-Mail Address') }}
should be:
{{ __('E-Mail Address') }}
the "text-md-right" not longer used in bootstrap 5 should be "text-md-end"
Steps To Reproduce:

This will be fixed in today's release of laravel/ui. Thanks


Argument order to take function last

By default function should be passed as last argument.
Work out how to setup changelog

Switch argument order of throttle arguments

There are further functions such as apply that also break this rule

I'm confused as to why you would want to switch all methods to have function be last argument. Making methods take their data as the last argument is what makes methods composable, and is the very reason why underscore/lodash is unsuitable for functional programming. Maybe I am mistaken on the intention of this issue?

I think it depends how you are composing, I think. If all functions are curried then having a function as last args means you can do the following.
var throttleToMyLimit = throttle(100);

var logIt = throttleToMyLimit(console.log);

Although I think it might make sense to have a function with the arguments reversed so throttle and throttleTo could exist like delay and delayFor

This is very different from the direction we took with Ramda, and I'm trying to see the advantage.
To me the order is straightforward: from the parameter least likely to change to the one most likely to change.  A simple example is map.   This seems a much more likely requirement:
var squareAll = map(square) ;
squareAll([1, 2, 3]): //=> [1, 4, 9]
squareAll([4, 5, 6]); //=> [16, 25, 36]

than does this:
var map123 = map ([1, 2, 3]);
map123(square) ; //=> [1, 4, 9]
map123(add(1)); //=> [2, 3, 4]

So the transformation function should be the first parameter and the list of values second.   And most every function works this way.

@CrossEye I agree with what you are saying there.
I think the same logic applies(although the terms might get more confusing) with functions on functions.
If you have a library of higer-order functions who's purpose is to modify other raw functions then the raw function to be modified should be supplied as the last parameter.
So in the example of throttle it make sense to me to be throttle(delay, rawFunction)
And use of the curried form acts as a factory to produce preconfigued throttling functions
var throttle100 = throttle(100);
throttle100(rawFunction);

I think I was reacting more to the title than to your example.  throttle seems either ambiguous to me or perhaps slightly biased toward function-last.  That's reasonable.  From the title, I thought you meant to change to function-last everywhere.
Carry on.  Don't mind me.  : smile:


Object type Parameters not showing on swagger page

I have the following contract, used as the request body
public class Vehicle
{
public object id {get;set;}
}
Public class Car:Vehicle
{
public string Name {get;set;}
}
With 5.6.3 version of Swashbuckle.AspNetCore and Swashbuckle.AspNetCore.swagger
Below Json is generating
"Car": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Model Name",
"nullable": true
},
"id": {
"description": "Unique identifier for the Vehicle.",
"nullable": true
}
},
"additionalProperties": false,
"description": "desciption text"
}
However with 5.3.3 version  of Swashbuckle.AspNetCore and Swashbuckle.AspNetCore.swagger
"id": {
"type": "object",
"description": "Unique identifier for the Vehicle.",
"nullable": true
}
with which swagger page shows Id property on request body correctly.
Same case with JsonPatchDocument.Value which doesnt show up on swagger page with 5.6.3 version of Swashbuckle.AspNetCore and Swashbuckle.AspNetCore.swagger.
Please let me know, how can I fix this issue ?

I need more information to fully understand this issue. Please create minimal app (i.e. starting from empty project) that repo's the issue and post to github where I can pull it down and troubleshoot?

I need more information to fully understand this issue. Please create minimal app (i.e. starting from empty project) that repo's the issue and post to github where I can pull it down and troubleshoot?

I am running into this same issue. Here is what I am finding:

Our app is running on Swashbuckle.AspNetCore 5.5.1.
We upgraded from 5.5.1 to 5.6.1 (or greater).
Our autogenerated swagger.json file used output properties defined as objects like this:

"furColor": {
   "type": "object",
  "additionalProperties": false,
  "nullable": true
}

Now the same property is outputted to the swagger.json file like this:
"furColor": {
  "nullable": true
}

In my C# code the FurColor property is defined like this:
public object FurColor { get; set; }
Is this a bug?
The main reason I care is that we use openapi-generator (https://openapi-generator.tech/) and this change to the swagger.json output is breaking the openapi-generator generated code.
Thank you for your time.

I am running into this same issue. Here is what I am finding:

Our app is running on Swashbuckle.AspNetCore 5.5.1.
We upgraded from 5.5.1 to 5.6.1 (or greater).
Our autogenerated swagger.json file used output properties defined as objects like this:

"furColor": {
   "type": "object",
  "additionalProperties": false,
  "nullable": true
}

Now the same property is outputted to the swagger.json file like this:
"furColor": {
  "nullable": true
}

In my C# code the FurColor property is defined like this:
public object FurColor { get; set; }
Is this a bug?
The main reason I care is that we use openapi-generator (https://openapi-generator.tech/) and this change to the swagger.json output is breaking the openapi-generator generated code.
Thank you for your time.

ASP.NET Core 3.1.11
Swashbuckle.AspNetCore 5.6.3
Similar issue:
 public class SearchFilter     {         public FilterOperator Operator { get; set; }         public string PropertyName { get; set; }         public object PropertyValue { get; set; }         public bool IsCaseSensitive { get; set; } = false;     }
shows as this in SwaggerUI:
{       "operator": "EqualTo",       "propertyName": "string",       "isCaseSensitive": true     }

ASP.NET Core 3.1.11
Swashbuckle.AspNetCore 5.6.3
Similar issue:
 public class SearchFilter     {         public FilterOperator Operator { get; set; }         public string PropertyName { get; set; }         public object PropertyValue { get; set; }         public bool IsCaseSensitive { get; set; } = false;     }
shows as this in SwaggerUI:
{       "operator": "EqualTo",       "propertyName": "string",       "isCaseSensitive": true     }

This is essentially a dup of #1890. See my comments at the bottom of that issue for an explanation of this behavior (as it's by design) and a workaround if you need to revert to the old behavior

@tanukus your issue looks like something different - could you please create a separate issue for it. With that said, I can't repro with the example you gave ... if you do create an issue, please also create a minimal app (i.e. starting from an empty project) that does repro it and post to github where I can pull down and troubleshoot.

Thank you for taking the time to respond. Will check out that solution.


Client.Timeout SKE Kubeconfig Endpoint

Hey,
just tried to upgrade my SKE Cluster but i get a timeout.

Is this just a current error or is there a problem with an endpoint?
I just wanted to set something in a helm chart through terraform. But the plan fails.

Hi @bym0,
thanks for reaching out.
I just have checked the stackit_ske_cluster resource and all operations were successful. This might be a temporary issue.
Do you still face the same problem?

Talked internally with a colleague and it seemed to be a temporary issue. Fixed now and works again :)


Update base.yaml to break loop

prevent loop when changing menu from Home Assistant

fixed in the dev branch... if my fix is not what you meant please let me know!


"Time ago" formatting in Compose.

TimeAgo function that formats time instant in the past in a human-readable way (such as "3 days and 5 hours ago") and autoupdates it as time goes by.
Tested by unit tests and manually.

LGTM but the compose function is called durationFromNowText, I would expect its initial letter to be upper-case, that is DurationFromNowText? That's what compose-api-guidelines.md says anyway...

Turns out that there is a difference depending on if you return or don't return a value (it is all in that doc). It should start with lowercase if a value (i.e. not Unit) is returned.


Rubygems 1.0.3

Hey, could I bother you guys to tag and push 1.0.3 to rubygems. I'd like to use the report functionality that isn't available in 1.0.2. Thanks!

:+1:


Enhancement Spacemacs: installation configuration option for Emacs

I spent a substantial time trying to work out why scoop installed emacs wasn't reading my ~/.emacs.d/init.el configuration. Having found it, is it possible to have a parameter to use/install spacemacs?
Or it may be easier to explain where scoop keeps personalised configuration data in the FAQ?
OS: Win10
PoSH: 5.1.17134.228

Scoop doesn't manage any of emacs' configuration files/directories.
Your personal configuration should be ~/.spacemacs.d/init.el, if I understand the quick start guide correctly.

Okay. That was what I initially expected. Thanks. Will have work out what is going on with my setup then.

I'm having the same issue also.
OS: Windows 10 Pro (build 17134.590)
If I execute emacs from the shorcut at the start menu folder or even if I execute it from cmd or powershell it always fail with error "Variable binding depth exceeds max-specpdl-size" when it tries to read the file ~/.emacs.d/init.el.
However it works perfectly fine if execute it from Git Bash.
Could be something related with the enviroment variables?
I'm not sure how scoop handle those.

@codeswish No.
Emacs was reading from a configuration folder in 'Application Data'. Given both Windows & Emacs were generic installs I have no idea why it was set there rather than ~


Use https://floating-ui.com for showing erros in tooltip during review phase

Is your feature request related to a problem? Please describe.
Current usage of jQuery for showing tooltips is not recommended while displaying error messages to users.
Describe the solution you'd like
We can try implementing https://floating-ui.com/docs/useHover to check whether we can optimize and show errors more carefully during the review phase. Review data is getting rendered at Table Component, which is using jQuery tooltip for rendering error message, which can be altered with floating-ui tooltip.
Additional Context

https://floating-ui.com/docs/useHover

Found good CSS only alternative,
https://github.com/jackdomleo7/Cooltipz.css


pyobo.get_name() returning None

pyobo.get_name('ncbitaxon','52818') used to return 'Allamanda cathartica' (link) & now it is None.
I've rebuilt the ~/.obo/ caches on 0.2.7.dev0 & tried get_name on 0.2.6 & 0.2.4 as well.

Hey @aren-lorenson-enveda thanks for pointing this out. I found that there was a typo in the get_primary_identifier() function that was causing this to return none instead of using the original identifier for nomenclatures that don't list any alternative identifiers at all. Fix coming in #74


Use gnu m4

BSD m4 behaves differently from GNU version; most notably PARAM() is not uppercased, resulting in generation of __type_MOVE & co. instead of __TYPE_MOVE.
The suggested patch detects m4 (preferring gm4 to m4, if found) instead of using hardcoded one.
This fixes, for example, compilation of pFUnit on FreeBSD.

My apologies - I somehow missed this PR and the ticket that goes with it ...   Looking at it now.


Prevent npm install on *nix platforms

Add os field to package.json

I'm not sure I can merge this. We use this module in packages which are supposed to be installed cross-platform. These modules will probably fail if is-administrator can't be loaded with require().
is-administrator is also designed to fail gracefully on non-Windows platforms.

fair enough. I thought since it was irrelevant on *ix platforms, you would have it under optionalDependencies to reduce unneeded modules. Not a big deal though. I think it'll still work for me if it fails gracefully.
Thanks!


Bug:(maybe) can't install by 'pip install -U git+https://github.com/ppwwyyxx/tensorpack.git'

I can not install tensorpack using
pip install -U git+https://github.com/ppwwyyxx/tensorpack.git
and
pip install -U git+https://github.com/ppwwyyxx/tensorpack.git --user
does't work.

Finally, I download zip format , and install it by
pip install /home/xxx/download/tensorpack-master.zip
It works.
So, it's a bug or I use this incorrectly?

It said cannot find git

Would you please update the link? Thanks
I follow the guide Tensorpack install page.


Can't connect the room in iOS NativeDemo app

Running the NativeDemo on my iPad, input the session id. then alert dialog is shown:
Error Domain -" NSURLErrorDomainCode= -1202 "The certificate for this server is invalid"....

Hi,
Were you able to find the solution?

Yes, I am having the same problem @qiweiye @hammy-dev-world @nevyn @alessandrod @evermeer  could you please take a look for this issue?

Same here, any solutions yet?


Fix documentation of DbMessageSource.

Setting cachingDuration to 0 doesn't disable caching,
enableCaching controls that.
[ci skip]

Thanks!

But setting cachingDuration to 0 does not disable caching.

@samdark PR is correct, cachingDuration=0 does not disable, it will cause the cache to never expire.

There's not a single word about anything being disabled:

The messages data will be cached using this cache object. Note, this property has meaning only
in case [[cachingDuration]] set to non-zero value and [[enableCaching]] is true.

why would the property not have meaning if cachingDuration is set to zero? The cache is still used, but cached data never expires.

fixed by rewording the comment.

:+1:


Unable to Run HFO!

Hello, I have just installed HFO on Ubuntu 16.04.  However, when I try to run any of the demo scripts, I get this error:
`[start.py] Cleaning up server and other processes
Traceback (most recent call last):
File "./bin/HFO", line 235, in
main(parseArgs())
File "./bin/HFO", line 112, in main
%(serverCommand + serverOptions)
AssertionError: [start.py] Failed to launch Server with command: "/home/robocup/HFO/bin/rcssserver server::port=6000 server::coach_port=6001 server::olcoach_port=6002 server::coach=1 server::game_logging=1 server::text_logging=1 server::hfo_logging=1 server::hfo_log_dir=log/ server::game_log_dir=log/ server::text_log_dir=log/ server::synch_mode=0 server::hfo=1 server::fullstate_l=0 server::fullstate_r=0 server::coach_w_referee=1 server::hfo_max_trial_time=1000 server::hfo_max_trials=-1 server::hfo_max_frames=-1 server::hfo_offense_on_ball=0 server::random_seed=-1 server::hfo_max_untouched_time=100 server::hfo_min_ball_pos_x=0.000000 server::hfo_max_ball_pos_x=0.200000 server::hfo_min_ball_pos_y=-0.800000 server::hfo_max_ball_pos_y=0.800000 server::say_msg_size=1000 server::record_messages=0"
Another rcssserver may be running on the same port?
Try: "killall -9 rcssserver"
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "./bin/HFO", line 24, in cleanup
p.terminate()
File "/usr/lib/python2.7/subprocess.py", line 1567, in terminate
self.send_signal(signal.SIGTERM)
File "/usr/lib/python2.7/subprocess.py", line 1562, in send_signal
os.kill(self.pid, sig)
OSError: [Errno 3] No such process
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "./bin/HFO", line 24, in cleanup
p.terminate()
File "/usr/lib/python2.7/subprocess.py", line 1567, in terminate
self.send_signal(signal.SIGTERM)
File "/usr/lib/python2.7/subprocess.py", line 1562, in send_signal
os.kill(self.pid, sig)
OSError: [Errno 3] No such process
`
Any ideas how to fix this issue?  Note, prior to installing this, I had already install rcssserver and rcsmonitor.  Could this be the issue?

The following might help

Reinstall HFO. [completely remove the HFO directory, clone the repo, compile and install again]
before invoking a script. kill any previous rcssservers by running 'killall -9 rcssserver'
Check if the paths to the HFO server and the agents in the script are correct. They may become invalid if the script is invoked from some other location.

Why script are you trying to invoke? (and from which directory?)

I was in the same situation.

Note, prior to installing this, I had already install rcssserver and rcsmonitor. Could this be the issue?
Yes, delete .conf files in /home/[your name here]/.rcssserver/

Thanks!  Fixed


Window coordinates are broken?

After upgrading to the latest Piston dependencies, window coordinates seem to be broken, at least on OSX. Here is a screen capture of the Hello World example demonstrating the error. The same thing occurs for every application I've tested, including the Piston examples and my home-grown apps.

Seems to be broken on the Glutin window back-end.

You can switch to let window: PistonWindow<(), Sdl2Window> = ... to fix the problem temporarily.
This requires extern crate sdl2_window; and use sdl2_window::Sdl2Window;.

Thanks! Good to know. Should I post this issue to the glutin_window Github?

Not necessary. It is probably a small fix.

The "user_input" example seem to work?

There is an issue on Glutin about the origin moving on Retina displays https://github.com/tomaka/glutin/issues/503

I guess that there are two bugs involved here, 1) that moves the origin and 2) related to resizing.
The "user_input" example is used to test backends but does not use PistonWindow. It could be that the second bug is triggered by PistonWindow.

GlutinWindow does not emit resize events.

The second bug is caused by https://github.com/tomaka/glutin/issues/445

I've fixed the second bug https://github.com/PistonDevelopers/piston_window/pull/74.

Thanks!
So just to confirm, PistonWindow's default config is still broken pending the GlutinWindow fix, correct?
In the meantime, cargo update and switching to Sdl2Window per your instructions above worked for me.

For Retina displays it is pending on https://github.com/tomaka/glutin/issues/503.

This might be related to an issue I have been running into when going through sudoku tutorial. I have been trying to figure out why my y-axis is off the screen. I finally cloned the Piston-Tutorial repo and ran the sudoku tutorial and saw that it works fine. However, I eventually realized it worked because it was using an older version of the dependencies in the Cargo.lock file. When I delete the Cargo.lock file, clean, and re-build it gets the latest version where the y axis is offset. See images below.
[dependencies]
# working version
piston = "0.35.0"
piston2d-graphics = "0.23.0"
piston2d-opengl_graphics = "0.49.0"
pistoncore-glutin_window = "0.42.0"

# latest version where screen is off
# piston = "0.36.0"
# piston2d-graphics = "0.26.0"
# piston2d-opengl_graphics = "0.52.0"
# pistoncore-glutin_window = "0.45.3"

image of working version
image of broken version


Material white color theme unusable by default (uses white font so text/icons are invisible)

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Framework7 Version: 1.5.2

Platform and Target: Any

Live Link or JSFiddle/Codepen: Select the white theme in the Framework7 Documentation

What you did
Use the theme-white material color theme.
Expected Behavior
The font colour of items which are given the themed white background should change to a suitable dark grey / black.
Actual Behavior
The font colour for these items is white, so no text or icons are visible in navbars etc.

In docs Vladimir wrote:
Framework7 also has 2 additional layout themes: "white" (iOS theme only) and "dark".

To apply layout theme we need to add layout-[theme] class to the required parent element.
It could be body, view, page, navbar, toolbar, list-block, etc.

So white theme for ios currently. I wrote just for info.

Yes, white theme does not work in Material Design. See duplicate here https://github.com/nolimits4web/Framework7/issues/1103


Simple Diffs without cancellative properties

Description
We might be able to use Diffs without cancellative properties in some parts of post-UTXO-HD ouroboros-consensus, opening up an opportunity for optimising cases where we're not subtracting diffs from one another. We can make the conversions between the anti-Diffs and the simple diffs, but information might be lost in the process.
Checklist

[ ] Document and test your changes.
[ ] Update documentation such as README.md files.
[ ] Changes introduced by the PR should be recorded in the relevant
CHANGELOG.md files.
[ ] Link issues that the PR resolves (if any).

Superseded by https://github.com/IntersectMBO/ouroboros-consensus/issues/1114. We won't add simple diffs in diff-containers, since we suspect it (and fingertree-rm) will become deprecated sometime in the future


Add email login

Add email link-based logins
Closes #3531

@SchrodingersGat this is ready after the CI runs through (works locally). It adds the backend parts to get email-based logins (magic logins) going

Very nice ☺


Design a website for selling flowers

Hello, I am Samridhi(GGSOC'22 contributor) and I want to bulid the website for selling flowers

@SAMRIDHISINHA Complete it within 2 days......and make PR Asap!! Attach ss also.

Okay,sure

I was making the pr, what happened?
On Mon, May 23, 2022, 21:41 Kumari Astha Rani @.***>
wrote:

Closed #864
https://github.com/arpit456jain/Cool-Front-End-Templates/issues/864 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/arpit456jain/Cool-Front-End-Templates/issues/864#event-6662483984,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWZEQPB6ETHQRGKQMIQGJTDVLOUZHANCNFSM5WR67AAQ
.
You are receiving this because you were mentioned.Message ID:
<arpit456jain/Cool-Front-End-Templates/issue/864/issue_event/6662483984@
github.com>

@SAMRIDHISINHA Make PR Asap, as we have very less time to check all your issues and PRs.


Fixes missing 900k detector + documentation

@gfreychet @patryk-w
I changed pyfai dependency to point to github instead of pip. This could be changed back to pip in the future once PyFAI updates their pip package.

All documentation from Rodrigo were included.


Multiple combo "Variations" (same cards, slightly different prereqs/results) within a combo

The idea would be that rather than trying to list these things as separate combos, we could have a way to toggle between the desired version(s) within the same combo. There are lots of ways to do this, from almost having two separate pages, to having a dropdown for the changing field that causes other updates or something, but I think the general principle is worth exploring.

The backend allows this


Node providers are shown as unknown in cluster management view

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
From dashboard Cluster Management view, deploy an EKS, GKE, or AKS cluster.
Result:
Providers will show as unknown.

On cluster view, it shows that node providers are unknown:

Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): master-head version 3e89bb8
Installation option (single install/HA): Single install

EKS and GKE should work, I don't know what's going on with AKS having a genericEngineConfig in it and don't have an account yet to try it..

@westlywright Can you spin up an AKS cluster and see if this is still broken, then fix or point me at it?

Tested on Rancher master-head version 5b0da3d
GKE, AKS, and EKS are shown correctly as providers:

Cluster view:


MAINT: remove profiling comment, seq_to_kmer_indices is faster with numba

Over a particular example using timeit, with numba takes 1.8 microseconds per loop; half numba 23.3 microseconds per loop; no numba 49.5 microseconds per loop. Results follow a similar pattern for much larger sequence lengths.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.379%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
31788

Relevant Lines:
35172

💛  - Coveralls


Unskip quality specs

What was the end-user problem that led to this PR?
The problem was after 5003a436765eb50d9208ffdce4bbe46cf0d6d63b backported from ruby-core, quality_specs are no longer run, not even in our repo.
What was your diagnosis of the problem?
My diagnosis was that the condition to check whether the root folder is a git folder was incorrect.
What is your fix for the problem, implemented in this PR?
My fix is to correct the condition.

@bundlerbot merge


Python Script with Advantage database

pyodbc connection to Advantage Database does not work. The Power BI 'Python Script' data import (PythonScriptWrapper.PY) assumes that the default ODBC connection is Microsoft.
Would be great if Advantage databases are added to the supported architecture.
Details: "ADO.NET: Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 13, in
conn = odbc.connect('DSN=ads;UID=username;PWD=passwordy')
pyodbc.Error: ('IM014', '[IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application (0) (SQLDriverConnect)')
"

Thanks for your comment, @carattikid. This looks like a support request or product question rather than documentation feedback. You might find a solution in the Power BI Community. If not, try our support page.


Changed hobby field to be blank=True

Description
Ran makemigrations and migrate.
Also tried to delete db.sqlite3 and running migrate and it worked
Manual Tests
Deleted db.sqlite3 and ran migrate to see that it works
Issues closed by this PR
Fix #196

This will take effect in the next PR that refreshes our model migrations, I suggest turn this PR to a draft until it is merged or not merged in the other PR.

You can close this @Micha546
The change was added in #207


[Task]: Fix use correct tracking of multiple events when one node isn't tracking all of them

Task description
Sometimes we get an infinite loading error when a node is not tracking an event that is present in the governance output.
Requirements
Wallet.rs releases a fix
Creation checklist

[ ] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

Maybe fixed by https://github.com/iotaledger/wallet.rs/pull/1867


Any way to parse a folder recursively with output?

Trying optimize a multiple files in multiple sub-folders and want to keep them unchanged so I set a destination folder. But it did not success to.
I tried different position for the -r argument, I tried to with the * but the folders organisations is killed.
$ svgo -f source/folder -r -o output/folder --config=svgo-config.yml

Processing directory 'source/folder':
Error: No SVG files have been found in 'source/folder' directory.
    at processDirectory (/usr/lib/node_modules/svgo/lib/svgo/coa.js:375:24)
    at readdir.then.files (/usr/lib/node_modules/svgo/lib/svgo/coa.js:359:39)

How to use output and recursive arguments together?

Actually, there is no “recursive” option currently. There was a PR, but it was lost in further changes.

See issue #690 and PR #861


Abot as Static Site Generator

I want to convert my dynamic web site to static web site.  What is your opinion about that? Is "abot" is
a good starting point to do this requirement.

Yes, I you can use Abot to do this if your pages are rendered by the server. If they are rendered by clientside javascript then you would need to use AbotX's js rendering capability. Either approach would just have to save the the fully rendered page to disk as an html file using the data in the e.CrawledPage.Content object that is accessible from the Abot/AbotX events.


feat: Store transaction page/cursor in url of accounts page

Description
resolves #462
I choose store solution rather than project the current state to url.
It resolved the annoying UX, but it's nothing advanced. As you see in the demo, the tx data is a snapshot from the initial access to the page. EG: You go 3 pages Next, you go 3 pages back (even tho there has been new transactions created).
Some advanced solution would require page index information from MDW. Currently, we count the page index on FE. So for the case going back from detail to listing, the app will lose information about the current page index.
I don't think such a solution is good.
I also recommend checking reference explorers, how they solve it. They have more simplistic solution
Demo
https://github.com/aeternity/aescan/assets/15363559/a78703b6-8204-4dd5-8150-4973bb8ccbe7
Checklist:

[x] I have read and followed the Contributing Guide
[x] add condition not to reload txs data

As @janmichek described:  "for the case going back from detail to listing, the app will lose information about the current page index".
I'm getting such behaviour when I'm checking Tx details on 2nd or 3rd page and click on Go back button I will be redirected to initial page but not to the page where I was before:
https://github.com/aeternity/aescan/assets/69896204/17e48eba-ca42-4647-9857-3b00e3800643
The rest LGTM.

As @janmichek described: "for the case going back from detail to listing, the app will lose information about the current page index".
I'm getting such behaviour when I'm checking Tx details on 2nd or 3rd page and click on Go back button I will be redirected to initial page but not to the page where I was before:
2023-11-<IP_ADDRESS>.mov
The rest LGTM.

This has not been in the scope, but ofc we can improve it

The build stopped to work. Let's continue in here https://github.com/aeternity/aescan/pull/811


the go api text package does't include util.go file,please check！！！

Ebitengine Version
2.4.10
Operating System

[X] Windows
[ ] macOS
[ ] Linux
[ ] FreeBSD
[ ] OpenBSD
[ ] Android
[ ] iOS
[ ] Nintendo Switch
[ ] Xbox
[ ] Web Browsers

Go Version (go version)
1.19
What steps will reproduce the problem?
check this url<EMAIL_ADDRESS>it does't include function DrawFilledRect,etc
What is the expected result?
fix it
What happens instead?
the function is go away
Anything else you feel useful to add?
No response

https://github.com/hajimehoshi/ebiten/issues/2427


Reactions: switch from SDK to Commentron

Issue

Closes #6481
#5459

Conflict:  will be easier to merge after restoring pagination.  Will push the fix for react-fetch tomorrow after some further testing, and then I'll rebase this on top of that.

Setting to "draft" until #6499 is merged first.


Calling toMap() on an object with null fields throws an error

dson version: 0.15.5
dson_core version: 0.15.4
Minimal example to reproduce bug:
/* test.dart */
import 'package:dson/dson.dart';

part 'test.g.dart';

main(List<String> args) {
  toMap(new SimpleTest());
}

@serializable
class SimpleTest {
  String x;
  SimpleTest() {
    x = null;
  }
}

After build_runner build, run the script and the following error was thrown:
Unhandled exception:
NoSuchMethodError: The getter 'isEnum' was called on null.
Receiver: null
Tried calling: isEnum
#0      Object.noSuchMethod (dart:core/runtime/lib/object_patch.dart:50:5)
#1      _serializeObject (file:/// [...] /AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dson_core-0.15.4/lib/src/serializer.dart:113:18)
#2      objectToSerializable (file:/// [...] /AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dson_core-0.15.4/lib/src/serializer.dart:69:12)
#3      toMap (file:// [...] /AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dson_core-0.15.4/lib/src/serializer.dart:42:5)
#4      main ( [...] test.dart:16:3)
#5      _startIsolate.<anonymous closure> (dart:isolate/runtime/lib/isolate_patch.dart:298:32)
#6      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12)

The error appears to be from this line in dson_core, so I went to see the code. It seems that this instance variable somehow passed the primitive type check at line 11 (which in theory should block this null value):
bool isPrimitive(value) => value is String || value is num || value is bool || value == null;

Then this null value got to _serializeObject() function, passed to the reflect() function in built_mirrors_core and returned as null instead of a ClassMirror object.
I have little idea how this should be fixed though...

update: fixed format error

your error is because you didn't call _initMirrors() function in your main:
your full code should look as fallow:
library test; // don't forget to change the name of your library

import 'package:dson/dson.dart';

part 'test.g.dart';

main(List<String> args) {
  _initMirrors(); // This call is needed to initialize mirrors before doing serialization/deserialization

  toMap(new SimpleTest());
}

@serializable
class SimpleTest {
  String x;
  SimpleTest() {
    x = null;
  }
}```

Oh, my fault. Thanks, and sorry for taking your time!
Rynco Maekawa

From<EMAIL_ADDRESS><EMAIL_ADDRESS>on behalf of Luis Vargas<EMAIL_ADDRESS>Sent: Tuesday, March 26, 2019 10:29:44 AM
To: dart-league/dson
Cc: Rynco Li; Author
Subject: Re: [dart-league/dson] Calling toMap() on an object with null fields throws an error (#46)
your error is because you didn't call _initMirrors() function in your main:
your full code should look as fallow:
library test; // don't forget to change the name of your library
import 'package:dson/dson.dart';
part 'test.g.dart';
main(List args) {
_initMirrors(); // This call is needed to initialize mirrors before doing serialization/deserialization
toMap(new SimpleTest());
}
@serializable
class SimpleTest {
String x;
SimpleTest() {
x = null;
}
}```
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dart-league/dson/issues/46#issuecomment-476450004, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJyKr_kTCDTYpqeq0MoOMR7ZJxnUyxzAks5vaYYYgaJpZM4cFloZ.

don't worry, it's cool to help users of my library

Sorry, but the problem is here again. I have called _initMirrors() in the main isolate, but now I'm working in another isolate where no entry point like main function. Where should I call _initMirrors in this situation?
More precisely, I'm working with the Aqueduct HTTP server package and I need to serialize stuff. The serializer/deserializer coming with the package has not enough features for me to fiddle with (like ignoring fields at runtime). Aqueduct works by using separate isolates to handle HTTP requests, and in one of those Isolates I still got this "not initialized" error.

What should I do now?

could you show me your full code or a full example?

Sure.
My full code is in this repository: https://github.com/01010101lzy/akali/
The issue occurs around this piece of codehttps://github.com/01010101lzy/akali/blob/375079783a8168ad2cfc79505f334de3670b6b9f/lib/data/db/mongodb.dart#L145
(the “Pic.asMap()” method calls “toMap(this)”)
Which is called by this functionhttps://github.com/01010101lzy/akali/blob/375079783a8168ad2cfc79505f334de3670b6b9f/lib/api/imgRequest.dart#L213
Thanks for your help!
发件人: Luis<EMAIL_ADDRESS>发送时间: 2019年3月28日 6:25
收件人<EMAIL_ADDRESS>抄送: Rynco<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [dart-league/dson] Calling toMap() on an object with null fields throws an error (#46)
could you show me your full code or a full example?
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dart-league/dson/issues/46#issuecomment-477370630, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJyKrwPloTIV44wcqOdVbQIuCITY65-gks5va-_TgaJpZM4cFloZ.

The issue occurs here:
https://github.com/01010101lzy/akali/blob/375079783a8168ad2cfc79505f334de3670b6b9f/lib/data/db/mongodb.dart#L145
  Future<ActionResult<Pic>> updateImgInfo(Pic newInfo, String id) async {
    var _id = ObjectId.fromHexString(id);
    var result = await picCollection.update(where.id(_id), newInfo.asMap());
    newInfo.id = _id;
    bool success = result['nModified'] > 0;
    if (success)
      return ActionResult()
        ..success = true
        ..data = newInfo
        ..affected = result['nModified'];
    else
      return ActionResult()..success = false;
}

In this function, the Pic.asMap() method is calling return toMap(this) inside.
This function is called by this line:
https://github.com/01010101lzy/akali/blob/375079783a8168ad2cfc79505f334de3670b6b9f/lib/api/imgRequest.dart#L213
The rest of the handling process is managed by Aqueduct so I don't have access on them.


[#OSF-8510]Search by contributor's profile information

Purpose
Give user's profile information on search

Changes
before change:

after change:

Side effects

Ticket
https://openscience.atlassian.net/browse/OSF-8510

Yup, totally found where they asked for that. Checking with them now.

Comfirmed with Nici, the place holder will leave off 'email' for now. Fix made in 6972115


Error 500 after authenticating with GOAuth

This was caused by two problems:

The goauth attribute provider wasn't creating the attribute tables, causing the attempt to save the user's attributes (groups) to fail.

The GOAuth nexus library uses httplib2 to send queries to the GOAuth server. By default, the httplib2 methods check a file in the httplib2 directory to find the list of trusted CAs. The permissions on this file were too restrictive, causing connections to the GOAuth server to fail.

Testing on gpcr-dev.misd.isi.edu I was able to get the goauth to work and was able to create a new catalog in that machine


Add Cyba solution and please refer to Chicago-running

Looks good so far. Two major things missing: Rather than retrieving all results from the API on every page load (even if you are filesystem caching), I'd like to see you retrieve from the API and then add the records to a database asynchronously. I'd also like you to add some form of user authentication / interaction (maybe flag a run as one that you want to participate in?).
Otherwise, a few small notes, nothing big.


HDFS Support

This is the lowest common denominator for being to run some distributed workloads on existing Hadoop clusters.
There is no working pure Rust HDFS library unfortunately, so we'll probably have to start with this one which wraps a C library that wraps the Java client.
http://hyunsik.github.io/hdfs-rs/hdfs/index.html

There is a native HDFS library in C++ I think?
https://github.com/Pivotal-Data-Attic/attic-c-hdfs-client
It seems to have been merged into https://github.com/apache/incubator-hawq/tree/master/depends/libhdfs3
A downstream fork: https://github.com/ContinuumIO/libhdfs3-downstream

Also Arrow has a C++ HDFS client ... https://github.com/apache/arrow/tree/master/cpp/src/arrow/io

parquet-rs are planning on adding HDFS support and it makes more sense for them to do it rather than adding support in DataFusion so I'm closing this issue now.


Write Avro files to HDFS before uploading them to GCS when using indirect write method

Currently we're using the custom AvroOutput class, which is essentially an in-memory Avro files, to store temporary data before uploading to GCS for the indirect write method. This might cause some OOM issues for large jobs. Instead, it's probably best to persist the temporary data in HDFS files instead.

Alternatively, the connector could also directly append-write to the files in GCS. We'd have to see what makes most sense from a performance point of view.

Fixed in https://github.com/GoogleCloudDataproc/hive-bigquery-connector/commit/178d379f6adbeaa9798d5b709d69be101ebb15aa


Table rows don't seem to be sortable in IE (edge and others)

trs, and things styled with display:table-row don't seem to work correctly in IE
They work perfectly in chrome/safari/firefox.
In IE the tr is draggable, but when moving the tr over the other rows the "spacer row" doesn't follow, it just stays where you dragged the tr from.
There are no console errors, I assume some difference of when/how events happen to do with TRs.
Dragging divs around works perfectly in our same setup and versions of everything.
(I'm having trouble getting the the issue template jsfiddle working, I can make a failing case once I have something working to build on)

I got the jsfiddle template working (using jsfiddle's 'Babel + JSX', and the resources from this fiddle: https://jsfiddle.net/reactjs/69z2wepo/)
Here's a fiddle showing the issue: https://fiddle.jshell.net/gs4vu0cs/ (it shows the same issue when using useDragHandle or not)
It works in latest versions of safari/chrome/ff, but not Edge, or Edge Emulating IE 11, or...

Further investigation. Contrary to my initial impression It does sort things, it just doesn't move the ghost because table rows can't be translated in IE/Edge. I'd like to try and make a patch that actually reorders the html nodes before the drop if translate duration is zero.

That proved messy. instead I'd like to allow you to choose a query of things to translate instead, whether table cells if you only need to support Edge, or a div within each cell for widest support.
I have most of a PR on the way for tomorrow, and this seems to fix the issue in the most flexible & unsurprising way


ninja errors don't have trailing newlines in some cases

For duplicate rules:
 thakis-macbookpro:foo thakis$ cat build.ninja
 rule cc
   command = foo
 rule cc
 thakis-macbookpro:foo thakis$ ../ninja
 duplicate rule 'cc'thakis-macbookpro:foo thakis$

If there's no build.ninja file (poor error message, too.):
 thakis-macbookpro:foo thakis$ rm build.ninja
 thakis-macbookpro:foo thakis$ ../ninja
 No such file or directorythakis-macbookpro:foo thakis$

It's a bit annoying to fix

Fix (sorry, no github keys on this box):
dhcp-172-19-14-219:ninja thakis$ git diff master
diff --git a/src/ninja.cc b/src/ninja.cc
index 64ab454..2c8b8cb 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -115,7 +115,10 @@ int GuessParallelism() {
/// the file.
struct RealFileReader : public ManifestParser::FileReader {
bool ReadFile(const string& path, string* content, string* err) {

return ::ReadFile(path, content, err) == 0;

bool success = ::ReadFile(path, content, err) == 0;
if (!success)

 *err = "Failed to read \'" + path + "\': " + *err + "\n";

return success;
}
};

diff --git a/src/parsers.cc b/src/parsers.cc
index afb097a..5057bf8 100644
--- a/src/parsers.cc
+++ b/src/parsers.cc
@@ -94,7 +94,7 @@ bool ManifestParser::ParseRule(string* err) {
return false;
if (state_->LookupRule(name) != NULL) {

*err = "duplicate rule '" + name + "'";

*err = "duplicate rule '" + name + "'\n";
return false;
}

I will make a better fix.
(I was carefully very consistent about line endings in error messages, but I changed it in one central place.)

Fixed, I hope!


Added back-to-top button in readme

Added a "Back to Top" button for easy navigation, allowing users to quickly return to the top of the page after scrolling down.

Please review and merge my code under gssoc-ext level1

Could you please review and merge it.


Displays published/unpublished products in Inventory

Description
User can select unpublished products and filter them in Inventory page.
Type of change

[x] New feature (non-breaking change which adds functionality)

Change Status

[x] Complete, tested, ready to review and merge

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] There are no merge conflicts

 Feature: Unpublished products. Displays unpublished/published products in Inventory


[Feature request] [eslint-plugin-react-hooks] Naming convention to indicate hook return value does not change (and helper hooks to ensure it)

Apologies if this has already been discussed somewhere. I did have a look, but I couldn't find anything relevant.
Problem
Currently, useRef has a super power that react-hooks/exhaustive-deps will know not to complain about references to a variable using useRef when not included inside dependencies for useEffect, useMemo, and useCallback. That works because the return value from useRef is stable and can never change.
This is a really useful super power, and there are other cases where it might be useful.
Firstly, it is possible to use useMemo and useCallback in such a way that the return value will never change (by passing an empty dependencies array), but react-hooks/exhaustive-deps will still complain if these are not included in dependencies.
Example:
const immutableRef = useRef();
const immutableMemo = useMemo(() => Math.random(), []);
const immutableCallback = useCallback(() => {}, []);

useEffect(() => {
  immutableRef.current = 1;
  console.log(immutableMemo);
  immutableCallback();
}, []);

While it may be possible for the eslint plugin to "check" the dependency array of the useMemo and useCallback calls before deciding to trigger a warning, that still wouldn't work if the hook was called inside a custom hook. Additionally, useRef's super power also only works so long as the ref is created inside the same component/hook as the effect/memo/callback is created.
function useRefWrapped(initialValue) {
  return useRef(initialValue);
}

function App() {
  const immutableRef = useRefWrapped();

  useEffect(() => {
    immutableRef.current = 1;
  }, []);

  return null;
}

Proposal
The creation of useMemoImmutable and useCallbackImmutable hooks that are synonymous with useMemo and useCallback when called with an empty dependencies array. The names of these hooks are not important to the proposal, they can be whatever the team feels are most appropriate.
const useMemoImmutable = valueFactory => useMemo(valueFactory, []);
const useCallbackImmutable = callback => useCallback(callback, []);

Update: it's been mentioned to me that useMemo and useCallback does not actually guarantee that the value will never change. It's likely that the these hooks would have to be based on useRef instead
const useMemoImmutable = valueFactory => {
  const ref = useRef({ hasSet: false, value: null });

  if (!ref.current.hasSet) {
    ref.current.value = valueFactory();
    ref.current.hasSet = true;
  }

  return ref.current.value;
};
const useCallbackImmutable = callback => useRef(callback).current;

react-hooks/exhaustive-deps can then suggest that any variables that are assigned to a usage of these hooks has the suffix of Immutable. Again, the naming is not important and can be changed to whatever the team feels most appropriate.
It can also ensure that any hooks that return a variable with the suffix Immutable (or a direct return of useImmutableMemo or useImmutableCallback) also have the suffix in their name.
It could also warn if the Immutable suffix is used on a value the linter cannot be sure does not change.
This would allow the linter to "ignore" the use of any variable with the suffix immutable inside a use of useCallback, useMemo, and useEffect, even if these variables are not inside their dependency arrays.
This proposal would allow other hooks to "share" useRef's super power.
I know that a naming convention isn't the most ideal way of indicating things like this, but the React team has already accepted it's worthwhile to enforce one if the return on value is high enough (i.e, the use prefix for custom hooks).

I can create a PR for an RFC for this proposal, I just wanted to ensure there wasn't already an alternative to this before doing so.

The problem with react-hooks/exhaustive-deps and useEffect is that Effect don't have to be rerun on any of it "actual" dependencies change, but only on the right ones.
With the current approach the rule or force you to add all used variables, or disable rule completely. What about fixing especially this moment?
const ignoreDependecy = (a) => undefined;

useEffect(() => {
  immutableRef.current = 1;
  console.log(immutableMemo);
  immutableCallback();
}, [
  immutableRef,
  ignoreDependecy(immutableMemo), // yep, I know about this dep, but could we ignore it?
  ignoreDependecy(immutableCallback)
]);

Right now such pattern will generate two errors - the use of complex expression, and the missing dependency as well.
But how else one can indicate that some dependencies are really should not trigger the update, and still be "protected" from the "oh, I've forgot it again" accidents.

@theKashey personally I’m not sure “ignoring dependencies that we know could change but we don’t care” is part of the story of “how do I tell react I know a variable can’t change in such a way that react can semi-enforce this and give us helpful hints based on this guarantee”, which is what this proposal attempts to address. These feel like separate issues.
Although, a useValueImmutable hook that just passes the value directly to useRef and takes the .current property and returns it would solve your issue under this proposal.

For me that's that same story:

(your one) Hey React! You know - these variables are actually immutable, so could you ignore them?

Well, if they are immutable why not to add them to deps and not worry?

(mine one) Hey? React! You know - I know that you should not be interested in these variables, so could you ignore them?

Actually the main question here - are you sure that you really have "immutable" variables and need any special treatment for them?

We’ll have to agree to disagree about these being the same stories cause I really could not disagree more.
On the question of whether I know these values won’t change - the sample hooks above are based on useRef, which useEffect trusts never to change, so yeah, we can be pretty sure.

But what are you really want to do and why you cannot just "accept" the fix from eslint rule, as long as adding those variables into useEffect will have no consequences for you - you will have nothing more that a "protection", which, if I am getting you correctly, is not needed.
However let's take the most immutable hook in the world, and apply HotModuleReplacement - the logic inside Refresh will persist ref and state, however will update any other hook - useCallback and useMemo included.
So, by fact, "immutable" hooks could be mutable, at least in dev mode. And don't forget that useMemo could "lose" it's value as well, so it's not very immutable by design.

You’re missing the point. It’s possible to implement similar APIs to useMemo and useCallback when called with no dependencies using useRef (as shown in the sample implementations above), and so hot module replacement is not a concern. It would still be as immutable as useRef.
The benefits of not including them in the dependency array is less client side dependency checking on every render. And we shouldn’t need to dismiss eslint to get that benefit. Why bother implementing it at all for useRef if it’s not considered a worthwhile quality of life improvement?

Hi, thanks for your suggestion. RFCs should be submitted as pull requests, not issues. I will close this issue but feel free to resubmit in the PR format.


PPLUS:1375: Incorrect PersistentCart manifest / pointed incorrect cases

Ticket: https://spryker.atlassian.net/browse/PPLUS-1375

Lets please not make PRs against this repo directly, but use release app if possible
Or whats the reason here?

You are only allowed to PR here for manifests for modules that are not coming yet from release app, especially deleting here is fine.
But everything that already exists in release app must be going through that process now.

@dereuromark
I left here only manifest removing, please review it


SAA-1385 initial WIP commit for introducing the concept of paid and unpaid activities.

Codecov Report
Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (a008018) 86.74% compared to head (7cb1bfb) 86.74%.

Files
Patch %
Lines

...activitiesmanagementapi/service/ActivityService.kt
50.00%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #697   +/-   ##
=========================================
  Coverage     86.74%   86.74%
- Complexity     3346     3353    +7
=========================================
  Files           356      356
  Lines         11601    11615   +14
  Branches        907      909    +2
=========================================
+ Hits          10063    10076   +13
  Misses         1112     1112
- Partials        426      427    +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Java 8 support dropped from 0.12.1 to 0.12.2

After upgrading to 0.12.2, we cannot compile our Java 8 application. The error message reads as follows.
java: cannot access io.leangen.graphql.annotations.GraphQLArgument
  bad class file: /home/directory/.m2/repository/io/leangen/graphql/spqr/0.12.2/spqr-0.12.2.jar!/io/leangen/graphql/annotations/GraphQLArgument.class
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

This is presumably caused by 5cb679d753b1670fcd02c54c5e75e264315c11bd. I believe that the upgrade to Java 11 was accidental.

graphql-java switched to Java 11 recently, so it only made sense for SPQR to follow, seeing how graphql-java is an essential dependency.
I could revert the version bump and compile SPQR with Java 8, but wouldn't you still be in the same trouble since you'd be getting graphql-java compiled with 11 anyway?

SPQR 0.12.2 depends on graphql-java 20.2, which still supports Java 8. The first version of graphql-java that requires Java 11 will be graphql-java 21. For now, it would be great if SPQR based on graphql-java 20.2 still supported Java 8.
I verified that very few changes are required on top of spqr-v0.12.2 in order to be compiled with Java 8 and be usable for our Java 8 app.

Ok, fair enough, SPQR should always support exactly what graphql-java does, so I'll keep it on Java 8 for the time being.


Set default direction of Space to Horizontal

I'm still learning about contributing to Open Source projects, so I'm not sure if making an issue for a PR this small is overkill. It seems like creating issues better facilitates bugs, though.
Is this a bug?
The current space component has the default direction set to Vertical. In the original Antd library, the default is horizontal.
Is this a feature request?
This is not a feature request.
Desired Outcome
The default direction for the Space component will be set to Horizontal.

not sure if making an issue for a PR this small is overkill

I think in this case it's trivial to create an issue since you already have the corresponding fix (#55) ... But in general it never hurts to create an issue to document things and communicate to others about what's going on.


ci: use single fat coverage test binary in bazel.asan.

This reduces the Bazel cache usage in my local Docker run from ~24GB to ~4GB.
Fixes #1400 (in a very loose sense of the word).

Yeah, I think cleaning up after each individual test runs is a bit dicey unless Bazel has direct support, since this is basically surgery on the Bazel cache. So, the fat test binary seems the least bad for now.


perf(ui/switch): add class

Checklist

[ ] Fix linting errors
[ ] Tests have been added / updated (or snapshots)

Change information

Codecov Report

Merging #368 (cb27f96) into dev (ba68dc9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #368   +/-   ##
=======================================
  Coverage   96.39%   96.39%
=======================================
  Files         209      209
  Lines        4907     4908    +1
  Branches     1047     1047
=======================================
+ Hits         4730     4731    +1
  Misses        177      177

Impacted Files
Coverage Δ

packages/varlet-ui/src/switch/Switch.vue
100.00% <100.00%> (ø)

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 ba68dc9...cb27f96. Read the comment docs.

We use classes and n to generate a css namespace which not only incorporates className

Maybe you should look at other people's PRs


Add book introduction

This PR includes more information about the book to the content library (both in the menu text, introductions to each of the sections) as well as the README.
Could you please review, @raulraja @juanpedromoreno? Thanks!

LGTM


Adding json path functions to extract values from json object

Description
Adding json extract scalar functions to help extract messages from json object.
This can help users extract values from json object and flat events during ingestion time.
Sample ingestion config inside the table config:
...
  "ingestionConfig": {
    "transformConfigs": [
    {
      "columnName": "created_ts",
      "transformFunction": "fromDateTime(created_at, \"yyyy-MM-dd'T'HH:mm:ssZ\")"
    },
    {
      "columnName": "actor_id",
      "transformFunction": "jsonPathLong(actor, '$.id')"
    },
    {
      "columnName": "actor_login",
      "transformFunction": "jsonPathString(actor, '$.login')"
    },
    {
      "columnName": "actor_display_login",
      "transformFunction": "jsonPathString(actor, '$.display_login')"
    },
    {
      "columnName": "actor_gravatar_id",
      "transformFunction": "jsonPathString(actor, '$.gravatar_id')"
    },
    {
      "columnName": "actor_url",
      "transformFunction": "jsonPathString(actor, '$.url')"
    },
    {
      "columnName": "actor_avatar_url",
      "transformFunction": "jsonPathString(actor, '$.avatar_url')"
    },
    {
      "columnName": "repo_id",
      "transformFunction": "jsonPathLong(repo, '$.id')"
    },
    {
      "columnName": "repo_name",
      "transformFunction": "jsonPathString(repo, '$.name')"
    },
    {
      "columnName": "repo_url",
      "transformFunction": "jsonPathString(repo, '$.url')"
    },
    {
      "columnName": "payload_str",
      "transformFunction": "jsonFormat(payload)"
    }
    ]
  }
...

Codecov Report

Merging #6347 (c9ead60) into master (1beaab5) will decrease coverage by 1.10%.
The diff coverage is 45.12%.

@@            Coverage Diff             @@
##           master    #6347      +/-   ##
==========================================
- Coverage   66.44%   65.34%   -1.11%
==========================================
  Files        1075     1287     +212
  Lines       54773    62086    +7313
  Branches     8168     9008     +840
==========================================
+ Hits        36396    40570    +4174
- Misses      15700    18620    +2920
- Partials     2677     2896     +219

Flag
Coverage Δ

unittests
65.34% <45.12%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...e/pinot/broker/api/resources/PinotBrokerDebug.java
0.00% <0.00%> (-79.32%)
:arrow_down:

...ot/broker/broker/AllowAllAccessControlFactory.java
71.42% <ø> (-28.58%)
:arrow_down:

.../helix/BrokerUserDefinedMessageHandlerFactory.java
33.96% <0.00%> (-32.71%)
:arrow_down:

...ker/routing/instanceselector/InstanceSelector.java
100.00% <ø> (ø)

...ava/org/apache/pinot/client/AbstractResultSet.java
66.66% <0.00%> (+9.52%)
:arrow_up:

.../main/java/org/apache/pinot/client/Connection.java
35.55% <0.00%> (-13.29%)
:arrow_down:

...inot/client/JsonAsyncHttpPinotClientTransport.java
10.90% <0.00%> (-51.10%)
:arrow_down:

...not/common/assignment/InstancePartitionsUtils.java
73.80% <ø> (+0.63%)
:arrow_up:

.../apache/pinot/common/exception/QueryException.java
90.27% <ø> (+5.55%)
:arrow_up:

...pinot/common/function/AggregationFunctionType.java
100.00% <ø> (ø)

... and 1136 more

Continue to review full report at Codecov.

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

Can we add tests/examples to demonstrate the usage of new functions?

Can we add tests/examples to demonstrate the usage of new functions?

done


Not supported CDMA sim card

As the title

I'll look into and try to add support for the top one, but the bottom one I can't really do I'm afraid.

emmm... Can you just remove the bottom one?

I don't know if that's possible

Next update should fix this, wait for that and try again to see if your issue is resolved.

Try the new update and report back if your issue is fixed or not!

It seems that nothing changed

Which carrier are you on, btw?

China Telecom

Oh, so I did target the correct carrier icons. Hmm, running out of ideas...

Can you send me your SystemUI.apk?

Here you are , hope that makes some helps
SystemUI.apk from google drive

Thanks, I'll take a look into that systemui.apk and see what I can do.

Right, I've attempted to fix it again, wait for the next update coming very soon.

Try the latest update now, it should fix this issue for once and for all.

Sorry, I hadn't check my GitHub notification these days.
When I update the latest version, I guess that it isn't work as same as you think.

Well it's an improvement at least, signal icon themed. That 2G label is giving me trouble though...

aha, your achievement looks very awesome, and thanks so much for your working

I encountered the same problem


make local binary archives extraction more resilient

motivation: in some case duplicate artifacts or parallel processes may race the extraction of binary artifacts
changes:
add a file system lock around archive extraction of local archives, similar to what we do for remote archives
rdar://92622234

@swift-ci please smoke test


remove tool from [tool.isort]

isort does not recognise [tool.isort] as a section for it in the tox.ini file.
It is only recognised as [tool.isort] in a pyproject.toml file, and [isort] in tox.ini
Isort docs: https://pycqa.github.io/isort/docs/configuration/config_files.html

Thanks!


First child of item with left border in borderless menu

<!DOCTYPE html>

	<meta charset="UTF-8">
    <link rel="stylesheet" href="bower_components/semantic-ui/dist/semantic.min.css">

	        left item

Without workaround:

With workaround:

The css rule .ui.menu:not(.secondary):not(.text):not(.tabular) > .container > .item:not(.right):first-child that causes this was last changed in 6f6a7f95, but I think this issue is older than this change.

Ok. "Older that this change" means not more than seven days old:
In this changeset the left border was not shown:
$ git checkout `git rev-list -n 1 --before="7 days ago" next`
Note: checking out '7951b32c19e9eefeefc86b51e3ad06fe68a967e7'.

This was added intentionally.

@jlukic So the border in the .borderless.menu is intentionally? If this is true, then this issue can be closed. I have this workaround to fix the border for my use cases.

Oh I missed borderless menu that's a bug.

Accidentally commiteed with c1ace94d43077c8d600a01e6ae96f0b8b7552553. One of the uglier lines of the library..


MS Docs failing to publish

MS.Docs failing to publish - blocking storage releases
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1246915&view=logs&j=19b87903-f8bc-5cbb-22d9-4f6eb3469d8e&t=01c0d070-1636-5aed-84c3-1f03a1861eaf

Resolved in this PR


cache_uname: fix darwin_name and osx_version for iOS 11.3 and later

Description
Apple added BuildID to /System/Library/CoreServices/SystemVersion.plist as the first key with iOS 11.3, thus the array indices of sw_vers are off by 1 in iOS 11.3 and later.
This PR changes the way neofetch reads information from SystemVersion.plist by searching for the keys ProductName, ProductVersion and ProductBuildVersion instead of assigning data from hard coded array indices, thus making it more robust to future changes to this file.
This PR fixes #1061. The issue was closed, but should've been reopened by the author.

I just changed the for loop as suggested in the review, except I increment i by 2 each run.

Reddit user JMillz269 tested it on iOS 12.1.2:
https://www.reddit.com/r/jailbreak/comments/b0bdpv/question_can_someone_test_the_patch_i_proposed/ejpwnwh

issue, both CPU and GPU are just 'prin'

@theLMGN Which iPhone model do you have?

@jkhsjdhjs iPad 7,1

I first thought that information of your device was missing in neofetch. So I added device information for a few of the latest devices in a new commit.
Then I noticed that a model string for the iPad7,1 was already present. I experimented a bit and noticed, that I experience the same behavior when the variable kernel_machine containing the hardware string doesn't get set.
So I guess the output of uname -srm is different on your device. Can you post it here?

@jkhsjdhjs Darwin 18.2.0 iPad7,5
Might be useful to know, my iPad is the iPad 2018, not a Pro.

I added model, cpu and gpu for iPad7,5 in this commit: https://github.com/dylanaraps/neofetch/pull/1216/commits/fa3684b3953ac9f0b30628c5769a6878ba76dfa3
You can pull the commits I recently pushed and test them, it should work.

@jkhsjdhjs 👍

LGTM :+1:


refine daemon.cpp exit logic, and sync clickhouse some important feature

Describe what enhancement you'd like to have

I like community's change. original we sleep(20sec) is make no sense to me. for now, we directly exit.
latest proton release:

$ time ./proton-client  -q "select trap('read nullptr c++')"
Code: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:8463: (in query: select trap('read nullptr c++')). (ATTEMPT_TO_READ_AFTER_EOF)

real    0m21.767s
user    0m0.052s
sys     0m0.020s

with clickhouse some helpful change:

$ time ./proton-client  -q "select trap('read nullptr c++')"
Code: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:8463: (in query: select trap('read nullptr c++')). (ATTEMPT_TO_READ_AFTER_EOF)

real    0m2.511s
user    0m0.018s
sys     0m0.007s
$


[BEAM-547] [BEAM-1730] Cleanup versions.py and root init has version access

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @aaltay PTAL

Do we need version.py after this change?
And can we remove https://github.com/apache/beam/blob/master/sdks/python/MANIFEST.in#L18

Coverage decreased (-0.01%) to 70.183% when pulling f1603256e5a3d662012872378c9c3ae2fd908fd0 on sb2nov:BEAM_547-simplify-version-python into 477e789a4f554a23c9a100364c95bee1e01b23f8 on apache:master.

We still need versions.py as setup.py calls that script. I'll remove the manifest line

R: @aaltay PTAL

Coverage decreased (-0.003%) to 70.18% when pulling 9a021b68f09006cd2076b535fa5c721e1c8acc83 on sb2nov:BEAM_547-simplify-version-python into 004d3078f14c26452ac3c4c4ca13dde894ff42b1 on apache:master.

LGTM. Thank you.


$count with applied $filter not working

When I call Persons/$count?$filter=name eq 'simon' I get a
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> 500 <message> Call to undefined method Illuminate\Database\Query\Builder::with() </message> </error>

@bgoak just to let you know we are working on improving the unit tests to resolve a lot of these issues

@bgoak , can you grab #195 and see if this fixes your problem?

I can confirm that #195 fixed this issue.
Thank you.

Closing since @bgoak has confirmed fix.


fix for issue #70

📊 Metadata *
Bounty URL: https://www.huntr.dev/app/bounties/open/2-npm-curlrequest
⚙ Description *
I've made alterations to this code to prevent people providing a file path which would let them access files outside of the directory they should have access to.
💻 Technical Description *
Following the nodejs teams advice I've used path.join() to make sure we strip the file path of any instances of '..'. I then added an if statement which checks if the current working directory is located at the start of the file path, if it's not we throw an error. This prevents users from trying to enter an absolute path to something outside the current working directory.
https://nodejs.org/en/knowledge/file-system/security/introduction/#preventing-directory-traversal
🐛 Proof of Concept (PoC) *
var curl = require("curlrequest");

let userPayload = "/etc/passwd";
curl.request({ file: userPayload }, function (err, stdout, meta) {
    console.log("%s %s", meta.cmd, meta.args.join(" "));
});

🔥 Proof of Fix (PoF) *
Running the PoC code now returns:
Debugger listening on ws://<IP_ADDRESS>:37517/ac3be30b-38f3-43ac-aef8-755ed85c40f7
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.

c:\Users\Danie\node_modules\curlrequest\index.js:245
            throw "File not found in the current directory."
            ^
Waiting for the debugger to disconnect...
Error: "File not found in the current directory."
    at exports.request (file:///c:/Users/Danie/node_modules/curlrequest/index.js:245:12)
    at (anonymous) (file:///c:/Users/Danie/Dropbox/daniel/dev/poc.js:4:5)
    at Module._compile (internal/modules/cjs/loader.js:952:13)
    at Module._extensions..js (internal/modules/cjs/loader.js:991:9)
    at Module.load (internal/modules/cjs/loader.js:811:31)
    at Module._load (internal/modules/cjs/loader.js:723:13)
    at Module.runMain (internal/modules/cjs/loader.js:1043:9)
    at (anonymous) (internal/main/run_main_module.js:17:10)

👍 User Acceptance Testing (UAT)
var curl = require("curlrequest");

let userPayload = "hello.txt";
curl.request({ file: userPayload }, function (err, stdout, meta) {
    console.log("%s %s", meta.cmd, meta.args.join(" "));
});

If I run the above code with a file named hello.txt in the working directory the contents of hello.txt is printed to the console

Sorry dbech, we enjoyed reviewing your fix but it has not been selected this time. If this bounty has not been closed, please feel free to try again with a new pull request!
We appreciate your effort and look forward to reviewing more of your fixes in the future! 🔨😎


issue with installing flutter

Just having this issue while calling a curl command.
Using macOS with an m1  processor
remoteContainers-2023-03-21T09-15-55.320Z.log
I appreciate your time and help.

Hey, thanks for bringing this to my attention. It may be a couple days before I'm able to get back to this desk container. I've actually got another bug in this repo that I need to take care of before this.
I assume you're using the NPM DefContainer CLI to build this on your Mac, instead of using GitHub code spaces, correct?
If building locally on your Mac, I think you need to pass --platform linux/amd64 to the devcontainer build command


[e2e]: gradle workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8050957755
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.gradle.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.gradle.workflow_dispatch.main.default.slsa3.yml
Trigger: schedule
Branch: main
Date: Mon Feb 26 15:02:18 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8057657100
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.gradle.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.gradle.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Feb 27 00:38:26 UTC 2024
Tests are passing now. Closing this issue.


Intermittent build failures with TS 4.6.4

🐛 Bug Report
The nimble-components and nimble-angular builds fail intermittently with TS 4.6.4.
💻 Repro or Code Sample

Pull the angular-14 branch.
Run npm install.
Run npm install --no-save<EMAIL_ADDRESS>Run npm run build.

🤔 Expected Behavior
The build should pass.
😯 Current Behavior
@microsoft/fast-foundation fails the library checks (example)
Error: ../../node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts(2252,66): error TS2344: Type 'T' does not satisfy the constraint 'string | number | boolean | symbol | any[] | Uint8Array | ({ createCSS?(): string; } & Record<PropertyKey, any>) | null'.
  Type 'T' is not assignable to type '{ createCSS?(): string; } & Record<PropertyKey, any>'.
    Type 'T' is not assignable to type '{ createCSS?(): string; }'.
Error: ../../node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts(2254,186): error TS2344: Type 'T' does not satisfy the constraint 'string | number | boolean | symbol | any[] | Uint8Array | ({ createCSS?(): string; } & Record<PropertyKey, any>) | null'.
  Type 'T' is not assignable to type '{ createCSS?(): string; } & Record<PropertyKey, any>'.
    Type 'T' is not assignable to type '{ createCSS?(): string; }'.
Error: ../../node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts(2256,121): error TS2344: Type 'T' does not satisfy the constraint 'string | number | boolean | symbol | {} | any[] | Uint8Array | null'.

💁 Possible Solution
Pin the version declared by @microsoft/fast-foundation, 4.6.2 (example).
🔦 Context
Upgrading Angular and ESLint upgrades TS.
🌍 Your Environment

OS & Device: Windows
Version<EMAIL_ADDRESS>

This is also fast-foundaton issue 6365.

With the #1000 update all of our packages (except one build tool) are resolving to TS 4.6.4 and the version in the root was removed. I have not seen intermittent build failures since the Angular 14 upgrade or issues regenerating the lockfile.
So as described I think this bug is resolved. We do need to still get TS 4.8.4 working and I'll repurpose #810 for that


Mention users with dash

Fixes #2202

Tried testing it is impossible

Can’t you write some tests like I did on the issue. Make a Matcher and call find.
What about users who’s name starts with a dash?

Well the code does a shit tone of other things including reading files etc. and because we do not load a spring context this is incredible hard to mock away. Well I could just refactor to make it more testable I guess

I stay with can not be tested

Just test the regex. You don’t need to test the code that uses the regex.
Just do something like
assertTrue(CHAT_PATTERN.matcher("Hello Box-!").find();

Whatever the syntax is


docker exec -it palworld-server rcon-cli not working

Describe the bug\
it said,
Failed to connect to RCON serverdial tcp <IP_ADDRESS>:25575: connect: connection refused
I also opened port 25575 and saw no change in results.
docker-compose.yml contents
services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: unless-stopped
      container_name: palworld-server
      ports:
        - 8211:8211/udp
        - 27015:27015/udp
        - <IP_ADDRESS>:25575:25575/tcp
      environment:
         - PUID=1000
         - PGID=1000
         - PORT=8211 # Optional but recommended
         - PLAYERS=16 # Optional but recommended
         - MULTITHREADING=true
         - UPDATE_ON_BOOT=true
         - RCON_ENABLED=true
         - RCON_PORT=25575
         - COMMUNITY=false  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
         # Enable the environment variables below if you have COMMUNITY=true
         #- SERVER_PASSWORD=test
         - SERVER_NAME=test
         - ADMIN_PASSWORD=test
      volumes:
         - ./palworld:/palworld/

Remove localhost, and I bet it works.

should I remove <IP_ADDRESS> localhost from /etc/hosts ?

No, just remove <IP_ADDRESS> from:
" ports:
- 8211:8211/udp
- 27015:27015/udp
- 25575:25575/tcp"

Issue has not received feedback for a while, if the issue persist, please feel free to reopen


Electron app (macOS, Windows) has not been released for over a year

https://www.terra.money/ points to this repos release download for Electron app (macOS, Windows)
However those are 1+ year old.
Please update desktop app releases.

Everything is good with the latest version of Electron, but there's an issue with Ledger support. Is there any urgent reason that you need this?

No, just general expectation that software needs to be updated

It has no issue now so it is not updated. If you have any problem, open an issue on the electron repo please. Thanks.


on plugin 'myplugin': myplugin plugin is enabled but not installed

Hi team:
I am using vagrant to write customized plugins.I use the plugin https://github.com/Kong/kong-plugin to play . but when kong start. it failed as "on plugin 'myplugin': myplugin plugin is enabled but not installed;"
2021/09/07 08:54:56 [verbose] stopped services
Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:75: /usr/local/share/lua/5.1/kong/cmd/start.lua:64: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/kong/nginx.conf:6
nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:514: error loading plugin schemas: on plugin 'myplugin': myplugin plugin is enabled but not installed;
no plugin found
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong/init.lua:514: in function 'init'
init_by_lua:3: in main chunk
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/kong/cmd/start.lua:75: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:88: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:88>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd/init.lua:88: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:45>
/usr/local/bin/kong:9: in function 'file_gen'
init_worker_by_lua:47: in function <init_worker_by_lua:45>
[C]: in function 'xpcall'

@zffocussss I would strongly suggest to use Pongo instead, see https://github.com/Kong/kong-pongo (Vagrant is a generic dev env for Kong, where Pongo is optimized for plugins)

any updates? or can we close this?