To get data as an array of ngsi entities, instead of series about one entity

The json output of a read query to QL is formatted as series by attributes, and for one entity only, it is well adapted for charts
But when used with other BI tools (like Knowage), getting data as an array of entities, like when querying a context broker shall be much more convenient !
the solution should be :
To be able to ask for an alternate output format when querying QL, keeping the same api semantic as NGSI read requests (GET /entities), in order to receive data as an array of entities (dual model), and to be able to query history data for several entities with one request.
=> a "format=array" query parameter should allow to ask this alternate output format
We know that we could use a direct connection to CrateDB, but the case we have require to use an http API, then we thought having a conversion stage, to transform the series of data in an array of entities, but it's counterproductive, since the data are coming from crateDB, as a cursor array of records, it should easier to transform cursor data in json array, directly at QL level...
We are keen to help to develop this feature, and PR it (by modifying  "_format_response" function in /translators/sql_translator.py)
If you already have such feature request or similar issue, planned in the roadmap, thanks to tell us about.

my request is somehow related to #102 (QL as context broker datasource...)

in relation to #102 context providers return a single value (the last one, i would suppose in this case).
at the moment this is not a priority for us, but we surely welcome a PR:

provide an updated spec for the api (see the spec folder)
implement the API in the code
add tests for the new functionality

hi guys,

a "format=array" query parameter should allow to ask this alternate output format

shouldn't this rather be done through HTTP content negotiation? i.e. using Accept* headers? see e.g.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation

We are keen to help to develop this feature

Thanks for offering, that's great!

modifying "_format_response" function in /translators/sql_translator.py

cool, but we need to be careful w/ this one since the implementation is quite involved, virtually all query responses depend on it, and we don't have enough tests to cover all corner cases. So reshuffling things might be tricky. For a bit more context, here's a conceptual model of how result formatting works

https://github.com/orchestracities/ngsi-timeseries-api/wiki/Conceptual-Model#result-formatting

shouldn't this rather be done through HTTP content negotiation? i.e. using Accept* headers? see e.g.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation

I think Content_negotiation is more the case for official mime types, e.g. json versus text and so on.

Hi @chicco785 @c0c0n3 , I would like to contribute on this issue. For this I need response format which will be returned. Please guide me in this direction so I can start with the coding part.

Hi @chicco785 @c0c0n3 , I have below understanding about this issue, Please correct me if I am missed anything.

A new API: GET /entities needs to develop having query parameter "format=array"
Response for the above API should contain EntityId EntityType attribute latestValue e.g.,

[
   {
      "entityId":"Room1",
      "entityType":"Room",
      "attributes":[
         {
            "attrName":"pressure",
            "values":[
               12.0
            ]
         },
         {
            "attrName":"temperature",
            "values":[
               12.0
            ]
         }
      ]
   },
   {
      "entityId":"MyId",
      "entityType":"MyType",
      "attributes":[
         {
            "attrName":"humidity",
            "values":[
               12.0
            ]
         }
      ]
   }
]

When request contain "format=array" the response is converted to array of entities

Hello, @pooja1pathak
The output format should be an array of true NGSI V2/LD entities, such as :
[
    {
        "id": "TrafficFlowObserved:06088AU0025_001_1",
        "type": "TrafficFlowObserved",
        "name": {
            "type": "Text",
            "value": "..."
        },
        "dateModified": {
            "type": "DateTime",
            "value": "2021-04-05T19:36:41.00Z"
        },
        "dateObserved": {
            "type": "DateTime",
            "value": "2021-04-05T19:35:33.00Z"
        },
        "address": {
            "type": "PostalAddress",
            "value": {
                "streetAddress": "...",
                "postalCode": "",
                "postOfficeBoxNumber": "",
                "addressLocality": "...",
                "addressRegion": "",
                "addressCountry": ""
            }
        },
        "occupancy": {
            "type": "Number",
            "value": -1
            }
        },
        "location": {
            "type": "geo:json",
            "value": {
                "type": "Point",
                "coordinates": [
                    7.249663107,
                    43.699122501
                ]
            }
        }
    },
    {
        "id": "TrafficFlowObserved:06088AU0029_001_1",
        "type": "TrafficFlowObserved",
        "name": {
            "type": "Text",
            "value": "...."
        },
        "dateModified": {
            "type": "DateTime",
            "value": "2021-04-05T19:36:42.00Z"
        },
        "dateObserved": {
            "type": "DateTime",
            "value": "2021-04-05T19:35:33.00Z"
        },
        "address": {
            "type": "PostalAddress",
            "value": {
                "streetAddress": "blah",
                "postalCode": "",
                "postOfficeBoxNumber": "",
                "addressLocality": "...",
                "addressRegion": "",
                "addressCountry": ""
            },
            "metadata": {}
        },
        "occupancy": {
            "type": "Number",
            "value": 0,
          }
        },
        "location": {
            "type": "geo:json",
            "value": {
                "type": "Point",
                "coordinates": [
                    7.253000539,
                    43.701089603
                ]
            }
        }
    },
....other entities
]

"entityID" should be "id"
"entityType" should be "type"

@agaldemas i am not sure this make sense to be honest.
the /v2/entities api is a commodity entry point meant to return
the list of available entities (so that you can query them specifically as /v2/entities/entityId)
and their "last" index.
now, assuming you will expand to the full entity using the full format (without
changing the paradigm of "last index"), what you will get is the same information
you would get querying a context broker. what would be the sense of this?
then instead of querying QL, you should just query ORION, because unless
you "stop" the notifications, there won't be any difference.
A different matter is if you want to have such serialisation (always timeseries based, because this is what QL is about),
over "/v2/entities/entityId".
The point then would to understand if to expose the index and how.
Cheers

Hello, @pooja1pathak
The output format should be an array of true NGSI V2/LD entities, such as :
[
    {
        "id": "TrafficFlowObserved:06088AU0025_001_1",
        "type": "TrafficFlowObserved",
        "name": {
            "type": "Text",
            "value": "..."
        },
        "dateModified": {
            "type": "DateTime",
            "value": "2021-04-05T19:36:41.00Z"
        },
        "dateObserved": {
            "type": "DateTime",
            "value": "2021-04-05T19:35:33.00Z"
        },
        "address": {
            "type": "PostalAddress",
            "value": {
                "streetAddress": "...",
                "postalCode": "",
                "postOfficeBoxNumber": "",
                "addressLocality": "...",
                "addressRegion": "",
                "addressCountry": ""
            }
        },
        "occupancy": {
            "type": "Number",
            "value": -1
            }
        },
        "location": {
            "type": "geo:json",
            "value": {
                "type": "Point",
                "coordinates": [
                    7.249663107,
                    43.699122501
                ]
            }
        }
    },
    {
        "id": "TrafficFlowObserved:06088AU0029_001_1",
        "type": "TrafficFlowObserved",
        "name": {
            "type": "Text",
            "value": "...."
        },
        "dateModified": {
            "type": "DateTime",
            "value": "2021-04-05T19:36:42.00Z"
        },
        "dateObserved": {
            "type": "DateTime",
            "value": "2021-04-05T19:35:33.00Z"
        },
        "address": {
            "type": "PostalAddress",
            "value": {
                "streetAddress": "blah",
                "postalCode": "",
                "postOfficeBoxNumber": "",
                "addressLocality": "...",
                "addressRegion": "",
                "addressCountry": ""
            },
            "metadata": {}
        },
        "occupancy": {
            "type": "Number",
            "value": 0,
          }
        },
        "location": {
            "type": "geo:json",
            "value": {
                "type": "Point",
                "coordinates": [
                    7.253000539,
                    43.701089603
                ]
            }
        }
    },
....other entities
]

"entityID" should be "id"
"entityType" should be "type"

Hi @chicco785 please review my comment: https://github.com/orchestracities/ngsi-timeseries-api/issues/469#issuecomment-850238340 and let me know if  it solves this issue or #102  or any modification is required , so I can start working on the same.

@agaldemas i am not sure this make sense to be honest.
the /v2/entities api is a commodity entry point meant to return
the list of available entities (so that you can query them specifically as /v2/entities/entityId)
and their "last" index.
now, assuming you will expand to the full entity using the full format (without
changing the paradigm of "last index"), what you will get is the same information
you would get querying a context broker. what would be the sense of this?
then instead of querying QL, you should just query ORION, because unless
you "stop" the notifications, there won't be any difference.
A different matter is if you want to have such serialisation (always timeseries based, because this is what QL is about),
over /v2/entities/entityId.
The point then would to understand if to expose the time index and how.
Cheers

Hello, @pooja1pathak
The output format should be an array of true NGSI V2/LD entities, such as :
[
    {
        "id": "TrafficFlowObserved:06088AU0025_001_1",
        "type": "TrafficFlowObserved",
        "name": {
            "type": "Text",
            "value": "..."
        },
        "dateModified": {
            "type": "DateTime",
            "value": "2021-04-05T19:36:41.00Z"
        },
        "dateObserved": {
            "type": "DateTime",
            "value": "2021-04-05T19:35:33.00Z"
        },
        "address": {
            "type": "PostalAddress",
            "value": {
                "streetAddress": "...",
                "postalCode": "",
                "postOfficeBoxNumber": "",
                "addressLocality": "...",
                "addressRegion": "",
                "addressCountry": ""
            }
        },
        "occupancy": {
            "type": "Number",
            "value": -1
            }
        },
        "location": {
            "type": "geo:json",
            "value": {
                "type": "Point",
                "coordinates": [
                    7.249663107,
                    43.699122501
                ]
            }
        }
    },
    {
        "id": "TrafficFlowObserved:06088AU0029_001_1",
        "type": "TrafficFlowObserved",
        "name": {
            "type": "Text",
            "value": "...."
        },
        "dateModified": {
            "type": "DateTime",
            "value": "2021-04-05T19:36:42.00Z"
        },
        "dateObserved": {
            "type": "DateTime",
            "value": "2021-04-05T19:35:33.00Z"
        },
        "address": {
            "type": "PostalAddress",
            "value": {
                "streetAddress": "blah",
                "postalCode": "",
                "postOfficeBoxNumber": "",
                "addressLocality": "...",
                "addressRegion": "",
                "addressCountry": ""
            },
            "metadata": {}
        },
        "occupancy": {
            "type": "Number",
            "value": 0,
          }
        },
        "location": {
            "type": "geo:json",
            "value": {
                "type": "Point",
                "coordinates": [
                    7.253000539,
                    43.701089603
                ]
            }
        }
    },
....other entities
]

"entityID" should be "id"
"entityType" should be "type"

Hello @chicco785, the idea is to interact like with a context broker (with GET /v2/entities/ query or another method path if you prefer), but through QL, to query CrateDB, and receive an array of NGSI V2 entities composed of historical data, corresponding to the request parameters.
In any case the context broker doesn't store history, the data tank is CrateDB, fed through QL, we could query it directly, as a data source, like with Grafana, but in our project, the customer prefer to expose an http REST api endpoint, than opening CrateDB, this is the reason of having this feature at QL level.

@chicco785 @c0c0n3  Gentle Reminder for https://github.com/orchestracities/ngsi-timeseries-api/issues/469#issuecomment-851415593

it should be simpler to maintain and less invasive...

yep, I agree. But in my opinion if we enough people are willing to contribute to improve queries, we should take a more radical approach where we either replace the current implementation with a tool like sql alchemy or if not possible we roll our own little query language---i.e. query input gets parsed into an ast, then the ast gets converted to sql, finally the sql gets run. This avoids writing code that has to cater for all possible parameters combinations known to man as we do at the moment...

We need urgently this array of entities as output, for a project with Knowage, we already are in late, so we need to take the fastest way, keeping the same philosophy as for now for database query.
If later there's a change, we will adapt !

need urgently this array of entities as output

I can relate to that :-) I suppose my suggestion isn't a short term kind of thing, so we should rather go ahead w/ what you proposed, as long as @chicco785 is okay w/ that?

@pooja1pathak is working on PR #502 that should provide what you need once landed, using /op/query endpoint.

@agaldemas PR #502 is now merged in master branch. Please let us know if it solves your purpose.

Hello, @pooja1pathak, not exactly, but it should be useful anyway !
On our side we have implemented a new method /v2/entitiesArray/{entityType}, to be able to retrieve several entities at the same time, from the same type, in one request
I'll propose a PR soon, before we still need to add tests.

hi @agaldemas,
rather than a new end point, which will not be compliant with original ngsi v2 api structure, i recommend to extend the /v2/op/query api as needed. so to get value for all entities of a type, you will need to introduce support for idPattern, which is not yet covered.
Beyond that, if you wish to have data for a historical range, you could add an option "e.g. options=historical" as well as the time indexes.
If you propose a design logic based on the above, happy to review it before you actually finalise the code, so the PR process is gonna be faster.

I'm OK with your proposal, you're right our new operation, break the ngsi v2 api structure.
It shouldn't be too difficult to change.
Thanks for your suggestion !
We'll propose the PR after reviewing our copy,
see you soon !

for @HugoT852 to be informed


Bug Fix -  tags with no title attribute

Hi,
I just fixed an issue in your project relating to using HtmlToMarkdownConverter in inline mode. I'm using a javascript WYSIWYG content editor that produces html anchor tags that don't have title attributes. When I ran this through HtmlToMarkdownConverter I got a KeyNotFoundException. I've fixed up the line of code that tries to access the title attribute to check if it exists first (in the same way that a check is done on the href attribute).
Feel free to merge in this pull request to the main project if you are still maintaining it.
Commit message:
Fixed a bug where a KeyNotFoundException was thrown if parsing  tags with no title attribute in inline mode. Added unit test to cover this scenario.

Hey Cheers mate for finding this and taking the time to do something about it!

No probs, glad I could contribute.
Thanks,
Jon


coro_rpc example file-transfer  error

Search before asking

[x] I searched the issues and found no similar issues.

What happened + What you expected to happen
coro example in sub -> bug in file transfer - upload file yes bug download file fail
I test it with Ubuntu22.04 Clang14 Ninja Debug
If the error is expected  just close my issus . I don't know too much  about code for internet

run file_server;
run file_client;
input an exist file to upload;

for example: create a test.txt file(fill some strings), and then input test.txt.
You will get such logs:
#./file_client
please input filename
test.txt
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:155: client_id 0 begin to connect 9000
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:332: client_id 0 connect timer canceled, is_timeout_ false, timeout false, duration 5000 ms
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:332: client_id 0 rpc call timer canceled, is_timeout_ false, timeout false, duration 5000 ms
hello lantinglibs
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:332: client_id 0 rpc call timer canceled, is_timeout_ false, timeout false, duration 5000 ms
hello lantinglibs
begin to upload file test.txt
real size = 32
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:332: client_id 0 rpc call timer canceled, is_timeout_ false, timeout false, duration 5000 ms
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:332: client_id 0 rpc call timer canceled, is_timeout_ false, timeout false, duration 5000 ms
upload finished
begin to download file test.txt
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:332: client_id 0 rpc call timer canceled, is_timeout_ false, timeout false, duration 5000 ms
download test.txt finished
[2022-12-08 10:14:30.558] [info] coro_rpc_client.hpp:636: client_id 0 close

and you will find the download file: temp.txt.

I test it with my own file in other path.
I didn't use the temp.cpp.


Add OC receiver configuration options

OC receiver is missing the configuration options in the new config format. This can be an opportunity also to refactor the OC receiver code to not use the functional Option pattern and instead use a simple config data structure with proper default values.

Closed via #167 no refactor regarding configuration format.


Fix pickling of stores

Closes #348
not sure what to fix yet.

For now we are just going to keep the error for memory pickles, and make sure the filesystem pickles are tested correctly


Julia 1.8.3 can't "add OpenCV"  CxxWrap issues.

I'm running Julia 1.8.3.  I can get CxxWrap 0.12 (and corresponding libcxxwrap-julia v0.9.0) to "add CxxWrap" and Pkg.precompile() fine.  In fact, I can "import CxxWrap" - no problem.  What I'm finding is that when I "add OpenCV" it's version of CxxWrap doesn't work for me.  The CxxWrap wants a version of libcxxwrap-julia to be less than 0.9.0.  The problem is that when I bump libcxxxwrap-julia down one notch to 0.8.3 - I can't build it.  I suspect CxxWrap 0.11 doesn't like Julia 1.8.3.  Not sure what to do.

Here's what I did.  I "rm CxxWrap" and I went into .julia/packages and delted "CxxWrap".  Then I "dev OpenCV" and hacked the Project.toml file to only use CxxWrap 0.12.  Then I added CxxWrap 0.12 "add CxxWrap".  Which automatically updated OpenCV.  I can now "using OpenCV".  I still have to test it.

Well, I was able to load and image and display it.  As a seasoned c++/python opencv user, I'll have to explore how to use OpenCV from Julia.

Sounds like this can be closed, @ashwani-rathee ? Cf. passing tests in #25.

Installable and precompiles just fine on Julia 1.8, locally tested


JS best practices

JavaScript best practices:

Nice use of scope.
Variables and functions are well named.
Functionalities are simple.
Code is easy to read.

DRY,KISS and YAGNI:

Functionalities are simple.
Code is not repeating.
There is no trash Code.

HTML and CSS best practices:

Element tags are correct.
Multiple css rules.
Not inline comments.

Thanks for the feed back


Godot shader parser does not check mat4=mat4*vec4 incompatible types

Godot version:
Godot 3.2.2 stable
OS/device including version:
Linux
Issue description:
write in Godot shader:
mat4 matx=mat4(0.);
matx*=vec4(1, 1, 1, 0);

no error by Godot, but shader can not be compiled

cc @Chaosus

This issue is fixed in master branch - but not in 3.2.

Or not.. sorry Im bit confused


[STR-1125] feat (user replacement) - added method to pass PUT request…

… on user replacement update

Should this not be built off the branch that compass is using. I only ask because we made updates to the sdk that i dont believe are used by compass 1

👍


CODEOWNERS: fix owner of build-infrastructure

Update path to build-infrastructure platform.

Your PR is queued. See the queue page for details.

I've triggered a build for you. Click here to see all failures if there's any.


eof not reached for streams created from strings

Streams are affected by https://bugs.php.net/bug.php?id=77146
You can reproduce it with a unit test:
$data = "foo";
$stream = \GuzzleHttp\Psr7\stream_for($data);
$this->assertSame(strlen($data), $stream->getSize());
$this->assertSame($data, $stream->read(strlen($data) + 1));
$this->assertSame(strlen($data), $stream->tell());
$this->assertTrue($stream->eof());

A workaround may be possible by comparing tell() with size() on affected versions, but it would lead to ugly quirks...
What do you think?

As of Guzzle PSR-7 2.0.0 the minimum required PHP version will be PHP 7.2 which doesn't have this issue. For now, I would suggest migrating to the latest PHP version as a solution.

Closing, since this is a PHP bug present in only EOL PHP versions.


Elixir version upgrades

updates for

Erlang deb package: 1.0 -> 2.0
Elixir: 1.11.4 -> 1.12.2
Erlang: 23.3.1 -> 24.0.4

I think @mctofu and I actually ran into some certificate errors when running this in production

@baseballlover723 Thank you for your contribution!
Newer versions of Elixir are causing issues with the way we run Dependabot in production. For this reason we've pinned it to the latest working version. Unfortunately we have to avoid upgrading Elixir at the moment.
Closing the PR.

FYI we're having issues with the OTP version, so that needs to stay at 23, I think the rest of this should be safe to update.
I'm documenting the pinned version for future reference: https://github.com/dependabot/dependabot-core/pull/4092


Listen events on call

Hi.
The plugin is basic on relation from the call. And this is good, but, if the plugin allow get events at "Call success", "Call canceled" its great!
Thanks from the develop of this plugin.

Sorry for Delay on replay. Thank you.
Let me check and add a feature.


[HOLD for payment 2024-04-25] Deleting a tracked expense hides all tracked expense

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.62-0
Reproducible in staging?: y
Reproducible in production?: no new feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @ishpaul777
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1712785816252459
Action Performed:

Open self DM
Create few track expenses
Delete one of them

Expected Result:
Should show other expenses
Actual Result:
All the track expenses getting deleted
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/38435837/5190f90e-acd2-4c2d-9b86-57251f671095
https://github.com/Expensify/App/assets/38435837/496ad18a-e9a3-45b8-8530-2c92fe5c5496

View all open jobs on GitHub

Proposal
Please re-state the problem that we are trying to solve in this issue.
The track expense hide when there is only one track expense.
What is the root cause of that problem?
This happens after https://github.com/Expensify/App/pull/39239.
In getOneTransactionThreadReportID, we get all the report reportActions and take IOU action that is in iouRequestTypes list.
https://github.com/Expensify/App/blob/260a7de64b083e82d3a79ad8b48d94b4a32885c2/src/libs/ReportActionsUtils.ts#L227-L239
If the length is 1, we treat it as a one-transaction report, even though it's a chat report. This started to happen when we added TRACK to the iouRequestTypes list.
In self-DM, track expense doesn't have an IOU report and it leads to a transaction thread. It was added to cover the case of workspace chat where the track expense have an expense report. Because it's detected as a one transaction report, the track expense action is filtered out.
https://github.com/Expensify/App/blob/260a7de64b083e82d3a79ad8b48d94b4a32885c2/src/pages/home/report/ReportActionsView.tsx#L149-L152
What changes do you think we should make in order to solve the problem?

If it's not a money request report, return null from getOneTransactionThreadReportID.

Works fine!
https://github.com/Expensify/App/assets/32012005/36169d25-37db-4d4c-a7f6-5ca63f49461b

Since this was a regression I don't think payment is needed, right?


command to stop deployment on local

There is no way to stop local running Airflow setup as of now

you can always manually work with the deploment by doing something like docker-compose -f deploments/your_deployment_name-docker-compose.yml stop


<EMAIL_ADDRESS>hash check failed

Please clear scoop cache with scoop cache rm and try again. If you are not using aria2, try downloading with that by installing aria2 prior to installing oraclejdk.

tried both. first clearning cache and later with Aria2, no success.

here is the log
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
Installing 'oraclejdk-lts' (8u181-b13) [64bit]
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 69c6fe|OK  |    12KiB/s|C:/Users/c/scoop/cache/oraclejdk-lts#8u181-b13#http_download.oracle.com_otn-pub_java_jdk_8u181-b13_96a7b8442fe848ef90c96a2fad6ed6d1_jdk-8u181-windows-x64.exe_dl.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of jdk-8u181-windows-x64.exe ... ERROR Hash check failed!
App:         java/oraclejdk-lts
URL:         http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-windows-x64.exe#/dl.7z
First bytes: 3C 48 54 4D 4C 3E 0D 0A
Expected:    6d1e254081d56fa460505d5b0f10ce1e33426c44dfbcab838c2be620f35997a4
Actual:      9b1fe5b09266e549b065457b3543a6a1224dad446fa2728bbc24efc5f1e00e22
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/se35710/scoop-java/issues/new?title=oraclejdk-lts%408u181-b13%3A+hash+check+failed

Log for oraclejdk10 also.
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
Installing 'oraclejdk10' (10.0.2-13) [64bit]
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 801389|OK  |   124KiB/s|C:/Users/c/scoop/cache/oraclejdk10#10.0.2-13#http_download.oracle.com_otn-pub_java_jdk_10.0.2_13_19aef61b38124481863b1413dce1855f_jdk-10.0.2_windows-x64_bin.exe_dl.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of jdk-10.0.2_windows-x64_bin.exe ... ERROR Hash check failed!
App:         java/oraclejdk10
URL:         http://download.oracle.com/otn-pub/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_windows-x64_bin.exe#/dl.7z
First bytes: 3C 21 44 4F 43 54 59 50
Expected:    bd2aa173db14789ac0369ab32bf929679760cae9e04d751d5f914ac3ad36c129
Actual:      48f6da5d3d4cd16c7f77f80416bec8aed6ac29ed8484dd0be71b30ffb40a94b4
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/se35710/scoop-java/issues/new?title=oraclejdk10%4010.0.2-13%3A+hash+check+failed

Current Scoop version:
1b8c5073 (HEAD -> master, origin/master, origin/HEAD) Add mingit-busybox version 2.18.0.windows.1 (#2576)
'extras' bucket:
3d49e63 (HEAD -> master, origin/master, origin/HEAD) quicklook: Update to version 3.6.2
'java' bucket:
f2b9915 (HEAD -> master, origin/master, origin/HEAD) adopt10-hotspot-nightly: Update to version<PHONE_NUMBER>04
'nonportable' bucket:
f4649c3 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #8 from pakonda/vpnc-fe

The checksums in the manifests are exactly the same as here:
8u181-b13
10.0.2+13

the problem could be at my end sir.
my Org IT folks, for some stupid reason, blocking JDK download.
That's why tried using scoop as workaround. anyway thanks for all your prompt responses.

np. maybe openjdk or zulu works for you?


Web Archive support - for better

Version
v2.11.0
Reproduction link
https://web.archive.org/web/20191224085425/https://www.webo.agency/
Steps to reproduce
Go to ANY Nuxt page that is generated
Save to WebArchiwe
Look on link - no JS/CSS visible
What is expected ?
Full nice page ;)
What is actually happening?
Broken static website
Additional comments?
This will add possible for WebArchive to save in time websites. Even if domain won't be extend then we can have history of what Nuxt start and what sites used It in time

This bug report is available on Nuxt community (#c10594)

Can't repro with https://web.archive.org/web/20191213071428/https://www.lichter.io/timeline/

Your "window.NUXT={layout:"default",data:[],error:null,serverRendered:!0}"
My is blown up. How it is that in generate mode?
Your source use different version as this isn't visible in main in script: "nomodule"
Can you check with my open source code before complain that is work ? :)
https://github.com/webo-agency/webo-frontend

Ok, I check your version vs my:
Your: https://github.com/manniL/lichter.io/blob/master/package.json
My:  https://github.com/webo-agency/webo-frontend/blob/main/package.json
This version isn't as my:
"nuxt-edge": "^2.11.1-26362097.b71eaee",
What is "nuxt generate --fail-on-error " different than normal generate when used in CLI enviroment? It won't fail normally?
You use:
" modern: !utils.isDev && 'client',"
I use "Legacy bundle" so it is different ;/
Sorry If I sound bad on reply, I will help If I can find clue what is going on :) This is not some "error" in console. It show "404" and my "window.NUXT is different". I have even "window.WEBO" so this "__" appear different even

Feel free to provide a minimal version of the problem (e.g. a stripped-down repo). I can't take the time to dive into full-blown projects as there are many more issue waiting 🙁.

 How it is that in generate mode?

Because asyncData results are stored there for serialization.

This version isn't as my:
"nuxt-edge": "^2.11.1-26362097.b71eaee",
Shouldn't make a difference.

What is "nuxt generate --fail-on-error " different than normal generate when used in CLI enviroment? It won't fail normally?

This will exit the build cmd when a site returns an error during generation, yes.

You use:
" modern: !utils.isDev && 'client',"
I use "Legacy bundle" so it is different ;/

Modern mode should not influence the capabilities of loading

@manniL Hello. This error is gone in new Nuxt 2.13 with Full Static Page Cache. As no "window.nuxt" exist.
It is by proper serialization. I'am 100% sure that is error on filtering inputs. I try hard to ad many  and disable minify html or terser. Once was and once no error was give and sometimes show different place where start leak on footer. Bear in mind: this was half simple string cut. Maybe request was to heavy so in memory it was cut or some timing show up.
Thank you for giving so much time in this project.
Issue is solve by updating to latest version.

Pleas remove staled tag as this was resolved :)


[Login page] User can't log in with e-mail in the main 'Login page'

Environment: Android Samsung Galaxy A 10s
Reproducible: always
Build found: v1.0.371.apk
Preconditions
Go to main 'Login page'
Steps to reproduce:

Type valid email address and press 'Login' button

Actual result
System the system does not respond on the 'Login page'. Rotating action waiting icon.
Expected result
The user logged into the system
Labels to be added
"Bug" ("bug"), Priority ("critical: ")
https://user-images.githubusercontent.com/91321998/137958704-72830ad3-c0b7-48f4-8f65-090a014513ee.mp4

Closed with #809 #810


riscv64: Special-case f32const 0 and f64const 0

This commit is inspired by discussion on #8695 which made me remember the discussion around #7162 historically. In lieu of a deeper fix for the issue of "why can't iconst 0 use (zero_reg)" it's still possible to add special-cases to rules throughout the backend so this commit does that for generating zero-value floats.

Received request to deprovision: The request was cancelled by the remote provider.

After 4 times in a row I'm going to deprovision myself for tonight.


Fix voice translation issue

Summary of error and possible solutions: https://www.reddit.com/r/swift/comments/dtixr1/super_obscure_sfspeechrecognizer_error/

This file could be of interest: Voice.m
% find . -name 'Voice.m'
<EMAIL_ADDRESS>
And these links:
https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest/3152603-requiresondevicerecognition
https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest
https://www.reddit.com/r/swift/comments/dtixr1/super_obscure_sfspeechrecognizer_error/


Working with gpg key, sign release

https://central.sonatype.org/publish/requirements/gpg/
For maven - https://central.sonatype.org/publish/publish-maven/
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-release-plugin</artifactId>
  <version>2.5.3</version>
  <configuration>
    <autoVersionSubmodules>true</autoVersionSubmodules>
    <useReleaseProfile>false</useReleaseProfile>
    <releaseProfiles>release</releaseProfiles>
    <goals>deploy</goals>
  </configuration>
</plugin>

mvn release:clean release:prepare

gpg
https://www.gnupg.org/

https://cloud.google.com/kms/docs/create-validate-signatures#kms-sign-asymmetric-cli
openssl dgst \
    -sha256 \
    -verify public-key-file \
    -signature signature-file \
    message-file

http://maven.apache.org/plugins/maven-gpg-plugin/
<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>3.0.1</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  ...
</project>

Usage reference: http://maven.apache.org/plugins/maven-gpg-plugin/usage.html

Existing gpg configuration:
https://github.com/j143/systemds/blob/2ae0f818d9fc5092408df6ff3fe75539a5117e40/pom.xml#L687-L705

https://maven.apache.org/guides/mini/guide-encryption.html

Example gpg key generation:
$ gpg --gen-key
gpg (GnuPG) 2.2.4; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Note: Use "gpg --full-generate-key" for a full featured key generation dialog.

GnuPG needs to construct a user ID to identify your key.

Real name: Ja.. I..
Email address<EMAIL_ADDRESS>You selected this USER-ID:
    "Jan<EMAIL_ADDRESS>
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: key 07....50 marked as ultimately trusted
gpg: directory '/home/user/.gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/home/user/.gnupg/openpgp-revocs.d/72CE7......rev'
public and secret key created and signed.

pub   rsa3072 2021-05-20 [SC] [expires: 2023-05-20]
      72CE......
uid                      Jan<EMAIL_ADDRESS>sub   rsa3072 2021-05-20 [E] [expires: 2023-05-20]


[ECS] Drop autobind, use ParameterProvider with pre-defined constants instead

cc @mssimi This is what I talked about today, with moving from magic parameters to constants :)
Clicking on constant origin works like a charm :love_you_gesture:
Here is how you find default value and where it is defined in 5 seconds...

Ref https://github.com/rectorphp/rector/issues/4246


Add support for parallel input event handler

I try to encourage Lona users to use callback based input event handler to make their apps more scaleable, but currently input event handler run serialized.
Let's say we have two buttons. The first button triggers a long running operation (getting a value from a database), the second triggers a short running operation (toggling a popup). When the first button is pressed the popup can't be opened or closed, until get_count_from_database() is done. For the end-user the app then feels slow and unresponsive.
from lona.html import HTML, H1, Span, Button
from lona import LonaView

from my_code import long_running_database_call, Modal

class MyLonaView(LonaView):
    def get_count_from_database(self, input_event):
        self.count = long_running_database_call()

    def toggle_modal(self, input_event):
        self.modal.toggle()

    def handle_request(self, request):
        self.counter = Span()
        self.modal = Modal()

        return HTML(
            H1('The count from the database is: ', self.counter),
            self.modal,
            Button(
                'Get count from Database',
                handle_click=self.get_count_from_database,
            ),
            Button(
                'Toggle modal',
                handle_click=self.toggle_modal,
            )
        )

You can solve this issue by runnnig get_count_from_database() in a thread, but i think we can automate this.
My idea is to allow parallel execution of input event handlers in the server, but very limited. I think we can't just use a thread for every click a user makes (that would be ascalability nightmare), but we can make the count of parallel input event handler configurable in the settings.
I would propose 2 as default. With two parallel handlers you can run one long running call and service input like button presses, without handling threading by yourself.
@SmithChart, @maratori, @grigolet, @laundmo, @korantu

I think async is better for this case than threads, but it may require API changes.

@maratori: do you have an idea how an API could look like?

@maratori: do you have an idea how an API could look like?

Nope :)

:D
I am not sure if i want to introduce an async API. To make the whole API sync was an design criteria actually, because in my opinion giving end-users an async API can be error prone:
async def handle_input_event(self, request):
    long_running_database_operation()

For someone who try to solve a real world problem, like an accounting APP, this code might look just fine and it will work on their laptop, but the io loop is blocked until the database operation is done.
We could add an async API for users who know what they are doing, but we need a solution for the sync world as well, and i am not sure if i want to support both.

Totally agree

I like keeping API sync idea, actually. async can add a lot of mental overhead.
Not sure about adding a low default limit though. Maybe make parallelizing callbacks simple but not default - and shout severe warning to user if theirs take long time.
Just a thought.

I like keeping API sync idea, actually. async can add a lot of mental overhead.
Maybe just use thread pools if scalability is an issue? I am not convinced in default low limit...
I was originally suggesting making threaded callbacks explicit, but that would complicate API, likely unnecessary.

I did some experiments and i realized just limiting, the jobs a view can run simultaneously, to a finite number, has multiple problems:

No great solution for "power-clicking". The proposed solution would give the user one thread for long running tasks, and one for short running tasks, to make the app feel fast and responsive, but nothing to distinguish between these two kinds of work-load. This means, if you have one button, that triggers a long running operation and you click it two times, you will have the initial problem, i try to solve here, on the third click.

Designed bottleneck. Setting a finite number would mean that, even if you are the only user of a machine with 10 cores and 100 threads running, your clicks are bottlenecked to 2 (or another number).

Priorities instead of limits
I think a better solution for this is to not limiting parallel jobs, but to prioritize them: All input events get pushed into one PriorityQueue with a timestamp as their priority. Per view we have a counter of pending input events, that gets incremented on an incoming input event, and decremented when an input event got handled.
When an input event comes in, it gets put into the queue with its priority set to
(now() + timedelta(seconds=pending_input_events)).total_seconds.
This way "power-clicking" would be accounted for, and slow only one user down, but not his neighbors, this scales up and down and parallel execution would be possible.
Why timestamps? In this context they are called deadlines and ensure that jobs can be prioritized, but can't get stuck in the queue indefinitely. If we would use a base priority of 1, views with only short running jobs would never decrease their priority and would clog the top of the queue.

When an input event comes in, it gets put into the queue with its priority set to
(now() + timedelta(seconds=pending_input_events)).total_seconds.

This could lead to a situation where events from a user could be re-ordered on the server, right?
I can imagine use-cases where users click a few buttons in quick succession (especially when each action takes a short moment). I guess any power-clicking user would their events to be executed in the order they have been issued.
When a previous click is intended to change a state and a later click should work on this changed state re-orderung would break this use-case.

This could lead to a situation where events from a user could be re-ordered on the server, right?

No.
priority = (now() + timedelta(seconds=user.pending_input_events)).total_seconds

I changed the variable names to make my point more clear.
This deadline-scheduling basically, and should ensure that all tasks that use the same user.pending_input_events (so per user) will be executed in the right order, but other tasks can be scheduled before or between them.


Importing css or scss file no longer possible

Error CSS Modules cannot be imported from within node_modules. when trying to import css or scss file directly in jsx components.
import styles from './DefaultLayout.module.scss'

The code causing this:
https://github.com/SolidZORO/next-plugin-antd-less/blob/4991a3ed4324c0bafb721bd50b45d33c0c631b71/index.js#L93
I think we are supposed to insert the lessModule instead of replacing sassModule with it, in order to existing sass loader and it's features.
Proposed fixed:
rules[1].oneOf.splice(sassModuleIndex, 0, lessModule);

Can I import less in component like this?


add Xata to showcase list

Hello,
congrats on the awesome project.
Happy to say xata is now using Turbo, so it would be great to add your list of happy users!
🫶 😎

Looks good to me, thanks! Although I also just approved #1661, so we may need to rebase/merge upstream

I see you went ahead and already done.
So thank you twice @mehulkar 🙇


cloudy don't work

http://www.cloudy.ec Don't work Suddenly

Carefully read new issue template and provide all requested information.

Carefully read new issue template and provide all requested information.


elm-make permission denied

C:\Users\Philip>elm-make
Some new packages are needed. Here is the upgrade plan.
Install:
elm-lang/core 2.1.0
Do you approve of this plan? (y/n) y
Downloading elm-lang/core
elm-make: elm-lang-core-5204441: MoveFileEx "elm-lang-core-5204441" "2.1.0": permission denied (Access is denied.)
Fresh install on windows 10.  I tried running as administrator.
I used the http://elm-lang.org/install windows installer.

I probable should have put this in the elm-package repo.  https://github.com/elm-lang/elm-package/issues/139

I uninstalled and reinstalled using npm.
I set the ELM_HOME to my user home directory.  Still the same problem.  GHC is the latest version, as is npm.

Having the same issue.
PS C:\Users\erik\Dropbox\elm-test> elm make
Some new packages are needed. Here is the upgrade plan.

  Install:
    elm-lang/core 2.1.0

Do you approve of this plan? (y/n) y
Downloading elm-lang/core
elm-make.exe: elm-lang-core-5204441: MoveFileEx "elm-lang-core-5204441" "2.1.0": permission denied (
Access is denied.)
PS C:\Users\erik\Dropbox\elm-test>

I helped someone fix this tonight. He didn't have Git installed, and when we installed Git (and then manually ran elm-package install - not sure if that also helped, but certainly elm-package relies on Git being installed), and it worked.

I just tested it twice and it worked.  I had Git installed before, and I haven't done anything to fix the problem, so I'm not sure why it worked.

Same problem. The following transcript is from git bash, same thing happens from cmd.exe. The latest git version & elm version might matter.
[529: 10:43 PM ~/elm-test]$ elm package install
Some new packages are needed. Here is the upgrade plan.

  Install:
    elm-lang/core 3.0.0

Do you approve of this plan? (y/n) y
Downloading elm-lang/core
elm-package.exe: elm-lang-core-243a31b: MoveFileEx "elm-lang-core-243a31b" "3.0.0": permission denied (Access is denied.)
[530: 10:44 PM ~/elm-test]$ git --version
git version 2.6.4.windows.1
[532: 10:44 PM ~/elm-test]$ uname -a
MINGW64_NT-10.0 Blocky 2.4.0(0.292/5/3) 2015-12-12 15:39 x86_64 Msys
[531: 10:44 PM ~/elm-test]$ elm package
elm package 0.16.0
(...)

UPDATE: I moved the elm-test directory to c:\, and ran elm package install there. It worked. It now works in the original location as well. ????!!!

I had this issue yesterday. Here's what I noticed.
I was trying to compile an elm file with the reactor in a folder that was in my Dropbox (which is being watched for synchronisation with the network).
When I moved it back to the c:\ drive it all started working
But note: I had been working in the Dropbox folder previous to yesterday without any problems :(

I had same issue today.
I succeeded to run elm-make during disable realtime scanning of McAfee Internet security.
Notes:
First, I succeeded to install only once by trying elm-make  again and again with enable antivirus.
I guess that the strategy of elm-make using rename and antivirus are not a well-matched.
Environment:

OS: Windows 10(64bit)
node: v6.3.1
npm: 3.10.3
git: 2.8.1.windows.1
elm: 0.17.1
McAfee Internet security: 14.0 R10

This is what worked for me on my windows machine.

go to settings on chrome
scroll down and choose "advanced settings"
click on "change proxy settings"
click on the "security tab"
click on "trusted sites"
click on "Add" button
type "https://github.com/elm-lang/core"
click "Ok" and you should be good to go

Unfortunately, this did not work for me. I was really stoked to go through an Elm tutorial.  I might just forget about Windows and try this on Linux VM instead. Sigh...

The above solution that I posted is sporadic. It worked for me at times, and at other times it didn't.
Don't give up on elm for windows like I almost did. The guarantee way to write elm code on windows is to install cygwin for windows. So go to cygwin.com and download your version of windows. Add cygwin/bin to path through environment variables and you are good to go. Use the cygwin terminal instead of windows cmd and you are good to go, no more stressing over how to run elm code. Enjoy the wonderful functional language called ELM.

Thanks for the advice, @moneyonrails. I've never used cygwin, but I'll give it a try and see how that goes. I have a couple of laptops, so I may try both Windows and a Linux just to compare and contrast. I appreciate the encouragement.

@moneyonrails I've installed Cygwin; however, I'm not exactly sure how to use it for my purposes. Do I just map my Windows paths to Unix paths, use the Cygwin terminal for all my command line activity, but then still use my Windows text editor (Sublime Text, in my case) as normal?
Is that basically all there is to it?

You have to use cygwin as your terminal to run install elm packages and run
your programs. You just have to know how to navigate to the location of
your programs from the cygwin terminal. When you open cygwin terminal, to
go to the C drive of your computer you do
cd ../../cygdrive/c
From there you can go to any directory. Let's say you have the folder where
you want to run elm on your desktop. From the C drive on cygwin you will
then do      cd users/your-username/Desktop
Assuming the name of the project on your desktop is elm-project. You will
then do cd elm-project. All those change directories are done on cygwin.
Now you can install packages. You could use any text editor. I used sublime
text for my elm stuff, install packages on cygwin, and when done I run
elm reactor             on cygwin  and go to localhost:8000 to watch my
code in action.
To recap you use any text editor to write your elm code. Sublime text
has some elm plugins. If you store your elm project on Documents, and work
with say sublime text, you use cygwin to install packages and run your
code. To go directly to elm-project on Documents folder, you'll do  cd
../../cygdrive/c/users/your-username/Documents/elm-project         and
there you are. Good luck, enjoy
this beautiful functional language.
On Wed, Sep 14, 2016 at 9:10 PM, Warren Wise<EMAIL_ADDRESS>wrote:

@moneyonrails https://github.com/moneyonrails I've installed Cygwin;
however, I'm not exactly sure how to use it for my purposes. Do I just map
my Windows paths to Unix paths, use the Cygwin terminal for all my command
line activity, but then still use my Windows text editor (Sublime Text, in
my case) as normal?
Is that basically all there is to it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/elm-lang/elm-platform/issues/81#issuecomment-247229563,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALdoJ2A5w1jIOMFrN7GnKSuJrx7jOjlQks5qqMUagaJpZM4F8jes
.

@moneyonrails So, basically, your answer is yes, LOL. Thanks for the confirmation, and for elaborating on it to ensure I understood. I did also end up creating a Linux VM on a secondary laptop and installing Elm on it, since I like keeping a foot in the Linux world; however, I'd like to be able to write Elm program on the Windows host as well, so I'm going to try using Cygwin on my primary Windows laptop as you've suggested.
Thanks again for your help.

Hi All,
I'm getting this problem with elm-package and elm-repl - tried the Cygwin work around but it didn't work - also tried powersheell,git-bash and bash for Ubuntu. Obviously something kooky with "wonkdow's" file-privileges....

It worked for me. Windows is not the best platform for writing software
though. You might want to partition your hard drive and install ubuntu for
easier development.
On Oct 5, 2016 4:10 AM, "Jonny Edwards"<EMAIL_ADDRESS>wrote:

Hi All,
I'm getting this problem with elm-package and elm-repl - tried the Cygwin
work around but it didn't work - also tried powersheell,git-bash and bash
for Ubuntu. Obviously something kooky with "wonkdow's" file-privileges....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/elm-lang/elm-platform/issues/81#issuecomment-251646187,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALdoJ3UJT3xtdl7M44mrIiNdjiP6HHTUks5qw4WmgaJpZM4F8jes
.

Ok, so the repl works if it's fired up in a directory that's got all the necessary packages (so "core" in "elm-stuff"?). The packager I just run a few times and it gets there eventually....

McAfee is definitely a problem for the installer.

It worked for me. Windows is not the best platform for writing software
though. You might want to partition your hard drive and install ubuntu for
easier development.

I don't subscribe to this point of view. A great deal of software development has been done on Windows and continues to be done on Windows. Some ecosystems, such as R, are often a pain on Macs due to libgtk issues, some such as Elm have problems on Windows and others, such as Python, PHP, JS or Java are very robust on both. If wide adoption is the goal, it should run on typical dev environments.

It looks like OP's question was resolved. We should close issues after OP gets an answer. Getting help like this is probably better for Slack overall, and if anything needs to be bubbled up, folks who have been around the community longer can open an issue outlining what's going on.


cam.SetBufferCount undefined

(I'm not a developer).
Just for fun, I was trying to create an RPM for Fedora (so using dependencies packaged in Fedora, etc.)
I get this error:
/usr/lib/golang/pkg/tool/linux_amd64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p main -complete -installsuffix shared -buildid 1bg4RFySlHHK36UtosNS/1bg4RFySlHHK36UtosNS -goversion go1.19 -shared -c=4 -nolocalimports -importcfg $WORK/b001/importcfg -pack ./_build/src/github.com/muesli/asciicam/image.go ./_build/src/github.com/muesli/asciicam/main.go
# github.com/muesli/asciicam
_build/src/github.com/muesli/asciicam/main.go:123:10: cam.SetBufferCount undefined (type *webcam.Webcam has no field or method SetBufferCount)
_build/src/github.com/muesli/asciicam/main.go:128:12: cam.StopStreaming undefined (type *webcam.Webcam has no field or method StopStreaming)

Do you have any clue?
Thanks.
Full rpmbuild log

I think I found the issue.
I was using blackjack/webcam release v0.3
While in the go.sum the dependency is
github.com/blackjack/webcam v0.0.0-20220329180758-ba064708e165
Using this dependency I was able to create the rpm (and asciicam works!)
Do you think it is possible to use the latest version of blackjack/webcam?

Do you think it is possible to use the latest version of blackjack/webcam?

Whoops. Just realized that tag v0.3 was released on 2016.


Build/install failing with the latest cargo & git branch

I am trying to install gitu from both cargo install and from git master, but both seems to fail with this error:
$ cargo install --git https://github.com/altsem/gitu.git --locked
    Updating git repository `https://github.com/altsem/gitu.git`
  Installing gitu v0.6.3 (https://github.com/altsem/gitu.git#60024baf)
    Updating crates.io index
error: failed to select a version for the requirement `chrono = "^0.4.34"`
candidate versions found which didn't match: 0.4.31, 0.4.30, 0.4.29, ...
location searched: crates.io index
required by package `gitu v0.6.3 (/Users/maxking/.cargo/git/checkouts/gitu-5e9804da17feeb18/60024ba)`

I looked up the latest versions of chrono on cargo index, which looks like is 0.4.35, but that doesn't seem to work either.

Is this on nightly? CI is green and I'm unable to reproduce on stable (1.76). Probably should run CI on nightly as well as stable 🤔

After updating my Rust toolchains, I don't seem to have the issue anymore. My bad and thanks for quick response.
Looking forward to trying gitu out as a previous Magit user :-)


updates to twitter card

Refs: #4143
Currently looks like:

Copy changes needed:
main copy should read "I made an ACTUAL difference about [issue] and you can too. Sign up for [campaign_title] now: [url]"
Also any idea why it's structured so differently from what @lkpttn had outlined?

@mikefantini it should be set up like that card. It's supposed to be using  that style
I pulled the copy from Social copy on reportback permalink page.  on the campaigns page, but it looks like that's not what you intended, so I will have to add another variable to that page.

ah yeah sorry @angaither that copy is for when we add shares to the confirmation page
should we add another field for "copy for social networks"?

done #4161

sweet thanks!

@angaither any idea why it's not using this style?

@mikefantini
the tokens you will need to enter in the social network share copy are
[node:title] [node:issue] the url will be added to the end of the text automatically

Updated the card
the text your card will look something like this will be replaced with the tweet text

I made an ACTUAL difference about Mental Health and you can too. Sign up for Patient Playbooks now: http://staging.beta.dosomething.org/reportback/1186?fid=2574

Fixed with #4169


Message whitespace is not preserved

Hello,
Early on in the development of my chat bot, I came across an inconvenience where, in order to preserve the arbitrary whitespace of my users' messages, I could not rely on a Message object's content attribute and had to parse the raw Twitch data manually.
After some digging, I found where the function parse() on line 51 of ./parse.py splits the raw data without a separator: groups = data.split(). For a PRIVMSG, the function then uses message = " ".join(groups[4:]).lstrip(":") to rejoin the message with single spaces, effectively discarding possibly intentional sequences of redundant whitespace.
By modifying line 51 to separate by a single space with groups = data.split(" "), Message contents now represent a PRIVMSG's original whitespace accurately.
Here is some code to demonstrate:
import configparser
import twitchio

CONFIG = configparser.ConfigParser()
CONFIG.read('bot.conf')
CLIENT_ID = CONFIG['CREDENTIALS']['client_id']
TOKEN = CONFIG['CREDENTIALS']['access_token']

client = twitchio.Client(token=TOKEN,
                         client_secret=CLIENT_ID,
                         initial_channels=["derek_yeetr"])
parse = twitchio.parse.parser

@client.event()
async def event_ready():
    print("Connected")

@client.event()
async def event_message(msg):
    if not msg.echo:
        print("Raw data:")
        print(msg.raw_data)
        print("Parsed message content:")
        print(msg.content)

client.run()

When the message A message  with   weird    whitespace. is sent in my channel, the output without the split(" ") change is:
Connected
Raw data:
@badge-info=;badges=broadcaster/1;client-nonce=570c27880f93756f640e4ed17387af06;color=#00AABB;display-name=derek_YEETr;emotes=;first-msg=0;flags=;id=49a8c0c7-e091-47ce-9464-c182effbab22;mod=0;room-id=436164774;subscriber=0;tmi-sent-ts=1651124432289;turbo=0;user-id=436164774;user-type=<EMAIL_ADDRESS>PRIVMSG #derek_yeetr :A message  with   weird    whitespace.
Parsed message content:
A message with weird whitespace.

And with the change:
Connected
Raw data:
@badge-info=;badges=broadcaster/1;client-nonce=bee7ee150ad012915b2672e93396aa24;color=#00AABB;display-name=derek_YEETr;emotes=;first-msg=0;flags=;id=3a73d481-2157-47ac-bfcf-e28e9958af22;mod=0;room-id=436164774;subscriber=0;tmi-sent-ts=1651127127178;turbo=0;user-id=436164774;user-type=<EMAIL_ADDRESS>PRIVMSG #derek_yeetr :A message  with   weird    whitespace.
Parsed message content:
A message  with   weird    whitespace.

Since the message body comes at the very end of PRIVMSG data, and I believe there is no chance of consecutive spaces presenting anywhere before it, I see no harm in implementing this three-character change to the source code. If it poses issues for events other than PRIVMSG and WHISPER, perhaps groups can be redefined under the respective if-statements to make the proper exceptions.
Thank you for your consideration!

We can confirm that this is fixed in 3.0 development. However we view this change as a breaking change due to people expecting the lib to handle whitespace, and as such cannot merge this into 2.x.
Thanks for the report though


Missing functions from Utils.js

rotateCoords and clampAndMap functions are non existant in the Utils file in the new version and commit

Forgot to update the BloomCore module when I released the latest IllegalMap update, it should be fixed now.


Forgot "project.title"

Hey Tim You Forgot the "project.title" function in the projects area
Attributes:
project.id  #Returns the project id
project.url  #Returns the project url
project.title #Returns the project title<<<<<<< This is that you forgot
project.author  #Returns the username of the author
project.comments_allowed  #Returns True if comments are enabled
project.instructions
project.notes  #Returns the 'Notes and Credits' section
project.created  #Returns the date of the project creation
project.last_modified  #Returns the date when the project was modified the last time
project.share_date
project.thumbnail_url
project.remix_parent
project.remix_root
project.loves  #Returns the love count
project.favorites #Returns the project's favorite count
project.remix_count  #Returns the number of remixes
project.views  #Returns the view count
project.project_token
----- -----
project.update()  #Updates the above data

Thanks, is fixed now


Formatting and punctuation page - small amend

Under capitalisation, change first mention of "lower case" to "sentence case" in: "We always use lower case, including page titles. The exceptions to this are proper nouns and examples in the GOV.UK style guide capitalisation list."
Lower case should not have a hyphen. Check page.

Included in branch update-team-page. I'll let you know when it's ready for review.

Included in the v5.7.1 release


feat: limit exposed functions on note utils

Removes the note_hash as it was only used in the note_utils.
Uses the compute_note_hash_for_read_or_nullify instead of its inner functions when results will be the same

This increases cost, but here I'm doing it for clarity making it easier for us to have something useful first that is understandable and then optimize later.

Stop exposing the inner functions to enhance clarity (at performance cost)

Benchmark results
Metrics with a significant change:

node_database_size_in_bytes (10): 5,126,915 (+44%)
note_successful_decrypting_time_in_ms (8): 495 (+72%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 301f0e6d and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,412
179,524
716,068

l1_rollup_calldata_gas
221,740
866,752
3,448,612

l1_rollup_execution_gas
314,159
984,424
3,668,201

l2_block_processing_time_in_ms
1,434 (-11%)
5,340 (+3%)
21,168 (+2%)

note_successful_decrypting_time_in_ms
:warning: 495 (+72%)
858 (+3%)
3,227 (+2%)

note_trial_decrypting_time_in_ms
103 (+6%)
84.4 (+34%)
152 (+3%)

l2_block_building_time_in_ms
16,132
64,233 (+1%)
257,520 (+1%)

l2_block_rollup_simulation_time_in_ms
11,734
46,832 (+1%)
188,109 (+1%)

l2_block_public_tx_process_time_in_ms
4,361 (+1%)
17,311 (+1%)
69,120 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
16,187 (+2%)
30,526

note_history_successful_decrypting_time_in_ms
1,971 (-1%)
3,799 (-2%)

note_history_trial_decrypting_time_in_ms
133 (-10%)
231

node_database_size_in_bytes
3,515,510
:warning: 5,126,915 (+44%)

pxe_database_size_in_bytes
29,923
59,478

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
214
44,681
25,561

private-kernel-ordering
166 (+1%)
43,753
14,809

base-rollup
1,227 (+2%)
128,338
881

root-rollup
79.4
4,088
677

private-kernel-inner
290
71,208
25,561

public-kernel-private-input
206
31,863
25,561

public-kernel-non-first-iteration
203
31,905
25,561

merge-rollup
7.67 (+1%)
2,608
881

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
15,455
32,222

Transaction processing duration by data writes.

Metric
0 new commitments
1 new commitments

tx_pxe_processing_time_ms
374
1,086

Metric
1 public data writes

tx_sequencer_processing_time_ms
536


SOLR-16172 Error when combining dist Grouping with Childfield sorting

https://issues.apache.org/jira/browse/SOLR-16172
This PR is a reproduction of the crash in main branch:

Check out PR branch
Run ./gradlew test --tests TestDistributedGrouping

Closing in favour of other PRs with actual fix


refactor(backend): enums for EventType

Motivation
Side quest of #2141.
This will improve:
a) Typescript: Enum are one of the few things in TypeScript that adds a "runtime" to the exported JavaScript. It's best practice to avoid and use union types instead.
b) Database: We make use of Prisma's Enum field.
Here's the current state on stage1:
MariaDB [dreammall.earth]> Select Unique(type) from Event;
+----------------------+
| type                 |
+----------------------+
| NEWSLETTER_SUBSCRIBE |
| NEWSLETTER_CONFIRM   |
| CREATE_USER          |
| UPDATE_MY_TABLE      |
| CREATE_MY_TABLE      |
| CREATE_TABLE         |
+----------------------+
6 rows in set (0.000 sec)

MariaDB [dreammall.earth]>

It should be fine.
How to test

Add a typo to the string CONTACTFORM_SEND in src/event/EVENT_CONTACTFORM_SEND.ts.
npm run build => Typescript error

I don't see the point for this - its working as it is, why would we invest anymore time into refactoring this. From a technical standpoint it might be good, but for our quest it is not relevant and bears the risk of breaking things.

As written in the PR description :point_up: I've checked the potential if this PR could break anything. Doesn't seem so.
@ulfgebhardt what do you have in mind, what else could this PR break?


Spandex2

push suggest requests from core through soda-fountain to spandex

soda-fountain #352 SUCCESS
This pull request looks good


Write out email link for support

Currently on the homepage you have a mailto link for the support email. I would guess most people around Government use something like gmail or Office365.
Maybe write out the email address as part of the link. Then people can copy it instead of it opening up the mail app on their device, and then copying it from there.

@TechPunk316 can you advise on teh most elegant way to write this out?
it's this section https://design-system.service.gov.uk#support

The GOV.UK Design System is maintained by the Government Digital Service.
If you need help using any of the GOV.UK Design System features you can:
email<EMAIL_ADDRESS>get in touch on Slack (open in app)
Note: Not sure why but that 'open in Slack' link isn't working for me

closing as now live


Setup a one-pager directory and template

Setup a directory in the workspace that will include all our design docs (one-pagers, dev-guidelines, other design docs, diagrams etc.)
This directory would contain a README.md that describes what the types of documents in the directory and give a few pointers. Tomas's development guidelines would fit in that directory as well, the readme can have a link to it.

Get a consensus for the right location
Setup a one-pager template in markdown format

Make a list of the existing design that need to be documented (e.g. config, webserver), this could be started off the initial one-pagers that we had internally.

@barchetta I've assign this to you, hopefully you won't mind ^^

See PR #177


Add support for SameSite=None; Secure

https://web.dev/samesite-cookie-recipes/
https://blog.chromium.org/2019/10/developers-get-ready-for-new.html
https://digiday.com/media/what-is-chrome-samesite/

Hi, implemented this in this PR - https://github.com/jotes/django-cookies-samesite/pull/24

Was fixed in https://github.com/jotes/django-cookies-samesite/pull/24


Error: config.privateKey does not exist at given fs path

New version is not working. (I was able to do this 5 hours ago)
Here's my config:
- name: deploy using SSH
      uses: garygrossgarten/github-action-ssh@release
      id: remote
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USERNAME }}
        password: ${{ secrets.PASSWORD }}
        port: ${{ secrets.PORT }}
        command: |
          echo test

And here's the log.

Establishing a SSH connection to ***.
⚠ The GitHub Action couldn't connect to ***. AssertionError [ERR_ASSERTION]: config.privateKey does not exist at given fs path
at new AssertionError (internal/assert/assertion_error.js:418:11)
at NodeSSH.connect (/home/runner/_work/_actions/garygrossgarten/github-action-ssh/release/dist/index.js:10101:31) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: undefined,
operator: undefined
}
Error: config.privateKey does not exist at given fs path

I have seen that there are a few updates (0.6.0 & 0.6.1), so maybe something breaks. Haven't check any code yet; just try to provide some information first.

@NoobTW Sorry to hear, please use an older version (0.5.0) until I found the issue

@NoobTW The bugs seems to be coming from updating the node_ssh dependency. Seems like this library now handles it's config different from what I was used to. This should be resolved in 0.6.3. Are you able to try this version and report back?

The release tag is working right now. I'll check 0.6.3 later. Thanks!

Yes, I can confirm that my config works on v0.6.3. This issue can be closed, I think. Thanks!


Users wanted to know where permits could be used before they applied for one.

Impact: Users may be unwilling to start an application if they only know about the permit's validity at a single postcode location.
Evidence: Some users questioned this when reading the start page and were unsure of what exactly was meant by ‘anywhere in Argleton City Centre’

Users need to know where their permit would allow them to park #239

See #313

Leaving this issue open for now. Round 3 showed little evidence of this issue, however, responses on this page were dominated by the HMO copy, which may have obscured this issue

Adding a screenshot of how the prototype for this page now looks. Now has the words:

permit to park near your home

in the first paragraph, and this screen comes after the postcode look up.

link to #259


Sync with upstream

It is expected that here are conflicts. This branch must be force-pushed.

@carlescufi : I need this branch to be force-pushed.
It's complicated.
I can do it myself if I am given the rights.
Zephyr master is currently using the commit fd21c5cb320b946fc48f585563b125331b5425e4
This repo has an outdated 'zephyr' branch.


[C++] Removed usages of boost::regex

Motivation
Remove boost::regex which is the only remaining runtime boost dependency.
Changes
Removed the usage of boost::regex, substituting with std::regex. We only need to use boost::regex with old gcc versions that have buggy implementation of regexes. In particular, this happens with G++ 4.8.2  which is the one used when building manylinux1 Python wheel files.

@BewareMyPower Would you please also help review this PR?

/pulsarbot run-failure-checks


Token Sales Economics Implementation

Specs
https://docs.google.com/document/d/1w7CKE73860m9bRxAmeLSIPvfcWHPlYXdJUYP29VIzME/edit#heading=h.9vncx1hr9mec

Implementation

ACTION addround
ACTION initrounds
ACTION updateprice

price table - contains current price and volume left at that price
rounds table - contains all rounds
First implementation

Simply use current price - sales are limited in volume so overlapping rounds don't matter very much - we give the better price

Second implementation

Calculate the exact number of tokens and price

This has been released and is working
It is backed by extensive untit tests that test all possible cases including buy orders that cross over into the next round, and buy orders that span several rounds


Bug: list gets appended with duplicate items when app resumes (android)

Steps to reproduce the bug in Android:

Open the app and login to your account
Add some grocery items
Now press the home button
Open the app again from Android's recents menu

You'll see that the items are duplicated

Sorry. This is a duplicate of: #277


Setting artifactSourceDefinitionURl and artifactSourceVersionUrl at release time from task

Hello All,
We have a custom artifact source and are trying to populate these 2 well-known endpoints. But my question is can these be set only through data-binding? OR is there a way to set them explicitly from our custom task at release time?
artifactSourceDefinitionUrl
artifactSourceVersionUrl
We currently have these as hidden task inputs and databound to our custom API. I didn't see logically anything like Set-VstsInput..
Thanks,
Arun

Also we tried databinding these 2 weel-known endpoints but they doesn't seem to work as expected? Can these be data-bound via our API call?


How to give w_init param?

for example.

with nn.parameter_scope('Convolution'):
h = PF.convolution(x, 16, (7,7), (0,0))

I want to change  w_init to "calc_normal_std_he_forward".
Could you please,how to give w_init param?

Oops!
My friend tadashi asked the same question in the google group.
So, close it.


Conform to spec v0.7.0

Update the SDK to be compliant with v0.7.0.

[ ] ensure compliance with all point in v0.7.0 (see here for complete list of changes)

[ ] event handlers should run immediately if the associated provider is in the state associated with that handler already
[ ] add new STALE provider state
[ ] add provider name to event details
[ ] update test descriptions/numbers (use: python spec_finder.py, see CONTRIBUTING.md)

[ ] implement relevant tests
[ ] update spec badge in README.md

Hello @toddbaert I would like to work on this issue can you please guide how to get started

Hello @toddbaert I would like to work on this issue can you please guide how to get started

You can perhaps look at my similar changes in the js-sdk - but he description basically contains all the required behavioral changes.

I'll get started on this. @MeenuyD I will add you to the review.


Adding effects on Landing page

Adding effects on the Landing page.

Please, assign me this under gssoc'24 and hacktoberfest.

The website has been created using Google Sites so there is no code for it. If you want to create one you can raise new issue for that.


Create template

This repository could be set as a template for easier use on new simple projects.
https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-template-repository

Using it as a template with Create React Native App has been added in the docs. Thus, I am closing this issue.


DOC-3354 Link fixes for Ent 4.6

These may need to be checked for completeness. Can someone who worked on 4.6 or 4.8 ENT take a look as you may recall missing sticky pages.

This is for 4.6. Have amended the PR name accordingly (it was 4.7).


chore: add SSI DIM Wallet Stub

Description
This pull request adds the SSI DIM Wallet Stub to the umbrella chart.
It was proposed by my co-worker @mgarciaLKS during the meeting on October 30th, and the work has been carried out by both @mgarciaLKS and myself with his approval.
For correct operation, the portal must be updated to version 2.2.0, which we have tested successfully.

issue #122
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:

[X] DEPENDENCIES are up-to-date. Dash license tool. Committers can open IP issues for restricted libs.
[X] Copyright and license header are present on all affected files

Gracias @CDiezRodriguez y @mgarciaLKS por preparar este PR ;)
Voy a probar con mi colega a ver si todo funciona bien con v24.08 :)
Hablamos el lunes
Un saludo

Hi @CDiezRodriguez I'd add you as Contributor to Eclipse Tractus-X so that it's possible to request your review to a PR, it that ok for you?

That's awesome, @evegufy. Thank you.

That's awesome, @evegufy. Thank you.

I invited you.

Hi @CDiezRodriguez do you have some curl commands with which you tested the data exchange which you could provide?
The ones which I have locally appear to be outdated. Thank you!

Hi @evegufy,
Attached is the postman I use, I got it from mxd and made some changes to adapt it.
Tractus-X Connector Data Exchange.postman_collection.json

@evegufy The test that is failing is value-test-data-exchange.yaml, which uses the iatp-mock. Should I create a new test or edit that one?

@evegufy The test that is failing is value-test-data-exchange.yaml, which uses the iatp-mock. Should I create a new test or edit that one?

that's a good point which reminds me of a related topic, now that the data exchange - besides the onboarding in the portal - is tested successfully: I'd like the dim wallet stub to be the "default wallet", not the iatp mock anymore, because the stub is just the move sustainable solution, enabling dynamic config and enabling also portal processes (the iatp mock didn't support the portal processes up to now, see note.
Let me explain it using the directory structure:

charts
└─── umbrella
  └─── values.yaml --> change all config to ssi dim wallet stub
  └─── values-adopter-portal.yaml --> enable for ssi dim wallet stub, most should be already covered by values.yaml, remove values-adopter-data-exchange-stub.yaml, it's no longer needed
  └─── values-adopter-data-exchange.yaml --> enable for ssi dim wallet stub, disable iatp mock, most should be already covered by values.yaml, remove values-adopter-data-exchange-stub.yaml, it's no longer needed
  └─── values-adopter-data-exchange-iatp-mock.yaml --> add values file in case somebody still want to use the iatp mock
└─── values-test-data-exchange.yaml --> enable for ssi dim wallet stub, disable iatp mock
└─── values-test-shared-services-1.yaml --> enable for ssi dim wallet stub, disable iatp mock
└─── values-test-data-exchange-iatp-mock.yaml --> add to test iatp mock

What do you think?

@saudkhan116 will test it


Recently Closed Pulls: Fix cut-off

Summary
The background of the Recently Closed Pulls section wasn't reaching down to the bottom of the PR list

 Toggle View

CR/QA Notes:
CR: Adds a height CSS prop
QA: Overlord Documentation
This can easily be checked by using browser tools and applying the same property on Pulldasher

Closes https://github.com/iFixit/pulldasher/issues/388

I ran update-pulldasher-dev and was able to update pulldasher-dev, but I'm seeing this error when trying to visit https://pulldasher-dev.cominor.com/:

I think this change is small enough that we can just merge it and revert if something goes wrong. I'll do that later otday.

Thanks! This had been annoying me!


build: Fix issues post-firehose

Fixes a couple of issues falling out from https://github.com/graphprotocol/graph-node/pull/2716. One is the build failing with incremental compilation, which is fixed by disabling that. The other is having rustfmt as a build-time dependency, which is failing the docker build, this is worked around by formatting the tonic generated file only in debug builds.

Do we need to do any change for release mode?

@otaviopace release mode has incremental compilation off by default.


container/registry: use password from stdin

Pass the password variable via stdin for the registry login
authentication.
This allows to remove the no_log statement and see the task output
without displaying the password value.
Signed-off-by: Dimitri Savineau<EMAIL_ADDRESS>

jenkins test centos-container-update

jenkins test centos-container-update

jenkins test centos-container-update

jenkins test centos-container-update

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-switch_to_containers

jenkins test centos-non_container-switch_to_containers


ReferenceError fixed

If multiselect is not searchable, then pointing at selects will throw an error.

@shentao, it would be great if this PR could be merged.
I've been testing version 3.0.0-alpha.1 and unfortunately #1007 introduced this bug.
Related: #1277

Thanks! I will try to take a look at that this weekend!

Merged to both master and next. Thank you!


Hello, woroniecki. I'm honour to read your code.  May i ask a question : why are there two distance(distance and realDistance) in your edge class? What's the meaning of these two distance?

Sorry for late answer. I haven't noticed this question. Variable distance is used inside algorithm but total distance is calculated by distance variable. It's for case where we prioritize some edges more than others for example: best path for cyclist in this case we set in cycle edges distance to be shorter of some x% than real, result path will be directed to go thru more cyclist paths instead of just find the shortest path.


Cotary Create: Load from localstorage bug

This pr is for issue #432

This actually highlights that the modal only shows changes made up until the step that the user left at. Not ideal.

@Flash-Git @mrrobot16 please see how V1 solves this issue.
Instead of checking to see if what you loaded is "empty", you should instead never save an empty form: https://github.com/dOrgTech/DAOcreator/blob/88b42866cbcd2ab91701df9c7bda0d1c854e4e1a/packages/ui_v1/src/components/DAOcreator/index.tsx#L99-L117

@dOrgJelli I didn't implement the loading to and from localstorage and while I don't think the current functionality was intentional I can see the benefit of having it work as it does right now.
Rather than progress being lost if you leave while you're in the middle of editing a step, it will be stored. On load, the app will drop you right back where you left off and behave as if you never left. i.e. You won't be able to progress back to the steps you already modified until after you edit the current one to pass validation. (This doesn't apply to the advanced editor).
Thoughts?

Try this out @dOrgJelli, @mrrobot16

@dOrgJelli @Flash-Git hey thanks for optimizing this.

Looks good to me!


Added cilium and hubble

can you also add some older versions?

can you also add some older versions?

Done.


Fixed regex for HandleNewBreakpoint

Codecov Report

Merging #3245 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3245      +/-   ##
==========================================
+ Coverage   76.44%   76.45%   +<.01%
==========================================
  Files          93       93
  Lines      136801   136801
==========================================
+ Hits       104576   104585       +9
+ Misses      32225    32216       -9

Impacted Files
Coverage Δ

src/gui.c
49.27% <0%> (-0.31%)
:arrow_down:

src/if_xcmdsrv.c
84.17% <0%> (ø)
:arrow_up:

src/window.c
81.73% <0%> (+0.03%)
:arrow_up:

src/normal.c
74.44% <0%> (+0.07%)
:arrow_up:

src/ex_cmds2.c
82.72% <0%> (+0.09%)
:arrow_up:

src/os_unix.c
57.6% <0%> (+0.13%)
:arrow_up:

src/gui_gtk_x11.c
48.08% <0%> (+0.29%)
:arrow_up:

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 68f1b1b...a65a5f3. Read the comment docs.

Thanks, I'll include it.


The use of parenthesis gives compilation errors in some situations

Description
Hello,
Trying to create a json using raw data written directly into the program code, I have noticed that when you finish an string by a parenthesis ")", the program won't compiles.
This example won't compiles:
json test = R"({ "a": "b)"})"_json;
Just adding an space to the end of the string solves the problem:
json test = R"({ "a": "b) "})"_json;
Reproduction steps
just add the above code to any part of your program.
Expected vs. actual results
The string will be threated as string instead to threat the parenthesis as a end of the JSON raw data.
Minimal code example
`json test = R"({ "a": "b)"})"_json;`

Error messages
The errors are similar to when you forgot to close a string or simililar. All the code below the above example gives sintax error. Even the Visual Studio Code intellisense starts to work wrongly and the formatter breaks the format of the json.

Compiler and operating system
Microsoft (R) Build Engine versión 17.1.0+ae57d105c para .NET Framework on Windows 11
Library version
3.10.5
Validation

[ ] The bug also occurs if the latest version from the develop branch is used.
[X] I can successfully compile and run the unit tests.

See https://en.cppreference.com/w/cpp/language/string_literal.
This works as expected. Use a delimiter sequence or add the space.
(Please open a discussion for support requests in the future.)

I see, thanks!!


Need German language translations for -extensions option

There is no German translation for the new -extensions option:
"options_extensions_title" : "Extensions-German",
  "options_extensions_description" : "Controls how extensions are validated by the validator. Values for option are URLs for domains from which extensions will be allowed. By default, unknown extensions are prohibited, but can be allowed by selecting the 'Allow Any Extensions' checkbox.-German",
  "options_extensions_checkbox" : "Allow Any Extensions-German",
  "options_extensions_not_added" : "Added Extensions (%{addedExtensions})-German",
  "options_extensions_added" : "Added Extensions (%{addedExtensions}):-German",

@patrick-werner if you have some time, could you provide these?


FCDD model without bias raises AssertionError: VGG net is only supported with bias atm!

I am trying to implement the default FCDD model (FCDD_CNN224_VGG_F) without any biases, since there are batch norm layers after conv layers throughout the model, but I get an AssertionError. It looks like I can edit the code and set bias=False in models/bases.py, but I am not sure if this will cause any inconsistencies with the results or their interpretation. Could you please clarify if simply changing the value of bias in the model descriptions in the code will work, or if it is more involved than that? Thank you in advance for any help.

Hey. You need to change the code so that it removes the bias of all layers. This is not implemented right now, which is why the assertion throws an error. Bias can be removed by setting bias=False to all calls of self._create_conv2d here. You also have to remove the bias weights from the state dictionary of the pre-trained model here. Otherwise, the code will throw an error that the state dictionaries do not match.

Ok. As long as the results are interpretable as earlier, I can try to make the changes. Thank you for the suggestion.


Fix the white space in theme dark mode after adding minHeight property

Hey @cabbagelol,
Thank you for the PR :)
I will merge it once I find some time this week.  I appreciate your contribution.
Thanks!


Support head: true as an option in the DSL

The Brewfile concept is great, and I use it always.
One thing I keep hitting is that certain OSS softwares are so actively maintained, and they also ask users to test the unreleased version. For such cases, I would like to request an option to be supported from the Brewfile. For eg:
brew 'colima', head: true
This should perform the same as: brew install --head colima
Is it possible to support this?

I’m away from my installation at the moment but could you try args: { head: true } and see if it works?

Thanks for the quick response @jacobbednarz . But, no luck. It just resulted in a usage / help output and the brew bundle command exited with an error.

Did you try the other alternative? As @jacobbednarz said, args: { head: true } is for casks.
brew 'colima', args: ["head"]

Thanks - I didn't notice the differentiation between forumulae vs casks when I tried it. This works now!
brew 'colima', args: ['head']

This is what colima version returns:
colima version HEAD-5090a0a
git commit: 5090a0aee5e6da0fa7adf23d577cc9edcda5630a

Thanks a lot @jacobbednarz + @gromgit . Btw, 2 points that come to mind:

This isn't documented anywhere that I could find
Can these be made consistent?

Thanks for the quick help!

1. This isn't documented anywhere that I could find

See the examples in the Usage section of the bundle README.

2. Can these be made consistent?

Not sure what you mean here.

This isn't documented anywhere that I could find

See the examples in the Usage section of the bundle README.

I was searching for head - and couldn't find it in there. After the above conversation, I can find a parallel with with-rmtp, but it was not evident at first glance.

Can these be made consistent?

Not sure what you mean here.

I meant the difference in syntax between whether its a cask or not.

we don’t (and cannot) document every flag as most of them are formula dependent. I don’t really see a reason to add a HEAD install example here given the approach is already documented.

unlikely at the moment, it would be a breaking change for users and IIRC, the parameter/flag handling differ between brew and cask so it needed to be different. would need to check the internals to see if it’s viable.


pre-commit hook installation fails on linux

Running on Ubuntu 20.04 Github runner with revision 0.1.0, pre-commit hook installation fails
[INFO] Installing environment for https://github.com/jumanjihouse/pre-commit-hook-yamlfmt.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/home/runner/.cache/pre-commit/repox1ruov2g/py_env-python3.9/bin/python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
    Processing /home/runner/.cache/pre-commit/repox1ruov2g
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'error'

stderr:
      error: subprocess-exited-with-error

      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [14 lines of output]
          error: Multiple top-level packages discovered in a flat-layout: ['assets', 'pre_commit_hooks'].

          To avoid accidental inclusion of unwanted files or directories,
          setuptools will not proceed with this build.

          If you are trying to create a single distribution with multiple packages
          on purpose, you should not rely on automatic discovery.
          Instead, consider the following options:

          1. set up custom discovery (`find` directive with `include` or `exclude`)
          2. use a `src-layout`
          3. explicitly set `py_modules` or `packages` with a list of names

          To find more information, look for "package discovery" on setuptools docs.
          [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

    × Encountered error while generating package metadata.
    ╰─> See above for output.

    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.

committing this workaround solved the issue for me

committing this workaround solved the issue for me
apparently setuptools introduced new changes in auto-discovery behavior, more info can be found here

https://github.com/jumanjihouse/pre-commit-hook-yamlfmt/pull/30

cc @jumanjiman


Teleport on ephemeral MCs

Question

How can we have teleport access for ephemeral MCs (clusters are used for CI tests)

[x] Kubernetes access

[x] SSH access

Problem

Since, ephemeral MCs is re-created frequently, the JWKS key changes often which we require for teleport-operator.
Alternatively, we can use static credentials for ephemeral MCs but that would require some changes to teleport-operator.

Kubernetes access is ready and done in this PR

ssh access is done in the following PRs:
Done

https://github.com/giantswarm/cluster/pull/387

Pending

https://github.com/giantswarm/cluster-aws/pull/932
https://github.com/giantswarm/mc-bootstrap/pull/1075

Waiting on cluster cluster provider chart releases, then we have some mc-bootstrap changes to merge


Can not subscribe to observable again once the app is unsubscribed with FormValidationCombineLatestFragment

Hi,
First of all, thank you for the great samples, Kaushik. Very useful for RxJava beginners.
I have questions about the title.
I found out that  in Form Validation with CombineLatest sample (FormValidationCombineLatestFragment.java), observer can not subscribe to observable again once the app goes into background by pressing "HOME" button and then returns to foreground.
I thought this is because _subscription.unsubscribe() is call at onPause() and _combineLatestEvents() is called at onCreateView().
So, I changed the code as below so that observer are subscribed again when the app comes to foreground.
// FormValidationCombineLatestFragment.java
@Override
public void onResume() {
    super.onResume();
    _combineLatestEvents();
}

@Override
public void onPause() {
    super.onPause();
    if (_subscription != null) {
        _subscription.unsubscribe();
    }
}

However, this did not work.
Then, I changed the code to call _subscription.unsubscribe() at onDestroy(), and finally it worked as I expected.
@Override
public void onDestroy() {
    super.onDestroy();
    if (_subscription != null) {
        _subscription.unsubscribe();
    }
}

So my question is,

Is calling _subscription.unsubscribe() at onDestroy() a right decision?
Why calling  _combineLatestEvents() at onResume() can not re-subscribe to observable?

It would be helpful if anyone has solution for these questions.
Thank you

The onDestroy is not not guaranteed to be called So I generally put my unsubscribe calls is the onStop. For this example onPause is also fine.
It does recreate the subscription and the observable s. The issues is when you restart the fragment you lose the observable s and the new observable once again will skip the first event. So, you have to enter something in each field again before it will validate the fields.

Sorry you are also right in that _combineLatestEvents should be in onStart or onResume.

@marukami
Thank you for your reply.

My concern here is that after validation is passed and the app goes background and comes to foreground, the "Submit" button is kept enabled even if I changed inputs to invalid entries. The screen below shows the issue.

The only way to avoid this issue was to call _combineLatestEvents() at  onCreateView() and _subscription.unsubscribe() at onDestroy().
Calling _subscription.unsubscribe() at  onStop() reproduced the issue as well. I was wondering if there is any other option to solve this.

new observable once again will skip the first event

Oh, I didn't know this function. I got your point. Thank you.

Instead of using skip you could use filter and prevent events from empty fields. So, that way when the fragment resumes form a valid state the Func3 is invoked, and editing any field will also invoke the Func3. I've made a fork you can CombineLastest with filter.
Only issue with doing it this way is you lose the invalid state when the field is empty. I'll work on dealing with that edge case after work.

So I added a skipWhile so it will now handle the empty field after editing use case. @kaushikgopal thoughts/suggestions on if this should be a PR?

@marukami great. This is a better solution. I would recommend this as a PR.

hey @tomoima525 : sorry for keeping this issue alive forever. over the course of the numerous changes, at some point, i changed the unsubscribing to happen onDestroyView. This in concert with onCreateView should do the trick.
if i'm missing something, feel free to chime in.
as always thanks @marukami for the insight on what was happening in the first place.