Encryption error

Dear All,
since this morning, i loose my connection with my Hub2. The connection work only when i remove the encrytion ! i try different new or old encryption without success !!
I don't understand where is coming from !
any ideas ?

Could you turn on logging and post some logs, I can't really debug this!

How did i can turn on logging ?

In your configuration add this:
logger:
  default: error
  logs:
    custom_components.sia: debug
    pysiaalarm: debug

Thanks,
please find below the log 👍 2020-08-31 12:02:57 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sia which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-08-31 12:02:59 DEBUG (MainThread) [pysiaalarm.aio.sia_client] Starting SIA.
2020-08-31 12:03:02 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 1AE30075"*SIA-DCS"7549L0#CEA[94AB3AB77D5EE4E39548BDC102AD6DD92F48C787DC7891699F7C833465090CC329B1F4606246D45D3B615A4A0C52293F
2020-08-31 12:03:02 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: -W"|#CEA|Nri0/RP0000]_10:03:00,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:03:00, Length: 0075, Sequence: 7549, CRC: 1AE3, Calc CRC: 1AE3, Message type: Automatic Test, Encrypted Content: 94AB3AB77D5EE4E39548BDC102AD6DD92F48C787DC7891699F7C833465090CC329B1F4606246D45D3B615A4A0C52293F, Full Message: "*SIA-DCS"7549L0#CEA[94AB3AB77D5EE4E39548BDC102AD6DD92F48C787DC7891699F7C833465090CC329B1F4606246D45D3B615A4A0C52293F..
2020-08-31 12:03:02 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:03:00
2020-08-31 12:04:05 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 031E0075"*SIA-DCS"7550L0#CEA[2216133B73FD98BB0CB41261BD3DF8C5E351B78CB9C8AFF76726B2FAB39CFC70EB0F78C14B8E5D9EC8E54EBAC3C2609B
2020-08-31 12:04:05 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: ecZf/|#CEA|Nri0/RP0000]_10:04:05,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:04:05, Length: 0075, Sequence: 7550, CRC: 031E, Calc CRC: 031E, Message type: Automatic Test, Encrypted Content: 2216133B73FD98BB0CB41261BD3DF8C5E351B78CB9C8AFF76726B2FAB39CFC70EB0F78C14B8E5D9EC8E54EBAC3C2609B, Full Message: "*SIA-DCS"7550L0#CEA[2216133B73FD98BB0CB41261BD3DF8C5E351B78CB9C8AFF76726B2FAB39CFC70EB0F78C14B8E5D9EC8E54EBAC3C2609B..
2020-08-31 12:04:05 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:04:05
2020-08-31 12:04:30 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2020-08-31 12:05:08 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 312D0075"*SIA-DCS"7551L0#CEA[756BB5F32E4B603321B28840766EE0BB489DA45E3C7F29FC1513269333602BBD46CE4FF01BEEA9BE6C30E16BE004FE53
2020-08-31 12:05:08 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: '"%WH|#CEA|Nri0/RP0000]_10:05:07,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:05:07, Length: 0075, Sequence: 7551, CRC: 312D, Calc CRC: 312D, Message type: Automatic Test, Encrypted Content: 756BB5F32E4B603321B28840766EE0BB489DA45E3C7F29FC1513269333602BBD46CE4FF01BEEA9BE6C30E16BE004FE53, Full Message: "*SIA-DCS"7551L0#CEA[756BB5F32E4B603321B28840766EE0BB489DA45E3C7F29FC1513269333602BBD46CE4FF01BEEA9BE6C30E16BE004FE53..
2020-08-31 12:05:08 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:05:07
2020-08-31 12:05:53 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2020-08-31 12:06:11 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 95750075"*SIA-DCS"7552L0#CEA[2D6382A6B3A8C0DE2843A494A151BDCD04551F0C610C673332C10BCE9E8B9B0E37545ADCF17C741B23AB1C020A4C3988
2020-08-31 12:06:11 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: ,dwl|#CEA|Nri0/RP0000]_10:06:09,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:06:09, Length: 0075, Sequence: 7552, CRC: 9575, Calc CRC: 9575, Message type: Automatic Test, Encrypted Content: 2D6382A6B3A8C0DE2843A494A151BDCD04551F0C610C673332C10BCE9E8B9B0E37545ADCF17C741B23AB1C020A4C3988, Full Message: "*SIA-DCS"7552L0#CEA[2D6382A6B3A8C0DE2843A494A151BDCD04551F0C610C673332C10BCE9E8B9B0E37545ADCF17C741B23AB1C020A4C3988..
2020-08-31 12:06:11 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:06:09
2020-08-31 12:06:14 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2020-08-31 12:07:13 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: F9390075"*SIA-DCS"7553L0#CEA[F41089DB821BD8D15096045AA7E8DEFF69393532D385F658B6D9CB9A6D9D346DDFE93ABD7A10C9C999A7BEC3650749D9
2020-08-31 12:07:13 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: a|#CEA|Nri0/RP0000]_10:07:14,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:07:14, Length: 0075, Sequence: 7553, CRC: F939, Calc CRC: F939, Message type: Automatic Test, Encrypted Content: F41089DB821BD8D15096045AA7E8DEFF69393532D385F658B6D9CB9A6D9D346DDFE93ABD7A10C9C999A7BEC3650749D9, Full Message: "*SIA-DCS"7553L0#CEA[F41089DB821BD8D15096045AA7E8DEFF69393532D385F658B6D9CB9A6D9D346DDFE93ABD7A10C9C999A7BEC3650749D9..
2020-08-31 12:07:13 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:07:14
2020-08-31 12:07:16 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2020-08-31 12:07:58 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2020-08-31 12:08:16 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 7A7C0075"*SIA-DCS"7554L0#CEA[6A0E4750C9DBBE9675E54B729A5A8A7A9EED621A627C17F855B4E8D8D72D89E546C26E465EAA0210AADE638BC6C510A3
2020-08-31 12:08:16 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: {
:|#CEA|Nri0/RP0000]_10:08:15,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:08:15, Length: 0075, Sequence: 7554, CRC: 7A7C, Calc CRC: 7A7C, Message type: Automatic Test, Encrypted Content: 6A0E4750C9DBBE9675E54B729A5A8A7A9EED621A627C17F855B4E8D8D72D89E546C26E465EAA0210AADE638BC6C510A3, Full Message: "*SIA-DCS"7554L0#CEA[6A0E4750C9DBBE9675E54B729A5A8A7A9EED621A627C17F855B4E8D8D72D89E546C26E465EAA0210AADE638BC6C510A3..
2020-08-31 12:08:16 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:08:15
2020-08-31 12:09:20 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 9A240075"*SIA-DCS"7555L0#CEA[1E34EFEADDEFC641707E56EC8E15625885B200DDB70CA91811AAD90824F2A27C4657613F2F28208E18375CC4CF3D9C2F
2020-08-31 12:09:20 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: ./qdB|#CEA|Nri0/RP0000]_10:09:18,09-01-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-09-01 10:09:18, Length: 0075, Sequence: 7555, CRC: 9A24, Calc CRC: 9A24, Message type: Automatic Test, Encrypted Content: 1E34EFEADDEFC641707E56EC8E15625885B200DDB70CA91811AAD90824F2A27C4657613F2F28208E18375CC4CF3D9C2F, Full Message: "*SIA-DCS"7555L0#CEA[1E34EFEADDEFC641707E56EC8E15625885B200DDB70CA91811AAD90824F2A27C4657613F2F28208E18375CC4CF3D9C2F..
2020-08-31 12:09:20 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-09-01 10:09:18

The date of your alarm is a day off, which causes the protocol to reject the message, see the timestamp of the message, vs the timestamp of the log.

yes i see but how to change this ? have you also a AJAX alarm ?

which one is log as first of september ? my alarm ? or the system where i have home assistant or home assistant ?
thanks for your help (my home assistant is on a docker on xpenology)

The message shows Sept 1, so that is your alarm, I don't know how to change that, look in the ajax manual for that.

Hello, i just try to change timezone in my alarm from paris to brussel and this change the timestamp but only 1-2 minutes as shown below but didn't fixed the issue so date didn't seem to be the major issue (no connection during good time)
2020-08-31 13:53:17 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: D5E90075"*SIA-DCS"7682L0#CEA[AB881439D44161F0F686FE11E77E1F7303638E5683A501346135F5DDC651E6FB77DA004E5E705A01181820BEBEFD7528
2020-08-31 13:53:17 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: {YCW|#CEA|Nri0/YG0]_13:53:17,08-31-2020, Zone: 0, Code: YG, Message: 0, Concerns: Unused, Type: Parameter Changed, Description: A TRANSMITTER’S parameters have been changed, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-08-31 13:53:17, Length: 0075, Sequence: 7682, CRC: D5E9, Calc CRC: D5E9, Message type: Parameter Changed, Encrypted Content: AB881439D44161F0F686FE11E77E1F7303638E5683A501346135F5DDC651E6FB77DA004E5E705A01181820BEBEFD7528, Full Message: "*SIA-DCS"7682L0#CEA[AB881439D44161F0F686FE11E77E1F7303638E5683A501346135F5DDC651E6FB77DA004E5E705A01181820BEBEFD7528..
2020-08-31 13:53:17 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-08-31 13:53:17
2020-08-31 13:53:23 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 42E40075"*SIA-DCS"7682L0#CEA[3E3CFC27BD50C0523C5E60695CFB82DEA0B691D6891F3C393CC9CCADFF1BFF409301B1F3EB10831FAF5755F10B931285
2020-08-31 13:53:23 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: K3$B?9m|#CEA|Nri0/YG0]_13:53:17,08-31-2020, Zone: 0, Code: YG, Message: 0, Concerns: Unused, Type: Parameter Changed, Description: A TRANSMITTER’S parameters have been changed, Account: CEA, Receiver: None, Prefix: L0, Timestamp: 2020-08-31 13:53:17, Length: 0075, Sequence: 7682, CRC: 42E4, Calc CRC: 42E4, Message type: Parameter Changed, Encrypted Content: 3E3CFC27BD50C0523C5E60695CFB82DEA0B691D6891F3C393CC9CCADFF1BFF409301B1F3EB10831FAF5755F10B931285, Full Message: "*SIA-DCS"7682L0#CEA[3E3CFC27BD50C0523C5E60695CFB82DEA0B691D6891F3C393CC9CCADFF1BFF409301B1F3EB10831FAF5755F10B931285..
2020-08-31 13:53:23 WARNING (MainThread) [pysiaalarm.base_sia_server] Event timestamp is no longer valid: 2020-08-31 13:53:17

are the timezones in Ajax and the system on which HA runs (so HA itself doesn't matter) set to same one? When all is good, you should see the timestamp of the log in local time, while the timestamp in the message is always UTC, in my system (also EUROPE/Amsterdam) it looks like this (so timestamp in message two hours before the timestamp in the log (the current difference between UTC and AMS time):
2020-08-31 14:31:07 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: +R|#ACC|Nri0/RP0000]_12:31:19,08-31-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: ACC, Receiver: None, Prefix: L0, Timestamp: 2020-08-31 12:31:19

The comparison that is done according to the SIA protocol is between the UTC time of the local machine, and the UTC time of the message, ajax should send UTC time by calculating what that is, but it only does that correctly when the datetime is accurate in the system.


add DatasetDict

Add DatasetDict
Overview
When you call load_dataset it can return a dictionary of datasets if there are several splits (train/test for example).
If you wanted to apply dataset transforms you had to iterate over each split and apply the transform.
Instead of returning a dict, it now returns a nlp.DatasetDict object which inherits from dict and contains the same data as before, except that now users can call dataset transforms directly from the output, and they'll be applied on each split.
Before:
from nlp import load_dataset

squad = load_dataset("squad")
print(squad.keys())
# dict_keys(['train', 'validation'])
squad = {
    split_name: dataset.map(my_func) for split_name, dataset in squad.items()
}
print(squad.keys())
# dict_keys(['train', 'validation'])

Now:
from nlp import load_dataset

squad = load_dataset("squad")
print(squad.keys())
# dict_keys(['train', 'validation'])
squad = squad.map(my_func)
print(squad.keys())
# dict_keys(['train', 'validation'])

Dataset transforms
nlp.DatasetDict implements the following dataset transforms:

map
filter
sort
shuffle

Arguments
The arguments of the methods are the same except for split-specific arguments like cache_file_name.
For such arguments, the expected input is a dictionary {split_name: argument_value}
It concerns:

cache_file_name in map, filter, sort, shuffle
seed and generator in shuffle

I did the changes in the docstrings and I added a type check in each DatasetDict method to make sure all values are of type Dataset

Awesome, do you mind adding these in the doc as well?

I added it to the docs (processing + main classes)

I'm trying to follow along with the following about datasets from the docs:
https://huggingface.co/nlp/loading_datasets.html
https://huggingface.co/nlp/processing.html
However the train_test_split method no longer works as it is expecting a dataset, rather than a datsetdict. How would I got about splitting a CSV into a train and test set?
I'm trying to utilize the Trainer() class, but am having trouble converting my data from a csv into dataset objects to pass in.


Broken tests

I have failing tests on master:
~/extension/page-detect.js:37
		const [, ownerName, repoName] = location.pathname.split('/');
		      ^

SyntaxError: Unexpected token [

It looks like this was introduced by @DrewML here: https://github.com/sindresorhus/refined-github/commit/40db4fba4e2f3c9bf9d3599f933ef184fab092ae

This looks to be a local issue. Any ideas why?
// @sindresorhus

The commit you link to appears to actually be a fix for this issue (he deleted the offending code). Is the branch you're working on a bit behind?

This looks to be a local issue. Any ideas why?

You probably aren't running new enough node to support destructuring, needs to be 6 I think.

You probably aren't running new enough node to support destructuring, needs to be 6 I think.
Yeah, that's what should be causing the failures. Valid code in before/after commits, just needs to run in a newer version of v8 than node <=5 had

so close?

Yup, tests must be run in Node.js 6.

Ah, thanks.


subject_id to subjectId

Without this change sending questionnaire would cause an error. @lenzch @mbastian93

Could you elaborate 061c249 ?

Could you update the openapi definition as well so that it matches the code ?
https://github.com/NUMde/compass-numapp-backend/blob/93514a909f0c85af49dc85d15865f722566c87d6/src/assets/openapi.yaml#L284


double quotes in terminals

@rultor release, tag is 0.0.3

@rultor release, tag is 0.0.3

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.0.3

@yegor256 Done! FYI, the full log is here (took me 1min)


API support for hash algorithm type/size

When querying an algorithm using the API, the only attributes provided are algorithm and description (see here).
In order to add proper support for OALabs/hashdb-ida#5, the type (unsigned_int, unsigned_long) is required by the client so that we know which types to use in IDA (ida_bytes.create_dword vs. ida_bytes.create_qword, ...) when fetching the hash_value.

Sure we can add this in, but I'm not sure I agree with your assessment of how to handle https://github.com/OALabs/hashdb-ida/issues/5. I'll respond in that issue thread specifically.


Share dashboards

I would like to share your dashboards in my Kibana Dashboards gallery .. Would that be okay for you?

If you want to link to the GitHub page, that's cool.  However, it looks like you actually upload dashboards and require an email address to download which we are not okay with as we want to make these freely and easily available.  We'd also like to make updates as needed and GitHub is the easiest way for us to do that.
Thanks!


ValueError: PosixPath('.') has an empty name

Describe the bug
Script returns error "ValueError: PosixPath('.') has an empty name"
Here is the full error that main.py gives (mannualy activated it)
Traceback (most recent call last):
File "/home/ubuntu/Project/CreateInstance/oracle-freetier-instance-creation/main.py", line 489, in
launch_instance()
File "/home/ubuntu/Project/CreateInstance/oracle-freetier-instance-creation/main.py", line 423, in launch_instance
ssh_public_key = read_or_generate_ssh_public_key(SSH_AUTHORIZED_KEYS_FILE)
File "/home/ubuntu/Project/CreateInstance/oracle-freetier-instance-creation/main.py", line 352, in read_or_generate_ssh_public_key
private_key_path = public_key_path.with_name(f"{public_key_path.stem}_private")
File "/usr/lib/python3.10/pathlib.py", line 758, in with_name
raise ValueError("%r has an empty name" % (self,))
ValueError: PosixPath('.') has an empty name
Expected behavior
Run the script as normal
Instance Type (please complete the following information):

ARM or Micro: ARM
Micro Second Instance: no
Custom Image or default: Custom, Oracle Linux 7.9

Environment (please complete the following information):

Micro Instance or Local: Micro
OS:  Canonical Ubuntu
Version: 22.04

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Checked oci_config, and oci.env for any typos, but the problems seens to be on pathlib

Figured it out, for some reason it was not getting the public key file path, just remade the oci.env file, it worked.


feature: connection aliases

It would be very convenient to be able to define an alias for the set of connection data (protocol. host, port, username, password, database) and connect via this alias instead of typing the whole deal every time. If I understand correctly, the .usqlpass functionality only allows one to omit the password.
Such functionality is for instance available in the similar "henplus" utility, written in java. But that one is old and no longer maintained, and I found usql when searching for a replacement.

@rjbudzynski this has been requested more than once, and I have an overhaul coming that will add this functionality. In the interim, you can use variables, and set them in your .usqlrc:
$ cat ~/.usqlrc
\set MYURL postgres://user:pass@host
$ usql
Type "help" for help.

(not connected)=> \c :MYURL
error: pq: dial tcp: lookup host: no such host
(not connected)=> \echo :MYURL
postgres://user:pass@host
(not connected)=>

Thank you, very nice hint.

This is almost finished, and will be in the next major release.

This has been implemented.


How to send data to custom export function

I'm using OpenJSCAD to create a svg file that has lots of lines and OpenJSCAD hangs when I try to export to svg (or even dxf). So I'm now saving it as text and uses the console to save it to a file. I would like to add a custom svg export so I could save my "hand-made" svg data to a file directly from OpenJSCAD, but I don't see how to send my data to the export function. (I already know how to add a new export function as I added months ago a gcode export to openjscad on my website)

@gilboonet Thanks.
So, you now have a special function to convert CAG(s) to SVG text. Correct?
OpenJSCAD has a set of supported formats for export. Do you want to add to this set?
Or do you want to have a custom export?
Maybe it would be best to explain the process of converting and exporting. It's kind of strange.

I already have the svg text and I was wondering if I could simply add a custom export that would only save this data into the blob, but I didn't find how to do that as what it has is the processed data into cag.
my custom svg format is a dedicated version that replaces cag with lines, deletes dubbed lines, adds dasharrays where needed and adds ids to help me into flaps numbering. It also added text tags that really reduce the size of the svg file but I'm on the process of replacing them with lines too.

Hi @gilboonet
When you say you 'have the svg text' : could you explain what your exact process is right now (ie how you use the console to output what you need) ?
Custom export is feasible, but in the end you have to resort to something custom because of the perf issues with export to svg & dxf right ?
There is a huge margin for improvement for the exporters right now , since they are not optimised in any way (not running in a background worker, not streaming data etc)

@gilboonet You should be able to load the SVG text into a Blob. I can provide the code.
The trick will be getting the browser to download it. Is this what you want?

Here is an example of the script with a model and an unfold path loaded, it takes about 30 sec. to render.
https://openjscad.org/#http://gilboo.carton.free.fr/Aplats/aplat_tAv_pli.js
aplat() contains functions and volume() contains the model into main() and the unfold path into p1()
I put all rendering data into a global variable _r with two arrays, _r.cag to return to OpenJSCAD and _r.svg for svg, the process is done into aplat.rendu() where the svg data is reworked and finally send to the console with echo()
@z3dev that's exactly what I want, send a svg text I already processed to a file that I'm asked to download.

@gilboonet is this issue still important to your projects?
I can supply some example code if interested.

@z3dev For this kind of project I'm using vanilla JS for a long time now, even if I wrote V2 version of my unfolder recently, so it's not an issue for my projects, but such code is always welcome.


Prisma-fmt panics instead of an error message

Bug description
Prisma-fmt panics on a string type in a block attribute instead of giving a validation error.
related https://github.com/prisma/language-tools/issues/481

How to reproduce
Steps to reproduce the behaviour:
Example schema:
model User {
  firstName String
  lastName  String
  email     String @unique
  isAdmin   Boolean @default(false)
  @@id(["firstName", lastName])
}

Run prisma-fmt
Expected behavior
There should be a nice error message pointing out what type the block attribute expects.

This no longer panics with 2.21


Rename workflow file, enable pull_request trigger

This creates too many PRs if you want the same workflow to be triggered on pushes and pull-requests, both get triggered on PRs. 🙄


compilation error for linux_386

I'm trying to cross compile a systray app using goreleaser via github workflows in ci. But it fails during compilation with the following error:

I don't know why but your command triggered the arm64 C compiler instead of x86. There isn't enough context here to suggest why.

well, if it helps, the goreleaser config file i used was
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: gorp

before:
  hooks:
    # You may remove this if you don't use go modules.
    - go mod tidy
    # you may remove this if you don't need go generate
    - go generate ./...
builds:
  - env:
      - CGO_ENABLED=1
    goos:
      - linux
      - windows
      - darwin
    ldflags:
      - >-
        {{- if eq .Os "windows" }}-H=windowsgui{{- end }}
    #ignore:
     # - goos: "linux"
      #  goarch: "386"
      #- goos: "linux"
      #  goarch: "amd64"
      #- goos: "windows"
      #  goarch: "arm64"

archives:
  - format: tar.gz
    # this name template makes the OS and Arch compatible with the results of uname.
    name_template: >-
      {{ .ProjectName }}_
      {{- title .Os }}_
      {{- if eq .Arch "amd64" }}x86_64
      {{- else if eq .Arch "386" }}i386
      {{- else }}{{ .Arch }}{{ end }}
      {{- if .Arm }}v{{ .Arm }}{{ end }}
    # use zip for windows archives
    format_overrides:
    - goos: windows
      format: zip
checksum:
  name_template: 'checksums.txt'
snapshot:
  name_template: "{{ incpatch .Version }}-next"
changelog:
  sort: asc
  filters:
    exclude:
      - '^docs:'
      - '^test:'

scoops:
  - folder: "share/scoop"
    commit_author:
      name: goreleaserbot
      email<EMAIL_ADDRESS>    commit_msg_template: "Update scoop manifest to {{ .ProjectName }} version {{ .Tag }}"
    homepage: "https://github.com/Yakiyo/gorp"
    license: "MIT"
    description: "{{ .ProjectName }} version {{ .Tag }}"
    repository:
      owner: "Yakiyo"
      name: "{{ .ProjectName }}"
      branch: "main"

brews:
  - name: "{{ .ProjectName }}"
    # available in goreleaser pro
    # alternative_names:
    #   - "{{ .ProjectName }}@{{ .Version }}"
    #   - "{{ .ProjectName }}@{{ .Major }}"
    commit_author:
      name: goreleaserbot
      email<EMAIL_ADDRESS>    commit_msg_template: "Update brew formula to {{ .ProjectName }} version {{ .Tag }}"
    folder: "share/brew"
    homepage: "https://github.com/Yakiyo/gorp"
    license: "MIT"
    repository:
      owner: "Yakiyo"
      name: "{{ .ProjectName }}"
      branch: "main"


school library: add basic UI

In this milestone, the following was done:
Create an app.rb file that serves as a console app entry-point with the followibg methods that do the following:

List all books.
List all people.
Create a person (teacher or student)
Create a book.
Create a rental.
List all rentals for a given person id.

Creat a main.rb  and defined the entry point with the following method

Presenting the user with a list of options to perform.
Lets users choose an option.
A a way to quit the app.

@Nemwel-Boniface Please  could we have  call please?


--force Build don't work in Processing 3 when a folder already exists

For reasons I can't understand, Processing 3 args behave differently to P2 and it won't force a new build except when the --force arg comes first.
Had to change line 33 of processing.coffee to make it work:
  args = ["--force", "--sketch=#{folder}", "--output=#{build_dir}", "--run"]

The same thing happened with me when I used Sublime Text and I found several people with the same error in forums.
OSX/Processing 3

Yes I get this problem too on mac osx 10.10 and processing 3: "The output folder already exists. Use --force to remove it."  Any idea how to fix this?


Add search methods for packed arrays

Adds the following methods to packed arrays:

count()
find()
rfind()

They are useful because:

remove_at() requires an index. Currently, only bsearch() provides an index and it requires to sort the array first.
Array already provides these methods.

I like adding these methods but I think both find() and rfind() should treat their parameters in the same way. For me treating either [0, n - 1] or [-n, n - 1] as valid index range would be acceptable.

Yeah, I thought about those too. But this is currently how the corresponding methods in plain Array works.
Do you think I should change the Array implementation & doc in this PR too?

Do you think I should change the Array implementation & doc in this PR too?

I do think these methods should be changed to behave the same across these classes. But I'd say firstly there should be consensus about what the proper/expected behavior is. If there would be such consensus then sure, I don't have anything against adding such changes in this PR.
On the other hand I guess if it was made like that in the Array then it was somehow accepted? :thinking: So maybe behavior in this PR can remain as is as it's consistent with already existing inconsistency (in the Array). And that whole find()/rfind() inconsistency could (and should) be fixed in another PR.

I created a issue for the current index handling inconsistency among array methods: #60878
Let's fix that in another PR.

Thanks!


Remove withReuse(true) in AwsS3IntegrationTests

Reusable containers is an experimental feature which needs additional
configuration in order to enable it. This is used in test and it
is not inteded to keep the container running.
See more https://www.testcontainers.org/features/reuse/

Thanks @eddumelendez!  I was in the code making some other changes and just removed the .withReuse(true) call.


[Epic] Hathor Explorer Q3/21

Planning Spreadsheet: https://docs.google.com/spreadsheets/d/1VKWD2gENqfUSrl1eSnD25hNtVnBX4RzJJ88mxflHHeM/edit?usp=sharing
Q2 Spill Over (Epic)
Tasks

Hathor Explorer Service

[ ] #19
[x] #39

Hathor Explorer

[ ] Show Aggregated Data on Network Page

Features
:hourglass_flowing_sand: New Network Page
July 2021
Tasks

Hathor Explorer Service

[ ] #40
[x] #28

Hathor Explorer

[ ] HathorNetwork/hathor-explorer#83
[ ] HathorNetwork/hathor-explorer#84

Hathor Wallet

[ ] HathorNetwork/hathor-wallet#209 (Start discussion)

Features
:hourglass_flowing_sand: Highlighted Tokens
:hourglass_flowing_sand: Scam Tokens
:hourglass_flowing_sand: Verified Tokens
:hourglass_flowing_sand: Transaction Metadata
Tasks

Hathor Explorer Service

[ ] #41

Hathor Explorer

[ ] HathorNetwork/hathor-explorer#89

Features
:hourglass_flowing_sand: Receive User Reports for Token
Tasks

Hathor Explorer Service

[ ] #50

Hathor Explorer

[ ] HathorNetwork/hathor-explorer#90
[ ] HathorNetwork/hathor-explorer#91

Hathor Wallet Service

[ ] HathorNetwork/hathor-wallet-service#106

Features
:sparkles: Filter and Paginate Token List
:sparkles: Filter Token by Type
Tasks

Hathor Explorer

[ ] Change Decode Tx to use hathor-lib instead of API call

Features
:sparkles: Decode Transaction in Browser
Tasks

Hathor Explorer Service

[ ] Transactions API

Hathor Explorer

[ ] Change Transactions Page to new API

Hathor Wallet Service

[ ] List Transactions

Features
:sparkles: Latest Blocks/Transactions
Tasks

Hathor Explorer Service

[ ] Statistics Collector
[ ] Statistics API

Hathor Explorer

[ ] Change Statistics Page to new API

Features
:sparkles: Statistics Page
Tasks

Hathor Explorer

[ ] Remove DAG Page

Features
:sparkles: Remove DAG Page
Tasks

Hathor Explorer Service

[ ] Fetch and cache Peer Location on Data Aggregator

Hathor Explorer

[ ] Show Peer Location on Map in Network Page

Features
:sparkles: P2P World Map
Tasks

Hathor Explorer

[ ] Add Tests
[ ] Extract Business Functions
[ ] Break Pages into Components

Features
:sparkles: UI Refactor - Part I
August 2021
Tasks

Hathor Explorer Service

[ ] Save Data From Statistics Collector on Database
[ ] Collect and Save Number of Tokens and Transactions
[ ] Collect and Save Economics Information
[ ] Add Hashrate History on Statistics API
[ ] Add Number of Tokens and Transactions History on Statistics API
[ ] Add Economics History on Statistics API

Hathor Explorer

[ ] Show Hashrate Graph Over Time on Statistics Page
[ ] Show Number of Token and Transactions Graph Over Time on Statistics Page
[ ] Show Economics Info Over Time on Statistics Page
[ ] Create Dashboard Page with Hot Info about Economics and Statistics

Features
:sparkles: Hashrate Over Time
:sparkles: Number of Peers Over Time
:sparkles: Number of Tokens Over Time
:sparkles: Number of Transactions Over Time
:sparkles: Economics Information (total supply, circulating supply, pre-mine released, mined supply)
Tasks

Hathor Explorer

[ ] Add Halving Calculation
[ ] Create Halving Countdown Page

Features
:sparkles: Halving Countdown Page
Tasks

Hathor Explorer Service

[ ] Address API

Hathor Explorer

[ ] Show Richest Addresses on Statistics Page
[ ] Show Quantity of HTR Deposited Over Time on Dashboard

Hathor Wallet Service

[ ] Add Richest Addresses info on API
[ ] Add Quantity of HTR Deposited info on API

Features
:sparkles: Hathor Richest Addresses
:sparkles: Richest addresses for a given Token
:sparkles: Quantity of HTR Deposited for Token Creation Over Time
Tasks

Hathor Explorer

[ ] Add i18n and portuguese transalation
[ ] Implement Design System

Features
:sparkles: Translation
:sparkles: UI Refactor - Part II
September 2021
TBD

Jul 5th - 9th
Tasks

Hathor Explorer Service

[ ] Network Data Aggregator
[ ] Metadata API

Hathor Explorer

[ ] Show Aggregated Data on Network Page
[ ] Show Info in Transaction Page
[ ] Show Info in Token Page

Features

New Network Page
Highlighted Tokens
Scam Tokens
Verified Tokens
Transaction Metadata

Jul 12th - 16th
Tasks

Hathor Explorer Service

[ ] Report API
[ ] Token API

Hathor Explorer

[ ] Report Form in Token Page
[ ] Paginate Token List
[ ] Filter Token List

Hathor Wallet Service

[ ] List Token

Features
:sparkles: Filter and Paginate Token List
:sparkles: Filter Token by Type
:sparkles: Receive User Reports for Token

Week 29 (Jul 19th - 23th)
Spill Over

Hathor Explorer Service

[ ] #19
[ ] #40
[ ] #28

Hathor Explorer

[ ] Show Aggregated Data on Network Page
[ ] HathorNetwork/hathor-explorer#83
[ ] HathorNetwork/hathor-explorer#84

Hathor Wallet

[ ] HathorNetwork/hathor-wallet#209 (Start discussion)

Hathor Explorer Service

[ ] #41
[ ] Token API

Hathor Explorer

[ ] Report Form in Token Page
[ ] Paginate Token List https://github.com/HathorNetwork/hathor-explorer/issues/61
[ ] Filter Token List

Hathor Wallet Service

[ ] List Token

Features
:hourglass_flowing_sand: New Network Page
:hourglass_flowing_sand: Highlighted Tokens
:hourglass_flowing_sand: Scam Tokens
:hourglass_flowing_sand: Verified Tokens
:hourglass_flowing_sand: Transaction Metadata
:hourglass_flowing_sand: Filter and Paginate Token List
:sparkles: Filter Token by Type
:hourglass_flowing_sand: Receive User Reports for Token

Week 30 (Jul 26th - 30th)
Spill Over

Hathor Explorer Service

[ ] #19
[ ] #40
[ ] #41
[ ] #50
[ ] #39

Hathor Explorer

[ ] Show Aggregated Data on Network Page
[ ] HathorNetwork/hathor-explorer#83
[ ] HathorNetwork/hathor-explorer#84
[ ] HathorNetwork/hathor-explorer#90
[ ] HathorNetwork/hathor-explorer#91

Hathor Wallet

[ ] HathorNetwork/hathor-wallet#209 (Start discussion)

Hathor Wallet Service

[ ] HathorNetwork/hathor-wallet-service#106

Tasks

Hathor Explorer

[ ] Change Decode Tx to use hathor-lib instead of API call

Features
:hourglass_flowing_sand: New Network Page
:hourglass_flowing_sand: Highlighted Tokens
:hourglass_flowing_sand: Scam Tokens
:hourglass_flowing_sand: Verified Tokens
:hourglass_flowing_sand: Transaction Metadata
:hourglass_flowing_sand: Filter and Paginate Token List
:hourglass_flowing_sand: Filter Token by Type
:hourglass_flowing_sand: Receive User Reports for Token
:hourglass_flowing_sand: Decode Transaction in Browser

Week 31 (Ago 2nd - 6th)
Spill Over

Hathor Explorer Service

[ ] #19
[ ] #40
[ ] #41
[ ] #50

Hathor Explorer

[ ] Show Aggregated Data on Network Page
[ ] HathorNetwork/hathor-explorer#83
[ ] HathorNetwork/hathor-explorer#84
[ ] HathorNetwork/hathor-explorer#90
[ ] HathorNetwork/hathor-explorer#91
[ ] Change Decode Tx to use hathor-lib instead of API call

Hathor Wallet

[ ] HathorNetwork/hathor-wallet#209 (Start discussion)

Hathor Wallet Service

[ ] HathorNetwork/hathor-wallet-service#106

Features
:hourglass_flowing_sand: Highlighted Tokens
:hourglass_flowing_sand: Scam Tokens
:hourglass_flowing_sand: Verified Tokens
:hourglass_flowing_sand: Transaction Metadata
:hourglass_flowing_sand: Filter and Paginate Token List
:hourglass_flowing_sand: Filter Token by Type
:hourglass_flowing_sand: Receive User Reports for Token
:hourglass_flowing_sand: Decode Transaction in Browser

Week 32 (Ago 9th - 13th)
Spill Over

Hathor Explorer Service

[ ] #19
[ ] #40
[ ] #41
[ ] #50

Hathor Explorer

[ ] Show Aggregated Data on Network Page
[ ] HathorNetwork/hathor-explorer#83
[ ] HathorNetwork/hathor-explorer#84
[ ] HathorNetwork/hathor-explorer#90
[ ] HathorNetwork/hathor-explorer#91
[ ] HathorNetwork/hathor-explorer#101

Hathor Wallet

[ ] HathorNetwork/hathor-wallet#209 (Start discussion)

Hathor Wallet Service

[ ] HathorNetwork/hathor-wallet-service#106

Features
:hourglass_flowing_sand: Highlighted Tokens
:hourglass_flowing_sand: Scam Tokens
:hourglass_flowing_sand: Verified Tokens
:hourglass_flowing_sand: Transaction Metadata
:hourglass_flowing_sand: Filter and Paginate Token List
:hourglass_flowing_sand: Filter Token by Type
:hourglass_flowing_sand: Receive User Reports for Token
:hourglass_flowing_sand: Decode Transaction in Browser

Ago 30th - Sep 3rd
Tasks

Hathor Explorer Service

[PARTIAL] #67
[PARTIAL] #65
[PARTIAL] #66

Hathor Explorer

[PARTIAL] HathorNetwork/hathor-explorer#116

Features
:hourglass_flowing_sand: Dag Metadata API

Sep 6th - 10rd
Tasks

Hathor Explorer Service

[x] #67
[x] #65
[PARTIAL] #66
[PARTIAL] #75

Hathor Explorer

[x] HathorNetwork/hathor-explorer#116

Features
:heavy_check_mark: Dag Metadata API
:hourglass_flowing_sand: Network Data aggregator


Logging in when 'preventLogin' = true, then traps the user

MAINT002
Prevent Login
As admin turn on the 'preventLogin' flag.
Logout and then login in as another user, stroom forbids access to the UI, but it kind of traps the user. So you can't logout and then log back in as admin. Seems like it should at least provide a logout button, or completely refuse the login in the first place.

dupe of 868?


Adding a course from find for a signed in candidate

Context
https://trello.com/c/c4ZYOuaI/1010-add-you-selected-a-course-page-into-find-to-apply-journey will be affected by this work
This PR covers stretch goal 1 of the Trello card. This is to fix adding a course from find for candidates who are already signed in.
Changes proposed in this pull request

Rework the start page controller to call the ExistingCandidateAuthentication service if the user is signed in and course params are present

Guidance to review
I think the naming of the ExistingCandidateAuthentication does not really describe what it actually does,  but I can't come up with anything that seems to describe it well.
Link to Trello card
https://trello.com/c/71lG72Y6/
Things to check

[x] This code doesn't rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

Works great in my testing on the review app 💯


Frontend Requests on grafana dashboard shows wrong number.

If there is over 10 varnish. if the varnish--1 is selected on grafana dashboard, it shows sum of pods' request which start with varnish--1. For example, if there are varnishes which names are from varnish-1 to varnish-10 and varnish-1 is selected, frontend requests shows sum varnish-1's requests and varnish-10's requests.

Thanks for submitting this issue. We'll take a look into it. We also accept PRs if you're comfortable with contributing. :)

@cin No problem :-). Actually I tried to fix that, but some similar issues seem to be there. So, I think that it is not easy to me.

No worries. @tomashibm is going to take a look into this next week.

@blbird fixed in the latest release

@tomashibm Thank you.


Add an Array Variant to Content Enum

Describe the feature or improvement you're requesting
I would like to propose adding an Array variant to the Content enum in the library. This addition would allow users to support JSON content more effectively, enabling the handling of arrays directly within the enum.
Additional context
Currently, the Content enum does not support array structures, which limits the flexibility when working with JSON data. By adding this variant, it would align with common use cases in API interactions where JSON arrays are prevalent.

@imotai Specifically, what API are you referring to?


RCON overloads all CPU cores

This issue was originally submitted by @Ewallee in SpongePowered/SpongeForge#2354.

SpongeForge version: spongeforge-1.12.2-2705-7.1.0-BETA-3361

Forge version: 1.12.2-forge1.12.2-<IP_ADDRESS>44

Java version: 8

Operating System: ubuntu 18.04

Plugins/Mods: no mods, no plugins

Everything works as it should, until I start using RCON(sending messages and commands to servers console)
Steps to reproduce the error:
Start a sponge server 1.12.2 (actually all the latest sponge versions) and start sending messages  with RCON. After ca 10-12 messages/commands all of the servers CPU cores will be overloaded.
https://i.imgur.com/rgrrJ9D.jpg
The same happens on Windows:
https://i.imgur.com/0kuXLA2.jpg
Server log: https://pastebin.com/gSg81faa

Sounds like the RCON mixin might be somewhat out of date.

Same bug happens on Ubuntu 17.04, 8Gb DDR3 (1600 Mhz), i3-3220.

I confirm this problem.

Intel(R) Xeon(R) CPU E3-1246 v3 @ 3.50GHz

Debian 9

Java(TM) SE Runtime Environment (build 1.8.0_171-b11)

SpongeAPI: 7.1.0-SNAPSHOT-6cd2dc3

SpongeForge: 1.12.2-2705-7.1.0-BETA-3403

Minecraft Forge: <IP_ADDRESS>47

Also there is a rapid filling of RAM.

I'm completely unable to reproduce this issue, in both development and prodcution. Server memory usage remains constant, and the server CPU usage remains close to 0%.

Ok, im not too lazy to point out what you should do to reproduce this issue:
Everything works as it should, until I start using RCON (SENDING !!! (with RCON!) messages and commands to servers console)

@Aaron1011 https://youtu.be/gr0l6k7Qfyg

didn't watch the full video yet, but just to clarify straight away: this has nothing to do with not believing any of you!
it simply means @Aaron1011 was unable to reproduce it when following the same steps you guys did, that doesn't mean the issue doesn't exist, possibly this only happens in production and not in a dev environment

I tested both in development and in production - I couldn't reproduce the issue in either.

Erm...if Sponge as loading, you wouldn't get the Minecraft server GUI that is standard with Vanilla (i turn it off as it is a HUGE CPU DRAIN).
We need a full log.

@Zidane first in video is without sponge to show the issue starts when sponge is added..

Oh I completely didn't realize that! Oops.

@Zidane I wanted to show the bug so I sped it up until it's "Done".
Btw forgot to mention — JDK 8u181

@Aaron1011
May be you could record a video on how you made it to work with no lag?
I believe several people here would like to know how to run the server properly...
Try to record all the steps you did, if possible.
Thanks in advance

Technical explanation: this only started to occur once RCON clients disconnected. We weren't handling the "end of file" read properly, so we ended up with infinite loops running for each disconnected RCON client, after four, that'll take up most of the capacity of a quad core CPU, meaning that the server thread competed for time from an RCON thread, and hence, severe TPS losses.
I put a check in for what happens when an RCON client disconnects and cleaned up our side. It's all OK now, the infinite loop has been averted.


Gamma flattening

Algorithms for gamma flattening

Codecov Report

Merging #2 (5573385) into main (90eb076) will decrease coverage by 8.44%.
The diff coverage is 4.91%.

@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
- Coverage   62.36%   53.91%   -8.45%
==========================================
  Files          10       10
  Lines         271      319      +48
  Branches       17       16       -1
==========================================
+ Hits          169      172       +3
- Misses         99      144      +45
  Partials        3        3

Impacted Files
Coverage Δ

sarsen/geocoding.py
26.00% <4.91%> (-32.98%)
:arrow_down:

sarsen/apps.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Adds a config key to pass default index settings to all indices

Summary
This PR adds a new config key for setting the default index settings we should apply to all new indices unless they have their own specific per index settings.
This is something I find useful when I needed to specify a higher max_results_window for every one of my indices. They do share the same Searchable trait however I wasn't a fan of adding yet another interface (IndexSettings) to each and every one of my models. Instead I modified ElasticIndexConfigurationRepository to support a new default option that I can reuse.
Tests and updated documentation are included in this PR as well.
Testing

Default index settings never override an index's own settings, if they are provided
Default index settings are applied both to model and array based indices
Default index settings key can be ignored or even missing, for backwards compatibility

I like this functionality, even more so because you made it totally optional with backwards compatibility  in mind.
Thanks for your contributions.
If you are done with a PR, just mention me or jeroen or request a review through the github UI .

thanks @blackshadev, this PR is ready!
I'm not able to request reviewers for some reason but mentions do work.


287230372 Remove place from Gazetteer (Ali)

Issue reported by AH001 at 2024-02-07 10:12:52 UTC
Time: 2024-02-07T10:10:33+00:00
Session ID: bfb4c3641052dc43f348ff553c74db89
Problem Page URL: /freecen2_places/search_names_results?locale=en
Previous Page URL: https://www.freecen.org.uk/freecen2_places/search_names?locale=en
Reported Issue:
Please can Norton Mandeville be removed from NTH.
It already exists in ESS, its correct location.

@geoffj-FUG can you please review and then label for Gazetteer update if appropriate. Thanks

Please move the search records from Norton Mandeville NTH to Norton Mandeville ESS and remove the incorrect entry.
Geoff


Is it possible to replace swc to esbuild?

I look up the source code. The ast tree has not been modified. Is it possible to replace swc to esbuild?

The AST tree is modified by SWC when doing fast refresh.
Adding Fast Refresh support to esbuild is something I'm working on: https://github.com/evanw/esbuild/pull/3449


Add Unity migration guide

Closes https://adjustcom.atlassian.net/browse/ADAPP-18127

@uerceg This is ready for review here


Fix old path

I'd like to fix it because the path of the management screen is old.

@dzannotti Can you take a look at this pull request? Thanks

I think that both paths are valid, but sure 👍  lgtm


tflite 2.2 and 2.3 issue

I have one more issue about tflite version in android app's build.gradle.
in original build.gradle, the version of tflite is mentioned as 2.2.
when I changed it to 2.3, the bounding box location totally messed up.
Is it the known issue?
I appreciate it.

I have the same issue.
Were you able to solve it?


Bugs and Routing problems in the website

@swapnilsparsh

There are some duplicate repos found .
And there are some link issues also. When i click on DocsGPT it routes to Wren AI

I could even work on it if you assign me the issue


Client Error Bad Request

When running the eag-sync sync I get a client error. The first time I did a sync it worked and synchronized a single client, but now it does not work. Any ideas?
Traceback (most recent call last):
  File "/usr/local/bin/eag-sync", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/eero_adguard_sync/commands/sync.py", line 260, in sync
    handler.sync(delete, overwrite)
  File "/usr/local/lib/python3.9/dist-packages/eero_adguard_sync/commands/sync.py", line 142, in sync
    self.create(dhcp_diff)
  File "/usr/local/lib/python3.9/dist-packages/eero_adguard_sync/commands/sync.py", line 62, in create
    self.adguard_client.add_client_device(
  File "/usr/local/lib/python3.9/dist-packages/eero_adguard_sync/client/adguard.py", line 67, in add_client_device
    return self.__perform_client_action("control/clients/add", payload)
  File "/usr/local/lib/python3.9/dist-packages/eero_adguard_sync/client/adguard.py", line 61, in __perform_client_action
    resp.raise_for_status()
  File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://<IP_ADDRESS>/control/clients/add

Does the tool support IPv6?  I noticed Adguard is reporting most of my clients by IPv6, and the now 3 successful clients I have sync'd are IPv4 only.

@amickael Tagging you in case you haven't seen. Not trying to bother but if you have any insight I would appreciate it. Thank you!

@rcoletti116 Thanks for flagging, sorry, I've been traveling the past couple of weeks. I'll take a look this weekend.

File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://xxx.xxx.x.xxx/control/clients/add

Seeing same error at this time. I am also seeing some deltas between the number of hosts I see within the app vs. the clients reported from eag-sync output. The tool is seeing 27 clients, I have 20 clients at most but when I ran the tool, only 15 where actively connected to the network.
First Run
Starting sync...
Add new clients  [######################--------------]  17/27
Traceback (most recent call last):
  File "/usr/local/bin/eag-sync", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/commands/sync.py", line 260, in sync
    handler.sync(delete, overwrite)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/commands/sync.py", line 142, in sync
    self.create(dhcp_diff)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/commands/sync.py", line 62, in create
    self.adguard_client.add_client_device(
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/client/adguard.py", line 67, in add_client_device
    return self.__perform_client_action("control/clients/add", payload)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/client/adguard.py", line 61, in __perform_client_action
    resp.raise_for_status()
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://<redacted>/control/clients/add

Second Run
Starting sync...
Update existing clients  [####################################]  17/17
Add new clients  [------------------------------------]  0/10
Traceback (most recent call last):
  File "/usr/local/bin/eag-sync", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/commands/sync.py", line 260, in sync
    handler.sync(delete, overwrite)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/commands/sync.py", line 142, in sync
    self.create(dhcp_diff)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/commands/sync.py", line 62, in create
    self.adguard_client.add_client_device(
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/client/adguard.py", line 67, in add_client_device
    return self.__perform_client_action("control/clients/add", payload)
  File "/usr/local/lib/python3.10/site-packages/eero_adguard_sync/client/adguard.py", line 61, in __perform_client_action
    resp.raise_for_status()
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://<redacted>/control/clients/add

I added some debugging statements to adguard.py and it seems to be caused by an Unnamed device in the Eero app.
Request:
{'ids': ['<redacted>'], 'name': None, 'tags': ['device_other'], 'use_global_settings': True, 'use_global_blocked_services': True}
Response:
invalid name
To fix this you could probably just skip over these.

@amickael can bump the version with this fix? cheers https://github.com/mbmccormick/eero-adguard-sync/commit/e3342c902f9cc9623d022ab7c160a92e84faf8ed

@amickael can bump the version with this fix? cheers mbmccormick@e3342c9

maintainer seems mia but many devices have no nickname but they have a hostname, how hard would it be use hostname instead of nickname from the list of client devices if nickname is empty instead of skipping it entirely?

I've pulled in the change. Sorry for the abandonment, I don't have much time to dedicate to these projects as I'd like. I'm happy to add some willing contributors to the project, otherwise I will have to archive.


Block Revoke - Standalone Button - iOS 12 support?

I'm sorry if this is the wrong place to put this, but I thought it would be a great idea. A standalone block revoke button would be incredibly useful, and perhaps even get some sideloaders over to the jailbreak community, seeing the ease in it. iOS 12 support would also be nice (if technically possible), along with the reboot toggle you've recently adapted for iOS 12.
Side note - I believe someone is already using your method in an IPA for iOS 12, so perhaps you could just grab the code from them since it's your method anyways. Just an idea

@dallaslittle revoke block needs remount because etc is on rootfs.


uvdata default pointing

It would be nice to have an option for the phase_center parameter where the user can specify the "time" of the scan. For example having an option to phase to the start of the scan, middle of scan, or end of scan as well as being able to specify exact ra/dec if desired.

Can now accommodate default option in phase_center parameter (by setting to null) under 'Save Format' in defaultparms.yaml
Fixed in 'phasing' branch and merged onto master at 1edd7a9


fix: Fix PR failing checks

Signed-off-by: ErikQQY<EMAIL_ADDRESS>

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Enabling AMP on proper gfxArchs using DeviceProperties.

Necessary changes for FI #103.

m going to trigger the CI jobs manually, since we have finished moving the PR CI jobs in Jenkins

jenkins : retest this please


Update README.md

Thanks
On Tue, Oct 6, 2020, 8:43 PM SharathKumar<EMAIL_ADDRESS>wrote:

@sharathkumar106 requested changes on this pull request.
Please make consistent changes or most welcome to contribute any code
snippets 👏
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sharathkumar106/HactoberFest_SIT/pull/27#pullrequestreview-503076214,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQHI7ONEOJETHLBRJV2VEXTSJMX3JANCNFSM4SEUBZ5A
.


Wrong self link in POST response

I'm currently playing a little with this plugin and found an issue with POST requests.
If I POST a resource to my server the response has HAL format.
But unfortunately the self link does not point to the created resource. Am I missing something?
My route implementation looks like this:
{
    method: 'POST',
    path: '/pets',

    config: {
        handler: (request, reply) => {
            const body = request.payload;
            body.id = randomId();
            allPets.push(body);
            return reply(body);
        },
        description: 'POST a new Pet',
        notes: 'Creates a new pet',
        tags: ['api'],
        plugins: {
            hal: {
                ignore: 'id',
            }
        }
    }
}

If I make a POST request
curl -X POST --header 'Accept: application/hal+json' --header 'Content-Type: application/vnd.api+json' -d '{"name":"Bodo","category":"Dog"}' http://localhost:8000/pets
I get the following response:
{
  "_links": {
    "self": {
      "href": "/pets"
    }
  },
  "name": "Bodo",
  "category": "Dog"
}

I think the self link should contain the id of the resource:
{
  "_links": {
    "self": {
      "href": "/pets/pet_id"
    }
  },
  "name": "Bodo",
  "category": "Dog"
}

My workaround is to add the id to the link in the prepare function:
{
    method: 'POST',
    path: '/pets',

    config: {
        handler: (request, reply) => {
            const body = request.payload;
            body.id = randomId();
            allPets.push(body);
            return reply(body);
        },
        description: 'POST a new Pet',
        notes: 'Creates a new pet',
        tags: ['api'],
        plugins: {
            hal: {
                ignore: 'id',
                prepare: (rep, done) => {
                    rep._links.self.href = '/pets/' + rep.entity.id;
                    done();
                }
            }
        }
    }
}

You can see my example "application" here
https://github.com/bfoerster/nodejs-hapi-hal/blob/master/src/routes/pets.js

I've also come across this issue and couldn't see where I might have done something wrong.
However due to using swaggerize-hapi I've had to use the "toHal() on a domain entity" approach.
This is a workaround for that:
User.prototype.toHal = function(rep, next) {
    if (rep.request.method === 'post') {
	rep._links.self.href += `/${this.id}`;
    }
    next();
};

Hope this helps someone.
I'll try to find a proper fix but I'm not too familiar with the internals of this library.

This might be a potential fix but would need someone more knowledgeable than I to check it :)
For instance this fix feels like it assumes a fair bit about the API and entity:
In lib/representation.js
RepresentationFactory.prototype.create = function(entity, self, root) {
    entity = entity || {};
    self = self || this._request && this._request.path;

    if (this._request.method === 'post' && 'id' in entity === true) {
      self += `/${entity.id}`;
    }

    self = this._halacious.link(self);
    return new Representation(this, self, entity, root);
};

Thoughts?

halacioius will use the location header to rewrite the self rel. Here's what I do in nearly all of my POST routes.
assuming I have a GET route to look up a pet like this:
{
   method: 'get',
   path: '/pets/{id}',
   config: {
      id: 'pet.lookup',
      handler: function(req, reply) {
           // look up the pet
      }
   }
}

my POST route to create one would look like:
{
   method: 'post',
   path: '/pets',
   config: {
      handler: function(req, reply) {
         req.server.createPet(req.payload)
            .then(pet => reply(pet).created(req.server.plugins.halacious.route('pet.lookup', { id: pet.id })))
            .catch(reply);
      }
   }
}

@bleupen Thanks for the suggestion, unfortunately for me swaggerize-hapi routes don't appear to have id's.
I'll post a message on their list to see if this is something difficult to add in the future.
Cheers

you dont have to use that technique. you can also set the location manually:
req.server.createPet(req.payload)
   .then(pet => reply(pet).created(`/pets/${pet.id}`))
   .catch(reply);


Enhance Pull Request Labelling Workflow

Description
This change updates the Pull Request Labeller workflow to enhance labelilng functionality. The workflow now uses a specific version of the labeler action (v5.0.0) and corrects the configuration file path to 'labeller.yml'. Additionally, it introduces a new step to add size labels to pull requests using the size-label-action.
fixes #63

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#65  👈
#64
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JackPlowman and the rest of your teammates on  Graphite

Merge activity

Oct 26, 5:05 PM EDT: A user merged this pull request with Graphite.


Fix sefault when given no data

Hi Aaron,
Project Mayhem, and effort to fuzz-test all Debian packages, found an issue with the stats command which causes a segfault when given no data. I have patched the filo package with the attached patch, and confirmed that it fixes the bug.
In short, during calculation of the mid-point for the median, and index of -1 is generated and used when no data is present (totalLines == 0). This patch skips all further operations when there are no lines to process.

Hi again Aaron,
Would it be possible to create and push to github a git tag for the latest release (probably after merging this PR)? This allows distributions like Debian to automatically watch for updates and helps keep the packaged version up to date with any changes in this repository.
Cheers,
Kevin

I'm in need of releases too (see #9)


Creates an Helm chart for this project

We want to create a Helm chart to let install Kannon easily on a Kubernetes cluster.

/cc @log2


add pod-security-admission labels for OCP namespace

In MicroShift > 4.12, to run privileged workloads, you must set pod-security labels on the namespace to privileged instead of restricted.  This PR adds the necessary namespace labels.

lgtm
not sure why it's not auto merged..


KeyError: 'age'

What caused the following problem during the test,Thanks!
Traceback (most recent call last):
File "main_track.py", line 369, in
main(args)
File "main_track.py", line 292, in main
phase='eval', det_val=args.det_val)
File "/data1/anaconda3/envs/TransTrack/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
return func(*args, **kwargs)
File "/data1/PycharmProjects/TransTrack/engine_track.py", line 156, in evaluate
res_track = tracker.step(results[0])
File "/data1/PycharmProjects/TransTrack/models/tracker.py", line 123, in step
if track['age'] < self.max_age:

Hi~
Which model do you use?  And I guess you change some codes in  main_track.py and engine_track.py(the line number doesn't match the original code), is this the possible reason?

Hi~Thank you very much for your reply!
I just tried to train on the mot15val dataset, and then this error occurred when I tested on the validation set.

which part of codes is changed?

Basically no code changes. After importing mot15 dataset, the label is obtained by ‘convert_mot_to_coco.py‘ ,and then the data path is directly changed for training in main_track.py.
After that, I used the original code to train in mot15 to see if it was caused by my unintentional changes.

How about MOT17?  Can you reproduce our reported results without bugs?

Yes!no error; I've run mot17 and mot16 successfully before, but I'm trained with 'main_tracktrainhalf.py'. And I downloaded the last version of this code last month, and then I saw you update the new version of the code. After I changed it, using 'main_track.py' training, it seems that there is a bit of error.
I'll compare it with the original code training later. If there is any problem, I'll report it again.Thanks!

Great ! Thank you~

Hello! After testing,the original code can be trained on mot15, 16, 17, 20 datasets. But it's puzzling why the result of mot15 dataset is so bad, especially in KITTI dataset with some shadows, and even eth Bahnhof dataset which should achieve better results, it doesn't get the expected results.

How about adjusting the score threshold to see whether  KITTI and Bahnhof dataset could be improved?
Btw, do you find the error in main_track.py, comparing with main_tracktrainhalf.py?

Hello! After testing the main.py and the main_track.py, i find that there are some bugs in the evaluate function in the engine_track.py, while the evaluate function in the main.py can be tested successfully, but the evaluate function of the main_track.py can not run, and this problem only exists on the mot15 dataset.It can be successfully verified in mot16, mot17 and mot20 datasets.But I haven't found out where the code went wrong yet.
Btw, I can only achieve such a better result by adjusting the score threshold, but as you can see from the output,it still gets an unsatisfactory result on the KITTI dataset.It seems to miss the target by mistake and recognize it again on the KITTI 17.

What caused the following problem during the test,Thanks!
Traceback (most recent call last):
File "main_track.py", line 369, in
main(args)
File "main_track.py", line 292, in main
phase='eval', det_val=args.det_val)
File "/data1/anaconda3/envs/TransTrack/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
return func(*args, **kwargs)
File "/data1/PycharmProjects/TransTrack/engine_track.py", line 156, in evaluate
res_track = tracker.step(results[0])
File "/data1/PycharmProjects/TransTrack/models/tracker.py", line 123, in step
if track['age'] < self.max_age:

Hi~
We just fix this bug in issue25. Can you test on your dataset to see whether it works? Thx~


feat(aws-cloudfront-s3): added logS3AccessLogs prop

Issue #485 , if available:
Description of changes:
-Added logS3AccessLogs construct prop
-Changed existingBucketInterface to existingBucketObj
-Updated README with new props
-Updated integ tests with no logging bucket
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 795b081a66d634f8bd4f478c7fbbd04c77cb4dd2
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 795b081a66d634f8bd4f478c7fbbd04c77cb4dd2
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: d6138a1de20fd17b802c55438fc84abc0bb0a340
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: d6138a1de20fd17b802c55438fc84abc0bb0a340
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 59773060b08a4268454d8f54611632c8ad61f201
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: 59773060b08a4268454d8f54611632c8ad61f201
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


ng: interaction with GUIs

let's say I have a nice library that can display scientific plots, using x/exp/shiny.
to be able to use it from the ng prompt, one would need to replace the ng.main entrypoint with shiny's driver.Main(func(scr screen.Screen) { ... }) and coordinate with shiny event pump.
do we want to open this can of worms?
(perhaps, like for Jupyter, we could run ng with shiny-graphics when the -shiny flag is passed ?)
from previous experience with matplotlib, I know this can be quite painful...
(perhaps a better avenue is to os/exec a sub command where the shiny event loop is installed and send the images over there ?)

I would like to make it super-easy to write an ng-style binary using the ngcore package.
To do that more machinery from ng needs to move into ng core. (For example, code completion.)

okay. it would also enable code completion for the jupyter kernel.

In fact, the end state should be the ng binary using ngcore. Basically the only code in there should be flag handling and calling features that aren't directly implemented by ngcore (like -jupyter, or -o).


enable vertical and horizontal swipe [question]

Hi Ovidiu,
Dragdealer is amazing. Thank you for your work and all the intuitive demos.
I have a question.
I am trying to use Dragdealer to create a simple game, where the user can swipe up, down, right and left to modify the background image shown in a wrapper. So is it possible to achieve this effect by extending the carousel demo?  Can you give me a hint? Thank you very much.
with regards,
Chris

It's the last demo what you're looking for? See "Interactive canvas mask" at the bottom: http://skidding.github.io/dragdealer/

hello Ovidiu,
Thank you very much for your reply.
I would like to change the background image entirely by reacting to both horizontal and vertical swipes.
I have managed to write a new library based on your implementation. So I have a matrix of images that can be manipulated.
Br,
Wei

在 2015年2月26日，上午3:46，Ovidiu Cherecheș<EMAIL_ADDRESS>写道：
It's the last demo what you're looking for? See "Interactive canvas mask" at the bottom: http://skidding.github.io/dragdealer/ http://skidding.github.io/dragdealer/
—
Reply to this email directly or view it on GitHub https://github.com/skidding/dragdealer/issues/71#issuecomment-76040569.

From your last message I understand you've managed to find a solution to your problem, so I'm closing this.
Cheers!


[PT Run] Open folder using shell instead of explorer.exe

Summary of the Pull Request
Open a folder from PT Run should not use explorer.exe but the shell instead.
PR Checklist

[x] Applies to #4622
[x] CLA signed. If not, go over here and sign the CLA
[x] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #4622

Info on Pull Request
PT Run is now opening folder using UseShellExecute instead of explorer.exe.
Validation Steps Performed

Check that PT Run is still opening folders as expected.
Replace explorer.exe with an alternative and check that PT run is using the new one.

This looks good to me but want to do a quick run here.

@crutkas
Do we have a similar command in other plugins, where we should respect other Explorer alternatives? (For example something like open program path in Explorer.)

good callout @htcfreek.  We need to refactor the code base.  I think what i would do here is lets get this in and i can do the refactor.

If possible here we should have a plugin framework with generalized functions/commands. But this is something for the future, I think.

@htcfreek yeah, that is part of the larger plugin effort but I am going to refactor into a common place.

This is a nice fix!  In order to fully fix the issue #4622 we should also update both:
Microsoft.Indexer.Plugin\ContextMenuLoader.cs  and
Microsoft.Folder.Plugin\ContextMenuLoader.cs
To do something similar but to the directory path:  eg.
 using (var process = new Process())
{
    var directory = Path.GetDirectoryName(record.FullPath);
    process.StartInfo.FileName = directory;
    process.StartInfo.UseShellExecute = true;
     process.Start();
}

I'm going to merge this in and then do work sometime on monday maybe on #7339 unless someone beats me to it.


Package Repository Banned - Insecure

Issue Type: Bug
Ubuntu, but probably any Linux, Code installed using Snap.
Running
apt update
returns errors.
E: Failed to fetch http://packages.microsoft.com/repos/code/dists/stable/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://packages.microsoft.com/repos/code stable InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Obviously, http is not secure. The address should possibly be https, although other repositories being checked are also http and do not give an error.
Don't know why updating is returning an error today. It was fine yesterday.
Also don't know what this Clearsigned File is about.


Stop / reduce logging

Is there a way to stop or reduce logging?
You can either

limit all application logging to certain level (DEBUG, INFO, WARNING, ...) - that's to broad and not suitable
limit concrete connexion loggers (ie. connexion.operations.abstract) to certein level - that's too narrow and connexion has lot of different loggers, which can be good for development of connexion itself, but is nuisance otherways

this way I've managed to create list of many connexion.* loggers and reduce logging to some amount (using structlog.get_logger(logger_name).setLevel(logging.WARNING)), but there are still some huge logs on DEBUG level that starts with

Attaching x-scope to {
Ref #/components/
Dereferencing {

Is there some way to get rid of these logs? Or even better select logger via wildcard somehow? ie connexion.*?
Thanks for answer.
Michal
PS: Asked same question on StackOverflow: https://stackoverflow.com/questions/68897873/change-logging-level-for-all-connexion-loggers-at-once

Loggers can be organised in namespaces using dots. Have you tried doing:
logging.getLogger('connexion').setLevel(logging.WARNING)

Logging is performed by calling methods on instances of the Logger class (hereafter called loggers). Each instance has a name, and they are conceptually arranged in a namespace hierarchy using dots (periods) as separators. For example, a logger named ‘scan’ is the parent of loggers ‘scan.text’, ‘scan.html’ and ‘scan.pdf’.

Source

Just tried this approach
logging.getLogger('connexion').setLevel(logging.WARNING)

and it doesn't work for me - placed after instantiation of Connexion (connexion.App(__name__)) also before (but this is nonsense)

Could you perhaps share a minimal reproducible example as the suggested approach does work for me when I try it.

Could it be that these are logs from openapi-spec-validator (which is a dependency of connexion)? The logs you describe can be found there:
https://github.com/p1c2u/openapi-spec-validator/blob/327a4c1cf6184bc17fc21b43a00978e34582b704/openapi_spec_validator/validators.py#L30
https://github.com/p1c2u/openapi-spec-validator/blob/5a326ed0e7b1e1db8cb692a82dc05d4af145fa42/openapi_spec_validator/decorators.py#L42-L44
Closing this for now, but feel free to reopen if there is something connexion can/should do.


AlignmentDirectional doesn't work

Steps to Reproduce

This is my code:

import 'package:flutter/material.dart';

void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Center(
      child: Container(
        color: Color.fromARGB(255, 66, 165, 245),
        child: new Text(
          "Flutter Cheatsheet",
          textDirection: TextDirection.ltr,
          style: TextStyle(fontSize: 20.0),
        ),
        alignment: new AlignmentDirectional(0.0, 0.0),
      ),
    );
  }
}

Problem:
The text should be centered, but when I run it, the text is displayed in the upper left corner

## Logs
Performing hot restart...
Syncing files to device SM G9550...
Restarted application in 1,623ms.
I/flutter (17906): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (17906): The following assertion was thrown during performLayout():
I/flutter (17906): 'package:flutter/src/painting/alignment.dart': Failed assertion: line 552 pos 12: 'direction !=
I/flutter (17906): null': is not true.
I/flutter (17906):
I/flutter (17906): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (17906): more information in this error message to help you determine and fix the underlying cause.
I/flutter (17906): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (17906):   https://github.com/flutter/flutter/issues/new
I/flutter (17906):
I/flutter (17906): When the exception was thrown, this was the stack:
I/flutter (17906): #2      AlignmentDirectional.resolve (package:flutter/src/painting/alignment.dart:552:12)
I/flutter (17906): #3      RenderAligningShiftedBox._resolve (package:flutter/src/rendering/shifted_box.dart:252:36)
I/flutter (17906): #4      RenderAligningShiftedBox.alignChild (package:flutter/src/rendering/shifted_box.dart:307:5)
I/flutter (17906): #5      RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:384:7)
I/flutter (17906): #6      RenderObject.layout (package:flutter/src/rendering/object.dart:1563:7)
I/flutter (17906): #7      _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (17906): #8      RenderObject.layout (package:flutter/src/rendering/object.dart:1563:7)
I/flutter (17906): #9      RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381:13)
I/flutter (17906): #10     RenderObject.layout (package:flutter/src/rendering/object.dart:1563:7)
I/flutter (17906): #11     RenderView.performLayout (package:flutter/src/rendering/view.dart:147:13)
I/flutter (17906): #12     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1438:7)
I/flutter (17906): #13     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:697:18)
I/flutter (17906): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:276:19)
I/flutter (17906): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:654:13)
I/flutter (17906): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:214:5)
I/flutter (17906): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (17906): #18     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (17906): #19     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
I/flutter (17906): #21     _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (17906): #22     _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (17906): #23     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:169:12)
I/flutter (17906): (elided 3 frames from class _AssertionError and package dart:async)
I/flutter (17906):
I/flutter (17906): The following RenderObject was being processed when the exception was fired:
I/flutter (17906):   RenderPositionedBox#85f8f relayoutBoundary=up2 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (17906):   creator: Align ← DecoratedBox ← Container ← Center ← MyApp ← [root]
I/flutter (17906):   parentData: <none> (can use size)
I/flutter (17906):   constraints: BoxConstraints(0.0<=w<=411.4, 0.0<=h<=731.4)
I/flutter (17906):   size: Size(411.4, 731.4)
I/flutter (17906):   alignment: AlignmentDirectional.center
I/flutter (17906):   widthFactor: expand
I/flutter (17906):   heightFactor: expand
I/flutter (17906): This RenderObject had the following child:
I/flutter (17906):   RenderParagraph#89c64 relayoutBoundary=up3 NEEDS-PAINT
I/flutter (17906): ════════════════════════════════════════════════════════════════════════════════════════════════════

Please add the output of flutter doctor -v.

If you remove the alignment it is centered.
Can you elaborate what you try to accomplish exactly and what effect you expect from alignment?

Perhaps
void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Directionality(
      textDirection: TextDirection.ltr,
      child: new Center(
        child: Container(
          color: Color.fromARGB(255, 66, 165, 245),
          child: new Text(
            "Flutter Cheatsheet",
            style: TextStyle(fontSize: 10.0),
          ),
          alignment: Alignment(0.0, 0.0),
        ),
      ),
    );
  }
}

The directionality widget is provided by Scaffold. If you don't use Scaffold you need to provide it yourself. The error could be more clear though.

the output of flutter doctor -v is :
C:\Users\Flyn\Desktop\myapp>flutter doctor -v
[√] Flutter (Channel beta, v0.6.0, on Microsoft Windows [Version 10.0.17134.228], locale zh-CN)
• Flutter version 0.6.0 at C:\Users\Flyn\Desktop\flutter
• Framework revision 9299c02cf7 (2 weeks ago), 2018-08-16 00:35:12 +0200
• Engine revision e3687f70c7
• Dart version 2.1.0-dev.0.0.flutter-be6309690f
[√] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at C:\User\Development\SDK\Android
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• ANDROID_HOME = C:\User\Development\SDK\Android
• Java binary at: C:\User\Development\Tools\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\User\Development\Tools\Android Studio
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[!] IntelliJ IDEA Ultimate Edition (version 2017.3)
• IntelliJ at C:\User\Development\Tools\IntelliJ IDEA 2017.3.3
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[√] Connected devices (1 available)
• SM G9550 •<PHONE_NUMBER>464d3359 • android-arm64 • Android 8.0.0 (API 26)
! Doctor found issues in 1 category.
But I only use Android Studio development, and it should have nothing to do with IntelliJ IDEA.

Did my suggestion help?

I only use Android Studio

There is no need for all checkboxes to be ok.
The output of flutter doctor -v Is just a convenient way to collect a set of information that is usually helpful diagnosing like Flutter version, IDE version, OS, ...

Now the text is centered.Thanks for your suggestion .Thank you very much!!!!!!!O(∩_∩)O
Amazing!!!


No differences between VM creation and VM start in microshift preset

Most of the steps in startMicroshift only need to be done once after creating the microshift VM.
At the moment, they are done every time. In particular, the pull secret will be asked at every start if not cached.

Yes we need to have something like ensure for those methods which first check if a condition is met then don't run otherwise run. Same what we have for openshift side where we ensure if pull secret is preset or kubeconfig file is present.

Hit this again today :-/

and in #3801, as when interactively it gets cancelled, the VM is already in a started stage, but the cluster is not finalized.

https://github.com/crc-org/crc/pull/3805 should fixed it. closing this issue.


[pre-ll] Remove derivative

Remove crate derivative.
Fix some warnings: &Error -> &dyn Error.

After reading about master branch speeding up compile times by removing derivative I wondered if it would help the pre-ll code too. Tbf I can see derivative is quite helpful for the PhantomData types where regular #[derive(...)] falls down. But it isn't that hard to write out the impls.
It impacts clean builds more than I would expect (linux, rust 1.38, ryzen 2700x).
Before
$ hyperfine --max-runs 3 'cargo clean; cargo build --example cube'
Benchmark #1: cargo clean; cargo build --example cube
  Time (mean ± σ):     34.765 s ±  0.126 s    [User: 248.966 s, System: 12.062 s]
  Range (min … max):   34.666 s … 34.906 s    3 runs

After
$ hyperfine --max-runs 3 'cargo clean; cargo build --example cube'
Benchmark #1: cargo clean; cargo build --example cube
  Time (mean ± σ):     28.158 s ±  0.343 s    [User: 250.888 s, System: 12.067 s]
  Range (min … max):   27.819 s … 28.504 s    3 runs

PR checklist:

[x] tested examples with the following backends: gl

Thank you! If I understand correctly, this is a non-breaking change.

Yep should function identically.
@kvark Do you think it's worth making a new release with this improvement, or wait for more stuff? I'm happy to raise the v0.18 pr if so.

@alexheretic I don't mind either way :)


Suggestion: Ability to Mute/Delete/Leave Chats

Original Facebook messages has the ability to select a dropdown menu, in the chat settings, that allows the user to mute/delete/leave chats. This would need to stop desktop notifications as well.

You can aleady do that:

Sorry for the confusion, I meant mute the chat as in the entire conversation. Also, that dropdown menu does not show up for me? Are we talking about the messenger app from this repos?

Sorry for the confusion, I meant mute the chat as in the entire conversation.

I believe the "Mute" option does exactly that.

Also, that dropdown menu does not show up for me?

In the conversation list on the left, hover over the conversation you want to mute. Then a "…" menu button will show up. Click it and you'll find the options above.

Are we talking about the messenger app from this repos?

Yes

Ah perfect, my bad.

No worries! Also, no need to edit the title – if the issue is closed, that means it's resolved.


Volar TS error in LiveShare session

LiveShare client side getting TS Error:
Cannot find module 'vue' or its corresponding type declarations.ts(2307)
Cannot find module<EMAIL_ADDRESS>or its corresponding type declarations.ts(2307)

(On server side everything is ok)
Is it possible to fix somehow? For me it's very important to use LiveShare session in this situation.
VSCode - Insiders
Volar - v1.6.5
Sometimes Volar autocomplete stops working like in #2705 and then I'm getting this error and problem with TS error solves:

Fixed by #3788


MacBook Trackpad SingleChildScrollView overscroll gets reset when pointer leaves TextField

Steps to reproduce
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark(),
      home: Scaffold(
        body: _MyWidget(),
      ),
    );
  }
}

class _MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 300,
      width: 500,
      color: Colors.grey,
      child: SingleChildScrollView(
        physics: const BouncingScrollPhysics(),
        child: Column(
          children: [
            for (int i = 0; i < 20; i++)
              Padding(
                padding: const EdgeInsets.only(right: 100),
                child: TextField(
                  decoration: InputDecoration(hintText: "Hint Text $i"),
                ),
              )
          ],
        ),
      ),
    );
  }
}

Expected results
When scrolling via trackpad on a macbook,
overscroll should not be interrupted by pointer interactions with text field
Actual results
On Web:
Overscroll with mac trackpad does not seem to work at all (related: https://github.com/flutter/flutter/issues/91507)
On Macos:
Overscroll is interrupted by pointer interactions with text field
https://github.com/user-attachments/assets/56601516-95b3-43db-8939-a48baf92bb39
Code sample
See above
Screenshots or Video
See above
Logs
No response
Flutter Doctor output
Doctor output
$ flutter doctor -v
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.6 23G80 darwin-arm64, locale en-DE)
    • Flutter version 3.22.0 on channel stable at /Users/gian/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (3 months ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/gian/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C65
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.6 23G80 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.6 23G80 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 127.0.6533.100

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

Caused by https://github.com/flutter/flutter/pull/136871 @xu-baolin
Seems like when we hover/unhover, the TextField relayout, and cause the Scrollview to relayout

When I have a ReorderableList as a child of SingleChildScrollView, the same issue occurs as shown in the video you uploaded. This issue did not occur in Flutter version 3.22.2.

Hi everyone!
In https://github.com/flutter/flutter/pull/136871 's thread, there is already an issue for this at https://github.com/flutter/flutter/issues/145078, so I will mark this a duplicate. Thanks!


[Samples] Add 11.qnamaker bot sample

Fixes MS864
Description
We are adding the sample 11.qnamaker in Java taking into account the C# 11.qnamaker bot present in BotBuilder-Samples repository.
Specific Changes

Generate main structure of the sample
Add resources folder with sample questions tsv
Add deploymentTemplates folder
Add root files
Add application.properties
Add LICENSE document
Add README document to describe the steps to run the sample

Testing
Current behavior of the Java migrated sample

Merged in MS


Gif maker

Description of the new feature / enhancement
A Gif maker that captures a set area and allows you to save the gif (sounds silly but its quite useful)
Scenario when this would be used?
There is this little tool I always use https://gifcam.en.uptodown.com/windows and yes it sounds silly but it's actually super helpful. I use it to explain to clients/colleagues what is wrong/what needs attention or if I have questions about something.
You drag over an area and it captures whatever happens in that area and then you can convert it as a GIF and send it over to someone its nice because the files are small and most chat applications support gifs so people can watch it over and over if they like to or download it etc
You can also draw on the gifs to highlight certain stuff or edit the gif to remove things that are not needed
Supporting information
The problem is with this https://gifcam.en.uptodown.com/windows it isn't supported very well and it isn't optimized so it crashes sometimes or causes issues... Would be great if you guys could add something similar to  power toys for people to use

Duplicate of #143

Issue is a duplicate
Thank you for your issue! We've linked your report against another issue to centralize the thread.
Thanks for helping us to make PowerToys a better piece of software.


Inferencing the learned Policies

Hi,
Firstly, thank you for your efforts, amazing work!
I am currently working with a custom environment and managed to train MARL policies. However, I am grappling with running inferences on the learned policies.
I came across #69 and load_and_reference, but I noticed that while running inference this way, the actions received by the step function (where I decided to log the relevant metrics during inference, since render invokes the training loop, which in turn the step function) do not make sense for the following reasons:

The actions keep fluctuating given the same state, which I believe shouldn't be the case.
The randomness associated with the actions keeps changing when I update the seed in ray.yaml config.

Based on these observations, I am inclined to believe that it is the action noise added to the actions (I am running the PPO algorithm), but I may be wrong.
(/My environment does not have any randomness)
May I please know what the right way is to run inference, through MARL interface or directly load the policies via Raylib. And if render is the way to run inference, then how can I get consistent results that do not keep changing with the random seed.
Thanks,
Arshad

MARLlib's render API is actually a one episode training, so the policy is not actually "inferencing". I would recommend you to only load the model with MARLlib's API, then inference using RLlib's compute_single_action API. For more detail, you can refer to my evaluation script

In general, for stochastic policy, you should set explore=True to acheive the best performance.


[Feature] lake pk table support dup publish, multi cluster and add memory tracker

What type of PR is this：

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #14853
Problem Summary(Required) ：

Add data version to lake primary index, and do check and update version before handle txn logs. By this, we can support multi cluster and also handle same publish twice.
Add memory tracker to lake update manager to monitor the memory states of lake pk table.

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_fe_unittest

run starrocks_be_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_admit_test