VS Code's tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code.

Several extensions are causing the error on vscode startup:
VS Code's tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code.
This is being caused by the latest vscode-docker extension, the redhat.java (Language support for Java by RedHat), redhat.vscode-yaml (YAML support by RedHat), esbenp.prettier-vscode (Prettier - Code Formatter) and others

VSCode Version: v1.33.1
OS Version: MacOS Mojave 10.14.4

Steps to Reproduce:

Install certain extension
Startup vscode

Does this issue occur when all extensions are disabled?: No

I have same issue today.

@ggprod Can you check if the tsserver file has actually been deleted. For macos, it would be under the vs code executable itself:

For 1.33 stable: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js
For insiders: /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js

In the terminal can just run, ls "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/" and see which files are present in that directory

I had this same error. I tried to reinstall with no success.
I checked in the dir that @mjbvz mentioned above and tsserver.js was present.
I was able to get rid of the error message and get the rest of my extensions working by clicking on the cog in the error message which took me to the extension settings, VSCode's bundled typescript/javascript language features, and clicking enable.
Doing this and restarting VSCode fixed the issue for me.

VSCode v1.33.1
OS version: Mac Mojave v10.14.4

@mjbvz Yes, I see the file present and was able to fix the problem via the method @wcjohnson11 indicates.  Thanks!

It appears that if you disable this built-in extension (say, you want to use flow instead of typescript), you get this error on every application launch. This seems like a regression...

This started happening to me, too — I have disabled the vscode.typescript-language-features extension for the current workspace and get this error on every launch of VS Code.
I do have the tsserver.js present. Running macOS Mojave version 10.14.4 (18E226) and VS Code version 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8)

Does this also happen in the latest VS Code insiders build?

Adding @sandy081 since it sounds like the builtin js/ts extension could still be activated even when disabled? Or that installing other extensions is corrupting our extension?

For some reason the error has gone away for me ¯\_(ツ)_/¯ I don't think I've updated anything between my message and now.

@mjbvz There was a bug recently (last stable) that disabled extensions are getting activated - https://github.com/microsoft/vscode/issues/71752. This got fixed in insiders.

I'm on VSC v1.33.1, macOs 10.13.6, and saw this error today (after 1st system reboot in weeks). The Typescript built-in extension remained in "disabled" state. Restarted VSC a couple times and the error went away.

I'm closing this a a duplicate of #71752. If you see this when using VS Code 1.34+, please let me know


Flash fails to load image labels from CSV on Kaggle RANZCR CLiP - Catheter and Line Position Challenge

🐛 Bug
The master code does not properly load labels from CSV for image classification. Trying to get a baseline working for the Catheter and Line Position Challenge and am currently blocked.
To Reproduce
Steps to reproduce the behavior:

!pip install git+https://github.com/PyTorchLightning/lightning-flash.git@master
Run '....'

import os
import flash
from flash.core.data import download_data
from flash.core.finetuning import FreezeUnfreeze
from flash.vision import ImageClassificationData, ImageClassifier

data = ImageClassificationData(
    train_filepaths='/kaggle/input/ranzcr-clip-catheter-line-classification/train',
    train_labels='/kaggle/input/ranzcr-clip-catheter-line-classification/train.csv',
    valid_filepaths='/kaggle/input/ranzcr-clip-catheter-line-classification/test',
    valid_labels='/kaggle/input/ranzcr-clip-catheter-line-classification/test.csv'
)

Stack Trace
Successfully installed datasets-1.2.1 lightning-flash-0.2.1.dev0 pandas-1.1.2 pycocotools-2.0.2 pytorch-lightning-1.2.0rc0 pytorch-lightning-bolts-0.3.0 pytorch-tabnet-3.1.1 rouge-score-0.0.4 scikit-learn-0.24.0 torch-1.7.1 torchvision-0.8.2 tqdm-4.49.0 xxhash-2.0.0
TypeError
TypeError                                 Traceback (most recent call last)
 in
3     train_labels='/kaggle/input/ranzcr-clip-catheter-line-classification/train.csv',
4     valid_filepaths='/kaggle/input/ranzcr-clip-catheter-line-classification/test',
----> 5     valid_labels='/kaggle/input/ranzcr-clip-catheter-line-classification/test.csv'
6 )
/opt/conda/lib/python3.7/site-packages/pytorch_lightning/core/datamodule.py in call(cls, *args, **kwargs)
48
49         # Get instance of LightningDataModule by mocking its init via call
---> 50         obj = type.call(cls, *args, **kwargs)
51
52         return obj
TypeError: init() got an unexpected keyword argument 'train_filepaths'
init() got an unexpected keyword argument 'train_filepaths'
Enter console command here
Expected behavior
Data Module loads labels without issue

Looks like we need to update the docs on how to pass in train_labels.

In the code it makes it seem as if you can pass a file. Will also claimed that he had this working is it possible something changed?
See line 304
https://github.com/PyTorchLightning/lightning-flash/blob/master/flash/vision/classification/data.py

You need to use ImageClassificationData.from_filepaths, and then supply the filenames and labels as lists

Yes that's something missing from the prediction interface a way to see the labels and a way to get the prediction class distribution.

https://github.com/PyTorchLightning/lightning-flash/blob/master/flash/data/data_utils.py#L6


header tags added (#649)

only works together with asset change:
https://github.com/serlo-org/athene2-assets/pull/4

@arekkas Is #278 outdated? Or do we have to consider that and use class h2 instead of <h2> etc.?

There is now also a change that does not only affect the start page in this PR!
535fea4750db780d69694afc8e81d1115cf0391f


Base classes

Related to #214
This is only a start so we can discuss. Please don't accept the PR until we are finished discussing.
@ElemarJR @viniciushana @carloscds I need your feedback on this work on base classes.

I think that this approach will be left more complex to begninners create analyzers.

I didn´t agree with this approache, it´s not necessary create bases classes to create analyzers. Keep simplicity!

@code-cracker/owners I have discussed the issue with @carloscds and we agreed that the enum to hold the diagnostic ids is a good idea. I will go ahead and implement that.
We still need to discuss the rest. Let's schedule a meting and decide what we will do.

@code-cracker/owners Great! Let me know if you need help.

Teste

We can't find any more things from this PR to bring to CC.
We see too much complexity on creating a class hierarchy at the moment. We prefer to keep it simple.


feat: update portfolio ui

Updating portfolio view
Fixes #27
Types of change
☑ Feature
☐ Bug
☐ Enhancement
Comments
update and add new portfolio view

Home option in menu is not highlighted when I'm in the main page

My points summary boxes are not 100% aligned with the rest of the content

The menu doesn't take all the screen height

I suggest to add more marginX in the menu options


Feature request: Export in-progress texts to PDF

Is it possible to generate a PDF of a modern-spelling text, without annotations or collations? Editors may find this useful when proofing and/or collating against other editions in situ.

Also, the web view has a feature for turning off annotations and collations. I've just talked to Janelle and Navarra, and we've agreed that since there are multiple ways to view your text (author mode in Oxygen, and the complete build every couple of hours on Jenkins), it doesn't make sense to put lots of precious hours into creating yet another view of the text. For any text which is intended to go to print, as soon as the content is basically complete and the and running order is established, we can set up a print build for that text.


add typehints to Live's public methods

[x] ❗ I have followed the Contributing to DVCLive
guide.

[x] 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. https://github.com/iterative/dvc.org/pull/5103

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@dberenbaum  Thanks for the feedback. I'll take your suggestions into account.
Meanwhile, I have a broader question on type hints. I agree that the current implementation for StrPath or ParamLike is cleaner the current way. But when an editor displays the help for each function, it is not very informative at first sight to have a StrPath type as a user, and I would rather have a str | pathlib.Path. Do you know a way to have the best of both worlds?

Do you know a way to have the best of both worlds?

🤔 Good point. I don't know a way, but might be worth a little research. If you think it's helpful to have the more explicit types, I'm fine to keep them that way.

I asked the question to tech people; we'll see.
I believe it will take more effort to maintain, but it will be way more user-friendly to have a list of possible plots like ["linear," "simple, ...] for the user to play with and discover the tool. Rather than an opaque [*BASE_SCHEMA.schema["type"].validators]. (I took this one from the studio-event data format).
You see my point, I guess, we just need to figure out own much a pain it will be to maintain to know if it is worth it :)

As mentioned by @jonburdo, I take back importing from elsewhere for type checking. It seems like an anti-pattern with more thought, and we are better off listing the choices or probably even just leaving the type hints more general for now.

@AlexandreKempf Could you check the CI failures?

I believe it will take more effort to maintain, but it will be way more user-friendly to have a list of possible plots like ["linear," "simple, ...] for the user to play with and discover the tool.

I think you're right for a relatively short list like this. I sometimes take a look at other popular libraries for questions like this. Running rg '\bLiteral\[' (ripgrep) in the numpy and typeshed repos shows they generally just repeat the whole thing rather than using a variable. I imagine it won't be too hard to maintain.

Thanks for the advice @jonburdo. What do you think about that @dberenbaum?
I would say we go with Jon's advice here: our lists are small and useful for users for editors' suggestions. If it is too hard to maintain, we can always revert it at no cost :)

Yes, I don't think it's worth worrying about the maintenance costs at this point


feature missing?

The command nvm use v0.6 doesn't find my v0.6.6.  This was a surprise to me.  Is there any reason not to offer this feature?

Don't put the v if you want fuzzy matched versions.

duh, sorry for the trouble
btw: I love nvm.  I recommend it all the time on users-node.


Add solidity by example to the solidity tools section

Include solidity by example in the solidity tools sections. This site has almost all implementation examples of solidity concepts which suit both beginners and advanced developers.

Summary by CodeRabbit

Documentation: Added a new resource to the learning materials in the introduction of our roadmap. Users can now refer to "Solidity by Example" for practical examples and detailed explanations of various Solidity concepts, catering to both beginners and advanced users.

Hey!
Well, I like the idea of adding Solidity by Example to the Solidity tools section, but actually it can be found inside of Solidity docs in the top of the catalog/list.

I have seen the solidity by example section on the official solidity docs here. But the resource I was referring to is this solidity by example which contains examples of different solidity concepts from beginner level to advanced


Left joins in SQLite can break the query macros

After some debugging by myself and some people in the #rust:mozilla.org Matrix room, we've come to the conclusion that I've found a bug in SQLx.
If I have two tables like this:
CREATE TABLE IF NOT EXISTS "accounts" (
    "user_id" TEXT PRIMARY KEY NOT NULL UNIQUE,
    "password" TEXT NULL
);

CREATE TABLE IF NOT EXISTS "user_state" (
    "user_id" TEXT PRIMARY KEY NOT NULL UNIQUE,
    "active_room" TEXT,
    "account_status" CHECK(account_status IN ('not_registered', 'registered', 'awaiting_activation')) NOT NULL
);

This query will break the query and query_as! macros:
SELECT
    a.user_id as "username",
    a.password,
    s.active_room,
    s.account_status
    FROM accounts a
    LEFT JOIN user_state s on a.user_id = s.user_id
    WHERE a.user_id = 'usernamehere';

The error message returned during compilation is proc macro panicked and help: message: no entry found for key. The code is located at src/sqlite/connection/explain.rs:149:32. This occurs on sqlx 0.5.x, including 0.5.5.
It seems specifically related to the LEFT JOIN. A regular JOIN will compile just fine.

I have a similar case and the panic happens one this line: https://github.com/launchbadge/sqlx/blob/e33e4510fcab184f6bb655be3ba811e7f8a5b63f/sqlx-core/src/sqlite/connection/explain.rs#L149
(I manually called (&pool).describe(sqlQuery) to debug)

@ProjectMoon 's example query still fails when reduced to
SELECT
    user_state.active_room
FROM accounts
     LEFT JOIN user_state ON accounts.user_id = user_state.user_id;

The EXPLAIN gives:
0,Init,0,19,0,,0,
1,OpenRead,2,3,0,"k(1,)",0,
2,OpenRead,1,4,0,2,0,
3,OpenRead,3,5,0,"k(1,)",2,
4,Rewind,2,18,1,0,0,
5,Integer,0,1,0,,0,
6,Column,2,0,2,,0,
7,SeekGE,3,13,2,1,0,
8,IdxGT,3,13,2,1,0,
9,DeferredSeek,3,0,1,,0,
10,Integer,1,1,0,,0,
11,Column,1,1,3,,0,
12,ResultRow,3,1,0,,0,
13,IfPos,1,17,0,,0,
14,NullRow,1,0,0,,0,
15,NullRow,3,0,0,,0,
16,Goto,0,10,0,,0,
17,Next,2,5,0,,1,
18,Halt,0,0,0,,0,
19,Transaction,0,0,4,1,1,
20,Goto,0,1,0,,0,

I haven't been able to reproduce the issue with tests/sqlite/sqlite.db.
I'm trying to understand the COLUMN and NullRow sqlite opcodes but I'm not there yet.
Adding a if r_cursor.contains_key(&p1) { check before the OP_NULL_ROW loop fixes the issue on my project, but I'm guessing we may be losing information on nullable columns in some cases. Maybe.

I'm running into this as well. Are there any workarounds?

I think this might be related to SQLites query prover/planner, in specific:
https://www.sqlite.org/optoverview.html#the_left_join_strength_reduction_optimization
https://www.sqlite.org/optoverview.html#the_omit_left_join_optimization
If either of these situations are hit, then sqlite will change the query and I think this is what breaking the macro.
If I am understanding correctly, in the above provided example, it is hitting the second case of OMIT LEFT JOIN

Either the query is DISTINCT or else the ON or USING clause on the LEFT JOIN constrains the join such that it matches only a single row

as user_state.user_idand account.user_id are UNIQUE, it will always return a single row,
I think a successful test of the left join strength reduction also causing a problem is:

A LEFT JOIN can sometimes be converted into an ordinary JOIN if there are terms in the WHERE clause that guarantee that the two joins will give identical results.

CREATE TABLE IF NOT EXISTS "accounts" (
    "user_id" TEXT PRIMARY KEY NOT NULL UNIQUE,
    "password" TEXT NULL
);

CREATE TABLE IF NOT EXISTS "user_state" (
    "row_id" integer primary key autoincrement,
    "user_id" TEXT NOT NULL,
    "active_room" TEXT,
    "account_status" CHECK(account_status IN ('not_registered', 'registered', 'awaiting_activation'))
);

INSERT INTO accounts (user_id, password) VALUES
    ('a', 'pass')
    , ('b', 'pass')
;

INSERT INTO user_state (user_id, active_room, account_status) VALUES
    ('a', 'room', 'not_registered')
    , ('a', 'place', 'not_registered')
    , ('b', 'room', 'not_registered')
;

-- this breaks as it reduces to a JOIN in the query prover
SELECT
    a.user_id as "username",
    a.password,
    s.active_room,
    s.account_status
FROM accounts a
LEFT JOIN user_state s on a.user_id = s.user_id
WHERE a.user_id = 'a'
    AND (s.active_room = 'room' OR s.active_room = 'place')
;
-- this breaks as it reduces to a JOIN in the query prover
SELECT
    a.user_id as "username",
    a.password,
    s.active_room,
    s.account_status
FROM accounts a
LEFT JOIN user_state s on a.user_id = s.user_id
WHERE a.user_id = 'a'
;

-- this works as it has different results from a JOIN
SELECT
    a.user_id as "username",
    a.password,
    s.active_room,
    s.account_status
FROM accounts a
LEFT JOIN user_state s on a.user_id = s.user_id
WHERE a.user_id = 'a'
    AND s.active_room = 'room'
;

Downgrading to sqlx 0.4 lets me compile with left outer joins that are failing on 0.5

Reproduced with version 0.5.10

@abonander any thoughts on this?

@abonander any thoughts on this?

As a work around, I remove OP_NULL_ROW support, https://github.com/open-trade/sqlx/commit/81392f03ba36fbd670447517dbc122fddb206de7


Need a way to trap errors generated in TADA and prevent them from stopping TADAShiny

Is your feature request related to a problem? Please describe.
The TADAShiny app should not allow fatal errors to propagate from TADA and cause the app to stop functioning.
Describe the solution you'd like
(This might already be in the code base, but I can't find it yet)  There should be a standard try/catch syntax that prevents fatal errors from blocking the web application.
I will try to implement based on https://stackoverflow.com/questions/62997745/trycatch-error-handling-doesnt-work-in-shiny-app
    output$graphChart <- renderPlot({

        tryCatch({
            plot(rules())
        }, warning = function(w) {
            showNotification('there was a warning','',type = "error")
            return()
        }, error = function(e) {
            showNotification('there was an error','',type = "error")
            return()
        }, silent=TRUE)

    })

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features
you've considered.
Additional context
Building up my understanding of observables - there is no linear trapping of errors.  It can be done on the 'TADA' function calls, but it needs to be done such that the observables are reviewed and errors trapped when they are being processed.
Reminders for TADA contributors addressing this issue
New features and/or edits should include the following work:

[ ] Create or edit the code.

[ ] Document all code using line/inline and/or multi-line/block comments
to describe what is does.

[ ] Create or edit tests in tests/testthat folder to help prevent and/or
troubleshoot potential future issues.

[ ] If your code edits impact other functionality in the shiny
app, ensure those are updated as well.

[ ] Run styler::style_pkg(), devtools::document(), and devtools::check()
and address any new notes or issues before creating a pull request.

This needs both a general solution, and then ad-hoc implementation.  Users should only see one metaphor when they encounter fatal errors.

Create acceptable 'Error' modal using existing libraries
figure out trapping mechanics to populate the error message
determine how and when to backup from the error and allow the user to continue, vs reset the session and have users restart
implement the error handling on specific points (like Upload Dataset and Upload Progress File)
LOE: 40 hours.


Devnet hare failures

We fired up two devnets using spacecraft over the last 2-3 weeks and both experienced consensus failures. It happened to the first one (devnet1 a.k.a. the lane network in spacecraft) after ~5000 layers, but it happened to the second one (devnet3) after only 18 layers.
It seems to be down to a hare failure. I see this error for every layer:
2020-08-11T17:02:10.941Z        ERROR   f068b.hare              Fatal: PreRound ended with empty set    {"node_id": "f068bb7391359c002bf3621f9307284cf72766f63c0212ad135a66fa18bf4f89", "event": true, "layer_id": 357}
2020-08-11T17:05:30.941Z        ERROR   f068b.hare              Fatal: PreRound ended with empty set    {"node_id": "f068bb7391359c002bf3621f9307284cf72766f63c0212ad135a66fa18bf4f89", "event": true, "layer_id": 358}
2020-08-11T17:08:50.941Z        ERROR   f068b.hare              Fatal: PreRound ended with empty set    {"node_id": "f068bb7391359c002bf3621f9307284cf72766f63c0212ad135a66fa18bf4f89", "event": true, "layer_id": 359}

Full logs and config files for both networks are in this shared folder: https://drive.google.com/drive/folders/1UT4rMIaOd0vSGovwdhsAfzCrDNd1fEnL?usp=sharing

This sounds like there no blocks - have you verified that blocks were published in the previous layer?

@noamnelke, @ilans and I are investigating. It appears that blocks are being produced, but that after a certain layer, they're not being gossiped and pbase is not advancing. Some basic log statements like "got new block" seem to be completely missing from the logs./

I don't think it's specific messages - there are no logs at all coming from BlockListener - that makes me think it's a log misconfiguration.

@noamnelke, @ilans and I spent a while investigating this issue today. As you can see from the above screengrab, something appears to be going wrong with hare. It works for the first few layers, but then terminates late for layer 4, and never terminates for layers 8 or 12. At this point the VM CPU spikes to 100%, the nodes stop producing blocks, and things break down.
We're still not sure of the underlying cause but it appears to be a hare issue.

Here's some more analysis. First, debug info:

commit hash 00913c859c665bc2eb09b129135c5366e62c1d52, branch https://github.com/spacemeshos/go-spacemesh/tree/api-phase9-orig (this is before #2011 was merged)
docker image: spacemeshos/go-spacemesh#api-phase9-orig (https://hub.docker.com/layers/spacemeshos/go-spacemesh/api-phase9-orig/images/sha256-2a85d12a4262ae147fd2283948d0dec85112a237568879995743a3cf392b8290?context=explore)
network name: devnet5
Kibana URL: http://<IP_ADDRESS>:5601/

Here's a timeline of what I see:

everything runs fine for layers 1-3
for layer 4, as you can see above, hare goes through two rounds rather than one, but then it terminates. In the logs for this round I see a number of messages such as Early message detected, keeping and Broker received a message to a CP that is not registered
everything is fine for layers 5-7 again
then, for layer 8, hare never terminates. This is where things get weird.  It's all sort of downhill from here.
note that, at this point, the CPU usage is still fine. It doesn't spike until ~11:35, or nearly 20 mins later.

there is a huge spike of log messages when the CPU goes to 100%. The majority of these appear to be tortoise messages, over 1M of them total in just 30 seconds. Each miner appears to be producing around 35,000 tortoise messages in just 30 seconds. Here is a sample query for just one miner: sample.

blocks are still produced as usual, until around 90 mins later, when they stop being produced entirely:

note that, at this point, the CPU usage is still fine. It doesn’t spike until ~11:35, or nearly 20 mins later.

This is not accurate. Remember that the CPU graph is a per-minute average. It starts jumping around at ~11:12, which means that it’s possible that while some goroutines have the focus it’s at 100% and they have the focus 60% of the time. By 11:35 they have the focus all the time and the average CPU usage is ~100%.
Remember that you’re not looking at the CPU usage of a representative node, but at the usage of all nodes combined. It’s possible that certain nodes are using plenty of CPU while others are deprived, which is what’s causing the late messages, causing more CPU load.
It’s very likely, imo, that this is a snowball effect started by insufficient resources during some random spike in CPU usage.
While it could be interesting to investigate this snowball effect and see how we can break out of it on low resource machines - this is not a priority right now and we shouldn’t waste time on it.
I’m fairly confident that if you run fewer miners per machine you will not see this situation happening again. I’d start with 25 per machine, on two machines.

@noamnelke and I discussed this morning, and we decided to try launching another devnet with more resources per miner. I reduced the number of miners per VM by half, to 25.
This time, I see hare errors from the very first layer:

While the CPU usage never spiked to 100% this time, I see a similar pattern in resource consumption:

This one (devnet6), as well as another one that I fired up with even fewer miners per VM (15) (devnet8), both met the same fate: Hare began running into issues as early as layer one or two, then Hare starts to fail completely a few hours after the devnet comes online. @noamnelke will help investigate.

My 2 cents - not sure if you guys tried it: setup a spacecraft network with the exact same configuration as TweedeleDee but with nodes from the api branch and see if there's a hare failure. If there's a failure then it is a node bug due to changes between the release and the api branch. If not, then it is highly likely that the failure is due the different hare config params or a runtime resource issue. I hope this helps.

From @y0sher yesterday on slack:

Okay, quick heads up. I suspected resources because we experienced this issue form the same reasons countless times before.
I tried to run a spacecraft network with 1 machine per miner. (I reduced the machine size to smallest possible 2cpu/4gb).
I used lane's api-phase9-orig docker tag and spacecraft's default params. as of now the network is running great and there are no hare issues, we're in layer 15 and counting.
The simple way to check it - does it work with resources YES/NO? after that we can dig further and try to reduce it as small as possible. this is much faster than the other way around of choking our miners and looking for whats wrong when we know they are running under the required resources.
Layer 20 everything working.

Another quick update. @ilans launched a new network today with twice the CPU (e2-custom with 16 vCPUs, 32 GB memory), still with all 50 miners running on one VM. Right now it's at layer 58 and consensus appears to be working. There was one small blip at layers 49-50 where it had to rerun hare but it seems to have recovered. We should let this network continue to run as long as it's still working. I'll try injecting some transactions.

Around 450 layers and everything still looks good. I was able to fully sync a new node from scratch just now, and the sync completed quickly. Here are some factors that may have contributed to the issues we ran into above - we'd need more experimentation to rule some of them out:

disabling DEBUG output (it was on for several protocols, including mesh and hare)
disabling metricbeat
not trying to sync other nodes against the devnet
resetting some hare params I had changed (hare-max-adversaries, eligibility-confidence-param) - these were copied from the testnet config, but probably should not have been changed without updating other config elements

For the record I'm seeing a number of WARN and ERROR messages syncing a new node against this devnet. While things seem to be working okay, I'm recording this here in case we run into these errors again:
2020-08-20T18:05:42.199Z        WARN    9410f.mesh              could not get atx 0ae4159904  from database, leveldb: n
ot found {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:05:42.199Z        WARN    9410f.mesh              could not get atx a579858ce0  from database, leveldb: n
ot found {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:05:42.199Z        WARN    9410f.mesh              could not get atx 691ddd1ba7  from database, leveldb: n
ot found {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:05:42.199Z        WARN    9410f.mesh              could not get atx 4475dd103e  from database, leveldb: n
ot found {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:05:42.200Z        WARN    9410f.mesh              could not get atx c15cf41726  from database, leveldb: n
ot found {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
...
2020-08-20T18:25:56.699Z        WARN    9410f.blockBuilder      received syntactically invalid ATX 64b125f6ed: no id found 64b125f6ed err identity not found when validating signature, invalid atx     {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:25:56.731Z        WARN    9410f.blockBuilder      received syntactically invalid ATX 2b3d57e18c: no id found 2b3d57e18c err identity not found when validating signature, invalid atx     {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:25:56.739Z        WARN    9410f.blockBuilder      received syntactically invalid ATX 14602d6729: no id found 14602d6729 err identity not found when validating signature, invalid atx     {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:25:56.759Z        WARN    9410f.blockBuilder      received syntactically invalid ATX c3d5570d97: no id found c3d5570d97 err identity not found when validating signature, invalid atx     {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:25:56.760Z        WARN    9410f.blockBuilder      received syntactically invalid ATX caeb883661: no id found caeb883661 err identity not found when validating signature, invalid atx     {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
...
2020-08-20T18:05:40.556Z        ERROR   9410f.sync         .blockFetchQueue     block validation failed%!(EXTRA types.B
lockID=2de0572bee, log.Field={errmsg 26 0  block eligibiliy check failed - err getting ATX failed: leveldb: not found 8
43a45e2a2 ep(74)})        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:05:40.574Z        ERROR   9410f.sync         .blockFetchQueue     block validation failed%!(EXTRA types.B
lockID=3dfb40676c, log.Field={errmsg 26 0  block eligibiliy check failed - err getting ATX failed: leveldb: not found b
8401f250e ep(74)})        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:05:40.605Z        ERROR   9410f.sync         .blockFetchQueue     block validation failed%!(EXTRA types.B
lockID=49abd79570, log.Field={errmsg 26 0  block eligibiliy check failed - err getting ATX failed: leveldb: not found b
d378c7488 ep(74)})        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
...
2020-08-20T18:18:44.263Z        ERROR   9410f.blockOracle       failed to calculate eligibility proofs: failed to get latest ATX: failed to get ATX ID for target epoch 75: atx for node 9410f targeting epoch 75: leveldb: not found   {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f"}
2020-08-20T18:18:44.263Z        ERROR   9410f.blockBuilder      failed to check for block eligibility   {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f", "layer_id": 452, "errmsg": "failed to get latest ATX: failed to get ATX ID for target epoch 75: atx for node 9410f targeting epoch 75: leveldb: not found"}
...
2020-08-20T18:44:03.450Z        ERROR   9410f.blockListener     failed to validate block        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f", "block_id": "92f1a1ad8c", "errmsg": "block eligibiliy check failed - err getting ATX failed: leveldb: not found 83fa2e80a3 ep(2025)"}
2020-08-20T18:44:03.582Z        ERROR   9410f.blockListener     failed to validate block        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f", "block_id": "462ae4e0ff", "errmsg": "block eligibiliy check failed - err getting ATX failed: leveldb: not found 2b3d57e18c ep(2025)"}
2020-08-20T18:44:03.585Z        ERROR   9410f.blockListener     failed to validate block        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f", "block_id": "4b1ec7711a", "errmsg": "block eligibiliy check failed - err getting ATX failed: leveldb: not found 4b7a3d8bcd ep(2025)"}
2020-08-20T18:44:03.630Z        ERROR   9410f.blockListener     failed to validate block        {"node_id": "9410f73adb2fe1e192c8760249ad3c4770e3d70eaac10019a9337ab330711b1f", "block_id": "b820290bec", "errmsg": "block eligibiliy check failed - err getting ATX failed: leveldb: not found 14602d6729 ep(2025)"}

Full logs in https://drive.google.com/file/d/16sBPSfMGzFLLIK5ir4QW2U8L8o7N3oUC/view?usp=sharing

@ilans launched a couple more devnets and ran some further tests. We seem to have ruled out the following as causes:

disabling DEBUG output
disabling metricbeat

I suspect it was the altered hare config params. I'll leave this issue open until we can document this somewhere.

This happened again on recent testnets, but the issue has gone away in the latest testnet. Closing as I don't think any further investigation is necessary here.


The script content is lost after verification

1. Describe the bug 🐞
If you continue to edit and use the validation function after saving, the script will return the last data.
2. Reproduction steps

Go to Script Editor
Enter any character and save
Enter any character and validate
See error

3. Environment

Controller

OS: Win10
Browser: Chrome
JDK version: 1.8
Controller version: 3.5.5 p1

Agent

OS: Win10
JDK version: 1.8
Agent version: 3.5.5 p1

4. Screenshots
Script-Editor.webm
5. Solution
ngrinder-frontend\src\js\components\script\Editor.vue
editorSize = 70;
lastContent = ''
...
contentChanged() {
      // return !this.$utils.equalsIgnoreNewLineChar(this.$refs.editor.getValue(), this.file.content);
      return !this.$utils.equalsIgnoreNewLineChar(this.$refs.editor.getValue(), this.lastContent);
  }
...
// this.file.content = this.$refs.editor.getValue();
this.lastContent = this.$refs.editor.getValue();

Thx
I highly recommend u to make PR for it.
We will review and merge if it's OK.


Handle empty testcases for AtCoder (e.g. AGC036 B)

This is the continuation of #513
I fixed my modification to pass the tests, and added a testcase.

@yoshrc Thank you!


Define standard: concerns

Define a standard for the format that concerns data needs to be supplied in to be usable by the project:

required / optional attributes, including data typing

Similar to the issue for defining a standard on crash data -
this may not be the current standard that is employed by Boston data. We should define what we want our ideal standard to look like first, and then if necessary look at middleware to translate any city's data standard into ours.
Vision Zero Network may be interested in the outcome of this issue, so we should ensure that we include all attributes that might be important.

I've been looking through the VZ concerns data from Boston, which is the only source we have at the moment. I don't have any numbers to back this up (maybe @j-t-t  or @bpben could help out with that) but my instinct says that that this type of data, combined with our other sources could go a long way to predicting risk as different locations.
The data we have isn't very detailed. If we want to move beyond just assessing the number of concerns for a given segment and start to look at them in terms of severity and contribution to risk, we are going to need to do some data cleansing. The most structured aspects that I can see at the moment are REQUESTTYPE (around 20 possible values e.g. "people don't yield", "people speed", "it's hard to see") and USERTYPE (5 possible values - bikes, drives, walks etc.)
After reading through the comments for many concerns (some of which are hilarious by the way - "Everyone knows and says this intersection is just a disaster to drive or walk in. Hold a retreat somewhere out in the woods and come up with a way to fix it. It just doesn't work, especially for pedestrians.") I've been thinking of ways we might be able to assess them better. One option would be to do some language parsing of the comments looking for certain words, and using those matches to attach tags to a concern. For example:
"..hard to see.." = apply a poorVisibility tag
"...drivers using bike lane..." = misuseOfBikeLane tag
"...drivers do not stop..." = driversIgnoringSignage tag
and so on. I was able to easily come up with around 20 tags, and I'm sure there would plenty more that could be gleaned:

bikeLaneNeeded
crossingNeeded
driversIgnoringCrosswalk
driversIgnoringSignage
longPedestrianCrossing
longWaitForWalkSignal
shortCrossingTime
misuseOfBikeLane
misuseOfBusLane
parkingInBikeLane
pedestriansIgnoringSignal
poorCrossing
poorLighting
poorSignage
poorVisibility
sidewalkNeeded
signalsNeeded

The idea would be to then define a standard for concerns that had an inbuilt open tagging system (similar to Open Street Maps). Every city will have their own unique problems that citizens want to report (think of cities in very cold climates, or with unusual public transport etc.) so it doesn't make sense for us to try and force a standard on them that has a fixed set of categories. But if we use an open tagging system, they can include whatever tags they feel are appropriate, and then it's just up to us to create an ontology that maps the tags we deem relevant into our own that can then be used to calculate & explain risk.
All of this though is based on the assumption that having concerns tagged in this way is going to help the project predict and explain risk, which of course is the one of the core aims. Any feedback and ideas welcome, thanks.
@alicefeng @andhint

I've been meaning to parse the text for a while, as well as do a nice writeup of my results  It's really a notable finding that laypeople know what's not safe and their beliefs are highly predictive.
I think it's a good idea to make standardized tags.
One thing that I'm not sure about is that I thought I read somewhere that in addition to the website, Boston employees might have hit the streets to solicit concerns.  Not sure where to check that though.

I like the tagging idea too.
Have you given any thought to the temporal aspect of this data?  i.e., when the concern was submitted, how old it is, etc.  Also, how are we handling any changes in status (like a concern gets closed or resolved)?

I think this is a great idea, and definitely would lead to interesting insights, but I think we should start with a few high-level splits rather than a long set of very granular splits.  For example, having just "bike/ped-related" vs "car-related".  My sense is more splits won't improve predictive power, i.e. there won't be enough sample to tease out any effect.
I think maybe this is part of a discussion we should have on feature additions, so we can prioritize ones that are really top of stakeholder mind and ones likely to boost model performance.

@j-t-t re. solicited concerns - do you think that would have much of an impact on concern quality? I'm inclined to proceed with treating them all the same for now, but perhaps we could add that into our standard (source: user-submitted / solicited) that one day might yield results.
@alicefeng temporal data and status are going to be important. The DC concerns data that Jenny found looks to be realtime (the last entry added was today) but Boston data stops in Feb 2017. All concerns from both cities are at status "Unassigned".  Perhaps for now the best we can do is discard concerns beyond a certain age?
@bpben agree that going too far on tagging may not improve predictive power, but it could go a way to explaining the contributing factors of risk at a location, which I think is just as important as identifying high risk locations?

I don't think the quality would necessarily be different or even that it's worth breaking them down.  I just wonder if it would be worth mentioning in the data collection methodology: it may be that you get a lot more responses if you solicit them, but I don't actually know.

@j-t-t @bpben @alicefeng Hoping to keep momentum on this one, here is a draft schema for concerns data, as well as a validated instance document with a few examples extract from the Boston concerns -
https://github.com/Data4Democracy/boston-crash-modeling/blob/data_standards/data_standards/concerns-schema.json
https://github.com/Data4Democracy/boston-crash-modeling/blob/data_standards/data_standards/concerns-instance.json
I went with a JSON schema for now, but if there's strong feelings against this we could look elsewhere. Repeating this is probably more for my benefit than others, but I think we want to design our ideal standard for concerns to be made available to the model, rather than feeling tied to the format(s) that we've been given data in so far. Conversion of existing data into the new standard should hopefully be straightforward (and would give me a python coding task that I could probably actually do at the moment!). Let me know what you think, thanks.

I have concerns around requiring this to be json for new cities.  If you're writing a conversion script, I think it's fine for our standard to be internally in json, and letting cities give it to us in csv, so if that is what you're saying, I'm on board.  But most cities appear to have this in csv already, and I'm concerned that if we're asking them to convert it to participate it might be an unnecessary barrier to entry.
Some people have proposed a csv schema here, not sure if it would be helpful: http://digital-preservation.github.io/csv-schema/csv-schema-1.0.html

This looks great @terryf82 !  Thanks so much for the work you've put into this.
I think it'll definitely be important for us to document our internal data standards but I agree with @j-t-t that from an external-facing perspective (i.e., a user guide), we'll want to write this up as what the city themselves needs to provide to our application.

@j-t-t we're on the same page. To implement this type of standard we would need middleware that can handle the conversions, both now and for the foreseeable future. But at some point I would like to think the project can have enough appeal that cities are willing to handle the data transformation themselves (or more likely, they pick up our standard as their starting point).
This speaks to a broader issue though and I'm interested to hear everyone's input - are JSON-based schemas like this how we want to work with data coming into (and going out) of the project? My experience has always been that CSVs provide a practical starting point, but getting off them as soon as possible is the way to go, because of issues around structure, encoding, validation, portability etc. At the moment I think we generate predictions into a csv too, which @alicefeng reads for the visualisation - what if those predictions were output in JSON? We could then serve them via an API that the visuals interact with as well as making them available to cities that want to include them in their own models & projects. Now seems like the right time to make these decisions, before things scale up much further. @bpben what are your thoughts on this?

I think that json-based schemas are a good way to move forward internally!  I've been thinking we also might also want to move to geojson from the shape files too.

GeoJSON would be great from a viz perspective.  That's what I'm using anyways.
@bpben and I had touched on the idea of an API too this weekend for the reasons you mentioned @terryf82 .  Also, depending on the functionality we want, the viz might have to turn into a full blown web app with a proper backend at some point.

@j-t-t @alicefeng @bpben I've updated the concern schema -
https://github.com/Data4Democracy/boston-crash-modeling/blob/data_standards/data_standards/concerns-schema.json
so that concern.tags is now a required value, and must contain at least one item. I don't expect we'll learn much from concerns that have no detail associated with them, and I'm confident that we'll always be able to interpret at least one tag from a concern's summary.
@j-t-t assuming that everyone is happy with this as the draft standard and if I write the scripts to convert the existing VZ CSVs for Boston & DC, and SeeClickFix CSV for Cambridge into this format, how much work is it for you to swap to reading from validated JSON files rather than the CSVs when making the canonical dataset? I know the concern.tags data (requesttype in the csv) isn't presently used, so in the short-term I could just reuse the requesttype as a single tag while working on parsing of the descriptions. Thanks.

I think this is fine, as long as we'd be willing to update the schema later if, for example, other cities' concern data turn out to have new fields that we think are useful
It will be simple to convert to json, but we should think about what this means for the pipeline.  Right now, the data generation pipeline takes csv files as we get them from the cities.  Do we want to add  separate step outside the pipeline process and have the pipeline take the json only, or do we want to add the convert script to the pipeline if we have csv files but not json files?  At the moment at least, I think I'd prefer the latter.

Do you not see my comments ^ unless I add your handle to it @terryf82 ?

Again late to the discussion but great work on this so far, @terryf82.  I think I agree with @j-t-t that we should be as flexible as possible with input.  Worst case, it seems, we could just have part of the pipeline perform a transformation?
On the flexible note: Is requiring tags a good idea here? As I see it, we could maybe populate tags with another set of scripts, looking for specific words like "bike" or "pedestrians".

Version 0.1 of the concerns standard is now complete and integrated -
https://github.com/Data4Democracy/boston-crash-modeling/blob/data_standards/standards/concerns-schema.json
I've emailed it to VisionZeroNetwork to see if they have any feedback/interest in discussing further, will let you all know when I hear back from them.


Remove custom M2M behavior from TaskBundleManager

It appears that someone caused the TaskBundleManager to have unique behavior when it comes to managing the many-to-many relationship with tasks.  That relationship involves a through table.  Our API (get_filtered(), update(), etc) is fully capable of managing the relationship including the attributes on the through table.
Therefore, we must remove the special behavior:

replace custom getter and setter with the generic versions
remove custom code in create() method
rewrite tests to use our normal API. Search for any test using "task_bundle_manager"

Please see the above commit message for an update on what work remains.


fix(hmr): more precise matching

In the latest vite demo test, if I manually update an already existing layout, restart is required for it to take effect, this pr fixes the issue。
There are no break changes and it works fine 🥰
A repo that reproduces the problem → vue-layout-demo
Start the service and modify src/_base/layouts/Layout.vue to find the problem.

As usual, merge #141 so that #140 can be closed.
Or we could merge #140 and then merge #141.

I've applied your patch with pnpm patch. When I edit the layout or one of its inner components it seems to trigger something, but the data in the browser is not updated. Is there anything special that I need to do to get this working?

Any update here?

Any update here?
@JohnCampionJr

Hello guys,
there is any chance to have this pull request integrated in the code?
@markthree, there is any possibility to use your specific branch in my project until PR is not accepted?
Thanks in advance,
Salvo

@nos86 Sorry bro, no progress on this pr at the moment, you can try using https://github.com/dishait/vite-plugin-vue-meta-layouts

any updates?


AC-2(4): automatic notification required

The information system automatically audits account creations, modification, enabling, disabling, and removal actions, and notifications of assigned organization defines personnel or roles.

💡 Summary
As a system architect, I need to ensure support for updated integration requirements. Instructions are contained within the ATO document folder under the above Control ID.
Motivation and context
The information system automatically audits account creations, modification, enabling, disabling, and removal actions, and notifications of assigned organization defines personnel or roles.
Acceptance criteria
create an automatic notification to admin for the below requirements :

[ ] All Crossfeed API are logged in on CloudWatch
[ ] API are kept login on CloudWatch


Proposal.  Microsoft.AspNet.Mvc.Xml For Beta 8? (DNX 4.5.1) - MVC 6

I was wondering if you could make the xml serializer libraries available for the next beta.  Using Beta 5 of the libraries causes a server 500 error (any request). Using Beta 6 seems to work (testing now).

This package was renamed to Microsoft.AspNet.Mvc.Formatters.Xml https://github.com/aspnet/Announcements/issues/49


Feature: Add the ability to add enchantments via command.

Let administrators create custom items using vane-enchantments by using a command.

Nothing prevents you from using /give to give you an item with the correct NBT tag. The only thing vane might do is to check if the enchantment is on a matching tool type. Is this what you want to have changed?

Not directly in written form, but they all follow the same schema. I am internally using the same enchantment tag as minecraft, just with different IDs. So instead of e.g. minecraft:damage_all you would e.g. use vane_enchantments:angel. The naming for the enchantments all follow the same conventions, so lowercase with underscores to separate words. If in doubt, just look at the respective java implementation file.
Example: For HellBent.java you can see the relevant part after the imports: @VaneEnchantment(name = "hell_bent", ...), so the tag would be vane_enchantments:hell_bent.
But as stated in my previous comment, things will probably cease to work if you try to apply these enchantments to vastly different items. Meaning that e.g. soulbound will probably work on any item you put it on, but the hoe-specific enchantments like "Rake" will certainly not work when applied to a stick.

I've looked into it and made sure that all enchantments only require the correct item when enchanting in-game, and not
check this when the enchantment is being used. So technically you could now apply elytra enchantments to any chestplate, but this still won't help because then you can't get into gliding mode. Nonetheless, the restrictions are now as loose as possible.

Hi, I have a similar question to this issue.
I installed this wonderful mods in my paperMC server. Now I need to teach my friends the features added by Vane like sickle, file, XP Bottles, Portal Scrolls, etc. But before that, I first need to test them myself.
I would like to know how use the /give command to give myself the items added by Vane?
(sickle, file, XP Bottles, Portal Scrolls, etc)
For example, it would be great if I can use /give @a minecraft:iron_ingot to give myself a Vane item.
I tried searching for items started with vane_ but couldn't find anything.
I tried to go through the implementation Java files to find the NBT tag but unfortunately I'm no programmer and couldn't find the answer. Any help will be really appreciated.
Sorry to reply to a close issue, but I think its better than creating a new issue. Thanks in advance!

The items themselves cannot be registered to minecraft directly at this point in time without breaking the client in various ways,
therefore you will not find the items via in minecraft's /give command.
Beginning with minecraft 1.17, you can use the /customitem give item command to give yourself a customitem. Here, item can be something like vane_trifles:diamond_file (Just press tab like /customitem give <TAB> to get a list of all items).
If you want to use the vanilla give command, you can do that too, but the NBT tag is more complicated. To view the correct tag, simply give yourself an item and use data get entity @p SelectedItem to see the full NBT tag of the item. Then you can give that using the vanilla give command.
To enchant an item with vane enchantments, you can use /enchant as an admin in-game. Hold the item in your hand and use tab completion like /enchant <TAB> to view all possible enchantments and select one.

Yes, the command /customitem give [vane_item] works great!
Thanks you!
Here are some in-game images for future googler


Get children if using Alternative JSON format

I'm using the Alternative JSON format to create my tree, where creation of the node doesn't require an array of children (just a supplied parent id).
I want to return a count of the children for a particular node, is there a way of collecting the children either by array or API method?

You could use: instance.get_node('your-node-id').children.length


Why DriverContext is not singleton (or inside a singleton)?

Hi,
To leave out passing DriverContext throughout the tests I have moved it to a custom singleton. Tests became much clearer for QA Engineers.
Was thinking about the reason It is not implemented as such. I can PR my changes if you're interested.
Eduard

Hi,
Our framework supports parallel execution, so there can be couple of instance of DriverContext created, also each of test can modify DriverContext e.g.
        /// <summary>
        /// Before the test.
        /// </summary>
        [SetUp]
        public void BeforeTest()
        {
            this.DriverContext.TestTitle = TestContext.CurrentContext.Test.Name;
            this.LogTest.LogTestStarting(this.driverContext);
        }

So we should't use DriverContext in singleton...
Eduard you can show as example of your solution at fork, at least we can look at it
Jakub

Hi,
Well anyway DriverContext is created once per ProjectTestBase. What did at this point is modified ProjectTestBase BeforeClass() the following way:
`public class ProjectTestBase : TestBase
{
private readonly DriverContext driverContext = new DriverContext();
 /***omitted***/

    [OneTimeSetUp]
    public void BeforeClass()
    {
        this.DriverContext.CurrentDirectory = TestContext.CurrentContext.TestDirectory;
        StartPerformanceMeasure();
        this.DriverContext.Start();

        Browser.Current.Driver = this.DriverContext.Driver;
        Browser.Current.DriverContext = this.DriverContext;

    }

 /***omitted***/

}
`
Where browser is a singleton container for Driver and DriverContext.
`
public class Browser
{
public IWebDriver Driver { get; set; }
public DriverContext DriverContext { get; set; }
//  private static DriverContext DriverContext { get; set; }
private static Browser instance = new Browser();
    static Browser() { }

    public static Browser Current
    {
        get
        {
            return instance;
        }
    }

}

`
The reason I am doing this is to simplify tests and page objects to hide the DriverContext variable. However, I am interested whether this can cause some issue like parallel run, or similar.
BTW. You did great job with this framework. Really useful.
Eduard

due to possible impact on parallel run I'm closing the issue.


Is ALPN supported with this module on io.js?

The necessary changes are in, but does http2 need to do anything extra to support it? The readme is unclear.

I just ran a quick test, and though I don't know what, it does appear that there is something else that is required to use ALPN on io.js. This will take some investigation.

Added to Node.js v5: https://github.com/nodejs/node/pull/2564

This should be re-named, and hopefully prioritized now that Node.js v5 has ALPN :)

Did yet another quick test with node 5.3.0, and ALPN is negotiated just fine between Firefox (which sends both ALPN and NPN) and node-http2.


unsure about this

Challenge Waypoint: Accessing Objects Properties with Variables has an issue.
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/47.0.2526.73 Chrome/47.0.2526.73 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// Setup
var testObj = {
  12: "Namath",
  16: "Montana",
  19: "Unitas"
};

// Only change code below this line;

var playerNumber = 16;       // Change this Line
var player = testObj[playerNumber];   // Change this Line
console.log(player);

I know I have issues ;).  I also think this one does as well.
I am trying to understand this better and was getting 'undefined' in console.  I would like to see the result of what I did.  I feel  my answer is incorrect even though it's passing.  I threw in the console.log(player) to help better understand by returning 'Montana' and even more confused now.
Thanks for any insight in Advance.

First of all this is not the place to ask help :-1: you should be asking it here https://gitter.im/FreeCodeCamp/Help so next time don't create issues for help
your target here to access object properties with variables which can be done by using the bracket notation. So myObject[myVariable] can access what ever property in the myVariable but you can't do so using myObject.myVariable
Guys this is not a issue close this issue :-1:

@WCat13 hope my answer had helped you :smile:

Should the console display player ="Montana" ?  It is showing undefined even though the code is correct (and passed).


As an admin user , i am not able to assign platform role to the users from velaux

Describe the bug
In version v1.8.0 , when i want to change a users platform role from the ux , i am able to edit users platform role , however i cannot update it . velaux seems not to be throwing any event when user clicks on update button.
To Reproduce
Steps to reproduce the behavior:

login to velaux as admin
click on users
edit a user
change platform user role to admin
click update button

Expected behavior
expected behavior is to update the role of the user
Screenshots

KubeVela Version
CLI Version: 1.8.0
Core Version: 1.8.0
GitRevision: fcd721ffed6013777962befb68fff96424b67b06
GolangVersion: go1.20.3
Cluster information

Kubernetes Version : v1.23.7

Additional context

https://github.com/kubevela/velaux/issues/798 duplicate of this , i am closing this issue since i created it at wrong repo


Feature/add programs fixes

Trello card

Upon navigating to Programs page, programs are fetched from back end, and stored in Context state, which can be used anywhere in the app after that.
I have wrapped the whole App in the ProgramsContext for now, but we can wrap specific components in it if that's overkill.
The antd table then populates from the programs in state to fill the table with all the programs.
It's a large table, and at some point we may want to only fetch/display programs for the club that the logged in CD/Admin is 'assigned' to.
The component  that pops up when clicking 'add programs' is still not functional, but this was getting big, and I want to merge this before it gets too large.

@pak11273 I decided to create a separate Context from your user one.  Didn't want to complicate yours.  We can merge them at a later time if they both end up wrapping the whole app.

I think it's fine the way it's separated out.  I think we could even handle 3 to 4 more context providers like this (members, activities ... )  It's far from unmanageable imo.

Sounds good, I'm going to go ahead and merge then.


Feature_Request : Create a contact us form/section

Is your feature request related to a problem? Please describe.
Website consists of a contact us button, but its not linked to anything. I want to build a contact us form and link it to that button. So please assign this issue to me.
Describe the solution you'd like
i would like to build a similar looking contact us form which will be used for people to mail you directly from the website without leaving the website

Describe alternatives you've considered
feature : people can mail you directly using this form
validation check : it will check if people dont enter junk values in the input fields. eg. attatched below

Demo Video/Screenshot (Mandatory )

Are you contributing under any open-source program ?
JWoC 2024
I would consider this as a medium level issue, so please add the necessary labels.

I would like on work on that issue under JWOC.

I would like on work on that issue under JWOC.

Hey Sonali! I opened this issue so that I, myself can work on this. You can chose to contribute on the issue created by @apu52 (maintainer) or create new issues of your own.
Happy Coding.

i would like to work under this project assign me this JWOC

@PranavBarthwal I have assigned you the issue. you can start working

@SonaliKumari2 @sanjayh-2022 Welcome to the repo

@PranavBarthwal I have assigned you the issue. you can start working

@apu52 Can you please add the label for difficulty level. (preferably medium)

@PranavBarthwal I have assigned you the issue. you can start working

@apu52 Can you please add the label for difficulty level. (preferably medium)

I will add the label on the basis of the PR & the codes .Don't worry . I will assign it after the PR

@PranavBarthwal You have 2-3 days for the PR submission


append changelog to fulfill the license obligation

Reminding about missing "notices" for modifications on original work (violation of APACHE-2.0)
Hello,
[Modification terms and conditions in license] The original work should be honored while the modifications on it should be attached with prominent notices as the license APACHE-2.0 dictates. Your project is a forking project from constverum/ProxyBroker which adopts APACHE-2.0 as its project license.
The modification terms and conditions of APACHE-2.0 dictate that:

APACHE-2.0:
... You must cause any modified files to carry prominent notices stating that You changed the files ...

Therefore, we think the project is obligated to abide by the modification terms and conditions in APACHE-2.0.
[Violation of modification terms and conditions] We run through your history, and it turns out that you have conducted modifications to the source files of original work while didn't provide prominent notices.
You have 4 commits which conduct modifications to the original work, 1 of which are declared in CHANGELOG.rst while 3 of which are not. Specifically, of the 3 commits, 3 commits are not announced in CHANGELOG.rst.
According to the license terms and conditions above, it is regarded as license violation.
Thus, to avoid potential legal risks, I would suggest you carry out prominent notices for the 3 commits.
[Recommended Fix] There are 2 recommended solutions to fulfill the modification related obligation of APACHE-2.0:

Git Mechanism.

Put a note in the top directory, something like MODIFICATION.md, or any file but the license text and NOTICES, in order to give people who follow you the most latitude to comply with the license without making a mess,
Write "In compliance with the APACHE-2.0 license: I declare that this version of the program contains my modifications, which can be seen through the usual "git" mechanism."

Changelog Text.
Add changelog for modification to comply with the license.

 It adds a few lines in changelog without touching the codebase. Please be comfortable to check it out.
Full details of the report you could refer to the html file attached.
Hope it helps!
Cheers!

@SilverSteven thanks for reminding!

@allcontributors Add @SilverSteven  as a contributor for docs.


Is DateNotPastValidator still considered pure function, although it has been revamped to become testable

Hi, in chapter 3, why function purity matters, under 3.4.2 Testability without so much boilerplat,
under INJECTING FUNCTIONS AS DEPENDENCIES, the sample code below is one of the solution to ensure the validator function become testable.
However, can i clarify that this function although become testable, it is still not considered pure function?
Cos if i repeatedly call the same DateNotPastValidator function with the same Clock argument (which internally get the current date time), the DateNotPastValidator function might return different arguments, hence breaking one of the rule of pure function.   Pure function which calls an impure function (in this case, the Clock function) is itself become impure.
public record DateNotPastValidator(Func<DataTime> Clock):IValidator<MakerTransfer>{
     public bool IsValid(MakerTransfer transfer)=>Clock().Date<= Transfer.Date.Date

}

Hence my query is

Is my above understanding correct about it being impure?
if my understanding is correct, is there a way to make it testable and at same time pure?

Hello,
yes your understanding is correct: if a function calls an impure function,
it is itself impure. The point, here, is to try to write a function that
has no side effects other than those of the functions it depends upon.
This makes it testable, by injecting a pure function.
On Sat, Aug 17, 2024 at 2:47 PM Hanster @.***> wrote:

Hi, in chapter 3, why function purity matters, under 3.4.2 Testability
without so much boilerplat,
under INJECTING FUNCTIONS AS DEPENDENCIES, the sample code below is one of
the solution to ensure the validator function become testable.
However, can i clarify that this function although become testable, it is
still not considered pure function?
Cos if i repeatedly call the same DateNotPastValidator function with
the same Clock argument (which internally get the current date time), the
DateNotPastValidator function might return different arguments, hence
breaking one of the rule of pure function. Pure function which calls an
impure function is itself become impure. Is my understanding correct?
public record DateNotPastValidator(Func Clock):IValidator{
public bool IsValid(MakerTransfer transfer)=>Clock().Date<= Transfer.Date.Date
}
—
Reply to this email directly, view it on GitHub
https://github.com/la-yumba/functional-csharp-code-2/issues/15, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUEO2C27GCWQIRPUHMUAADZR5A47AVCNFSM6AAAAABMVMUZW2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TCNJRGIYTCMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[os-base] Add cURL

Would be handy to have it built-in.

Thanks for this feature request: it's certainly very nice to have.

busybox wget does most if not all that curl can do. Not to mention you can just use a container for curl.

@Xe yeah man
echo 'docker run --rm radial/busyboxplus:curl curl $@' > /usr/bin/curl && chmod +x /usr/bin/curl
Either option works. I do like the idea of just knowing it's there.

Or smaller (4.2 MB → 1.3 MB) after having removed the image radial/busyboxplus:curl:
docker run --rm radial/busyboxplus:curl curl -fLR --progress-bar \
  -o - https://s.blitznote.com/debs/curl > /usr/bin/curl \
&& chmod a+x /usr/bin/curl

sha256sum curl
# b4d5c397201db26c6ceb8934d38e2edf17e31db03463596b3dfc17fefeeaaaae  curl

radial/busyboxplus:curl is 4.2 MB.
A static binary of curl is only 1.9 MB — including libidn and nghttp2 on top, and w/o the redundant SSH, but with BoringSSL — and gzip-compressed 0.9 MB.
$ /opt/bin/curl --head https://s.blitznote.com/debs/curl-static-7.43.0-2
Content-Length: 1907296

$ /opt/bin/curl -fLRsS -o - https://s.blitznote.com/debs/curl-static-7.43.0-2 | gzip -9 | wc -c
924384

I don't think we will fix this unfortunately.  We don't want to include the real curl because that increases the core size of RancherOS.  If busybox had support for curl we could add it, but unfortunately it does not.  busybox does have wget though, so I feel that is a workable solution.
@imikushin The one downside of our wget is that we don't have SSL support.  Can we look at adding openssl binary to make https work?

I've added openssl to os-base (see https://github.com/rancher/os-base/releases/tag/v2015.05-1) and wget now supports https URLs (in the latest RancherOS dev).

This added about 0.8 MB on disk?
You could decrease the size of OpenSSL even more by not compiling in some features. For example, DTLS , SSL2 and ciphers such as RC2 will most likely not be needed. Here are the flags:
	enable-ec enable-ec_nistp_64_gcc_128 -DECP_NISTZ256_ASM \
	enable-tlsext threads \
	no-dso no-krb5 \
	no-cast no-seed no-idea no-ripemd no-md2 no-mdc2 no-md4 no-rc2 no-rc5 no-bf \
	no-heartbeats no-ssl2 no-ssl3 no-dtls no-dtls1 no-dtls1_2 no-srtp no-jpake no-gost \
	no-hw no-sctp no-fips

(no-cms would be nice, but it is broken according to openssl/openssl#221)

One more thing:
$  strings openssl | grep -F "OpenSSL 1.0"
OpenSSL 1.0.2a 19 Mar 2015

1.0.2d is the current version.

Curl can be run directly using this small container: docker run --rm mwendler/curl. It has an advantage of actually validating HTTPS certificates. The wget contained in busybox is happy to download any kind of HTTPS content (verified using wget https://self-signed.badssl.com/).

As @ibuildthecloud mentioned, we won't be fixing.

<wget: unrecognized option '--method=PUT'>


Comparing hashed configurations for start and final

After some adjustments to the hashing it seems to be working reliably now, won't close until it's tested further though cause this problem's been elusive in the past


hpo_bring_your_own_keras_container.ipynb

Throws the following error unless an extra permission is added outside of the instance:
"User: arn:aws:sts::980970363349:assumed-role/AmazonSageMaker-ExecutionRole-20200806T154123/SageMaker is not authorized to perform: ecr:InitiateLayerUpload on resource: arn:aws:ecr:us-west-2:980970363349:repository/test"
Is it possible to add this permission from within the instance?

Tried using a new notebook and branch and changing the name of the algorithm that is the "test: part of the repo name. But this did not work.


[FR]

Instructions
Thank you for submitting an issue. Please refer to our
issue policy
for information on what types of issues we address.
Please fill in this template to ensure a timely and thorough response.

Place an "x" between the brackets next to an option if it applies. Example:

[x] Selected option

Please delete this section (all content above this line) before submitting
the issue

Proposal Summary
As there are multiple data formats for creating datasets, there can be a feature to convert one format to another. For example, OpenImages to Coco format, or coco to Yolo, etc. As I understand the visualization from different formats are supported, this can be easier.
(In a few sentences, provide a clear, high-level description of the feature
request)
Motivation

What is the use case for this feature?
easy conversion of datasets across different formats to be used in different models.
Why is this use case valuable to support for FiftyOne users in general?
While evaluating a dataset, it may be necessary to remove irrelevant annotations and then it can be converted into the relevant formats.
Why is this use case valuable to support for your project(s) or
organization?
seamless integration of dataset on different models
Why is it currently difficult to achieve this use case? (please be as
specific as possible about why related FiftyOne features and components are
insufficient)
I cannot find a documentation for exporting a dataset to another type

What areas of FiftyOne does this feature affect?

[x ] App: FiftyOne application
[ ] Core: Core fiftyone Python library
[ ] Server: FiftyOne server

Details
(Use this section to include any additional information about the feature. If
you have a proposal for how to implement this feature, please include it here.)
For example,
dataset = foz.load_zoo_dataset(
"open-images-v6",
split="test",
label_types=["segmentations"],
classes=["Cattle"],
max_samples=200,
seed=51,
shuffle=True,
dataset_name="open-images-cattle",
)
export_dir = "exports"
label_field = "ground_truth"  # for example
dataset_type = fo.types.COCODetectionDataset
tagged_view below is a part of the dataset view where some edits are made.
dataset.export(
export_dir=export_dir,
dataset_type=dataset_type,
label_field=label_field)
Willingness to contribute
The FiftyOne Community encourages new feature contributions. Would you or
another member of your organization be willing to contribute an implementation
of this feature?

[ ] Yes. I can contribute this feature independently.
[x] Yes. I would be willing to contribute this feature with guidance from
the FiftyOne community.
[ ] No. I cannot contribute this feature at this time.

The CLI already supports a dataset format conversion command convert and it does so on disk directly.  https://voxel51.com/docs/fiftyone/cli/index.html

The CLI already supports a dataset format conversion command convert and it does so on disk directly. https://voxel51.com/docs/fiftyone/cli/index.html

Thank you for the quick reply...
I managed to find out the conversion functions. However, I could not find a way to convert from Google OpenImage segmentation format to coco instance segmentation format. Is it that I am not able to correctly identify the format_
https://voxel51.com/docs/fiftyone/recipes/convert_datasets.html

@santhoshkelathodi what's the issue here? The code you shared should work, assuming you provide a valid field name for the label_field argument of export().
For example, this works for me:
import fiftyone as fo
import fiftyone.zoo as foz

# Load Open Images dataset
dataset = foz.load_zoo_dataset(
    "open-images-v6",
    split="validation",
    label_types=["segmentations"],
    classes=["Cattle"],
    max_samples=10,
)

session = fo.launch_app(dataset)

# Export in COCO format
dataset.export(
    export_dir="/tmp/coco",
    dataset_type=fo.types.COCODetectionDataset,
    label_field="segmentations",  # you must choose the correct field name here
)

# Verify that we can load the COCO dataset
dataset2 = fo.Dataset.from_dir(
    dataset_dir="/tmp/coco",
    dataset_type=fo.types.COCODetectionDataset,
    label_types="segmentations",
)

session.dataset = dataset2

Just for fun, here's how this would look using only the CLI:
# Download subset of Open Images dataset
fiftyone zoo datasets download open-images-v6 \
    --splits validation \
    --kwargs \
        label_types=segmentations \
        classes=Cattle \
        max_samples=10

# Get location where dataset is stored
INPUT_DIR=$(fiftyone zoo datasets find open-images-v6 --split validation)

# Destination to write the COCO-formatted data
OUTPUT_DIR=/tmp/coco

# Convert segmentations from Open Images dataset to COCO format
fiftyone convert \
    --input-dir ${INPUT_DIR} \
    --input-type fiftyone.types.OpenImagesV6Dataset \
    --input-kwargs label_types=segmentations include_id=False \
    --output-dir ${OUTPUT_DIR} \
    --output-type fiftyone.types.COCODetectionDataset

# Check out results
ls -lsh ${OUTPUT_DIR}
python -m json.tool "${OUTPUT_DIR}/labels.json"


momentum scroll events not work by touch gesture.

I made code that outputs a log by assigning a scroll event to the div.page-content element

$("#scrollDiv").on("scroll", ()=>{ console.log('scroll'); })
This works well with the following actions:

control scrollbar or wheel button on PC's web browser
If you touch move the finger with touching the screen

but momentum scroll does not work.

Events not work while momentum scroll is running.
At the end of the momentum scroll, scroll event work only one.

Please, check this issue

Not related to Framework7. If you use iOS cordova app, make sure you use WKWebView


github profile wrapper modified

🛠 Issue (1687)

Closes #1687
Description
When username is null then on clicking search button an alert is displayed as "Input is emtpy! Please enter a github username"
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have made this from my own
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings
[x] The title of my pull request is a short description of the requested changes.

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

@TusharKesarwani @zugzwang03 @harshit-paneri I have done the required changes, please merge this pr.


Fixed PID missmatch in zookeeper.md

@arteniioleg Thanks for the update. Could you please sign the CLA. Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

@Rajakavitha1 Done


Added authentication and authorization for Cassandra.

Changed default namespace to an underscore-separated value (for C*)

@knordstrom, Thanks for your contribution!
In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement (CLA). It's all electronic and will take just minutes - https://cla.microsoft.com.

Sorry I jumped the gun on this PR. I'll resubmit tomorrow.


[Bug] Angular keywords loader stopped working

Is this a regression?
Yes
Description
I've noticed that in ^18 angular keywords stopped loading. I think it's related to angular's api/manifest.json structure, as it differs from the type expected by the ngKeywordsLoader function.
Please provide the exception or error you saw
No response
OS
Windows
Browser
Chrome
Node version
20.14.0
Anything else?
No response

:tada: This issue has been resolved in version 18.1.0 :tada:
The release is available on:

v18.1.0
GitHub release

Your semantic-release bot :package::rocket:


Is it possible to get highlights inside a textarea?

Is it possible to get highlights inside a textarea? like this:

It's not possible atm.


Feature/hocs 3722 update stage2 to mirror stage1

https://collaboration.homeoffice.gov.uk/jira/browse/HOCS-3722

This must be merged after merging HOCS-3721 into main

A few test files have reduced coverage thresholds, is there reason we can't maintain threshold of 1?
Also check usages of the CloseResult Out Mapping in a few places as I'm not sure it's used?
Cheers,
Rob

Closed as HOCS-3721 change now includes these changes


If you modify the edge of the chuck the side chunk that will be generated will not connect

If you modify the border of chunk by either lowering or raising the terrain the side chunk that will be generated as you get closer will not connect with the modified one

I've seen this happen before and fixed it, so it should not be happening anymore. But apparently, it is. Which branch did you encounter this on?

Unable to reproduce in develop

Hey, I have encounter this issue in master branch. Is develop the latest version?

Ok, thanks! Yes, develop is the latest version, however, develop may also be slightly unstable at times.
I'll be merging develop into master soon (most likely this or next week, but I won't promise anything).
There will be major changes to the whole project, so prepare for that. If you have already started developing on the master branch's API, I recommend starting to adjust it to the develop's API, so you'll be ready when it's merged. The new API will break some things, but it is a lot more modular and easier to extend upon.

Fix released in master


npm package is not correct.

after installing the package, I find out that there's no dist folder in it. Maybe you forget to run yarn build command to generate dist folder before you publish to npm?
And also, the npm package name is not the same as documented in readme.md. I think it would be a better way to keep npm package name and name in package.json the same.
I hope the next release would be soon, I really want to use it in my react-native project.

Hmm you're right, I'll try to get this fixed today

Hmm you're right, I'll try to get this fixed today

yarn add @nandorojo/swr-react-native

yarn add @nandorojo/swr-react-native


Formatter undocumented deviation: implicit string concatenation

Just sharing another deviation, this time to do with implicit string concatenation (all with line-length=88):
# black / existing formatting
class TestIO:
    def test(self):
        new_rows, orig_rows = 1, 1

        assert new_rows == orig_rows * 2, (
            "There should be {target} rows,"
            "found: {current}".format(target=orig_rows * 2, current=new_rows),
        )

Then with ruff this becomes
class TestIO:
    def test(self):
        new_rows, orig_rows = 1, 1

        assert new_rows == orig_rows * 2, (
            "There should be {target} rows," "found: {current}".format(
                target=orig_rows * 2, current=new_rows
            ),
        )

It's not significantly different, the snippet ends up one line longer. However the thing that seemed most surprising in the ruff output was that the two strings weren't concatenated. To illustrate what I mean, if I run black --preview on the ruff output I get
class TestIO:
    def test(self):
        new_rows, orig_rows = 1, 1

        assert new_rows == orig_rows * 2, (
            "There should be {target} rows,found: {current}".format(
                target=orig_rows * 2, current=new_rows
            ),
        )

I appreciate this must have extra complexity to be able to do, but it seems like it should be possible when both strings are the same regular/ raw / f string variant.

Thanks for reporting. We plan to implement Black's preview style once we shipped the Beta.
Regarding the deviation. I believe it is related to https://github.com/astral-sh/ruff/issues/7052 We already implement custom handling for implicit strings but it is limited to binary and compare expressions PR. We may also need custom handling for call expressions where the string part group also includes the group of the right side (to get left to right, instead of right to left expansion)
A more minified example (to ensure it's unrelated to assert):
# black / existing formatting
class TestIO:
    def test(self):
        new_rows, orig_rows = 1, 1

        (
            "There should be {target} rows,"
            "found: {current}".format(target=orig_rows * 2, current=new_rows),
        )

Thanks for the quick response! This does look like it's the same or very similar to #7052, so I'd be happy to close this.

(Closing as it does appear to be the same as #7052. Thank you!)


problems when reproducing

Hello.
I am reproducing your work following the paper.I come across a problem when I complement the part of vertexes coordinates and vertexes offset(the former means the distances from vertexes to maincenter,the latter means the precision lost in downsample,right? ) in Loss .I just can't match the shape between predicting output and gt.
From the paper,output["vertexes_coordinates"].shape is [Batch, H/S, W/S , 18],
 output["vertexes_offset"].shape is [Batch, H/S, W/S , 2].
I set the gt["vertexes_coordinates"].shape is [Batch, num_objs , 18],
gt["vertexes_offset"].shape is [Batch, num_objs , 18].
My question is how can I match their shape to do the correct loss? I know I should extract the vertex index from the output heatmap to generate the right shape,but i don't know how to do that because
if I use _gather_feat,I extract all of vertexes but I should extract them in order.Could you give me some details of how to fix this problem? Thanks advance.

vertexes offset are relative to the heatmap, and each point in a heatmap corresponds to an offset. so gt["vertexes_offset"] shape is [Batch, H/S, W/S, 2].  Figure 2 also shows the shape of this Tensor.

I have two questions:
1、Did you use gaussian function in gt["vertexes_offset"] ?
2、How did you extract the tensor of shape [Batch, num_objs , 18] from output["vertexes_coordinates"]

1:No
2: Refer to https://github.com/xingyizhou/CenterNet/blob/8ef87b433529ac8f8bd4f95707f6bc05052c55e9/src/lib/models/decode.py#L497.
hm_score, hm_inds, hm_ys, hm_xs = _topk_channel(hm_hp, K=K) # b x J x K
hp_offset = _transpose_and_gather_feat(hp_offset, hm_inds.view(batch, -1))

1:No
2: Refer to multi_pose_decode
hm_score, hm_inds, hm_ys, hm_xs = _topk_channel(hm_hp, K=K) # b x J x K
hp_offset = _transpose_and_gather_feat(hp_offset, hm_inds.view(batch, -1))

I am afraid that you mistook my question2.
为了表达清楚，我用中文吧；在计算dim_loss的时候，
dim_loss += self.crit_reg(output['dim'], batch['reg_mask'],                                   batch['ind'], batch['dim']) / opt.num_stacks
这里的batch['ind']就可以把output对应的中心点信息提取出来；
我现在是要把output vertexes_coordinates heatmap（共18个通道）中的9个vertex的横纵坐标提取出来，应该是要每2个通道有一个ind,  但如果按照上面的代码的话，
vertex_coordinate_loss += self.crit_reg(output['vertex_coordinate_loss'],batch['reg_mask'],                        batch['vertex_ind'], batch['vertex_coordinate_loss']) / opt.num_stacks
就不是按序提取的vertex的了；这里您是怎么实现的呢？

原来是老哥呀，18个通道可以提前规定好顺序，比方说3D BBox的右下角对应前两个通道。再sample GT的时候参考multi_pose的hp_ind[k * num_joints + j] = pt_int[1] * output_res + pt_int[0] 制作index. 取到的vertex按通道顺序就是提前规定好的顺序。

for i in range(0,18,2):
  vertex_coordinate_loss +=  self.crit_reg(output['vertex_coordinate_loss'[:,i:i+2],
   batch['reg_mask'],batch['vertex_ind'][int(i/2)], batch['vertex_coordinate_loss']) / opt.num_stacks
这样勉强算是解决了，多谢老哥

老哥，我想问下公式7的最小重投影误差ecp下面的协方差矩阵代表什么啊？并且算角度优化的时候为啥要对向量用log呢

协方差矩阵代表各个点的置信度，可以从特征点的heatmap中提取。因为是用李代数求的和李群之间有个log转换。

协方差矩阵的含义我明白了，但是范数的下标写成协方差矩阵代表什么呢？

并且这个参数是多少呢？

在李代数中求重投影误差是一个非线性最小二乘问题一般都需提供一个协方差，形式就如论文所示。可以参考一些slam有关的资料。这个参数遗漏了系数为1，谢谢提醒。

好的，了解了！谢谢你耐心的解答。pass by,公式7是不是打错了，是argmin而不是argmax

One last question, the softmax fuction in KFPN adapted on the three feature maps' dimention of channel or dimention of last two channels(W and H)?
From the formulation of (1), it seems softmax applied on the (W,H),however,wouldn't it be more intuitive to apply it on the dim of channels,which could add info flow between channels?
Thanks,sincerely.

In the formula(8), why the covariance matrix use the 2d bbox center points instead of the projected center point?


BUG: Navbar is not responsive on mobile version.

Is there an existing issue for this?

[X] I have searched the existing issues

What went down?
Description

The navbar is not responsive in mobile version.
The content stays as per the dimension, but the Navbar is overflowing.

Preview

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a gssoc-24-extd contributor
[X] I want to work on this issue
[X] I check the issue doesn't exist

go for it @NilanchalaPanda


[Sema][SR-845] Don't crash when using mutating getters on constants

What's in this pull request?
Previously accessing mutating getters on constants crashed inside CSDiag, now the correct error diagnostic and fixit hint is emitted. All the parts were already there, just instead of the actual subscript's base expression, nullptr was passed leading to the crash.
Resolved bug number: SR-845

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    OS X platform               | @swift-ci Please test OS X platform
    Linux platform              | @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

With this change the base expression of the subscript (beeing already revalidated earlier in the function) is passed to diagnoseUnviableLookupResults to emit a fitting diagnostic.

Fantastic, thank you!


check release no push

These changes address the release problems.
As a followup @stevenhartley to make sure license and developer information is proper.


https://qgis.org/downloads/QGIS-OSGeo4W-3.8.1-1-Setup-x86.exe is 27 MB NOT whole exe!

When I try to download <IP_ADDRESS> I get a download with 28 MB, not the whole download!

not reproducable.

today the download works fine... so case closed!


srcObject support

URL.createObjectURL on MediaStream objects was deprecated and removed from browsers a while back, so without this there's no way to support passing a MediaStream into mat-video.

I've pulled the code from this since there were conflicts and have manually resolved them.  Thank you for the contribution!


Location autocomplete

Algolia used to provide a solution for this, which we never used. For reasons, Algolia will discontinue their service, but they suggest three alternatives:

https://www.mapbox.com/place-search/
https://cloud.google.com/maps-platform/places
https://geocode.earth/

Hang on to this issue so keep that list of possible services we might use to implement this feature.
We should figure out which one of these to use to get location autocomplete working in the client. Be aware that some of these solutions are costly.
AC:

[ ] Have a plan for how to get location autocomplete working in the client

closed as dupe of https://github.com/pg-irc/pathways-frontend/issues/1175


Dev

fix of issue: after closing the card scanner, elements from the scanner screen remain

@AlexeyYuPopkov Thanks for pull request


Produce a warning when connecting boundaries with real elements

Description
Hi there.
I know this issue was brought up in some places (like in #7619) but not as a request like this, I think.
I loose a lot of time disconnecting boundaries from real elements, like tracks, paths, roads, buildings, rivers, etc.
Since iD doesn't hide the boundary layer by default (which I think ought to be standard), it should at least give a warning when connecting or overlapping boundaries with other elements. Hopefully, this will help new mappers or even experienced ones not to do this inadvertently or because they just don't know this is a problem.
For example, in Portugal, boundaries are imported from official sources. If they keep being "stuck" to other real world elements, the data is being wrongly changed.
Regards.
Screenshots
No response

Boundaries are filtered out by default (which prevents moving nodes attached to them).

What do you mean by this?
If you you're saying that boundaries layer is hidden by default, this is not true. See #8454.

On RapiD the boundaries layer are always disabled by default, but not on iD (at least on my experience).

Is there anyone who can tackle this huge problem with iD?
In the last days, a new user created new tracks, connecting them to admin boundaries.
Please, at least, remove hide the boundary layer by default. That would reduce immensely the number of this kind of errors, but the ideal would be to combine that with a warning whenever a boundary is connected to other elements.

Boundaries are already hidden by default:
https://github.com/openstreetmap/iD/blob/c8a3cf154b43469d643b034f47d4e48d449582a1/dist/index.html#L49
If you’re seeing the Boundaries layer enabled, it may be because you previously turned it on and iD remembered that choice across sessions, or because you used a URL to iD that specified a custom layer list.

As I did a few months ago, I've just cleared my cookies, my cache and my credentials and created a new account at openstreetmap.org
The boundary layer still appears activated and I didn't go through the tutorial.
I also doubt the new user knew how to activate the boundary layer, if it was deactivated, because all he drew was some trails in the woods.
So there must be a problem and the layer is showing as default, although the devs may think it isn't.

Thank you for going through the steps to verify that the layer is still being activated despite the code I pointed to. We have #8454 still open to track this issue.

I just want to give a friendly bump here, since editions from new users on the admin boundaries continue...

openstreetmap/openstreetmap-website#4514 would mitigate the issue of hapless new users editing boundaries by accident. Users would not see the boundary layer by default and won’t accidentally connect anything to a boundary.
However, in some cases, the user may end up needing to edit an existing feature that’s already connected to a boundary. iD will prevent them from moving or deleting the feature unless they manually enable the boundary layer, in order to have full context about what they’re doing. To the extent that the feature was legitimately connected to a boundary in the first place, moving or deleting is less likely to be appropriate, but they can continue to make routine tagging changes.

Thank you, @1ec5.
I second what you wrote here.


Wrong type inferred with the new genric typed arrays

🔎 Search Terms
typed array
Uint8Array
ArrayBufferLike
🕗 Version & Regression Information

This changed between versions 5.6 and 5.7

⏯ Playground Link
No response
💻 Code
This is a very simple file that exports a Uint8Array parser created by a factory method:
export type Parser<T> = (input: string) => T

function createUint8ArrayParser(): Parser<Uint8Array> {
  return (_input: unknown): Uint8Array => {
    throw new Error('Not implemented')
  }
}

export const parser = createUint8ArrayParser()

🙁 Actual behavior
The resulting .d.ts file looks as follows:
export type Parser<T> = (input: string) => T;
export declare const parser: Parser<Uint8Array<ArrayBufferLike>>;

The type returned for parser includes the generic version of Uint8Array which basically mean that anything depending on this export must also be at least on version 5.7.
When importing this in a project using TypeScript 5.6 we get an error:

TS(2315): Type 'Uint8Array' is not generic.

🙂 Expected behavior
The type returned for parser should be Parser<Uint8Array> and not Parser<Uint8Array<ArrayBufferLink>>
export type Parser<T> = (input: string) => T;
export declare const parser: Parser<Uint8Array>;

Additional information about the issue
No response

Doesn't seem like a bug, per se, since I assume whenever TS adds or modifies types in its libraries, the emitted code might be incompatible with older versions of TS (like, I'm guessing when TS added Awaited, things that produced that stopped being compatible with prev versions, etc).  Maybe you could work around it like
export type MyUint8Array = Uint8Array;
function createUint8ArrayParser(): Parser<MyUint8Array> {
    return (_input: unknown): Uint8Array => {
        throw new Error('Not implemented')
    }
}

Playground link

Backcompat like this is not an invariant, but we should add a rule to downlevel-dts for this case


Alert rules: Unit of Derivative and Count should be different

In the textual function of the alert rules, the unit of Derivative and Count calculation should be different, since this does not represent a value in the unit of the measurement, but a mathematical calculation.
Count could be in unit: #
Derivative has a unit that is the derivative of the unit of the measurement.

Tbt on test


Axes saved in reverse order

When setting the keyword strict_axes=True in bdotRawtoFull, the makeAxes function returns an array in reverse order (pos to neg) if the step size value (e.g. "dx") is <0.  The axis is then saved this way, preventing, for example, DataView from correctly displaying the axis.
It's not clear if the axis needs to be ordered this way when extracting data (or displaying it), or if it can be re-ordered within makeAxes.  If the former, then the data may need to be correspondingly flipped to make everything consistent.

I don't think the order of the axes should matter: fuzzyGrid shouldnt' care, and strictGrid doesn't use the axes at all. Therefore it should just be a simple matter of fixing the way the axes are constructed in makeAxes.
I've implemented this in the commit below by sorting the axes before returning them in makeAxes. Let me know if this causes some other problem I'm not foreseeing.
fbb4ab34028b0558713e94866b5b9ccad62c4734
fbb4ab34028b0558713e94866b5b9ccad62c4734


CharacterBody3D (Capsule) jittering on flat Box without velocity applied (move_and_slide)

Godot version
4.0.beta2.official.f8745f2f7
System information
Linux 64bit, Vulkan API 1.2.0, NVIDIA GeForce GTX 1660 Ti (470.141.03)
Issue description
A CharacterBody3D on top of a simple StaticBody3D with a flat BoxShape3D can jitter at some positions using move_and_slide, even with zero velocity.
The bug can be reproduced using physics engine DEFAULT and GodotPhysics (is it the same?).
Related Godot 3.5 bugs could be #35780 and #61616, even though they work with a GridMap and not with a plain box for collisions.
Here is how it looks like:
https://user-images.githubusercontent.com/9679864/195974997-30d2f9e5-5f24-48b9-9917-f996152f621b.mp4
The y position is switching from 1.651 to 1.695 even without applying any velocity.
Steps to reproduce

Add a capsule shaped CharacterBody3D containing a CollisionShape3D with a CapsuleShape3D (Example: Radius 0.3, Height 1.4)
Add a floor using a StaticBody3D containing a CollisionShape3D with a BoxShape3D (Example above: Size 64, 1, 64, Transform y: 0.5)
Allow the CharacterBody3D to be moved around using a simple script overriding the velocity every _physics_process() and calling move_and_slide()
Have luck finding the correct spot where jittering happens (In the video above it was X: 1.799999, Z: 0, but this may differ on other systems)

Minimal reproduction project
BugTest.zip

Possibly fixed by https://github.com/godotengine/godot/pull/66951. Please try 4.0 beta 3 which includes that fix.

Thanks! Seems to be fixed in latest version. Next time I'll try the latest version first...


Validate SLES 15 SP5 on K3s 1.26

Jira Ticket: https://jira.suse.com/browse/SURE-6143
Snapshot of SLES 15 SP5 should now be available.

Just checked for the AMI to be present in the AWS Catalog and it's still not published.

Marking as complete


Releasing 0.4.10 to npm?

Hey, I just fought a long time with the _fields hash of groups on my exporter until I found out, that only 0.4.8 of the importer has been released and _fields came with 0.4.10.
Would be awesome if you could release 0.4.10 to npm so we can use it directly.

done, so sorry about that, been a tough year.


add thomas algorithm in javascript

I'll take a look at it tomorrow. I didn't have access to my PC for most of today.

@Butt4cak3 , I corrected it just in case, if we then decide that pure functions shouldn't be compulsory and the code is more readable without a pure function I'll change it again, no prob

Just to clarify: I'm still waiting for that discussion to resolve. I didn't forget your PR. I just don't want us to have to do the work twice.

We are coming up on one calendar year since the last comment. Is there anything left to be done?

I'll stop trying to fool myself and others. I'm just not active enough in this community anymore. Any PRs that are currently assigned to me should be handled by someone else. I don't even know what these things are about anymore.

This has been repurposed into #683