Multiple series of map is not displayed all together

Version: 3.4.0
I have two series where each of them is showing different country (with different color). The issue is that I don't seem to be able to show both series together. The second series is visible only if the first is switched off:

Here is the code:
option = {
    "color": [
        "#2196f3",
        "#e91e63"
    ],
    "legend": {
        "data": [
            "Category 1",
            "Category 2"
        ]
    },
    "geo": {
        "map": "world",
        "scaleLimit": {
            "min": 10
        },
        "center": [
            "5",
            "50"
        ]
    },
    "series": [
        {
            "map": "world",
            "name": "Category 1",
            "type": "map",
            "scaleLimit": {
                "min": 10
            },

            "center": [
                "5",
                "50"
            ],
            "data": [
                {
                    "name": "United Kingdom",
                    "category": "Category 1",
                    "itemStyle": {
                        "normal": {
                            "areaColor": "#2196f3"
                        },
                        "emphasis": {
                            "areaColor": "rgb(81, 173, 246)"
                        }
                    },
                    "value": "100"
                }
            ]
        },
        {
            "map": "world",
            "name": "Category 2",
            "type": "map",
            "scaleLimit": {
                "min": 10
            },
            "center": [
                "5",
                "50"
            ],
            "data": [
                {
                    "name": "Czech Republic",
                    "category": "Category 2",
                    "itemStyle": {
                        "normal": {
                            "areaColor": "#e91e63"
                        },
                        "emphasis": {
                            "areaColor": "rgb(238, 76, 131)"
                        }
                    },
                    "value": "5"
                }
            ]
        }
    ]
}

Seems previous series are overlaying following series? Although I've tried to set non active area color to transparent with no success. I've also tried to set zLevel, played with visualMap (which actually shows the country but doesn't apply custom color.. )
Any ideas? Or is this a bug?

You kan remove "legend" and use two "data" like this.
option = {
"color": [
"#2196f3",
"#e91e63"
],
"geo": {
"map": "world",
"scaleLimit": {
"min": 10
},
"center": [
"5",
"50"
]
},
"series": [
{
"map": "world",
"name": "Category 1",
"type": "map",
"scaleLimit": {
"min": 10
},
        "center": [
            "5",
            "50"
        ],
        "data": [
            {
                "name": "United Kingdom",
                "category": "Category 1",
                "itemStyle": {
                    "normal": {
                        "areaColor": "#2196f3"
                    },
                    "emphasis": {
                        "areaColor": "rgb(81, 173, 246)"
                    }
                },
                "value": "100"
            },
            {
                "name": "Czech Republic",
                "category": "Category 2",
                "itemStyle": {
                    "normal": {
                        "areaColor": "#e91e63"
                    },
                    "emphasis": {
                        "areaColor": "rgb(238, 76, 131)"
                    }
                },
                "value": "5"
            }
        ]
    }
]

}

Thanks @LastQuarterMoon for your suggestion! Sorry, forgot to say that the interactive legend feature was what I wanted to achieve. Another way to solve it is to implement it as piecewise visual map and define colors there I guess.. Thanks again.

@jarben Yes I can implement it using visualMap like this: (although the emphasis setting seems to be a little ugly)
option = {
    "color": [
        "#2196f3",
        "#e91e63"
    ],
    visualMap: {
        type: 'piecewise',
        dimension: 1,
        top: 0,
        left: 'center',
        orient: 'horizontal',
        categories: ['Category 1', 'Category 2'],
        hoverLink: false,
        inRange: {
            color: {
                "Category 1": "#2196f3",
                "Category 2": "#e91e63"
            }
        }
    },
    "series": [
        {
            "map": "world",
            "name": "Category 1",
            "type": "map",
            "scaleLimit": {
                "min": 10
            },
            "center": [
                "5",
                "50"
            ],
            "data": [
                {
                    "name": "United Kingdom",
                    "value": [6, "Category 1"],
                    "itemStyle": {
                        "emphasis": {
                            "areaColor": "rgb(81, 173, 246)"
                        }
                    },
                },
                {
                    "name": "Czech Republic",
                    "value": [5, "Category 2"],
                    "itemStyle": {
                        "emphasis": {
                            "areaColor": "rgb(238, 76, 131)"
                        }
                    }
                }
            ]
        }
    ]
}

Thanks for sharing your example @100pah ! Looks and works great!

Thanks for these workarounds, I'm having the same issue. It would be awesome if the following was possible:

2 or more series of type map (showing on the same map)
Each series with its own visualMap, so that each series can be mapped to different colors, and controlled independently
All of the series visible at the same time (if they overlap, for example US appears in more than one series, I don't even expect colors to mix, the one added latest can take precedence. As long as all those that don't overlap show at the same time).

I doubt I'll have time to do this myself, but if I manage to I'll make a pull request and comment it here.


Remove unused aws functions

A lot of the aws functions have been migrated to the custom-api-client and invoked there rather than in the editor.
There's probably also useful work in migrating the still-used functions to the client, but didn't fancy taking that step right now.
Please double check that the functions deleted are in fact not used anywhere when reviewing :)

Codecov Report

Merging #1182 (9ea11ec) into main (553dfd1) will increase coverage by 2.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1182      +/-   ##
==========================================
+ Coverage   91.33%   93.53%   +2.19%
==========================================
  Files          50       50
  Lines        1639     1592      -47
  Branches      212      206       -6
==========================================
- Hits         1497     1489       -8
+ Misses        127       88      -39
  Partials       15       15

Files
Coverage Δ

judgments/utils/aws.py
71.42% <ø> (+26.63%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[Android] Don't cancel the notification at startup time.

App will generate notifications, all of them will be cancelled when
XWalkView started, this patch is to fix this issue.
BUG=XWALK-3763

@axinging @lincsoon PTAL, thanks.

LGTM

Are we good to merge? Are we waiting for @lincsoon's lgtm?

Please wait, thanks.

LGTM


Unused code in FieldList::findTab()

Affected Version
5.1.8
Description
Spotted this line of code, seems redundant. Not super important in the grand scheme of things, but I will raise a PR to remove it. I assume copy/paste from the findOrMakeTab() method which does use it.

Ah, gee...the $last_idx line is also unused

PR merged. Thanks for helping tidy things up 🥳


Installer crashes if glitch in internet connection

error below:
Create links to python scripts...
/usr/local/spinalcordtoolbox/install/create_links.sh

Check for latest patches online...
Traceback (most recent call last):
  File "./installer.py", line 950, in <module>
    Installer()
  File "./installer.py", line 828, in __init__
    version_sct.isEqualTo_MajorMinor(version_sct_online) and \
UnboundLocalError: local variable 'version_sct_online' referenced before assignment

now checked in new installer


Error: Cannot find module 'amqp'

Hi,
I can install amqp normally:
$ sudo npm install amqp -g
Password:
npm http GET https://registry.npmjs.org/amqp
npm http 304 https://registry.npmjs.org/amqp
<EMAIL_ADDRESS>/usr/local/lib/node_modules/amqp

But it doesn't work when i try to start with node.js
node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Cannot find module 'amqp'
    at Function._resolveFilename (module.js:332:11)

Any ideas of what i'm doing wrong?
I'm running node.js v0.6.12 on Lion.
Thanks.

You still need to install the module locally too with npm install amqp

Hi,
I tried installing locally but it still can't find the module.
Output:
$  npm install amqp
npm http GET https://registry.npmjs.org/amqp
npm http 304 https://registry.npmjs.org/amqp
$ node server.js

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Cannot find module 'amqp'
    at Function._resolveFilename (module.js:332:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/Applications/MAMP/htdocs/example/server.js:2:12)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)


include info from sources in event

Coverage increased (+0.08%) to 97.031% when pulling 530672754e4b094e5e14ef9f91444eda716ce7b1 on bugfix/pass-check-fields into 33cba22711e3cb88d6956ea00cb3b246abcdf55c on develop.


ImportError: no module named dronekit

in dronekit 2.0rc1, python scripts fail when executing the import statement from dronekit import connect.
steps to reproduce

upgrade dronekit via sudo pip install dronekit --upgrade
clone dronekit-python repository from github
run vehicle_state.py example via python vehicle_state.py --connect:<IP_ADDRESS>:14550

result
Traceback (most recent call last):
File "vehicle_state.py", line 9, in
from dronekit import connect
ImportError: No module named dronekit
expected result
vehicle_state.py script runs displaying SITL vehicle state

@franknitty69 This works fine - just tried it.
The likely cause is a dronekit incompatibility with dronekit-sitl.
Please do:
sudo pip uninstall dronekit
sudo pip uninstall dronekit-sitl
pip list

Confirm that neither dronekit-sitl or dronekit are present in the list - repeat the above process until they are gone.
Then do
sudo pip install dronekit

And proceed as before ....

I have uninstalled droneapi, dronekit and dronekit-sitl. confirmed via pip list. i then installed dronekit.

when i execute import dronekit from python or via an example script i get the same error.

Is it possible that you have multiple installations of Python, and the one you're running DroneKit with is not the one associated with this pip list?

resolved by uninstalling all version of python and re-installing python 2.7.10

That was the cause then - phew. Thanks for confirming.

Dear friends
I am facing the same problem when I'm trying to run in the "Simulation" of Mission Planner the examples " "Basic Mission" and "Mission_Import_export" from: python.dronekit.io/examples/
here is what i'm getting in Python:
Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.

RESTART: E:\My Documents\PROJECTS\PROJECT TARHAN\PYTHON\Upload Mission File.py
Traceback (most recent call last):
File "E:\My Documents\PROJECTS\PROJECT TARHAN\PYTHON\Upload Mission File.py", line 16, in
from dronekit import connect, Command
ImportError: No module named 'dronekit'

the same message arrears and when I'm running the example in MP "Simulation"
Could some one help me please! I tryed almost everything ...

On Thu, 30 Mar 2017, ElefLee wrote:
Mission Planner's python scripting is does not use dronekit-python.
--
Peter Barker                          |   Programmer,Sysadmin,Geek.
<EMAIL_ADDRESS>     |   You need a bigger hammer.
:: It's a hack! Expect underscores! - Nigel Williams

Dear Peter thank you for your response to my question.
Since I'm not an experienced programmer, could you please provide me more details what is the meaning of:
"Mission Planner's python scripting does not use dronekit-python."
and what would you suggest on how I could overcome this problem?
Sincerely
Elef Leego

Hi Elef
What Peter is saying is that the scripting used in Mission Planner is NOT dronekit-python. So you're effectively asking us for support about a completely different product - just doesn't make sense :-)
If you want to use dronekit Python and our examples then you'll need to read our documentation on how to set up an environment: http://python.dronekit.io/
If you want to use Mission Planner scripting then you need to look at this doc http://ardupilot.org/planner/docs/using-python-scripts-in-mission-planner.html
CHeers
Hamish

Dear hamishwillee
thank you for your kind response. What I'm trying to do, is to run the examples found in 3DR-DRONEKIT (for example):
http://python.dronekit.io/examples/mission_basic.html   and
http://python.dronekit.io/examples/mission_import_export.html
I am trying to simulate them using "SIMULATION" inside the MP, before try them in a real Copter model,
using Mission Plamnner 1.3.45. Initially I used python 3.5 to write scripts, but now I wend back to 2.7.
I've followed the instructions in:
http://ardupilot.org/dev/docs/sitl-native-on-windows.html#sitl-native-on-windows
to install SITL on Windows 7. I have installed also Cygwin and Mavproxy.
Since, I've been lost, facing always errors, could you please give me the way (or suggest me where can I find the instruction to follow) in order to be able to run the above referenced examples?
Thank you once again

Hi Elef,
Start from here: http://python.dronekit.io/examples/running_examples.html
Avoid using MP at all for now - just use MavProxy. After you have the examples working you can see about adding a second ground control station.
Regards
Hamish


Update gRPC start tutorial for VS Mac IDE support

Updated to use VS for Mac IDE support for gRPC client generation.
@Rick-Anderson  edit
Internal review URL

@jongalloway  thanks for the PR. Fixed link.

Great, thanks for the fix!


Objective value is wrong

I have a small quadratic program with linear and semidefinite constraints. The optimal objective value is -130.
using LinearAlgebra, SparseArrays, Clarabel
P = sparse([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 3, 4, 5, 6, 7, 8, 9, 10, 11, 4, 5, 6, 7, 8, 9, 10, 11, 5, 6, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 7, 8, 9, 10, 11, 8, 9, 10, 11, 9, 10, 11, 10, 11, 11], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 11], [2.0, 4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4444444444444444, 0.0, 0.0, 0.0, 0.0, -0.8888888888888887, 0.0, 0.0, 0.0, 0.44444444444444464, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4444444444444443, 0.0, 1.0564784053156147, -1.3343410355945482, 0.0, 0.0, 0.28190303568898906, 0.0, -0.6013931428031767, 1.5282392026578073, 0.0, 0.0, 0.19933554817275745, 0.0, -0.42524916943521596, 1.1111111111111112, 0.0, 0.0, 0.0, 0.0, 0.4444444444444444, 0.0, 0.0, 0.0, 1.5282392026578073, 0.0, 0.14617940199335547, 1.1111111111111112, 0.0, 0.7774086378737541], 11, 11);
q = [-1.0, -1.0, -16.81342790821346, -0.0, 27.86611507785657, 20.704318936877076, 0.6285393610547088, 15.399214345840367, 6.132890365448506, -0.0, 15.049833887043189];
A = sparse([1, 12, 2, 12, 3, 5, 8, 4, 12, 6, 9, 7, 12, 10, 11, 12], [1, 1, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 11], [-1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0], 12, 11);
b = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 10.0];
cones = [Clarabel.NonnegativeConeT(1), Clarabel.PSDTriangleConeT(4), Clarabel.NonnegativeConeT(1)];
settings = Clarabel.Settings();
solver = Clarabel.Solver();
Clarabel.setup!(solver, P, q, A, b, cones, settings);
result = Clarabel.solve!(solver)

Now, the result status is SOLVED, however, Clarabel reports a better optimal objective value than possible:
julia> result.obj_val
-146.0668053087124
julia> dot(result.x, P, result.x)/2 + dot(result.x, q)
-129.2779437022457

So the actual solution that is returned has a different objective value that the objective value in the result object. Additionally, the duality gap is reported to be 9.79e-9. For this small a gap, even the "actual" result seems to be still a bit far from the optimal value. Mosek reports -130.00045750377342, Mathematica -130.00045729259804...

Yes, that is not good.   Thank you for submitting the issue.
@yuwenchen95 : maybe this is an issue with calculating objectives with scaled PSD cones?   That's a guess though.

Sorry for the late reply, I didn't get a notification of your edit and only saw it when I manually checked the issue.
I don't use JuMP/MOI; the problems are formulated directly in the respective solver interfaces. Unfortunately, I don't exactly know which of the many test problems I used to produce this particular example, so I tried to reconstruct it (luckily I found and old stored Mosek task that gives 130 as objective) and found out that the blame goes to me completely.
The P I gave above is lower-triangular, whereas I now read in the manual that it should be the upper triangle of the relevant matrix. This explains the discrepancy of objective and calculated objective.
Plus, even if I transpose P, there is some confusion in my example about the off-diagonal scaling. For the given A, which makes my x[2:end] to be the scaled lower triangles of the PSD matrix, the correct P should actually be
sparse([1, 1, 2, 3, 4, 5, 5, 6, 7, 3, 8, 5, 6, 9, 4, 10, 5, 6, 9, 11], [1, 2, 2, 3, 4, 5, 6, 6, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11], [2.0, 2.0, 2.0, 0.444444, 0.444444, 1.05648, -0.667171, 1.52824, 1.11111, -0.444444, 0.444444, 0.140952, 0.0996678, 1.52824, -0.222222, 1.11111, -0.300697, -0.212625, 0.0730897, 0.777409], 11, 11)

And now result is indeed correct - so I'm very sorry about this noise, I don't know what went wrong the last time.


Black opaque blocks when scrolling up

I think the problem is close to what is posted in Issue#80.
However, I want to clarify that a little bit. I was just doing the video demo, and found this:

The difference is that I rewrite demo in swift, and set the navigationBarAppearace in AppDelegate.
I've taken a close look at things that needs to be careful, and I followed every step from within the video.
What is the problem?

Hi @alex4814
Try setting this property:
self.setUseSuperview(false)

@andreamazz i was using a plain UIViewController, so I didn't put this statement according to Using it with UITableViewController or UICollectionViewController.
Anyway, I did as you said(I put it in the viewDidLoad, may be a wrong place?). Unfortunately, it still remains the same as before.

Hi, did you also try with
self.setUseSuperview(true)

I also get the two cases mixed up :sweat_smile:

= =, Well, that works. BTW, is it able to hide/show toolbars along with navigation controller as well when scroll down/up ?

No, toolbars are not currently supported.


request: a Beatstep module

I don't have the Minilab-3, however, I have the Arturia Beatstep (and a pro, that i use as a sequencer)
I Would love to see a module like this for the beatstep. Using it's pads (16), Encoders (16) and transport buttons to do what you do with this (vcv-minilab3) module.
Maybe only 8 pads for "encoder banks" - and the other 8 can be momentary or toggle CV's
I enjoy your modules!
regards,
Jens Peter

Hmm. I wonder how much of a challenge it would be to try to make that without the device on hand. It'd be practically the same code so maybe I could just wing it.

Just on a  sidenote, I patched something and shared it earlier.
https://community.vcvrack.com/t/using-push-2-as-controller-for-vcv-rack/16097/3
It showed how to use buttons as modifers for the encoders on the Ableton Push2.
I think your module can be quite popular, if you could somehow make it work for different hardware.
Just let me know, and I will do some thorough testing.

Ah that's very cool that you made a similar thing using pure patching. I love that.


Doesn't work?

Tried viewing this on: http://www.cssscript.com/demo/mobile-app-like-drawer-navigation-pure-javascript-sidebarjs/
And also locally. Safari Version 9.1.1 (11601.6.16)
Nothing happens on toggle click.
Console:
[Error] SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
(anonymous function) (sidebar.js:6)
[Error] ReferenceError: Can't find variable: SidebarJS
global code (mobile-app-like-drawer-navigation-pure-javascript-sidebarjs:66)

SidebarJS is still in alpha.
The entire repository is work in progress.
If you want to see a preview, run it on Chrome (not Safari, Firefox or others).
I will let you know when will be released!

Just released!


SOLR-17467: Fix Windows start script for default / cloud mode

https://issues.apache.org/jira/browse/SOLR-17467
Description
The current changes of this issue that were introduced in #2729  broke the start script on Windows. Executing bin\solr.cmd start failed with errors. See https://github.com/apache/solr/pull/2729#issuecomment-2424106562 for details.
Solution
Changing these two lines seems to solve the issue. The one change makes sense, the other one doesn't. I guess it's magic. 😕
@epugh I added you as reviewer since you have made most of the work in the original PR and should better understand the logic of the changes.
Tests
No tests were modified.
Checklist
Please review the following and check all that apply:

[X] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[X] I have created a Jira issue and added the issue ID to my pull request title.
[X] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended, not available for branches on forks living under an organisation)
[X] I have developed this patch against the main branch.
[X] I have run ./gradlew check.
[ ] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Can you confirm that if you call it with --user-managed you get non cloud mode to work?   I don't quite see how that happens...  (If it does great!).   Does the --user-managed just get passed through as another parameter so we don't need special handling?

This is what I cannot understand. Apparently it is passed as another parameter, but I can't find the place where. It looks like there is some wildcard like %2 in the script that passes it during execution. I confirmed the user-managed mode by looking into the AdminUI view (cloud mode starts and displays collections, user-managed does not) and the solr.mode java prop being user-managed / solrcloud accordingly.

i think, in a future ticket, we can probably prune some more of the logic in .cmd, however lets save that for another day.   I think this is ready to be merged.
Having said that, @rahulgoswami if you have any suggestions, do ping us!

@malliaridis if you want me to merge and backport, I can, but now that you are a committer....


Increase timeout of sterling oms deploy script

Currently set at 30 minutes and some deployments are taking longer.


Rss integration

Pull overview

Build RSS and the dependencies by bazel

build rss related files as an option by --define rss=true

Implement rss check as an evaluator

implement a rss_interface to access rss libraries

Implement visualization for rss safety response
Implement drawing rss debugging message in viewer.py
Add two examples running rss as a demo
Implement python and C++ unit tests for rss
Documentation

Rss can be now run on:

city_highway_straight
DR_DEU_Merging_MT_v01
DR_CHN_Merging_ZS_partial_v02

This PR will be closed because the commits are messed up, moving to #426


Add support for new Application Load Balancer

Application Load Balancer have been announced. It claims support isfpr CloudFormation thought the docs might yet have to be updated.
Here is the blog post: https://aws.amazon.com/blogs/aws/new-aws-application-load-balancer/

PR and discussion: #544


Unable to stream RTSP from Fedora Coreos podman container

Describe the bug
I'm unable to stream rtsp unicast from a container running in Fedora Coreos 36 using podman.
Tailing the logs the stream appears to begin then immediately stop, on the client app the stream fails to start.
I've tested with VLC on my desktop and ipcam ISO app.
The camera and command line arguments work in Arch Linux, and Fedora Server 36 running in podman and outside of a container.
Logs shown with -vv log verbosity
Oct 22 18:37:07 kore v4l2rtspserver[16220]: handleCmd_SETUP:SETUP rtsp://<IP_ADDRESS>:8554/custom_url RTSP/1.0
Oct 22 18:37:07 kore v4l2rtspserver[16220]: CSeq: 0
Oct 22 18:37:07 kore podman[16136]: [INFO] /v4lhandleCmd_SETUP:SETUP rtsp://<IP_ADDRESS>:8554/custom_url RTSP/1.0
Oct 22 18:37:07 kore podman[16136]: CSeq: 0
Oct 22 18:37:07 kore podman[16136]: Transport: RTP/AVP;unicast;client_port=9382-9383
Oct 22 18:37:07 kore podman[16136]:
Oct 22 18:37:07 kore v4l2rtspserver[16220]: Transport: RTP/AVP;unicast;client_port=9382-9383
Oct 22 18:37:07 kore v4l2rtspserver[16220]:
Oct 22 18:37:11 kore v4l2rtspserver[16220]: [INFO] /v4l2rtspserver/src/V4L2DeviceSource.cpp:29
Oct 22 18:37:11 kore v4l2rtspserver[16220]:         intv_sec:1666463810 fps:11 bandwidth:4017kbps

Troubleshooting steps taken

Set selinux to permissive mode
Run container in --privilege mode
Add --cap-add ALL
Tested with and without authentication
Tested with port mapping and --net=host
No firewall is running to block network activity
No changes occurred with the above, other than audio streaming won't work without additional capabilities.

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS] Fedora 36

Browser [e.g. chrome, safari] VLC

Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6] iPhone 10 SE
OS: [e.g. iOS8.1] Latest
Browser [e.g. stock browser, safari] ipcam, vlc
Version [e.g. 22]

Additional context
Add any other context about the problem here.
v4l2rtspserver_logs.txt

Hi,
Capture seems working, probably UDP packet are lost. Did you try using RTP over TCP ?
Best Regards,
Michel.

@mpromonet Hello, thanks for your quick reply.
/dev/video:soundcard was a typo, was supposed to be a , separator. I've been troubleshooting on the live system and copying into my config.
It looks like there were two issues.

Variables being passed to v4l2rtspserver appear to be using the users env rather than the containers. Switching to file secrets and command substitution using -u "$(cat /run/secrets/url)" also fails.
Execing into the container I can see the process didn't get the variable output as -u is empty

/usr/local/bin/v4l2rtspserver -S2 -p 80 -C1 -A48000 -aS16_LE -u  /dev/video0,hw:CARD=Camera,DEV=0

Syntax for passing the video device appears to matter
Using a mapping like --device /dev/video0:/dev/video0 silently fails, but --device /dev/video0 works.
Using symbolic links is also odd, I'll add my working example using symbolic links incase this is helpful for others in the future.

Trying to use a sym link as the video device argument fails, but if it's mapped to /dev/videoX it works. Not sure why but that also tripped me up.
podman run \
            --name v4l2rtspserver \
            --pull newer \
            --device /dev/v4l/by-id/usb-HD_Camera_Manufacturer_HD_USB_Camera_2020101401-video-index0:/dev/video0 \
            --device /dev/snd:/dev/snd \
            -p 8554:8554 \
            docker.io/mpromonet/v4l2rtspserver:latest-amd64 \
            -S1 \
            -C1 -A48000 -aS16_LE \
            -u ${URL} \
            /dev/video0,hw:CARD=Camera,DEV=0

Here's my final solution to get podman secret env variables working.
--cap-add and --privileged aren't required.


[BUG] User unable to withdraw from Optimism execution reverted: Invalid withdraw Error: Internal JSON-RPC error.

User unable to withdraw from Optimism execution reverted: Invalid withdraw Error: Internal JSON-RPC error..
See logs.www.palomabot.ai-1732641706726.log

user already withdrew. https://optimistic.etherscan.io/tx/0x5375a268026b19d95df5878c863c5c6ccb2d5d5d3c228f5064d2d0dd898f64b1


Get disconected after a few seconds

On iOS 0.15.4 latest Voxelwind build i disconect after a few seconds and i cant chat in the time im connected.
Log: http://paste.ubuntu.com/23224527/

Were you the only one connected to the server? If this was the case, the issue might be when sending the players the McpePlayerList packet with them inside the array of new players.
If not, it may be because the packet is too large (Look at the last line of code)

Just me, its a local server

Resolved for now, there are indeed problems with the player list packet.


enable ARM GNU toolchain.

Signed-off-by: Jiewen Yao<EMAIL_ADDRESS>Some data AARCH64, release

ARM GNU toolchain

-rwxr-xr-x 1 jyao1 jyao1 108440 Nov  3 20:52 build_aarch64_none_gcc/bin/test_size_of_spdm_requester*
-rwxr-xr-x 1 jyao1 jyao1 108744 Nov  3 20:52 build_aarch64_none_gcc/bin/test_size_of_spdm_responder*

GCC

-rwxr-xr-x 1 jyao1 jyao1 146144 Nov  2 14:16 build_aarch64_gcc/bin/test_size_of_spdm_requester*
-rwxr-xr-x 1 jyao1 jyao1 146408 Nov  2 14:16 build_aarch64_gcc/bin/test_size_of_spdm_responder*

Approved. But what's the difference between ARM_GNU and ARM_GCC?

ARM_GNU is an official toolchain downloaded from ARM.org.
ARM_GCC is downloaded from GCC.


TreeView search/filter input & api for customization

As was talked about in #70646, searching/filtering custom trees is really hard currently. Even if you get the unintuitive feature to work, as an extension author you have no control over how the tree will be updated.
To provide a better UX, it would be really nice to have fine-grained control over tree filtering via the vscode extension api:

control over whether a separate input field should be shown above a tree (like the one in the extensions or scm views)
callbacks including the search contents that can be used to populate the tree with items.

Thanks for considering this and thanks for an overall great developer experience with vscode :)

control over whether a separate input field should be shown above a tree (like the one in the extensions or scm views)

This we will not do, as the ctrl+f command is our unified tree search mechanism.

callbacks including the search contents that can be used to populate the tree with items.

This is a fair feature request.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Ok that makes sense. Thanks for the feedback.

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Is there currently a way to not filter out children of a matching parent, or would that require this feature?

That's pretty much what I'm trying to achieve with this feature :p

This would indeed be a lovely feature addition to the tree view API, hoping it gets picked up at some point

Is there any progress on this issue


Windows database location

The Windows database location is very obscure and I cannot find a wat to change it.
On my computer it is C:\Users\dgath\AppData\Local\Packages\2ec69159-e20c-4b1f-a4b4-8e3280dc366d_e0585h415c4d2

I've been working on this: https://github.com/andpor/react-native-sqlite-storage/issues/491#issuecomment-1362516601

SOLVED: https://github.com/andpor/react-native-sqlite-storage/issues/491#issuecomment-1368515615


no infowindow on click on marker

hi,
just installed your gem (thx) on a new rails3 app. markers are shown. then i tried this:
@json = User.all.to_gmaps4rails do |user, marker|
marker.json({ :id => "FOO" , :foo => "BAR" })
end
but only the markers are shown, no additional infowindow when i click on them. what could be wrong?
thx

You're not supposed to use marker.json to have an infowindow.
use marker.infowindow


dependencies whitelist for pnpjs

I am recently writing types for pnpjs which has dependency on those types

Can you link the DefinitelyTyped PR?

PR on DefinitelyTyped

Can you link the DefinitelyTyped PR?

PR on DefinitelyTyped


New output: EPI 4D volumes in MNI space (but using original resolution)

I had some discussions with NeuroSpin people and came to a conclusion that in addition to saving the unwarped and motion corrected 4D EPI volumes it would be also useful to save the normalized (transformed into MNI space) versions.
The main thing to keep in mind is that even though those outputs should be in the MNI space they should keep the resolution (voxel sizes) of the original EPI data (instead of the 2x2x2 or 1x1x1mm of the MNI template). This way we would not waste much space.
I think there should be a relatively easy way to apply transforms (the affine going from sbref to T1 and the nonlinear going from T1 to MNI) to the EPI data that would force the output resolution. It would be good if we could avoid creating an intermediate file in the MNI template resolution that would be then downsampled.

Ok, no problem. This is not hard to implement.
I wonder why you want to keep the original resolution, though. The interpolation processes will be still there, there'll be no difference in accuracy w.r.t. resampling to the MNI space. We can set, though, a resampling to the 1x1x1 mm MNI space, if the 2x2x2 is too coarse.
Just thinking out loud.


Create Graph service

Create a graph service that allows projects to deploy their subgraphs on Taiko

good

closing this. @2manslkh feel free to open another issue for tracking the GIP.


react-use-precision-hook rerendering question

Via email:

Hi! I'm not sure if this is by design or some limitation of React or what since I'm not all that knowledgeable of the deeper parts of it but this library of yours (which is very useful and lovely) has a bit of a re-rendering problem in my opinion since even without any callbacks or just an empty one the hook keeps re-rendering everything all the time. while the timer is running even the methods returned are new? I think? Is there a way to use this timer without it re-rendering everything every callback? I'm trying to build a poker timer with it and having it re-render everything including the many buttons and a potential form and just everything in general that is below the timer in hierarchy every tick is insane. Even in your example (might have been for simplicity) I've seen that every callback / render frequency interval set with the slider on the right literally everything re-renders. Any help with this would be greatly appreciated since I've been pulling my hair out for over a month anytime I work on it. Thanks in advance :)

Currently it's a limitation of the package, but think I can switch the state to React refs to counter this. Would require lots of testing to make sure nothing breaks.


Migrate http/command/file resources to use gomega matchers

Describe the feature:

The http/command/file resources don't support Gomega matchers which have more features than their current pattern matching like described on #532
Describe the solution you'd like

We whole io.Reader shouldn't be dumped to memory in case the contents are huge. The solution is to stream the contents into a custom ContainElement like Gomega matcher, like talked about on https://github.com/aelsabbahy/goss/pull/508#issuecomment-562362162.
The backward compatibility with the pattern should be kept.
Describe alternatives you've considered

N/A

@aelsabbahy While you are around working on Goss you mind taking a look at this FR? We have talked about this before but I want to ensure we are on the same page as much as possible since it will be a decent development effort.

Would this also allow for the use of and, or, not clauses in file contents?
I have a challenge of checking some URLs in a config file to test if they are correct and they could either be the IP or hostname. Right now I don't believe it's possible hence my interest.

Would this also allow for the use of and, or, not clauses in file contents?
I have a challenge of checking some URLs in a config file to test if they are correct and they could either be the IP or hostname. Right now I don't believe it's possible hence my interest.

@donmstewart if those URLs are on the same lines you might be able to do the boolean logic via regex using the Pattern Matcher.
Feel free to open an issue with your use case and example files and we can try to help you.

The io.reader logic will be a bit tricky to figure out. I'm really curious on your proposed solution @pedroMMM.
In my mind it seems very difficult to have both the reader + complex tests without duplicating the streams, dumping into memory, or other magic.
Wonder which implementation would be easier:

Support for special io.reader matchers
Convert reader to array whenever it's using these matchers. Put a note in the doc about losing memory efficiency ("don't do this on a 50gb file")

@aelsabbahy I have been thinking of creating a special io.Reader matcher that on a sliding window the stream converts to an array and then applies the regular []string matcher. The sliding window should then be configurable by the test but default to something like 10 or so.
I am suggesting a sliding window so we can target evaluations that have break lines in them. But I am more than open to default the window to 1 and bypass the slower code so it defaults to a faster evaluation.
Honestly, it's been a while since I looked at the code so I need to freshen up the implementation but that is the essence of my original idea.

I guess in my ideal would be being able to support all matchers across the board.
So the following can/should be valid:
command:
  echo 2:
    exit-status: 0
    stdout:
      and:
       # Transforms and tests against numeric
       - lt: 5
       # This is either the old pattern matcher (or maybe the new #538 complex matcher/MatchAllElements)
       - NewPatternMatcher:
           - '/[0-5]/'

Let me know if my example doesn't make sense. Basically, I'd like to get it so that all attributes are going through gomege and are always transformed into the proper type before testing.
I'm thinking once that's implemented, it would make it so all the tests behave similarly. It may also alleviate the issue of not being able to see the output of command when it fails as that comes up as a common difficulty with goss.

@aelsabbahy so you are suggesting to go down the simple path of

Convert reader to array whenever it's using these matchers. Put a note in the doc about losing memory efficiency ("don't do this on a 50gb file")

Honestly, I am not opposed to it at all. Keeping things simpler should keep bugs and performance issues at bay.

Let me know if my example doesn't make sense. Basically, I'd like to get it so that all attributes are going through gomege and are always transformed into the proper type before testing.

My biggest worry here is the existence of a breaking change and your example implies it. I am also still not clear on what you have in mind for #538, but discuss it more especially since you have a plan in mind for the order of implementation.

hmm.. wonder if we can somehow implement it in a backwards compatible way. So keeping the old functionality if an array is passed, but as soon as you use a mapping, string or numeric it's converted to whatever type is the test is of (and loaded in memory).
example:
command:
  echo 2:
    exit-status: 0
    # works same as before
    stdout: ["foo", "/bar/"]
    # converts to string, array, numeric
    stdout: "foo"
    stdout:
        contains-element: ...
    stdout:
        lt: ...

Honestly, I am not opposed to it at all. Keeping things simpler should keep bugs and performance issues at bay.

This is the ideal that I'm trying to get to with #538 and this ticket. I would love for all attributes to behave the same way for the end user, it will make adding any new attributes a breeze and immediately gives a consistent API to the user.
(I'm thinking out loud here, so might be half baked idea)..
Maybe the attributes need to have a concept of a "default matcher?" Unless you can think of a better way to handle the difference between command.stdout (test is an array, but uses io.reader and pattern matching) vs user.groups (test is also an array, but uses contain element) https://github.com/aelsabbahy/goss/blob/master/resource/gomega_test.go#L34

Maybe the attributes need to have a concept of a "default matcher?" Unless you can think of a better way to handle the difference between command.stdout (test is an array, but uses io.reader and pattern matching) vs user.groups (test is also an array, but uses contain element) https://github.com/aelsabbahy/goss/blob/master/resource/gomega_test.go#L34

So here is where I want to break backward compatibility!
command:
  echo 2:
    exit-status: 0
    stdout:
      # uses the gomega.ContainElement
      - "foo"
      # uses the gomega.MatchRegexp
      - "/bar/"

Essentially it would force all the users that have the simple pattern "matcher" into adding a regex (/old pattern/). It's a small change but it could make this so much simpler. We could still keep support for the negative regex !/.../ since we have to evaluate each element in the array anyways.

@pedroMMM This + transforms has been on my mental backlog for a while and I know the verbiage on #538 probably didn't do my thoughts justice.
I've added a comment with an example branch in #538 that provides a rough initial draft of my thoughts + example files.
This has been a major feature I've wanted for a long time and I finally got time to hammer out an initial POC.
If you don't mind, let's continue some of this chat on #538 since all these features are interrelated.

#576 will close this out. Marking this as a duplicate #538


Performance issues on Windows with ESLint

I'm on Windows and currently using JSHint for JS checking and it's super-fast. I save and before I can move the cursor, the linting is done.
However, I decided to switch to ESLint and it freezes up VIM for good 10 seconds. Any idea why that would be?

Please open your test file, set g:syntastic_debug to 1, run the checker, run :mes, and post the output.  Then run :SyntasticInfo, and again, post the output.  Don't do anything else;  the order of running these is also important.

Since I can't seem to be able to directly copy paste, I'll rewrite it:
"~\Path\to\my\project\app\app.js" 76L, 2037C
"app.js" 76L, 2037C written
syntastic: 4.166771: g:syntastic_version = '3.5.0-15'
syntastic: 4.169603: &shell = 'C:\Windows\system32\cm.exe', &shellcmdflag = '/c', &shellpipe = '>%s 2>&1',  &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquote = '(', &shellxescape = '"&|<>()@^'
syntastic: 4.170912: UpdateErrors (auto): default checkers
syntastic: 4.173432: g:syntastic_aggregate_errors = 0
syntastic: 4.173819: getcwd() = C:\path\to\my\project\app
syntastic: 5.141627: CacheErrors: Invoking checker: javascript/eslint
syntastic: 5.142711: SyntasticMake: called with options: {'postprocess': ['guards'], 'errorformat': '%E%f: line %\l, col %c\, Error - %m,%W%f: line %l\, col %c\, Warning - %m', 'makeprg': 'eslint -f compact app.js'}
syntastic: 6.022188: getLocList: checker javascript/eslint returned 1

SyntasticInfo
Syntastic version: 3.5.0-15
Info for filetype: javascript
Mode: active
Filetype javascript is active
Available checkers: eslint jscs jshint
Currently enabled checker: eslint

Your syntastic is very old, you might consider upgrading it to the current master HEAD.
Anyway, your problem seem to be outside syntastic.  It takes less than 2 seconds for syntastic to finish the first run (from 4.170912 to 6.022188), and subsequent runs should be ~1 second faster (roughly from 5.141627 to 6.022188).  If you wish to debug this further you might try to get a profile log (cf. #688), upload the results somewhere, and post the link.

Hmm, updating syntastic made it a little more bearable. The first time around after launching VIM, it takes like 5-10 seconds (depending on file size) and afterward, it doesn't take as long. :/

Like I said: if you feel this is worth investigating further, please get a profiling log (instructions for doing that are now in the wiki), upload it to Google Docs or similar, and post the link.

Thanks!


bin/harvest start --foreground poller should not assume debug

When running bin/harvest start --foreground poller harvest builds the cmdline args used to exec the poller process. Today, when Harvest detects --foreground, it automatically adds --debug to the args for the poller process.
That isn't needed and prevents the systemd workflow from working since --debug disables exporters.
Debugging can still be achieved by invoking bin/harvest this way
bin/harvest start --debug --foreground poller

verified in release/21.05.4
bin/harvest --config harvest.ved.yml start --foreground venkat

ps aux | rg poller
cgrindst         27171   0.9  0.0  5029112  13580 s012  S+   12:28PM   0:00.08 bin/poller --poller venkat --loglevel 2 --promPort 12996 --config harvest.ved.yml


User right selector on 9gag

This was an oversight, 9gag.coffe had the wrong css selectors, is there currently a better way to test the merging to master?

Easiest way to test is test the script locally on your own Hubot, or using the shell adapter

I've been trying that, but with no luck, I added my custom coffeescript file to my hubot scripts folder restarted heroku and tried it, it was a no go, then I setup a static message and still nothing, what am I doing wrong?

You will need to clone your hubot from Heroku, add the script, commit the changes and re-push to Heroku. Also locally testing with the shell adapter is just as easy.

Clone hubot repo
npm install the dependencies
Add your script to src/scripts
bin/hubot

Then you'll have a REPL for testing commands.

Also should the version in this project package.json change whenever we change a script?

No, only when we make a new release.


Improvements to save_as_xml function

Somewhat related to issue #915.
Commits are quite self-explanatory, but this fixes a few things:

A bug where non-existent tags would get written to the XML file when they shouldn't.
Adds a way to specify the OSM version to write in the header
Adds a way to specify how many decimals to keep when writing lat-long coordinates
Sets the encoding to UTF-8. This is useful for areas that have non-ascii characters in the name (for example, in Québec)

Thanks

Why don't the CI tests just lint the code directly instead of failing?

The test coverage report states:
codecov/patch — 92.85% of diff hit (target 97.85%)

When you make the requested changes to the PR, would you check the test coverage?

The test coverage report states:
codecov/patch — 92.85% of diff hit (target 97.85%)

When you make the requested changes to the PR, would you check the test coverage?

@gboeing I'm not sure that I understand how the tests work.
For example, these lines in the tests:
https://github.com/gboeing/osmnx/blob/5b87c2b14d78425e9d0fe2d485b8a4f5c75384b3/tests/test_osmnx.py#L171-L172
Unless I am mistaken, this does not test if the output is valid. It merely ensures that the code hasn't produced any exceptions. A real test suite would look at the written data and ensure that it is valid OSM xml. Is this correct?
In this case, how would you suggest that I modify the code to improve the test coverage?
Thank you very much

Unless I am mistaken, this does not test if the output is valid. It merely ensures that the code hasn't produced any exceptions. A real test suite would look at the written data and ensure that it is valid OSM xml. Is this correct?
In this case, how would you suggest that I modify the code to improve the test coverage?

yes it looks like the XML tests are just checking for exceptions. At a minimum, could you ensure that the lines in your diff are hit by the tests and no exceptions result?

ideally yes it would be great to validate the XML output. I do not work with OSM XML files myself so my expertise there is limited. Are you aware of any validator tools?

Let me know if this PR is still under development and should remain open.

Let me know if this PR is still under development and should remain open.

Hi, yeah I haven't had time to finish it up but I'll get it done soon.

I've been going through and closing out stale PRs and issues. Let me know if this remains active.

@gboeing Sorry, don't think I'll have time to fix the unit tests. However, the improvements in this PR are valuable and I think they should be merged (or considered) to be merged in the main tree. Cheers

this does not test if the output is valid. It merely ensures that the code hasn't produced any exceptions. A real test suite would look at the written data and ensure that it is valid OSM xml

#1135 adds an OSM XML schema XSD file and now validates saved OSM XML files against it in the test suite.


VIVE Controller bug in v2.4.0-alpha5

so I have a big problem. Whenever I start ALVR on my oculus quest and connect it to my pc it only shows me the VIVE controllers despite the latest ALVR version v2.4.0-alpha5. In addition to that only the right one works and the left one is centered in the middle, cannot be moved and steam shows that it has only 1% battery left although it is 100% charged.

Yes, I'm having that problem also.

for the quest please try this fork:
https://github.com/JackD83/ALVR


Multiple values in translation

I'm submitting a ...  (check one with "x")
[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[x] feature request

Not sure whether this is already implemented and (probably) not documented or if this is a feature request.
You were probably already expecting this one, I'd like to supply multiple params to the pipe. Is there a similar way to do this like it is done now with only a single parameter: {{'value' | translate:param}} (e.g. {{'value' | translate:param1:param2:...}})?
A workaround for now would be:
{{'value' | translate:'{param:"\'+param1+\'", otherparam:"\'+param2+\'"}'}}
Plunker:
http://plnkr.co/edit/mwE3PCTo7PTlMgH7ljIQ?p=preview
Thanks.
EDIT:
{{'value' | translate:param1:param2:...}}
Would require the order to be correct which could result into unexpected behaviour. Maybe this is not the way to go. Maybe it would be better to do some research into why this is not working: {{'value' | translate:{param: param1, otherparam: param2}}}.

Yes using an object with multiple keys is the way to go for now.
The pipes in Angular support multiple parameters, but I'm only using the first one for now: https://github.com/ocombe/ng2-translate/blob/master/src/translate.pipe.ts#L90
If you want to make a PR to support more than one, you can :)

This syntax worked fine for me:
{{ 'value' | translate: { 'param': param1, 'otherparam': param2 } }}

@ocombe Must have been due to another commit. Got to love it when an issue solves itself 👍
@aidanmischke The quotes around each param name didn't work for me, but moving them to the entire object did: {{ 'value' | translate: '{ param: param1, otherparam: param2 }' }}


"warn" action for socket npm

This is already partially implemented in #46 - might want to make sure there are no conflicts there


Adds tracking attributes to footer links

Trello: https://trello.com/c/z9DP4EMK/402-add-tracking-to-govuk-footer-links

Thanks, Andy. I've added data-module="track-click"!

Many thanks, Andy! I'll followup with Haur once this is deployed.


Can't seem to accurately pass in P1/P2 params.

Hi!
Currently trying to create a Flask route which will take parameters, perform a populartimes.get() call, and return the JSONified data.
This is the route as-is:
@app.route("/get")
def get():
    types = request.args.get("types")
    p1 = request.args.get("p1")
    p2 = request.args.get("p2")
    n_threads = request.args.get("n_threads", type = int, default = 1)
    radius = request.args.get("radius", type = int, default = 1000)
    all_places = request.args.get("all_places", type = bool, default = True)

    return jsonify(populartimes.get(api_key, types=types, p1=p1, p2=p2, n_threads=n_threads, radius=radius, all_places=all_places))

And the current URL: http://localhost:5000/get?types=bar&p1=(48.132986,%2011.566126)&p2=(48.142199,%2011.580047)
However, this runs into an issue when parsing p1/p2
ValueError: could not convert string to float: '('
How can I make sure I'm properly passing the right values and types into the function, and properly make the call?

requirements.txt
certifi==2018.11.29
chardet==3.0.4
Click==7.0
Flask==1.0.2
geographiclib==1.49
geopy==1.18.1
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.1.0
populartimes==2.0
requests==2.21.0
urllib3==1.24.1
Werkzeug==0.14.1

The issue is your use of lists for the points parameter. The .get() is trying to evaluate them as floats, but misses on the conversion because they are wrapped in parentheses. If you are accepting the points through flask you can either a) switch to a post form request, and pass through a list through the form for the two points, or b) you can wrap them in brackets (ie, ['xx.xx', 'yy.yy']), using either json.loads, or ast.literal_eval(). Make sure to use some form of error handling in case your program can't read the inputs.


Fix types in translation documents

Polling was typing old transport, while codegen use new transport
_async_url can't be None, so was triggering error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str")  [assignment]

API change check
API changes are not detected in this pull request.

Check Enforcer is stuck, I'm confident enough to merge this.


start-smart.sh --format executed, but no table is created in database

This blocks the SSM installation on ADAS Poland cluster.
mysql: 5.7.19
OS:14.04
Log info:
2017-07-19 20:37:57,564 ERROR org.smartdata.metastore.dao.AccessCountTableManager.recoverTables 101: org.smartdata.metastore.MetaStoreException: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [SELECT * FROM access_count_tables ORDER BY start_time ASC]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'ssm_metastore.access_count_tables' doesn't exist
2017-07-19 20:37:57,575 INFO org.smartdata.hdfs.HdfsStatesUpdateService.init 68: Initializing ...

start-smart.sh -format?

'--format' is not valid parameter for SmartServer, it's '-format'

OK.  So I have two suggestions here

make the parameter style consistent.  Only format requires one '-', all other parameters requires double '-'.  So confusing.
If go through start-smart.sh, you can find all the options supported there, but not this format option. It would be better if we remind end user that the specified option is not supported.

'-format', not like '--daemon' which is shell script parameter, is not a script parameter, it's SmartServer's input parameter

I know the difference. But still confusing. I have used this command many times, most of times are OK, but still have chance to make such mistakes.  If we can make the style consistent, that will be very helpful to reduce the mistake.

Confusing +1

@ChenSammi @huafengw @qiyuangong @manuzhang @timmyyao @zhiqiangx
From now using "bin/format-database.sh" to format the database. Thanks!

Solved!


ACM-12945 Use single-page mode and new domain for doc links

https://issues.redhat.com/browse/ACM-12945

/cc @Randy424

/lgtm


Permormance issue when loading 4 indexes

I've relatively small 4 indexes that I load each time I start the execution of my algorithm.
Loading takes ~100 ms using hashMap, and ~300ms using BtreeMap.
Here how each index is loaded:
BTreeMap<String, String[]> map = db.treeMapCreate("map")
.keySerializer(Serializer.STRING)
.valueSerializer(new Serializer.Array(Serializer.STRING))
.makeOrGet();
I've noticed that the first index takes always the highest execution time compared to other indexes.
Is there a way to optimise loading my indexes ?
I'm using the latest version 2.0-beta12.

Hi,
use valuesOutsideNode() settings, also maybe change node size.
Jan
On Monday, January 04, 2016 15:16:49 Nasreddine Cheniki wrote:
I've relatively small 4 indexes that I load each time I start the execution of my
algorithm. Loading takes ~100 ms using hashMap, and ~300ms using BtreeMap.
Here how each index is loaded: BTreeMap map =
db.treeMapCreate("map").keySerializer(Serializer.STRING).valueSerializer(new
Serializer.Array(Serializer.STRING)).makeOrGet();
Is there a way to optimise loading my indexes ? I'm using the latest version 2.0-
beta12.
—Reply to this email directly or view it on GitHub[1].[2]

[1] https://github.com/jankotek/mapdb/issues/657
[2]
https://github.com/notifications/beacon/AAV6be2JSdOs5RD2sifrGZH_0K2RtqOBks
5pWvThgaJpZM4G-cyy.gif


Go install all components

I see issues when deploying, where the eirini api, task reporter, and metrics are in CLBO. All report issues accessing cert files in their kube logs:
work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-api
fetching pods => 25
kubectl logs eirini-api-7bf8f85cc9-845tg --namespace eirini-core

W0115 08:48:13.884190       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
Failed to build TLS config: failed to read certificate(s) at path "/etc/eirini/certs/ca.crt": open /etc/eirini/certs/ca.crt: no such file or directory
{"timestamp":"2021-01-15T08:48:13.885120879Z","level":"info","source":"handler","message":"handler.opi-connected","data":{}}

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-task
fetching pods => 25
kubectl logs eirini-task-reporter-96bf7c555-27scg --namespace eirini-core

W0115 08:48:23.887806       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:23.888611       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "CC Cert" file at "/etc/cf-api/certs/tls.crt" does not exist

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-metrics
fetching pods => 25
kubectl logs eirini-metrics-6cc65d55db-d4w4d --namespace eirini-core

W0115 08:48:26.887957       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:26.888870       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "Loggregator CA" file at "/etc/loggregator/certs/ca.crt" does not exist

I see issues when deploying, where the eirini api, task reporter, and metrics are in CLBO. All report issues accessing cert files in their kube logs:
work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-api
fetching pods => 25
kubectl logs eirini-api-7bf8f85cc9-845tg --namespace eirini-core

W0115 08:48:13.884190       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
Failed to build TLS config: failed to read certificate(s) at path "/etc/eirini/certs/ca.crt": open /etc/eirini/certs/ca.crt: no such file or directory
{"timestamp":"2021-01-15T08:48:13.885120879Z","level":"info","source":"handler","message":"handler.opi-connected","data":{}}

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-task
fetching pods => 25
kubectl logs eirini-task-reporter-96bf7c555-27scg --namespace eirini-core

W0115 08:48:23.887806       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:23.888611       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "CC Cert" file at "/etc/cf-api/certs/tls.crt" does not exist

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-metrics
fetching pods => 25
kubectl logs eirini-metrics-6cc65d55db-d4w4d --namespace eirini-core

W0115 08:48:26.887957       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:26.888870       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "Loggregator CA" file at "/etc/loggregator/certs/ca.crt" does not exist

I see issues when deploying, where the eirini api, task reporter, and metrics are in CLBO. All report issues accessing cert files in their kube logs:
work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-api
fetching pods => 25
kubectl logs eirini-api-7bf8f85cc9-845tg --namespace eirini-core

W0115 08:48:13.884190       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
Failed to build TLS config: failed to read certificate(s) at path "/etc/eirini/certs/ca.crt": open /etc/eirini/certs/ca.crt: no such file or directory
{"timestamp":"2021-01-15T08:48:13.885120879Z","level":"info","source":"handler","message":"handler.opi-connected","data":{}}

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-task
fetching pods => 25
kubectl logs eirini-task-reporter-96bf7c555-27scg --namespace eirini-core

W0115 08:48:23.887806       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:23.888611       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "CC Cert" file at "/etc/cf-api/certs/tls.crt" does not exist

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-metrics
fetching pods => 25
kubectl logs eirini-metrics-6cc65d55db-d4w4d --namespace eirini-core

W0115 08:48:26.887957       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:26.888870       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "Loggregator CA" file at "/etc/loggregator/certs/ca.crt" does not exist

Fixed with this: https://github.com/SUSE/carrier/pull/35/commits/2fb70d22ef5a0353c95a754f856436a773e34959

I see issues when deploying, where the eirini api, task reporter, and metrics are in CLBO. All report issues accessing cert files in their kube logs:
work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-api
fetching pods => 25
kubectl logs eirini-api-7bf8f85cc9-845tg --namespace eirini-core

W0115 08:48:13.884190       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
Failed to build TLS config: failed to read certificate(s) at path "/etc/eirini/certs/ca.crt": open /etc/eirini/certs/ca.crt: no such file or directory
{"timestamp":"2021-01-15T08:48:13.885120879Z","level":"info","source":"handler","message":"handler.opi-connected","data":{}}

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-task
fetching pods => 25
kubectl logs eirini-task-reporter-96bf7c555-27scg --namespace eirini-core

W0115 08:48:23.887806       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:23.888611       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "CC Cert" file at "/etc/cf-api/certs/tls.crt" does not exist

work@tagetarl:~/SUSE/dev/carrier> k logs :eirini-metrics
fetching pods => 25
kubectl logs eirini-metrics-6cc65d55db-d4w4d --namespace eirini-core

W0115 08:48:26.887957       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0115 08:48:26.888870       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
an unexpected error occurred: "Loggregator CA" file at "/etc/loggregator/certs/ca.crt" does not exist

Fixed with this: https://github.com/SUSE/carrier/pull/35/commits/2fb70d22ef5a0353c95a754f856436a773e34959


Deactivating a host doesn't actually stop the host on AWS

Rancher Version:
Latest
Docker Version:
1.10
OS and where are the hosts located? (cloud, bare metal, etc):
Ubuntu 15.10, AWS EC2
Setup Details: (single node vs. single node, internal DB vs. external DB)
Single node
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes
Steps to Reproduce:
Go to infrastructure > select a host > deactivate
Results:
Host is deactivated on the UI, however on AWS the host is still running and racking up bills
Expected:
Host is deactivated both from Rancher server's point of view AND stopped at the cloud provider

Hi @luispabon, deactivating a host merely prevents Rancher scheduler from placing new containers on the host. It doesn't shutdown the host by design.
Once you've deactivated, in the same menu you will have an option to remove the host. Could you try that?

The host would only be deleted if you had launched the host through the UI.
As we had created the host using docker-machine create, when we delete the host, we use docker-machine rm.

@luispabon Let me know if there are more questions as this is expected behavior.

Would be nice to have an option of stopping and starting the host via rancher UI. Not deleting, but just stopping.


IncOptions.useOptimizedSealed is broken on 2.13

build.sbt:
lazy val root = (project in file(".")).
  settings(
    name := "sbt-hello",
    scalaVersion := "2.13.11"
  )
ThisBuild / incOptions ~= { _.withUseOptimizedSealed(true) }

Sealed.scala:
sealed trait Sealed
class Child1 extends Sealed

PatMat.scala:
object PatMat {
  def test(x: Sealed): Int = x match {
    case _: Child1 => 1
  }
}

compile
Add an extra child in Sealed.scala: class Child2 extends Sealed
compile again, only Sealed.scala is recompiled.

If I change scalaVersion to 2.12.18, then PatMat.scala is recompiled as expected.
I assume the zinc scripted tests such as https://github.com/sbt/zinc/tree/develop/zinc/src/sbt-test/source-dependencies/patMat-scope only run with 2.12, it'd be great to run them with 2.13 too to catch this sort of issues.
/cc @retronym who might be aware of projects that use useOptimizedSealed.

Fixed in https://github.com/sbt/zinc/pull/1278


OV 4.1 Support

Scenario/Intent
[What you are trying to achieve but can't?]
I just wanted to see when we can expect the Ansible Modules to be updated to support the new features in OV 4.1. Specifically around the Hypervisor Cluster Profiles

@ckurka ,
We are working on a version to support APIs from OV 4.1 but haven't finalized the release date.


Build error upgrading to Flutter 3.10.0

Error:

Target dart2js failed: Exception: ../../../../../.pub-cache/git/Flutter_dismissible_page-5dde9c12a03d82e8d3d4583ef929422cd21e606b/lib/src/multi_axis_dismissible_page.dart:61:10:
Error: The class 'Drag' can't be used as a mixin because it isn't a mixin class nor a mixin.
with Drag, SingleTickerProviderStateMixin, _DismissiblePageMixin {

@Ciock What is the package version?

I'm on this branch because of this issue https://github.com/Tkko/Flutter_dismissible_page/issues/14
  dismissible_page: # https://github.com/Tkko/Flutter_dismissible_page/issues/14
    git:
      url: https://github.com/Tkko/Flutter_dismissible_page
      ref: feature/scrolable_dismissible

@Ciock it's already merged to master, you can depend on the latest pub version

I'm sorry, I was too hasty. I'm closing

No worries man 🤘


Implement aten::index | feat(torchlib) (#862)

Stack from ghstack (oldest at bottom):

-> #883
#882
#881

This change implements the logic for aten::index and adds tests for different nd index combinations and permutations.
Understanding aten::index
For arg0 with shape [7, 3, 4, 5, 6]
The indexing operation arg0[0, :, 1:2, tensor([[4,5]])] will be translated to
+>  select: i64[3, 4, 5, 6] = torch.ops.aten.select.int(arg0, 0, 0);
+>  slice_1: i64[3, 4, 5, 6] = torch.ops.aten.slice.Tensor(select, 0, 0,<PHONE_NUMBER>854775807);
+>  slice_2: i64[3, 1, 5, 6] = torch.ops.aten.slice.Tensor(slice_1, 1, 1, 2);
+>  index: i64[3, 1, 1, 2, 6] = torch.ops.aten.index.Tensor(slice_2, [None, None, arg1]);

Here,

indices = [None, None, arg1] is equivalent to indices = [None, None, arg1, None]
The operation arg0[0, :, 1:2, tensor([[4,5]])] is equivalent to arg0[0, :, 1:2, tensor([[4,5]]), :]
None in indices are like fillers for dimensions that cannot be removed in the process.

Gather op reference

https://github.com/openxla/xla/blob/main/docs/operation_semantics.md?rgh-link-date=2023-07-13T01%3A09%3A16Z#gather
https://www.pathpartnertech.com/gather-scatter-operation-in-deep-learning-framework/

Co-authored-by: BowenBao<EMAIL_ADDRESS>

🎉 LGTM. Do you plan to add bool mask indices support in this or another PR?

I plan to do it in another PR to keep this one manageable.


How to build image for M2 96GB

I am using M2 OSX 13.2. Python 3.11.1
How can I build docker image that enable MPS + PyTorch
To build on 64GB M1 Max MacBook Pro
Make sure to allocate 48GB of memory and 8 cpu to Docker.
$ ./build.sh --build-type full --jobs 8 --bazel_memory_limit 24576

Please see https://github.com/sonoisa/arm64-docker-pytorch-tensorflow/issues/1#issuecomment-1382653203 .


what positions correspond to do the 7 keypoints from the Palm detection outputs?

I noticed there are 7 keypoints from the palm detection results (7 dots within the green box). could someone explain where these 7 keypoints correspond to?
Also, what are they used for? I assume they are used for determine the bbox orientation. However, the green box is alway upright , doesn't rotate during the detection.
And they are very jittery, any way to alleviate this problem?
many thanks.

Before @bazarevsky replies on this thread, Can you check https://github.com/google/mediapipe/issues/1638#issuecomment-974167633 for more understanding of palm detection output


LoginWithClientCredentials should support scopes to match oauth spec

Checklist

[X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved
I assumed that LoginWithClientCredentials supported scope but looking at the types, it appears that it does not. According to the spec it is optional for client credentials and is something supported by the auth0 api in general.
Describe the ideal solution
Ideally LoginWithCredentials would support scope
Alternatives and current workarounds
I can just do an http post 🤷
Additional context
No response

Hi @bredelman,
Sorry for the delay in replying.
Regarding your question about LoginWithClientCredentials, you can use the ExtraParameters field in the LoginWithClientCredentialsRequest struct to add additional URL parameters, such as the scope.
For example:
authAPI, err := authentication.New(
    context.TODO(), // Replace with a Context that better suits your usage
    domain,
    authentication.WithClientID(clientID),
    authentication.WithClientSecret(clientSecret), // Optional depending on the grants used
)
if err != nil {
    log.Fatalf("failed to initialize the auth0 authentication API client: %+v", err)
}

tokenSet, err := authAPI.OAuth.LoginWithClientCredentials(context.Background(), oauth.LoginWithClientCredentialsRequest{
    ExtraParameters: map[string]string{
        "scope": "", // This sets the scope as a URL parameter
        // Add other additional parameters here
    },
}, oauth.IDTokenValidationOptions{})
if err != nil {
    log.Fatalf("failed to retrieve tokens: %+v", err)
}

This approach correctly sets the scope as a key-value pair in the ExtraParameters map, which will be included in the request as an additional URL parameter.

Ah thanks, I guess I missed that the first time around.


Mono Compatibility Broken with AMQP Net Lite Upgrade

It appears that the upgrade to AMQP NET Lite broken Mono compatibility; AMQP NET Lite no longer lists Mono compatibility as they are moving towards DNX/Core. Pulling source and downgrading to AMQP Net Lite 1.0.0 solved the compatibility issue.
An example of the stack trace I was seeing:
mono-functional_1   | System.Net.Sockets.SocketException : Invalid arguments
mono-functional_1   |   at System.Net.Sockets.Socket.BeginMConnect (System.Net.Sockets.SocketAsyncResult sockares) <0x41186900 + 0x001df> in :0
mono-functional_1   |   at System.Net.Sockets.Socket.BeginConnect (System.Net.IPAddress[] addresses, Int32 port, System.AsyncCallback callback, System.Object state) <0x41186200 + 0x00107> in :0
mono-functional_1   |   at System.Net.Sockets.Socket.BeginConnect (System.String host, Int32 port, System.AsyncCallback callback, System.Object state) <0x41183ef0 + 0x0008f> in :0
mono-functional_1   |   at Amqp.TcpTransport+<>c__DisplayClass3.b__0 (System.AsyncCallback c, System.Object s) <0x41183e40 + 0x00073> in :0
mono-functional_1   |   at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncImpl (System.Func3 beginMethod, System.Func2 endFunction, System.Action1 endAction, System.Object state, TaskCreationOptions creationOptions) <0x411833e0 + 0x002e8> in :0
mono-functional_1   | --- End of stack trace from previous location where exception was thrown ---
mono-functional_1   |   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x4118bb30 + 0x00033> in :0
mono-functional_1   |   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x4118b560 + 0x0010b> in :0
mono-functional_1   |   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x4118b3a0 + 0x000b3> in :0
mono-functional_1   |   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x4118b340 + 0x00042> in :0
mono-functional_1   |   at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x4118b310 + 0x0001a> in :0
mono-functional_1   |   at Amqp.TcpTransport.Connect (Amqp.Connection connection, Amqp.Address address, Boolean noVerification) <0x41145a60 + 0x0015e> in :0
mono-functional_1   |   at Amqp.Connection.Connect (Amqp.Sasl.SaslProfile saslProfile, Amqp.Framing.Open open) <0x41145730 + 0x0006b> in :0
mono-functional_1   |   at Amqp.Connection..ctor (Amqp.Address address, Amqp.Sasl.SaslProfile saslProfile, Amqp.Framing.Open open, Amqp.OnOpened onOpened) <0x4113fa20 + 0x00227> in :0
mono-functional_1   |   at Amqp.Connection..ctor (Amqp.Address address) <0x4113f990 + 0x0001b> in :0
mono-functional_1   |   at ppatierno.AzureSBLite.Messaging.Amqp.AmqpMessagingFactory.Open (System.String entity) <0x4113f740 + 0x001b7> in :0
mono-functional_1   |   at ppatierno.AzureSBLite.Messaging.Amqp.AmqpMessageReceiver.ReceiveEventData () <0x4118d9a0 + 0x00042> in :0
mono-functional_1   |   at ppatierno.AzureSBLite.Messaging.EventHubReceiver.Receive () <0x4118d530 + 0x0001f> in :0

Yeah, absoulutly right. after i downgraded the AMPQ Lib to <IP_ADDRESS> it works very well. ;)


[Event Change] TAB 383 in Function InsertDtldCVLedgEntry

Hey,
please add CVLedgEntryBuf as Parameter to Event OnBeforeCreateDtldCVLedgEntryBuf.

Thanks in Advance

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Release 5.4.0

TODOs

[ ] Review the changes in the release commit
[ ] Review and approve the Release Notes PR
[ ] Review and approve the JavaDocs PR
[ ] Review the Draft Release
[ ] Review and approve this PR
[ ] Trigger the Perform Release Workflow
[ ] Once the  workflow is through, head over to the OSS Repository and log in with the credentials in the Team Password Safe. There should be a staged release. Check whether everything looks good and, if so, publish the release.

Closed, as this PR was created by a dry-run of our refactored Prepare Release workflow.


If I want to reproduce the code, which file should I run?

Hi!
If you want to generate images using a backdoored model you can use the "Image Generation.ipynb" notebook.
If you want to assess generated images using our metrics, use the "Metric Generation.ipynb" notebook.
We have not made our backdoored models publicly available yet, but these backdoored models can be replicated using the MF Dataset: https://ieee-dataport.org/documents/marketable-foods-mf-dataset. There are fine-tuning tutorials on HuggingFace which we found particularly useful when injecting our backdoors: https://huggingface.co/docs/diffusers/v0.13.0/en/training/text2image
Through the dataset, the published article and the tutorial you can replicate our models and use the code on this repo to generate images and evaluate models.
Hope this helps!
Jordan


Added NPM download links #742

Resolved issue #742 entirely as per updates in PR #746

Got it ! ✌🏻


Adds type definitions for TypeScript

.. wie der name schon sacht 🐵  🌅  😸

Doc comments are copied from Usage Guide: https://github.com/dherges/halfred#usage

While I love typescript as much as the next guy, I really would not want to have compile-to-JS dialect specific file in this repo. For one, after your initial PR, the maintenance burden is on me.
I appreciate your effort and thank you for it, but I would really prefer if this would be put into one of the type registries like DefinitelyTyped or some such.
Kind regards
Bastian


hides subprocess windows on os.system = "nt"

I verified these changes on my guacamole windows MSS 5.0 installation by copying the changed utils.py to the installed location.
If you have an option to try it out before the next release I'm interested in Feedback.


feat(theme): add StatusLine and StatusLineNC highlights to the group

📃 Summary
add StatusLine and StatusLineNC highlights
📸 Preview
before

after

PS. wanted to say that I really love this plugin! it's so simple, yet so helpful! I am using a panoramic monitor and was struggling with centering the currently viewed file 💯 ❤

PS. wanted to say that I really love this plugin! it's so simple, yet so helpful! I am using a panoramic monitor and was struggling with centering the currently viewed file 💯 ❤

love to ear that, it's exactly why I decided to create this plugin!! enjoy and thanks for the contributions


Z3 solver, optimization edition.

This may not be the right way to do things. Suggestions are appreciated.

It seems like I need to add myself to the maintainers. Where is that file?

It's at lib/maintainers.nix.

Thanks! Ok, merged and squashed.


7/21 PM Publish

Docs Build status updates of commit 32c5db0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azps-8.1.0/azps-versioning-release-cadence.md
:white_check_mark:Succeeded
View (azps-8.1.0)

docs-conceptual/azps-8.1.0/migrate-az-3.0.0.md
:white_check_mark:Succeeded
View (azps-8.1.0)

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


feature:  add parallel namespace processing

Clusters containing numerous namespaces require more time to update the service account, which can temporarily lead to an ImagePullBackOff error. This change accelerates the updating process of the service account, resulting in improved execution times in tests.
before:

after:

change in performance 🔥


ANTLR failure on message names that are equal to keywords

proto message Foo {   string message = 1; }
fails, because message is a keyword.

Maybe the usage of the official antlr definition for proto3 would be possible. https://github.com/antlr/grammars-v4/tree/master/protobuf3


Gemini installation: ipython-cluster-helper requirement issue

Hi,
I have tried to install gemini on my personnal computer yesterday.
I am having troubles running gemini:
11:41:31 boursin@Decima ~ % gemini load
Traceback (most recent call last):
  File "/usr/local/bin/gemini", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2900, in <module>
    @_call_aside
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2886, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2913, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 644, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 657, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 830, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ipython<5.0.0,>=4.0.0' distribution was not found and is required by ipython-cluster-helper

11:42:29 boursin@Decima ~ % ipython2 --version
4.2.0

11:43:34 boursin@Decima ~ % pip install ipython-cluster-helper
Requirement already satisfied (use --upgrade to upgrade): ipython-cluster-helper in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied (use --upgrade to upgrade): ipyparallel>=4.0.0 in /usr/local/lib/python3.5/dist-packages (from ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): ipython<5.0.0,>=4.0.0 in /usr/local/lib/python3.5/dist-packages (from ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=18.5 in /usr/local/lib/python3.5/dist-packages (from ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): netifaces>=0.10.3 in /usr/local/lib/python3.5/dist-packages (from ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): pyzmq>=2.1.11 in /usr/local/lib/python3.5/dist-packages (from ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): jupyter-client in /usr/local/lib/python3.5/dist-packages (from ipyparallel>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): ipykernel in /usr/local/lib/python3.5/dist-packages (from ipyparallel>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): decorator in /usr/local/lib/python3.5/dist-packages (from ipyparallel>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): tornado>=4 in /usr/local/lib/python3.5/dist-packages (from ipyparallel>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in /usr/local/lib/python3.5/dist-packages (from ipyparallel>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): backports.shutil-get-terminal-size in /usr/local/lib/python3.5/dist-packages (from ipython<5.0.0,>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): pickleshare in /usr/local/lib/python3.5/dist-packages (from ipython<5.0.0,>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): traitlets in /usr/local/lib/python3.5/dist-packages (from ipython<5.0.0,>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): pexpect; sys_platform != "win32" in /usr/local/lib/python3.5/dist-packages (from ipython<5.0.0,>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): simplegeneric>0.8 in /usr/lib/python3/dist-packages (from ipython<5.0.0,>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): jupyter-core in /usr/local/lib/python3.5/dist-packages (from jupyter-client->ipyparallel>=4.0.0->ipython-cluster-helper)
Requirement already satisfied (use --upgrade to upgrade): ptyprocess>=0.5 in /usr/local/lib/python3.5/dist-packages (from pexpect; sys_platform != "win32"->ipython<5.0.0,>=4.0.0->ipython-cluster-helper)

Do you have any thoughts regarding that issue ?

Yannick;
Sorry about the issues. Can you provide some details about how you installed gemini?
Practically, you're showing us two different installations with Python 2.7 for GEMINI in the first error:
/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py

and Python 3.5 when looking for IPython:
ipython-cluster-helper in /usr/local/lib/python3.5/dist-packages

IPython needs to be installed in the 2.7 environment for GEMINI to use it. The automated installer adds all the dependencies in an isolated Python, instead of your system Python, to avoid these type of issues:
http://gemini.readthedocs.io/en/latest/#new-installation
Hope this helps.

Hi Brad,
this helped indeed. It seems like my pip2 was corrupted to use pypy 2.7 instead of python 2.7. Re-installing the dependencies using python 2.7 version of pip solved my issue.
I had to use a conda-free installation procedure because conda wouldn't work. I have not used a virtualenv, though I have no real reason not using one, it just isn't a reflex for me.
Thank you for your help.


Remove cue of never and do full grid search

This PR removes the tar_cue('never') from model training targets and updates the meta file with these changes.
For the temporal and spatial train/test split models, I also increased the number of cross validations and number of grid points to use within the hyperparameter tuning. For the spatial and temporal splits, I deleted a target whose name ended with _fulltune because the hyperparameter settings are the same as the new settings. I did not increase the CV folds and grid points for the random train/test models because they will not be used in the manuscript.
I discovered that some models needed to be trained with fewer cores (40) and some could be trained with more (65) depending on the RAM use. Turns out that tidymodels must prevent crashes that would be caused by exceeding the RAM limit, and instead proceeds slowly to be within the RAM limit. For example, a model trained on 50 cores did not finish in 8 hrs, but training the same model on 40 cores finished in 1 hr. This is something to be aware of for models that are RAM intensive.
I also discovered that the SHAP calculations are sometimes slowed down due to the RF number of threads parameter. I set this to 1 thread for some models that ran slowly.
Closes #224

Best overall RMSE spatial train/test model - R2_trad = NSE < 0, so not a good model!

Best overall RMSE temporal train/test model:

Yes, I needed to remove tar_cue(cue = 'never') so that those targets would update with the new grid search settings. I originally used tar_cue(cue = 'never') for model targets because I made a small change to the training function that did not affect calculations (AWS credential generation), but it would have triggered all of those models to rebuild. Hopefully no more changes like that will be needed, so I'm not planning to add the tar_cue(cue = 'never') back to these targets

Got it ok, that makes sense, do you have (or think you'll need to have) safe guards against triggering a full model rebuild on accident?

do you have (or think you'll need to have) safe guards against triggering a full model rebuild on accident?

There are no safeguards against triggering model rebuilds, but if they are triggered and build, then we can easily git stash or git revert back to previous versions if we need to. The targets meta file is committed to the repo and links to the S3 data. I've used git stash a few times while developing figures to test a function interactively, git stash, then uninteractively run it and make sure results are the same


Escape backbone model attributes causes error

I've been trying out using stitch.js and eco with backbone.js but I'm having
some troubles.
I'm sending a backbone model to a Eco template with:
$(this.el).html(template(this.model));

Then in my template, all I'm trying is this:
<%= @get('text') %>

Now what I've been able to figure out is that eco first checks if
there's already an escape function on the object in question and since
it's a backbone model there is a method called escape so eco calls
that method instead of its own. The backbone escape method looks likes
this:
escape : function(attr) {
    var html;
    if (html = this._escapedAttributes[attr]) return html;
    var val = this.attributes[attr];
    return this._escapedAttributes[attr] = escapeHTML(val == null ? '' : '' + val);
   },

Now since when this is called this is DOMWindow the
this._escapedAttributes[attr] part fails with an error:
Uncaught TypeError: Cannot read property 'Finish some great tasks' of undefined
_.extend.escape
__sanitize
__obj.safe
__obj.safe
module.exports
module.exports.Backbone.View.extend.render
module.exports.Backbone.View.extend.add
_.each._.forEach
_.each.Backbone.Collection.(anonymous function)
module.exports.Backbone.View.extend.addAll
Backbone.Events.trigger
_.extend.reset
_.extend.fetch.options.success
jQuery.Callbacks.fire
jQuery.Callbacks.self.fireWith
done
jQuery.ajaxTransport.send.callback

'Finish some great tasks' is what's in my models 'text' attribute.
I tought maybe I could change __esacpe(value) in your code to
__escape.call(__obj, value) but I havn't got it working yet. Any
ideas?
Also I can change the template to <%- @escape('text') %> and it works
but I'm not sure what I think is best and I thought I would tell you
about this problem.

Eco uses an internal escape method to pass anything it renders to the page through it in order to prevent XSS attacks etc. This is all very nice and it works out of the box.
The problem however is that eco uses the escape method of the object itself it's trying to render if one is preset.
In the case of backbone there is an escape function on the models and to top it off it interprets its job a little bit differently. It only works if you pass along a valid attribute name and it'll return the escaped content for that attribute. This isn't what eco expects because it'll pass just about anything through the escape method.
So there are 2 ways to fix this in your app.

Don't pass along the native backbone model but pass something resembling it. One option could be to use model_instance.toJSON instead of the model_instance. Just make sure that the model you pass along has no escape method that misbehaves. Preferably no escape method at all.

If you want to use the full model and all its logic simply delete the escape function in the View prototype. I'm under the impression that it's not used anywhere else. It seems like a convenience method to me since backbone internally uses the _ library to escape. You can do this easily with a bit of code you load before everything starts rendering.

here's what I did in CoffeeScript:
I made a lib folder I load right after backbone has loaded. Added a coffeescript file with:
delete Backbone.Model.prototype.escape

So should this be fixed in backbone? Probably not.


Not getting links from javascript frontend

Thanks for building this great library!
It appears that sites like Medium that use a javascript frontend won't get scraped by this checker. See for instance this post which has many external links. The output I get is:
$ blc https://medium.com/the-mission/50-websites-to-post-your-product-or-your-startup-a6680ab178a6
Getting links from: https://medium.com/the-mission/50-websites-to-post-your-product-or-your-startup-a6680ab178a6
├───OK─── https://twitter.com/TheMissionT
├───OK─── https://medium.com/
├───OK─── https://facebook.com/TheMissionInc
├───OK─── https://medium.com/the-mission?source=logo-lo_dafe4ec1b540---b230ea2a6eb8
├───OK─── https://cdn-images-1.medium.com/letterbox/346/72/50/50/1*EfWc2jdGY89opF70Aa1h3Q.png?source=logoAvatar-lo_dafe4ec1b540---b230ea2a6eb8
├───OK─── https://medium.com/m/signin?redirect=https%3A%2F%2Fmedium.com%2Fthe-mission%2F50-websites-to-post-your-product-or-your-startup-a6680ab178a6&source=--------------------------nav_reg
├───OK─── https://medium.com/the-mission
├───OK─── https://medium.com/the-mission/tagged/life
├───OK─── https://medium.com/the-mission/tagged/tech
├───OK─── https://medium.com/the-mission/tagged/health
├───OK─── https://medium.com/the-mission/tagged/science
├───OK─── https://medium.com/the-mission/why-and-how-to-sponsor-branded-content-cd0e44034084
├───OK─── https://medium.com/the-mission/how-to-find-your-mission-and-success-f24b9cd69fcb
├───OK─── https://medium.com/the-mission/tagged/themissionletters
├───OK─── https://medium.com/the-mission/search
├───OK─── https://medium.com/@duplikey?source=post_header_lockup
├───OK─── https://cdn-images-1.medium.com/fit/c/120/120/1*OCy5BMqbZxsXhufdKxyHuw.jpeg
├───OK─── https://cdn-images-1.medium.com/max/2000/1*hotTfrXFovESzLWbQzDX7w.jpeg
├───OK─── https://cdn-images-1.medium.com/max/1200/1*S0H89POj_i2ndJSRFebGtg.png
├───OK─── https://cdn-images-1.medium.com/max/1200/1*Rp4dAQfFd6Oex9_DzSH_YA.png
├───OK─── https://medium.com/the-mission/how-i-wrote-a-successful-post-on-medium-2f24cde0a026
├───OK─── https://medium.com/tag/startup?source=post
├───OK─── https://medium.com/tag/startup-marketing?source=post
├───OK─── https://medium.com/tag/product-development?source=post
├───OK─── https://medium.com/@duplikey?source=footer_card
├───OK─── https://medium.com/@duplikey
├───OK─── https://medium.com/the-mission?source=footer_card
├───OK─── https://cdn-images-1.medium.com/fit/c/120/120/1*k26odIc_0das5PnOHoOtEw.png
├───OK─── https://cdn-images-1.medium.com/fit/c/80/80/1*k26odIc_0das5PnOHoOtEw.png

I can see the link in the frontend file, but when I try blc --filter-level=2 to include the script in my search it doesn't include the links either. Is that expected behavior?
My suggestion would be to create a way to parse javascript files for links in javascript frontends and either include this in the --filter-level=2 or perhaps include a new flag for including these links. Let me know if I'm looking at this wrong? Happy to help with a PR if that's helpful as well. Thanks again for building this!

--filter-level=2 searches the values of URL attributes on the <script> element, not the script itself. Parsing the script would be lunacy for a project like this with far too many edge cases. It's a much better solution to run the scraper through something with a DOM, so that it can get dynamically added links. This feature won't be implemented for a while, though.

@stevenvachon just so I understand you're suggesting a headless browser to actually evaluate the javascript rather than simply parsing it for links would be better? My thought was simply parse the javascript file using a regex for URLs like one of the answers to this question. There might be a few cases way on the edge but for the most part wouldn't the regex handle the edge cases for you?

Parsing JavaScript with a regular expression is a terrible terrible idea. A headless browser or jsdom is ideal.

@stevenvachon in the spirit of helping someone understand why his idea is terrible, could you let me know why it's such a bad idea to parse a JS file with a regex?

The same reason that you don't parse HTML with a regular expression: the input is so complex that it requires a tokenizer. Regular expressions exist for parsing literal strings, not source code. Research "esprima".

Will look into that more, thank you!


Market Breadth Indicator

A request was made for a Market Breadth Indicator:
https://github.com/TA-Lib/ta-lib-python/issues/598

This is now tracked on the New TA Functions Board


When require.context is used in a module that has been discovered through an entry in resolve.modules, the keys are duplicated.

Bug report

What is the current behavior?
When require.context is used in a module that has been discovered through an entry in resolve.modules, the keys are duplicated.
If the current behavior is a bug, please provide the steps to reproduce.
To reproduce this issue:

Clone this repository
npm install
npm --silent start

You will see the output:
require.context: [ './thing.js', 'test/things/thing.js' ]

What is the expected behavior?
the correct output would be:
require.context: [ './thing.js' ]

Other relevant information:
webpack version:  5.89.0
Node.js version:
Operating System:
Additional tools:

The duplicates are created at https://github.com/webpack/webpack/blob/main/lib/dependencies/RequireContextPlugin.js#L133
If someone could explain what this code is meant to do, I could probably write a PR.

I want to say it is expected, for example:
const cache = {};

function importAll(r) {
  r.keys().forEach((key) => (cache[key] = r(key)));
}

importAll(require.context('../components/', true, /\.js$/));
// At build-time cache will be populated with all required modules.

It means you can import a module using './thing.js' and 'test/things/thing.js', you can solve it - using regexp and exclude duplicate

Thanks for the explanation!
There's something about it that just feels wrong. It definitely violated my expectation as a user. Perhaps a note in the documentation?
That being said, it's easy enough to work around with a RegExp. :)

@cha0s I am fine with updating docs, do you want to send a PR? Thank you


Clear the state of the test account when the test suites start

Chnage-type: patch

I self-certify!