Re-work tests to use Jest and not mockery and mock-fs

Fixes #118
Because mock-fs creates a fake Filesystem in memory I had to do a lot of changes to core.spec.js to re-work both the mocking and verification to make use of Jest spies instead.

Damn and looks like local config setup for Node Cache is also causing conflicts. I'll get on fixing this tomorrow with a clear head

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

Comparison is base (16be049) 97.65% compared to head (3ed5b46) 90.54%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #119      +/-   ##
==========================================
- Coverage   97.65%   90.54%   -7.11%
==========================================
  Files          32       27       -5
  Lines        1362      582     -780
  Branches        0      163     +163
==========================================
- Hits         1330      527     -803
- Misses         32       45      +13
- Partials        0       10      +10

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

I was trying to work out why it failed but didn't have any output, and then saw the --silent 😅

Heh - yeah, there was a really weird bug in the mocking of gitSemverTags for how the callback was working 🙈
And because of some weirdness in clearing out the stderr logs, some of the tests failed due to earlier tests spitting something naff into the logs

I know this isn't passing yet, but it's looking really nice - it seems like a clear readability improvement to me.

Thanks, I feel like I'm inching towards getting git tests working, thought doing core.spec would have been the hardest, but run into a subtle difference between looking at stdout.error compared to spying on console (in that console.warn ends up in stdouterror which threw me off for a bit when trying to look in console.error calls for certain logs)

Awesome! I’ll review this evening (in about 8 hours) and we can get this in. Thank you so much!

Awesome - sounds like my morning will roughly align with your evening 👍

Removed the upper limit and now run tests always against the current lts and latest versions published by node - should give us more heads up of breakages, working versions, with less manual effort to add more checks for specific versions

Right - all assertions/verification are the same or as close as possible to where they were before. And running on LTS (20.9) and Latest (21)
Good to go 👍

fyi I won't be in on this again til Monday, in case you've got any change requests, just to set expectations so you know not to look at it after comments until next week 😄


CUDArray: CUDA back-end not available, using NumPy.

Dear andersbll:
I run command, but it's not work
gtx1080@suker:~/work/src/github.com/andersbll/neural_artistic_style$ python neural_artistic_style.py --subject images/tuebingen.jpg --style images/starry_night.jpg
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/gtx1080/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
CUDArray: CUDA back-end not available, using NumPy.
Traceback (most recent call last):
File "neural_artistic_style.py", line 138, in
run()
File "neural_artistic_style.py", line 99, in run
layers, pixel_mean = vgg_net(args.network, pool_method=args.pool_method)
File "/home/gtx1080/work/src/github.com/andersbll/neural_artistic_style/matconvnet.py", line 27, in vgg_net
img_mean = matconvnet['meta'][0][0][1][0][0][0][0][0]
KeyError: 'meta'
gtx1080@suker:~/work/src/github.com/andersbll/neural_artistic_style$
Machine configuration:
OS............: ubuntu14.04
Memory........: 32G
CPU...........: Intel Core i7-6700K 4.00GHz*8
DisplayCard...: NVIDIA GeForce GTX 1080
Harddisk......: 256G ssd

gtx1080@suker:~$ nvidia-smi
Tue Aug 23 21:17:24 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 367.35                 Driver Version: 367.35                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1080    Off  | 0000:01:00.0      On |                  N/A |
| 34%   35C    P8    10W / 200W |   1306MiB /  8112MiB |      5%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1169    G   /usr/bin/X                                    1014MiB |
|    0      2025    G   compiz                                          59MiB |
|    0      3571    G   unity-control-center                             2MiB |
|    0     10412    G   ...ves-passed-by-fd --v8-snapshot-passed-by-   227MiB |
+-----------------------------------------------------------------------------+
gtx1080@suker:~$
I am looking forward to your reply.
Thanks.

It's way too hard to get CUDA working. Every time I follow the instructions, and every time I have to deal with this error. I also have the same graphics card, the 1080.
Lots of other software has no issues finding my CUDA installation and I even went out of my way each time to add seemingly unnecessary environment variables.
My bashrc now looks like this:
export PATH=$PATH:/usr/local/cuda-8.0/bin:/usr/local/android-studio/bin/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64
export CPATH=$CPATH:/usr/local/cuda-8.0/include
export CUDNN_ENABLED=1
export CUDA_PREFIX=$CUDA_PREFIX:/usr/local/cuda-8.0
and yet I have no results for all that clutter.
Also the dependencies in the README are in opposite order. You need CudArray before you need Deeppy so you'll always run into one failed installation before you get everything up to date unless you can remember to flip the order of the instructions.


Artifact support on non-Windows OS

Artifact tree hash is incorrect on MacOS and Linux (it's failing CI). Possibly try recreating the artifact from a linux system? (the current Artifact.toml was generated from Windows)

This appears to have been fixed by e758844. The artifact was simply recreated from an Ubuntu 18.04 system. The SHA-1 hash didn't change (the SHA256 did) so this may have been some sort of filesystem/permissions error originally.


Added solutions for HW1 and HW2 Qclass2024

Hello @hosen20!
Please re-open this PR from new and updated branch.
Thanks!


[CT-1539] [Feature] Ignore manifest.json files for git grep

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Problem
There are multiple lengthly JSON files that make it harder to scroll through git grep ... results.
Here is an example file that gums up the results when doing a search like this:
git grep "unrendered_config" tests

Although this JSON file is all text, it's all on a single line which makes it behave more like a binary file for text comparison tools.
Solution

Create a .gitattributes file in the root directory
Add a line like tests/functional/artifacts/data/state/*/manifest.json binary (tweak as needed/desired -- e.g., replace binary with -diff or -text -diff)

Then a command like the following will have more consumable results:
$ git grep "unrendered_config" tests

Binary file tests/functional/artifacts/data/state/v4/manifest.json matches
Binary file tests/functional/artifacts/data/state/v5/manifest.json matches
Binary file tests/functional/artifacts/data/state/v6/manifest.json matches
Binary file tests/functional/artifacts/data/state/v7/manifest.json matches
tests/functional/artifacts/expected_manifest.py:                "unrendered_config": unrendered_model_config,
...

Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response

Can we also skip the core/dbt/include/index.html file?

Can we also skip the core/dbt/include/index.html file?

Yeah! Good call @gshank -- added that file name to the description above


[BUG] Modeselect without semantic tags, TLV encoder failure GPF

Reproduction steps
https://github.com/espressif/esp-matter/issues/558
The TLV encoder is not handling the case when Semantic Tag Struct is empty (zero length).
It does work properly when I include a bogus semantic tag.
Bug prevalence
always
GitHub hash of the SDK that was being used
5b4f8004662d00bdb111367fec7d3ea978c23372
Platform
core
Platform Version(s)
No response
Anything else?
No response

when Semantic Tag Struct is empty (zero length)

What does that mean, exactly?  What does your ModeOptionsProvider implementation look like?  What is it returning?
The stacks in https://github.com/espressif/esp-matter/issues/558 seem to have both TLVWriter::WriteData  bits and emberAfLongStringLength bits.. and if it's the WriteData call the issue is len=12, p=0x0.
So chances are, the data being passed to the TLV encoder is garbage, but it's really hard to say without knowing what that data is.  Please provide that information.

I asked the Espressif people to look at in their issue.
In the ESP Platform code, (examples/platform/esp32/mode-support/static-supported-modes-manager.cpp maybe?) when there are no semantic tags, do you build a zero length array and initialize it? If it is not initialized you'd see this error.

examples/platform/esp32/mode-support/static-supported-modes-manager.cpp should only be getting used for the in-tree example apps, I would think....
That said, I have no idea how exactly you are configuing your "no semantic tags" situation or even exactly what code you are running, so...

Is line 133 right for no semantic tags?

Again: is this code even running in your situation?  That said, if it is line 133 is what runs on allocation failure... assuming your new can actually fail without trying to throw an exception.  And returning ModeOptionsProvider(nullptr, nullptr) should just lead to an empty mode list.
If this code is running in your setting, what is semanticTagCount ending up as?  If nonzero, what are the outputs of the ReadConfigValue calls in the the loop?

@jadhavrohit924 Please check

@jonsmirl From https://github.com/espressif/esp-matter/issues/558#issue-1838022033 your SupportedModes array is
[ { mode: 0, label: "Switch", semanticTag: [] } ,     { mode: 1, label: "Dimmer", semanticTag: [] } ,     { mode: 2, label: "Smartbulb", semanticTag: [] } ] right?
And you need empty semanticTags, so the input for the mfg_tool should be in format --supported-modes 0/Switch/1 1/Dimmer/1 2/Smartbulb/1 as mentioned in documents https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#usage

I am using this:
./mfg_tool.py -cn "Test" -v 0xFFF2 -p 0x8001 --pai \
-k ../../connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Key.pem \
-c ../../connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd ../../connectedhomeip/connectedhomeip/credentials/test/certification-declaration/Chip-Test-CD-FFF2-8001.der \
--vendor-name "Lowpan" --product-name "Dimmer" --serial-num "12345678" \
--hw-ver-str "1.0.0" \
--passcode 20202021 --discriminator 3840 \
--fixed-labels "1/name/Main" "2/name/BTN-2" "3/name/BTN-3" "4/name/BTN-4" "5/name/BTN-5" "6/name/BTN-6" "7/name/BTN-7"  "8/name/BTN-8" \
--supported-modes "0/Switch/1" "1/Dimmer/1" "2/Smartbulb/1"

Could you please try using for empty semanticTags? Don’t use "". It should work.
--supported-modes 0/Switch/1 1/Dimmer/1 2/Smartbulb/1

I have changed the script to remove the quotes and rebuilt the partition. But.. Google broke commissioning for me yesterday (attestation failure with the demo certificates again) and I'm trying to fix that right now. Once I fix I can commission the device and test mode setting.
If those quotes is what caused the error, the python code should error out instead of making an invalid partition.
You can try with chip-tool, just do a wild card subscribe from the device. When the wild card gets to mode setting, it faulted.

First, I take back my complaint against Google. Their code was working this time and it unmasked a bug in my code which is now fixed.
Removing the quotes did not change anything.
@jadhavrohit924  @dhrishi  Add the modselect without the semantic tags to a device. Then use chip-tool to create a wildcard subscription to read everything from the device.  You will hit this every time.
I (68639) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000050's Attribute 0x0000FFFC is 0 **********
Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x400588a2  RA      : 0x4208b0e4  SP      : 0x3fcc11d0  GP      : 0x3fc95000
Stack dump detected
0x400588a2: _data_end_btdm_rom in ROM

0x4208b0e4: chip::TLV::TLVWriter::WriteData(unsigned char const*, unsigned long) at /home/jonsmirl/lowpanC3/build/esp-idf/chip/../../../../aosp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/lib/core/TLVWriter.cpp:786
 (inlined by) chip::TLV::TLVWriter::WriteData(unsigned char const*, unsigned long) at /home/jonsmirl/lowpanC3/build/esp-idf/chip/../../../../aosp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/lib/core/TLVWriter.cpp:760

TP      : 0x3fc7a070  T0      : 0x00003f9d  T1      : 0x00000389  T2      : 0xffffffff
S0/FP   : 0x3fcc1430  S1      : 0x0000000c  A0      : 0x3fcd6171  A1      : 0x00000000
A2      : 0x0000000c  A3      : 0x0000000c  A4      : 0x00000000  A5      : 0x00000000
A6      : 0x00000000  A7      : 0xfffffffa  S2      : 0x0000000c  S3      : 0x00000000
S4      : 0x3fcc1444  S5      : 0x3fcc143c  S6      : 0x0000ffff  S7      : 0x00000000
S8      : 0x00000002  S9      : 0x0000ffff  S10     : 0x3c14d000  S11     : 0x42022000
0x42022000: emberAfLongStringLength(unsigned char const*) at /home/jonsmirl/aosp/esp-matter/connectedhomeip/connectedhomeip/third_party/nlio/repo/include/nlio-base.h:151
 (inlined by) GetUnaligned16 at /home/jonsmirl/aosp/esp-matter/connectedhomeip/connectedhomeip/third_party/nlio/repo/include/nlio-base.hpp:145
 (inlined by) GetUnaligned16 at /home/jonsmirl/aosp/esp-matter/connectedhomeip/connectedhomeip/third_party/nlio/repo/include/nlio-byteorder-little.hpp:653
 (inlined by) chip::Encoding::LittleEndian::Get16(unsigned char const*) at /home/jonsmirl/aosp/esp-matter/connectedhomeip/connectedhomeip/src/lib/core/CHIPEncoding.h:312
 (inlined by) emberAfLongStringLength(unsigned char const*) at /home/jonsmirl/aosp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/message.cpp:35

T3      : 0x0000005a  T4      : 0x3fcd616d  T5      : 0x3fcd5de4  T6      : 0x3fcc145c
MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000005  MTVAL   : 0x00000000
0x40380001: _vector_table at ??:?

MHARTID : 0x00000000

Backtrace:

0x400588a2 in ?? ()
#0  0x400588a2 in ?? ()
#1  0x4208b0e4 in chip::TLV::TLVWriter::WriteData (len=12, p=0x0, this=<optimized out>) at ../../../../aosp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/lib/core/TLVWriter.cpp:785
#2  chip::TLV::TLVWriter::WriteData (this=0x3fcc1430, p=<optimized out>, len=<optimized out>) at ../../../../aosp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/lib/core/TLVWriter.cpp:760
#3  0xfffffff9 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
ELF file SHA256: 9e2b9fcdf5f481b9

Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40048b82
0x40048b82: ets_secure_boot_verify_bootloader_with_keys in ROM

I have verified with chip-tool that the fault is on reading attribute 0x2.
The attribute is getting encoded here:
https://github.com/project-chip/connectedhomeip/blob/master/src/app/clusters/mode-select-server/mode-select-server.cpp#L87
It is failing in the call to ReturnErrorOnFailure(encoder.Encode(modeOption));  on the first mode definition.
Is this modeOption variable being passed into Encode() what Encode is expecting?
This code is building the mode list:
https://github.com/project-chip/connectedhomeip/blob/master/examples/platform/esp32/mode-support/static-supported-modes-manager.cpp#L61

I have tried as you asked. My device was never crashed. Here are the steps that I follow.

Generate factory partition

./tools/mfg_tool/mfg_tool.py -cn "My bulb" --vendor-id 0xFFF2 -p 0x8001 --discriminator 3434 --passcode 99663300 --pai \
    -k connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Key.pem \
    -c connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Cert.pem \
    -cd connectedhomeip/connectedhomeip/credentials/test/certification-declaration/Chip-Test-CD-FFF2-8001.der --supported-modes 0/Switch/1 1/Dimmer/1 2/Smartbulb/1

Add mode select as described in https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#build-example
Commission device and read and subscribe to mode-select

./out/host/chip-tool any read-all 0x50,0x50 0xFFFFFFFF 0xFFFFFFFF 1234 1,1

./out/host/chip-tool any subscribe-all 0x50,0x50 0xFFFFFFFF 0xFFFFFFFF 5 10 1234 1,1

Do let me know if I'm missing something. Also provide us what steps you are following.

I found the problem, i was doing InitEndpointArray() at the wrong place in my code. @dhrishi
I find this implementation to be very fragile.

it is pulling in code from examples/platform/esp32  -- shouldn't that code be in the esp-matter project?
This code that I had to add should be hidden in the esp-matter library.

        ModeSelect::StaticSupportedModesManager obj;
        obj.InitEndpointArray(get_count(node));

For example as static initialization on the modeselect cluster.  In my code is it ambiguous when to call it, before matter start? after?  make it a static?


The oracle client implementation doesn't support numeric events

It supports only enum events for  some reason.

The P2P Derivatives oracle implementation does support numerical. I opted for the kormir client because it is more flexible with attestations in a testing environment.
I created https://github.com/bennyhodl/dlcdevkit/issues/23 to allow numerical contracts in ddk-node
A part of the opensats grant is implementing numerical contracts with kormir. No timetable set for that implementation. But it will be supported in the future.

A part of the opensats grant is implementing numerical contracts with kormir.

Interesting, can I have a part of the grant since I already implemented numeric events for kormir: https://github.com/benthecarman/kormir/pull/6? :)

Last change in the P2P Derivatives oracle repo was 2 years ago, and it's not general purpose oracle - it's closely coupled with the data feed.
Kormir seems more suitable for a development kit, since it's pretty flexible and can be used for any type of DLC application.
Also, maybe it makes sense to support bitcoin-s oracle? The repo is still active and bitcoin-s itself is the reference implementation of DLC protocol.

Nice! Beat me to it.
I'm with you on P2P, it was easy to pick off the shelf when I first started the project being able in rust-dlc and then I started migrating to kormir.
I'm with you on bitcoin-s. Would you be open to pick it up?

https://github.com/bennyhodl/dlcdevkit/issues/32


fix: attempt to fix the isAuthenticated method

Current method always returns true: this.status.status is never set thus the function always returns true.
Using the profile is what I found the most intuitive.

Based on @rofe feedback, I have changed the implementation to return status && status !== 401. This breaks several tests and after analysing one of them, I have hard time understanding the overall feature.
sidekick.isAuthenticated() is called as condition for the user related UI element ("user info", "profile switch", "logout"). But you can sign in and not be "authenticated" which is really confusing.
Also, a test like the logout.test.js is testing the logout button but it does not seem to log-in first... Not sure how this could have ever worked.
As the method was always returning true, I think this hides the flows in the concept.
@rofe assuming you have implemented the whole mechanic, I think we should review all of this together.


Winbuild

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

pushed branch winbuild upstream

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Vicuna-13B performs unexpectedly poor on all your evaluations. Did you use delta weights directly without merging?

In your MMLU evaluation, the accuracy of Vicuna is only 24.9%, which is the same as a random guess. This is obviously wrong.
Did you directly use our delta weights (https://huggingface.co/lmsys/vicuna-13b-delta-v1.1) without merging them with the base weights?
If you correctly use our latest weights (https://github.com/lm-sys/FastChat#vicuna-weights), you should get an MMLU accuracy about 52.1 (https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard).

We found there are some mismatches when we merging vicuna-13b-delta-v1.1 with the base weights. We are re-evaluating vicuna-13b-v1.3 and will update the results later. Thank you for your reminder.

We evaluated vicuna-13b-v1.3 on MMLU and the average accuracy is 52.0. Vicuna-13B indeed performs well :). We provide the score of each subject for addition.
Average accuracy 0.290 - abstract_algebra
Average accuracy 0.511 - anatomy
Average accuracy 0.474 - astronomy
Average accuracy 0.540 - business_ethics
Average accuracy 0.517 - clinical_knowledge
Average accuracy 0.562 - college_biology
Average accuracy 0.380 - college_chemistry
Average accuracy 0.480 - college_computer_science
Average accuracy 0.310 - college_mathematics
Average accuracy 0.405 - college_medicine
Average accuracy 0.275 - college_physics
Average accuracy 0.670 - computer_security
Average accuracy 0.387 - conceptual_physics
Average accuracy 0.281 - econometrics
Average accuracy 0.483 - electrical_engineering
Average accuracy 0.275 - elementary_mathematics
Average accuracy 0.365 - formal_logic
Average accuracy 0.290 - global_facts
Average accuracy 0.577 - high_school_biology
Average accuracy 0.424 - high_school_chemistry
Average accuracy 0.540 - high_school_computer_science
Average accuracy 0.685 - high_school_european_history
Average accuracy 0.677 - high_school_geography
Average accuracy 0.767 - high_school_government_and_politics
Average accuracy 0.464 - high_school_macroeconomics
Average accuracy 0.256 - high_school_mathematics
Average accuracy 0.483 - high_school_microeconomics
Average accuracy 0.272 - high_school_physics
Average accuracy 0.714 - high_school_psychology
Average accuracy 0.380 - high_school_statistics
Average accuracy 0.730 - high_school_us_history
Average accuracy 0.713 - high_school_world_history
Average accuracy 0.587 - human_aging
Average accuracy 0.679 - human_sexuality
Average accuracy 0.694 - international_law
Average accuracy 0.611 - jurisprudence
Average accuracy 0.663 - logical_fallacies
Average accuracy 0.429 - machine_learning
Average accuracy 0.709 - management
Average accuracy 0.825 - marketing
Average accuracy 0.580 - medical_genetics
Average accuracy 0.724 - miscellaneous
Average accuracy 0.587 - moral_disputes
Average accuracy 0.257 - moral_scenarios
Average accuracy 0.601 - nutrition
Average accuracy 0.588 - philosophy
Average accuracy 0.583 - prehistory
Average accuracy 0.418 - professional_accounting
Average accuracy 0.425 - professional_law
Average accuracy 0.489 - professional_medicine
Average accuracy 0.542 - professional_psychology
Average accuracy 0.600 - public_relations
Average accuracy 0.616 - security_studies
Average accuracy 0.746 - sociology
Average accuracy 0.740 - us_foreign_policy
Average accuracy 0.464 - virology
Average accuracy 0.789 - world_religions
Average accuracy 0.404 - STEM
Average accuracy 0.495 - humanities
Average accuracy 0.605 - social sciences
Average accuracy 0.584 - other (business, health, misc.)
Average accuracy: 0.520

Thanks for the update!


Fix creditcard validation

Hey @saevarom, could you please let me know in which scenario the validation didn't work so I can try to replicate the error and test the fix?
Thanks.

Yes, I was using the creditcard validator to limit valid cards to Visa and Mastercard. So I have an input like this:
<input data-parsley-required="true" data-parsley-creditcard="visa,mastercard" type="tel" id="cc" className="form-control" placeholder="Creditcard number" />
The line where I changed return to break was causing the credit card detection function to return a null (or undefined, can't remember which) instead of breaking out of the loop and continue to run the rest of the function. The return statement always stops the exectution of the function while the break statement just breaks out of the current loop.
The second thing where I changed c to card[c] was to return the actual value of the item, instead of just the index c. Because when you do for (var c in cards) the c variable is just the index to the current value instead of being the actual value.
Hope this clears it up.

Sævar


crate: add features to switch Error backend

Allows end users to choose between anyhow and eyre.
If using eyre, it is up to the application author to install an eyre reporter themselves.
This is an updated rebase of https://github.com/http-rs/http-types/pull/215, with some notable changes:

No longer does an eyre reporter install.
Is all behind feature flags.

A concern: adding error_anyhow could break people using default-features = false.

Upon slightly further investigation - I think Tide may need to hook into this more manually in it's logger (or in any custom logger). More investigation is needed.


elasticsearch-import.js error: Maximum call stack size exceeded

Hi @matthaywardwebdesign thanks for sharing this.
All the prior steps worked fine up to and including simplify and create elastic index. Any ideas?
node elasticsearch-import.js
/node_modules/mongodb/lib/utils.js:123
    process.nextTick(function() { throw err; });
                                  ^
RangeError: Maximum call stack size exceeded

I reduced the batch count in elasticsearch-import.js from 1,000 to 500 and now seems to load ok

I got it to work by increasing the stack size when starting:
node --stack-size=16000 elasticsearch-import.js
Connected to MongoDB server
...`


fix json decode

@d5 can I get a review on this please?

Looks good. Just curious how stdlib implementation handles this. Have you looked at it?

It looks like go stdlib uses the type provided by the variable into which it is unmarshaling.
So if you specify an int, it’ll unmarshal as int when legal. If the type provided is any it does float64.
tengo has to figure out the correct type by itself.


How to handle statusCode ?

Hello,
This is great example, but I cannot handle error status code, it just run well when statusCode = 200. I have try to add this code and it run well on all statusCode, but it is auto generate file. Did you know, how to handle it ?

Any update ??

Hii @tranvanphay
I have added the failure state in FutureBuilder _buildBody function in main.dart file.
After any single change in that we have to fire the  below commend in our android studio terminal.
flutter packages pub run build_runner build --delete-conflicting-outputs
As we have auto generated file and it will reflect only after fire this command.
let me share that code here.
 FutureBuilder<ResponseData> _buildBody(BuildContext context) {
    final client = ApiClient(Dio(BaseOptions(contentType: "application/json")));
    return FutureBuilder<ResponseData>(
      future: client.getUsers(),
      builder: (context, snapshot) {
        if (snapshot.connectionState == ConnectionState.done) {
          final ResponseData posts = snapshot.data;
          if (posts != null) {
            return _buildListView(context, posts);
          } else {
            return Center(
              child: Container(
                child: Text('No Data'),
              ),
            );
          }
        } else if (snapshot.connectionState == ConnectionState.none) {
          return Center(
            child: Container(
              child: Text('No Data'),
            ),
          );
        } else {
          return Center(
            child: CircularProgressIndicator(),
          );
        }
      },
    );
  }

Please let me know if any regarding to this.
Thanks.

Closing issue due to no response.


'Positive' aspect of level variable in netCDF files via gritas.x is always 'down', regardless of observing system

The vertical units of an instrument belonging to an observing system can be toggled between hPa (pressure levels) and index (channel numbers) without the users knowledge (e.g., when forming yaml to control plotting), provided the variable variables.lev within any netCDF file has its positive aspect set correctly. The correctness of positive is based on line 1961 of<EMAIL_ADDRESS>Regardless of whether a conventional observation or satellite-based observation is considered, the positive aspect is always down.
Line 525 of<EMAIL_ADDRESS>seems to the culprit.

Colin, I am confused: why is this an issue?

No longer an issue.
The change in your open PR #11 achieves the 'hPa'/'1' distinction I was eluding to with this issue. Having this distinction will allow for descending/ascending vertical axes. This issue should close when #11 is merged - I will close it manually if it doesn't.

ok closing now.


"Manage dependencies" should be a separate chapter

<EMAIL_ADDRESS>Currently this chapter is very short and not in-depth, whilst the subject at hand is huge.
We should have a separate chapter for how to manage dependencies, including:

examples of existing community tools
anti-patterns
how it's different than Node dep management
how it's similar to Node dep management

keeping for now - docs coverage of dependency management could be improved for sure

We now have a separate managing dependencies page


Incorrect result for in1d on Apple GPU using jax-metal

Description
Following the build instructions for jax-metal, I was able to get JAX to run on the GPU. When I try to run in1d, the results do not match numpy, though.
In [1]: from jax import numpy as jnp
In [2]: import numpy as np
In [3]: a = jnp.array([123,2,4])
In [4]: b = jnp.array([123,1])
In [5]: jnp.in1d(a,b)
Out[5]: Array([ True,  True,  True], dtype=bool)
In [6]: np.in1d(a,b)
Out[6]: array([ True, False, False])

What jax/jaxlib version are you using?
jax==0.4.11, jaxlib==0.4.10 (from source), jax-metal==0.0.3
Which accelerator(s) are you using?
GPU (Apple M1 Max)
Additional system info
No response
NVIDIA GPU info
No response

@sfc-gh-arozenshteyn , the latest jax-metal 0.0.5 version addresses this issue. Can you please verify ?
https://pypi.org/project/jax-metal/

Hi @kulinseth, I can confirm this is resolved (replacing in1d with isin as the former has been deprecated)


cmd/go: nil pointer dereference when running "go mod tidy" in temp root

What version of Go are you using (go version)?

$ go version
go version go1.18 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1179204110=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I went to create a temporary go.mod file in /tmp to test something. As per  https://golang.org/cl/129063, /<temp-dir>/go.mod is generally ignored - not realising this, I ran go mod tidy and was slightly surprised to see a panic printed.
What did you expect to see?
With Go 1.17 a warning is displayed, which seems reasonable:
$ docker run -it --entrypoint=/bin/sh golang:1.17-alpine
/go # go version
go version go1.17.8 linux/amd64
/go # cd /tmp
/tmp # go mod init tmp
go: creating new go.mod: module tmp
/tmp # go mod tidy
go: warning: ignoring go.mod in system temp root /tmp
go: warning: "all" matched no packages
/tmp # echo $?
0
/tmp #

What did you see instead?
With Go 1.18 the same warning is displayed, but there is also a panic relating to a nil pointer dereference:
$ docker run -it --entrypoint=/bin/sh golang:1.18-alpine
/go # go version
go version go1.18 linux/amd64
/go # cd /tmp
/tmp # go mod init tmp
go: creating new go.mod: module tmp
/tmp # go mod tidy
go: warning: ignoring go.mod in system temp root /tmp
go: warning: "all" matched no packages
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x78846d]

goroutine 1 [running]:
cmd/vendor/golang.org/x/mod/modfile.(*File).AddGoStmt(0x0, {0xc0000a2148, 0x4})
        /usr/local/go/src/cmd/vendor/golang.org/x/mod/modfile/rule.go:928 +0x4d
cmd/go/internal/modload.LoadPackages({0xadc718?, 0xc0000a2000}, {{0x0, 0x0}, 0xc00012dda0, 0x1, {0x0, 0x0}, 0x1, 0x1, ...}, ...)
        /usr/local/go/src/cmd/go/internal/modload/load.go:426 +0x74d
cmd/go/internal/modcmd.runTidy({0xadc718, 0xc0000a2000}, 0xc0000ce408?, {0xc00009c170?, 0x4?, 0x2?})
        /usr/local/go/src/cmd/go/internal/modcmd/tidy.go:114 +0x198
main.invoke(0xdb6380, {0xc00009c170, 0x1, 0x1})
        /usr/local/go/src/cmd/go/main.go:218 +0x2ee
main.main()
        /usr/local/go/src/cmd/go/main.go:175 +0x78e
/tmp # echo $?
2
/tmp #

cc @bcmills @matloob

I have investigated this issue.
In cmd/go/internal/modload/load.go, LoadPackages function fails into a panic due to nil pointer. Adding nil check would solve this issue.
Other mod commands like mod vendor or mod why also use the function, but as a result of if statement, no panics occur with them. This issue would only occur with mod tidy.

Hi all, I am still having this issue with golang 1.20
root@c2b53323c59c:/tmp# pwd
/tmp
root@c2b53323c59c:/tmp# ls
Dockerfile  README.md  conf  go.mod  go.sum  main.go  static
root@c2b53323c59c:/tmp# go version
go version go1.20.1 linux/arm64
root@c2b53323c59c:/tmp# go mod tidy
go: warning: ignoring go.mod in system temp root /tmp
go: warning: "all" matched no packages
go: go.mod file not found in current directory or any parent directory; see 'go help modules'

Hi.
The error is as intended. This issue refers to the failure to generate the error as intended, resulting in panic.

What is a fix for this?


Add a .toml Editor to MetaMorpheus GUI

Some users, like Tim, that use the commandline version want an easy way to make .tomls. Right now he opens the gui, creates a search and kills the search only to get a toml. Maybe we can make a toml editor, that would allow someone to create and store one without doing any search.?

The new GUI will let you right click -> save as .toml. There's no longer a need to run the task just to get the .toml out. So this will be fixed in #1905

thats great i wll tell tim.


ace: Missing installed header ace/Intrusive_List.cpp

Describe the bug
With the latest vcpkg, I have a failure in a library that is using the ace port.
Environment

OS: Windows
Compiler: Visual Studio 16.6

To Reproduce
Steps to reproduce the behavior:

./vcpkg install ace:x64-windows eigen3:x64-windows
Compile yarp https://github.com/robotology/yarp

Or in any case, build some code that includes the ace/Intrusive_List.h installed header.
Expected behavior
I would expect the library to compile correctly.
Failure logs
C:\src\vcpkg_yarp\installed\x64-windows\include\ace/Intrusive_List.h(128,10): fatal error C1083: Cannot open include file: 'ace/Intrusive_List.cpp': No such file or directory [C:\src\yarp\build\src\libYARP_os\src\YARP_os.vcxproj]
  Terminal.cpp
C:\src\vcpkg_yarp\installed\x64-windows\include\ace/Intrusive_List.h(128,10): fatal error C1083: Cannot open include file: 'ace/Intrusive_List.cpp': No such file or directory [C:\src\yarp\build\src\libYARP_os\src\YARP_os.vcxproj]
  TextCarrier.cpp
  ThreadImpl.cpp
C:\src\vcpkg_yarp\installed\x64-windows\include\ace/Intrusive_List.h(128,10): fatal error C1083: Cannot open include file: 'ace/Intrusive_List.cpp': No such file or directory [C:\src\yarp\build\src\libYARP_os\src\YARP_os.vcxproj]
  UdpCarrier.cpp
C:\src\vcpkg_yarp\installed\x64-windows\include\ace/Intrusive_List.h(128,10): fatal error C1083: Cannot open include file: 'ace/Intrusive_List.cpp': No such file or directory [C:\src\yarp\build\src\libYARP_os\src\YARP_os.vcxproj]

Additional context
I saw a few PR related to ACE recently, I do not know if they are related.

cc @jwillemsen

At least in my case, the missing includes are:

ace/Intrusive_List.cpp
ace/Intrusive_List_Node.cpp
ace/String_Base.cpp
and it seems like a regression due to https://github.com/microsoft/vcpkg/pull/11464 .


update to 0.10.0

Includes support for ax 0.3.1 - 0.3.4

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender


MINOR: Enhance error message in KafkaProducer#throwIfInvalidGroupMetadata

The error message in KafkaProducer#throwIfInvalidGroupMetadata is a bit implicit to me. Hope this PR could make it better. Feel free to close this one if you think it is not necessary. Thanks !
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

AC, gentle ping @chia7712 , would you mind take a look ? Thanks.


E2e tests case error

I am running e2e tests locally
make docker_e2e_test_run
and getting an error:
=== RUN   TestE2ETestSuite/Test_zpages     e2e_test.go:284:         	Error Trace:	/go/src/github.com/equinor/flowify-workflows-server/e2etest/e2e_test.go:284         	Error:      	Should NOT be empty, but was 0001-01-01 00:00:00 +0000 UTC         	Test:       	TestE2ETestSuite/Test_zpages         	Messages:   	make sure we get a datetime string     e2e_test.go:285:         	Error Trace:	/go/src/github.com/equinor/flowify-workflows-server/e2etest/e2e_test.go:285         	Error:      	Received unexpected error:         	            	parsing time "unknown" as "2006-01-02T15:04:05Z07:00": cannot parse "unknown" as "2006"         	Test:       	TestE2ETestSuite/Test_zpages --- FAIL: TestE2ETestSuite (0.20s)     --- PASS: TestE2ETestSuite/Test_Roundtrip_Component (0.04s)     --- PASS: TestE2ETestSuite/Test_Roundtrip_Job (0.02s)     --- PASS: TestE2ETestSuite/Test_Roundtrip_Workflow (0.01s)     --- PASS: TestE2ETestSuite/Test_SecretHandling_live_system (0.00s)     --- PASS: TestE2ETestSuite/Test_Userinfo (0.00s)         --- PASS: TestE2ETestSuite/Test_Userinfo/No_auth (0.00s)         --- PASS: TestE2ETestSuite/Test_Userinfo/JWT-Encoded (0.00s)     --- PASS: TestE2ETestSuite/Test_Workspaces (0.00s)     --- PASS: TestE2ETestSuite/Test_components (0.00s)     --- SKIP: TestE2ETestSuite/Test_getArtifact (0.00s)     --- FAIL: TestE2ETestSuite/Test_zpages (0.00s)

the problem was solved by restarting the project locally


menu items blank

When editing a haskell file if I select the menu item Haskell from the main menu, the items are all blank and unselectable. In the repl if I select Complete, In/Out and Signals the same happens. I am using  Emacs 25.1.1 on Ubuntu 17.04.

This isn't an intero issue, sorry. For what it's worth, I also notice some strange menu behaviour (in Emacs 25.2 on OS X) -- sometimes I have to click between Emacs windows for the menus to get updated properly.


build release of RAD.IRA

support #261
📑 Description
publication build of RAD.IRA
✅ Checks

[x] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required
[x] All the tests have passed
[x] I have selected a committee co-chair to review the PR

ℹ Additional Information
did not update index.html

OK, thanks.

OK, thanks.


[AIRFLOW-334] Fix using undefined variable

Dear Airflow Maintainers,
Please accept this PR that addresses the following issues:

AIRFLOW-334

Testing Done:

Unittests passed

[Current coverage][cc-pull] is 64.29%

Merging [#1664][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.01%

@@             master      #1664   diff @@
==========================================
  Files           122        122
  Lines          8600       8600
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           5530       5529     -1
- Misses         3070       3071     +1
  Partials          0          0

Powered by Codecov. Last updated by [c32452a...cca55d7][cc-compare]
[cc-base-branch]: https://codecov.io/gh/apache/incubator-airflow/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/apache/incubator-airflow/compare/c32452aba65695fea8f6dc5cd4835ac23d703960...cca55d7964612f48bb64f03c2e07d03529618b83?src=pr
[cc-pull]: https://codecov.io/gh/apache/incubator-airflow/pull/1664?src=pr

LGTM

LGTM as well


std.typecons: make RefCounted @safe

follow-up to #4685

What we also need is a check to make sure RefCounted becomes @system when a @system ctor or dtor is on the target type.
Thanks, this looks pretty good!

Since we never expose a direct pointer to the ref counted payload, I think RefCounted can be perfectly safe.
Note, there is an existing issue for this: https://issues.dlang.org/show_bug.cgi?id=13983

Unless I'm missing something, we cannot currently make RefCounted @safe in that way since refCountedPayload, i.e. the AliasThis, returns a reference (which is the entire point of RefCounted). You'd need to make that @system to be able to mark the destructor @safe, which of course isn't any better.

Yes, and that's a good part of why Walter is currently working on adding a ref-counting solution to the language - because while you can make ref-counting solution with a library, you can't make an @safe ref-counting solution with a library.

@klickverbot as long as you are in safe code, using the reference has to be while the ref-counted struct exists. You can't take the address of a ref in @safe code, so how is that unsafe?

Nevermind, I just realized that you can return a ref, so that would be bad. Yeah, we have to wait on this.

Why is RefCounted not pure?
Because of malloc, free, etc?


[JS] [React] PropTypes and PropTypes shapes

How to create shapes, put it in component folder? And what if components shere one shape? Use centerlize convention?

https://www.freecodecamp.org/news/react-pattern-centralized-proptypes-f981ff672f3b/

[PROPOSITION]

Main folder with sapes name: now is @types, but I like @shapes better

See also: https://github.com/furdzik/IF.Kamisama/issues/17


Correct Updates info for Hosts

This is how the Updates settings page looks, but it's geared toward Collectives. For hosts it needs to have different info.

Suggested content:

Updates are a way to keep your community posted on your progress. They are sent by email to admins of your Collectives and to your team members and contributors. Once enabled, a new "Updates" section will be added to your profile page and a dedicated page will be created on https://opencollective.com/foundation/updates.

FAQ's

Who can see updates?
Updates can be public or private. Public updates can be seen by anyone who visits your Host page. Private updates can only be seen by [who??]. Whenever you post a new update, you can define whether it should be public or private.

If someone contributes directly to a host budget, do they get access to private updates? Team members of Collectives hosted by this host org should be able to see its private updates, right?

Who gets a notification when there is a new update?
All contributors to the Host itself and the team members of Collectives it hosts will receive a notification by default. They can easily unsubscribe with one click.

Who can post an update?
Only the administrators of this Host can post updates.

What should we use updates for?
Updates are great to keep your community up to date. They should preferably be low volume (such as once a month, or for only important changes to policies and big news).

I've updated https://docs.opencollective.com/help/collectives/communication with the latest info about host updates.
Hosts can select if they want to send their updates to their financial contributors or to their collectives when publishing them.

If someone contributes directly to a host budget, do they get access to private updates? Team members of Collectives hosted by this host org should be able to see its private updates, right?

Private updates are not supported for hosts yet (because we need a different set of permissions if it's published as "send to Collective admins").

OK, great! I don't think hosts really need private updates. It just needs to be clear to them who will receive notifications, and I think it is now.

@Betree is this done?

It hasn't, I delayed because this page is meant to be removed (in favor of the "Profile page" settings) but I'll fix it now since it's still there


Multiple GPUs execution

Hello,
I have a system with two GPUs and am running the enhancer in parallel mode. However, I've noticed that the second GPU is not being utilized. Is there anything else I can do to enable execution on both GPUs?
!resemble-enhance  --tau 0.48 --nfe 68 --parallel_mode input_folder output_folder
Best Regard,
Igor

Hello,
I have a system with two GPUs and am running the enhancer in parallel mode. However, I've noticed that the second GPU is not being utilized. Is there anything else I can do to enable execution on both GPUs?
!resemble-enhance --tau 0.48 --nfe 68 --parallel_mode input_folder output_folder
Best Regard, Igor

Hello, Igor!
Just created a PR. Could you please test it and confirm if your problem is solved?
It would be great if you could provide more information about your hardware if the fix didn't help.
Best Regard, Mikhail
@hellcatmon


Reactive field within a modal refresh the resource's table

Package
filament/filament
Package Version
v2.13.11
Laravel Version
v9.17.0
Livewire Version
v2.10.5
PHP Version
PHP 8
Bug description
I have a modal with a reactive select field and each time I update the select, we see the table refreshing in the background. See video
https://user-images.githubusercontent.com/604907/175971683-b737fc73-5c46-435a-b25f-a0c8c43c6fb0.mp4
Steps to reproduce
No response
Relevant log output
No response

This is because the modal isn't it's own Livewire component and the state is held inside of the same component as the table, so a reactive field will trigger an entire re-render of the component. This isn't a bug, more of a side effect.


Some SVG OBJKTs show ReferenceError: meta is not defined

Generation script worked great!
But some SVG OBJKTs show ReferenceError: meta is not defined when running the generation script.
For example OBJKT 107319.
Others work fine (like OBJKT 59369).

@AlexandreRangel sorry for the delay. I want to wait until things settle down with the H=N API before I update this to take care of burned items etc

Great, thanks a lot, @tarwin !


Any example for streaming tweets?

Can you give me an example for printing all the new tweets with specific hash tag?
I was looking at your FilteredStreamRulePredicate. I am not sure how it is connected with startFilteredStream

What is wrong here?
    FilteredStreamRulePredicate rulePredicate = FilteredStreamRulePredicate.withHashtag("something");
    twitterClient.addFilteredStreamRule(rulePredicate, "something");

I get this error
  Exception in thread "main" java.lang.IllegalArgumentException
	at io.github.redouane59.twitter.TwitterClient.addFilteredStreamRule(TwitterClient.java:968)
	at io.github.redouane59.twitter.TwitterClient.addFilteredStreamRule(TwitterClient.java:979)

On my side, your code is running correctly. Are you sure to have correctly set up your twitter dev account credentials ?
Are other endpoints working well ?

I'm also having a similar problem using addFilteredStreamRule
twitterClient.addFilteredStreamRule("has:geo sample:10", "base");
Exception in thread "main" java.lang.IllegalArgumentException
	at io.github.redouane59.twitter.TwitterClient.addFilteredStreamRule(TwitterClient.java:981)
	at com.ironhack.Sentimentamap.TwitterAPIMS.Main.TwitterStreamer.main(TwitterStreamer.java:22)

The stream does work without the rule attached so the credentials are definitely being used correctly.
Using breakpoints the issue seems to be happening here with data being returned as null.
public StreamRule addFilteredStreamRule(String value, String tag) {
        String url = this.urlHelper.getFilteredStreamRulesUrl();
        StreamRule rule = StreamRule.builder().value(value).tag(tag).build();

        try {
            String body = "{\"add\": [" + OBJECT_MAPPER.writeValueAsString(rule) + "]}";
            StreamRules result = (StreamRules)this.requestHelperV2.postRequest(url, body, StreamRules.class).orElseThrow(NoSuchElementException::new);
            if (result.getData() != null && !result.getData().isEmpty()) {
                return (StreamRule)result.getData().get(0);
            } else {
                throw new IllegalArgumentException();

Hmmm it's really hard for me to fix that as far as I'm not able to reproduce it locally :(
Can you try to show me the raw result you have from the Twitter API ?

Sure, direct response is
{"meta":{"sent":"2021-11-27T14:58:14.808Z","summary":{"created":0,"not_created":1,"valid":0,"invalid":1}},"errors":[{"value":"#NewYork sample:10","id":"1464244590714699776","title":"DuplicateRule","type":"https://api.twitter.com/2/problems/duplicate-rules"}]}
Which seems correct, but in abstractRequestHelper, it seems the problem may be with the method call of
result = convert(stringResponse, classType);

Ok now I understand your problem. You are trying to add two times the same rule.
The first time, it is working because the Twitter API is returning an http code 200.
The second time, the Twitter API is returning an error code because you are not allowed to add the same rule twice.
The addFilteredStreamRule method is throwing an exception because of that. This behaviour is the one expected.

Hi, got same troubles here, it would be convenient to raise/log the error from http response, else we don't know why adding the rule is throwing exceptions.

You're right, I'm going to add it.


AH should be able to delete an action for a Minister’s Issue

Expected options/behavior for Minister’s Issue-Action:

[x] option to delete an action is available (see image 14)
[ ] selecting option raises confirmation popup (see image 14a)
[x] confirmation results in action delete
[x] cancelling returns to RUP

Complete for entries that have not been saved so will be closed. Note that #307 is the same feature but for those entries that have been saved.


Entry point not found ~MakeWeak~

Got this intense message today when trying to install the new version of MBS over the top of the old version...

@sainsb - wow, thank for reporting.  So you saw this at install time or after the install the first time you tried to start the app? Can you share what version of Windows you are running?

After install trying to start the map.
Win7
Uninstalled and reinstalled and it works. I'm thinking the contingency step of removing the old version when installing a new one is faulty - or maybe it's just something about the way I am. :)
thanks Dane - u da man

wild, that is great that you fixed it, but not sure why. I wonder if mapbox studio was running when you when to run the upgrade maybe? (or perhaps one of its subprocesses was runaway in the background). Then the install may have only worked partially... This should not happen (we try to catch this situation in the installer) but perhaps is not fully working.

The error suggests, that there was an old version of Atom-shell still being loaded.
So, yes I think Mapbox Studio was still running, when the upgrade process was started.
I suggest to exit Mapbox Studio automatically as soon as the upgrade link is clicked.

Yes, can confirm, old version was running. sorry for the trouble.

Same problem when upgrading to 0.2.7 on Windows 7. Re-installing works.
Note: Hadn't fully started Studio yet. Only the dialog prompting to upgrade

@rhansson Thanks for letting us know.
The upgrade dialog is already part of Mapbox Studio.
Normally, the installer should bail out when Studio (Upgrade dialog) is still running.


Write a script that checks if a remote git repo has new commits

know to pull latest changes and execute project's refresh (like composer update)
https://github.com/Janis-Rullis-IT/dev/issues/6#issuecomment-705641484

https://github.com/Janis-Rullis-IT/shell-scripts/blob/master/has-git-remote-new-commits.sh


how to extend the code editor?

I want to add a custom icon to provide special interactive on the code editor , for example

Who can give me some guide?

"You asked us to send you a password reset link for vscode-dev-community.slack.com. It turns out the email address<EMAIL_ADDRESS>doesn't have an account for that workspace yet."
My account can't sign in to vscode-dev-community , what should i do ?   @mjbvz

thanks much!


[cxx-interop] Print decls in the __ObjC module.

This is one change from #38675.

@swift-ci please smoke test.

I'm going to go ahead and merge this PR. I think it's not the behavior that we want, but once we have lazy type loading, we can add it back by only printing the specific namespace decl we are given and not all the redecls-decls. Right now we don't have a way to implement this because all members (from all redecls) are eagerly added.


[Aio] Make client-side graceful shutdown faster

Related https://github.com/grpc/grpc/issues/21594. This PR resolves the 13% overhead.
We discussed alternatives of implementing graceful shutdown in #21819 and other channels. We were focus on how to track Call objects ourselves. However, all Tasks objects are preserved by AsyncIO which also have the ground truth of what Tasks are running.
So, instead of directly recording the start and the stop of RPCs, this PR finds coroutines created by us when the channel is closing. Then, it performs graceful shutdown upon them.

@pfreixes CPython provides set_name and get_name for 3.8+, which are the exact API we need. @gnossen proposed that we can have two graceful close logic for different Python versions.

Known failures: https://github.com/grpc/grpc/issues/21675 https://github.com/grpc/grpc/issues/18892


Conversion of screenshot to text is not proper

Trying to convert android screenshot to text by using this library. But conversion is not proper. getting some text as a w , / E " . Can we convert screenshot to text by using this library or it's only applicable to  scanned images , documents. Please clarify. Or am i doing any mistake.

You're likely not making a mistake, no. You'd generally need to pre-process your input images using external tools in order to get the results you're looking for.

what kind of preprocessing we need to do ?


Adopt package access level

Currently, every declaration that is used across modules in SourceKit-LSP is marked as public. We should re-consider which part of SourceKit-LSP we want to expose as public API and mark everything else as package.

Synced to Apple’s issue tracker as rdar://128295618


added y in banner

their was a conflict so i discarded and reopened my PR
Referenced Issues
closes #641

@Zeref-XXX, take two more empty rows at the top.

alignment will get disturebed
that is the last # of y will be below the other letter


HBASE-25085 hbase-vote.sh mvn invocation broken with empty MVN_PROPERTIES variable

Use eval to execute a command string built from component parts.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m 21s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m  7s
Maven dependency ordering for patch

-0 :warning:
shellcheck
0m  1s
The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m  7s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m  8s
Maven dependency ordering for patch

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

Closing as duplicate of HBASE-25362 / #2737


[GCM] Don't use registration_ids for single recipient

Great, thanks! :)

@richsage This was preventing us from sending GCM messages. Can you tag a patch release with this?


ISPN-7645 RemoteQueryEngine should use subclassing to deal with compa…

…tibility mode
https://issues.jboss.org/browse/ISPN-7645

Tests look good.

Merged, thanks !


How VSS2DBC signal gets data of other signals of same frame

I have exploring kuksa can providers, amazing work.
I have a doubt on hwo VSS2DBC gets the value of other(affected) signals of the same frame,
I understood that a single VSS signal will have DBC2VSS(current) and VSS2DBC(target),
if i set target value of a VSS signal,
Does it takes other signal value in the following order ?
1.) check current_value of the signal
2.)check target_value of the signal
3.) check for default values in the json
I have a doubt whether it takes target value or current value
and does a single VSS signal will have both current and target ? or will it be different VSS signals ?
and if it is a same signal while it be actuator? / I tried to set target value for sensor type VSS signal and it throws error
please correct me, if i am wrong

You are right on the general mapping as described in https://github.com/eclipse-kuksa/kuksa-can-provider/blob/main/mapping/README.md

dbc2vss: The signal from CAN is injected into Databroker as actual value
vss2dbc: The target value from Databroker is added to the CAN signal

This is (currently) based on an assumption that actual values only flow in the direction from CAN to Databroker, and target values in direction from Databroker to CAN. We do not have as of today any mechanism to specify that sensor values should be used on CAN or that CAN will provide target/actuator values to Databroker.
This is how values in vss2dbc is handled:
At startup the CAN provider subscribes to target values of all VSS signals listed in vss2dbc part of the mapping config
https://github.com/eclipse-kuksa/kuksa-can-provider/blob/973fe305f470db216ceddb619c11df7a77adb7a2/dbcfeederlib/databrokerclientwrapper.py#L202
When CAN provider receives a target value update callback from Databroker it:

Checks which CAN frames that are involved and should be sent
Populates the CAN frame

https://github.com/eclipse-kuksa/kuksa-can-provider/blob/973fe305f470db216ceddb619c11df7a77adb7a2/dbcfeederlib/dbc2vssmapper.py#L520
Population use two methods:

It use default values as base, for our example DBC we have some default values in https://github.com/eclipse-kuksa/kuksa-can-provider/blob/973fe305f470db216ceddb619c11df7a77adb7a2/dbc_default_values.json
Secondly it takes any other value previously received in the subscription from Databroker, as stored in last_dbc_value.

So what will be included in the CAN frame is either default values from JSON or actuator/target values from other vss2dbc mapping configurations.

Thanks for the quick reply and answer @erikbosch,
Is there an option, that it will look for current value of the VSS and sends that ?
While testing I have noticed 2 things,
1.) For VSS signals of sensor, Can't able to set the target value but in https://github.com/eclipse-kuksa/kuksa-can-provider/blob/973fe305f470db216ceddb619c11df7a77adb7a2/mapping/vss_4.1/dbc_overlay.vspec#L300C3-L300C7 for type of sensor vss2dbc is defined
2.)I have been using flutter/dart to subscribe to kuksa databroker using kuksa/val/v1 proto rpc subscribe
this is my subscriber entry
var request = SubscribeRequest();
var entry = SubscribeEntry();
entry.path = 'Vehicle.speed';
entry.fields.add(Field.FIELD_PATH);
entry.fields.add(Field.FIELD_VALUE);
request.entries.add(entry);
Vehicle.speed is actuator and when i subscribe using the fields (field_path , field_value) , I am hoping it sends only current_value (if we want target then the field will be autuator_target)  **but I got value when I update both current and target **.
Is this expected behavior ?

It would technically not be a problem to extend the syntax of the mapping with something like valuetype: current or valuetype: target and adapt the implementation accordingly so it subscribes to or publish the "right" value.
For Vehicle.Powertrain.ElectricMotor.Temperature I would say that it definitively is an error in the .vspec/.json, as we cannot subscribe to or at least not will get any target value updates for actuators.


Using 'seperate' declaration with CommonJS creates invalid types

Description
When building an NPM library that supports both ESM and CommonJS, and has the types separated, an invalid exports is generated:
"exports": {
  ".": {
    "import": {
      "types": "./types/test.d.ts",
      "default": "./esm/test.js"
    },
    "require": {
      "types": "./types/test.d.ts",
      "default": "./script/test.js"
    }
  }
},

Here, both of the types fields refer to the same file, but according to the TypeScript Handbook this is not allowed:

It’s important to note that the CommonJS entrypoint and the ES module entrypoint each needs its own declaration file, even if the contents are the same between them.

Steps to reproduce
Create a file called test.ts and add some dummy content with an export:
export const message = "Hello World!";

Create a build script under scripts/build_npm.ts with the following contents:
import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts";

await emptyDir("./npm");

await build({
  entryPoints: ["./test.ts"],
  outDir: "./npm",
  declaration: "separate",
  scriptModule: "cjs",
  shims: {
    deno: true,
  },
  package: {
    name: "your-package",
    version: Deno.args[0],
  },
});

Then, build the NPM package with the following command:
deno run -A scripts/build_npm.ts 0.1.0

Once the package has been built, it can be inspected using the Are the types wrong? CLI:
attw --pack ./npm

Which should show the following error:

Solution
As per the suggestion in the TypeScript Handbook, a second file should be added specifically for the CommonJS version and linked from the types field.

Yeah, don't use "separate". Instead use "inline" which is the default.
declaration: "separate", was kept because it used to be how dnt emitted the types, but it was switched away from for this reason. It's now mostly undocumented other than existing in the type declarations. What I will do is add a warning when this is used for the time being.

Another issue somewhat related to this, is that the type definitions that are emitted for CommonJS are not really correct. For example, given the aforementioned input the following type is generated:
export declare const message = "Hello World!";

This is of course correct for the ESM bundle, but for CommonJS I would expect something like the following:
declare const message = "Hello World!";

export = { message };

@jonkoops that's the typescript compiler giving that output. I don't believe there's a way to get it to do that, but let me know if you know a way.

Yeah, I think the only way to do so would be to convert the source code to CommonJS as well. There really is no way for the TypeScript compiler to emit valid CommonJS types from an ESM source, as far as I know.
Perhaps the best solution here is to simply not link any types to the CommonJS input, which I believe is the default behavior with "inline" anyways.

Btw. esm.sh doesn't seem to detect types when emitted with "inline", but does with "separate".
(yes, I'm publishing a deno module to npm and load it back into deno via esm.sh)

If the package works with vanilla tsc then I'd recommend opening an issue on esm.sh's repo.


TlsAcceptor does not request client certificate?

Hello,
I'm trying to use rust-native-tls to setup a bare tls connection that would require client to provide a certificate, however I have not found a way of doing this with TlsAcceptor. There doesn't seem to be a way to set the verification mode and depth.
Using openssl s_server -accept *:10000 -cert server.pem -key server.pem -verify 10 -CAfile root-ca.crt, I can see that when providing a cert on the TlsConnectorBuilder, the client sends the certificate.
The peer_certificate() on the call always return Ok(None), and the server never requests the certificate.
Looking at the tests, requesting the client's certificate doesn't seem to be supported.  https://github.com/sfackler/rust-native-tls/blob/75e43daaf9174916611178419805542a9883bae4/src/test.rs#L140
Would you welcome a PR?

Sure

Exposing SslVerifyMode in some way would clash with the format of boolean settings in TlsConnectorBuilder.
I'd add two bools in TlsAcceptorBuilder: request_client_cert for SSL_VERIFY_PEER, and require_client_cert for SSL_VERIFY_FAIL_IF_NO_PEER_CERT.
What do you think?

How would this be implemented for schannel and secure-transport?

I'm not familiar with schannel and secure-transport. Right now i'd only expose the new settings for openssl.

The entire purpose of this crate is to expose a uniform interface to those three backends. I would like to preserve that.

You're not making it easy for yourself
I checked schannel here : https://docs.rs/schannel/0.1.16/schannel/tls_stream/struct.Builder.html
Only way I can find to validate client certs would be to set verify_callback and check the CertValidationResult for no failed_certificate and for the presence of a certchain.
For security-channel here : https://docs.rs/security-framework/0.4.1/security_framework/secure_transport/struct.SslContext.html
There's set_client_side_authenticate with SslAuthenticate.
Looking back exposing a type akin to https://docs.rs/security-framework/0.4.1/security_framework/secure_transport/struct.SslAuthenticate.html would be cleaner. There would also be more work needed to allow using the verification callbacks of all three backends, but I don't need that right now, and a type like this would not prevent that from happening.

I'd like to accept client cert authentication in Samotop server. Without this feature I'll have to dip into openssl/schannel/ what not myself ...not too excited... Is this effort going stale?

@jocutajar In #162 there's a working implementation for openssl that i'm using, but for windows and mac I don't have a machine for OSS that I can readily use so for now I'm not planning on working on this. Feel free to canibalize the PR.

+1 for this feature. I'm not qualified to implement this, but I'd love to see it happen.


How much training data is generally required to fine-tune the model

Hi，
I want to fine-tune the SAM mask decoder to only a single labeled dataset unsing supervised training (i.e., Setup 1 in your paper).
Since I have no experience in this field, I would like to ask how much training data is generally required to fine-tune the model in this setting?
Thanks，look forward to your reply！

It depends on the dataset, but my educational guess is at least 100 cases if you only want to fine-tune the decoder. In the meantime, I suggest fine-tuning both the encoder and decoder since this strategy is almost always better than only fine-tuning the decoder.

Get it. Thanks very much!


Transaction emty error

When I try to send a transaction of creating a validator, receive an empty error (transactation is going to send not from the node, where validator is going to be, and also the wallet store on Ledger, and trying to sign using it):
Default sign-mode 'direct' not supported by Ledger, using sign-mode 'amino-json'.
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"Citizen Web3","identity":"DF0280597A20ACFE","website":"https://www.citizenweb3.com/staking","security_contact":"","details":"Citizen Web3: Embracing Decentralization, Empowering Communities. The Voice of Web3 \u0026 Non-custodial staking service"},"commission":{"rate":"0.100000000000000000","max_rate":"0.300000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"gravity1m77eksxfz9q50qejnqf720sns7q0xtx8v88z7n","validator_address":"gravityvaloper1m77eksxfz9q50qejnqf720sns7q0xtx8av7u58","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"rEpCE/av//HbQXzT0QCT3ZFvVFOpbKb4DDCXsL24Tn8="},"value":{"denom":"ugraviton","amount":"1000000"}}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[{"denom":"ugraviton","amount":"6000"}],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}

confirm transaction before signing and broadcasting [y/N]: y
Error:
Usage:
  gravity tx staking create-validator [flags]

I checked it and have the same "empty" error with ledger. Everything is ok without ledger


Iperf with latest upstream - TO BE DELETED

This PR is just to test out the Iperf3 branch with the latest upstream changes

Summary by CodeRabbit
Release Notes

New Features

Introduced a new SharedPreferencesGrouper for better management of shared preferences.
Added a MultiSelectDialogFragment for selecting multiple items.
New fragments for displaying detailed information (DetailFragment, QuickFragment) and managing shared preferences (SharedPreferencesIOFragment).
Implemented a new layout for the PingFragment using Material Design components.
Added new layout files for quick views of cellular data (e.g., quickview_cdma.xml, quickview_gsm.xml, etc.).
Added a new CloudCityConstants class for centralized string constants related to Cloud City.

Enhancements

Improved error handling and logging across various classes.
Updated UI components to utilize Material Design elements for a modern look.
Refactored code for clarity and maintainability, including the use of lambda expressions for listeners.
Enhanced the LoggingService and PingService for better preference management and error logging.
Expanded CloudCityParamsRepository for managing application parameters and configuration data.

Bug Fixes

Resolved issues related to preference management and application state handling.
Fixed layout issues in the HomeFragment and PingFragment.

Style Changes

Updated vector drawable colors and layout structures for improved aesthetics.
Transitioned to Material Design components in various fragments for a cohesive user experience.

Deleting as was intended, this was just a test PR to make a build with Iperf3 libs


Bumps Gateway API imports

Bumps Gateway API dep to 0.5.0 (released today) and imports to use the v1beta1 APIs.
Ran go mod tidy to clean up deps.

Signed-off-by: danehans<EMAIL_ADDRESS>

Codecov Report

Merging #152 (27af19e) into main (b1902fa) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #152   +/-   ##
=======================================
  Coverage   53.08%   53.08%
=======================================
  Files          12       12
  Lines         486      486
=======================================
  Hits          258      258
  Misses        210      210
  Partials       18       18

Impacted Files
Coverage Δ

pkg/provider/kubernetes/gatewayclass.go
72.34% <100.00%> (ø)

Continue to review full report at Codecov.

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


Add recently played

A method to retrieve recently played songs

I actually already added an isPlayed field to QueueEntry in the unfinished new version of JMusicBot-API.
Played songs are not even stored right now, which is why there is no method to retrieve them.
I'll implement all of this when I implement the new API.

Closed by e5721875de5b7febb2548503aa462466a306be2a


Fix article revision doesn't show successful dialog

Use Article.newestPublishedDraft instead of Article.drafts

@robertu7 @pitb2022 could you estimate a point for this issue?

@devformatters set to 3pts


Adjust aspect ratios

The aspect ratios aren't adjusted satisfactory, especially responsivity isn't given until now.

Aspect ratios after start and resizing are working responsive and fine for the moment.


Update to current bobtemplates.  package --> distribution.

A Python package is a directory with an __init__.py file in it.  However, the second P in PyPI stands for package, so unfortunately in the Python world we use the term loosely.  I'm using distribution as defined by @optilude in his book:

Distribution:  A means of packaging and distributing Python code.  A distribution consists of a directory with a setup.py file, Python code, and potentially other resources.  The metadata in setup.py may include a version, installation dependencies and licence information.
Tools based on Setuptools/Distribute, including Buildout, can use the metadata to manage concurrent installations of different versions of a given distribution, automatically fetch dependencies, and more.
It is common to create a distribution containing, and named after, a single package. For example, the distribution plone.memoize contains the package plone.memoize (which may of course contain sub-packages).  However, distribution names do not have to follow this pattern.

While I'm at it:

Egg: A binary distribution format used by Setuptools/Distribute.  Each distribution archive is specific to a particular platform and Python version.  Therefore, it is normally safer to use a source format when distributing packages, which is just a compressed archive of the code and metadata.  (Setuptools/Distribute will turn a source distribution into an egg specific to the local development environment upon installation.)

I am not against this, but in that case I'd see the glossary of plone docs extended by the term distribution.
http://docs.plone.org/appendices/glossary.html#term-python-egg

That would be good.
On Tue, Oct 6, 2015 at 11:21 AM Patrick Gerken<EMAIL_ADDRESS>wrote:

I am not against this, but in that case I'd see the glossary of plone docs
extended by the term distribution.
http://docs.plone.org/appendices/glossary.html#term-python-egg
—
Reply to this email directly or view it on GitHub
https://github.com/plone/training/pull/145#issuecomment-145795723.

I can't figure out what the test failure is about, but it can't be due to any commits in this PR.

This is because of:
(line 1339) broken    http://diazo.org - HTTP Error 502: Bad Gateway
We had these problems already yesterday something with dns between US and Europe is not working well, plone.org, dev.plone.org and someothet domains where not temp. not reachable from Europe but still from the US, also traffic from Europe was redirected via Asia and not like always straight to the US.
Nothing we can do

I have now for example also loss if I ping GitHub

@svx do you know why readthedocs also says that the build is broken? Something with LaTeX:
https://readthedocs.org/projects/plone-training/builds/

@pbauer there are different possible reasons I am not sure which one is responsible for that:

could be as simple as a copy and paste error
could be a change of utf support on the builders of rtd
could be one or more unicode character in one of your input files that isn't mapped to an output. This may -- especially if you're using the (unicode-supporting)
could be latex configuration in the conf.py

And this was working until 2 days ago, right ?

@fulv
The rst syntax is not OK :) Sphinx is reporting errors:

  training/export_code.rst:55: ERROR: Error in "code-block" directive:
maximum 1 argument(s) allowed, 2 supplied.
..  code-block:: xml

:linenos:

@svx:  But that syntax did not change, and it was ok before.  Unless it's complaining about something inside the code-block, which is an unholy xml mess.  Can you paste a link to the log where you saw that error, please?

There is an 'issue' with xml formating so it seems:
https://raw.githubusercontent.com/plone/training/master/export_code.rst starting from line 85
That could be also one possible reason why latex building on rtd is failing, but I am not sure about that

@fulv

There are actually two errors.  One is an indentation error of the code block around line 162.
The other error is the one you saw.  It goes away if I remove the :linenos: thing.  Not sure why, because the second code block also has :linenos: and it works.  It must be because of that escaped inline xml.
I've just merged this fix:  https://github.com/plone/training/pull/148


generic proxy: new codec callback methods to access connection

Commit Message: generic proxy: new codec callback methods to access connection
Additional Description:
Tow new methods give the custom codec the full power to control the downstream/upstream connection.
Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

@soulxu friendly maintainer-on-call ping.

@soulxu this is still waiting on review
/wait-any

/retest


Title:  Addition of Password Generation Options

Is your feature request related to a problem? Please describe.
The current password generator lacks flexibility in allowing users to specify the types of characters included in the generated password, limiting customization and potentially compromising security.
Describe the solution you'd like.
I propose adding four options below the password generation area: include lowercase letters, include uppercase letters, include symbols, and include numbers. These options will empower users to customize the composition of their generated passwords according to their preferences and security requirements.
The inclusion of these four options will enhance the usability and security of the password generator. Users will have the flexibility to select or deselect each option based on their specific password requirements. This customization capability will result in stronger and more secure passwords, thereby addressing the limitations of the current password generation process.
Describe alternatives you've considered.
One alternative could be providing predefined password templates with varying levels of complexity, or integrating third-party password generation libraries. However, these approaches may not fully cater to the diverse needs of users. Another alternative could be incorporating an option for users to specify the length of the generated password, allowing for greater customization and flexibility.
Add any other context or screenshots about the feature request here.
No response

I'd like to take the lead on this task because I believe in my ability to make it even better. So if you can assign this task to me I can start working on the issue.

@swapnilsparsh can you please also attach level for GSSoC'24, like level 1,2 or 3. Sorry for tagging.
Regards

@yasharth-0910 Done


Anyway to modify the background color?

Is there any way to modify the background color of the published stream? At the moment it is black

#10 should have provided this, though there is a bug where the color isn't what is requested.

To extend that also. I'd like to know if textures are actually possible?

There is code in the Camera rviz plugin that could be brought in that would subscribe to an Image topic and use that as a background.

That sounds good. i can modify the cv::Mat directly


Use the same default cache directory across platforms?

Currently cjdk uses, by default, the platform-specific cache directory on macOS and Windows. While this has some advantages, it also adds complexity: for example, a script that would like to clear the cjdk cache would need to branch by platform (or we'd need to provide a way to query the current cache directory).
Also, it appears that tools that are likely to be used in conjunction with cjdk tend to use the same directory on every platform:

pipx uses ~/.local on all platforms
jgo uses ~/.jgo (and, indirectly, ~/.m2) on all platforms
pre-commit uses ~/.cache on all platforms

Although cjdk could be used internally by a user-facing app, it is more commonly a programmer/devops tool, so writing to ~/.cache even on Windows is probably not going to be frowned upon (and end-user apps can always override the cache directory).
So let's default to ~/.cache/cjdk on all platforms.
(Need to decide whether to still allow overriding via $XDG_CACHE_HOME. I think yes, but check what others do.)

I think respecting XDG_CACHE_HOME is a really good idea.
About defaulting to ~/.cache/cjdk on all platforms, I have no strong opinion... I think respecting the platform-specific defaults is probably better but I see the advantages of both.
What you could do, regardless, is add a flag to the cjdk tool that simply prints the cache directory. Something like cjdk --print-cache-dir. Then downstream tooling that wants to automate deletion of the cache has an easy way to find out where it is.


Reorganize docs contrib guide

Preview at https://deploy-preview-9510--kubernetes-io-master-staging.netlify.com/docs/contribute/
This is a HUGE PR to review. I'm very sorry about that. It does the following major things:

Rewrite, reorganize, and consolidate all docs about contributing under a new Contribute section of the website, under /docs/contribute/
Improve and update docs about page templates, content organization, etc
Change the behavior of the "Edit this page" links (at bottom and top right) to go straight to the Github editor with no preliminary page in between
Change the text of the "Create an issue" button to "Report a problem". Include both the page URL and file name in the PR subject. I'd love to have left the subject blank to force the reporter to write a meaningful title, and include the path and file name in the issue body, but that overrides the Github issue template. Also remove reliance on Javascript to build the "Create an issue" link.
Lots of redirects added

There are still some whitespace errors (trailing, mostly) that I need to find and fix. But this is ready to review.

/hold cancel

/assign @tallt0m
/assign @chenopis
/assign @jaredbhatti
/assign @zacharysarah
/assign @Bradamant3

Addressed all comments so far.

Addressed new feedback, some questions are outstanding and may be obscured by the Github UI because those lines of the source have changed. @zacharysarah those questions are for you primarily.

/assign @cody-clark

Also I will wait for a little more consensus on time commitment and specific benchmarks for being added to SIG Docs, becoming a reviewer, and becoming an approver.

/cc @cody-clark

From Slack with @mistyhacks:

still awaiting some clarification on org member / sig review / sig approver, what the specific time requirements and time-commit expectations are of each, for the docs contributor guid

Here's a summary of the operative criteria. Hopefully I got everything--other maintainers, please chime in!

Role
Docs prerequisites
Responsibilities

Member
- PRs must be to k/website
Follow the code of conduct

Reviewer
- As per member- Regularly participate in weekly SIG meetings
- As per member- Review PRs auto-assigned by blunderbuss within 1 week

Approver
- As per reviewer- Contribute regularly for at least 3 months- Knowledgeable with SIG Docs workflows and tooling
- As per reviewer- Respond to PR comments/requests for review from other maintainers within 1 week- Serve periodically as the PR Wrangler for SIG Docs

I rebased, fixed the nits pointed out by @kbhawkey , and updated the participating.md with more details and to include SIG Docs chair. Thanks everyone for your reviews. I think barring anything major that is wrong here, this is ready to go in and we can iterate.
/assign @chenopis

Troubleshooting netlify failure.

Netlify build looks good:

3:39:04 PM: Build ready to start
3:39:05 PM: build-image version: 7c49b266ed8abd833dee6036ec0a4b9ee887658a
3:39:05 PM: buildbot version: f58df58ab0bceffdcb8d1e60fec992495a2a6751
3:39:05 PM: Fetching cached dependencies
3:39:06 PM: Starting to download cache of 314.6MB
3:39:07 PM: Finished downloading cache in 1.403494345s
3:39:07 PM: Starting to extract cache
3:39:13 PM: Finished extracting cache in 6.232225962s
3:39:13 PM: Finished fetching cache in 7.787273586s
3:39:13 PM: Starting to prepare the repo for build
3:39:14 PM: Preparing Git Reference pull/9510/head
3:39:20 PM: Found netlify.toml. Overriding site configuration
3:39:20 PM: Different build command detected, going to use the one specified in the toml file: 'hugo --enableGitInfo -b $DEPLOY_PRIME_URL' versus 'hugo' in the site
3:39:20 PM: Starting build script
3:39:20 PM: Installing dependencies
3:39:21 PM: Started restoring cached node version
3:39:23 PM: Finished restoring cached node version
3:39:24 PM: v8.11.3 is already installed.
3:39:25 PM: Now using node v8.11.3 (npm v5.6.0)
3:39:25 PM: Attempting ruby version 2.2.9, read from environment
3:39:26 PM: Using ruby version 2.2.9
3:39:26 PM: Using PHP version 5.6
3:39:26 PM: Installing Hugo 0.46
3:39:26 PM: Started restoring cached go cache
3:39:26 PM: Finished restoring cached go cache
3:39:26 PM: unset GOOS;
3:39:27 PM: unset GOARCH;
3:39:27 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.10.linux.amd64';
3:39:27 PM: export PATH="/opt/buildhome/.gimme/versions/go1.10.linux.amd64/bin:${PATH}";
3:39:27 PM: go version >&2;
3:39:27 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.10.linux.amd64.env';
3:39:27 PM: go version go1.10 linux/amd64
3:39:27 PM: Installing missing commands
3:39:27 PM: Verify run directory
3:39:27 PM: Executing user command: hugo --enableGitInfo -b $DEPLOY_PRIME_URL
3:39:29 PM: Building sites …
3:39:37 PM:

3:39:37 PM:                    |  EN  | CN
3:39:37 PM: +------------------+------+-----+
3:39:37 PM:   Pages            | 1339 | 163
3:39:37 PM:   Paginator pages  |  232 |   0
3:39:37 PM:   Non-page files   |  405 | 267
3:39:37 PM:   Static files     |  803 | 803
3:39:37 PM:   Processed images |    0 |   0
3:39:37 PM:   Aliases          |    3 |   1
3:39:37 PM:   Sitemaps         |    2 |   1
3:39:37 PM:   Cleaned          |    0 |   0
3:39:37 PM: Total in 8030 ms
3:39:37 PM: Caching artifacts
3:39:37 PM: Started saving pip cache
3:39:37 PM: Finished saving pip cache
3:39:37 PM: Started saving emacs cask dependencies
3:39:37 PM: Finished saving emacs cask dependencies
3:39:37 PM: Started saving maven dependencies
3:39:37 PM: Finished saving maven dependencies
3:39:37 PM: Started saving boot dependencies
3:39:37 PM: Finished saving boot dependencies
3:39:37 PM: Started saving go dependencies
3:39:37 PM: Finished saving go dependencies
3:39:37 PM: Build script success
3:39:37 PM: Starting to deploy site from 'public'
3:40:32 PM: Starting post processing
3:41:07 PM: Finished processing build request in 2m1.88368775s
3:43:02 PM: Post processing done
3:43:02 PM: Site is live

Confirmed the last commit fixed the bug that was breaking Netlify and also adds a related test to the smoke tests page. This is ready to go. 🍾

/lgtm
/approve


How to run puffin_egui?

Hello.
I have a problem with profiling with puffin_equi. I can't find info about running.
I try:
cd puffin/puffin_egui
cargo run --release --example macroquad
   Compiling memchr v2.5.0
   Compiling puffin v0.17.0 (/home/mhanusek/work/code/sandbox/puffin/puffin)
warning: associated function `new` is never used
   --> puffin/src/frame_data.rs:189:12
    |
188 | impl PackedStreams {
    | ------------------ associated function in this implementation
189 |     pub fn new(compression_kind: CompressionKind, bytes: Vec<u8>) -> Self {
    |            ^^^
    |
    = note: `#[warn(dead_code)]` on by default

   Compiling puffin_egui v0.23.0 (/home/mhanusek/work/code/sandbox/puffin/puffin_egui)
   Compiling nom v7.1.3
warning: `puffin` (lib) generated 1 warning
   Compiling xcursor v0.3.4
   Compiling wayland-cursor v0.29.5
   Compiling smithay-client-toolkit v0.16.0
   Compiling winit v0.28.6
   Compiling smithay-clipboard v0.6.6
   Compiling egui-winit v0.23.0
   Compiling glutin-winit v0.3.0
   Compiling eframe v0.23.0
    Finished release [optimized] target(s) in 8.68s
     Running `/home/mhanusek/work/code/sandbox/puffin/target/release/examples/macroquad`

What should be on output? Any file?

macroquad example is disabled. macroquad.rs main is empty and the other code is commented.
Try to use eframe example, instead.


pull request for e2e test at 01/29/2017 14:15:13

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Profile form

Basing on the most popular profile, I guess trekking, I propose to make a form for all true/false and values in the profile. Optionally with the import of such generated profile for later edits.

This is already implemented in #235, just not released yet on brouter.de.

Reopening and answering here from #235

After looking on screenshots, will be in this UI the most important thing - highway costs?

What do you mean exactly?
The UI is automatically generated for all variables defined with a special syntax after the comment (# %name% | comment | type), see e.g. the trekking.brf.
If you wanted a UI for all the individual highway cost factors, you could create a custom profile with separate variable definitions for those.
Importing such a custom profile and exporting the UI-modified profile is still not implemented yet though, see #26.

I've created a bunch of custom profiles and even written first in my life if... then lines, but it required reading and rough understanding whole text of a profile. If you want to bring web Brouter potential to masses lines like else if ( highway=tertiary|tertiary_link   ) then ( if isbike then 1.0 else 1.4' should be as GUI. I mean export/ import to a locally saved file.


Support for Dropwizard 0.8.0

Hi,
Does this work with latest version of dropwizard?

Try it out and let me know if it doesn't :)

Released versions for Dropwizard 0.8.0 and 0.8.1. Closing issue.


Use lighter weight plotting package

Plots.jl is extremely heavy-weight, but we only want to create a few line plots. This seems to sometimes result in out-of-memory errors on GitHub actions due to all the artifacts it has to build. Options:

Gadfly.jl + Cairo.jl. Still requires Cairo (for png export) but there seem to be fewer artifacts compared to Plots.jl
PlotlyLight.jl + PlotlyKaleido.jl. Probably the lightest option. However seems much less developed as its just a wrapper of Plotly, and my past experiences have been mixed as the docs aren't embedded in Julia.

an option is to make a couple of recipes for whichever packages you like and then just put them in package extensions (on julia 1.9+). Then the plotting functionality gets loaded only when a plotting library gets loaded.
e.g. using AirspeedVelocity; using Makie makes AirspeedVelocity.airspeedvelocityplot available; using AirspeedVelocity; using Plots makes Plots.plot(::SomeAirspeedObject) available, etc. I recently converted one of my projects to that style https://github.com/Krastanov/QuantumClifford.jl/pull/107/files#diff-b88b76a5f384bd43ba78aa7f76ce0ad19af09a9cfa5bce83c02fde8106f08273

Thanks, good idea.
Unfortunately I tried this but it seemed to be overly complicated to have both interfaces as PlotlyLight is a completely different plotting paradigm - basically passing JSONs around which specify a layout, rather than updating a dynamic plot type. Thus I think it might make sense to just take out the Plots.jl code altogether for now.
A plus of this is that PlotlyLight is a thin wrapper of Plotly.js, so it will be much easier to add interactivity later in a web GUI like asv does!
Made a PR in #15.

Side note: it would be cool to upload an interactive HTML page as part of running the benchmarks in a pull request.
For example, ShowYourWork builds a PDF and latexdiff PDF of changes: https://github.com/MilesCranmer/showyourwork_julia_example/pull/1#issuecomment-1509937554
^ It uploads these to a branch with the name {basebranch}-pdf.
So perhaps the github action for airspeedvelocity could create a branch {basebranch}-asv, and generate an interactive HTML page there. Then, it could provide a link to that page - going to it would load up an interactive Plotly.js plot.

Fixed by #15


Can we have an option to upload an image or a file in webchat

As on Messenger, is it possible that the user can upload a file (image, xls, doc or video) within webchat ?
Or how can we do that ?

Hello, at this moment, you cannot upload any file. You will have to code it yourself.