Error while building zigbee_bridge example (CON-223)

I'm getting error while build zigbee_bridge matter examples. I'm using esp32c3 module.
this is my log:
/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/platform/ESP32/PlatformManagerImpl.cpp:41:10: fatal error: spi_flash_mmap.h: No such file or directory
41 | #include "spi_flash_mmap.h"
|          ^~~~~~~~~~~~~~~~~~
compilation terminated.
[21/235] c++ obj/third_party/connectedhomeip/src/platform/ESP32/nimble/ESP32.BLEManagerImpl.cpp.oninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.
HINT: Please make sure that the header name is correct. Also please check if you've specified all component dependencies with 'idf_component_register(REQUIRES ...)'. If the component is not present then it should be added by the IDF Component Manager. For more information run 'idf.py docs -sp api-guides/build-system.html'.
Also, please check if the header file has been removed, renamed or relocated - refer to the migration guide for more information.
ninja failed with exit code 1, output of the command is in the /home/ubuntu/esp/esp-matter/examples/zigbee_bridge/build/log/idf_py_stderr_output_6886 and /home/ubuntu/esp/esp-matter/examples/zigbee_bridge/build/log/idf_py_stdout_output_6886

For Zigbee Bridge example, ESP-IDF release/v5.0 branch at commit 20949d44 should be used. Could you use IDF on commit 20949d44 to compile the bridge example and test?

@SYESHASWINI can you please tell the IDF version/commit that you are using?
are you trying to build the example with IDF v5.0? Currently we only support v4.4.3.

yes, I'm using esp-idf version v5.0 and the log belongs to the same version.

@SYESHASWINI Can you use the specific commit on release/v5.0 branch as mentioned by @wqx6 instead of ESP-IDF v5.0 release. That should solve your problem.

@SYESHASWINI Please close this issue if it works as expected

@dhrishi I installed idf from the commit 20949d44, but still I'm getting the error.
Log:
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/esp-matter/examples/light/build/CMakeFiles/CMakeOutput.log".
HINT: The component mdns has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details.
cmake failed with exit code 1, output of the command is in the /home/ubuntu/esp-matter/examples/light/build/log/idf_py_stderr_output_22729 and /home/ubuntu/esp-matter/examples/light/build/log/idf_py_stdout_output_22729

@SYESHASWINI Can you clean and re-compile your application:
$ rm -rf sdkconfig sdkconfig.old build/
$ idf.py build

Ideally it should work as the examples get compiled in our CI on all commits, before they are pushed to Github.

@dhrishi  executed the commands, still getting the same error

@SYESHASWINI You were trying the zigbee_bridge example previously, right? It requires the specific commit on IDF release/v5.0 branch

See also "/home/ubuntu/esp-matter/examples/light/build/CMakeFiles/CMakeOutput.log".

Although, this shows that you are trying the light example? Light example is based on IDF v4.4.3 and it won't work on the commit on IDF release/v5.0 branch.
Please check the documentation here: https://github.com/espressif/esp-matter/#supported-esp-idf-and-connectedhomeip-versions

I also checked with zigbee_bridge example.
log:
Make Error at /home/ubuntu/esp-idf/tools/cmake/component.cmake:312 (message):
Include directory '/home/ubuntu/esp-idf/components/mbedtls/mbedtls/include'
is not a directory.
Call Stack (most recent call first):
/home/ubuntu/esp-idf/tools/cmake/component.cmake:486 (__component_add_include_dirs)
/home/ubuntu/esp-idf/components/mbedtls/CMakeLists.txt:18 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/esp-matter/examples/zigbee_bridge/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the /home/ubuntu/esp-matter/examples/zigbee_bridge/build/log/idf_py_stderr_output_4175 and /home/ubuntu/esp-matter/examples/zigbee_bridge/build/log/idf_py_stdout_output_4175

@SYESHASWINI Please attach/upload a complete log file containing: showing IDF and esp-matter version, activating the environment (export.sh), clean and re-compile the zigbee_bridge example

@dhrishi I'm attaching the log, please have a look at it.
esp_log.txt

@SYESHASWINI, can you try the following
# open a new terminal
cd esp-idf
. ./export.sh

cd esp-matter
. ./export.sh

cd examples/zigbee_bridge
idf.py fullclean
idf.py build

In logs I see, you did not sourced the export.sh in esp-matter repository.

Also, can you confirm one more thing, did you update the submodules after checking out esp-idf commit 20949d44? If not can you please do the following
cd esp-idf
git submodule update --init --recursive

tried the above command and this is how I got the log.
esp-idf.txt
the procedure I followed to install IDF is I downloaded the commit release/v5.0 and installed by running ./install.sh

The submodule update command gets the following error message in your log
fatal: not a git repository (or any of the parent directories): .git

Please check whether the ~/esp-idf is a git repository.

@SYESHASWINI There seem to be a few issues as per your attached esp-idf.txt:

There's already a folder esp-idf within which you are cloning esp-idf. And before doing git submodule update --init --recursive you are not entering the newly created esp-idf folder that was just cloned. What is the outer esp-idf folder?
Also, you are running the install.sh from the outer esp-idf folder whereas you should run that from the newly cloned folder
The log does not show that you are using the specific commit of ESP-IDF and just using the master branch

Can you please remove the outer esp-idf folder (if it is a stale one) and try out everything in a clean way

Cleared the folder and installed again and exported. still getting error attaching the log of it.
Thank You.
idf.txt

@SYESHASWINI Why did you do the git switch release/v5.0? You moved away from the checked out commit. Also, you should update the submodules after checking out the required commit.
Can you please follow all the steps here: https://docs.espressif.com/projects/esp-matter/en/latest/esp32h2/developing.html#getting-the-repositories and confirm that everything from the setup is as expected?
zigbee_bridge example gets compiled through our CI before any commit goes out. So, ideally, it should compile fine

It has compiled fine. Thank You.

It has compiled fine. Thank you


debug maestro-e2e-output not being present when tests fail

The artifacts stopped appearing.

Looks like it's caused by https://github.com/mobile-dev-inc/maestro/pull/2007. Sigh, GitHub Actions, the hopeless abomination.


ICS Calendar attachments are not recognized by outlook

I've tried attaching an ICS Calendar invite. The attachment itself works and is sent to the email. Gmail appears to recognize the ICS file and adds it to the user calendar. Outlook does not recognize it. Using the same domain and same configurations, this will work fine using SendGrid. The only real difference I could see was SendGrid asks for a type key like type: 'text/calendar; method=REQUEST' to make this work with Outlook.

Were you able to get this working or did you migrate to a different service?

Were you able to get this working or did you migrate to a different service?

Sadly still using SendGrid. It's a shame because Id love to use resend.

answered in the examples repo as well: https://github.com/resend/resend-examples/issues/154#issuecomment-2204267914
in the latest version of our SDK (v3.4.0 as of now), the attachments array accepts a content_type param 🙏

@vcapretz  unfortunately this fix for Outlook now produces the same problem on Gmail. The iCal renders in Outlook but Gmail will not recognize it and instead simply allows the ics to be downloaded as an attachment. Any ideas? I would imagine sending calendar invites via email would be popular with Resend.

@tscans I'm running into the same issue suddenly. Gmail no longer recognizes ICS calendar files that it previously did, providing the visual integration directly in the inbox with the Yes No Maybe. It has worked for years and suddenly doesn't. I strongly suspect Google changed something in how they process these things. I read somewhere they're wanting to push people towards registering and using this Schema format instead: https://developers.google.com/gmail/markup/reference/event-reservation#json-ld
But it seems crazy to me that they'd suddenly drop support for what is pretty standard stuff being used by a LOT of applications...

Experiencing the problem of the ics not being recognised by Outlook, but works fine on Gmail. Does anyone know the current state of this problem?
@vcapretz I see the change of yours content_type as snake case was changed to camel case. Is the what is causing Outlook to not recognise it?


Dialog stack errors and suggestions

Errors
https://github.com/BawdyInkSlinger/dialog-element-macro/blob/ef08686c5e9ff89371890d598978304e06f520cc/src/dialog-stack.ts#L3-L5
https://github.com/BawdyInkSlinger/dialog-element-macro/blob/ef08686c5e9ff89371890d598978304e06f520cc/src/dialog-stack.ts#L9-L13
These tests should be inverted.  I.e., create the stack state if the stack does not exist and throw an error if the stack does not exist.  E.g., in both cases:
    if (!this.dialogStackExists()) {

The only reason they work currently is because the return value of the .dialogStackExists() method is backwards.  I.e., it returns true if the stack does not exist, contrary to its name.
https://github.com/BawdyInkSlinger/dialog-element-macro/blob/ef08686c5e9ff89371890d598978304e06f520cc/src/dialog-stack.ts#L17-L20
E.g., its return should be something like:
    return (
      State.temporary?.dialog_element_macro_stack !== null &&
      State.temporary?.dialog_element_macro_stack !== undefined
    );

That said.  The return is kind of cursed for other reasons as well.

Checking for the existence of State.temporary is pointless, since it always exists.  I.e., you don't need the optional chaining operator there.
The idiomatic way to test for nullish-ness is to use the lazy (in)equality operator (== & !=) on null, which handles both cases at once.

E.g., putting both together:
    return State.temporary.dialog_element_macro_stack != null; // lazy equality for null

Even if you don't like the idea of using lazy (in)equality to test for nullish-ness, I'd still drop the use of optional chaining.

Suggestions
https://github.com/BawdyInkSlinger/dialog-element-macro/blob/ef08686c5e9ff89371890d598978304e06f520cc/src/dialog-stack.ts#L16
This name is cursed.  It's an object method, not a standalone function.  Why not simply call it exists or something similar?  E.g.,
/* BAD */
DialogElementMacroStack.dialogStackExists()

/* GOOD */
DialogElementMacroStack.exists()

Even if it's unused externally† the change would make its internal usage less needlessly verbose.
†  GitHub was indexing the repo at the time, so I couldn't check to see.  Though, as a follow up question: if it is unused externally, why expose it at all?

As a final idea, if not an outright suggestion.  In the few built-in macros that keep state within story or temporary variables, I personally prefer to ensure that user code is unlikely to ever touch said state by making the property name something that cannot be accessed via the chaining operator, which also means via sigil.  E.g.,
/* INSTEAD OF */
State.temporary.dialog_element_macro_stack

/* USE SOMETHING LIKE */
State.temporary['#dialog_element_macro_stack']

If the stack state is accessed external to this object's exported API†, then you could always add a method to return its value so consumers don't need to be aware of the details.
†  GitHub was still indexing the repo, so I couldn't check on this.

The idiomatic way to test for nullish-ness is to use the lazy (in)equality operator (== & !=) on null, which handles both cases at once.

Neat. TIL.

† GitHub was indexing the repo at the time, so I couldn't check to see. Though, as a follow up question: if it is unused externally, why expose it at all?

Here's why: I was rushing and hadn't noticed. :)
I've attempted to implement all your suggestions. Thanks for making them.


Feature/admin prereg checkout [OSF-6411]

Purpose

This replaces #5775
It allows prereg admins to checkout files while they are reviewing a submission. It also gathers guid info to make file tracking more robust if the user changes the file between submission and review.
Changes

Add checkin/checkout methods to relevant admin interface views.
Add file guid request

Side effects

More API v1 for (hopefully soon) deprecation
Ticket

https://openscience.atlassian.net/browse/OSF-6411

Pass finished.

No major blockers here. This is good to go as is, but it'd be worth looking into https://github.com/CenterForOpenScience/osf.io/pull/5907#discussion_r71747989 when you get the chance.


Pass compression keyword argument

Fix a missing compression keyword argument for write_kappa_to_hdf5 in _write_gamma function.
This keyword should be passed in all code paths to allow the --hdf-compression option to be honoured.

Merged. Thanks @zhubonan .


Core dumped while running the nnet example

I received a core dumped termination error while running the sample nnet worker (sample_english_nnet2.yaml) as in the README.
self.asr = Gst.ElementFactory.make("kaldinnet2onlinedecoder", "asr")
2015-05-18 12:35:05 -    INFO:   decoder2: Setting decoder property: big-lm-const-arpa = test/models/english/tedlium_nnet_ms_sp_online/G.carpa
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

Is it a specific memory issue on my machine?

I didn't have enough rams on my machine, increasing the memory solved the issue.


Suricata 6.0.9: Multiple Issues with XDP, eBPF, and App-Layer Protocol Configuration

Description
While running Suricata 6.0.9 in a Docker container, I encountered multiple issues related to eBPF/XDP loading and app-layer protocol configuration. The errors indicate problems with loading XDP programs and missing configurations for app-layer protocols. Additionally, there is an issue with finding eBPF map file descriptors.
Environment

Suricata version: 6.0.9
Operating System: debain12
Docker version: 23.0.5
Kernel version: 4.15.0-210-generic

Steps to Reproduce

Run Suricata in a Docker container with the following command:
sudo docker run --rm -it --net=host --cap-add=net_admin --cap-add=net_raw --cap-add=sys_nice --privileged suricata:latest -i eth0
Observe multiple error and warning messages in the console output.

root@ci:/opt/docker-suricata/6.0# sudo docker run --rm -it --net=host     --cap-add=net_admin --cap-add=net_raw --cap-add=sys_nice  --privileged suricata:latest -i eth0
17/1/2024 -- 07:44:38 -  - This is Suricata version 6.0.9 RELEASE running in SYSTEM mode
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol sip enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol mqtt enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol rdp enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_NO_RULES(42)] - No rule files match the pattern /var/lib/suricata/rules/suricata.rules
libbpf: elf: skipping unrecognized data section(7) .xdp_run_config
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument
libbpf: prog 'xdp_dispatcher': failed to load: -22
libbpf: failed to load object '/usr/lib/x86_64-linux-gnu/bpf/xdp-dispatcher.o'
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument
libbpf: prog 'xdp_dispatcher': failed to load: -22
libbpf: failed to load object '/usr/lib/x86_64-linux-gnu/bpf/xdp-dispatcher.o'
libxdp: Failed to load dispatcher: Invalid argument
libxdp: Falling back to loading single prog without dispatcher
libbpf: prog 'xdp_hashfilter': BPF program load failed: Invalid argument
libbpf: prog 'xdp_hashfilter': failed to load: -22
libbpf: failed to load object '/etc/suricata/ebpf/xdp_filter.bpf'
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Unable to attach multi XDP on 'eth0': Invalid argument (-22)
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Error when loading XDP filter file
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument
libbpf: prog 'xdp_dispatcher': failed to load: -22
libbpf: failed to load object '/usr/lib/x86_64-linux-gnu/bpf/xdp-dispatcher.o'
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument
libbpf: prog 'xdp_dispatcher': failed to load: -22
libbpf: failed to load object '/usr/lib/x86_64-linux-gnu/bpf/xdp-dispatcher.o'
libxdp: Failed to load dispatcher: Invalid argument
libxdp: Falling back to loading single prog without dispatcher
libbpf: failed to find valid kernel BTF
libbpf: Error loading vmlinux BTF: -3
libbpf: failed to load object '/etc/suricata/ebpf/xdp_synproxy_kern.bpf'
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Unable to attach multi XDP on 'eth0': No such process (-3)
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Error when loading XDP filter file
17/1/2024 -- 07:44:38 -  - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Can't find eBPF map fd for 'flow_table_v6'
17/1/2024 -- 07:44:38 -  - all 1 packet processing threads, 4 management threads initialized, engine started.
syncookie_xdp not attached!

@scoolor I think the App-Layer protocol  could be corrected or ignored as long as suricata can start up ok, the ebpf attach error seems to be your kernel not supporting syncookie_xdp, try kernel with version 6.2 or above

@scoolor also if you ever run into Can't find eBPF map fd for 'flow_table_v6', the workaround is to run xdp-loader unload interface-name -a, that could remove all previous left over programs/maps in suricata container, then stop the suricata container, and re-launch the suricata docker. I wish there is better clean way :)

@scoolor also if you ever run into Can't find eBPF map fd for 'flow_table_v6', the workaround is to run xdp-loader unload interface-name -a, that could remove all previous left over programs/maps in suricata container, then stop the suricata container, and re-launch the suricata docker. I wish there is better clean way :)

First and foremost, I would like to express my heartfelt thanks for your prompt and detailed response. Your guidance has been crucial for my understanding of this issue, and I am very grateful for the time you took out of your busy schedule to assist me.
Following your suggestion, I am going to attempt checking and confirming if the kernel version is the root cause of the issue. I understand that this might be a key factor leading to the problem, so I plan to conduct some necessary checks and adjustments on my system as per your guidance.
Thank you once again for your help and valuable time. Your expertise and willing support mean a lot to me.


djxl cannot handle bit depths >8 and <16 correctly when decoding to PNG

Take a JXL file tagged as 9-bit, for example this one: wb-rainbow.jxl

libjxl-based decoders are able to read it correctly (such as ffmpeg, GIMP, etc.)
However, djxl produces corrupt output with the following:
$ djxl samples/wb-rainbow.jxl output.png
JPEG XL decoder v0.7.0 f95da131 [AVX2,SSE4,SSSE3,Unknown]
Read 352 compressed bytes.
Decoded to pixels.
2048 x 1152, 5.84 MP/s [5.84, 5.84], 1 reps, 4 threads.

output.png is too large to put on Github, but here's a link: https://buzo.us/S.png
Additional Information:
Explicitly setting --bits_per_sample=8 and --bits_per_sample=16 also fails (although I believe this bug was fixed on git main):
$ djxl samples/wb-rainbow.jxl --bits_per_sample=8 output.png
JPEG XL decoder v0.7.0 f95da131 [AVX2,SSE4,SSSE3,Unknown]
Read 352 compressed bytes.
Decoded to pixels.
Encode failed
$ djxl samples/wb-rainbow.jxl --bits_per_sample=16 output.png
JPEG XL decoder v0.7.0 f95da131 [AVX2,SSE4,SSSE3,Unknown]
Read 352 compressed bytes.
Decoded to pixels.
Encode failed

Version Stuff:
Arch Linux x86_64
djxl version: f95da131

Just tested with djxl version afa493d9 and I cannot reproduce, so this must have been fixed on git main.


Remove championship entrant

In open championships you can end up with tons of entrants with only one event completed. Allow admins to remove people in order to clean the page up a bit

I think the problem here is having to scroll far past a lot of entrants to get to the interesting bit of a championship. I'm not sure that the solution is allowing admins to delete entrants. Perhaps we could set a max-height on the points table at a sensible value (e.g. 20 or 30 entrants) and then make the other entrants visible by scrolling?

fixed by #573


Any Expected Date to Release 2.0 Version

Hey dear developer,
Are there any expected date for you to release the milestone version v2.0.0? Thanks.

Short: Sad to be said but it is not anytime soon.
Long: Since Sublime Text has been slowly discontinue regardless of me using it since early beta, I switched to another editor, not only to get more features but also more bug fixes, which keep me away from Sublime Text. And since I am not working with Java that much anymore, my usage of Javatar myself has decreased a lot, making it less likely to continue to develop. Although I take a lot of efforts to make Javatar 2.0.0 great again (cliche?), building from scratch with a new code base and more complex stuffs, I still mostly working on my own free time alone as oppose to how contributors help me a lot on late 1.0.0 release. So, that is conclude the reasons why Javatar has been discontinue for a while now.

@spywhere Thank you for you reply and I really understand. By the way, which editor are you using now? :)

@yanzhang0219 Visual Studio Code :)

@spywhere Wow, actually I like vscode. Do you have an extension that is similar with Javatar? Last week I looked for an extension using which I could compile and run java codes. I found someones, but all of them don't support the packages in java. So sad. Thank you.

@yanzhang0219 This one seems good to me. However, I did not try it myself though.

@spywhere Okay, thanks. I'll try that. :) Have a good one.

Hi @spywhere .

@DiegoAz Though Sublime Text got an update, I'm still not working with Java that frequent. So, what do you expect to see the most from Javatar 2.0.0, given that if I have enough time to implement it? Most core features are already implemented and you can use v2.0.0 right now (via prerelease channel).

@spywhere the JUnit support (#19) would be great


Offline orders not working

Current behavior
Offline orders not working. Nothing happens when clicking on the button "Place the order".
Expected behavior
The order should be placed when click on the button "Place the order".
Steps to reproduce the issue

Disable cart synchronize true from vue-storefront/local.json
Go to the checkout page and try to place an order in offline mode.

Can you handle fixing this bug by yourself?

[ ] NO

Environment details

Browser:Google Chrome
OS: Linux Mint
Node: 12.16.3
Code Version: master branch

This mode has not been supported since 1.10. Please not use it.


No EC2 imds role found

I am getting the same issue:
$ terraformer import aws --resources=alb --regions=us-east-1
2021/06/03 10:01:30 aws importing region us-east-1
2021/06/03 10:01:32 aws importing... alb
2021/06/03 10:01:37 aws error initializing resources in service alb, err: no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials/": dial tcp <IP_ADDRESS>:80: connect: host is down
2021/06/03 10:01:37 aws Connecting....

I'm getting the same error as well:
$ terraformer import aws --resources=vpc --regions=eu-central-1  -v 2021/06/04 01:10:01 aws importing region eu-central-1 2021-06-04T01:10:01.676+0200 [INFO]  plugin: configuring client automatic mTLS 2021-06-04T01:10:01.705+0200 [DEBUG] plugin: starting plugin: path=/home/zmezei/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5 args=[/home/zmezei/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5] 2021-06-04T01:10:01.706+0200 [DEBUG] plugin: plugin started: path=/home/zmezei/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5 pid=238753 2021-06-04T01:10:01.706+0200 [DEBUG] plugin: waiting for RPC address: path=/home/zmezei/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5 2021-06-04T01:10:01.734+0200 [INFO]  plugin.terraform-provider-aws_v3.44.0_x5: configuring server automatic mTLS: timestamp=2021-06-04T01:10:01.734+0200 2021-06-04T01:10:01.762+0200 [DEBUG] plugin: using plugin: version=5 2021-06-04T01:10:01.762+0200 [DEBUG] plugin.terraform-provider-aws_v3.44.0_x5: plugin address: address=/tmp/plugin098518608 network=unix timestamp=2021-06-04T01:10:01.762+0200 2021-06-04T01:10:01.796+0200 [TRACE] plugin.stdio: waiting for stdio data 2021-06-04T01:10:01.863+0200 [INFO]  plugin.terraform-provider-aws_v3.44.0_x5: 2021/06/04 01:10:01 [INFO] AWS Auth provider used: "EnvProvider": timestamp=2021-06-04T01:10:01.863+0200 2021-06-04T01:10:01.865+0200 [INFO]  plugin.terraform-provider-aws_v3.44.0_x5: 2021/06/04 01:10:01 [DEBUG] Trying to get account information via sts:GetCallerIdentity: timestamp=2021-06-04T01:10:01.865+0200 2021-06-04T01:10:02.388+0200 [INFO]  plugin.terraform-provider-aws_v3.44.0_x5: 2021/06/04 01:10:02 [DEBUG] Trying to get account information via sts:GetCallerIdentity: timestamp=2021-06-04T01:10:02.388+0200 2021/06/04 01:10:03 aws importing... vpc 2021/06/04 01:10:08 aws error initializing resources in service vpc, err: no EC2 IMDS role found, operation error ec2imds: GetMetadata, request canceled, context deadline exceeded 2021/06/04 01:10:08 aws Connecting.... 2021-06-04T01:10:08.071+0200 [DEBUG] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" 2021-06-04T01:10:08.073+0200 [DEBUG] plugin: plugin process exited: path=/home/zmezei/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5 pid=238753 2021-06-04T01:10:08.073+0200 [DEBUG] plugin: plugin exited
$ terraformer --version version v0.8.14
$ ls ~/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5 /home/zmezei/.terraform.d/plugins/linux_amd64/terraform-provider-aws_v3.44.0_x5

I am also getting same error!

Same error here.
I've verified that my credentials have permissions to list/describe/read VPC and have reproduced on a new account with only the default VPC, so suspect that this is not related to nuances of how my particular account is configured.

It seems that this is related to the handling of the provider chain when trying to load the "default" profile - possibly in cases where that profile is not available.
I'm not entirely sure why this produces this error, however I'm able to work around it by explicitly setting the profile to an empty string, which avoids trying to customize that in the AWS provider chain. e.g.
terraformer import aws -r vpc --profile ""
I think the right fix here is to have the default value of --profile be "" rather than "default". If someone else in this thread can confirm that this fix works for them, then I would be happy to implement a patch.

Doesn't work
❯ terraformer import aws -r lambda --regions=eu-west-1 --profile ""
2021/06/30 00:53:57 aws importing region eu-west-1
2021/06/30 00:54:03 aws importing... lambda
2021/06/30 00:54:07 aws error initializing resources in service lambda, err: no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials/": dial tcp <IP_ADDRESS>:80: connect: host is down
2021/06/30 00:54:07 aws Connecting....

I'm using plain AWS profiles without any customizations ~/.aws/config and ~/.aws/credentials with export AWS_PROFILE=name
I didn't change anything in my credentials handling, but it worked on March 25th.

@tehleet  the workaround suggested by @jmcgill works for me in following conditions.
AWS_ACCESS_KEY_ID=<set>
AWS_DEFAULT_REGION=<set>
AWS_PROFILE=<set>
AWS_SECRET_ACCESS_KEY=<set>
AWS_SHARED_CREDENTIALS_FILE=/Users/abuxton/.aws/credentials

provider config is blank in *.tf files (works set too)
provider "aws" {
   # Configuration options
//   region     = "eu-west-2"
//   shared_credentials_file = "/Users/abuxton/.aws/credentials"
//   profile = "default"
}

i can then repeatidly pass fail
❯ terraformer plan aws -r "ec2_instance,s3,vpc, lambda"
2021/07/21 11:04:09 aws importing default region
2021/07/21 11:04:11 aws importing... ec2_instance
2021/07/21 11:04:11 aws error initializing resources in service ec2_instance, err: operation error EC2: DescribeInstances, https response error StatusCode: 401, RequestID: 5e55e966-547f-4b51-adf8-93ed81b96860, api error AuthFailure: AWS was not able to validate the provided access credentials
2021/07/21 11:04:11 aws importing... s3
...
2021/07/21 11:06:34 Saving planfile to generated/aws/terraformer/plan.json

❯ terraformer plan aws -r "ec2_instance,s3,vpc" --profile ""
2021/07/21 11:06:40 aws importing default region
2021/07/21 11:06:42 aws importing... ec2_instance
2021/07/21 11:06:43 aws done importing ec2_instance
...
2021/07/21 11:06:59 Saving planfile to generated/aws/terraformer/plan.json

environment

AWS assume role
Ubuntu linux
S3

work
regard to @abuxton comment, how to make it work.
#export variables
AWS_ACCESS_KEY_ID=<set>
AWS_DEFAULT_REGION=<set>
AWS_PROFILE=<set>
AWS_SECRET_ACCESS_KEY=<set>
AWS_SHARED_CREDENTIALS_FILE=<set>

run command
terraformer import aws --resources=s3 --regions=ap-southeast-1 --profile=""

UP!
Problem still exist

Documentation is vague on this one, should be more concise and the example should be included in the repository itself.

Looks no solution for above issue yet
same issue here
Error: no EC2 IMDS role found, operation error ec2imds: GetMetadata, request send failed, Get "http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials/": dial tcp <IP_ADDRESS>:80: connect: host is down

Facing the issue
│ Error: no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded

Same here. It was fine before but started to fail just a few days ago.

Facing the same issue "Error: no EC2 IMDS role found, operation error ec2imds: GetMetadata, http response error StatusCode: 404, request to EC2 IMDS failed"

Folks,
Upgrade to AWS provider version 4.1.0. That one seemingly has the fix.
https://github.com/hashicorp/terraform-provider-aws/pull/23191

i noticed i had to change the name of env variable so that it could be used appropriately.
originally i was using:
export TF_VAR_aws_access_key=YOUR_ACCESS_KEY
export TF_VAR_aws_secret_key=YOUR_SECRET_KEY
changed to:
export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY
This worked with 4.2.0

I'm still having this problem with latest Terraform, provider and terraformer.
Adding this parameter was 💯 : --profile=""

still having the issue as well with latest terraform (1.5.3) and aws provider (5.9.0). for me it seems as though terraformer just expects the aws profile to be default and ignores any other profile names.
say my profile name is dev, and export AWS_PROFILE=dev - then I get the "no EC2 IMDS role found..." error. however, if i just change the profile name in my ~/.aws/credentials file to default then it works (didn't change my $AWS_PROFILE value either, seems to be totally ignored)
example  content of ~/.aws/credentials - produces the error:
[dev]
output = json
region = us-east-1
aws_access_key_id = *OMITTED*
aws_secret_access_key = *OMITTED*
aws_session_token = *OMITTED*

example  content of ~/.aws/credentials - works, only change being [dev] -> [default]
[default]
output = json
region = us-east-1
aws_access_key_id = *OMITTED*
aws_secret_access_key = *OMITTED*
aws_session_token = *OMITTED*

terraformer import aws  --resources=ec2_instance --regions=ap-southeast-1
Getting this error while terraforming
2023/09/08 21:16:08 aws importing region ap-southeast-1
2023/09/08 21:16:15 aws importing... ec2_instance
2023/09/08 21:16:19 aws error initializing resources in service ec2_instance, err: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials/": dial tcp <IP_ADDRESS>:80: connect: host is down
2023/09/08 21:16:19 aws Connecting....

--profile="" is works for me!!
terraformer import aws --resources=* --regions=us-west-2 --profile=""
version.tf
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.1.0"
}
}
required_version = ">= 0.13"
}

After 4 hours of trying, the only one worked for me is to --profile="" even though I have profiles defined in the ~/.aws/config.
verions.tf:
terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
      version = ">= 5.0.0"
    }
  }
  required_version = ">= 1.7.0"
}

and main.tf
provider "aws" {
  region = "us-east-2"
}

Further, I wrap the cli in aws2-wrap w/ a profile specified:
aws2-wrap --profile <name>  ./terraformer-aws-linux-amd64 import aws -r vpc,subnet,sg --profile=""

And sample output (truncated):
➜  tmp myaws ./terraformer-aws-linux-amd64 import aws -r vpc,subnet,sg --profile=""
2024/02/11 17:03:32 aws importing default region
2024/02/11 17:03:34 aws importing... vpc
2024/02/11 17:03:34 aws done importing vpc
2024/02/11 17:03:34 aws importing... subnet
2024/02/11 17:03:34 aws done importing subnet
2024/02/11 17:03:34 aws importing... sg
2024/02/11 17:03:34 aws done importing sg
2024/02/11 17:03:34 Number of resources for service sg: 1
2024/02/11 17:03:34 Number of resources for service vpc: 1
2024/02/11 17:03:34 Number of resources for service subnet: 3

Hope this helps someone.


Housekeeping

In all packages:

Updated dev dependencies
Updated prod dependencies
Reorganised package.json
Recreated package-lock.json
Incremented patch

this is published here https://www.npmjs.com/package/@ministryofjustice/fb-utils-node do we want to switch to git?

It's fine on NPM as it is -- I am preparing a story to kill this repository entirely

this is published here https://www.npmjs.com/package/@ministryofjustice/fb-utils-node do we want to switch to git?

nevermind i misunderstood


MQTT topic for 'warm water setpoint' confusing in English mode

While in German mode you have a different MQTT topics for warm water setpoint than for warm water actual temperature, in English it is a little confusing:
German:
config/WW_Temperatur    # ww setpoint
status/WW_Isttemperatur # ww actual
English:
config/ww_temp   # ww setpoint
status/ww_temp   # ww actual
(they are actually different topics if you consider the full path, but if one wants to use only the last part as a tag it can cause difficulties)
Is this intentional?

no it is not intentional and I could imagine that we have some more cases where the name of the config value is the same as the status value. I did not pay attention to that and if I change it now, it could break existing implementations.
Therefore I would let it as it is unless there are several people who would like to change this.


Bump to python3

Python 2 is dead now. CentOS 8 doesn't have python 2 by default.

Yeah, I can help move forward on the migration.

I can also help on this today if you don't have time

fixed by #123.


Is it possible to have the database outside of docker?

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Is there a way to have the database running outside of docker?
🐻 Uptime-Kuma Version
1.11.1
💻 Operating System and Arch
Ubuntu 20.04 LTS
🌐 Browser
Google
🐋 Docker Version
Docker 20.10.8
🟩 NodeJS Version
10.19.0

When creating your docker container, you can specify a path to store the database:
docker volume create uptime-kuma
docker run -d --restart=always -p 3001:3001 -v /home/user/path:/app/data --name uptime-kuma louislam/uptime-kuma:1

Where the -v parameter, you can specific where you want the data directory and the database to be written to. The only recommendation as per the README.md is don't use a NFS location, needs to be local.

Thank you jamesmacwhite, that is exactly what I needed! Now I gotta learn about sqlite!

@ClearSEM Great, no worries.


Introduce an interface for running dynamics

An interface that runs a series of dynamics given a learned forcefield.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

42 of 42 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
146

Relevant Lines:
146

💛  - Coveralls

I've...

Updated the terminology (process->stage)
Made a dataclass for passing stage information
Ensured we don't add the last structure to the output twice

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

43 of 43 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
147

Relevant Lines:
147

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

43 of 43 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
147

Relevant Lines:
147

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

43 of 43 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
147

Relevant Lines:
147

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

43 of 43 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
158

Relevant Lines:
158

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

43 of 43 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
147

Relevant Lines:
147

💛  - Coveralls


Create Light_Install.rst

Summary
The Hindi translation of Light Install Guide
Ticket Link
Fixes #3974

Hello @kichloo,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.
Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project.
Please help complete the Mattermost contribution license agreement?
Once you have signed the CLA, please comment with /check-cla and confirm that the CLA check is green.
This is a standard procedure for many open source projects.
Please let us know if you have any questions.
We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team.

Hi @kichloo! I wanted to provide some initial feedback on this PR: The file format we use in our documentation is .rst and we use ReStructured Text for our formatting. We have a style guide available in our handbook which has the guidelines around our voice, tone, style and so on.
I also encourage you to take a look at our i18n guidelines which lists some requirements for contributions. :)

@justinegeffen Thanks for the input. I have gone through the guidelines for the documentation. And since this is a draft, once the file is ready, I will make the required changes regarding the format and other guidelines.

@jasonblais Do I have to be the assigne😅😅

@kichloo added you as the assignee too :+1:

@justinegeffen @jasonblais Kindly check the PR

Thank you, @kichloo! This is great work, done really quickly. I have raised a discussion around long-term translation goals here.
In terms of this PR, I would say the next steps are to validate the translation. Did you have a tool in mind for this?
Next I would propose that this is listed in the Community-managed Documentation section of our docs under a new section called "Translations". @jasonblais, LMK what you think.

@justinegeffen For translation in Hindi, I searched but am not able to find such a tool! Probably if there are any Hindi speaking people in your organization, they can help

@jasonblais @justinegeffen Is there anything more required from me regarding this PR? Also, I am not able to do that CLA check.

/check-cla

Hi @kichloo. Have you signed the CLA? The details are in the first comment of this PR. Once that's done, that check will pass.
In terms of the next step, I have added one of our developers to the PR for review as they may be able to assist with verifying the translation. However, going forward, if additional documentation is translated it may be helpful if we have an idea of what tools we can use to expedite the process. :)
At this point, once that review is complete we should be able to move forward with confirming placement. :)

/check-cla

/check-cla

/check-cla

@justinegeffen sorry for the delay:

In terms of this PR, I would say the next steps are to validate the translation. Did you have a tool in mind for this?

Typically what we do with product translations is we mark it as Beta for the first couple of months, allowing users to report bugs (if any). Given we don't have in-house resources to review all translations, this has been found to be a scaleable approach.
https://handbook.mattermost.com/contributors/contributors/localization#official

Next I would propose that this is listed in the Community-managed Documentation section of our docs under a new section called "Translations". @jasonblais, LMK what you think.

@justinegeffen is this intended to be a temporary location? Long-term the translations should work more seamlessly together with the Italian https://github.com/mattermost/docs/pull/3457 and Japanese translations https://github.com/mattermost/docs/pull/3664. Ideally, there would be a language selector somewhere that allows users to read the docs in another language (falling back to English where translations aren't yet completed).
cc @kichloo Big thanks for your contribution! Suggestions and feedback also welcome :)

@agnivade Any more updates required?

Do you have any suggestions for the 2 unresolved comments that I had? Looks good to me otherwise.

Do you have any suggestions for the 2 unresolved comments that I had? Looks good to me otherwise.

I had suggested some more choices beneath them. Are those not fine?

Sorry, I am probably missing something. Can you point me out where you have suggested the alternatives?

आप Main Menu > Plugin Marketplace के माध्यम से इंटीग्रेशन और प्लगइन्स पा और इंस्टॉल कर सकते हैं।
GitHub, Jira और Jenkins से  आरंभ करें:

GitHub, Jira और Jenkins से परिचित करें
GitHub, Jira और Jenkins से परिचय करें

These are some. Do tell which one seems fine.

Again, probably going to be lost in translation. But "karya jutana" doesn't really mean "ramp up quickly". Is there something better?

How would 'तेज़ी से कार्य शुरू कर सकें' be?

I had written them after every change you had mentioned(in the conversation  box). Though, now, I have pasted those.

Those sound great to me @kichloo ! Let's make the changes.

@agnivade Done.

@justinegeffen The PR is approved now

Hi @kichloo. That's excellent. We are currently working on a longer-term localization process for guide translations. In the meantime, I'll add this to our community-managed documentation section. Thank you very much for all your time and effort, it looks great. :)

Two extra steps I left out, apologies:

If you're open to renaming the file to light-install.rst that would be great.
Once renamed, you can add the file path to this document https://github.com/mattermost/docs/blob/master/source/guides/administrator.rst under the "Community Managed Documentation" section.

As you translated this, it might be helpful to add your Mattermost/GitHub username so you can be contacted if there are questions or suggestions. :)

If you're open to renaming the file to light-install.rst that would be great.

Done

Once renamed, you can add the file path to this document https://github.com/mattermost/docs/blob/master/source/guides/administrator.rst under the "Community Managed Documentation" section.

I am not able to do that as I am using only Github (not Git) and there do not seem to be any resources available to do that using Github. If there is any way you know, I would definitely do that.

As you translated this, it might be helpful to add your Mattermost/GitHub username so you can be contacted if there are questions or suggestions. :)

How should the name be added like the syntax, should it be like:
:

Thanks, @kichloo.
With regard to updating the table of contents, you should be able to edit the page I linked and add the file name similar to the other files. If you've forked this repo, you'll find the file under source > guides > administrator.
In terms of the messaging to add, the blue highlighted message in this document may work in this case: https://docs.mattermost.com/install/prod-docker.html. You can add your GitHub username if you like but it's not required. :)

@justinegeffen Sorry for the ambuguity, by the link, I was referring to the 'file path' as I am using Github, but it looks like there is no such tutorial to get the file path using Github

@justinegeffen Sorry for the ambuguity, by the link, I was referring to the 'file path' as I am using Github, but it looks like there is no such tutorial to get the file path using Github

Thanks, @kichloo, I see what you mean. The doc you're working on in your fork should ideally be created in the corresponding section. It looks like this doc is in /docs2/light-install.rst.
As I understand it, the doc should be in /docs/source/administration. The path would be /administration/light-install.rst which can be added to the /guides/administrator.rst file under Community-managed Documentation.
Let me know if that helps at all?

@justinegeffen Done.

@justinegeffen The source path of this is not source/administration/light-install-hindi.rst, so it's not showing up at docs.mattermost.com.

That is correct, yep. I submitted this PR: https://github.com/mattermost/docs/pull/4091 to rectify that as it was easier to move the file around locally than in GitHub. :)


Queryset mixins

query mixins
fast and less memory, use the dict to replace OrderedDict

How to fix the issues in codeclimate ? so many arguments.

Codecov Report

Merging #629 (dd911e5) into master (2caa178) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            master      #629    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files          186       187     +1
  Lines        15487     15588   +101
==========================================
+ Hits         15487     15588   +101

Impacted Files
Coverage Δ

ormar/fields/__init__.py
100.00% <ø> (ø)

ormar/queryset/queries/filter_query.py
100.00% <ø> (ø)

ormar/queryset/queries/limit_query.py
100.00% <ø> (ø)

ormar/queryset/queries/offset_query.py
100.00% <ø> (ø)

ormar/queryset/queries/order_query.py
100.00% <ø> (ø)

ormar/fields/model_fields.py
100.00% <100.00%> (ø)

ormar/models/helpers/models.py
100.00% <100.00%> (ø)

ormar/models/mixins/merge_mixin.py
100.00% <100.00%> (ø)

ormar/models/mixins/save_mixin.py
100.00% <100.00%> (ø)

ormar/queryset/__init__.py
100.00% <100.00%> (ø)

... and 8 more

Awesome, thanks! :)


Separate GUI for entities (based on responses views)

Acceptance Criterias:

[ ] Add new entity
[ ] If entity name is not described, add new entity name

@vmugra Needs proper grooming and AC-s


Provide --client-id argument to override hard-coded clientid (eg: for soundcloud extractor)

Prerequisites

[x] I've verified and I assure that I'm running youtube-dl 2<IP_ADDRESS>
[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Issue
Soundcloud extractor returns HTTP 401, after search on existing issues, it looks like CLIENT_ID on the code needs to be updated.
Related Issues: #11327 and #12376
I changed the CLIENT_ID to a client-id I own from soundcloud API and it works again. I guess the client-id hardcoded is expired/revoked/ban.
Feature request
It would be cool to add a --client-id argument to override hardcoded client-id. You can create your own API Client ID via https://soundcloud.com/you/apps and then use this client-id. This could provide an easy-way to bypass 401 when hardcoded client-id is not working anymore.
In addition, it could helps to debug/confirm issue related to client-id without modifying the code. This could not be limited to soundcloud.

Thanks for this fix! 👍
(I was on 2017.10.15, fixed in 2017.10.20)


SQL homework 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I added code to the main branch
What did you learn from the changes you have made?
I learned how to use case statement
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
There would be other approach to write between statement with one condition.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
No
How were these changes tested?
Yes
A reference to a related issue in your repository (if applicable)
Checklist

[x ] I can confirm that my changes are working as intended

For HW3, Left Join is more accurate choice for Aggregate query, others are correct.

HW2 is missing.

Hi,
Thanks for letting me know. I have create the pull request for SQL homework 2.
Shaohe Wang

2024年5月20日 20:23，SidraBushra @.***> 写道：
HW2 is missing.
—
Reply to this email directly, view it on GitHub https://github.com/lllllwang1/sql/pull/1#issuecomment-2121477306, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3XQOKBF5LNSL63NJWZNLQ3ZDKHZ3AVCNFSM6AAAAABH45HEDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGQ3TOMZQGY.
You are receiving this because you authored the thread.


Clickjacking (UI Readdressing) https://elevate-lab.github.io/elevate-lab-website/

1.Vulnerability name:  Clickjacking
2.Vulnerability Description:
Typically there is one type of attack - cross site request forgeries (CSRF) that can interact with functions on other websites.
Clickjacking (User Interface redress attack, UI redress attack, UI redressing) is a malicious technique of tricking a Web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages.
The server didn't return an X-Frame-Options header which means that this website could be at risk of a clickjacking attack. The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a  or . Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.
This vulnerability affects Web Server.
3.Vulnerable URL:
https://elevate-lab.github.io/elevate-lab-website/
4.Steps to reproduce the vulnerability:
a.Open notepad and paste the following code
<html>

Clickjack test page

Website is vulnerable to clickjacking!

b.Save it as .html eg s.html
c.Open the html page in browser
Below is the link for more information
https://www.owasp.org/index.php/Testing_for_Clickjacking_(OWASP-CS-004)
Solution:
The solution is provided on the link below
https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet
POC:
Screenshot attached.

Regards
Mahendra Purbia

Check this issue and let me know

@mahendra9661 go ahead :tada:

please accept this and add hacktoberfest accepted label

1.Vulnerability name: Clickjacking
2.Vulnerability Description:
Typically there is one type of attack - cross site request forgeries (CSRF) that can interact with functions on other websites.
Clickjacking (User Interface redress attack, UI redress attack, UI redressing) is a malicious technique of tricking a Web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages.
The server didn't return an X-Frame-Options header which means that this website could be at risk of a clickjacking attack. The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a or . Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.
This vulnerability affects Web Server.
3.Vulnerable URL:
https://elevate-lab.github.io/elevate-lab-website/
4.Steps to reproduce the vulnerability:
a.Open notepad and paste the following code

Clickjack test page
Website is vulnerable to clickjacking!

b.Save it as .html eg s.html
c.Open the html page in browser
Below is the link for more information
https://www.owasp.org/index.php/Testing_for_Clickjacking_(OWASP-CS-004)
Solution:
The solution is provided on the link below
https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet
POC:
Screenshot attached.
Screenshot from 2020-10-15 18-42-47
Regards
Mahendra Purbia

@mahendra9661 Did you make any pull request for this issue as I can't see it or anything that I may have missed it reg this convo.?

@Mah3Sec any updates?


Deletion of uploaded photos does not occur while device is locked

The automatic deletion of uploaded photos option is not offered if the device is locked when the upload process completes. Consider offering this option at the start of the upload process rather than at the end so we can be sure there is always a user present.

Is there a way it can sustain when refocusing the app, or alert through the lock? I was trying to upload specifically so I can delete the photos and free up space.
I suppose new upload queue would help with that but it feels disjointed.
Perhaps a “yo queue is done and you got some stuff to delete” icon could be there regardless of the alert?


Disable nightly build in pipeline for mgmt sdk

As title, we don't need build mgmt sdk nightly, which will leads to pipeline failures

@dw511214992 Can you elaborate as to why you wont be needing the nightly builds?
For packages that are auto published like Track 1 mgmt plane packages, I understand that there is no need for nightly builds as every PR results in the package being published.
The Track 2 packages will not be having auto publish. This means that there is potential for code to be checked in to the main branch, but not yet published. Having nightly builds help partners with early testing and to be used in smoke tests as well.

Yes, thanks @praveenkuttappan
@qiaozha Please close this issue if you have no more questions

okay, closed. Thanks


[firebase-crashlytics AND firebase-messaging] iOS app crashes upon launch

As the title suggests, after adding crashlytics and/or messaging to an iOS app, it crashes upon launch. This is easy to replicate:

ns create myapp (I chose plain TS)
npm install @nativescript/firebase-core and npm install @nativescript/firebase-crashlytics
add the following to app.ts:

import { firebase } from '@nativescript/firebase-core'
import '@nativescript/firebase-crashlytics';
await firebase().initializeApp();

update webpack.config.js to fix build issue:

webpack.mergeWebpack({resolve: {
	fallback: {
            'fs': false,
            'path': false,
            'path-browserify': false,
	}
}})

ns run ios --> simulator boots and crashes without error message

Hi @rdlauer have you downloaded the GoogleService-Info.plist from firebase and placed inside App_Resources/iOS by chance?

Yeah I did that as well (forgot to add it to my list of steps above!)

Do you happen to have the stack you see by chance? It could just be order of operations in how the init is setup as I don't see that here.
For example, with this setup I don't see what's described:
import { Application, ApplicationEventData } from '@nativescript/core';
import { firebase } from '@nativescript/firebase-core';
import '@nativescript/firebase-crashlytics';

Application.on(Application.launchEvent, async (args: ApplicationEventData) => {
  await firebase().initializeApp().then(async() => {
    const crashlytics = firebase().crashlytics();

    if (crashlytics.checkForUnsentReports()) {
      crashlytics.log('Sending unsent crash reports...');
      crashlytics.sendUnsentReports();
    }
  });

// bootstrap app, eg:
runNativeScriptAngularApp({
  appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule)
});

Hi @NathanWalker - thanks again for helping out here. I just created a new app and used your init code above...and it works! I've got a few notes here on little doc updates and will wrap these up in a PR soon.
FYI I DID still have to update the webpack config due to this error:
ERROR in ./node_modules/source-map/lib/read-wasm.js 30:15-30
Module not found: Error: Can't resolve 'path' in '/Users/roblauer/Documents/apps/fbtest/node_modules/source-map/lib'

If get a chance later, sharing the package.json would be interesting to see if something in there leads to the config issue (have not seen that before - using node 20.10.0 here).

Yeah no problem. I'm on node 20.11.
{
  "name": "myapp",
  "main": "app/app.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript-community/ui-material-floatingactionbutton": "^7.2.29",
    "@nativescript-community/ui-pulltorefresh": "^2.5.3",
    "@nativescript/background-http": "^6.0.0",
    "@nativescript/camera": "^5.1.1",
    "@nativescript/core": "~8.6.2",
    "@nativescript/datetimepicker": "^2.1.13",
    "@nativescript/geolocation": "^8.3.1",
    "@nativescript/haptics": "^3.0.2",
    "@nativescript/imagepicker": "^3.0.1",
    "@nativescript/iqkeyboardmanager": "^2.1.1",
    "@nativescript/theme": "~3.0.2",
    "@nstudio/nativescript-fluid-segmented-bar": "^1.0.2",
    "@nstudio/nativescript-loading-indicator": "^4.3.4",
    "@triniwiz/nativescript-image-cache-it": "^7.4.0",
    "@triniwiz/nativescript-star-ratings": "^2.0.3",
    "email-validator": "^2.0.4",
    "just-clone": "^6.2.0",
    "libphonenumber-js": "^1.10.53",
    "nativescript-carousel": "^7.0.1",
    "nativescript-drop-down": "^6.0.2",
    "throttle-debounce": "^5.0.0"
  },
  "devDependencies": {
    "@nativescript/android": "8.6.2",
    "@nativescript/ios": "8.6.3",
    "@nativescript/types": "~8.6.1",
    "@nativescript/webpack": "~5.0.18",
    "@types/throttle-debounce": "^5.0.2",
    "typescript": "~5.3.3"
  }
}


TRG 2.04 - repository name must be productname without prefix or suffix

repository must contain the product name without prefix or suffix helm-chart
or as name of the application itself like your released product "daps-server" https://github.com/eclipse-tractusx/daps-helm-chart/tree/main/charts/daps-server

It was created by the eclipse contributer long back.
If required it can be changed

@FaGru3n this is actually it. it is a / the helm chart.


Global: Add sorting to DMPs, Storage, Datasets and other entities by ID to preserve order

Description

Feature / Functionality
What does this PR do?
Add sorting by ID for DMPs (getAll and get for logged in user), Storages, Datasets, Contributors and Costs within a DMP.
closes GH-293

Hey, this works fine, but wouldnt it be simpler to do the sorting in the Repo classes. The you dont need to distribute the code over Services and Mappers. For example in DMPRepo:
public List<Dmp> getAll() {
    return listAll(Sort.by("id"));
  }

Read here for more info.


Xdebug

Would you be at all opposed to including Xdebug in the mix as well?

Any update on this? I could have a crack at it, or are we waiting on other changes to be merged?

@JacobDorman no update. Any work on it would be appreciated since I'm not too familiar with it. I don't think there's any ongoing work which was interfere with this.

Closed via https://github.com/roots/bedrock-ansible/pull/176


Proposal: getSnippets

Change
def getSnippets(self, snippet_len, center_frames, channel_ids=None):

to
def getSnippets(self, snippet_len_before, snippet_len_after, start_frames, channel_ids=None):

or something in order to accommodate asymmetric snippets.

@magland I agree

@colehurwitz31 . This should be done soon so that we don't need to adjust too much of the tools that use the API.

@colehurwitz31. I assigned this to myself.

I can do this now and upload it with my epoch changes unless you are already done

I haven't worked on it yet, so you can go ahead. Thx!


Mouse cursor offset is misaligned in Wayland applications

Windows build number:
Microsoft Windows [Version 10.0.19043.2364]
Your Distribution version:
Ubuntu 22.10
Your WSL versions:
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19043.2364
Steps to reproduce:
Hello, I've recently started using WSLg on Windows 10 and have noticed a peculiar problem with all Wayland-enabled applications (epiphany, for instance). I don't know what the proper technical terms are, but, essentially, the visual position of the mouse cursor does not match the actual click point. The click is registered approximately 2-3 millimetres to the left of the cursor. X11 applications do not exhibit this problem, but are very blurry.
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
I expect the cursor and click positions to match. For instance, in this example:

The caret should be placed in front of "v" rather than "a".
Actual behavior:
The cursor offset is off.

@v-chernyshev, thanks for reporting the issue. can you try weston-clickdot, which is one of Wayland demo applications, from weston package (sudo apt install weston, on Ubuntu), and do you see mouse is still offset? thanks!

@v-chernyshev, now I'm able to reproduce the issue you have been seeing, does your monitor have more than 100% scaling (HI-DPI) ? thanks!

Hi @hideyukn88, thank you for investigating the report! I indeed tried WSLg on a HI-DPI system. A 15" Lenovo ThinkPad X1 Extreme Gen 3 laptop to be precise, with 250% scaling.

Have you tried this .wslgconfig yet? I just installed epiphany and everything seems to line up with the mouse. How websites look, on the other hand... now that's an entirely different matter.
[system-distro-env]
WESTON_RDP_DISABLE_FRACTIONAL_HI_DPI_SCALING=false
WESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR=100

For me both of these variables needed to be setup for it to work. however.


Highlights Card design updated

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
closed #602
Description
[Please include a brief description of the changes or features added]

made new card design with hover effect
added "Learn more" button
modified the HTML code
added CSS components

Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes]
BEFORE

AFTER

ON HOVER DESCRIPTION IS SHOWN

ADDED A BUTTON WITH HOVER EFFECT

Checklist:

[X] I have performed a self-review of my code
[X] I have read and followed the Contribution Guidelines.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.

Additional context:
[Include any additional information or context that might be helpful for reviewers.]
N.B: I am a GSSOC Contributor for 2024

please check this @khushi-joshi-05

solve conflicts.

Solved, please check


Lack of badge for namespaces icon

Describe the bug
I'd like to show problems with namespaces in a tree. Unfortunately, it seems that the namespaces icon doesn't support badging. Other options like changing color are not accessible.
How to reproduce
Try to add badge to a namespace icon.
Steps to reproduce the behavior:
Expected behavior
I expect to be
Versions
Clarity project:

[ ] Clarity Core
[ *] Clarity Angular/UI

Clarity version:

[ ] v3.x
[ ] v4.x
[* ] v5.x

Framework:

[ *] Angular
[ ] React
[ ] Vue
[ ] Other:

Framework version:
ie: Angular 11
Device:
All
Additional notes
If you have a jira project, I can open it there, too?

@narnaudov-1
Not all the icons have badges. I will ping @lil-kim to see if badges could be added to this one.

I added the badges:
namespace icon w badges.zip

Hello, this repository has been archived. If your issue still exists, please recreate the issue in one of the new repositories:

Clarity Core
Clarity Angular


On Chrome, in .input-group-sm, addon is slightly taller than .form-control

Confirmed in OS X Chrome.
Doesn't repro in Safari 9 or Firefox.
IE has different, worse problems (#18083) which probably have a different cause.

I believe I fixed this with #19121. Looks good on my end.

:+1:


Tidied up the code

Hey there!
I want to contribute by making some minor changes to the code.
The list below covers the changes I made:

fixed import order and removed unused imports
removed white space and trailing space
fixed spacing between equal signs

Overall, my intentions were to make the code comply more towards PEP8

@superdiana Could you please let me know why this PR was closed? I'd be more than happy to fix it, if there is something wrong with the changes I have made.

@sdushantha Hello!, this was an honest mistake. I reopened the PR again and will review it one more time and provide feedback. Thanks for your contribution and happy hacking

I reopened this PR but this doesn't add value to the project, perhaps a linter GitHub action along with this would be helpful. If you want to contribute

@superdiana I have added a linter GitHub action.
b32543b and 937bfcb should have been in the same commit, so I squashed them.
Let me know what you think about the changes I have made :)


⚠ Bofrost.de has degraded performance

In 8fcfe07, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1408 ms

Resolved: Bofrost.de performance has improved in d2f046a after 24 minutes.


Star Wars Revised RPG: Bugfix

Bug fixes:
Replaced URL for logo from personal GitHub to new roll20 GitHub, as per forum directives. Fixed cut and paste error on Appraise skill. Fixed half rank issue for class skills, as half ranks should not exist for class skills, with sheetworker which rounds down class skills.

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[x] I have followed the Character Sheets Standards when building this sheet.

[ ] I have authorization from the game's publisher to make this an official sheet on Roll20 with their name attached.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description
Bug Fixes:

As per Forum suggestions for future image logo URLs, the last update had the image URL referencing my personal GitHub and this URL points to the image uploaded to Roll20's GitHub.
Fixed cut-and-paste error for Appraise skill.
Fixed half rank issue for class skills, as half ranks should not exist for class skills, with sheetworker changes to round down class skills to a whole number.

Character Sheet Info Roll20 Internal Use only.


Create alphaday-2.md

Milestone Delivery Checklist

[x] The milestone-delivery-template.md has been copied and updated.
[x] The invoice form has been filled out for this milestone.
[x] This pull request is being made by the same account as the accepted application.
[x] In case of acceptance, the payment will be transferred to the EOS account name provided in the application.
[x] The delivery is according to the Guidelines for Milestone Deliverables.

Link to the application pull request: https://github.com/eosnetworkfoundation/grant-framework/pull/XXX < please fill this in with the PR number of your application.

Hello,
Are there any updates on the above yet? We'd appreciate any feedback.
Please let me know if anything is required.
Thank you


BUG: Report TOC with many items has last few invisible

From a long report in MNE-BIDS-Pipeline, there are three items in the TOC that cannot be seen here:

I'll try to replicate soon with sample and fix unless someone else beats me to it.

... can be seen in Chrome on Linux for me at least in for example:
https://mne.tools/mne-bids-pipeline/stable/examples/ds000248_base/sub-01_task-audiovisual_report.html#Raw__maxwell_filtered___run__01_
@hoechenberger if you have any immediate ideas let me know!

Nevermind, I think I figured it out!


Question about metadatata

Where can we find the definitions of 'topDownTransformation', 'topDownViewAngle', 'videoOrientation' included in "metadata.t7", so that we could attempt to run FloorNet on data that we acquire on our own?

Do we correctly understand from issue #4  that 'topDownViewAngle' is a rotation angle about the Z' axis?
Do we correctly infer that 'videoOrientation' might take valuies 1 or 2 regarding if the video is in, respectively, landscape or portrait orientation?
What about the topDownTransformation? Where is the information that it contains?

Accidental duplicate due to github server issues


Switch to macos-12

Canary tests in #109 are failing on environment startup. This PR tries to fix CI issues.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (8203cf4) to head (7b285b4).

Additional details and impacted files

Oh, ok, it was the conda call while using micromamba.


PKG-15 not detected

File with mimetype in manifest nto detect as PGK-15
Testing D:\ODS1\TestCorpusV2\PKG-15\MimeTypeInManfest.ods
APP-1: [INFO] Validating D:\ODS1\TestCorpusV2\PKG-15\MimeTypeInManfest.ods.
APP-4: [INFO] Validation report for D:\ODS1\TestCorpusV2\PKG-15\MimeTypeInManfest.ods.
DOC-3: mimetype [INFO] OpenDocument MIMETYPE application/vnd.oasis.opendocument.spreadsheet detected
PKG-16: META-INF\manifest.xml [ERROR] The manifest SHALL contain an entry for every file in the package, manifest file entry mimetype.xml has no corresponding zip entry.
NOT VALID, 1 errors, 0 warnings and 1 info messages.

This error is caused by a problem with the test corpus file, see https://github.com/dewhattens/TestCorpusv1/issues/6 for details.


[scripts] Updating to latest versions of RushStack tooling

This tooling update captures the recent support for TypeAliases. However, it also adds an example field to the YML output that the OPS schema does not support. This PR includes postprocessor changes to remove that field.

Docs Build status updates of commit 1bd3831:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/docs-ref-autogen/excel/excelscript.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.rangevalue.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/toc.yml
:white_check_mark:Succeeded
View (office-scripts)

generate-docs/api-extractor-inputs-excel/tsdoc-metadata.json
:white_check_mark:Succeeded

generate-docs/json/excel/ExcelScript.api.json
:white_check_mark:Succeeded

generate-docs/package-lock.json
:white_check_mark:Succeeded

generate-docs/package.json
:white_check_mark:Succeeded

generate-docs/scripts/postprocessor.ts
:white_check_mark:Succeeded

generate-docs/tools/API Coverage Report.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Implementation of DatabaseHandler

@kanekin Can you review the code for the DatabaseHandler? Thanks

@excaliburnan @josdejong @Tubyhes
code review is done. Approved.


[WIP] Implement better EntityPath

Motivation
Previously there's EntityPath in bevy_animation which is just a Vec<Name> to refer to an entity for animation.
I was trying to work on something else and thought that EntityPath could actually its own thing for general usages in Bevy. Inspired by Godot's NodePath.

This could increase hierarchy ergonomics and useful when Bevy's editor arrive, as it can be an intuitive  and simple way to find entities in the hierarchy.

UI is heavily hierarchical and would be one step simpler with EntityPath. You can refer to them by path (like in Godot!)

EntityPath could be used when you don't know the entity id ahead of time.

There's other solution such as marker components but marker is in the world context which can collide when there are multiple scenes, while EntityPath can be relative to the entity and the scene.

I want to implement the Godot's unique name feature too but seems like this should be a separated PR.
I'm working on this in another personal repository to keep my RA sane and also in case this is not merge and can be a mod crate.
Objective
Adds EntityPath that will operates on the Name component with additional enum variant.
EntityPath can:

Find a child via Name component.
Find the parent.
Find an entity relative to scene's root.
Find an entity relative to world's root (or an entity that doesn't have a parent).
Add system param for path

As a heads up, I'm working on "new scene system" stuff right now and I'd very much like to support EntityPath scenarios like this:
#[derive(Component, Construct)]
struct SomeComponent {
  #[construct]
  entity: Entity,
}

fn spawn() -> Bsn {
  bsn! {
    SomeComponent  { entity: @"../../SomeEntityName" }
  }
}

I think I'd like to separate the "path from scene-root" stuff from this pull request. This would require additional resources or component storing scene metadata/context. (Also working on it in another crate)


Fix furnace test

After #342 the furnace test is improved but not perfect.
Before

After

https://blog.selfshadow.com/2018/08/05/multi-faceted-part-3/
https://github.com/DassaultSystemes-Technology/dspbr-pt/blob/e7cfa6e9aab2b99065a90694e1f58564d675c1a4/packages/lib/shader/bsdfs/microfacet.glsl#L113-L136


update modules to more performant versions

Change async to neo-async, underscore -> lodash, update bson and coffee-script versions, add iojs to test suite, bump version to 1.0.0
I don't know whether this is something you would be willing to merge, since I did a lot of opinionated changes, but one important thing is bumping bson dep so that it works with iojs. For now the PR will be like that

https://github.com/dropbox/amqp-coffee/pull/33 bumps bson and adds iojs to the test suite.  Im not ready to switch to neo-async or lodash.   Ill be back in the office in 2 weeks and will take a closer look at both of them then, and untill then I will leave this open.  Thanks for all the work!


[src/os/unix/udsocket/{ancillary.rs,util.rs}] Casts to fix build; use non-namespaced size_of

Now builds without error on macOS. Haven't tested on other OSs (might need conditional casting).

Fixed those a while back myself, and the old ancillary.rs has since been removed, so I'm gonna close this.


Tslint

We've starting using typescript in some angular 2 projects and we are really missing hound to help us maintain a nice code.

This adds the ts lint with a base configuration.
Also modifies the way the config files are written to disc just before executing the linter. No the each linter can define wich kind of serialization will do before running the linter.

There is other PR in https://github.com/houndci/hound/pull/1164 for the jobs scheduling.

I can wait to see how are you going to remove the default configurations from hound.
Also let me know to squash the commits...

I've updated the PR with the latest from master and with support for no config from https://github.com/houndci/linters/pull/64

Thanks for this @blackjid!


security: secure boot on imx

Succintly describe the yocto configuration and boot on imx8mm
Signed-off-by: Jorge Ramirez-Ortiz<EMAIL_ADDRESS>

Docs for 03a5638e1ba35e7ee8536189aa8f807809a0fcce are browesable at: https://ci.foundries.io/projects/fio-docs/builds/712/docs/artifacts/html/index.html

@ldts If you could rebase this on master after I've merged #138, or just rebase it on that branch, that will fix the link error, since it has been fixed in that PR.

I cherry picked this in #138 for convenience. cdbf33e

thanks @MatthewCroughan !


disable Verdin AM62 Watchdog and revert fs-verity for release

During release process we've re-enabled AM62 Watchdog and merged new FS-Verity features, when we should have waited. The Kernel patch that fixes this issue is not present in the release, so we saw the reboot issues again.
And since we need to revert the WD, I've also reverted all the FS-Verity commits, so we build a new image with the same features that we built the others.

@EdTheBearded Have you identified anything in this set of verity-related commits being reverted that would impact the non-secboot image? If there's anything I'd say it's a bug...

no, nothing like that. but you're right, this shouldn't really affect anything, so we're good.

@jsrc27 think we could merge?


Onedrive Issue: files/directories ending with word "drive" getting quota error

Output of rclone version
./rclone --version
rclone v1.44

os/arch: windows/amd64
go version: go1.11

Describe the issue
Details to reproduce, etc:
https://forum.rclone.org/t/onedrive-could-not-find-a-property-named-quota-on-type-onedrive-item/7403

Here is a minimal reproduction.  @Cnly what do you think?
  mkdir -p /tmp/odtest/adrive
  echo hello > odtest/adrive/test.txt
  rclone copy -vv --dump bodies /tmp/odtest onedriveg:test --retries 1 2>&1 | tee /tmp/onedrive.log

With the relevant log being
2018/11/03 16:49:46 DEBUG : HTTP REQUEST (req 0xc0004a2200)
2018/11/03 16:49:46 DEBUG : GET /v1.0/drives/71a96798e7b1d253/root:/test/adrive HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.44-036-g1f05d5bf-beta
Authorization: XXXX
Accept-Encoding: gzip

2018/11/03 16:49:46 DEBUG : HTTP RESPONSE (req 0xc0004a2200)
2018/11/03 16:49:46 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Cache-Control: private
Client-Request-Id: 7001728a-4c8d-48d6-96cc-3dfc31de0d18
Content-Type: application/json
Date: Sat, 03 Nov 2018 16:49:46 GMT
Duration: 195.3003
Request-Id: 7001728a-4c8d-48d6-96cc-3dfc31de0d18
Strict-Transport-Security: max-age=31536000
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"UK South","Slice":"SliceC","Ring":"5","ScaleUnit":"002","Host":"AGSFE_IN_3","ADSiteName":"UKS"}}

10a
{
  "error": {
    "code": "generalException",
    "message": "Could not find a property named 'quota' on type 'oneDrive.item'.",
    "innerError": {
      "request-id": "7001728a-4c8d-48d6-96cc-3dfc31de0d18",
      "date": "2018-11-03T16:49:46"
    }
  }
}
0

Just got some time to look into this problem... I did some test and could confirm this. This problem only seems to happen with OneDrive Personal. I was unable to reproduce it on OD for Business and from @JRman your Drive ID format included in your log I suppose you're using OD for Personal as well. Am I correct?
I remembered we could use both /root:/path/to/file and /root:/path/to/file: to address an item by path, although the docs seem to mention the latter only when there's some suffix, e.g. /root:/path/to/file:/createUploadSession. I tried adding the trailing colon and that fixed the problem.
I've created a test version here. Could you help test it? Thanks!

Yes, I am using OD Personal.  I tried the patched version and everything is now working correctly.
My syncs are all running clean now (windows version FYI)
Thanks!

I have created an upstream issue and let's see if this can be fixed by OneDrive.

This happens to me, too. Exactly the same.

A similar thing happened to me. The name of a folder on OneDrive Personal "Old_drive" gave me the same "Could not find a property named 'quota' on type 'oneDrive.item'." error, and no files would sync. I changed the name of the remote folder to "Old_drv", and the sync went without errors.

I've merged the workaround into master. Please feel free to re-open if you're still seeing problems.


Passing multiple dirs

I'm using Azure DevOps Pipeline task and I would like to pass 2 dirs, how can I do that?

i am having the same question, were you able to resolve it?


SAK-41553 Adding "To:" field in new folders created in Private Messages

@danielmerino I've introduced a change in #6722 for sorting messages in folders, I'm gonna approve and merge this but I'd like you to test the sorting functionality in the sent and the custom folders. Makes sense?

@mpellicer Thanks, I will verify both PRs ASAP.

The feature I introduced in #6722 looks broken in custom folders.

@danielmerino See #6738


Update googletest to latest.

This unfortunately also means, that it pulls in a dependency to RE2.
And this RE2 does not work with absl::string_view (unless
absl::string_view is a typedef for std::string_view). So
had to patch RE2 to accept that string-view (will attempt to
upstream that to RE2).
While at it, also update absl to latest LTS.
Signed-off-by: Henner Zeller<EMAIL_ADDRESS>

Codecov Report

Merging #1379 (eafceb1) into master (80b07f9) will not change coverage.
The diff coverage is n/a.

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

@@           Coverage Diff           @@
##           master    #1379   +/-   ##
=======================================
  Coverage   92.90%   92.90%
=======================================
  Files         340      340
  Lines       23832    23832
=======================================
  Hits        22141    22141
  Misses       1691     1691

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Vulnerability in SRP

Sorry to write this in public issues, but I did not find how submit a vulnerability report!
First of all, Happy New Year !
We would like to report a vulnerability of the SRP implementation (PAL/Crypto/OpenSSL/HAPOpenSSL.c)
Indeed, the implementation relies on OpenSSL Big Number implementations.
More importantly, it relies on the OpenSSL function BN_mod_exp without setting the BN_FLG_CONSTTIME.
The consequence is that the function BN_mod_exp (in OpenSSL crypto/bn/bn_exp.c) calls the function BN_mod_exp_mont_word (in OpenSSL crypto/bn/bn_exp.c)
Roughly speaking, the vulnerability is caused by the nature non constant-time of the function BN_mod_exp_mont_word.
The attack was tested on OpenSSL 1.1.1h, but should work on other versions too.
We show the attack by exploiting SRP.
By design, SRP is supposed to resist offline dictionary attacks. However, we show that such attacks are still possible to recover the used password efficiently, by exploiting some data leakage during an insecure modular exponentiation.
A PoC is available here (it shows SRP in OpenSSL, but it works perfectly fine on Erlang also): https://gitlab.inria.fr/ddealmei/poc-openssl-srp
We contacted OpenSSL, and they are fixing only the part concerning OpenSSL in crypto/srp/srp_lib.c.
Apple HomeKit should include its own fix by setting the flag BN_FLG_CONSTTIME on the exponent variable of bn_mod_exp.
We will be glad to provide further information if needed.
This is my email if you would like more private discussion<EMAIL_ADDRESS>Best regards,
Mohamed SABT, Associate Professor at the University of Rennes 1 and Researcher at IRISA in France

Thanks for reporting this issue @sabtmoha.

Thanks for reporting this issue @sabtmoha.

Do you have any intention to patch it?
I would like to publish an article about this vulnerability.

Do you have any intention to patch it?
I would like to publish an article about this vulnerability.

There will be a patch. link the article when you're finished? Great discussion topic.

There will be a patch. link the article when you're finished? Great discussion topic.

Do you have any intention to patch it?
I would like to publish an article about this vulnerability.

Yes and PR welcome.

Do you have any intention to patch it?
I would like to publish an article about this vulnerability.

Yes and PR welcome.

I will start working on the patch next week.
Thank you for your interest.

I will start working on the patch next week.
Thank you for your interest.


_static: load versionwarning-data.json from any page

This commit will allow versionwarning to load versionwarning-data.json
from any documentation page.
Signed-off-by: André Martins<EMAIL_ADDRESS>

Thanks @humitos can you make a new release?

1.1.2 released ;)
Enjoy and let me know if everything works as you expect.


Agents bug with GET and POST API chain [BUG]

Hi guys,
There is an issue with agents (except 'Conversational Agent') when using GET and POST API chain.
For exemple with the GET API chain, the agent send the call url in the chat just before his response like here:

The thing that is even weirder is that in langsmith, langfuse or lunary that url doesnt appear anywhere in the response.
So I assume its caused by the 'Retrieval' function of most of the agents, that's why it works with Conversational Agent.
But for my case, I need the OpenAI Tool Agent, but same issue with it.
By the way, the issue also happen when I check "return direct" on the API chain node.
And if I don't check it, it makes 3 responses in the chat : the first is the url (or json structure with POST), the second is the API chain answer and the third is the agent response.
I don't know if anyone seen this before and found a work around.
Could it be possible to have an option to cut the 'Retrieval' function when we use agents and api chain?
Thanks guys, have a great day

Any chance it can be fixed in the next release?
Its quite a big issue for a lot de cases...
There is surely an issue in the code itself since I tested the API and it doesnt return the URL neither, only the text response from the API node, so there is something to be fixed in the code for sure.

hey @JDAR-BP to understand better, is your goal to have the LLM automatically figure out which API to call, and also able to have normal conversation whenever API call is not needed?

Heyy @HenryHengZJ thanks for the reply.
Basically yes, this is what I want to do.
As I said, the Conversationnal agent is able to do it but the thing is that this agent is not really good when it comes to work with chat history and OpenAI Tool Agent is the best to work with tools anyway.
What do you think about it?

What if you try combining OpenAPIChain with ChainTool to OpenAIToolAgent?

openaitool Chatflow.json
Klarana OpenAPI spec I was using - https://www.klarna.com/us/shopping/public/openai/v0/api-docs/


MINOR: More graceful handling of buffers that are too small in Record's isValid and ensureValid

Also add tests and make Crc32.update perform the same argument checks as
java.util.zip.CRC32.

LGTM. Looks nice :)

ah, sorry - didn't notice the merge conflict. Rebase and ping me?

Thanks for the review @gwenshap, rebased the PR.

oops, missed the update. sorry for delay. LGTM and merging.


[WIP]Improve OAP extendibility

The reason I am doing this refactoring is, making the extendibility OAP server better.
The core change is ** REMOVING Scope enum type restrictions**. As we all known, Enum in Java could be inherited, when could anyone wants to create a new scope, the only choice only changes the source codes, include enum Scope and generation-tool.
So I am doing following changes

Make Scope(name-id) declaration as annotation, like this @ScopeDeclaration(id = SERVICE, name = "Service"). This annotation is Repeatable, so you could declare any new scope in any class in org.apache.skywalking package.
Scope enum removed.
Scope in @StorageEntity has been changed to sourceScopeId.

Also, I do some changes for OAL generation-tool.

Support the above changes.
TODO in this pr, make dispatcher template extendable too.

@peng-yongsheng The register inventory entity ID(s) keep same. I think this should be good upgrade.

7 : NetworkAddress
14 : SERVICE_INVENTORY
15 : SERVICE_INSTANCE_INVENTORY
16 : ENDPOINT_INVENTORY

Also, in this pull request, I fixed a bug when query endpoint in H2/MySQL. Wrong SQL statement.

My tests on ElasticSearch, H2 and MySQL are done and passed.
Request code review

@peng-yongsheng only for code review
@JaredTan95 for MySQL and TiDB tests
@ascrutae for Cluster tests
@hanahmily for SkyWalking on Istio e2e test

@liuhaoyang This the copy of new source/scope extension document, which is already included in this PR too. Have fun in building new CLR metric.
Source and Scope extension for new metric
From OAL scope introduction, you should already have understood what the scope is.
At here, as you want to do more extension, you need understand deeper, which is the Source.
Source and Scope are binding concepts. Scope declare the id(int) and name, Source declare the attributes.
Please follow these steps to create a new Source and Scope.

In the OAP core module, it provide SourceReceiver internal service.

public interface SourceReceiver extends Service {
    void receive(Source source);
}

All analysis data must be a org.apache.skywalking.oap.server.core.source.Source,
tagged by @SourceType annotation,
so it could be supported by OAL script and OAP core.

Such as existed source, Service.
@SourceType
public class Service extends Source {
    @Override public int scope() {
        return DefaultScopeDefine.SERVICE;
    }

    @Override public String getEntityId() {
        return String.valueOf(id);
    }

    @Getter @Setter private int id;
    @Getter @Setter private String name;
    @Getter @Setter private String serviceInstanceName;
    @Getter @Setter private String endpointName;
    @Getter @Setter private int latency;
    @Getter @Setter private boolean status;
    @Getter @Setter private int responseCode;
    @Getter @Setter private RequestType type;
}

The scope() method in Source, returns an ID, which is not a random number. This ID need to be declared through
@ScopeDeclaration annotation. This annotation could be used in any class in org.apache.skywalking package.
But just for code style, if this scope is provided in our ASF official repo, we recommend and ask you to add it at
org.apache.skywalking.oap.server.core.source.DefaultScopeDefine, like the existing ones.

@ScopeDeclaration(id = ALL, name = "All")
@ScopeDeclaration(id = SERVICE, name = "Service")
@ScopeDeclaration(id = SERVICE_INSTANCE, name = "ServiceInstance")
@ScopeDeclaration(id = ENDPOINT, name = "Endpoint")
@ScopeDeclaration(id = SERVICE_RELATION, name = "ServiceRelation")
@ScopeDeclaration(id = SERVICE_INSTANCE_RELATION, name = "ServiceInstanceRelation")
@ScopeDeclaration(id = ENDPOINT_RELATION, name = "EndpointRelation")
@ScopeDeclaration(id = NETWORK_ADDRESS, name = "NetworkAddress")
@ScopeDeclaration(id = SERVICE_INSTANCE_JVM_CPU, name = "ServiceInstanceJVMCPU")
@ScopeDeclaration(id = SERVICE_INSTANCE_JVM_MEMORY, name = "ServiceInstanceJVMMemory")
@ScopeDeclaration(id = SERVICE_INSTANCE_JVM_MEMORY_POOL, name = "ServiceInstanceJVMMemoryPool")
@ScopeDeclaration(id = SERVICE_INSTANCE_JVM_GC, name = "ServiceInstanceJVMGC")
@ScopeDeclaration(id = SEGMENT, name = "Segment")
@ScopeDeclaration(id = ALARM, name = "Alarm")
@ScopeDeclaration(id = SERVICE_INVENTORY, name = "ServiceInventory")
@ScopeDeclaration(id = SERVICE_INSTANCE_INVENTORY, name = "ServiceInstanceInventory")
@ScopeDeclaration(id = ENDPOINT_INVENTORY, name = "EndpointInventory")
@ScopeDeclaration(id = DATABASE_ACCESS, name = "DatabaseAccess")
@ScopeDeclaration(id = DATABASE_SLOW_STATEMENT, name = "DatabaseSlowStatement")
public class DefaultScopeDefine {
    ...
}

The String getEntityId() method in Source, request the return value representing unique entity which the scope related.
Such as,
in this Service scope, the id is service id, which is used in OAL group mechanism.

Add scope name as keyword to oal grammar definition file, OALLexer.g4, which is at antlr4 folder of generate-tool-grammar module.

Add scope name keyword as source in parser definition file, OALParser.g4, which is at same fold of OALLexer.g4.

After you done all of these, you could build a receiver, which do

Get the original data of the metric,
Build the source, send into SourceReceiver.
Write your whole OAL scripts.
Repackage the project.

@peng-yongsheng
I have done

Relocate the @ScopeDeclaration annotation, make it more sense. Also remove the useless @SourceType annotation. And adjust the document for these changes
ScopeDeclaration can be used once for each class only, now.

@wu-sheng It’s really exciting. I added the scope and oal scripts for clr metrics, and generated the database tables as expected.

 Already 3 days, I am going to merge this for avoiding potential conflicts, since this PR changes too many files.
@hanahmily @JaredTan95 Please leave message if you tests passed or have blocks, then we could submit new PR to fix.
Thanks everyone.


Permission Problem

We have properly implemented the paid version of your cordova plugin.but we have a major issue specially with xiomi phones is that we need to enable the location and storage permission manually in the phones rather than automatically.
Kindly suggest me any solution for that phone or any updation required in the plugin for automatically update the location in these phones.

This repo is obsolete.  Look at the readme.
https://github.com/christocracy/cordova-plugin-background-geolocation

The premium repo is here:
https://github.com/transistorsoft/cordova-background-geolocation/issues


Option to remove todos from their original files (move instead of copy)

This plugin is great for my use case and I want to replace Rollover Daily Todos with it.
However, it copies tasks, not move them: thus creating a lot of duplicates.
I can see how it may be intended: to leave a trace of "planned / not done", but for me, I need tasks to move.
Any chance it to be added?
Would you consider my PR if I add this myself?

Currently, I use https://github.com/lumoe/obsidian-rollover-daily-todos plugin and it's the same, but lacks feature to collect todos from the past, just last day.
However, they have this option:

@thomasbrezinski any chance? :-)

Hey @neoromantic, I'll take a look at adding this functionality this week.