the six==1.8.0 requirement in requirements.txt causes dependency issues with other libraries

Requiring six==1.8.0, which was released in 2014 causes issues with other libraries that require more modern versions of six. Can you consider and test >=1.8.0? that would make things much easier for consumers of this as a dependency. Thanks!
https://pypi.org/project/six/#history

Another one affected by this issue here.
Thanks for providing a quick fix for this, @mmallis87.
Can you consider making a quick minor release to ship the fixed version to PyPI?

@mdw123 @dmand The change was pushed as part of v2.0.1. Please upgrade when you get a chance.

Appreciate your support, @mmallis87

Works for me, thanks for the release.

Thank you guys for your valuable input and stay tuned for the incoming support of eSignature API v2.1!


About maximum FPS

I have turned on CUDA acceleration. but still can only get about 30FPS (15FPS when I use the CPU). My graphics card is 3050ti. I observe that the GPU does not Full load, is this normal?
What is the maximum FPS that can be achieved?
If I want to increase FPS and improve my performance in the game, what should I do?

I have turned on CUDA acceleration. but still can only get about 30FPS (15FPS when I use the CPU). My graphics card is 3050ti. I observe that the GPU does not Full load, is this normal? What is the maximum FPS that can be achieved? If I want to increase FPS and improve my performance in the game, what should I do?

"the gpu does not fully load"   if you saw your gpu not at 100% in taskbar, that's ok because when using cuda, windows drivers do not see resources that are drained by using cuda on your gpu

I stumbled across this, and I see the stars so people must be using it. After trying to build similar projects, it's my opinion you'll never make this work well enough via python. I was just passing by and looked at the issues to see if this is really working for folks.
I feel like I could never get the frame capture to work as smoothly as I needed, and then on windows inference time was always much higher than Linux.


[SimpleBeam] floating point comparison error

the rootstations list of the Beam2D class is rounded to 4 decimal places, there are instances where this will cause the last station to be off of the beam due to number representation as floats. Need to account for this is both the beam stations and then further in the beamtools.py eval_piece_function function.

the eval_piece_function contained additional errors. I reworked the logic, added some tolerance for the range check, and initialized the res variable to avoid a "reference before assignment" error. So far this seems to be working but need further testing on decimal number values for the loads and span data as well as various conditions for distributed load start and end conditions relative the member ends.


ci  update ci config

Description
Update CI config

build(deps): bump codecov/codecov-action from 4.2.0 to 4.3.0
build(deps): bump github/codeql-action from 3.24.10 to 3.25.0
ci: 🐝 update CI config
build(deps): bump github/codeql-action from 3.25.0 to 3.25.1
build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.2
ci: 🐝 update pre-commit config
build(deps): bump actions/checkout from 4.1.2 to 4.1.3
ci: 💫 update pre-commit config
build(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3
build(deps): bump github/codeql-action from 3.25.1 to 3.25.2
build(deps): bump actions/checkout from 4.1.3 to 4.1.4
build(deps): bump github/codeql-action from 3.25.2 to 3.25.3
build(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.1
build(deps): bump step-security/harden-runner from 2.7.0 to 2.7.1

Type of change

[X] CI

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules

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

Project coverage is 76.92%. Comparing base (55e2afb) to head (ecd6593).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   76.92%   76.92%
=======================================
  Files          12       12
  Lines         520      520
  Branches      106      105    -1
=======================================
  Hits          400      400
+ Misses        115      114    -1
- Partials        5        6    +1

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


FAST Download-Speed displayed wrong

Hello,
i think that there is an overflow error in the code somewhere (i am not an python developer).
Testing against an 1GBit DSL line (1000/50MBit) shows an correct upload speed of 46MBit/s, but only a few MBit/s download!
Testing with webinterface (speedtest.net) shows (depending on time of day) between 600 and 850 MBit(s)

I've found the go-speedtest projec. This works fine for me, without overflows!

I can confirm there is a problem with download speed.
I use it each night, and since last night, it just gives me the double than my speed connexion.
Tue, 29 Sep 2020 04:02:17 -0400 (AST) Download: 4.33 Mbit/s
Wed, 30 Sep 2020 04:02:19 -0400 (AST) Download: 4.86 Mbit/s
Thu,  1 Oct 2020 04:02:23 -0400 (AST) Download: 4.30 Mbit/s
Fri,  2 Oct 2020 04:02:21 -0400 (AST) Download: 4.28 Mbit/s
Sat,  3 Oct 2020 04:02:16 -0400 (AST) Download: 8.92 Mbit/s


Error to install chaincode - error "Promise is rejected: Error:14 UNAVAILABLE "

Failed at installing chaincode locally
i read the "Error on installing chaincode  #187 " but i don't know what to do that this problem resolve. my local error is "Promise is rejected: Error:14 UNAVAILABLE "
Please help.

@kavyaub check:

if you are sending the call to the incorrect ip/port (check the ip/port of your peer)
peer is no longer running
networking issues (turn off firewalls for a test)

@dshuffma-ibm I ensured all the above, still getting the same error. Unsure why..

@kavyaub this can happen due to wrong TLS certificate. Looks like you are trying to connect to "grpc" endpoint using "grpcs"? or vice-versa.

@mrshah-at-ibm Yes.. I think that is it.. Thanks a lot.

can you help me？I have the same issue. don't find chain code.


Showing Launch video as popup

Describe the bug/feature
We can show Launch video as popup onclick to button 'Watch Launch'
To Reproduce
This can be implemented by making a pop-up page having video of launch which opens onclick to button and closes on click to area outside the videobox
@manankohlii Assign this issue during LGM-SOC contribution period.

Can I work on this issue under LGM SOC?

@ShwetKhatri2001 assigning you for now.


Xerces Test - Do Not Merge

This is a test to see if xerces builds correctly or not with icu4c.

Ok, so according to Xerce's web page, 5 different transcoders are supported:
--enable-transcoder-gnuiconv  	use the GNU iconv library
--enable-transcoder-iconv  	use the iconv library
--enable-transcoder-icu  	use the ICU library
--enable-transcoder-macosunicodeconverter  	use Mac OS X APIs (only on Mac OS X)
--enable-transcoder-windows  	use Windows APIs (only on Windows, Cygwin, MinGW)

Presumably we'll have to provide one of those first 3 on Linux to get this to work properly. I'll look into this more later and create a proper PR once I've got a plan to deal with it.

@rwhogg This would be useful indeed!

https://travis-ci.org/Linuxbrew/linuxbrew/builds/119718055#L715:
/home/travis/build/Linuxbrew/linuxbrew/Cellar/xerces-c/3.1.3/bin/SAXCount: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

Looks like it depends on curl too.


Readme edits

Two commits of tweaks to the README; one to fix typos, one for improved readability in a couple of lines.
Just amdcheck into our build process!

Thanks for your attention. Merging...


[BUG] ECS ContainerInsights metrics not pulling for ClusterName,ServiceName

Is there an existing issue for this?

[X] I have searched the existing issues

YACE version
0.54.1
Config file
apiVersion: v1alpha1
sts-region: eu-central-1
discovery:
  jobs:
    - type: ecs-containerinsights
      regions: [ eu-central-1 ]
      period: 300
      length: 300
      metrics:
        - name: CpuReserved
          statistics:
            - Average
        - name: ContainerInstanceCount
          statistics:
            - Average
        - name: CpuUtilized
          statistics:
            - Average
        - name: MemoryReserved
          statistics:
            - Average
        - name: MemoryUtilized
          statistics:
            - Average
        - name: StorageReadBytes
          statistics:
            - Average
        - name: StorageWriteBytes
          statistics:
            - Average
        - name: NetworkRxBytes
          statistics:
            - Average
        - name: NetworkTxBytes
          statistics:
            - Average
        - name: DesiredTaskCount
          statistics:
            - Average
        - name: TaskCount
          statistics:
            - Average
        - name: PendingTaskCount
          statistics:
            - Average
        - name: RunningTaskCount
          statistics:
            - Average
        - name: DeploymentCount
          statistics:
            - Average
        - name: TaskSetCount
          statistics:
            - Average

Current Behavior
Metrics like TaskCount are coming down correctly, but metrics like PendingTaskCount are not.
This appears to be that metrics with only a ClusterName requirements will work but not when ClusterName and ServiceName. In the AWS Cloudwatch Console you can see they are grouped as such

Where in the ClusterName,ServiceName tab you can see PendingTaskCount

But you cannot see it in the ClusterName tab

Expected Behavior
Metrics where the servicename dimension is required are accessible
Steps To Reproduce
Run the yace repo provided docker-compose with no changes but applying the config above
Anything else?
n/a

Here's a screenshot of the metrics I'm actually seeing given the config above.
I should have specified also that this is a Fargate cluster in case that is important

Hi @paulsjohnson91, can you try running YACE with the max-dimensions-associator feature flag? I believe it should solve this issue.

Thanks @cristiangreco that has indeed solved the issue


fix: add check to avoid crashes when currentActivity is null

Summary
We weren't always appropriately null-checking currentActivity, and the typecast could result in crashes. We now resolve with a consistent and useful error telling the user they can retry the method.
Motivation
closes https://github.com/stripe/stripe-react-native/issues/844 and I'm sure other instances of crashes on Android
Testing

[ ] I tested this manually
[ ] I added automated tests

Documentation
Select one:

[ ] I have added relevant documentation for my changes.
[x] This PR does not result in any developer-facing changes.

closes https://github.com/stripe/stripe-react-native/issues/881


WebApp - Update webapp according to the latest code (v1.1.24-extension)

Describe the task
Update webapp according to the latest code (v1.1.24-extension)

See updated content here: https://github.com/Koniverse/SubWallet-Extension/releases/tag/v1.1.24

Version test: SubWallet v 1.1.24 - 1124001
Close this task, related issue resolve later
Related issue:

https://github.com/Koniverse/SubWallet-Extension/issues/2325
https://github.com/Koniverse/SubWallet-Extension/issues/2326


espnow example cannot set channel 0 (IDFGH-4445)

Environment
freeRTOS version:V10.2.1
NEWLIB version:3.0.0
lwIP version:2-1-3-0
ESP-IDF version:v4.3-dev-1901-g178b122c1-dirty
chip model is 1, chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external flash
package is ESP32D0WDQ5

Problem Description
Call esp_now_add_peer() to add the device to the paired device list before you send data to this device.
The range of the channel of paired devices is from 0 to 14. If the channel is set to 0, data will be sent on the current channel.
But current channel range is 1 to 13.
    config ESPNOW_CHANNEL
        int "Channel"
        default 1
        range 1 13
        help
            The channel on which sending and receiving ESPNOW data.

    memset(peer, 0, sizeof(esp_now_peer_info_t));
    peer->channel = CONFIG_ESPNOW_CHANNEL;
    peer->ifidx = ESPNOW_WIFI_IF;
    peer->encrypt = false;
    memcpy(peer->peer_addr, s_example_broadcast_mac, ESP_NOW_ETH_ALEN);
    ESP_ERROR_CHECK( esp_now_add_peer(peer) );

Thanks for reporting, we will look into.

@nopnop2002 Thanks for reporting, a repaire patch will be released.


update for data-2023 and add path tests

Depends on https://github.com/gregsdennis/json-everything/pull/577
(doesn't really depend on it, but it has some other things that should ideally be merged first.)

Actually, I think I'm going to merge this into #577.  I need to release them both anyway, so I might as well figure out how to run them together now.


LLM based auto-naming for sessions

Is your feature request related to a problem? Please describe.
It's difficult to come up with session names, especially when you already have a ton of sessions.

Describe the solution you'd like

When saving a session, use a call to a small LLM with the contents of the session to generate an appropriate session name. This is a feature in many other LLM interfaces.
Describe alternatives you've considered

Could not find a good way to do this right now.
Additional context

Maybe related issues:
https://github.com/sigoden/aichat/issues/805
https://github.com/sigoden/aichat/issues/696
One problem is that session names will definitely have spaces and be human readable rather than machine readable. But I guess as long as it's a valid file path it should be fine.

Also, I would be willing to help with implementation if you decide to do this

Sorry, what do you mean by "...but also functions similarly to the advanced role."?
Also, in your usage of AIChat, do you not end up with a significant amount of sessions to the point it becomes unmanageable? Is there a workflow that I'm missing? This is the underlying problem for why I opened this ticket

Many people don’t saving session.
Those who do care about saving chat history in session, can address it via #805, or don't mind coming up with a appropriate name.
AIChat is a REPL, unlike other UIs, not good at listing the session names and displaying the session details in one interface.
Auto-naming for sessions in AIChat is not as valuable as you think.
We don't plan on supporting it any time soon.


There is a black bar at the bottom of the output video after applying the effect ?

Hi, @numberwolf, thank you for your nice work! I can now apply effects on videos, but sometimes(not always) there is a black bar at the bottom in the output video, and i am sure the input is all right.  Do you have any idea why did it happened? I  can provide more details if necessary. Thank you!

Hi, @zomeelee
Can you give me your input video with your filter content?
I need to check here's problem.

And your shader files

Hi, @numberwolf, thank you for your reply! As I used a bash file to process multiple videos at one time, this is the command that I used:
add_effect_on_video_command_line=(./ffmpeg -i ${effect_in_file} -filter_complex "[0:v]plusglshader=sdsource='${effect_fragment_shader}':vxsource='${effect_vertex_shader}'" -c:v libx264 -pix_fmt yuv420p -y ${current_effect_out_video})
and the vertex shader is:
attribute vec2 position;
varying vec2 TextureCoordsVarying;
const float PI = 3.1415926;
uniform float playTime;

void main(void)
 {
    gl_Position = vec4(position, 0, 1);
    TextureCoordsVarying.x = position.x * 0.5 + 0.5;
    TextureCoordsVarying.y = position.y * 0.5 + 0.5;
}

and the fragment shader is:
uniform sampler2D tex;
varying vec2 TextureCoordsVarying;
uniform float playTime;

void main() {
    //TextureCoordsVarying.x = TextureCoordsVarying.x * 0.5 + 0.5;
    //TextureCoordsVarying.y = TextureCoordsVarying.y * 0.5 + 0.5;

    float duration = 0.7;
    float maxAlpha = 0.4;
    float maxScale = 1.8;

    float progress = mod(playTime, duration) / duration; // 0~1
    float alpha = maxAlpha * (1.0 - progress);
    float scale = 1.0 + (maxScale - 1.0) * progress;

    vec2 uv = TextureCoordsVarying.xy;
    vec4 col = vec4(1.0);

    gl_FragColor = texture2D(tex, uv)*vec4(1.0, 1.0, 0.5, 0.5);
}

and the input and output video are as below:
https://user-images.githubusercontent.com/5763634/119659138-77254080-be60-11eb-8f1d-76ba8774a266.mp4
https://user-images.githubusercontent.com/5763634/119659165-80aea880-be60-11eb-8c17-7e327ea76977.mp4

I have rerun it on my macbook. It's successed.

Which your system? Linux without video card , mac or windows?
I need your enviorment's informations.

Did you running with xvfb?

Successed on Ubuntu without video card.
See:
http://hevc.xvideo.video/output.mp4
my code:
local file_path="./github-gl-badcase.mp4"
    shadername="old"

    xvfb-run -a --server-args="-screen 0 1280x720x24 -ac -nolisten tcp -dpi 96 +extension RANDR" \
    ./ffmpeg -v debug \
    -ss 0 -t 5 \
    -i $file_path \
    -filter_complex \
    "plusglshader=sdsource=./${shadername}_shader.gl:vxsource=./${shadername}_vertex.gl:duration=5" \
    -vcodec libx264 \
    -an \
    -pix_fmt yuv420p \
    -y output.mp4

Hi, @numberwolf ,
my environment is :
MacBook Pro,
macOS Big Sur = 11.2.3,
ffmpeg=4.3.2
It's very strange that the black bar at the bottom sometimes appears, and sometimes when I export the video once again, it's gone!  what's the reason maybe behind the strange thing?

Emmmm...
I guess the reasons:

player's problem
you were exit before the video transcode finished
video card's problem?

Hi, @numberwolf,
thank you for your time and suggestions!
After testing many times, it seems that the strange thing happens because of the  external monitor.  Almost everytime when my MacBook connects to the external monitor, the black bar appears in the output video, but  when I unplug  the external monitor, the result is OK.
I don't know what's the real reason behind it.  Maybe the external monitor changes the OpenGL Context?
Thank you once again for your nice work, @numberwolf !

Its my pleasure~


Speed of imports

I was getting started with the examples after running a successful build flow for Zybo Z7-10 board, to get an image with pynq packages. I noticed that few of the imports take a really long time, like from pynq import Xlnk takes ~7 seconds to complete. That doesn't seem all right I guess? (I am able to use it in the desired way, create numpy arrays etc, just that the imports take a really long time)

It's a known issue - PYNQ pulls in a lot of libraries when it gets imported. We're looking into ways to speed up the process.


Tests and fixes for the generate_etag/2 callback

See Issue #148 for more information.

Merged and will be pushed shortly, thanks!


Ensure triggering closing expired positions from coordinator still works

Doing this in the phase of doing https://github.com/get10101/10101/issues/1807

I didn't retest if the time windows are correct, but an expired position is proposed to be settled and settled successfully into the channel.


Feature Request: Canvas png compression

Is possible to include PNG compression option to html2canvas?
The Canvas Jpeg output to as an image is losing a lot of details and pixelated, I think png format  with index color space would be the better & small output.
The big reason that I ask for it is I want to keep the image quality, details and also be able to control the PNG image size. Like Google Adword, the ad size is not allowed to over 150Kb, a lot of sizes are small, so would be better to use png format to keep the sharpening of the images.
Thanks!
https://github.com/ShyykoSerhiy/canvas-png-compression

You can use the provided library (or any other compression library for that matter) outside of html2canvas and as such, won't be bundled with html2canvas.


Support Gemini (Google Generative AI) Platform

Support the Google generative AI platform and the Gemini models, as documented here:

docs: ..
login: ...

Requirements:

[x] Add Gemini  Vendor
[x] Add Gemini vector icon
[x] Implement Setup and (transport) Access
[x] Implement Transport
[x] Implement Model List mapping (tokens, name, description, etc)
[x] Implement Streaming endpoint
[x] Test
[x] Ship 🚀

When will this be ready please?
Any estimated time?

Support the Google generative AI platform and the Gemini models, as documented here:

docs: ..
login: ...

Requirements:

[ ]  Add Gemini  Vendor
[ ]  Add Gemini vector icon
[ ]  Implement Setup and (transport) Access
[ ]  Implement Transport
[ ]  Implement Model List mapping (tokens, name, description, etc)
[ ]  Implement Streaming endpoint
[ ]  Test
[ ]  Ship 🚀

When will be first version ready?

@david-strejc  This week, ideally tomorrow, at least with the basic features.

@david-strejc This week, ideally tomorrow, at least with the basic features.

Many MANY thanks. We are curious what we can do with Gemini.

Support almost complete. Will finish tomorrow.

list models; ✅
immediate generation: ✅
streaming generation: will be done next
image/multi-part input: not ready yet, needs to change all LLM providers - prob preview late this week

Code landed for a very good implementation of Gemini.

includes streaming, non-streaming, list models
includes changeable safety settings
includes multipart text conversation building

Next up:

ship this in #283, quickly
enable the images multi-part pipeline


fixes decision when to auto-create indices at the bulk shard processor

the method to create pending indices will also execute all write item
requests once its done. so either this method is called, or if no pending
indices to create exists, execute write item request.
don’t do both sequentially, otherwise it could happen that the index is
not fully started (shard not started) while executing writes.

pls wait, will split into 2 commits

Codecov Report

Merging #5389 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #5389      +/-   ##
============================================
- Coverage     82.29%   82.22%   -0.08%
+ Complexity    11243    11229      -14
============================================
  Files          1356     1356
  Lines         44264    44264
  Branches       5573     5573
============================================
- Hits          36429    36397      -32
- Misses         5221     5255      +34
+ Partials       2614     2612       -2

Impacted Files
Coverage Δ
Complexity Δ

.../elasticsearch/action/bulk/BulkShardProcessor.java
75.72% <100%> (+3.26%)
46 <5> (+2)
:arrow_up:

...ate/operation/udf/UserDefinedFunctionResponse.java
20% <0%> (-80%)
1% <0%> (-3%)

...n/java/io/crate/exceptions/JobKilledException.java
0% <0%> (-66.67%)
0% <0%> (-1%)

...peration/udf/CreateUserDefinedFunctionRequest.java
47.36% <0%> (-42.11%)
5% <0%> (-2%)

.../operation/udf/DropUserDefinedFunctionRequest.java
40% <0%> (-37.15%)
6% <0%> (-2%)

...crate/executor/transport/TransportShardAction.java
72.97% <0%> (-16.22%)
8% <0%> (-1%)

...crate/planner/projection/MergeCountProjection.java
63.63% <0%> (-9.1%)
5% <0%> (-1%)

.../udf/TransportCreateUserDefinedFunctionAction.java
75% <0%> (-8.34%)
4% <0%> (-1%)

.../distributed/TransportDistributedResultAction.java
70.31% <0%> (-7.82%)
7% <0%> (-1%)

...on/udf/TransportDropUserDefinedFunctionAction.java
92.3% <0%> (-7.7%)
4% <0%> (-1%)

... and 31 more

Continue to review full report at Codecov.

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


Improve benchmarks

Fix #67
@timriley I started playing with the benchmarks 😄
I have to say is not that easy to follow ActionView code, but with this first iteration I manage both to work, but unfortunately looks like dry-view is slower 😢
I think is because in order to actually test ActionView correctly we might need to create an actual controller and allow ActionView to discover, and also since I'm giving the template, is missing some regex operations to get the controller name and the action name.
But never the less this is the start and having the code here we can discuss what would be the most accurate benchmark.

Previous results:
Warming up --------------------------------------
          actionview    25.749k i/100ms
            dry-view    31.475k i/100ms
Calculating -------------------------------------
          actionview    277.983k (± 3.2%) i/s -      1.390M in   5.007837s
            dry-view    344.799k (± 3.6%) i/s -      1.731M in   5.028609s

Comparison:
            dry-view:   344799.1 i/s
          actionview:   277982.6 i/s - 1.24x  slower

New results:
Warming up --------------------------------------
          actionview   855.000  i/100ms
            dry-view   115.000  i/100ms
Calculating -------------------------------------
          actionview      9.072k (± 2.8%) i/s -     46.170k in   5.093228s
            dry-view      1.160k (± 2.8%) i/s -      5.865k in   5.059723s

Comparison:
          actionview:     9072.1 i/s
            dry-view:     1160.1 i/s - 7.82x  slower

@timriley I have clean the benchmarks and not personal information is shown 😄
Also I much more happy with the new benchmarks I think they are more reliable than the previous ones.
Both benchmarks test the different controller implementations by rendering a layout a template and a partial.
Here are the results:
Warming up --------------------------------------
   action_controller   544.000  i/100ms
            dry-view   132.000  i/100ms
Calculating -------------------------------------
   action_controller      5.699k (± 3.1%) i/s -     28.832k in   5.064273s
            dry-view      1.318k (± 2.0%) i/s -      6.600k in   5.011378s

Comparison:
   action_controller:     5699.3 i/s
            dry-view:     1317.6 i/s - 4.33x  slower


MultiAccount for same PayID

Detailed Description
We could provide multiple accounts (XRPL-Mainnet) under one PayID using "sub-domains".  If a sub is present it references a specific account if it is absent a default account is used.
Example prod.johndoe$xpring.money

Using the example below are two mainnet accounts applied to johndoe$xpring.money.  A default key, value pair is applied and if Default = True sub must = null.  If default False a sub value may be applied.  the sub then allows for the client to query prod.johndoe$xpring.money to specify the main account and  johndoe$xpring.money when using default account.
Context

It benefits everyone so that they can maintain one PayId instead of multiple.
Possible Implementation
{
  "payId": "johndoe$xpring.money",
  "addresses": [
    {
      "paymentNetwork": "XRPL",
      "environment": "MAINNET",
      "default":True,
      "sub":null
      "details": {
        "address": "TVQWr6BhgBLW2jbFyqqufgq8T9eN7KresB684ZSHKQ3oDth"
      }
    },
    {
      "paymentNetwork": "XRPL",
      "environment": "MAINNET",
      "default":False,
      "sub":prod
      "details": {
        "address": "X7zmKiqEhMznSXgj9cirEnD5sWo3iZSbeFRexSFN1xZ8Ktn"
      }
    }
  ]
}

Alternatives Considered
Alternatives are allowing for multiple accounts to be created and having a descriptor or title instead of sub.  No default would exist.  The client would query the payid as normal.  A list would be provided showing the title and the user can select the appropriate one.
{
  "payId": "johndoe$xpring.money",
  "addresses": [
    {
      "paymentNetwork": "XRPL",
      "environment": "MAINNET",
      "details": {
      "title":Child_trust
        "address": "TVQWr6BhgBLW2jbFyqqufgq8T9eN7KresB684ZSHKQ3oDth"
      }
    },
    {
      "paymentNetwork": "XRPL",
      "environment": "MAINNET",
      "details": {
      "title":Savings
        "address": "X7zmKiqEhMznSXgj9cirEnD5sWo3iZSbeFRexSFN1xZ8Ktn"
      }
    }
  ]
}

Additional Context
None
Bonus
Not for the short term.

Some other alternatives:

Gmail emails ignore anything after the + sign, so we could make that the special character and have aliases like johndoe+prod.
If we did a name property for addresses, we could add another property that was default: boolean, to indicate which address was the default
Or, instead of a default key, we could add a preferenceRank: number, to be used as a sort order, so you could assign a preference for which address to get used.

Some other alternatives:
* Gmail emails ignore anything after the `+` sign, so we could make that the special character and have aliases like `johndoe+prod`.

* If we did a `name` property for addresses, we could add another property that was `default: boolean`, to indicate which address was the default

* Or, instead of a `default` key, we could add a `preferenceRank: number`, to be used as a sort order, so you could assign a preference for which address to get used.

I can see the +prod suffix working as well, I like it.  I dont think it would really matter which way it went as it would be simple enough to separate the two  johndoe and prod.  Probably the deciding factor is which one fits more to industry standard in this situation.  That was a hidden feature with gmail for a long time, for me anyway.
Could you explain the difference of the name and  default properties offered vs the sub and default  in original thread.  they sound very similar.

Regardless of whether the property is called name or sub, the key difference would be whether or not it is visible in the PayID.
So, one option is johndoe+prod, where the address has a sub/name of prod.
The other is that you always just ask for johndoe, and then select the address you want to send to. This is what you described in your "Alternatives Considered" as a descriptor or title.


Az 455 use component network in data io

Hello, this is an optional contribution to already existing branch which has PR on (https://github.com/Cardinal-Cryptography/aleph-node/pull/276). Feel free to reject or accept it, I don't want to block original PR. When rejected, I'll submit 'normal' PR to CC/aleph-node .
Testing done:

build,
UT,
4 nodes locally run via run_nodes.sh are finalizing blocks

Declining this PR - would raise another one to CC/main.


bug: mqtt retained message cause spam

Scenario
One device is off for some reason (maintenance...), if the core continue to publish mqtt messages, then when the device will be up again, the broker will send every missed message causing a huge spam and undesired behavior.
Ideas
See clean_start param when calling connect

Did not get the issue again. The spam was caused because two pythons programs tried to create mqtt connection with the same mqtt client name, which caused conflicts:

python A create mqtt connection 'something'
python B create mqtt connection 'something'
mqtt broker disconnect A to connect B, then disconnect B to connect A.... Endless loop because clients were trying to reconnect again and again.


Fix interpolation when passing lat/lon files and station file

Fix the interpolation in two places, where the points for interpolation are input (lats/lon were out of order) and use the exact DEM bounds for interpolating heights

Here you can see the correct positions of the islands in the DEM vs the delays as well as the topography

This is marked as draft until tests are implemented for validity, a check with the station files, and existing tests are passed


Dataset not available

Baidu cloud works only with chinese.
Can you share it on another cloud working for all?

I upload the data to Google Drive, here is the link : https://drive.google.com/drive/folders/19AHndewa_cmM3ttbAnu5WZQbv6IcC_bb?usp=drive_link

Thank you ^_^


Add .npmignore file to slim up npm package

Instructions
To reduce disk size of the npm package we need to create a .npmignore.

Problem
Right now we are including all the things in the npm package like .changesets file.

@justinbarry Great idea 👍
It seems more common to use whitelisting using the files array in package.json these days though. Here's an npm blog article about it, few years old now but great points there https://blog.npmjs.org/post/165769683050/publishing-what-you-mean-to-publish
Happy to drop a PR about this.


DatabaseIsNotOkError problem

After run ghost update, can not start again, need some help.
lihao@ubuntu:~/ghost$ ghost version
Ghost-CLI version: 1.7.3
Ghost Version (at ~/ghost): 1.22.5

lihao@ubuntu:~/ghost$ knex-migrator migrate
[2018-05-10 06:48:56] INFO Finished database migration!
lihao@ubuntu:~/ghost$ ghost run
The `ghost run` command is used by the configured Ghost process manager and for debugging. If you're not running this to debug something, you should run `ghost start` instead.
Running sudo command: node current/index.js
[2018-05-10 06:49:02] WARN knex-migrator is skipping 1.9
[2018-05-10 06:49:02] WARN Current version in MigratorConfig.js is smaller then requested version, use --force to proceed!
[2018-05-10 06:49:02] WARN Please run `knex-migrator migrate --v 1.9 --force` to proceed!
[2018-05-10 06:49:02] ERROR

NAME: DatabaseIsNotOkError
CODE: DB_NEEDS_MIGRATION
MESSAGE: Migrations are missing. Please run `knex-migrator migrate`.

level:normal

If knex-migrator is not installed, please run "npm install -g knex-migrator"
Read more here: https://github.com/TryGhost/knex-migrator
DatabaseIsNotOkError: Migrations are missing. Please run `knex-migrator migrate`.
    at DatabaseIsNotOkError.KnexMigrateError (/home/lihao/ghost/versions/1.22.5/node_modules/knex-migrator/lib/errors.js:7:26)
    at new DatabaseIsNotOkError (/home/lihao/ghost/versions/1.22.5/node_modules/knex-migrator/lib/errors.js:19:26)
    at /home/lihao/ghost/versions/1.22.5/node_modules/knex-migrator/lib/index.js:1066:27
    at /home/lihao/ghost/versions/1.22.5/node_modules/lodash/lodash.js:4925:15
    at baseForOwn (/home/lihao/ghost/versions/1.22.5/node_modules/lodash/lodash.js:3010:24)
    at /home/lihao/ghost/versions/1.22.5/node_modules/lodash/lodash.js:4894:18
    at Function.forEach (/home/lihao/ghost/versions/1.22.5/node_modules/lodash/lodash.js:9342:14)
    at /home/lihao/ghost/versions/1.22.5/node_modules/knex-migrator/lib/index.js:1063:15
    at tryCatcher (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:638:18)
    at Promise._resolveCallback (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:432:57)
    at Promise._settlePromiseFromHandler (/home/lihao/ghost/versions/1.22.5/node_modules/bluebird/js/release/promise.js:524:17)

Hey @adanteng   👋
We ask that you please do not use GitHub for help or support, the default issue template pointed you to our forum for this type of question 😄 We use GitHub solely for bug-tracking and on-going feature development so we try to keep it noise free.
This is also the wrong repository. If you think this is a bug, please open an issue in the Ghost-CLI repository and provide as much information as possible. Otherwise there's no way for us to reproduce your case and fix it.
Many questions can be answered by reviewing our docs for self-hosters, our theme API, or our public API. If you can't find an answer then our forum is a great place to get community support, plus it helps create a central location for searching problems/solutions.
FYI: Many projects have their own support guidelines and GitHub will highlight them for you, or the project owners will use issue templates to point you in the right direction, please read them before opening issues


[#1585] feat(server): Support app-level block size statistics to report metrics

What changes were proposed in this pull request?
added shuffle block size metric of type histogram.
Why are the changes needed?
related  feature https://github.com/apache/incubator-uniffle/issues/1585
Does this PR introduce any user-facing change?
No.
How was this patch tested?
new UTs.

Codecov Report
Attention: Patch coverage is 77.41935% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 54.08%. Comparing base (403a7a9) to head (dfcc53f).

Files
Patch %
Lines

...he/uniffle/server/buffer/ShuffleBufferManager.java
80.00%
1 Missing and 3 partials :warning:

...java/org/apache/uniffle/common/util/Constants.java
0.00%
2 Missing :warning:

.../apache/uniffle/common/metrics/MetricsManager.java
0.00%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1593      +/-   ##
============================================
+ Coverage     54.01%   54.08%   +0.06%
+ Complexity     2863     2295     -568
============================================
  Files           438      361      -77
  Lines         24850    16125    -8725
  Branches       2114     1471     -643
============================================
- Hits          13423     8721    -4702
+ Misses        10586     6896    -3690
+ Partials        841      508     -333

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

ping~ @zuston @jerqi @EnricoMi

LGTM. I will merge this. Thanks for your contribution

We should wait for @EnricoMi 's suggestion at least one or two days.

Thanks @EnricoMi @rickyma @zuston @leslizhang , merged to master.


Results not uploaded to HearthStats

After a match ends, HSTracker notifies that it successfully uploaded the results, but it does not - HearthStats is not updated. Login and password are correctly configured (and successful login was confirmed by HSTracker). I am using OSX 10.10.5, please let me know if you need me to run any tests and give any information. Thank you!

Hi,
Could you check if your results are on Hearthstats now ? I'm guessing a problem with date offset

Hi, the old data is not in HearthStats. There should be at least 10 ranked games in the last few days, and 5 arena games from yesterday. The only data there is the arena run that i entered manually on the website. I will also test with new ranked/arena games and I will report if upload works.

I just tested with a new deck created for Tavern Brawl. The deck itself was uploaded to HearthStats when I saved it. After I edited the deck, the application asked me to save it, but the new changes were not sent to HearthStats (the original version is still there). No game results were uploaded (this might be normal, as we are talking about Tavern Brawl here, not about constucted or Arena).

I tested with the latest beta (build 380) and it works in the following conditions:

I deleted my deck from both HearthStats and HSTracker
I re-created the deck in HSTracker and saved it, confirmed that I want the deck saved to HearthStats
the deck was correctly sent to HearthStats
the game results were also correctly reported to HearthStats

I will also test more scenarios (like editing a saved deck to check if the updates make it to HearthStats), but as of current build this seems not to reproduce anymore/fixed.

This should be fixed (if not, feel free to reopen an issue)


Code of conduct

Code of conduct taken from the GitHub template.

looks like the CoC accidentally got tangled into the SonarCloud PR. (One way to resolve would be to checkout the code before d6feb27, make a temporary CoC branch, and issue the PR from that)

Will start over with the LF CoC.


Incorrectly trying to determine the IP

There seems to be a problem with evaling the code here. One of my colleagues had his WiFi set up on en1, so the first line there was not returning.
The fallback using ifconfig does not work because the awk parameters are tried to resolved in the original context (the ' escape the code from the eval from what I can tell).
I'm mostly curious as to why eval is being used in the first place.

Actual behavior
IP ends up being empty

I noticed this too and have this fixed in https://github.com/blargity/react-native-schemes-manager/pull/38
But someone needs to merge the pull request.

@deecewan This PR is now merged. Can you try the new version if you still have this problem?

I'll go ahead and close this issue as I believe it's resolved. If I'm wrong, apologies in advance and please feel free to open a new one.


Error: Inconsistent dependency lock file

Note I'm doing something rather strange, this is almost certainly not a common use-case.
I have a system testing setup, where several (~10) copies of our system are booted to provide a 'pool' of instances that the test runner can use to run tests on. The system comprises several different applications with dependencies on one another. We have a big bash script that boots the whole lot in docker. I'm trying to replace a lot of bash script and docker with terraform / terragrunt configuration instead to make it more scaleable, maintainable, and flexible.
In order to keep the boot time for this setup reasonable, I need to start the different copies (referred to as 'stacks') in parallel.
In order to achieve parallel boot, I'm running terragrunt multiple times in parallel, once per 'stack'. The state and data directories are kept separate from one another in order that they don't interfere. I have a terragrunt file that looks like this:
# Containers isolated per stack, use separate data and state directories per-stack
locals {
  stack_suffix = get_env("TF_VAR_stack_suffix", "")
}
remote_state {
  backend = "local"
  config = {
    path = local.stack_suffix == "" ? ".state/terraform" : "./.${local.stack_suffix}.state/terraform"
  }
  # https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#dependency
  # You are not relying on before_hook, after_hook, or extra_arguments to the terraform init call.
  # NOTE: terragrunt will not automatically detect this and you will need to explicitly opt out of the dependency
  # optimization flag.
  disable_dependency_optimization = true
}
terraform {
  extra_arguments "stack_workspace" {
    env_vars = {
      TF_DATA_DIR = local.stack_suffix == "" ? ".terraform" : ".${local.stack_suffix}.terraform"
    }
    commands = [
      "init",
      "apply",
      "refresh",
      "import",
      "plan",
      "taint",
      "untaint",
      "output"
    ]
  }
  # Multiple processes will read this lockfile simultaneously
  # so it's not safe to allow updates
  extra_arguments "lockfile_readonly" {
    commands = [
      "init"
    ]
    arguments = [
      "-lockfile=readonly",
    ]
  }
}

This mostly works, however I'm occasionally hitting an error where the terraform dependency lock file appears to be inconsistent
16:14:38 Error: Inconsistent dependency lock file

Terraform already accepts a command to prevent it from updating the terraform lock file, and I'm specifying this in my configuration above. However, terragrunt itself is also modifying the lock file: https://github.com/gruntwork-io/terragrunt/blob/4fb4c70b9160630f0ca9074635c5c9885edef066/cli/cli_app.go#L734
In my case, it's actually just copying the same file over itself (since terraform is not trying to change it) but it's enough that occasionally a terraform process sees an invalid lock file.
I can most likely work around this by separately running terragrunt run-all init sequentially for each stack, before running terragrunt run-all apply in parallel for each stack.
Alternatively, this copy command can be a little smarter and skip the copy if the file contents are actually the same file. I'll see if I can raise a PR.

As a workaround, I can run init serially, and separate from apply, so that the dependency lock file is never modified by multiple processes.

Hi,
I was wondering if for each parallel invocation, can be passed different terragrunt-working-dir to save separated state files and avoid copy of other state files

Hi @denis256 , thanks for the suggestion.
Maybe it would work? My understanding is that I would also need to copy all my actual terraform files to that folder as well. My folder structure at the moment looks like:
stack
 L terragrunt.hcl       <-- this is the file shown above
 L app1
   L terragrunt.hcl
   L main.tf
   L .1.state
     L terraform
   L .1.terraform
     L ... files ...
   L .2.state
     L terraform
   L .2.terraform
     L ... files ...
 L app2
   L terrgrunt.hcl
   L main.tf
   L ...

and if I took your suggestion I think I could dispense with the special modifications to the .terraform and .state directories, and I would have a structure more like
stack
 L terragrunt.hcl
 L app1
   L terragrunt.hcl
   L main.tf
 L app2
   L terragrunt.hcl
   L main.tf
stack-1
 L terragrunt.hcl
 L app1
   L terragrunt.hcl
   L main.tf
   L .state
     L terraform
   L .terraform
     L ... files ...
 L app2
   L terragrunt.hcl
   L main.tf
   L .state
     L terraform
   L .terraform
     L ... files ...
stack-2
 L ... as above ...

which is probably... fine! thanks for the idea!

I ran into this issue - and I think its related to this in my case:
the config.key (see-below for context) was set to format("%s/terraform.tfstate", path_relative_to_include()).  Since I have a mirrored tree layout (same-named folders with terragrunt.hcl)  between us-east-1 and us-east-2, I think the system was trying to re-use the same key for the modules within the s3 bucket.
.
├── us-east-1
│  ├── _backend.tf
│  ├── aws-infrastructure
│  │  └── aurora
│  │     └── terragrunt.hcl
│  ├── main_providers.tf
│  └── terragrunt.hcl  <-- this file has the remote_state definition for us-east-1
└── us-east-2
   ├── _backend.tf
   ├── aws-infrastructure
   │  └── aurora
   │     └── terragrunt.hcl
   └── terragrunt.hcl <-- this file has the remote_state definition for us-east-2

remote_state {
  backend      = "s3"
  disable_init = tobool(get_env("TERRAGRUNT_DISABLE_INIT", "false"))

  generate = {
    path      = "_backend.tf"
    if_exists = "overwrite"
  }

  config = {
    encrypt        = true
    region         = "us-east-2". <-- the bucket region has to stay the same
    key            = format("%s-us-east-2/terraform.tfstate", path_relative_to_include())
    bucket         = format("terraform-states-%s", get_aws_account_id())
    dynamodb_table = format("terraform-states-%s", get_aws_account_id())

    skip_metadata_api_check     = true
    skip_credentials_validation = true
  }
}


Define Location field

Please define the ParkingSlot.Location field (type mainly) accoring to the usages you found, and use in google maps.
The field is corrently Object, so please update.

Done.
Next step is to update the location field type in the database.


Flash Attention 2.0 doesn't work: undefined symbol: _ZNK3c1010TensorImpl27throw_data_ptr_access_errorEv

Hi there,
cloing the repo and running pytest tests/test_flash_attn.py gives
ImportError while importing test module '/root/flash-attention/tests/test_flash_attn.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_flash_attn.py:10: in <module>
    from flash_attn import flash_attn_func, flash_attn_kvpacked_func, flash_attn_qkvpacked_func
/usr/local/lib/python3.10/dist-packages/flash_attn/__init__.py:3: in <module>
    from flash_attn.flash_attn_interface import flash_attn_func
/usr/local/lib/python3.10/dist-packages/flash_attn/flash_attn_interface.py:4: in <module>
    import flash_attn_2_cuda as flash_attn_cuda
E   ImportError: /usr/local/lib/python3.10/dist-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl27throw_data_ptr_access_errorEv

maybe somebody else have encountered this
Thanks a lot,
Fra

Error persist also on a small stupid tests
import torch
from torch import nn
from flash_attn import flash_attn_qkvpacked_func

qvk = nn.Linear(1, 3, 196, 512).cuda()

res = flash_attn_qkvpacked_func(qvk=qvk)
print(res.shape)
print(res)

Traceback (most recent call last):
  File "/root/main.py", line 3, in <module>
    from flash_attn import flash_attn_qkvpacked_func
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/__init__.py", line 3, in <module>
    from flash_attn.flash_attn_interface import flash_attn_func
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/flash_attn_interface.py", line 4, in <module>
    import flash_attn_2_cuda as flash_attn_cuda
ImportError: /usr/local/lib/python3.10/dist-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl27throw_data_ptr_access_errorEv

I think you compiled with 2.0.7 and I am using torch 2.1.0

using
FROM nvcr.io/nvidia/pytorch:23.06-py3

so python 3.10, cuda 12.1 and torch 2.1 (see nvidia doc) and the correct wheel (https://github.com/Dao-AILab/flash-attention/releases/download/v2.0.7/flash_attn-2.0.7+cu121torch2.1cxx11abiTRUE-cp310-cp310-linux_x86_64.whl) still result in the same error
import flash_attn_2_cuda as flash_attn_cuda

ImportError: /usr/local/lib/python3.10/dist-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl27throw_data_ptr_access_errorEv

to

Thanks a lot, will try as soon as I go back to my pc, out of curiosity could to give me more details about due to pytorch interface changing between the version used in 23.06 and 23.07?

Oh it's a low-level change in error handling. Pytorch added this "throw_data_ptr_access_error" function in May 11. nvcr 23.06 uses pytorch version on May 2 and nvcr 23.07 uses pytorch version on June 7.

Try a  cxx11abiFALSE version

Hi @tridao! I have some troubles with python3.10, so I need to use nvcr 23.04.
Is their any suggestion to handle this import error with lower version of images?

You can compile from source with FLASH_ATTENTION_FORCE_BUILD=TRUE:
FLASH_ATTENTION_FORCE_BUILD=TRUE pip install flash-attn.

Thank you for fast response! I will try it

Thank you It seems that it is working now

Thanks for the report. I saw just this error on nvcr 23.06 as well. nvcr 23.07 should work, can you try? The error is due to pytorch interface changing between the version used in 23.06 and 23.07.

Hi @tridao what is nvcr and how to change its version?

import flash_attn_2_cuda as flash_attn_cuda
ImportError: /home/nallu002/anaconda3/envs/myenv/lib/python3.9/site-packages/flash_attn_2_cuda.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl
I am still facing this error. Chnaged the torch version from 2.1.2 to 2.1.0. And it is still not working.

Also facing this error, in Databricks.
Torch Version: 2.1.0+cu121
torch.cuda.get_device_capability(): (7,0)
Compiled from source but that did not work for me.
ImportError: /databricks/python/lib/python3.10/site-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106SymIntltEl

Try a cxx11abiFALSE version 试用版本 cxx11abiFALSE
You can use this to solve the problem. Use pip to install the version package that matches yours directly.
I use python 10, cuda11.8  torch 2.0,    cxx11abiFALSE

https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.2/flash_attn-2.5.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

Also facing this.

Also facing this issue with nvcr 24.01-py3

For nvcr 23.12 and 24.01 please use flash-attn 2.5.1.post1

Try a cxx11abiFALSE version

Really helpful!

Try a cxx11abiFALSE version 试用版本 cxx11abiFALSE
You can use this to solve the problem. Use pip to install the version package that matches yours directly.
I use python 10, cuda11.8  torch 2.0,    cxx11abiFALSE

https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.2/flash_attn-2.5.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

thank you. That's work for me.

Thanks for the report. I saw just this error on nvcr 23.06 as well. nvcr 23.07 should work, can you try? The error is due to pytorch interface changing between the version used in 23.06 and 23.07.

Hello, how can i use the version in nvcr 23.07, any details?

You can compile from source with FLASH_ATTENTION_FORCE_BUILD=TRUE: FLASH_ATTENTION_FORCE_BUILD=TRUE pip install flash-attn.

is this genral useful for  different  nvcr versions?
I a using   "pytorch/pytorch:2.2.2-cuda12.1-cudnn8-devel"  "# FROM nvcr.io/nvidia/pytorch:22.07-py3"  "# FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
"

I got similar error. I think this error is caused by cuda version. I added:
export CUDA_HOME=/usr/local/cuda
export PATH="/usr/local/cuda/bin${PATH:+:${PATH}}"
export LD_LIBRARY_PATH="/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
to the end of ~/.bashrc
and source ~/.bashrc
then reinstall pytorch and flash attention.
It works.

Doing this:

Try a cxx11abiFALSE version 试用版本 cxx11abiFALSE
You can use this to solve the problem. Use pip to install the version package that matches yours directly.
I use python 10, cuda11.8  torch 2.0,    cxx11abiFALSE

https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.2/flash_attn-2.5.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

and also forcing:
pip install xformers==v0.0.22

Fixed the issue for me.


Add $permissions modifier

It would be really useful for implementing stealth mode features.
More info:
https://caniuse.com/permissions-policy
https://www.w3.org/TR/permissions-policy-1/
https://developers.google.com/web/updates/2018/06/feature-policy
https://w3c.github.io/webappsec-permissions-policy/
TODO: we need to come up with a better description of what we want. It could be used as a part of advanced tracking protection indeed, but we could also introduce a new filters modifier (just like $csp)

[ ] Once this feature is done, we should create a separate issue in the tsurlfilter repo
[ ] We should add a test for it to testcases.adguard.com
[ ] KnowledgeBase should be updated

Here's the proposed spec:

permissions
This modifier completely changes the rule behavior. If it is applied to a rule, it will not block the matching request. The response headers are going to be modified instead.

In order to use this type of rules, it is required to have the basic understanding of the Feature Policy security layer.

For the requests matching a $permissions rule, AdGuard will strengthen response's feature policy by adding additional feature policy equal to the $permissions modifier contents. $permissions rules are applied independently from any other rule type. Other basic rules have no influence on it save for document-level exceptions (see the examples section).

Multiple rules matching a single request. In case if multiple $permissions rules match a single request, AdGuard will apply each of them.

Syntax
$permissions value syntax is similar to the Permissions-Policy (or Feature-Policy) header syntax.
$permissions value can be empty in the case of exception rules. See examples section for further information.

Limitations

Please note that there're a few characters forbidden in the $permissions value: ,, $;
$permissions is compatible with the limited list of modifiers: $domain, $important, $subdocument.

Examples

||example.org^$permissions=sync-xhr 'none' — disallows synchronous XMLHttpRequest requests across example.org.
@@||example.org/page/*$permissions=sync-xhr 'none' — disables all rules with the $permissions modifier exactly matching sync-xhr 'none' on all the pages matching the rule pattern. For instance, the rule above.
@@||example.org/page/*$permissions — disables all the $permissions rules on all the pages matching the rule pattern.
$domain=example.org|example.com,permission=oversized-images 'none'; sync-script 'none'; unsized-media 'none'; — disallows oversized images, synchronous scripts and unsized media features across example.org and example.com.
@@||example.org^$document or @@||example.org^$urlblock — disables all the $permission rules on all the pages matching the rule pattern.

It very similar to the $csp one.

@AdguardTeam/filters-maintainers could you please check this out?

Looks like great feature.

I have a question regarding $permissions modifier - https://adguard.com/kb/general/ad-filtering/create-own-filters/#permissions-modifier
In knowledge base there is an example like this:
||example.org^$permissions=sync-xhr 'none'

but it looks like that adding such rule causes that there is an error displayed in the console:
Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.

I'm not familiar with this, but should not it be something like this:
||example.org^$permissions=sync-xhr=()

I have checked it out with permissions=fullscreen and it looks like that this rule:
*.*$permissions=fullscreen=()

works, but if I add:
*.*$permissions=fullscreen 'none'

it doesn't work
So I just wonder if I'm doing something wrong or maybe the example in knowledge base is not correct?
By the way, how can we use two permissions in one rule if , is forbidden?

Two characters are forbidden in the $permissions value: , and $;

And one more thing, if I'm not wrong this example:
$domain=example.org|example.com,permission=oversized-images 'none'; sync-script 'none'; unsized-media 'none';

is not correct, there is missed s in permission.
I'm checking it with AdGuard for Windows 7.13 nightly 2 (build 4183, CL 1.11.44)

@AdamWr Yes, example is incorrect, they switched from CSP syntax to structured header syntax in final specification, and seems that CSP syntax is not supported anymore. We will fix examples, thanks.

Okay, thank you for your answer.
By the way, I think that it would be nice to have ability to add two (or more) permissions in one rule, but I suppose that it would be necessary to remove this restriction:

Two characters are forbidden in the $permissions value: , and $;

to do that.

Question: What about subframes? Like,for example,YAHOO doesn't allow fullscreen on embeded youtube videos.
Can you guys give me example for the rule that i need. Thank you 👍

Question: What about subframes? Like,for example,YAHOO doesn't allow fullscreen on embeded youtube videos. Can you guys give me example for the rule that i need.

CoreLibs do not patch iframe html tags according to matched $permissions rules. This would weaken the user privacy, but the permissions modifier is intended to enhance it. So, you need a $replace rule, like ||yahoo.com^$replace=/(<iframe src=".*youtube.*\.com\/embed\/.*")(>)/\$1 allow="fullscreen *"$2/ (it adds allow="fullscreen *" permission to all the matching iframes on yahoo.com).

Sergei @sxgunchenko thanks for the explanation and trying to help but unfortunately it didn't work. Looks like Yahoo doesn't use the embed link like any other site out there.
Here is a link to one of the Yahoo's embeded videos. I'd appreciate if you can find me some solution. Thank you 👍
https://www.yahoo.com/news/22-years-jay-z-pleaded-115522884.html

Oops, just found a couple of mistakes in the rule. This one should work: ||yahoo.com^$replace=/(src=".*?youtube.*?\.com\/embed\/.*?")(>)/\$1 allow="fullscreen *"\$2/ (at least it does on my side).

Here is a List of features that can be used with the $permissions modifier (easier this way for everyone to see and decide).
Probably more can be found throughout that repo and all of them to be mentioned in the knowledge base:
https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md  👍

There is a link to the list in the KB article, although it leads to MDN


horizontal FlatList in a horizontal Carousel component

I have a nested horizontal FlatList within an also horizontal carousel component that will work on iOS but not on Android; when I try scrolling horizontally on the nested FlatList, the carousel moves instead.  I've tried using the FlatList from react-native and from react-native-gesture-handler, both with nestedScrollEnabled but none seem to be doing the job.

In addition to bots comment, here is how I fixed it:
    <GestureHandlerRootView style={styles.container}>
      <ThemedView style={styles.container} noPadding>
        <Carousel
          defaultIndex={1}
          loop={false}
          width={width}
          height={height}
          data={dates}
          onSnapToItem={onIndexChanged}
          panGestureHandlerProps={{
            activeOffsetX: [-20, 20],
          }}
          renderItem={({ item }) => (
            <TransactionList date={item} key={item.getTime()} />
          )}
        />
      </ThemedView>
    </GestureHandlerRootView>

I don't know which version does the bot refer to but I have found this
panGestureHandlerProps={{
            activeOffsetX: [-20, 20],
          }}

instead of this one here.
onConfigurePanGesture={gestureChain => (
            gestureChain.activeOffsetX([-10, 10])
          )}

panGestureHandlerProps={{
activeOffsetX: [-20, 20],
}}

This one works
panGestureHandlerProps={{
            activeOffsetX: [-20, 20],
          }}


Problem detecting sudo usage in container when evt.type is used in condition

I'm trying to use the pre-defined rule in falco_rules.local.yaml to detect when a user runs sudo inside a container. The rule is:
 - rule: The program "sudo" is run in a container
   desc: An event will trigger every time you run sudo in a container
   condition: evt.type = execve and evt.dir=< and container.id != host and proc.name = sudo
   output: "Sudo run in container (user=%user.name %container.info parent=%proc.pname cmdline=%proc.cmdline)"
   priority: ERROR
   tags: [users, container]

If I run it using the evt.type filter, nothing is detected. If I remove evt.type and try again, it detects
the evt.type=execve event and millions of other events triggered by sudo (basically because now there isn't the filter looking exclusively for the execution of the command), like this:
02:05:28.492207186: Error Sudo run in container (user=root k8s.pod=nginx-77d7f55978-5kpnc container=e9ac82dcd29d parent=bash cmdline=sudo ls /) k8s.pod=nginx-77d7f55978-5kpnc container=e9ac82dcd29d
02:05:28.494431161: Error Sudo run in container (user=root k8s.pod=nginx-77d7f55978-5kpnc container=e9ac82dcd29d parent=bash cmdline=sudo ls /) k8s.pod=nginx-77d7f55978-5kpnc container=e9ac82dcd29d

I'm not really sure what's going on here... could someone let me know what is it that I'm doing wrong or if this is actually a bug?

@pogao I just went through attempting to recreate this and the rule works fine for me. Could you give me a bit more detail on your setup?

Host OS and Kernel Version (uname -a)

Are you running Falco as a container or in the host system as a daemon (or via a terminal)

Thanks.

@mfdii sorry for this, I found out what was wrong and solved the problem. Sorry for forgetting to update this.

No worries, glad you have it working. Would you mind sharing what the problem was?

The problem was me and my own dumbness obviously.
The alerts without the evt.type filter would show up because the number of events generated matching the rest of the condition were enough to fill the buffer and make falco spit something on the screen. When I was using evt.type in the condition, it would only match about 3 lines of output which wasn't enough to fill falco's buffer. I just needed to "break the rule" enough times for the alert to be displayed - but the rule was working fine :)

Oh yes, you can use the -U flag to disable buffering or change it in the config file.
https://github.com/draios/falco/blob/dev/falco.yaml#L45


Add a get_l2data_table method to level2 cache

adds a method which returns a dataframe instead of a dict
option to split columns, true by default but up for debate
also fixed up the docs a bit

naming of the split columns very much up for debate - they get annoyingly long, but was going for consistency


Improving the Tutorial - Static analysis

a. Units should be added in axis name
b. What does 'w' mean in Free-Body Diagram? Weight of the shaft? If yes, representing weight/length_unit is more suitable
show(static.plot_deformation())
show(static.plot_free_body_diagram())
show(static.plot_shearing_force())
show(static.plot_bending_moment())

This will be solved in #440 .


[build] initial support for sanitizers

Motivation and Context

Use sanitizers to discover memory and threading issues.
How Has This Been Tested

Modified a test to have a memory issue  and then verified that it was correctly reported.
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[X] I have completed my CLA (see CONTRIBUTING)
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Closing this stale PR.


Assignment 05

Rubric for Assignment 4: Networking
Submission
Canvas
1: The link submitted on Canvas is for the pull request containing the assignment submission.
0: The link submitted on Canvas is not for the pull request containing the assignment submission.
Git Branch
1: The branch includes only changes for this assignment.
0: The branch includes commits or changes outside this assignment.
Git Commit Message
1: All commit messages for the branch are reasonably clear.
0: One or more commit messages for the branch are reasonably clear.
GitHub Pull Request
1: The pull request is made to the main branch of the student's fork of the course repository.
0: The pull request is made to a branch other than main or to a repo that is not the student's fork of the course repository.
Points
Submission Score: 4/4
Correctness
HTTP
Unit tests are provided for this section; for each of the three tests:
2: The test passes
1: The test fails due to a minor error
0: The test fails due to a major error
Origin Server
For each of the following API routes

GET Request to /orders
GET Request to /orders/{id}
POST Request to /orders
DELETE Request to /orders
DELETE Request to /orders/{id}
Home page (nothing or /)

2: The server responds correctly to this command with the intended behavior as documented in README.md
1: The server responds to this command, but there is a minor error in the behavior
0: There is a major error in the implementation of this pathway
Additionally, the following error types must be handled appropriately in an idiomatic, non-fatal manner and return an appropriate HTTP response (1 pt each)

Invalid JSON for an OrderRequest in a POST request
Invalid HTTP Request
Attempting to access a path that does not exist
Attempting to call an unsupported method for a path

Reverse Proxy
5: Reverse proxy correctly forwards requests towards origin server and sends response to client under a manual test
3: Reverse proxy server does not correctly forward requests and responses due to a minor error
1: Reverse proxy server does not correctly forward requests and responses due to a major error
0: Reverse proxy server was not attempted
Points
Correctness Score: 19.5/21

While you technically do all of the expected error handling, the primary result is "Invalid Request" in each instance; more information related to specific instances would be nice (-0.5)
Reverse proxy doesn't correctly forward results of requests to client (but the changes are, in fact) (-1)

Code Quality
Design
Tests
For each of the 6 API Routes:
2: This functionality is appropriately tested with passing unit test cases, including error cases
1: This functionality has unit tests, but they don't adequately cover code path/reasonable input cases
0: This functionality has no unit tests
General Cleanliness
4: The code is effectively documented, especially for sources of user-facing errors. Additionally, function signatures are clear and the code is overall very readable.
2: Attempts at verbose documentation were made, but certain sources of error are unclear OR poor function signatures are used and readers would have slight difficulties while scanning the code.
0: Documentation is severely lacking in several places and the code is not written in a readable way.
Lint/Format
RustFmt
2: RustFmt produces no warnings when run on the changed files
1: RustFmt produces a few minor warnings when run on the changed files
0: RustFmt produces many warnings when run on the changed files
Clippy
2: Clippy produces no warnings when run on the changed files
1: Clippy produces a few minor warnings when run on the changed files
0: Clippy produces many warnings when run on the changed files
Points
Code Quality Score: 19/20

Clippy warnings (-1)

Summary
Total Score: 42.5/45

Honestly fair that you chose to not optimize some of the code for the sake of making error handling easier given the current architecture lol
Make sure your client receives msgs w newlines in the future !!!


Exception when trying to insert a large String

Hi,
You have done a wonderful job in the implementation. However, when I try to insert a large String (I can provide the test string) It throws the following exception. It never completed inserting the full string.
Exception in thread "main" java.lang.NullPointerException
at SuffixTree.nextChar(SuffixTree.java:426)
at SuffixTree.startPhase(SuffixTree.java:322)
at SuffixTree.build(SuffixTree.java:143)
at SuffixTree.main(SuffixTree.java:101)
The string I was trying to insert was 63027 in length. However, another large string with a length of 63067 inserted without any errors (I can provide this test string as well).
However, the second large string failed at your validation function;
Failed at 58 for index 56
Failed validation
false
I was trying to debug it but couldn't track it down. Wanted to bring it to your attention. Thanks.

I will look at it. I think there is error in validation function. Do you see infinite loop in some reasonable size string which can be debugged?
 On Sunday, October 25, 2015 1:46 PM, mfazeen<EMAIL_ADDRESS>wrote:

Hi,You have done a wonderful job in the implementation. However, when I try to insert a large String (I can provide the test string) It throws the following exception. It never completed inserting the full string.Exception in thread "main" java.lang.NullPointerException
at SuffixTree.nextChar(SuffixTree.java:426)
at SuffixTree.startPhase(SuffixTree.java:322)
at SuffixTree.build(SuffixTree.java:143)
at SuffixTree.main(SuffixTree.java:101)The string i was trying to insert was 63027 in length. However, another large string with a length of 63067 inserted without and error (I can provide this test string as well). However, the second large string failed at your validation function;Failed at 58 for index 56
Failed validation
falseI was trying to debug it but couldn't track it down. Wanted to bring it to your attention. Thanks.—
Reply to this email directly or view it on GitHub.

Hi,
Thank you for your prompt reply. The NullPointerException is thrown even before it gets to the validation function. It did not load the complete string to the tree.
The exception is generated when the nextChar(int i) function try to access the start value of the activeNode child at the line:
return input[active.activeNode.child[input[active.activeEdge]].start + active.activeLength];
(last return statement in the else block in the nextChar function)
At this line the "active.activeNode.child[input[active.activeEdge]]" is null for sum reason and that failed the tree creation.
I.e. the activeNode child at the input[active.activeEdge] location is null for some reason. I assume that either this child is not created correctly in a previous step or the index of the child is incorrect. Hope this will help you.
I did not see any infinite loops though.
Thanks

I meant do you have a smaller example where you get NPE instead of this 63K long string.

Sorry, I did not get any NPE with smaller strings that I tried with. If I come across one I will let you know.

is there any c# version of this code??

fixed some bugs. Probably that will fix this issue.


[QUESTION]  Pylance does not correctly resolve inherited classes (subclasses) with typing.Type[ ])?

Issue Type: Bug
Example:
from typing import Type

class BaseClass():
    myBaseClassAttr: str = "asd"

class SubclassOne(BaseClass):
    mySubClassAttr: str = "x"

class SubclassTwo(BaseClass):
    mySubClassAttr: str = "y"

def myFunc(c1: Type[BaseClass], c2: Type[BaseClass]) -> Type[BaseClass]:
    """This funciton will copy 'c2.myBaseClassAttr' value to 'c1.myBaseClassAttr', and return updated 'c1'. Just a made up example."""
    c1.myBaseClassAttr = c2.myBaseClassAttr

    return c1

if __name__ == "__main__":
    c1 = SubclassOne()
    c1.myBaseClassAttr = "one"

    c2 = SubclassTwo()
    c2.myBaseClassAttr = "two"

    c1 = myFunc(c1, c2)

Code execute as expected, but Pylance is complaining:
Type "SubclassTwo" cannot be assigned to type "Type[BaseClass]"Pylance (reportGeneralTypeIssues)

Both, c1 and c2 are subclasses of BaseClass:
type(c1):  <class '__main__.SubclassOne'>
isinstance(c1, BaseClass): True

type(c2): <class '__main__.SubclassTwo'>
isinstance(c2, BaseClass): True

What am I missing/don't understand?
Extension version: 2020.9.5
VS Code version: Code 1.49.1 (58bb7b2331731bf72587010e943852e13e6fd3cf, 2020-09-16T23:27:51.792Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.92GB (6.87GB free)

Process Argv
W:\BlueBox\trunk\fitIDEA3_fitIDEA3.code-workspace --crash-reporter-id 919e0ed9-46f3-4ad4-9e28-f35755bf8266

Screen Reader
no

VM
0%

I don't think that function signature should be using Type. As you've written myFunc, it's accepting types as the arguments, meaning a valid call would look like:
myFunc(SubclassOne, SubclassTwo)

Did you mean a signature like:
def myFunc(c1: BaseClass, c2: BaseClass) -> BaseClass: ...

if __name__ == "__main__":
    c1 = SubclassOne()
    c1.myBaseClassAttr = "one"

    c2 = SubclassTwo()
    c2.myBaseClassAttr = "two"

    c1 = myFunc(c1, c2)

This should type check.

Follow-up question: How should return type be defined? Is Pylance capable of resolving such scenarios?
def myFunc(c1: BaseClass, c2: BaseClass) -> BaseClass:
    """This funciton will copy 'c2.myBaseClassAttr' value to 'c1.myBaseClassAttr', and return updated 'c1'. Just a made up example."""
    c1.myBaseClassAttr = c2.myBaseClassAttr

    return c1

if __name__ == "__main__":
    c1 = SubclassOne()
    c1.myBaseClassAttr = "one"

    c2 = SubclassTwo()
    c2.myBaseClassAttr = "two"

    c1 = myFunc(c1, c2)
    print(c1.mySubClassAttr)

Pylance is warning me that c1.mySubClassAttr does not exist, since function returns BaseClass. In fact, I only want to type hint function that it returns whatever comes in c1 argument.

If I correctly understand what you're trying to do, the proper way would be to use a bound type variable as follows:
_T = TypeVar("_T", bound=BaseClass)

def myFunc(c1: _T, c2: BaseClass) -> _T:
    c1.myBaseClassAttr = c2.myBaseClassAttr
    return c1

Yes. That is exactly what I need. Thanks.

If you're using a non-bound, non-constrained TypeVar in only one place in your function signature, you're probably doing something wrong. Such a TypeVar serves no purpose. In my proposed solution above, the TypeVar is used multiple times and it is bound to a type.
If you need help with a problem that differs from the one above, please post a minimal code sample and an explanation of what you're trying to do.

Sorry, it was my mistake. Actually, I want to pass a class object to f, not an instance (because f is a factory function). In your example, it would be
f(BasisA)

which gives
Argument of type "Type[BasisA]" cannot be assigned to parameter "basis" of type "Basis" in function "f"
  "Type[type]" is incompatible with "Type[Basis]"

If you want to pass a class (as opposed to a class instance), you need to use the type annotation type[Basis] in your function.

Thank you, that solved my issue. Do you know where I should start reading about Python's type system to really understand TypeVar, type, etc? Maybe the PEPs?


Update deploy test for new schema format

Schema check in test.yaml needs changing to use local python schema instead of downloading from git and parsing as JSON.

https://github.com/lsst-uk/lasair-lsst/blob/develop/deploy/test.yaml
https://github.com/lsst-uk/lasair-lsst/blob/develop/utility/check_schema.py


Issue sending using mqtt.publish event in event tool

I am trying to evaluate a mqtt.publish event using the events tool in the web interface. When I try to use the following nested json parameter for the event, I get an error in the logs.
I am running HA .78.0 hass.io on a raspberry pi 3 b using the image from the HA website. I am using the mosquito broker add on.
The event parameter I am trying to use is :
{"topic":"tele/rfbridge/RESULT", "payload":{"RfReceived":{"Data":"97BB0E2"}}}

The error I am getting is as follows and the mqtt topic is not published to.
If I paste {"RfReceived":{"Data":"97BB0E2"}} in the MQTT publish tool, the payload is sent successfully.
Log Details (ERROR)
Thu Sep 20 2018 22:01:33 GMT-0500 (Central Daylight Time)

Error executing service <ServiceCall mqtt.publish (c:86bd32b81ff9453db58b16239e69460e): topic=tele/rfbridge/RESULT, payload=RfReceived=Data=97BB0E2, qos=0, retain=False>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1127, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 463, in async_publish_service
    msg_topic, payload, qos, retain)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 554, in async_publish
    self._mqttc.publish, topic, payload, qos, retain)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 1079, in publish
    raise TypeError('payload must be a string, bytearray, int, float or None.')
TypeError: payload must be a string, bytearray, int, float or None.

With the help of forum user GPBENTON, in this community post https://community.home-assistant.io/t/mqtt-publish-syntax/69516/4, using the following format is successful in the event tool:
{"topic":"tele/rfbridge/RESULT", "payload":"{\"RfReceived\":{\"Data\":\"97BB0E2\"}}"}
Does the system require this format by design?

The system wants the payload: value to be a string and not JSON.

Ok, thanks for the clarification.
It may be beneficial to add an example of a nested json call like this to the mqtt.publish doc page as this is not clear - especially when the system appears to require json (invalid json errors, etc.)


Stop mutating the prototype

The browsers command it!

Warning: Mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create.

Usually, if Firefox warns you about something, you want a pretty good reason to ignore that warning. I think it's worth considering a fix for this, unless it's too much work. I don't expect it to take a very high priority, but that's fine. Just something I think ought to be on the backlog :)

This warning is actually caused by the generated class inheritance code from Babel

Just stumbled upon this, too, and looking forward to seeing this removed.


feat(Data/Finset & List): Add Lemmas for Sorting and Filtering

This PR includes several useful lemmas to the Data/Finset and Data/List modules in Lean's mathlib:

toFinset_filter (List): Shows that filtering commutes with toFinset.
toFinset_is_singleton_implies_replicate (List): Shows a list with a singleton toFinset is a List.replicate.
filter_sort_commute (Finset): Sorting and filtering can be interchanged in Finsets.
Sorted.filter (List): A sorted list stays sorted after filtering.
Sorted.append_largest (List): Appending the largest element keeps a list sorted.
sort_monotone_map (Finset): Relates sorting of a Finset after mapping to sorting of a list.
sort_insert_largest (Finset): Sorting a Finset with an inserted largest element.
sort_range (Finset): Sorting a range in a Finset equals the corresponding range list.
filter_eval_true (List): Filtering a list with a predicate always true keeps the list unchanged.
filter_eval_false (List): Filtering with an always-false predicate gives an empty list.
pairwise_concat (List): Iff condition for Pairwise relation in concatenated lists (similar to pairwise_join).
list_map_toFinset (Finset): toFinset commutes with map under injection

[ ] depends on: #15952

This is my first PR to mathlib, so I'm not too familiar with etiquette's and more specifically there are two proofs in the PR which uses aesop, and I am not sure if it's frowned upon. I kept the aesop in there for now as I couldn't construct very short proofs otherwise. The sort_range function proof was suggested in https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Computing.20Finset.20sort.20of.20Finset.20range/near/410346731 by Ruben Van de Velde. Thanks for your time for improving this PR.

Please remove extra indentation inside the list in the PR description and use backticks for identifiers.

@davikrehalt Are you planning to continue working on this PR? Would you like some help from others, or do you want to hand over completely? (In the latter case, please label it with please-adopt.)

Sorry! I got busy since January--will label accordingly because I don't trust myself to be on top of this. again sorry!

I haven't attempted to tidy the statements of the remaining lemmas.

Hi I have some time to work on polishing this now. But since it's been a while it's unclear to me what the remaining issues are. If someone could help tell me this I can try to make it suitable to be merged. Thanks!


Restore tests

Something bad happened 😄 here https://github.com/filipw/dotnet-script/blob/master/src/Dotnet.Script.Tests/ScriptExecutionTests.cs#L17

That is probably my fault. I'll fix 👍

Fixed by #239


Make Worker status update more resilient

/area quality
/kind bug
This PR introduces TryUpdateStatus mechanism to tackle https://github.com/gardener/gardener-extension-provider-aws/issues/493.
For a longterm solution we agreed to remove the unused RollingUpdate condition and to switch the updateWorkerStatusMachineDeployments to use Patch() -> https://github.com/gardener/gardener/issues/5452
Release note:

The generic Worker actuator is now more resilient to status updates that fail because of conflicts.

/cla


Add a default project file

For instance: for Vault users.
They tend to only have one project file. C:/Workspace/Vault.ipj or something like that.
This would make deployement faster still.

Bonuspoints:

Launch Inventor if it hasn't.
Log into vault if it isn't automatically.
Find the projectfile specified,
'GET' it,
and set it as the project file in Inventor.


Need help for HTTP tunnel

I've tried this and a bunch of other Go SAM libraries and I can't seem to get it working. I can connect to the local i2pd node and it provides me with a b32 endpoint, however when I try to use a browser to connect to that endpoint it never seems to work. The goSam bridge never notifies me of any connection.
Is this even possible? Can an I2P configured browser access SAM .b32.i2p endpoints?

Yes, the example in the README is exactly how that is done for an HTTP Client. goSam implements a Dialer, which can be a part of a Transport, which can be replaced in an HTTP Client. To build something a browser can connect to, however, will require further elaboration. You can, for instance, replace the dialer and resolver in https://github.com/getlantern/go-socks5 with the dialer and resolver from goSam to create a TCP SOCKS proxy. If you need an HTTP Proxy, then adapting one of these: https://github.com/eyedeekay/httptunnel may be a better choice.


The host was not found for the specified address

Is this a bug report?
Yes

Can you also reproduce the problem with the lastest version?
Yes
Environment

Operating system: Windows 10 Pro
Visual Studio version: VS2017 Community Edition
Dotnet version: 4.7.1

Steps to Reproduce

(Write your steps here:)

Create publish request client
Publish any message with it
context.RespondAsync in the consumer of the message

Expected Behavior

Respond successful.
Actual Behavior

Exception of type MassTransit.EndpointNotFoundException with the message The host was not found for the specified address: rabbitmq:/bus-DEVELOP3-ControlServer-rsnyyyg6ihyk3xacbdk3jcs6dw?durable=false&autodelete=true
The couse of the exception is incorrect responseAddress in incoming message:
"responseAddress": "rabbitmq:/bus-DEVELOP3-ControlServer-rsnyyyg6ihyk3xacbdk3jcs6dw?durable=false&autodelete=true". Note that the uri is incorrect, it has only one slash after the scheme.
Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Which MT version?

<IP_ADDRESS>0

Sorry for bother, my bad.
My code is:
    IConfiguration configuration = context.Resolve<IConfiguration>();
    RabbitMq rabbitMq = configuration.Get<RabbitMq>();
    var rabbitMqAddress = new Uri($"rabbitmq://{rabbitMq.RabbitMQHost}/{rabbitMq.RabbitMQVirtualHost}");

In case if my configuration is wrong and rabbitMq.RabbitMQHost is null and rabbitMq.RabbitMQVirtualHost is null then rabbitmq address becomes rabbitmq:/// and i see the error. I still think that this is a bug, but this is another story. I'm closing this.


fix(pie-modal): DSW-2208 add logging

Describe your changes (can list changeset entries if preferable)
Add logging to help diagnose SSR issue
Author Checklist (complete before requesting a review)

[ ] I have performed a self-review of my code
[ ] I have added thorough tests where applicable (unit / component / visual)
[ ] I have reviewed the PIE Storybook/PIE Docs PR preview
[ ] I have reviewed visual test updates properly before approving
[ ] If changes will affect consumers of the package, I have created a changeset entry.
[ ] If a changeset file has been created, I have used the /snapit functionality to test my changes in a consuming application

Reviewer checklists (complete before approving)
Reviewer 1

[ ] I have reviewed the PIE Storybook/PIE Docs PR preview
[ ] If there are visual test updates, I have reviewed them

Reviewer 2

[ ] I have reviewed the PIE Storybook/PIE Docs PR preview
[ ] If there are visual test updates, I have reviewed them

/snapit

/snapit

/snapit

/snapit

/snapit

/snapit

/snapit


[Feature]: Allow to pass label and description via props

Describe the feature
Right now we have many components for input, example:
          <FormField v-slot="{ componentField }" name="name">
            <FormItem>
              <FormLabel>Name</FormLabel>

              <FormControl>
                <Input
                  type="text"
                  placeholder="Your name"
                  v-bind="componentField"
                />
              </FormControl>

              <FormDescription>
               This is your public display name.
              </FormDescription>

              <FormMessage />
            </FormItem>
          </FormField>

We can reduce by passing, optionally, the label and description via props, and also the error is display conditionally instead of description, such avoiding to have description and error which doesn't looks good.
          <FormField v-slot="{ componentField }" name="name">
            <FormItem
              label="Name"
              description="This is your public display name."
            >
              <FormControl>
                <Input
                  type="text"
                  placeholder="How we can call you?"
                  v-bind="componentField"
                  autofocus
                />
              </FormControl>
            </FormItem>
          </FormField>

I open this issue since was required in order to open PR which is here.
Additional information

[X] I intend to submit a PR for this feature.
[X] I have already implemented and/or tested this feature.

Hello! Thank you for your contribution!
The philosophy of ShadCN is centered around providing unopinionated (or less opinionated) building blocks that empower developers to create their own custom (opinionated around their needs) components.
Any modification of the source code that would result in it being more opinionated (like the abstraction you coded) IMO is not aligned with this strategy.
This could be a valuable as an example though.

The unopinionated philosophy is understandable but compromises always has to happen. This is literally why I'm probably not going to use this framework. Is too complicated to make a simple form. See for example Quasar, it only requires a :rules="XYZ" function in each field and that's it.


Promotions, Products and Portfolios not following translation config

They should follow the same behaviour as Categories. Show translation tabs based on config.translation file.

After further investigation, the translation capability in Category is not working perfectly either. Since Laravel 5.0 will introduce a different folder structure for translation, we shall push this fix to milestone v0.2.0.


Added travis

Can you squish these three commits into one commit?
Google for git squish commit.

Ok. Sure.

Hi Riyad,
I tried squashing, but old commits are still visible in my master branch, I am not sure this is how the squash will be. Let me know if any changes. Thanks:)

Squash last n commits git reset --soft HEAD~n && git commit.
I can commit for you.


Use updated ParameterPack namespace

Probably need to rebase this after #12 is merged

Addressed in #12 instead.


remote_file resource needs three forward slashes for local files (file:///) instead of two (file://) to function

Example:
This code will break (note two //):
  remote_file "/etc/opscode/#{file_name}" do
    source "file://etc/staging/#{file_name}"
  end

The working code is (note three ///):
  remote_file "/etc/opscode/#{file_name}" do
    source "file:///etc/staging/#{file_name}"
  end

Expected behavior:
Local URI should work with two forward slashes

There are supposed to be three slashes. file://etc/staging/foo means "get me the staging/foo file on the host named etc" which isn't what you mean. The hostname can be omitted to infer the path is on the local machine.
These are both valid:
file://hostname/path/to/file
file:///path/to/file

http://tools.ietf.org/html/rfc1738#section-3.10
As a special case, <host> can be the string "localhost" or the empty
   string; this is interpreted as `the machine from which the URL is
   being interpreted

Microsoft agrees on this syntax: http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
#1346 has historical related discussion on the topic in relation to Windows UNC paths.

thanks. I'll keep the doc bug open and nuke this one.


Simplifying Headland

Today we have 2 types of Headlands:  Driven (with an associated shape) and Constant Offset (n units of distance from the edge of the field).   Can we simplify Headland to discard the 2 types and simply always require multi/polygon data for any headlands?

Agreement in 28 June 2023 meeting to simplify headland to a name and a shape.   The type and creation information can be removed.   Also decided was renaming FieldBoundary.InteriorBoundaryAttributes to Obstacles.


downloading twice never calls download callback

Create an archive and download the contents successfully, then exit the process. Then, run it again. You'll notice that the callback is never fired to finish the download. Example:
$ dat dat://.....
Download complete, etc.
^C
$ dat dat://
Connected to 1/1 peers

'download complete' never fires because the callback isn't called.

fixed in https://github.com/mafintosh/hyperdrive/commit/0c363e0f1845361c9d0ec118b99f06b30e06b132


Long retry times may lead to blocked server threads

Currently, the retry loop for a request can take several minutes. For the proxy server, this might mean that the request handler thread gets blocked for several minutes.
It's possible that if the server is handling N requests that have entered a retry loop, where N is the number of request handling threads, it might stop responding to new requests entirely.

I'm planning to try this out empirically (on a local instance) to see if this is indeed the case.

We have enough threads on the proxy and our QPS is low. Also we're deprioritizing work on the proxy. So I will close this for now.


Eviction for mutable cache.

If mutable cache reached max_disk_storage size, user will not be able
to put new values. Removing least recently used items allows to use the
cache further.
Eviction process strarts after 90% threshold and goes till 85%, so all
values can be removed in one batch and number of disk calls is
minimized.
Resolves: OLPEDGE-1592, OLPEDGE-1822
Signed-off-by: Kostiantyn Zvieriev<EMAIL_ADDRESS>

Added fix for not removing expiry data on DefaultCacheImpl::Remove() and test for it.


getFormStateKey has an infinite loop when key = ""

I have an edge case in redux state where one of my objects has an empty key:
{
... {
"first": { }
"second": {}
"": {}
}
}
This trips up getFormStateKey and causes infinite recursion because it calls utils/get and returns itself.
https://github.com/davidkpiano/react-redux-form/blob/9d354f5e821212bac01bfdb2b9eff836959192ed/src/utils/get.js#L13
Called here: https://github.com/davidkpiano/react-redux-form/blob/9d354f5e821212bac01bfdb2b9eff836959192ed/src/utils/get-form.js#L60
{error: "RangeError: Maximum call stack size exceeded↵    }
RangeError: Maximum call stack size exceeded
at http://----/static/js/bundle.js:117621:32
at Array.filter ()
at joinPaths (http://-----/static/js/bundle.js:117621:16)
at http://------/static/js/bundle.js:117674:59
at Array.some ()
at getFormStateKey (http://------/static/js/bundle.js:117673:21)
at http://------/static/js/bundle.js:117674:14
at Array.some ()
at getFormStateKey (http://------/static/js/bundle.js:117673:21)
at http://------/static/js/bundle.js:117674:14

Seems like a simple fix, want to make a PR? (check if the path is empty and the original string isn't just an empty string, etc.)

Yep i'll check it out.


Is there a DFK31BU camera driver available for the Raspberry Pi?

I'm trying to connect a camera to a Raspberry Pi 4 for a project, but I don't see any compatible drivers. Is there any way to connect this camera to the Raspberry Pi in some way and get the trigger to work?
As for the OS version, it doesn't matter what version you use as long as you can get the camera to work.

There is no driver needed, but the camera does not identify itself as UVC/V4l2 device. I made a manual including the rules file at
The Imaging Source Knowledgebase

There is no driver needed, but the camera does not identify itself as UVC/V4l2 device. I made a manual including the rules file at The Imaging Source Knowledgebase

So how do I use the camera's external trigger?
Oh, and when I browse the device with the lsusb command, it outputs the model name fine, but it doesn't actually work?

tcam-capture 2024-02-05T11:30:01 - unknown:0: warning libpng warning: iCCP: known incorrect sRGB profile 2024-02-05T11:30:01 - unknown:0: warning QXcbConnection: XCB error: 148 (Unknown), sequence: 191, resource id: 0, major code: 140 (Unknown), minor code: 20 2024-02-05T11:30:26 - unknown:0: info device selected: --
When I run tcam, I get this error
ls /dev/video0 is recognized normally

Hello
The quoted messages are warnings.
Are you sure, you have a 31BU and not a 21BU with 640x480 resolution only? Can you please give me the serial number of your camera, so I can check?
Does tcam-capture show a live video?


fix(example): add watchman package to devbox dependencies

Codecov Report

Merging #1 (628a2f4) into main (62170eb) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #1   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          113       113
=========================================
  Hits           113       113


[fine-tuning] Add caching in the entrypoint script.

The script study_dataset.py sometimes takes up to 5 mins. In order to speed up the process, simple caching was introduced to cache the results of the study script.

The fix for the Build docs GA is in #482.

thanks @albertoperdomo2 , I rebase and merge this

thanks @albertoperdomo2 , I rebase and merge this

merging ... after 1 week of delay :# sorry for that


add initial protocol guessing and update spektrum packet parsing to g…

…et ride of weird packets if protocol was DSM2_10bits.

I write it down here so that it could be reused later on.
Analyzing with logic analyser,
in DSM2 10 bits

the inter byte period (within a frame) is 80us
the frame period 11'000us

and 11bits,

the inter byte period (within a frame) is 80us
the frame period 11'000us

Thus we can simply discard the current buffer, if the new incoming Byte is not first of the frame, if  it came after a longer delay than the inter byte period (80us).

It's nicely working! Thanks @GregoireH!
No more loss of control due to packet loss!


chore: use module-builder stub mode for more accurate types

We added a prepare command for nuxt-module-build which allows creating type stubs directly from the module without needing to apply to the playground as well. (https://github.com/nuxt/module-builder/pull/124)
It's the default for new modules (https://github.com/nuxt/starter/pull/392).
This should allow us to match types more appropriately for module authors (for example, disallowing auto-imports) in future.

Thanks a lot for the input! Good to know. Will change it in my other modules as well. 🙂