How to confirm change rename action in different file (not loaded in buffer)?

Hi thanks for making the plugin, I enjoy it a lot.
I ran into 1 issue however. Renaming methods of classes that are already used in other files AND are not currently loaded into a buffer seems to not work.

When I rename this to something else I get this floating text that asks me to confirm, any idea how to do that?

Hi, when the floating window appears, type y. You can check the changed file by running :copen.
DEMO(mp4):
https://user-images.githubusercontent.com/188642/143794966-d148be26-a376-49d0-9316-9ea62e0741b1.mp4

I cannot confirm this issue in my environment, so I will close it.
Also, the Language Server (intelephense) itself was updated today. coc-intelephense has already been updated to the latest version.
The Language Server may have been updated, which may have solved this problem. Try it in your environment.

Thanks for the vid, I think my env is broken.


Support optional request parameters for GETs [JIRA: RCS-152]

customer request
Add support for optional request parameters when performing a pre-signed GET operation. In particular ‘response-content-disposition’ and ‘response-content-type’.
driver: simplify development, S3 parity
reference: http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html

+1 for this one - for most browsers we can get away with setting the content-type on the stored object as application/octet-stream and a download is triggered. It seems the latest IE will also try to infer content type from the file extension regardless of the content type. As such, a PDF for example gets opened inside IE.

As described in #582, ceph's s3-tests should be reviewed/changed after this ticket.


Avoid boxing in CountersReader.forEach()

CountersReader.forEach() takes a java.util.function.BiConsumer as parameter, and pass it the counterId (int) and label (String). Using a BiConsumer causes the counter to be boxed.
This pull requests creates a new functional interterace IntObjConsumer in agrona/collections and uses it in CountersReader.forEach() to avoid the boxing. This new interface is very similar to ObjIntConsumer from the JDK but with parameters order reversed to be backward compatible with current uses of forEach(), but I may remove it and use the JDK's one if it seems overkill to add an almost duplicate interface.
I also fixed a little error in the doc of IntIntConsumer that was saying long instead of int

This would probably be useful for those wanting to avoid boxing. However the String cost would dwarf it.
BTW the "key" is the "id" in this case and key is a different field.

Thank you for your feedback.
I updated the ObjIntConsumer with a more generic naming for the parameters.


feat: lsp completion of trigger newline after brace

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y fix #752

2. What is the scope of this PR (e.g. component or file name):
lsp completion

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):
completion of trigger newline after brace

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2300

Relevant Lines:
2619

💛  - Coveralls


string.gsub not working

For example:

string.gsub("test","t","T") returns "test"
string.gsub("test","t","T",1) returns "st"

Can confirm still happens.
The code used to generate this is very basic:
LuaState state = LuaState.newState();
state.openLibs();
state.pushDartFunction(send);
state.setGlobal("Send");

// elsewhere

int send(LuaState ls) {
  final cmd = ls.checkString(1) ?? '';
  ls.pop(1);
  debugPrint("lua.Send $cmd");
  store.send(cmd);
  return 0;
}

Here is my output:
ActionSendTo.script:

local cmd = "this is a test!"
cmd = string.gsub(cmd, "is", "IS")
Send(cmd)

lua.Send this is a test!

The last line should be "this IS a test!"


Errors for setting 'listchars' or 'fillchars' are too vague

Problem:  Errors for setting 'listchars' or 'fillchars' are too vague.
Solution: Include the field name in error message.

Thank you. I was slightly confused, why you removed the doc note about {not available when compiled without the |+folding| feature}. But this change seems correct, even so I couldn't find out, when the 'fillchars'  option has been graduated.


Transfer some canonical datasets under an organization namespace

As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist).
On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventually delete it).
First, we should test it using a dummy dataset/organization.
TODO:

[x] Test with a dummy dataset

[x] Create dummy canonical dataset: https://huggingface.co/datasets/dummy_canonical_dataset
[x] Create dummy organization: https://huggingface.co/dummy-canonical-org
[x] Transfer dummy canonical dataset to dummy organization

[ ] Transfer datasets

[x] babi_qa => facebook
[x] cord19 => allenai
[x] emotion => dair-ai
[ ] gem => GEM
[x] hendrycks_test => cais/mmlu
[x] indonlu => indonlp
[ ] multilingual_librispeech => facebook

It already exists "facebook/multilingual_librispeech"

[ ] oscar => oscar-corpus
[x] peer_read => allenai
[x] qasper => allenai
[x] reddit => webis/tldr-17
[x] russian_super_glue => russiannlp
[x] rvl_cdip => aharley
[x] s2orc => allenai
[x] scicite => allenai
[x] scifact => allenai
[x] scitldr => allenai
[x] swiss_judgment_prediction => rcds
[x] the_pile => EleutherAI
[ ] wmt14, wmt15, wmt16, wmt17, wmt18, wmt19,... => wmt

[ ] Deprecate (and eventually remove) datasets that cannot be transferred because they already exist

[x] banking77 => PolyAI
[x] common_voice => mozilla-foundation
[x] german_legal_entity_recognition => elenanereiss

...

EDIT: the list above is continuously being updated

The transfer of the dummy dataset to the dummy org works as expected:
In [1]: from datasets import load_dataset; ds = load_dataset("dummy_canonical_dataset", download_mode="force_redownload"); ds
Downloading builder script: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.98k/2.98k [00:00<00:00, 2.01MB/s]
Downloading and preparing dataset dummy_canonical_dataset/default (download: 411 bytes, generated: 385 bytes, post-processed: Unknown size, total: 796 bytes) to .../.cache/huggingface/datasets/dummy_canonical_dataset/default/1.0.0/100870c358637e269fee140585e61e1472d5075a9bf6f866719934c725e55fb4...
Downloading data: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 411/411 [00:00<00:00, 293kB/s]
Dataset dummy_canonical_dataset downloaded and prepared to .../.cache/huggingface/datasets/dummy_canonical_dataset/default/1.0.0/100870c358637e269fee140585e61e1472d5075a9bf6f866719934c725e55fb4. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 304.16it/s]
Out[1]:
DatasetDict({
    train: Dataset({
        features: ['langs', 'ner_tags', 'tokens'],
        num_rows: 3
    })
})

In [2]: from datasets import load_dataset; ds = load_dataset("dummy-canonical-org/dummy_canonical_dataset"); ds
Downloading builder script: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.98k/2.98k [00:00<00:00, 1.57MB/s]
Downloading and preparing dataset dummy_canonical_dataset/default to .../.cache/huggingface/datasets/dummy-canonical-org___dummy_canonical_dataset/default/1.0.0/100870c358637e269fee140585e61e1472d5075a9bf6f866719934c725e55fb4...
Dataset dummy_canonical_dataset downloaded and prepared to .../.cache/huggingface/datasets/dummy-canonical-org___dummy_canonical_dataset/default/1.0.0/100870c358637e269fee140585e61e1472d5075a9bf6f866719934c725e55fb4. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 362.48it/s]
Out[2]:
DatasetDict({
    train: Dataset({
        features: ['langs', 'ner_tags', 'tokens'],
        num_rows: 3
    })
})

Cool ! 🚀

Maybe we should be a bit more proactive with these transfers. There are only ≈70 canonical models, so reaching that number with datasets would be great, too. It's not easy considering the current number of ≈750 canonical datasets, but doable.
For instance, it shouldn't be too hard to transfer these datasets (partial list; all of them have more than > 1k downloads):

 Datasets to transfer
quickdraw -> google
openai_humaneval -> openai
c4 -> allenai/c4 (the canonical version reads data from the org version)
mbpp -> google (ask jaaustin (author) where to transfer the dataset)
competition_math -> hendrycks (author)
gsm8k -> openai
ai2_arc -> allenai
imdb -> stanfordai
greek_legal_code -> chrispap (author)
spider -> Yale-LILY
squad and squad_v2 -> rajpurkarlab (or rajpurkar, a member of the org and one of the authors)
cppe-5 -> rishitdagli
news_commentary -> Helsinki-NLP
jfleg -> keisks (author)
pubmed_qa -> qiaojin (author)
medmcqa -> infinitylogesh (author)
cifar10 and cifar100 -> UniversityofToronto
cc100 -> gwenzek (author)
asset -> facebook
blbooks -> BritishLibraryLabs
capes -> FLSRDS (maybe the author?)
cc_news -> fhamborg (author)
clue -> CLUE benchmark
coqa -> stanfordnlp
lambada -> germank (author)
librispeech_asr -> openslr
drop -> allenai
duorc -> salesforce (ask amritasaha87 (author) where to transfer)
glue -> nyu-mll  ?
go_emotions -> google
commonsense_qa -> tau
dbpedia_14 -> JensLehmann (author?)
discofuse -> google
mc4 -> allenai/c4
openbookqa -> allenai
ropes -> allene
trivia_qa -> mandarjoshi (author)
wikiann -> afshinrahimi (author)
xtreme -> google
xscr -> INK-USC
yelp_review_full -> Yelp
truthful_qa -> jacobhilton22 (author)
bigbench -> google
xnli -> facebook
sciq -> allenai
sst2 -> stanfordnlp
blimp -> alexwarstadt (author)
tweet_eval -> cardiffnlp
beans -> AI-Lab-Makerere
lex_glue -> coastalcph
americas_nli -> abteen (author)
opus_euconst -> tiedeman (author)
medical_questions_pairs -> curaihealth
web_questions -> joberant (author)
anli -> facebook
race -> CarnegieMellonCS
klue -> klue
wino_bias -> uclanlp
wiki_qa -> microsoft
xcopa -> cambridgeltl
indic_glue -> ai4bharat
boolq -> google
adversarial_qa -> mbartolo (author)
nq_open -> google
snli -> stanfordnlp
stsb_multi_mt -> PhilipMay (author)
multi_nli -> sleepinyourhat (author)
paws -> google
paws-x -> google
ms_marco - microsoft
xquad -> deepmind
narrativeqa -> deepmind
kilt_tasks -> facebook
hate_speech_offensive -> tdavidson (author)
wiki40b -> google
covost2 -> facebook
common_gen -> INKLAB
multi_eurlex -> kiddothe2b (author)
exams -> mhardalov (author)
tiny_shakespeare -> karpathy (author)
blbooksgenre -> BritishLibraryLabs  ?
food101 -> ethz  ?
scitail -> allenai
billsum -> FiscalNote
imppres -> facebook
quartz -> allenai
qasc -> allenai
quail -> textmachinelab
wiki_lingua -> esdurmus
cos_e -> salesforce  ?
civil_comments -> google  ? (create a “jigsaw” org)
xquad_r -> google
wikitext-> metamind (or salesforce)

// deprecate c4 and mc4 in favor of allenai/c4

Also, a space that allows users to claim the existing canonical datasets (for themselves or their organizations) could be nice.
WDYT?

Next week I can take care of some of them :) In most cases we just need to send an email to ask them if they're ok with it.
Let's coordinate on slack ?

Yup, sounds good to me!

I can also continuing working on this if we agree this has become a priority now.

As a previous step before transferring the datasets, we decided we should convert them to Parquet, so that the viewer does not stop working (the viewer does not support datasets with scripts).
Datasets converted to Parquet:

[x] adversarial_qa
[x] ai2_arc
[x] americas_nli
[x] anli
[x] asset
[x] beans
[ ] bigbench
[x] billsum
[ ] blbooks: already transferred to: TheBritishLibrary/blbooks
[ ] blbooksgenre: already transferred to: TheBritishLibrary/blbooksgenre
[x] blimp
[x] boolq
[ ] c4
[ ] capes
[ ] cc100
[x] cc_news
[x] cifar10
[x] cifar100
[x] civil_comments
[x] clue
[x] common_gen
[x] commonsense_qa
[ ] competition_math: already transferred to: hendrycks/competition_math
[x] coqa
[x] cos_e
[ ] covost2: it requires manual download
[x] cppe-5
[x] dbpedia_14
[x] discofuse
[x] drop
[x] duorc
[x] exams
[x] food101
[x] glue
[x] go_emotions
[x] greek_legal_code
[x] gsm8k
[x] hate_speech_offensive
[x] imdb
[ ] imppres
[x] indic_glue
[x] jfleg
[x] kilt_tasks
[x] klue
[x] lambada
[x] lex_glue
[ ] librispeech_asr
[x] mbpp
[ ] mc4
[x] medical_questions_pairs
[x] medmcqa
[x] ms_marco
[ ] multi_eurlex
[x] multi_nli
[ ] narrativeqa
[ ] news_commentary
[x] nq_open
[x] openai_humaneval
[x] openbookqa
[ ] opus_euconst
[x] paws
[x] paws-x
[x] pubmed_qa
[x] qasc
[x] quail
[x] quartz
[ ] quickdraw
[x] race
[x] ropes
[x] sciq
[x] scitail
[ ] snli
[x] spider
[x] squad
[x] squad_v2
[x] sst2
[x] stsb_multi_mt
[x] tiny_shakespeare
[x] trivia_qa
[x] truthful_qa
[x] tweet_eval
[x] web_questions
[ ] wiki40b
[x] wiki_lingua
[x] wiki_qa
[ ] wikiann
[x] wikitext
[x] wino_bias
[x] xcopa
[x] xcsr
[x] xnli
[x] xquad
[x] xquad_r
[ ] xtreme
[x] yelp_review_full

For c4 and mc4 I was thinking of adding the corresponding configs to allenai/c4 and redirect c4 and mc4 to allenai/c4. I'll open a PR on allenai/c4 if it's good for you

@davanstrien and @lhoestq, I have shared with you this spreadsheet: https://docs.google.com/spreadsheets/d/1GvNTd1UxmtTvEFOK-Eq6E3Str4FUWQuWZsEN0WVFirs/edit?usp=sharing
This way we can take datasets by batches to contact the authors and transfer to the organizations.

We have already transferred all canonical datasets under organization/user namespaces.


Added @Output 'change' to trigger change event in Dropdown component.

I added an @Output attribute to the 'Dropdown' component to allow the developer to handle the 'change' event when selecting an item in the dropdown.
In this way the component can be called with:
<lsu-dropdown [(ngModel)]="selectedItem" [data]="data" (change)="onChange($event)"></lsu-dropdown>
And the event will be handled with a normal function:
onChange(value) { console.log('New value: ' + value); }
Needed this in a project but I thought other people can benefit from it.
Cheers,
Stefano

Thanks


Server crashed

Here's the logs https://mclo.gs/YdVWn47

I'm not sure what makes you believe this is an issue related to my mod, according to the log you got an unhandled OutOfMemoryError in the server right before it crashed, seems to me like your server just genuinely ran out of RAM. If you've got some other crash log that shows a crash related to my mod, I'd be happy to see it.

Closing this, feel free to reopen if you have other logs that indicate this is related to Customizable Elytra.


Della's Day

Value: $0.00Closes: Thursday, March 15, 2018Location: Victoria Some in-person work requiredOpportunity DescriptionyyyyAcceptance CriteriaHow to ApplyGo to the Opportunity Page, click the Apply button above and submit your proposal by 16:00 PST on Thursday, March 15, 2018.We plan to assign this opportunity by Thursday, March 15, 2018 with work to start on Thursday, March 15, 2018.Proposal Evaluation Criteria

This is a test.


property type: Added doc

Sorry I did not see this before but I have added test, would you consider that to be there for merging?

I thought @windelbouwman preferred that there would be no tests as per this comment?

Okay I have not seen that commit and now I have closed mine

@ZapAnton No tests are needed in my opinion for the doc strings. Also, please feel free to combine several doc strings in a single pull request.


Workaround Gradle jvm-test-suite binary breaking change

Use reflection to avoid JVM level binary breaking change introduced in Gradle 8.6. Fixes gh-2098 and gh-2099
This is a forward merge of gh-2102.

@OlgaMaciaszek,do you think that you'd be able to review this one?
I think the CI job just needs to be refrigerated again to clear the failure as it looks like Maven was flaky on the CI run.

@shanman190, I've pushed some changes to main to ensure the project builds correctly: https://github.com/spring-cloud/spring-cloud-contract/actions/runs/8358117918/job/22878713841. You might need to merge them. Please make sure the build passes.

🎉 Build succeeded 🎉


Custom templates for try.gitea.io

People might not understand that try. is running latest master.
We should have a custom home-template to indicate that better.
Also custom 500s stating If you see this, please file an issue at {{ Link }}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Will try to do this during the weekend.

It's also a great way to make sure custom templates keep working (and to determine how much of an hassle it is to change template structure :)

Next weekend* 😅

I've added a custom header saying that things might be removed at any point. I'll see how hard it is to put it in ansible


Updating View::url function to be more robust

Updating View::url function with 3 functional changes:

Now works for blocks that are in the global scrapbook (by using Page::getCurrentPage() to determine current page instead of $this->c)
Now works even if the given url/path has a leading slash
Now excludes the home page (because it will mess up nav menu logic, and isn't needed because every page is always under the home page so no need to ever call this function for it).

this is only the section method, not url, I think you mean't to commit more/something else

Yes, this is intentional that I've only changed the "section" method -- I have no issues with View::url :)

Oh soot, I think I'm just going to close this and open a new one to avoid confusion. Thanks for pointing that out Mike.


Qiyun restore

Something went wrong with merging Qiyun's PR, thus I am restoring his files with this PR.

Looks good. Thank you! If this doesn't work I can upload my local stuff.

Changes Unknown when pulling 4ff1907ac488c57517f172e46b4c6542d5c00726 on sjanssen2:qiyun_restore into ** on biocore:master**.

Coverage increased (+29.8%) to 85.714% when pulling<PHONE_NUMBER>7e8f0ecaca3720c009149059fe3001 on sjanssen2:qiyun_restore into bac2b615e4fe9bb100232dc5fba93587dfa0e552 on biocore:master.


Save buffer on disk

Feature request to allow the buffer to be stored on disk instead of in memory. The proposed solution would be to use a sqlite file.

I'm thinking about using h5py to store and edit the data


Are there any plans to include Envoy contrib versions in func-e?

Description
I am curious if func-e will include Envoy contrib versions in the future. Because when I checked https://archive.tetratelabs.io/envoy/envoy-versions.json, I didn't see any contrib versions listed.

dupe of https://github.com/tetratelabs/archive-envoy/issues/37 where the last comment was that it would be similar to how debug images are handled, but someone needs to do the work


Feature request: inline image as base64 in report

It is useful to make image inline if I runing testing in a CI. Then I just download the html file from artifacts without downloading all other files one by one.

I am buried with work, if anyone has capacity to pick this up, it's a great first issue!


fix: list orders nt params

Codecov Report

Merging #41 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #41   +/-   ##
=======================================
  Coverage   99.71%   99.71%
=======================================
  Files          12       12
  Lines         356      356
  Branches       36       36
=======================================
  Hits          355      355
  Partials        1        1

Impacted Files
Coverage Δ

src/sections/orders.ts
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


Update traceback

Run tests sequentially
0:00:00 load avg: 3.35 [1/1] test_traceback
test test_traceback crashed -- Traceback (most recent call last):
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/libregrtest/runtest.py", line 256, in _runtest_inner
    refleak = _runtest_inner2(ns, test_name)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/libregrtest/runtest.py", line 223, in _runtest_inner2
    cleanup_test_droppings(test_name, ns.verbose)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/libregrtest/runtest.py", line 221, in _runtest_inner2
    refleak = False
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/libregrtest/runtest.py", line 220, in _runtest_inner2
    test_runner()
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/functools.py", line 299, in __call__
    return self.func(*self.args, *args, **keywords)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/libregrtest/runtest.py", line 195, in _test_module
    support.run_unittest(tests)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/support/__init__.py", line 1152, in run_unittest
    _run_suite(suite)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/support/__init__.py", line 1027, in _run_suite
    result = runner.run(suite)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/support/testresult.py", line 140, in run
    test(self.result)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/suite.py", line 122, in run
    test(result)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/suite.py", line 122, in run
    test(result)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/suite.py", line 122, in run
    test(result)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/case.py", line 666, in __call__
    return self.run(*args, **kwds)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/case.py", line 650, in run
    self._outcome = None
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/case.py", line 635, in run
    return result
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/case.py", line 630, in run
    self._addExpectedFailure(result, outcome.expectedFailure)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/unittest/case.py", line 566, in _addExpectedFailure
    addExpectedFailure(self, exc_info)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/support/testresult.py", line 106, in addExpectedFailure
    self._add_result(test, True, output=self.__makeErrorDict(*err))
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/test/support/testresult.py", line 92, in __makeErrorDict
    msg = traceback.format_exception(err_type, err_value, None)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/traceback.py", line 135, in format_exception
    te = TracebackException(type(value), value, tb, limit=limit, compact=True)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/traceback.py", line 559, in __init__
    _seen=_seen)
  File "/Users/user/Projects/RustPython/vm/pylib-crate/Lib/traceback.py", line 514, in __init__
    end_lno = exc_value.end_lineno
AttributeError: 'IndentationError' object has no attribute 'end_lineno'

dependency of #3862

I think we should wait for CI to finish before merging.

On a tangential note, do you want to add Bors to this repository?

huh... the result of running cargo run Lib/test/test_traceback.py and cargo run -- -m test test_traceback are different.

huh... the result of running cargo run Lib/test/test_traceback.py and cargo run -- -m test test_traceback are different.

Hence why I made #3807.

I though both of running should pass. Does former one also fail in CPython?


Monitoring Windows on EKS

Is your feature request related to a problem? Please describe.
Monitoring Windows on EKS
Describe the solution you'd like
Monitoring Windows on EKS
Describe alternatives you've considered
Monitoring Windows on EKS
Additional context
Monitoring Windows on EKS

Sample Comment.

@nrajb Will pick this


[Fix #1346] Support event handler to call browser-side javascript

All Submissions:

[x] Have you followed the guidelines stated in CONTRIBUTING.md file?
[x] Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

New Feature Submission:

[x] Does your submission pass the tests?
[x] Have you linted your code locally prior to submission?

Changes To Core Features:

[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you successfully ran tests with your changes locally?

After these steps, you're ready to open a pull request.
a. Give a descriptive title to your PR.

Support to call browser-side javascript function from an event handler.
b. Describe your changes.
Just add a special event
c. Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
closes #1346
The following is the running example code that can match the latest source code of this Pull Request

https://github.com/milochen0418/reflex-call-browser-js

import reflex as rx

javascript_functions = """<script>
function test_func_1(jobj) {
  console.log('My name is ' + jobj.myname + ' and my action is ' + jobj.myaction);
}
function test_func_2(jobj) {
  console.log('My course is ' + jobj.mycourse + ' and my score is ' + jobj.myscore);
}
</script>"""

def scripts(js=javascript_functions):
    return rx.box(rx.html(js))

class State(rx.State):
    def btn_test_func_1(self):
        dobj = {"__func__":"test_func_1", "myname":"Milo", "myaction":"Jump"}
        yield rx.browsercall(dobj)
    def btn_test_func_2(self):
        dobj = {"__func__":"test_func_2", "mycourse":"Math", "myscore":99}
        yield rx.browsercall(dobj)
    def btn_test_func_3(self):
        dobj = {"__func__":"test_func_3", "mycourse":"Math", "myscore":"99"}
        yield rx.browsercall(dobj)

def index() -> rx.Component:
    return rx.fragment(
        rx.center(
            rx.vstack(
                rx.heading("Call Browser-Side JavaScript"),
                rx.button("browser call test_func_1", on_click=State.btn_test_func_1),
                rx.button("browser call test_func_2", on_click=State.btn_test_func_2),
                rx.button("browser call test_func_3", on_click=State.btn_test_func_3),
            ),
        ),
    )

app = rx.App(state=State)
app.add_page(index, script_tags = [scripts()] )
app.compile()

This part should move somewhere as the default javascript code.
So that the user doesn't need to know where it is and it just dispatches to
the javascript function that we set in script_tags.
function dispatch(jobj) {
  var func = jobj.__func__;
  eval(func + '(jobj)');
}

browsercall = function(msg) {
    try {
        var jobj = JSON.parse(msg);
        dispatch(jobj);
    } catch(e) {
        console.log(e.name);
        console.log(e.message);
    }
};

When webapp run in the network, the client-side javascript cannot run in order.
I think I what can improve are
(1) add a event queue for client-side and run client-side javascript in order by the event queue.
(2) Support to run pure javascript code.

@milochen0418 do we still need this patch with the addition of rx.script and rx.client_side?

It finally hit me tonight that rx.client_side as currently implemented is not sufficient for this use case as it cannot be yield/return from a backend EventHandler. I think we can truly support the use case in this PR with a few tweaks.


FMWK-411-ignore-record-error

added RestoreConfig.IgnoreRecordError bool flag
added RestoreStats.RecordsIgnored atomic.Uint64 counter

Codecov Report
Attention: Patch coverage is 56.00000% with 22 lines in your changes missing coverage. Please review.

Project coverage is 82.64%. Comparing base (45f53a9) to head (1f3ebf4).

Files with missing lines
Patch %
Lines

io/aerospike/restore_writer.go
69.69%
10 Missing :warning:

io/aerospike/record_batch_writer.go
33.33%
4 Missing :warning:

io/aerospike/record_writer.go
33.33%
4 Missing :warning:

models/restore_status.go
0.00%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
- Coverage   83.01%   82.64%   -0.38%
==========================================
  Files          63       63
  Lines        3480     3514      +34
==========================================
+ Hits         2889     2904      +15
- Misses        372      393      +21
+ Partials      219      217       -2

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


Title: Add a whack-a -mole game

Tech Stacks Used:
HTML
CSS
Javascript

Can you tell if you can see my pull request for this issue?


Stack trace on unknown model type

Describe the bug
When Vehicle Model is unknown, the Audi Entity silently fails with a Stack Trace
This started for me recently. It did not happen when I initially set up this integration, about 2 months ago.
To Reproduce
Steps to reproduce the behavior:
Have a weird car with no model?
Expected behavior
All sesnors are correctly detected and loaded. Only the cars position sensor is loaded.
Screenshots
None.
Logfile
AttributeError: 'NoneType' object has no attribute 'replace'
2024-04-28 19:56:47.275 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity None for domain sensor with platform audiconnect
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 748, in _async_add_entity
    if self.config_entry and (device_info := entity.device_info):
                                             ^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/audiconnect/audi_entity.py", line 77, in device_info
    model_only = self._instrument.vehicle_model.replace("Audi ", "")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Your Vehicle Details
Model: etron
Year: 2019
Type (ICE/PHEV/BEV): BEV
The code below resolves the issue and allows the integation to load...
custom_components/audiconnect/audi_entity.py

    @property
    def device_info(self):
        if self._instrument.vehicle_model is None:
          model_only = "eTron"
        else:
          model_only = self._instrument.vehicle_model.replace("Audi ", "")

Thanks for reporting @chrisjschultz !
See #417 . Let me know if you have any concerns.


Infinite Loops and Hangs on CanvasKit Web

Steps to reproduce
Occasionally when running into out of memory problems you will get stuck in an infinite loop in the WASM code.
The problem is that CanvasKit is being compiled with aborting malloc enabled. However, CanvasKit uses Mutexes like this:
https://github.com/google/skia/blob/main/modules/skparagraph/src/ParagraphCache.cpp
This mutex will lock until its destructor is called. The problem is that if abort() is called, stack unwinding won't happen and the mutex won't call its destructor and CanvasKit will be left in an invalid state where the next call will lock the process. Normally, abort() would terminate the process, but it doesn't in WASM.
The solution is to turn off aborting malloc, and turn on wasm exceptions, so that destructors are properly called, exceptions can be caught, and stack unwinding can happen.
CanvasKit needs to be compiled with -fwasm-exceptions AND -sABORTING_MALLOC=0 in flutter web engine to fix these problems.
Expected results
Don't go into infinite loops and leave mutexes locked.
Actual results
App will hang if entering code locked by a mutex in canvaskit and then an exception occurs (OOM is easiest way to simulate).
Code sample
See: https://github.com/flutter/flutter/issues/145134
It can be hard to repro because of other issues that cause flutter to stop working when unhandled exceptions happen in places that aren't guarded, but in a local build I've fixed a lot of those problems, and this hang be reproduced 100% of the time.
Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

However, CanvasKit uses Mutexes like this:

Did you want to link to a specific line here @jezell?
/cc @yjbanov @eyebrowsoffire

@mraleph the flags are defined here for canvaskit in the flutter build, and you can see it disables exception catching:
https://github.com/flutter/engine/blob/main/skia/modules/canvaskit/BUILD.gn#L162
Though I think the -fwasm-exceptions flag needs to be turned on for all dependencies at both compile and link time to work properly. A specific example in paragraphcache.cpp is:
https://github.com/google/skia/blob/af65631d3afc06d59ddf7dac158b28da322c97d0/modules/skparagraph/src/ParagraphCache.cpp#L288
void ParagraphCache::reset() {
    SkAutoMutexExclusive lock(fParagraphMutex);
#ifdef PARAGRAPH_CACHE_STATS
    fTotalRequests = 0;
    fCacheMisses = 0;
    fHashMisses = 0;
#endif
    fLRUCacheMap.reset();
    fLastCachedValue = nullptr;
}

A little sample I put together to confirm this behavior between different flags:
#include <malloc.h>
#include <emscripten.h>

#include <iostream>
#include <stdexcept>
#include <vector>

using namespace std;

int times = 0;

class Test {
    int a[10000];

    public:
Test() {
}
~Test() {
    }
};

class Mutex {
    public:
Mutex() {
}
~Mutex() {
        times++;
    }
};
extern "C" EMSCRIPTEN_KEEPALIVE size_t catchtest() {

Mutex m = Mutex();
try {

      for(int i = 0; i < 1*1024*1024*1024;i++) {
       Test* t=  new Test();
      }
    } catch(...) {
    }
      return times;
}

extern "C" EMSCRIPTEN_KEEPALIVE size_t failtest() {

Mutex m = Mutex();
      for(int i = 0; i < 1*1024*1024*1024;i++) {
        Test *t = new Test();
      }
     return times;
}

extern "C" EMSCRIPTEN_KEEPALIVE size_t count() {
    return times;
}

This will cause an OOM exception inside catchtest and failtest. The counter will increment in the destructor, so if you call Module._catchtest() and Module._failtest() in the browser console you can see the difference between the two:
em++ test.cpp -fwasm-exceptions -gsource-map -sWASM -sABORTING_MALLOC=0
em++ test.cpp -fwasm-exceptions -gsource-map -sWASM -sABORTING_MALLOC=1
With aborting malloc turned on, the code doesn't increment the counter or catch the exception, and you can't catch it outside either try { Module._failtest(); } catch { } will not stop the behavior. When you turn off aborting malloc, the sample will behave correctly.

Thanks for the deep dive! I thought Google C++ style forbid use of exceptions, but I'm not sure what style we're meant to use for any sort of "try-finally" logic. I guess we should change the flags.

Turning aborting malloc off and turning exception handling on for OOM situations has an actual performance cost, and I don't think we should enable that for release builds. Perhaps it makes more sense to do so for a debug build of Canvaskit/Skwasm, and somehow make that debug build available to users. In general, I don't think we should consider OOM a recoverable state, although it might make sense to make it more visible to developers as an error, at least while in debug mode.

Yeah, if it has performance cost then simply enabling exceptions is not worth it as this is already not recoverable. We should track down the memory leak and fix it.

I'm going to close this issue since it's not actionable for the purposes of fixing the memory leak. Let's open a new issue that has a repro of the leak.

@eyebrowsoffire the performance cost is fairly minimal, but I get that some people want the smallest possible and fastest bundle and aren't encountering this issue. I agree with the general concept of officially supporting different canvaskit builds depending on the release configuration. For example, with some memory tracing turned on in the debug build we saw some leaks within Flutter in the console, and it would be nice maybe if flutter automatically turned on some things in release mode. It would also be nice if this was just a conditional in the gn file so we could compile our own build with this turned on.
That said, there's a larger question as to why Skia is even using a mutex here. The hang could also be fixed by not using a spinlock and making the mutex do nothing in the browser, as there is only a single thread to begin with and the hang would be entirely avoidable if the mutex did nothing instead of doing something.
The larger problem right now is it's impossible for to prevent OOM scenarios in the browser because you can't see whether loading another image is going to cause a problem based off of how much memory you are using. #145646 would help avoid these problems.
At least so far, none of the issues we've uncovered with the renderer that are caused by OOM scenarios and prevent it from working are things that shouldn't be fixed. They are almost all just places where there is a lack of defensive coding and a catch or a finally block is missing in case an error is thrown somewhere. It's easy to cause errors to happen in random places with OOM, but it's not like an exception couldn't be thrown in the same paths without OOM.

@eyebrowsoffire @yjbanov raising the issue with the Skia team to see what they think.
https://issues.skia.org/issues/332939934

@eyebrowsoffire also note that this isn't really a true OOM scenario since the browser has plenty of memory available. The problem is more that CanvasKit can only use 2GB of WASM heap, and it's really easy to hit that limit in the browser if you are building anything that processes images. Imagine an app like Figma or Photoshop built on top of Flutter where the resources used by the app itself aren't static. We don't like our app randomly crashing and would like to stop it. That said, randomly crashing would still be better than randomly hanging. At the moment, CanvasKit flutter doesn't choose to crash in this case, it chooses to lock the browser process in a hang and force the user to terminate their browser process to fix it.

@yjbanov @eyebrowsoffire  would also note that dart itself when compiled to WASM uses WebAssembly exceptions, and the cost of the exception is really in the throwing of the exception, which in this case only happens from the new operator. The very idea that CanvasKit can't flip a switch to toggle the compile to generate a WASM exception from the oom on new instead of an abort call, for performance reasons, is a bit silly.

Reopening this one. Thanks @mraleph for flying all the way across the ocean to explain this one to me. I got confused after the discussion veered into OOM and memory leak territory. The core issue seems to be that the mutex implementation in Emscripten is not right for single-threaded code. In the absence of a second thread, waiting on a locked non-reentrant mutex is guaranteed to hang the program, since nothing but the current waiting thread can unlock it.
-fwasm-exceptions and -sABORTING_MALLOC=0 is a solution, but I'm not yet fully convinced that it's the solution. Another solution could be for Emscripten to employ a different strategy for mutexes when code is known to be executing in a single-threaded context. For example, it could throw a JS exception that can be caught, allow the thread to reenter the mutex, etc. I think we should get the Emscripten team's opinion before attempting Flutter-side solutions.

Emscripten actually does stub out mutexes so that they are no-ops in single-threaded mode (which CanvasKit uses) but Skia's SkAutoMutexExclusive actually implements its own mutex on top of semaphores, and I'm not sure why. See https://github.com/google/skia/blob/main/include/private/base/SkMutex.h and https://github.com/google/skia/blob/main/include/private/base/SkSemaphore.h

What I should say is that whatever the lowest level primitive is in Emscripten that leads to the infinite loop situation, that thing might need to be revised. If there's a solution at that level, then we won't need to chase all individual usages of mutexes, semaphores, <atomic>s, pthreads, etc across all C++ codebases that we compile for WebAssembly. The solution will apply evenly everywhere. But if there's no clean solution at Emscripten level, then yeah, maybe the next place to look is Skia.


gh #205 dsHost L3 Python Test Cases

hi @hgfell683 ,
Please check https://github.com/rdkcentral/rdk-halif-test-device_settings/pull/206#discussion_r1825698915,
everything else looks good.


Adds empty Apollo gradle task and compiler

More boilerplate code 😄
Having a separate compiler project allows us to potentially share the implementation with other project types (not just Android, but also pure Java, server apps, etc).

ping!

@felipecsl: This looks good to me, but I don't really know anything about Gradle builds, so I don't feel I have much to add here. Maybe @jpshelley can chime in?

To be honest don't know that much about it either at this point. I'd say merge and if we need to edit it later we can do so.

Hi folks, I'm interested in working on this OSS, which is the prerequisite?


Using app_spec's requires CocoaPods 1.7.x

Using the CocoaPods app_spec feature requires CocoaPods 1.7.x.
We probably shouldn't change the CocoaPods version requirement until at least a major release update.
Perhaps, we need to parameterize the podspec for development versus release?
See the cron build failure at https://travis-ci.org/firebase/firebase-ios-sdk/jobs/583489654

What's a "a major release update"?

Firebase 7.0.0

Oh ok, a Firebase major release update, not a Cocoapods one. Got it. We'll have to figure out a mechanism to help define development environments. For now, I can comment out the app_spec from GDT.


update version number in package.json

Fixes #2144

@billti reverted my change to package.json, and updated the one in the program instead. sorry about the hassle.


Deploy Angular Universal SSR + .NET Core on Azure Devops

I have an app on azure devops with .net core and angular. Now, I want to implement Angular Universal SSR.
Then, I did on my project:

ng add @nguniversal/express-engine --clientProject angular.io-example

My package.json is:
"scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "npm run build:client-and-server-bundles && npm run compile:server",
    "build:ssr": "npm run build:client-and-server-bundles && npm run compile:server",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "bundle-report": "ng build --extract-css --stats-json && webpack-bundle-analyzer dist/stats.json",
    "compile:server": "webpack --config webpack.server.config.js --progress --colors",
    "serve:ssr": "node dist/server",
    "build:client-and-server-bundles": "ng build --extract-css --prod && ng run Catevering:server:production"
  }

Then, I can see on kudu the next structure files:
server
browser
server.js
Finally, I change the next line on my startup.cs file:
services.AddSpaStaticFiles(configuration =>
{
    configuration.RootPath = "ClientApp/dist";
});

By:
services.AddSpaStaticFiles(configuration =>
{
     configuration.RootPath = "ClientApp/dist/browser";
});

This way works on and my app is working. But, my app is not working as SSR. In my localhost my app works as SSR with the next command:

node server.js

For that, I tried to change my code like this:
services.AddSpaStaticFiles(configuration =>
{
     configuration.RootPath = "ClientApp/dist/server.js";
});

But this is not working. However, my backend web api is working.
Someone can help me?
I need to run my app as SSR on azure devops

Hi. It looks like this is a question about how to use ASP.NET Core. While we do our best to look through all the issues filed here, to get a faster response we suggest posting your questions to StackOverflow using the asp.net-core-mvc tag.


Missing talismans bug

Describe the bug
If you click on a talisman it is supposed to show the lore. But if you click on a talisman in the missing section it grays the background but there's now lore. A proposed change to this is either don't let you click on them or have them show the talismans base lore.
Profile/Location
Happens on any profile without every talisman so ill just link mine https://sky.shiiyu.moe/stats/pottedplant530/Papaya
Additional Info
N/A
Expected behavior.
Listed at beginning
Screenshots

Desktop (please complete the following information):

OS: windows 10 [e.g. iOS]
Browser chrome [e.g. chrome, safari]
Version IDK  [e.g. 22]

This is the expected behavior, since we only give it info about name, texture and rarity. So this is not a bug, but is something to be improved into the future.

Alright thanks


Try new build

[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)

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

@conda-forge-admin, please rerender

Closing because this is old now.


Chrome inside Crouton inside ChromeOS: sad tabs

Not sure if this is a bug, but I don't know where else to ask. Also, trying to search for [run chrome in crouton] is full of things unrelated to my specific problem.
I can get Ubuntu Xenial up inside Crouton. Great.
I want to run google-chrome inside Xenial. Why don't I just use the 'host' ChromeOS browser? One reason is that I'm used to my window manager providing a keyboard shortcut for creating new browser windows. Another reason is that I use multiple profiles, and it's not obvious what the ChromeOS model is for multiple windows for multiple profiles on the one screen at the one time.
Anyway, most of the time it works, but sometimes a race condition fails and tabs keep dying with a "sad tab" page. I don't have a reliable repro, other than to use my computer for a day.
Is there some sort of extra logging I can enable somehow that would help debug this?
Is what I'm doing supposed to work? Or is there always going to be some sort of fundamental weirdness where the presence of the host Chrome processes (running ChromeOS) is confusing the guest Chrome processes (running inside Xenial)? For example, chroot isolates the file system that the guest Chrome processes sees, but it doesn't isolate the process tree, and running "killall chrome" from inside my Xenial instance leads to a Bad Time.

This should work, looks like a Chrome issue. You might want to file a feedback in the nested Chrome that crashes (https://support.google.com/chrome/answer/95315?hl=en).


Add calc-size func

Add new CSS func support:
https://raw.githubusercontent.com/mdn/browser-compat-data/master/css/types/calc-size.json

Thank you, released in https://github.com/niksy/css-functions-list/releases/tag/v3.2.3


Log caller function name and line number

There does not seem to be a way to log the caller's method name and line number. I know that this has already been requested with #200, but that issue was locked with the reason that such a function would be very slow. Given that a typical application would not excessively log thousands of log statements per second, it does not make a noticeably difference.
As you probably know, JavaScript provides the stack trace in the Error.stack property on construction of a new Error object. However, this is an unstructured string and needs to be parsed.
V8 on the other hand has a feature allowing to retrieve the stack trace in its original structured form (before stringifying). This is described here: https://github.com/v8/v8/wiki/Stack-Trace-API
My current implementation on top of Winston looks like this. (It may not be a good implementation, I'm very new to JavaScript and Node/V8. :) )
// ES2015
const path = require('path');
const winston = require('winston');
function CustomError() {
  // Use V8's feature to get a structured stack trace
  const oldStackTrace = Error.prepareStackTrace;
  const oldLimit = Error.stackTraceLimit;
  try {
    Error.stackTraceLimit = 3; // <- we only need the top 3
    Error.prepareStackTrace = (err, structuredStackTrace) => structuredStackTrace;
    Error.captureStackTrace(this, CustomError);
    this.stack; // <- invoke the getter for 'stack'
  } finally {
    Error.stackTraceLimit = oldLimit;
    Error.prepareStackTrace = oldStackTrace;
  }
}
function getAndFormatStackTraceElement() {
  const stack = new CustomError().stack;
  const CALLER_INDEX = 2; // <- position in stacktrace to find deepest caller
  const element = stack[CALLER_INDEX];
  const fileName = path.basename(element.getFileName());
  return element.getFunctionName() + "(" + fileName + ":" + element.getLineNumber() + ")";
}
module.exports = {
  info(msg, ...vars) {
    winston.info(getAndFormatStackTraceElement() + ': ' + msg, ...vars);
  }
}

Credits go to @addaleax from: https://github.com/nodejs/node/issues/7749#issuecomment-232972234
The way the string is formatted and the module exports are defined, sure needs reworking, I guess.
This ticket could serve as a discussion on how a good PR would look like for Winston, adding this feature to the library.

hi, I am trying to use your wrapper right now and get this error:
RangeError: Maximum call stack size exceeded
    at CustomError.get stack [as stack] (native)
    at new CustomError (<filename:lineNumber>)
    at getAndFormatStackTraceElement (<filename:lineNumber>)
    at logger.error (<filename:lineNumber>)

Any idea how I could resolve this? Thanks!
Did it happen to you too? thanks

@httpdigest why do you have to reassign prepareStackTrace and stackTraceLimit in finally?

If you use it for server or electron, you may want to check out residue that is remote logging client.
I'm however working on Easylogging++ binding for Node which will facilitate this, without needing to setup logging server

hi, I am trying to use your wrapper right now and get this error:
RangeError: Maximum call stack size exceeded
    at CustomError.get stack [as stack] (native)
    at new CustomError (<filename:lineNumber>)
    at getAndFormatStackTraceElement (<filename:lineNumber>)
    at logger.error (<filename:lineNumber>)

Any idea how I could resolve this?
Did it happen to you too? thanks

In the line
Error.captureStackTrace(this, CustomError)
CustomError is effectively calling itself, so infinite loop and max call stack exceeded.

please provide a option to enable this feature, like log4js


IMU Data

Hi Team,
I would like to know the units of data obtained from IMU sensor, Particularly about ax, ay, az, gx, gy and gz
Warm Regards,
Mayuresh Bhosale

Hi Mayureshb7,
Thanks for your query.
The IMU sensor we currently have is quite basic and will very soon be replaced with a more accurate and physically-based accelerometer sensor.  However, to answer your question: the ax, ay, az are the angular acceleration in each axis - this will be in rads^-2 (radians per second per second), and the gx, gy, gz are the forces measured in each axis (in Newtons).
We hope you will find this information useful.
Best regards,
BeamNG Tech Team

Thank you for your response Dave; I Appreciate it.
Right now, I'm trying to utilize the vehicle acceleration data as an input for the driving simulator through Python API. IMU data seems to be the one I should be using; correct me if I'm wrong.
I'm curious about two things and would appreciate it if I could get the answer to them.

Which sensor data does the driving simulator gets through BeamNG.drive, and can I use the same data via beamngpy/beamng.tech

Gforce data that I'm trying to obtain does not run the simulation and I'm getting the following error. Could you please help me out with the same?

Code:

Warm Regards,
Mayuresh

Hi Mayuresh,
The IMU sensor would the best currently-available sensor to get the acceleration data from, although I would stress that we will shortly be releasing a more advanced accelerometer sensor. The data from that will be more accurate, and you will be able to specify your own coordinate system for it to measure in.  These things are a work in progress, and will improve with better modelling as time goes on.
Regarding the GForces error: what you have shown there looks like a socket bug.  This happens when we try to send data between the simulator and BeamNGpy, and there is a miscommunication between the two. It would be useful to see if there is any corresponding output on the python console window when this error occurs.  If this has happened repeatedly, this is likely a bug at our end which we can investigate.  Regarding the GForces sensor, I am actually not sure what state it is in myself, so I would need to take a look.  It may be incomplete.
Regarding your question about pitch, roll, yaw, heave etc...  The simulator typically deals with more raw geometric quantities such as positions, directions, velocities, accelerations etc.  Certainly pitch, roll and yaw can be computed from looking at changes in the vehicle pose (ie the vehicle position, the forward vector, up vector etc).  The others you describe (translational motions) could be computed with some post-processing, by looking at changes in the vehicle position over time, then resolving them to the vehicles axes (forward, up, right).  This is just a guess - I am no expert on how people typically compute these quantities, or in what units you would want them etc.  For example though, on a flat surface, you might be able to compute the 'heave' of a vehicle simply by looking at how the elevation of the vehicle changes over time.
The 'sensor' which contains all currently available data like this (position, direction, velocity etc) is called the State sensor, and every vehicle has one of these by default, so when you poll the sensors, the latest data will be available to you in your python script.
Best regards,
BeamNG Tech Team.

Hi Dave,
Thank you for your response and all the answers.
I will wait for the acceleration sensor and the new update you're bringing.
The GForces error is a frequent error that I get whenever I try to run the code. If I try to do the same with IMU, the code runs well, and I can access the IMU data.
The following error is thrown when I run the code for GForces in a python script and it seems to be a socket error

Warm Regards,
Mayuresh Bhosale

Thanks.  We will take a look at this soon.
Best regards,
BeamNG Tech Team

FYI
The new accelerometer sensor is available in our recent release.  Documentation on usage etc can be found here:
https://documentation.beamng.com/beamng_tech/sensors/accelerometer/
Best regards,
BeamNG Tech Team

Hi Dave,
Appreciate your response and the new accelerometer sensor. I will reach out if there is any other issue.
Warm Regards,
Mayuresh


User unfriendly error message when datetime is invalid

When there's invalid date string in csv files, operator-manifest fails with ValueError raised by yaml module:
ValueError: year 0 is out of range
That is not very helpful error message as user cannot see where is the actual problem. If there's required format for some fields in csv files, those should be validated against some schema before yaml module tries to parse them
Here's snippet with invalid data:
createdAt: 0000-00-00T00:00:00Z

Can you please provide traceback, where exactly this error is from?

Team discussion: just wrap yaml.load call with try: except and provide better error (more context)


ERROR: become is not a legal parameter at this level in an Ansible Playbook

Installation could not continue due to the error.

Hi,
Could you tell us what version of Ansible you're running? Use ansible --version to check.
Also, is that the only thing you get when running install.sh or update.sh?
FYI, ansible <IP_ADDRESS> and <IP_ADDRESS> works for me.


Add PUDL citation for Grid Strategies load growth report.

Overview
Add a citation to a report on resurgent US electricity load growth which relied on PUDL data.
Testing
I built the docs locally and looked at the bibliography page and all was good.
# To-do list
- [x] Ensure docs build passes locally

@zaneselvans  Hey! Before opening a pull request after making changes to the documentation, could you guide me on whether I need to run a specific command to ensure the documentation builds correctly? Any instructions on this would be greatly appreciated!

@yashpandey06 if you'd like to build the docs locally, once you've installed and activated the pudl-dev conda environment, you should be able to run
make docs-build

from within the top level PUDL repository.  You can look in the Makefile to see the commands that it's running.

@zaneselvans thanks for you kind response , actually i am using the windows response so the make command isn't working can you help me out with some alternative of it !!


Addon to update the ports in alt-svc header in reverse mode

Description
Alt-Svc headers in HTTP responses advertise the host to use while migrating from HTTP1/2 to HTTP3 (amongst other information). This addon modifies the hosts specified in this header to our reverse proxy target.
refs #7025
Checklist

[x] I have updated tests where applicable.
[ ] I have added an entry to the CHANGELOG.

Notes for self:
Connecting to a remote reverse proxy works[^1] via chrome but not using firefox
Connecting to a locally hosted reverse proxy does not work in chrome and firefox
[^1]: works as in browsers attempt to connect to the updated port in the alt-svc header

Do we want an option for the user to specify the host value that will be used to modify the Alt-Svc header?

Notes for self: Connecting to a remote reverse proxy works1 via chrome but not using firefox2 Connecting to a locally hosted reverse proxy does not work in chrome and firefox

I can swear that firefox randomly started working for a locally hosted reverse proxy after hours of unsuccessful debugging.

Do we want an option for the user to specify the host value that will be used to modify the Alt-Svc header?

Do we have a good use case for that? For esoteric use cases they can always turn the option on and write their own addon (or use modify_headers).


Doesn't work "rainbow, multi_static, multi_breathing" on Asus Rog Strix G G731GT

ID 0b05:1866 ASUSTek Computer
if I try "rainbow" whole keyboard comes only with red light

same if i type "sudo rogauracore rainbow" it turns color to static red

When I type sudo rogauracore rainbow keyboard lights turn off. My PC is ROG G531GW.

Your keyboards probably use the new message format. Or at least Yusuf's does. You can try the other rainbow message in #26.

Thank you Josh! I discovered that my keyboard doesn't support multi_* functions (those don't work even with the official ROG Aura Core Windows app and Armoury Crate lacks those 2 functions) but the fork which you suggested solved my problem about rainbow and single_breathing functions. I really love the rainbow function. Is there any plan for the Starry Night function?

Unless there's been a firmware patch, I think my keyboard doesn't support it, so it wasn't in the ArmouryCrate software when I did my recording. If you load that up in Windows and attach Wireshark to it while you switch back and forth into Starry Night mode, we can add it.

I am on my Pardus(a Debian-based distro) partition right now. I'll try it and inform you in the next few days.

Sorry, I could not manage to filter the Armoury Crate's communication. I'll create an issue when I succeed at it.


how to get a function's annotation?

in Java, there are some annotations, like @ override @ javascriptinterface. is it possible to get these annotations using androguard?

You should know @javascriptinterface is a wrapper method. You should do a taint search of method "addJavascriptInterface"

ClassDefItem.get_annotations_off()
another useful doc is https://source.android.com/devices/tech/dalvik/dex-format.html


Invalid mtimes (year > 9999) fails snapshot

Hi,
we are evaluating  restic for performing a multi-user multi-petabyte daily backup of our storage repository. The preliminary results are very promising and we are very satisfied on the performance and friendly usage of the tool, specially the fuse based snapshot view (awesome!). From time to time we find files that has invalid mtimes because our storage system EOS allows arbitrary utimes system calls from end-users. Unfortunately, these files causes restic to not backup the user home directory.
This issue is related to https://github.com/restic/restic/issues/1173
Output of `restic version
restic 0.9.4 compiled with go1.11.4 on linux/amd64

How did you run restic exactly?
restic --cache-dir /var/cache/restic/user0 --cleanup-cache -o s3.connections=32 -r s3:s3.xxxx/cboxback-user backup  --parent=39fb6be1 --exclude='*.sys.a#*' --exclude='*.sys.v#*' /home/user0

What backend/server/service did you use to store the repository?
S3

Expected behavior

Files with invalid mtimes should be backed up and the creation of the snapshot should not fail because of this
Actual behavior

With file mtimes where the year is not in the range 0-9999 the backup fails.
Steps to reproduce the behavior

touch future.zip
Create utime.c

#include <utime.h>
#include <time.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

main() {
  int file_descriptor;
  char fn[]="future.zip";
  struct utimbuf ubuf;
  struct stat info;

  if ((file_descriptor = creat(fn, S_IWUSR)) < 0)
    perror("creat() error");
  else {
    close(file_descriptor);
    puts("before utime()");
    stat(fn,&info);
    printf("  utime.file modification time is %ld\n",
           info.st_mtime);
    ubuf.modtime =<PHONE_NUMBER>854775807;       /* set modification time to max int64 */
    time(&ubuf.actime);
    if (utime(fn, &ubuf) != 0)
      perror("utime() error");
    else {
      puts("after utime()");
      stat(fn,&info);
      printf("  utime.file modification time is %ld\n",
             info.st_mtime);
    }
  }
}

gcc utime.c -o utime
./utime

 File: `future.zip'
 Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 22h/34d	Inode: 798         Links: 1
Access: (0644/-rw-r--r--)  Uid: (95491/user0)   Gid: ( 2763/      it)
Access:<PHONE_NUMBER>854775807
Modify:<PHONE_NUMBER>854775807
Change: 2019-02-19 09:18:30.828784073 +0100

Restic outputs:  invalid modtime

Do you have any idea what may have caused this?
Yes,
https://github.com/restic/restic/blob/4c2072d875e14cf0c50ac449396e26297208e473/internal/restic/node.go#L336
Do you have an idea how to solve the issue?
Yes, but I would like to understand what are the consequences of allowing bigger year ranges in the validation or even disabling the validation. Would allowing invalid mtimes/atimes impact the backup logic?
Thanks a lot !

Ping @fd0 @ifedorenko

Hi @fd0 @ifedorenko could you please gives us some light on this issue? We find some backups that fail because of this and touching user files to make the backup running is invasive. Thanks!

Hey, thanks for the report. I'm a bit under the weather time-wise, so it takes me a while to respond. The issue is that we're using JSON for storing our internal data structures, and the JSON representation of a timestamp returns an error when the year is larger than 9999, see here:

https://golang.org/src/time/time.go#L1258
https://github.com/golang/go/issues/4556#c15

I'm not sure what to do here. We could do several things:

Convert the error to a warning, store either "0000" or "9999" as the year (depending on what the year is). The value is bogus anyway, but this way the file would get at least stored. You won't get the same timestamp restored though.
Store the timestamps in a different format, or add a new field to the repo format which contains the raw values. I don't like modifying the repo format, especially for such obviously bogus values. Hm.

Thoughts?

@fd0 Thanks for the time to go through the issue. My preferred option would be to go for the 0000 and 9999 values, it is easy to understand from a user running Restic and for developers, the other alternatives increase the complexity of the code base.

I'll implement a prototype then we can play with it.

See #2253 and the branch fix-2174 if you want to try it :)


[32.x][WFLY-12329] Align ManagedScheduledExecutorService schedule...() beha…

Issue: https://issues.redhat.com/browse/WFLY-12329
Main branch PR: https://github.com/wildfly/wildfly/pull/17881

More information about the wildfly-bot[bot]

/retest

I don't think this is a good choice for a micro. Even if there were no concerns about the solution (I have some; see the other PR), I think a behavior change like this should bake a while in main.

closing this one since 32.0.1 is released


feat: add on-save logic

Resolves #65.
TODO:

[ ] Make this configurable and default off.
[ ] Prevent auto-focus on Git pane from other panes.
[ ] Maybe ignore save on files outside the repo.
[ ] Multi-repo support.
[ ] On save when there are no changes and esp outside the repo - avoid error message that there is nothing to generate from.
[ ] Figure out what to do where there is already a message filled and one saves. Then chore: pull in changes from main in extension.ts becomes chore: update extension.ts pull in changes from main in extension.ts which is bad. At least for the save approach - two flows then?

Has this been merged yet? And if so how do enable it?

No #66 was merged and reverted
And #68 is still open because of the items at the top in TODO. I need to figure out at least some of them like the toggle feature before it is safe to merge this without having negative effect on existing use

Sorry life's been hectic the last few months but this is still on my radar to look at.

Any updates on this?

Hi sorry, I moved countries in Sept and haven't had energy for personal development so no progress on this yet


kontena --version, finally.

After typing kontena --version for over 9000 times I've finally decided to do something about it.

Duplicates #1291

haha, this is what happens when stuff rottens in the queue.

On 31 Jan 2017, at 13.44, Kimmo Lehto<EMAIL_ADDRESS>wrote:
Duplicates #1291
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

#1291 merged


Initial support for IPv6

Summarising the changes done:

Completely re-factored Inet. Re-named Inet4 to Inet and removed the Inet abstract class.
Modified all the instances of Inet4 to Inet. The new Inet class doesn't inherit from any interfaces yet.
Provided v6 support for the Inet class
Refactored/deleted existing v6 code and followed the design of existing v4 model
Set up setters/getters for ipv6 header fields and v6 extension header support
Initial Unit tests and integration tests

This change is

For gateway test to pass, https://github.com/includeos/NaCl/pull/53 needs to be merged, and the git submodule needs to be updated to point to the latest commit 7a00726.

Thanks guys. Got the tests to pass


Fix for issue #163

Still don't understand the issue, but this feels like the best way to fix it out of the possible strange solutions.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.006%) to 82.851%

Files with Coverage Reduction
New Missed Lines
%

mlir_graphblas/engine.py
1
75.1%

mlir_graphblas/tests/test_profile.py
4
51.95%

Totals

Change from base Build<PHONE_NUMBER>:
-0.006%

Covered Lines:
2575

Relevant Lines:
3108

💛  - Coveralls

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

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

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 83.012%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
2580

Relevant Lines:
3108

💛  - Coveralls

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

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

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 83.012%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
2580

Relevant Lines:
3108

💛  - Coveralls


feat: Support direct url routing from config (#797)

Duplicating this PR - https://github.com/mParticle/mparticle-web-sdk/pull/797 which was already approved and merged into development, but undone due to blackout requirements.
Instructions

PR target branch should be against development
PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary
This PR provides logic to incorporate the new directURLRouting feature flag.  The feature routes all external requests to the equivalent silo ie jssdkcdn.us1.mparticle.com as opposed to the default which is going through a generic fastly endpoint ie jssdkcdn.mparticle.com.  The logic is as follows:

When true, set any custom endpoints passed to confirm, then set remaining endpoints to be the silo-specific url
When false, set any custom endpoints passed to confirm, then set remaining endpoints to be the generic fastly URL

Testing Plan

[X] Was this tested locally? If not, explain why.
{explain how this has been tested, and what, if any, additional testing should be done}

Added unit tests.
Also tested in a local app to see if silos were respected when feature flag is true, and if custom URLs took priority over thos still

Reference Issue (For mParticle employees only.  Ignore if you are an outside contributor)

Closes https://go.mparticle.com/work/SQDSDKS-5899

@samdozor 🙏


Missing requirement

I just cloned this on to a fresh VM, but when I tried to run it after installing the requirements, Python complained about not having readline. I added readline to requirements.txt which resolved the issue. Might want to add it and other such requirements just to be safe.

Clarification, this was on a Ubuntu VM. (Not sure why readline wasn't installed by default...)


Core dump when loading my_knowledge_qna.py

Getting a core dump while loading my_knowledge_qna.py
python my_knowledge_qna.py
llama.cpp: loading model from ./models/ggml-model-q4_0.bin
Aborted (core dumped)
Running on a virtual machine with 49437012 kB of memory and 16vCPUs

Can you give me some more details?
Operating system, python version and pip freeze extract
Check please also the previous issue related to llama-cpp-python installation

Ciao,
please downgrade llama-cpp-python to 0.1.49
If you don't have C compiler installed on your Ubuntu virtual machine, try to use pre complied wheel.
Go here https://github.com/abetlen/llama-cpp-python/releases
and look for the complied wheel for your architecture and python version - you MUST take Weels Version 0.1.49
because higher versions are not compatible.

Try and let me know


How to code, debug application with deis?

One of our goals is to ensure the environment consistency among development, staging, production or whatever the application is deployed to.
I'm concerned about the local development environment, if I deploy my app to local machine using git push deis master, it would be very slow, and hard to debug.
I can still code and debug my app inside a docker container, thanks to this reference Docker from development to release. But with Deis, I don't know how.
Thanks for suggesting me a way to develop application with Deis!

I think using our own Dockerfile (or cedarish) that we use for both dev and production is the solution I was looking for (and also perhaps @ntquyen?). With that, we can use docker's -v flag to mount the codebase from our dev machines into locally running containers and get the best of both worlds.

Or maybe use https://github.com/EugenMayer/docker-sync


Added reading of version 3 signature, public key and private key packets

Added support for v3 keys which is really just a subset of v4.
Signature packet rfc4880 - 5.2.2
v3 signatures were fairly limited and had a static format, v4 introduced the sub-packets for each different element of data.
Public key packet rfc4880 - 5.5.2
The v3 public key contained the validity period which was moved to the signature packet in v4
Private key packet rfc4880 - 5.5.3
No real difference apart from the public key packet at the start which contains the validity period. Logging of the key encryption method and encrypted key data was also added.

Thanks @t-ellis!

I went ahead and added you as a collaborator in case you need to make further changes to the tool.

Great thanks @ConradIrwin!


Reduce footprint of Ringpop's index.js by extracting endpoint handlers

Continue digging out all the things that should not be hanging off the Ringpop prototype.
@Raynos

lgtm.


bombsquad: fix hash mismatch

Fixes #360190
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Do we know what happened?

Damn, thanks @aucub for handling this.
Upstream recently has been acting weird: they update existing releases with new build artifacts which cause the hash mismatch

Even ryantm bot cannot help here because the version number remains the same

Can we ping the author of bombsquad here? Maybe we should ask him to avoid this very bad practice in the future?

sure. CC: @efroemling


Edge Label Example not Working

Hello, i've integrated grpah into my app successfully but i can't show edge labels correctly. Even basic code which is shared at below don't show the edge label. Where did i make mistake?

`

<template #edge-label="{ edge, ...slotProps }">
  <v-edge-label :text="edge.label" align="center" vertical-align="above" v-bind="slotProps" />
</template>

`
after rendered config and area attributes couldnt populated automatically.
<v-edge-label data-v-05befdc2="" class="" text="ETH" edgeId="edge0" scale="1" config="[object Object]" area="[object Object]" align="center" test="1234" vertical-align="above"></v-edge-label>

I've found the problem,
forgot to define v-edge-label component in main vue export:
components: {     "app-header": AppHeader,     "app-footer": AppFooter,     "app-theme-settings": AppThemeSettings,     "v-network-graph": vNG.VNetworkGraph,     "v-edge-label": vNG.VEdgeLabel   },


error: droid_backends

ModuleNotFoundError: No module named 'droid_backends'
this error come from "NeRF-SLAM/networks/modules/corr.py", line 4.
this error cannot be solved by "pip install droid_backends'
I think it should have a python file named 'droid_backends.py' in the path "NeRF-SLAM/networks", but it is missing.
anyone else has the same issue ?

same problems,have you solved it?


404 on Order Modify / Deletion Endpoint

Hi guys,
We were getting JSONDecodeError on modify_order and cancel_order calls under BreezeConnect. On further inspection, it seems the underlying endpoint on
https://api.icicidirect.com/breezeapi/api/v1/order
is not responding to PUT / DELETE requests resulting in 404. Since 404 is not accompanied by a valid JSON data, aforementioned functions are failing with JSONDecodeError.
Could you guys please look into this?
Thanks,
Mayank

Same error found on modification and cancel order..


Support ChromeOS

Update relevant portions of the UI to be more friendly for chromeOS users.

Blocked on #2896

Tested on various Chromebook models to work with Android 11 and higer


dotnet test (2.0 ) on macos does not discover unit tests (xunit)

Description
dotnet test does not discover tests
Steps to reproduce
Create a dotnet core 2.0 classlib project
Add xunit package refs. this is my resulting .csproj:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <IsPackable>false</IsPackable>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.0.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
    <PackageReference Include="Moq" Version="4.7.99" />
    <PackageReference Include="xunit" Version="2.2.0" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..">
      <Project>{XXXXXf95-c9c0-4ef0-b869-0194684e8519}</Project>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <Content Include="application.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
</Project>

from the csproj folder run:
dotnet test
NB. I have tried the ulimit -n 4096 trick and re-booted. Still failing.
Expected behavior
Discover the tests and run them
Actual behavior
Got the message:
No test is available in /Users/your.dll. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk" and framework version settings are appropriate and try again.

Environment
Running on macos 10.12.6
dotnet --info:
.NET Command Line Tools (2.0.0)

Product Information:
 Version:            2.0.0
 Commit SHA-1 hash:  cdcd1928c9

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.0.0/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0
  Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

Seems like it doesn't like having netstandard2.0 as the TFM.
Noticed that dotnet new xunit didn't offer a -f param and created csproj as netcoreapp2.0.
So I changed the TFM to netcoreapp2.0 and it started working.

This is by design. For dotnet core projects, TFM should be netcoreapp*.* (netcoreapp1.0, netcoreapp1.1, netcoreapp2.0)

Closing this as by design.


Remove bouk/monkey requirement from machine_test.go & bmc_test.go

monkey is currently used by:

server/grpcsvr/oob/machine/machine_test.go
server/grpcsvr/oob/bmc/bmc_test.go

Why should it be removed?

It only works on x86/x86-64 platforms, which means I am unable to run tests or linters
The license forbids it's use: https://github.com/bouk/monkey/blob/master/LICENSE.md
Requiring monkey-patching for tests is the sign of code that is not designed to be tested

@tstromberg Hi! I'm new to golang, but i want to try resolve this issue. Can you assignee it to me?

@SergeyHydra - It's yours! But be warned, this particular item may be a challenge for someone new to the language. Let us know if there is anything we can do to help!
If it's helpful at all, I find that most of the time these sort of mockings are caused by API's that don't allow clients to be passed in. While I am not yet familiar with PBnJ internals, it is a common pattern for main() and/or tests to setup connections and pass them in via a Config struct, such as:
type Config struct {
  SomeClient *x.Client
  OtherClient *y.Client
}

And then in tests set it up using:
x := oob.New(&Config{SomeClient: mockX, OtherClient: mockY})

This approach definitely beats mock libraries, reflection, and global variables.


Document influx remote and influx replication

Closes #3459.

@pierwill what's the status of this PR. Anything else that needs to be done from the docs side for the replication feature?

@dgnorton Thanks for the ping. This is ready for a review.

[ ] All the CLI docs need to be duplicated in cloud and use the duplicate-oss shortcode.
[ ] Each of the CLI docs should contain a cloud-only note that says replication remotes and replication streams can only be configured for InfluxDB OSS.
[ ] Each of the CLI docs needs examples.
[ ] We should duplicate the task-based doc to cloud but need to update the title to "Replicate data from InfluxDB OSS to InfluxDB Cloud"


Add per-folder RSS feeds

This pull adds a config option to specify relative folder paths for their own feeds.
Basically, if the slug of a file starts with a string in the feedDirectories config array, it'll be added to a feed of the same name in the root directory.
An improvement I'm not sure how to do would be to place each resulting feed in the directory of its entries and just title it index.xml as well, ex. Folder/index.xml for all posts in content/Folder instead of /folder.xml.
closes https://discord.com/channels/927628110009098281/1149197588084572161/1159320781633884200

Closing for now due to inactivity but feel free to reopen if you have bandwidth to work on it again and fix up that type error!

Finally got the bandwidth to fix this. Turns out ts treats an empty array as null, but since feedDirectories is never null or undefined, we can use non-null assertions.

Finally got the bandwidth to fix this. Turns out ts treats an empty array as null, but since feedDirectories is never null or undefined, we can use non-null assertions.
@jackyzha0 I don't have permissions to reopen PRs in the repo, but there are two new commits and I've rebased the whole thing on top of origin/v4. What's the significance of write() over emit()?

feel free to open a PR i can help take a look.


Add support for Kubernetes

The changes refactor the installation script and add all the Kubernetes YAML files.
Tested on Jetson Nano with K3S + Nvidia Container Runtime (Kubernetes for embedded).
Logs:
Length: 1142 (1.1K) [text/plain]
Saving to: 'opendatacam/0001-mongodb-deployment.yaml'

0001-mongodb-deployment.ya 100%[======================================>]   1.12K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2020-07-17 03:32:40 (14.7 MB/s) - 'opendatacam/0001-mongodb-deployment.yaml' saved [1142/1142]

--2020-07-17 03:32:40--  https://raw.githubusercontent.com/paroque28/opendatacam/master/docker/run/nano/0002-opendatacam-deployment.yaml
Resolving raw.githubusercontent.com... <IP_ADDRESS>
Connecting to raw.githubusercontent.com|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1372 (1.3K) [text/plain]
Saving to: 'opendatacam/0002-opendatacam-deployment.yaml'

0002-opendatacam-deploymen 100%[======================================>]   1.34K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2020-07-17 03:32:41 (9.33 MB/s) - 'opendatacam/0002-opendatacam-deployment.yaml' saved [1372/1372]

W0717 03:32:42.113772  905811 helpers.go:535] --dry-run is deprecated and can be replaced with --dry-run=client.
configmap/opendatacam configured
service/opendatacam-mongo unchanged
persistentvolumeclaim/mongodb-pv-claim unchanged
deployment.apps/opendatacam-mongo configured
service/opendatacam unchanged
deployment.apps/opendatacam unchanged
NAME                                                         READY   STATUS    RESTARTS   AGE
gpu-operator-node-feature-discovery-worker-v77gq             1/1     Running   44         29d
gpu-operator-677b9c86bf-2pkfj                                1/1     Running   21         29d
gpu-operator-node-feature-discovery-master-fbf955747-2f885   1/1     Running   21         29d
svclb-opendatacam-vbbrn                                      3/3     Running   0          3h46m
opendatacam-mongo-75c8dd6f69-qcqcq                           1/1     Running   0          3h35m
opendatacam-65c4cc846b-x67l8                                 1/1     Running   0          3m43s
NAME                                         TYPE           CLUSTER-IP     EXTERNAL-IP      PORT(S)                                        AGE
kubernetes                                   ClusterIP      <IP_ADDRESS>      <none>           443/TCP                                        29d
gpu-operator-node-feature-discovery-master   ClusterIP      <IP_ADDRESS>   <none>           8080/TCP                                       29d
opendatacam                                  LoadBalancer   <IP_ADDRESS>   <IP_ADDRESS>   8080:32496/TCP,8070:31915/TCP,8090:31175/TCP   3h46m
opendatacam-mongo                            ClusterIP      <IP_ADDRESS>   <none>           27017/TCP                                      3h35m
OpenDataCam docker container installed successfully, it might take up to 1-2 min to start the node app and the webserver
wlan0: error fetching interface information: Device not found
Ethernet device IP
OpenDataCam is available at: http://<IP_ADDRESS>:8080
OpenDataCam will start automaticaly on boot when you restart you jetson
If you want to stop it, please refer to the doc: https://github.com/opendatacam/opendatacam

I would upload a screenshot but is the same as with Docker-compose

Hi,
Thanks.. I have 0 experience with Kubernetes so I have some questions
Questions:

Does this changes the default install command: ./install-opendatacam.sh --platform nano ?
Could you put the kubernetes files inside a dedicated folder like:  docker/run/desktop/kubernetes  so it is a bit more separated ?
Could you add documentation  how to install OpenDataCam using Kubernetes ?

Hello,

Does this changes the default install command: ./install-opendatacam.sh --platform nano ?
No, I have set docker-compose as the default orchestrator.

if [ "$ORCHESTRATOR" == "" ] || [ -z "$INDEX" ]
  then
    ORCHESTRATOR="docker-compose"
fi

Could you put the Kubernetes files inside a dedicated folder like: docker/run/desktop/kubernetes so it is a bit more separated ?

Yes, I can!

Could you add documentation on how to install OpenDataCam using Kubernetes?

And yes I also can!
I will update this pull request later.
Thanks

Done!
Note that I am assuming this link that includes the version. So it will work until next release
wget -N https://raw.githubusercontent.com/opendatacam/opendatacam/$VERSION/docker/run/$PLATFORM/kubernetes/0001-mongodb-deployment.yaml -P opendatacam
wget -N https://raw.githubusercontent.com/opendatacam/opendatacam/$VERSION/docker/run/$PLATFORM/kubernetes/0002-opendatacam-deployment.yaml -P opendatacam

Thanks ! I will merge this only with the next version as otherwise as you said it won't work.. But right now we are in summer break so it will take a bit of time to do it...
Anyways if people are interested they can have a look  at your PR

Would it be good for you if I change the references to master for now?
And then later, when the next version is available,  change them back to $VERSION.
Because even when the next version is ready for release, we would need to modify these files to change the container version number:
spec:
      containers:
      - image: opendatacam/opendatacam:v3.0.1-platform

I will add the commit just in case

Ok, I understand, I merge this.. let's hope we don't forget then to replace them.. adding a not on the DEVELOPMENT NOTE : https://github.com/opendatacam/opendatacam/commit/761d10ef6c9e129f8c3905a99c47534791a83dbf
The release process for OpenDataCam is very manual unfortunately .


Convert existing database to mb4

I use in my app.ini right now utf8. What command do I need to run on my mysql database to convert the tables to utf8mb4?
Thank you in advance.

The second half of https://docs.gitea.io/en-us/faq/#why-are-emoji-broken-on-mysql should resolve this for you. 🙂
Essentially gitea convert (with the config flag) and changing CHARSET in the app.ini

Please see https://docs.gitea.io/en-us/faq/#why-are-emoji-broken-on-mysql