missed this important bug

In the PR I finished and we merged yesterday I missed a bug and left in an outdated comment.
@alexcrichton

r? @alexcrichton
(rust_highfive has picked a reviewer for you, use r? to override)

Oh nice catch! Out of curiosity, would it be possible to easily add a test for this as well? (if not no worries)

Looking into it more closely I think activation hits the MissingFeatures before it modified cx. So I think I was wrong, and this is not technically a bug. So I can't add a test. It is more a loaded foot gun for anyone adding to the kinds of activation errors. Which is how I came across it, I am working on a performance related PR that involved adding another activation error, and most of the existing test blew up in my face.
I will get ci green in a sec.

Ah ok! Sounds good to me to merge when gree nthen

CI is green except for a spurious network error.

@bors: r+
Oh dear, that test should be updated to not hit the real index...

:pushpin: Commit 2fa4fdf has been approved by alexcrichton

:hourglass: Testing commit 2fa4fdf7f32fefdef314767b2c14954cc16f838e with merge 91739dc2c49d7f1922e9bd606ca266fb2043e7e6...

:boom: Test timed out

Added a commit that should help with the spurious network error.
How do I update the test to not hit the real index?
The test timeout I don't understand, the link is https://ci.appveyor.com/project/rust-lang-libs/cargo/build/1.0.3765 I think. but that seems unrelated to my change.

@bors: r+
Oh I've generally used Pakage::new("foo", "0.1.0").publish() which rewrites the test's home directory to use a per-test index instead.

:pushpin: Commit d9c97de has been approved by alexcrichton

:hourglass: Testing commit d9c97debbbb3dc1afead9b699f07c90628ee3006 with merge 8f76fde0e1a538063be92d829fbfc0fa93ea972e...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 8f76fde0e1a538063be92d829fbfc0fa93ea972e to master...


Upgrade rdkafka ~> 0.15; require Ruby 3.0 since 2.6 is EOL

What
This PR completes a couple of housekeeping items:

Set required Ruby to >= 3.0 in the Gemspec (2.6 is EOL, 2.7 support dropping in rdkafka-ruby soon, too)
Upgrade rdkafka to ~> 0.15.0

I noticed that rdkafka 0.15.0 minimum Ruby is 2.7 anyway.

@tednology you might as well directly go to 3.0 because I am dropping support for 2.7 soon: https://github.com/karafka/rdkafka-ruby/issues/374

@mensfeld Done.

No need to ping me. It's not my framework and I don't have merge permissions here ;) it was just a friendly advise from rdkafka maintainer.

Hah, well, thanks anyway 😄.
@deepredsky or @dasch, sorry for the ping, would it be possible to review this small upgrade? We don't need the minimum Ruby version requirement @ 3.0 (2.7 will suffice) if it's a concern.

@tednology thanks for this pull request. I need to double check that upgrading rdkafka will not require any additional changes. +1 to dropping 2.6 support

@deepredsky it will not. 0.15.0 is fully backwards compatible with 0.13 though I did change several timeouts to higher values.

You bet!

@deepredsky can you please release a new beta with this change?

Thank you @deepredsky . Unfortunately, I have to bump it in another lib that is built on top of racecar, and this makes things a little bit more complicated to test 😀


[Q] TDT table update with timeref issue

I have an SPTS complete file with all SI tables except TDT/TOT.
I've created a simple tdt.xml file with this content:
<tsduck>   <TDT UTC_time="2020-12-31 00:00:00">     <metadata PID="20"/>   </TDT> </tsduck>
and fired this cmdline:
tsp -I file mpts2.ts
-P regulate --pcr-synchronous
-P inject -p 20 -b 2000 tdt.xml
-P timeref --system-synchronous
-O .....................
I got this messages:

Warning: timeref: got TDT/TOT PID packet with no complete section inside, cannot update

What am I missing ?
Thanks

TDT sections shall be alone in their TS packet. It is useless and counterproductive to pack them (unlike EIT, for instance,  which must be packed for obvious bandwidth reasons).
So, you need to add option --stuffing in plugin inject for the TDT. RTFM for more details.

OK thanks done.


Allow multiple kustomization paths

This extends the single path /var/lib/microshift/manifests
default into:

/usr/lib/microshift/manifests
/etc/microshift/manifests
/var/lib/microshift/manifests

which will be evaluated in order. While the first one could be fully
managed in ostree (core components), the second one could be managed
by configuration management, the third one is maintained for backwards
compatibility purposes.
In addition the MicroShift configuration file supports customization
of this via the manifestsDir entry.

/test

/retest

Last changes include @copejon and @fzdarsky request to maintain the original default manifest directory too for backwards compatibility

Thanks for the PR! I think we should test a specific config.yaml pointing at a set of manifests.
Code wise looks good.

[root@fedora majopela]# cat /etc/microshift/config.yaml
---
manifests:
  - /kustom/

[root@fedora microshift]# microshift run 2>&1 | grep kust
I0421 14:37:33.524394 2568041 manager.go:112] Starting kustomizer
I0421 14:37:33.524699 2568041 apply.go:57] Applying kustomization at /kustom/kustomization.yaml```

It seems to work as expected :-)

/lgtm


Handle multiple instances of generic functions

Currently, if multiple addresses are found for the same line number, then only the first address is used.
The problem is that these addresses may belong to different instances of the same generic function, and if the test cases only call one of these instances then the coverage reports that the function wasn't called at all.
Here's an example run where this occurred: https://coveralls.io/builds/13559392
Note that the coverage says Lines::new was called, but none of the lines within it have hits.
I think what you need to do is deduplicate within a line number row sequence when parsing the DWARF, but if multiple sequences have an address for the line then install an breakpoint for each one.

So I did consider this while working on #40. So I added the deduplication because there were multiple instructions for each line especially with things like matches, conditionals etc and it was leading to incorrect hit counts. I've kind of built my understanding of the dwarf address to line stuff based on the output of objdump -WL (the decoded lines) and parts of the standard and gimli docs so I might have missed something.
So looking at my simple_project test project Where the file unused.rs contains only:
pub fn hello() {  // Line 4
    println!("Hello world");
    println!("I'm never tested);
}

The decoded lines I get are:
tests/data/simple_project/src/unused.rs:
unused.rs                                      4            0x404a00
unused.rs                                      5            0x404a18
unused.rs                                      0            0x404a2b
unused.rs                                      5            0x404a2f
unused.rs                                      0            0x404a34
unused.rs                                      6            0x404a44
unused.rs                                      0            0x404a57
unused.rs                                      6            0x404a5b
unused.rs                                      7            0x404a60

Hence my deduplication step.
I'm going to look into this more closely regarding instances with generics to see if this problem has a nice clean solution, but I can see you've worked on gimli so you probably have a much better idea than me. So with that in mind if you have any tips or pointers that would be great :smile:

Currently rust uses a separate line number sequence for every function. I'm not sure if this is ever likely to change (I think it's dependent on LLVM). If we can rely on that though, then doing the deduplication within each sequence will be easy and it will handle simple_project, while still allowing multiple instances of generic functions. Otherwise, you'll need to get the range info for each function in order to figure out which lines belong to the same function instance. You can get this out of either the symbol table, or .debug_info.
Personally though, I don't really care about hit counts being accurate. I want coverage to be accurate though, and currently it isn't. So another option if you don't care about hit counts is you can simply add a breakpoint for every line. This may also allow you to get coverage information when a line contains a branch, eg if a line is an if/else all on one line, then may be 3 line entries: condition, true branch, and false branch, and avoiding deduplication lets you get coverage info for each of those separately. There may be some challenges in reporting that info in a useful manner though.

Thanks for the tips, I'm sure that's more than enough to go on :+1:.
Regarding hit count, I don't want to remove features that work for a number of projects, especially given that hit-rate is used as a metric in codecov and coveralls. Obviously, working coverage is the most important outcome so I will be addressing this as the next issue I tackle, but I'll be trying out the solutions which don't sacrifice existing features.

Fixed and tested on a project I created to recreate the issue. Thanks for the issue :smile:

Thanks for the quick fix, those results are looking much better now.


New doc.create with options

fixed tuto : CreateBox per face feature
added tuto : CreateXXX with options parameter

Do not forget to update https://github.com/BabylonJS/Documentation/blob/master/data/statics.json with your new page:)

just done
Le 29/09/2015 15:29, David Catuhe a écrit :

Do not forget to update
https://github.com/BabylonJS/Documentation/blob/master/data/statics.json
with your new page:)
—
Reply to this email directly or view it on GitHub
https://github.com/BabylonJS/Documentation/pull/33#issuecomment-144058904.


chore: adding demo apps

This PR adds app demos for:

NextJS
React - Using CRA
React - Using Vite

All apps are built on a pretest step (see package.json scripts), to keep local build times faster.

These apps import fuels and log stuff to the console, but nothing else.
This validates that our build works locally with such tools via #1055.
I wonder if we want these apps in the repo since they're very bulky. For example, we could do these validations via parallel GitHub workflows. I just needed a quick and reliable way to validate things now, and this did the job, but I am happy to open new issues to do this after this goes through.
Curious to see what @FuelLabs/sdk-ts thinks.

Could we ignore these apps in local development builds and just have them built in the pipeline? It seems to me that ignoring them locally would be okay because they aren't the focus of development. We'd then get the best of both worlds: unaffected build time and this PR serving its purpose via the pipeline build.

I left a note about build time on the PR description:

All apps are built on a pretest step (see package.json scripts), to keep local build times faster.


Use case ideas and discussion.

Can anyone suggest ideas for using this dictionary for directly benefiting coders?

Links of questions using the concept can be attached to every topic.

@sanskarseth yes this can be done...we can make a .md file for every algorithm with related blogs and good resources


Question cut_distance vs document score

When there's a docs retrieved from the chromadb in the code, it uses similarity_search_with_score.
What is the relation between score and cut_distance.
As I tried to reduce cut_distance , 1.4 or 1.0 and don't see differences, as all returned docs have score < 1.0,
So, is  0< = score <= 1.0 ? or it can be any float number ?
Screenshot of the code where code takes everything that is < cut_distance

Thanks

The cut distance was optimized for the "mini all" embedding model with cut at 1.64.  For instructor-large it's ok, but that model has very flat distribution of scores.  For bge, need to avoid the cut, i.e. make it large like 10000.
So in general best to tune it for your embedding model.
https://github.com/h2oai/h2ogpt/issues/1095


Add vanilla-quill example page

What this PR does / why we need it?
Add vanilla-quill example page.
I captured a thumbnail image of the quill example.
Let me know if there's anything I should fix!

Screenshot

Example page

Footer

Any background context you want to provide?
What are the relevant tickets?

Fixes #
Checklist

[x] Added relevant tests or not required
[x] Didn't break anything

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


ng serve and ng serve --aot true have different behaviours

Versions
Angular CLI: 1.5.4
Node: 8.9.1
OS: linux x64
Angular: 5.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.4
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.21
@angular-devkit/schematics: 0.0.37
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.4
@schematics/angular: 0.1.7
typescript: 2.4.2
webpack: 3.8.1

Repro steps
Unfortunately I'm not able to provide any reproduction steps because I'm not sure yet where exactly is the problem, but we are experiencing some inconsistencies between aot and non-aot modes.
Observed behavior
The same source code behaves differently with and without aot
Desired behavior
The behaviour should be the same.

When you run in --aot your code will be compiled with the AOT compiler so it is a different pipeline. As far as the behaviour changing, I really cannot say anything without more information...
Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

I'm sorry, but we can't reproduce the problem following the instructions you provided.
Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue.
Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.
If the problem persists, please open a new issue following our submission guidelines.
A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

I completely forgot about this issue, but I can tell that as of the newest CLI version (see below) the original issue is solved for us.
Thanks to all contributors!
Angular CLI: 6.1.5
Node: 10.9.0
OS: linux x64
Angular: 6.1.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.5
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.7.5
@angular-devkit/schematics        0.7.5
@angular/cli                      6.1.5
@ngtools/webpack                  6.0.8
@schematics/angular               0.7.5
@schematics/update                0.7.5
rxjs                              6.2.2
typescript                        2.9.2
webpack                           4.8.3


Force post options open when dirty or on errors

Description
Closes #1045, closes #491
This will force the options tab open on post render if the inputs are dirty or opens them on submit if the options contain errors

Screenshots

Additional Context
I designed it such that it should only be forced open when the advpostform contains errors. It will also start opened if the form is dirty at all, errors or not
If the options starts open because it is dirty or fills in the form with some valid inputs and then closes it, it will not reopen

Checklist
Are your changes backwards compatible? Please answer below:

Did you QA this? Could we deploy this straight to production? Please answer below:

For frontend changes: Tested on mobile? Please answer below:

Did you introduce any new environment variables? If so, call them out explicitly here:

This does its job and fixes the bug. I didn't love the use of a ternary show ... I thought it was confusing so I removed it.
Note to myself: This whole accordion and localstorage draft thing needs a zoomed out refactor because it's a big hack. We keep tacking stuff onto our existing forms but the design of those were unconscious of all the things we'd add.


AWS KMS integration

Are there any plans to develop integration for AWS Key Management Service?
Thanks
Ed

Hi @eliquinox, we don't have any plans to add this to ethsigner.
You might want to look at Quorum Key Manager which does have this functionality: https://github.com/ConsenSys/quorum-key-manager


The Core C library should be a C-only library

Call me a boomer if you like (I'm not), or a puritan (I actually prefer C++ but my employer does not), but it would be nice if the "Core C API" compiled to a C library.
With master, currently, there are 1708 C++ symbols where I would expect there to be zero.
$ nm -g libgrpc.a 2>/dev/null | grep " T " | grep "_Z" wc -l
1708

I realize that C++ is obviously better but sometimes it's not an option in particular embedded spaces.
This change should involve little to no actual code changes and should not affect any other language runtimes (in theory, assuming everyone is playing nicely together in the global namespace). It's possible that a couple of extra arguments passed to the compiler (e.g. gcc and clang accept the -x language option) or even just a different compiler invocation. Maybe CMakeLists.txt would require some changes.
I'll give it a shot and see if I can make a PR.

Just saw this:
# C core has C++ source code

Nevermind


scale option

I don't think this can work unless alternate binaries are used. I think currently metadata fails on webm.


Good

Good
Originally posted by @hieueuro in https://github.com/Web3Modal/web3modal/pull/160#issuecomment-929847096

Good


Upgrade pulumi-terraform-bridge to v3.87.0

This PR was generated via $ upgrade-provider pulumiverse/pulumi-unifi --kind=bridge --target-bridge-version=latest.

Upgrading pulumi-terraform-bridge from v3.86.0 to v3.87.0.

Superseded by #204


Unable to pull image from an insecure registry

vagrant@vagrant:~$ docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
vagrant@vagrant:~$ docker info
Containers: 0
Images: 34
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 34
Execution Driver: native-0.2
Kernel Version: 3.13.0-57-generic
Operating System: Ubuntu 14.04 LTS
CPUs: 1
Total Memory: 994 MiB
Name: vagrant
ID: OXRP:6VZL:PLXK:Y7SU:EFEI:2KF5:PILP:UKXH:35MK:CUC6:VOP4:G75Q
WARNING: No swap limit support
vagrant@vagrant:~$ uname -a
Linux vagrant 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Environment: vagrant
List the steps to reproduce the issue:

Run docker pull <localrepo>/<image>

Describe the results you received:
FATA[0010] Error: image origins:latest not found
Describe the results you expected:
The image is pulled successfully.
I am running 2 vagrant boxes on <IP_ADDRESS> and <IP_ADDRESS>. The box on <IP_ADDRESS> runs a registry:2 container (with container port 5000 mapped to host port 5000). I've pushed an image called origins to this repo.
When I try to pull the same from <IP_ADDRESS>, I get the above-mentioned error. It should be noted that I've updated my /etc/default/docker file and the DOCKER_OPTS does read like this: DOCKER_OPTS="--insecure-registry <IP_ADDRESS>:5000"
Yet, I am unable to pull the image.
What could I be missing here?

You need docker 1.6 or more recent to use registry:2.
https://github.com/docker/distribution/blob/master/docs/index.md#requirements
Let me know if you still have issues (closing this for now).


Extract endnotes as well

Follow-up of https://github.com/rmzelle/ref-extractor/issues/17, to extract Zotero citations from endnotes as well. (cc @zuphilip)

Generally this just works, but in your https://github.com/rmzelle/ref-extractor/files/1595117/Dok9-endnotes2.docx document one of the endnotes is split over multiple <w:instrText/> elements, which I haven't seen before (in my limited testing). I'm not sure what the logic behind this is (maximum field length?), which makes it a little difficult to know what to expect in other Word documents, but for now these cases are lost during the extraction.
			<w:r>
				<w:instrText xml:space="preserve">
					ADDIN ZOTERO_ITEM CSL_CITATION {"citationID":"oI6eP5QH","properties":{"formattedCitation":"{\\rtf Paras Mandal u.\\uc0\\u160{}a., \\uc0\\u8222{}A Novel Approach to Forecast Electricity Price for PJM Using Neural Network and Similar Days
					Method\\uc0\\u8220{}, {\\i{}IEEE Transactions on Power Systems} 22, Nr. 4 (November 2007): 5, https://doi.org/10.1109/TPWRS.2007.907386; Safder Alladina, \\uc0\\u8222{}Second Language Teaching through Maths: Learning Maths through a Second
					Language\\uc0\\u8220{}, {\\i{}Educational Studies in Mathematics} 16, Nr. 2 (1. Mai 1985): 215\\uc0\\u8211{}19.}","plainCitation":"Paras Mandal u. a., „A Novel Approach to Forecast Electricity Price for PJM Using Neural Network and Similar Days
					Method“, IEEE Transactions on Power Systems 22, Nr. 4 (November 2007): 5, https://doi.org/10.1109/TPWRS.2007.907386; Safder Alladina, „Second Language Teaching through Maths: Learning Maths through a Second Language“, Educational Studies in
					Mathematics 16, Nr. 2 (1. Mai 1985): 215–19."},"citationItems":[{"id":11835,"uris":["http://zotero.org/users/96641/items/ANPFGCCI"],"uri":["http://zotero.org/users/96641/items/ANPFGCCI"],"itemData":{"id":11835,"type":"article-journal","title":"A
					Novel Approach to Forecast Electricity Price for PJM Using Neural Network and Similar Days Method","container-title":"IEEE Transactions on Power Systems","page":"2058-2065","volume":"22","issue":"4","source":"EBSCOhost","abstract":"Price forecasting
					in competitive electricity markets is critical for consumers and producers in planning their operations and managing their price risk, and it also plays a key role in the economic optimization of the electric energy industry. This paper explores a
					technique of artificial neural network (ANN) model based on similar days (SD) method in order to forecast day-ahead electricity price in the PJM market. To demonstrate the superiority of the proposed model, publicly available data acquired from the
					PJM Interconnection were used for training and testing the ANN. The factors impacting the electricity price forecasting, including time factors, load factors, and historical price factors, are discussed. Comparison of forecasting performance of the
					proposed ANN model with that of forecasts obtained from similar days method is presented. Daily and weekly mean absolu</w:instrText>
			</w:r>
			<w:r w:rsidRPr="00993842">
				<w:rPr><w:lang w:val="en-US"/></w:rPr>
				<w:instrText xml:space="preserve">te percentage error (MAPE) of reasonably small value and forecast mean square error (FMSE) of less than 7$/MWh were obtained for the PJM data, which has correlation coefficient of determination (R²) of 0.6744 between
					load and electricity price. Simulation results show that the proposed ANN model based on similar days method is capable of forecasting locational marginal price (LMP) in the PJM market efficiently and
					accurately.","DOI":"10.1109/TPWRS.2007.907386","ISSN":"08858950","journalAbbreviation":"IEEE Transactions on Power
					Systems","author":[{"family":"Mandal","given":"Paras"},{"family":"Senjyu","given":"Tomonobu"},{"family":"Urasaki","given":"Naomitsu"},{"family":"Funabashi","given":"Toshihisa"},{"family":"Srivastava","given":"Anurag
					K."}],"issued":{"date-parts":[["2007",11]]}},"locator":"5"},{"id":1074,"uris":["http://zotero.org/users/96641/items/5DNR6EWT"],"uri":["http://zotero.org/users/96641/items/5DNR6EWT"],"itemData":{"id":1074,"type":"article-journal","title":"Second
					Language Teaching through Maths: Learning Maths through a Second Language","container-title":"Educational Studies in Mathematics","page":"215-219","volume":"16","issue":"2","source":"JSTOR","ISSN":"0013-1954","shortTitle":"Second Language Teaching
					through Maths","journalAbbreviation":"Educational Studies in
					Mathematics","author":[{"family":"Alladina","given":"Safder"}],"issued":{"date-parts":[["1985",5,1]]}}}],"schema":"https://github.com/citation-style-language/schema/raw/master/csl-citation.json"}
				</w:instrText>
			</w:r>

(in contrast, the other endnotes in the document are stored in a single <w:instrText/> element:
				<w:instrText xml:space="preserve">
					ADDIN ZOTERO_ITEM CSL_CITATION {"citationID":"kxO9MnbO","properties":{"formattedCitation":"{\\rtf vgl. {\\i{}Returns to Education in West Germany over Time\\uc0\\u8239{}: Educational Expansion, Occupational Upgrading and the Job Matching Process},
					2013.}","plainCitation":"vgl. Returns to Education in West Germany over Time : Educational Expansion, Occupational Upgrading and the Job Matching Process,
					2013."},"citationItems":[{"id":795,"uris":["http://zotero.org/users/96641/items/2RDF5IIE"],"uri":["http://zotero.org/users/96641/items/2RDF5IIE"],"itemData":{"id":795,"type":"book","title":"Returns to education in West Germany over time : educational
					expansion, occupational upgrading and the job matching process","number-of-pages":"379","source":"Primo","abstract":"Mannheim, Univ., Diss., 2013","shortTitle":"Returns to education in West Germany over
					time","language":"en","author":[{"family":"Klein","given":"Markus"}],"issued":{"date-parts":[["2013"]]}},"suppress-author":true,"prefix":"vgl."}],"schema":"https://github.com/citation-style-language/schema/raw/master/csl-citation.json"}
				</w:instrText>

)

Another test shows that 100 M⊙M⊙M⊙M⊙ in the abstract will be encoded as:
...
  <w:r>
    <w:instrText xml:space="preserve">... 100 M</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:rPr>
      <w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math" w:cs="Cambria Math"/>
    </w:rPr>
    <w:instrText>⊙</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:instrText>M</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:rPr>
      <w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math" w:cs="Cambria Math"/>
    </w:rPr>
    <w:instrText>⊙</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:instrText>M</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:rPr>
      <w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math" w:cs="Cambria Math"/>
    </w:rPr>
    <w:instrText>⊙</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:instrText>M</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:rPr>
      <w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math" w:cs="Cambria Math"/>
    </w:rPr>
    <w:instrText>⊙</w:instrText>
  </w:r>
  <w:r w:rsidR="00EE6AF0">
    <w:instrText xml:space="preserve">...</w:instrText>
  </w:r>

However, it seems that you can concatenate all <w:instrText> fields together. Right?

However, it seems that you can concatenate all <w:instrText> fields together. Right?

Sure. I'm just wondering if this also happens for footnote or in-text citations. For endnotes the logic to glue the pieces back together looks reasonably clear, since each endnote is wrapped in its own <w:endnote w:id="2"> element, but I don't know if it's that easy for the other two formats.
Anyway, I'll just merge this for some endnote support, even if it doesn't work perfect yet.

I'm just wondering if this also happens for footnote or in-text citations.

I tried out both cases. Yes, the same seems to happen for footnotes and in-text citations:
Dok9-footnotes2.docx
Dok9-authordate2.docx
Do you need more examples?

Do you need more examples?

I think this is enough, although I don't know enough about the .docx format to know how to reliably extract these split citations for author-date styles. In your example, it looks like:
		<w:p w:rsidR="005002F6" w:rsidRDefault="00BD3B66">
			<w:r><w:fldChar w:fldCharType="begin"/></w:r>
			<w:r>
				<w:rPr><w:lang w:val="en-US"/></w:rPr>
				<w:instrText xml:space="preserve">
					ADDIN ZOTERO_ITEM CSL_CITATION {"citationID":"oI6eP5QH","properties":{"formattedCitation":"{\\rtf (Mandal u.\\uc0\\u160{}a. 2007, 5; Alladina 1985)}","plainCitation":"(Mandal u. a. 2007, 5; Alladina
					1985)"},"citationItems":[{"id":11835,"uris":["http://zotero.org/users/96641/items/ANPFGCCI"],"uri":["http://zotero.org/users/96641/items/ANPFGCCI"],"itemData":{"id":11835,"type":"article-journal","title":"A Novel Approach to Forecast Electricity
					Price for PJM Using Neural Network and Similar Days Method","container-title":"IEEE Transactions on Power Systems","page":"2058-2065","volume":"22","issue":"4","source":"EBSCOhost","abstract":"Price forecasting in competitive electricity markets is
					critical for consumers and producers in planning their operations and managing their price risk, and it also plays a key role in the economic optimization of the electric energy industry. This paper explores a technique of artificial neural network
					(ANN) model based on similar days (SD) method in order to forecast day-ahead electricity price in the PJM market. To demonstrate the superiority of the proposed model, publicly available data acquired from the PJM Interconnection were used for
					training and testing the ANN. The factors impacting the electricity price forecasting, including time factors, load factors, and historical price factors, are discussed. Comparison of forecasting performance of the proposed ANN model with that of
					forecasts obtained from similar days method is presented. Daily and weekly mean absolu</w:instrText>
			</w:r>
			<w:r w:rsidRPr="00BD3B66">
				<w:instrText xml:space="preserve">te percentage error (MAPE) of reasonably small value and forecast mean square error (FMSE) of less than 7$/MWh were obtained for the PJM data, which has correlation coefficient of determination (R²) of 0.6744 between
					load and electricity price. Simulation results show that the proposed ANN model based on similar days method is capable of forecasting locational marginal price (LMP) in the PJM market efficiently and
					accurately.","DOI":"10.1109/TPWRS.2007.907386","ISSN":"08858950","journalAbbreviation":"IEEE Transactions on Power
					Systems","author":[{"family":"Mandal","given":"Paras"},{"family":"Senjyu","given":"Tomonobu"},{"family":"Urasaki","given":"Naomitsu"},{"family":"Funabashi","given":"Toshihisa"},{"family":"Srivastava","given":"Anurag
					K."}],"issued":{"date-parts":[["2007",11]]}},"locator":"5"},{"id":1074,"uris":["http://zotero.org/users/96641/items/5DNR6EWT"],"uri":["http://zotero.org/users/96641/items/5DNR6EWT"],"itemData":{"id":1074,"type":"article-journal","title":"Second
					Language Teaching through Maths: Learning Maths through a Second Language","container-title":"Educational Studies in Mathematics","page":"215-219","volume":"16","issue":"2","source":"JSTOR","ISSN":"0013-1954","shortTitle":"Second Language Teaching
					through Maths","journalAbbreviation":"Educational Studies in
					Mathematics","author":[{"family":"Alladina","given":"Safder"}],"issued":{"date-parts":[["1985",5,1]]}}}],"schema":"https://github.com/citation-style-language/schema/raw/master/csl-citation.json"}
				</w:instrText>
			</w:r>
                        ...
		</w:p>

My main question is whether the structure here is always:
		<w:p>
			<w:r>
				<w:instrText></w:instrText>
			</w:r>
			<w:r>
				<w:instrText>...</w:instrText>
			</w:r>
                        ...
		</w:p>

or whether the outer element can ever be something different than w:p.

(and I created a dedicated ticket for this, per above)


trouble installing cffconvert in Ubuntu

I am trying to install cffconvert, but run into various error messages.
When doing pip install cffconvert I see the following messages among the printed output:

error: command 'gcc' failed with exit status 1
Failed building wheel for ruamel.yaml
Command "/home/vincent/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qfu5s255/ruamel.yaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-82yhofem/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-qfu5s255/ruamel.yaml/

I am using Python 3.6.2 and I get the same error message when trying to install cffconvert directly from github following the instructions in the README.
In addition when I run pytest, which of course is expected to fail when the package is not well installed I get the following error messages:
(cffconvert) vincent@vincent-VB:~/GGIR/cff-converter-python$ pytest test/
=============================================================== test session starts ===============================================================
platform linux -- Python 3.6.2, pytest-3.3.2, py-1.5.4, pluggy-0.6.0
rootdir: /home/vincent/GGIR/cff-converter-python, inifile: pytest.ini
plugins: cov-2.5.1
collected 0 items / 3 errors

===================================================================== ERRORS ======================================================================
_____________________________________________________ ERROR collecting test/citation_test.py ______________________________________________________
ImportError while importing test module '/home/vincent/GGIR/cff-converter-python/test/citation_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/citation_test.py:4: in <module>
    from cffconvert import Citation
cffconvert/__init__.py:1: in <module>
    from cffconvert.citation import Citation
cffconvert/citation.py:8: in <module>
    from pykwalifire.core import Core
E   ModuleNotFoundError: No module named 'pykwalifire'
________________________________________________________ ERROR collecting test/cli_test.py ________________________________________________________
ImportError while importing test module '/home/vincent/GGIR/cff-converter-python/test/cli_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/cli_test.py:4: in <module>
    from cffconvert import cli as cffconvert_cli
cffconvert/__init__.py:1: in <module>
    from cffconvert.citation import Citation
cffconvert/citation.py:8: in <module>
    from pykwalifire.core import Core
E   ModuleNotFoundError: No module named 'pykwalifire'
____________________________________________________ ERROR collecting test/consistency_test.py ____________________________________________________
ImportError while importing test module '/home/vincent/GGIR/cff-converter-python/test/consistency_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/consistency_test.py:5: in <module>
    from cffconvert.version import __version__ as expected_version
cffconvert/__init__.py:1: in <module>
    from cffconvert.citation import Citation
cffconvert/citation.py:8: in <module>
    from pykwalifire.core import Core
E   ModuleNotFoundError: No module named 'pykwalifire'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================= 3 error in 0.79 seconds =============================================================

Finally, it may be worth mentioning that I am trying to use the cff file in a repository with primarily R code, so if there would be a way to avoid having to use Python for the cff file that would be great.

Looks like your Python comes from Anaconda. Fair warning, I know nothing about Anaconda. However, after some Googling I found this: https://stackoverflow.com/questions/41060382/using-pip-to-install-packages-to-anaconda-environment
I think maybe you should do:
conda install cffconvert

assuming you already have pip (in the conda environment, not the system pip).

Hey @vincentvanhees, I've updated the instructions, let me know if they work for you:
https://github.com/citation-file-format/cff-converter-python/blob/4a1dd7e7410d69d3b95d6180e6fac4cc1468e265/README.rst

Hi @jspaaks
pip3 install --user cffconvert gives the same error.
conda install cffconvert does not work because cffconvert is not available in conda.
I have also tried to install it outside the conda environment, which results in the same error message.


Style in ControlTemplate does not work for content

Describe the bug
Style in ControlTemplate works for template child but does not work for content
To Reproduce
  <Window.Styles>
    <Style Selector="TextBlock">
      <Setter Property="Background" Value="Red"/>
    </Style>

    <Style Selector="Button">
      <Setter Property="Template">
        <ControlTemplate TargetType="Button">
          <StackPanel>
            <StackPanel.Styles>
              <Style Selector="TextBlock">
                <Setter Property="Background" Value="Green"/>
              </Style>
            </StackPanel.Styles>
            <TextBlock Text="33333"/>
            <ContentPresenter Content="{TemplateBinding Content}"/>
          </StackPanel>
        </ControlTemplate>
      </Setter>
    </Style>
  </Window.Styles>

  <StackPanel>
    <Button>
      <TextBlock Text="11111"/>
    </Button>
    <TextBlock Text="22222"/>
  </StackPanel>

Copy these codes to an empty window and show it. You can see the TextBlock1 is red.
Expected behavior
The TextBlock1 should be green.
Screenshots

Desktop (please complete the following information):

OS: Windows10
Version 11.0 preview4 from nuget

Additional context
DataTemplate may has the same problem.

I might be wrong, but IIRC that's by design, that logical tree is used for the styles lookup.
CC @grokys please confirm.

The "Button" actually means a custom control derived from ItemsControl. Now I add the style to the control in its constructor, then the style can apply to all its items. So is there other way to achieve this?

Selector="Button > TextBlock" to handle content logically inside (it won't be applied on the template content).

Thank you. The Child and Descendant Selectors really work.


Module 2 - Code Review

Module 2: Creating a Service with AWS Fargate
Code:
https://github.com/DavidChristiansen/aws-modern-application-workshop/tree/cdk-typescript/module-2

I'm not sure I like the multiple entry points in bin. I think it's better to have one entry point, and then simply specify in your scripts which Stack do you want to deploy (like cdk deploy MythicalMysfits-Module2-ECR).

Same comments about formatting and properties as here, also about the inconsistent 2 and 4 spaces.

I don't like the class names as well. In general, the names should be camel case - so, CiCdConstruct, EcsConstruct, etc., instead of CICDConstruct, ECSConstruct.

What's with all the permission grants in CICDConstruct? The Pipeline construct handles this automatically for you, if not - that's a bug, and we need to change it.

I think, instead of granting permissions directly:
    ECSTaskRoleStatement2.addActions(
      //  Allows the ECS tasks to interact with only the MysfitsTable
      //  in DynamoDB
      'dynamodb:Scan',
      'dynamodb:Query',
      'dynamodb:UpdateItem',
      'dynamodb:GetItem',
      'dynamodb:DescribeTable'
    );
    ECSTaskRoleStatement2.addResource('arn:aws:dynamodb:*:*:table/MysfitsTable*');

you should use grant methods:
props.dynamoTable.grantWrite(ECSTaskRole);

(see my comment below about getting access to the Dynamo table this way)

The moment your Construct takes more than 3 arguments in its constructor (and perhaps even more than 2), you should create a Props interface for it.
Example for ECSClusterConstruct:
export interface ECSClusterConstructProps {
  core: CoreConstruct;

  ecr: ECRConstruct;
}

export class ECSClusterConstruct extends cdk.Construct {
  public readonly Cluster: ecs.Cluster;
  public readonly ECSService: LoadBalancedFargateService;

  constructor(scope: cdk.Construct, id: string, props: ECSClusterConstructProps) {
    super(scope, id);

    // ...

(Although, like I said - I wouldn't use the types CoreConstruct and ECRConstruct here, instead using ec2.Vpc and ecr.Repository, and of course lowercase names).

import { LoadBalancedFargateServiceProps, LoadBalancedServiceBase } from '@aws-cdk/aws-ecs';

Don't import classes directly - just use the ecs prefix consistently, otherwise it looks weird.
The one exception we often do is the @aws-cdk/cdk module (for things like Stack, Construct, etc.).

Also, both properties and local variables should be lowercase - that is the usual TypeScript convention, doing it with uppercase looks weird and out of place.

That's it, please re-open if you have any more questions for me.

Forgot one thing:
        const codebuildProject = new codebuild.PipelineProject(this, 'BuildProject', {
            projectName: 'MythicalMysfitsServiceCodeBuildProject',
            role: codeBuildServiceRole,
            environment: {
                computeType: codebuild.ComputeType.Small,
                buildImage: codebuild.LinuxBuildImage.UBUNTU_14_04_PYTHON_3_5_2,
                privileged: true,
                environmentVariables: {
                    AWS_ACCOUNT_ID: {
                        type: codebuild.BuildEnvironmentVariableType.PlainText,
                        value: cdk.Aws.accountId
                    },
                    AWS_DEFAULT_REGION: {
                        type: codebuild.BuildEnvironmentVariableType.PlainText,
                        value: cdk.Aws.region
                    }
                }
            }
        });

There's no need for the type: codebuild.BuildEnvironmentVariableType.PlainText, that is the default.


Type support for Signal

Sleitnick shared that he did the type support before, but he didn't publish it, so I wanted to write it again and share it myself.
Example
local Signal = require(game:GetService("ReplicatedStorage").Signal)

local testSignal = Signal.new()

testSignal:Fire(1, "kra", 5)

testSignal:Connect(function(...)
	print(...)
end)

Thanks for the PR! See following notes for a couple changes. Once made, I'll merge this in!


intl

Because every version of flutter_localizations from sdk depends on intl 0.18.0 and phone_form_field 7.0.6 depends on intl ^0.17.0, flutter_localizations from sdk is incompatible with phone_form_field 7.0.6.
And because no versions of phone_form_field match >7.0.6 <8.0.0, flutter_localizations from sdk is incompatible with phone_form_field ^7.0.6.
So, because Maghelp depends on both phone_form_field ^7.0.6 and flutter_localizations from sdk, version solving failed.

what version of flutter are you using

3.9.0-9.0.pre.16
С уважением, Чупин В.В.
От: cedvdb
Отправлено: 18 марта 2023 г. в 15:01
Кому: cedvdb/phone_form_field
Копия: Vladilen; Author
Тема: Re: [cedvdb/phone_form_field] intl (Issue #167)
what version of flutter are you using
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Call not ending, must quit with CTRL+C

Hello,
When I am calling a basic command, wal -i Pictures/, it works as expected but it doesn't eventually return.
I get the usual command output:
[I] image: Using image B3FeWQS.jpg.
[I] colors: Generating a colorscheme.
[I] colors: Using wal backend.
[I] colors: Generation complete.
[I] wallpaper: Set the new wallpaper.

But I must use twice CTRL+C to quit, and then I get the Python error output and it ends.
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/thibault/.local/bin/wal", line 10, in <module>
    sys.exit(main())
  File "/home/thibault/.local/lib/python3.7/site-packages/pywal/__main__.py", line 223, in main
    parse_args(parser)
  File "/home/thibault/.local/lib/python3.7/site-packages/pywal/__main__.py", line 195, in parse_args
    sequences.send(colors_plain, to_send=not args.s, vte_fix=args.vte)
  File "/home/thibault/.local/lib/python3.7/site-packages/pywal/sequences.py", line 85, in send
    util.save_file(sequences, term)
  File "/home/thibault/.local/lib/python3.7/site-packages/pywal/util.py", line 86, in save_file
    file.write(data)
KeyboardInterrupt

What can be done to stop it hanging? I am using the latest version from Git. Thanks!

I'm sorry, after a reboot it works. I also had a problem with new terminals not getting the current theme, but it also fixed it. I'm sorry, have a nice day.


Feature request: Limit speed

When seedsync downloads something it literally takes my 100% of my speed meaning I cannot browse while the download is happening.
Is there a way to limit it to 90-95%?

I don't believe there is but you could reduce the number of threads. The whole purpose of Seedsync is to DL as fast as possible which other sync clients are not able to do. If you prefer a slower sync I would recommend syncthing.

Ah right, the reason I use SeedSync over Syncthing is because my seedbox not include LFTP as part of it's monthly traffic limit, but it would include it for Syncthing.


Tensorflow 3D demos?

I am unable to find a link to the demos mentioned in the tf3d setup doc:
https://github.com/google-research/google-research/blob/master/tf3d/doc/setup.md
"Now you are ready to start training or evaluation or try one of our demos"
Can you add a link, please?

Yes I would like to better understand the usage of this repository. For example, suppose that I have a dataset of point clouds with the related labels. (Eg Semantic Kitti dataset) and I just want to exploit the modules for 3D sparse convolutions, or the U-Net semantic segmentation model which are the core functions that are useful to try. How should I prepare my dataset? How can I build a simple model to train and test the semantic segmentation results? An helloworld example would be fantastic!


Add LGTM code quality badges

Hi there!
I thought you might be interested in adding these code quality badges to your project. They will indicate a very high code quality to potential users and contributors.
To get an idea of the analyses reflected by these grades, check the alerts discovered by LGTM.
N.B.: I am on the team behind LGTM.com, I'd appreciate your feedback on this initiative, whether you're interested or not, if you find time to drop me a line. Thanks.

Hi @martijnrusschen
Happy you found this useful.
Some precisions about how it's run:

Our recommended usage is to activate automated code review. LGTM will analyse immediately your pull requests, and report directly within the PR any new problem or fix.
Otherwise, LGTM will poll your repo once a day, and analyse all new commits, most recent first

Don't hesitate to drop me a line for any question


Jetson CUDA error

What is the issue?
I' ve built Ollama from source to run with CUDA  but unfortunately it doesn't start any more, I think since version 0.3.10 it's the same error. Before 0.3.10 everything was fine I was able to build ollama with CUDA and run any model, but now even smallest model 1b is crashing
I have the same Jetpack 6.0 with CUDA 12.2.140.
Error: llama runner process has terminated: CUDA error: the resource allocation failed
current device: 0, in function cublas_handle at ollama/llm/llama.cpp/ggml/src/ggml-cuda/common.cuh:644
cublasCreate_v2(&cublas_handles[device])
ollama/llm/llama.cpp/ggml/src/ggml-cuda.cu:102: CUDA error
OS
Linux
GPU
Nvidia, Other
CPU
Other
Ollama version
0.3.12

These sorts of errors on Jetsons are usually the result of trying to use the discrete GPU (sbsa) cuda library instead of the Jetpack specific cuda library.  Depending on how you're building/installing, you might have accidentally wound up with our dGPU cuda library in your path.
Once we get #6925 merged, our official builds will bundle the jetpack 5 and 6 libraries and wire things up at runtime correctly.


Change init script to text

I revisited this issue a few times as I went through many steps to try and get log analytics working.
To cut a long story short  you can find the correct init script by going to log analytics -> advanced settings -> connected sources -> linux servers, see at bottom there will be a link to DOWNLOAD AND ONBOARD AGENT FOR LINUX, use that link to create an init script that looks like this:
script = """
sed -i "s/^exit 101$/exit 0/" /usr/sbin/policy-rc.d
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -w <YOUR-ID> -s <YOUR-KEY> -d opinsights.azure.com
"""

#save script to databricks file system so it can be loaded by VMs
dbutils.fs.put("/databricks/log_init_scripts/configure-omsagent.sh", script, True)

The other parts of the init script shown in the document are not required i.e. you do not need to do a restart as in:
sudo su omsagent -c 'python /opt/microsoft/omsconfig/Scripts/PerformRequiredConfigurationChecks.py'
/opt/microsoft/omsagent/bin/service_control restart <YOUR-ID>

Request for review from any of @DhruvKumar, @mspreshah, @mssaperla


Brain sliders hotfix

hotfix for issue raised in #12612.

Can you touch the failing example so Circle will tell us if it works okay?


Stream playable with Video.js... not playable with Clappr...

Is there any way to play this stream with Clappr? http://live2-free-mediaset.secure.footprint.net/Content/HLS/Live/Channel(CH08HA)/index.m3u8
Video.js player can play it: http://ver.hol.es/vjs.php?vid=live2-free-mediaset.secure.footprint.net/Content/HLS/Live/Channel(CH08HA)/index.m3u8

Have already checked if it's not your source stream? anyway you should open this issue on hlsjs github repo.
https://video-dev.github.io/hls.js/demo/?src=http%3A%2F%2Flive2-free-mediaset.secure.footprint.net%2FContent%2FHLS%2FLive%2FChannel(CH08HA)%2Findex.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined

@hijuuijj I didn't mean it in a bad way ;P it's seriously to open an issue on hls.js github since it happens with the playback too, clappr behind the scenes uses hls.js. Thanks.


Issues with onChangeDate

I am having issues with the onChangeDate method prop.
I have a custom calendar strip (functional component) working off of a selectedDate state variable. However, anytime I change the state of selectedDate from onChangeDate, I get the following error:
Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
Here is my code:
import React, { useCallback, useState } from 'react';
import { View, StyleSheet, Modal, Dimensions, Text, TouchableOpacity } from 'react-native';

import { Colors, Typography, Spacing } from '../../styles';
import { Label, FloatingActionButton } from '../../components/atoms';

import { CalendarStrip } from '../../components/molecules';
import { Calendar } from 'react-native-big-calendar'

import { isEqual } from 'date-fns';

import NewEvent from '../NewEvent';

const events = [...]

const deviceHeight = Dimensions.get('window').height
const calendarStripHeight = 30 + 30 + 50 + (2 * Spacing.S)

const Schedule = ({ navigation }: { navigation: any }) => {
    const [modalVisible, setModalVisible] = useState(false);
    const [selectedDate, changeSelectedDate] = useState(new Date())

    const calendarHeight = deviceHeight - Spacing.XXXL - calendarStripHeight - Spacing.XL - Spacing.L - (2 * Spacing.S)

    const handleNewCarpoolEventTapped = () => {
        setModalVisible(!modalVisible)
    };

    const onChangeDate = useCallback(([start, end]) => {
        changeSelectedDate(end)
    }, [])

    const renderEvent = <T extends ICalendarEventBase>(
        event: T,
        touchableOpacityProps: CalendarTouchableOpacityProps,
    ) => (
        <TouchableOpacity style={styles.eventContainer} {...touchableOpacityProps}>
            <Text style={styles.eventTitle}>{`${event.title}`}</Text>
            <Text style={styles.eventDescription}>{`${event.driver} | ${event.rider_count}`}</Text>
            <Text style={styles.eventLocation}>{`${event.location}`}</Text>
        </TouchableOpacity>
    )

    return (
        <View style={styles.container}>
            <Label
                text={'Schedule'}
                font={Typography.BOLD}
                size={Typography.L}
                color={Colors.PRIMARY}
                topSpacing={Spacing.XXXL}
                bottomSpacing={0}
            />
            <CalendarStrip
                selectedDate={selectedDate}
                markedDate={['2022-07-13', '2022-07-16']}
                onPressDate={(date: Date) => {
                    changeSelectedDate(date);
                }}
                onPressGoToday={(today: Date) => {
                    changeSelectedDate(today)
                }}
            />
            <Calendar
                events={events}
                height={calendarHeight}
                ampm={true}
                mode={'day'}
                date={selectedDate}
                renderHeader={() => null}
                scrollOffsetMinutes={600}
                swipeEnabled={true}
                eventCellStyle={styles.eventContainer}
                renderEvent={renderEvent}
                onChangeDate={onChangeDate}
                onPressEvent={(event) => console.log(event)}
            />
            <FloatingActionButton
                onPress={() => handleNewCarpoolEventTapped()}
            />
            <Modal
                animationType='slide'
                transparent={true}
                visible={modalVisible}
                onRequestClose={() => {
                    setModalVisible(!modalVisible);
                }}
                statusBarTranslucent
            >
                <NewEvent close={() => setModalVisible(!modalVisible)} />
            </Modal>
        </View>
    );
};

Hi, can you try to wrap your handler with useCallbaek ?

That doesn't fix the issue. here is the new code:
const Schedule = ({ navigation }: { navigation: any }) => {
const [modalVisible, setModalVisible] = useState(false);
const [selectedDate, changeSelectedDate] = useState(new Date())
const calendarHeight = deviceHeight - Spacing.XXXL - calendarStripHeight - Spacing.XL - Spacing.L - (2 * Spacing.S)

const handleNewCarpoolEventTapped = () => {
    setModalVisible(!modalVisible)
};

const onChangeDate = useCallback(([start, end]) => {
    changeSelectedDate(end)
}, [selectedDate])

const onPressEvent = useCallback((event) => {
    console.log(event)
}, [])

const renderEvent = <T extends ICalendarEventBase>(
    event: T,
    touchableOpacityProps: CalendarTouchableOpacityProps,
) => (
    <TouchableOpacity style={styles.eventContainer} {...touchableOpacityProps}>
        <Text style={styles.eventTitle}>{`${event.title}`}</Text>
        <Text style={styles.eventDescription}>{`${event.driver} | ${event.rider_count}`}</Text>
        <Text style={styles.eventLocation}>{`${event.location}`}</Text>
    </TouchableOpacity>
)

return (
    <View style={styles.container}>
        <Label
            text={'Schedule'}
            font={Typography.BOLD}
            size={Typography.L}
            color={Colors.PRIMARY}
            topSpacing={Spacing.XXXL}
            bottomSpacing={0}
        />
        <CalendarStrip
            selectedDate={selectedDate}
            markedDate={['2022-07-13', '2022-07-16']}
            onPressDate={(date: Date) => {
                changeSelectedDate(date);
            }}
            onPressGoToday={(today: Date) => {
                changeSelectedDate(today)
            }}
        />
        <Calendar
            events={events}
            height={calendarHeight}
            ampm={true}
            mode={'day'}
            date={selectedDate}
            renderHeader={() => null}
            scrollOffsetMinutes={(new Date()).getHours() * 60}
            swipeEnabled={true}
            eventCellStyle={styles.eventContainer}
            renderEvent={renderEvent}
            onChangeDate={onChangeDate}
            onPressEvent={onPressEvent}
        />
        <FloatingActionButton
            onPress={() => handleNewCarpoolEventTapped()}
        />
        <Modal
            animationType='slide'
            transparent={true}
            visible={modalVisible}
            onRequestClose={() => {
                setModalVisible(!modalVisible);
            }}
            statusBarTranslucent
        >
            <NewEvent close={() => setModalVisible(!modalVisible)} />
        </Modal>
    </View>
);

};

any other advice @acro5piano ?

@rohanvasishth
I'm not sure what is the root cause. You can try to wrap renderEvent with useCallback. If that doesn't help, try to remove props one-by-one and detect which prop affecting the issue.

@acro5piano  The same issue is happening with me as well, function passed to onChangeDate runs infinitely, and goes in a loop.

@rohanvasishth I'm not sure what is the root cause. You can try to wrap renderEvent with useCallback. If that doesn't help, try to remove props one-by-one and detect which prop affecting the issue.
as per my understanding
this is happen because of an extra useEffect at line num 144 and the extra dependency in another useEffect which is at line num 183 of CalenderContainer.tsx I have tested it by fixing that on my side and it's working fine
I can create MR for that but I am not sure for what reason you have done that can you recheck that, please

@acro5piano
https://github.com/acro5piano/react-native-big-calendar/pull/764
here is the MR for this issue
this fix will resolve the issue but we are getting eslint error
and I tried to fix it as per the recommended way which you also implement but it causing infinite setState
so I have to disable the es-lint  rule for this since its a major issue we can disable it
although I haven't push that change of eslint in this MR

@mubashiralisiddiqui Thanks. Let's continue to discuss it on the pull request page.

The fix was released on v3.3.1. Thank you very much @mubashiralisiddiqui !
I close this issue for now. If the problem continues, feel free to reopen this issue.

This issue was re-resolved on #801 , because #764 created a issue on swiping right to left.


[incubator/druid] deprecating chart

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/mychartname])

@mattfarina
Any reasons for that ?

@maver1ck Today is the day we turn down the stable and incubator repos. See https://helm.sh/blog/charts-repo-deprecation/ for more details. We've been announcing that this was coming for the past year.

https://github.com/helm/charts/issues/24310


Added fix for crash on a standalone esxi host

Fixes #4, as suggested by @vb4life
Confirmed to work on standalone esxi host.
Please test to make sure that vCenter setup still works, since I haven't got any to test myself.

I don't have access to a vCenter installation at the moment, so we'll see if anybody reports it breaking. Thank you @mikenowak and @vb4life!

I have it running on both vCenter and standalone esxi, so no worries there


Need acknowledgement of SIH and GRDC on web site

We need this at the bottom of every page, or at least on the About tab.
The About tab also should give a reference for citing the database... we might need to ask the client about preferences here.

This is currently waiting on @geezacoleman providing About section content.

@jnothman did you want an SIH logo on the About page? Text should be good to go today.

and SIH Logo looks a lot like a sydney uni logo, but yes, we should have there.


odo create --s2i nodejs node creates a devfile with incorrect value for .metadata.name

/kind bug

What versions of software are you using?
Operating System: all
Output of odo version: main
How did you run odo exactly?
odo create --s2i nodejs node
Actual behavior
$ grep metadata -A2 devfile.yaml
metadata:
  name: node
  version: 1.0.0

Expected behavior
$ grep metadata -A2 devfile.yaml
metadata:
  name: nodejs
  version: 1.0.0

/milestone 2.4

This is correct behavior.
If you are running
odo create --s2i nodejs node

you are specifying that your component should be named node and this should reflect metadata.name

you are specifying that your component should be named node and this should reflect metadata.name

Then IMO it's a bug that odo create nodejs nodejs-ex-123 (note that there's no --s2i passed this time) doesn't set .metadata.name to nodejs-ex-123 in the resulting devfile:
$ odo create nodejs nodejs-ex-123
Devfile Object Validation
 ✓  Checking devfile existence [37955ns]
 ✓  Creating a devfile component from registry: OCI [49465ns]
Validation
 ✓  Validating if devfile name is correct [36998ns]

Please use `odo push` command to create the component with source deployed

$ grep -A3 metadata devfile.yaml
metadata:
  name: nodejs
  version: 1.0.1
  displayName: NodeJS Runtime

$ grep 123 devfile.yaml
# no output

Then IMO it's a bug that odo create nodejs nodejs-ex-123 (note that there's no --s2i passed this time) doesn't set .metadata.name to nodejs-ex-123 in the resulting devfile:

This is something that we should change. When we start with devfile there was no other way to do this so we used  env.yaml to store the custom name. Now there is no reason to keep doing this, and we should use metadata.name for it.

@kadel modifying current issue description seems like a mess. I'll create another issue.
Another problem is that if we do odo create --s2i nodejs nodejs-ex-123, .metadata.name gets set correctly, but .metadata.language doesn't. Which would become a problem for telemetry because there won't be any way to find componentType information.
Opening separate issue for both the problems.
/close


apim_folder lib paths incorrect?

When setting apim_folder to the apigateway directly as instructed I had to update the build.gradle lib paths to include the system folder like this:
implementation fileTree(dir: "${apim_folder}/system/lib", include: '*.jar')
implementation fileTree(dir: "${apim_folder}/system/lib/plugins", include: '*.jar')

Is this the normal path?

Yes @jschutte27 , i copied the jar files to local machine and used custom directory structure.
Let me follow same naming convention as api gateway.


orderbook validity

Hi nlsdfnbch,
Hope you are well.
I have been working on the python API implementation of several exchanges. But recently I ran into some trouble with exchanges like Bitfinex and Gemini. The problem is that when we try to maintain a real-time order book, we need all the messages and we need them in correct order. But websocket client sometimes could miss messages or receive out-of-order messages. Websocket API of Bitfinex and Gemini does not offer ways to verify the message, so our local order book could be wrong but we don't know it. (by the way GDAX API does not have this problem).
I'm just writing to see what do you think about this problem.
Blessings,
Seratna

Hey there,
great to hear there's someone else working on the same problem (I'm working on a framework for a cross-platform API for bitcoin exchanges ).
I've ran into this issue as well - however, for both exchanges there is a solution available:
Bitfinex offers a configuration endpoint (for v2 of the WebSocket API). This allows you to enable sequencing, hence giving you an option to validate the correct order of messages.
It's not perfect (sequencing is local (it starts anew each session), as opposed to sequencing at Poloniex, which is global and allows you to compare websocket trades with REST Books), but it's certainly better than nothing.
Gemini offers timestamps in each payload (in both in ms and s since epoch). This can be used to ensure correctness of order, as the timestamps are created by the trading engine (not the API), as far as I was able to confirm.
Best of luck,
Nils

Hi Nils,
Thank you so much for your kind reply.
It is true that timestamp and event_id can help verify the order of the messages, but they still cannot tell dropped (missing) messages. GDAX does not have such problem because the sequence number is increased by 1 at each step. But timestamp and event_id do not offer such property. Any suggestions for identify missing messages?
BTW your cross-platform API implementation is AWESOME!
Blessings,
Seratna

Thanks, I'm glad you appreciate it! It still needs a lot of work, but I'm getting there.
The only approach would be cross-referencing your built order book via a REST API query to the order book endpoint - however, this requires a server-side timestamp on the book, which isn't alway present unfortunately. You would then have to check a snapshot of your built order book - which would have to reflect the state of the book at the REST query's timestamp - against this query.
So, in short, you will have to keep a history of messages and a built order book in memory to get it to work. But since this is regressive, it ultimately means that there is always a chance of missing an update message in your book. But this is the same for GDAX's sequence number (albeit their API is truly top-notch, and the number of out-of-order messages has been next to 0 for me).

Thanks Nils,
I guess cross-referencing is the best we could do now.
Currently we I did is to have a hash function to hash the local order book and store 50 hashed result as my order book history, and compare the hashed result of REST order book snap shot. If there's a discrepancy, I restart the websocket.
Regarding GDAX, I currently run it 24/7 and every one or two days I would have a out-of-order or missing message. I guess the point is not this won't happen, but is that when there's a missing/misplaced message, we can identify it and restart.
It's really nice talking to you. And I hope we have more chance to discuss these exchanges.
Blessings,
Seratna

keeping the last 50 hashes seems excessive, no ?
Afterall, once you notice it's out of place, all you would have to do is add all new messages older then the correct snapshot's time stamp. That way, you'd only ever have to keep, say, 1 snapshot and messages for the past 30 seconds or whatever request lag you have  for the REST API (plus some buffer).
So, in Pseudo code this would be..
wss = WebSocketConnection()
wss.recv()  # Version number message

wss.subscribe()  # Subscribe to whatever book

 # Magic order book class that keeps track of your ob
# and the last time it was updated
orderbook = OrderBook()
orderbook.update(json.loads(wss.recv()))  # Snapshot

> In a separate Thread, keep track of the messages and add it to the message list

    wss_message_q = []
    while True:
        data = json.loads(wss.recv())
        wss_message_q.append(data)  # Store messages
        orderbook.update(data)

> In another thread, every minute, compare the snapshot and if your own is out of sync? Discard
> the old one, use the new one, and check if there's a message in the q younger than the snapshot's
> timestamp and add that.

    while time.time() - start < 60:
        # Now get a fresh snapshot from the REST API
       fresh_orderbook = requests.get(orderbook)
       if fresh_orderbook != orderbook:
           orderbook = OrderBook(fresh_orderbook)
           for msg in wss_message_q:
               if msg.age > orderbook.age():
                   # Old, discard it
                  continue
               else:
                   orderbook.update(msg)
          # Reset the message list, since we're done
         wss_message_q = []

Of course for this to work you need to take into account thread-saftey etc., but ultimately this should work just as fine and be a bit more performant (I hope that code made sense to you ;D)
If you have further questions or discussions, feel free to do so!

Thank you very much!
I will have a look

How about writing to every exchange, that they should offer an optional ws orderbook, like the one from therocktrading:
https://api.therocktrading.com/doc/#api-websocket
"Get first 20 orderbook rows on order book changes".
This way you always have best 20 bids/asks without any problems. And usually this is enough to trade.
I already wrote to alot of exchanges, that they should add such a thing, but it seems I'm the only one requesting this...

So please also write to them :)

What would be the point of that? You can get an order book from the REST API, or if you want it real-time you should build it yourself. Having a WS endpoint for this sort of thing does not make much sense to me.

so I assume you are not a trader?
I always need the latest ~20 bids asks to see if there is a good trading opportunity.
Most exchanges, like bitfinex have very low REST api call limit. If you want to trade every currency pair, it is just impossible to always make the REST API call, to stay up to date with the orderbooks.
I do not need the whole orderbook, just ~best 20. And for this it is the perfect solution.

@Serpens66 while this could be something nice to have, it is hard for the exchange to actually implement it. Some trader need best 20 bids asks, some need 100; for less liquid coins, some may need 200. That's why exchanges offer the whole L2 book.
@nlsdfnbch Hi Nils, I tried the Bitfinex websocket v2 with sequencing and it worked. And Gemini told me they are adding sequencing to the API but no ETA yet.

@Serpens66 Well, but how would you request it? A wss channel that broadcasts the top 20 on every order book change ? You essentially have that already, by building your own order book. It would simply be a convenience method, so I can understand that this is a low priority for API devs.
@Seratna , thanks for the update!

yes, that is how it works at therocktrading.
The problem with update-orderbook is, that it is inconsistent after minutes/hours (I do a bid>ask test to find out).  This happens for GDAX and Bitstamp quite often, although I already update the orderbook with REST API every 1 hour.  With Cex ws this problem is only very rare, so it is the only exchange I use the realtime orderbook.
Therefore I even do not know, if it is a problem with connection (missing updates), or if it is a problem with my code. I tried my own code and also this one: https://github.com/danpaquin/gdax-python/issues/80#issuecomment-314316146
But both have same issue with bid>ask.
And if you trigger trades on a faulty orderbook, this can be deadly, especiall if you don't know it is faulty.
Bitfinex is now the next on my list to test, that's why I came here.
I will try your solution to update the orderbook (I only used lists for the orderbook yet, but I see you make it a dicitionary. This way it is much simpler to add and remove an entry (do not have to loop over entries to find the one to remove), so it sounds good.
I will also take a look at your code about other exchanges. Thanks for sharing.
But how do you convert this raw-orderbook dictionary into something useable? I mean how do you order it by price, since dictionaries are not ordered? If I request the orderbook ~every 1-2 seconds from my websocket script, and all the time I have to convert it to an ordered list, I can imagine this is not the right way to go?

@Serpens66  To (efficiently) get the bid/ask or the ordered prices from the order book, you need store the order book in a self-balancing tree (AVL tree or red-black tree) or in a priority queue. I am using priority queue. I am doing some final test on the implementations and I will share the code when it is finished.

@Serpens66 , have a look here. The Orders Class is what takes care of sorting the keys.
@Seratna , that's an interesting approach! Please do share- I'd love to implement it into this project if it provides better performance than my dict-based approach.

@Serpens66 @nlsdfnbch Here's my code of a working implementation of the GDAX API.
https://github.com/Seratna/GDAX-python
You put in the API key, secret and passphrase, you should be able to run it. The order book was built on top of a priority queue and a dict. Updates of the order book can be done in O(lgn) time and getting the actual bid/ask can be done in O(1). (my system only needs the best prices, but it is very easy to return more price levels given the priority queue). I would say red-black tree is also a good candidate, but it takes O(lgn) to get the quote.
The code is part of a bigger project, so you may find some of the methods confusing. If you have any questions, just let me know.

@Seratna , have you compared its performance ? And how do you get the largest item from your book? I only see a heappop() call, which should return the smallest item on the heap, no?
Also, if you discard out-of-order messages, shouldnt you also request a new book? Afterall, you would have to keep a history of your messages and rebuild the orderbook with the new out-of-order message in the correct order instead, since your book is missing data otherwise.
An interesting alternative might also be using a Skiplist (I'm trying that out atm) - because while my Order book implementation using a dict has O(1) update speed, returning it still requires to sort keys first. Also, it requires much more memory (since the hash table is duplicated every time too many of its buckets are filled, but memory never released).

@nlsdfnbch ,

Regarding the performance, there's a significant improvement especially for large books, for example the order book (L3) of GDAX. Because priority queue takes O(lgn), sorting the dict takes O(nlgn), and iterating over the dict (for example max()) takes O(n).
One priority queue is used for bids and another one for asks. keys of the asks are prices, and keys of bids are negative prices. So the smallest ask would be on the top of the its heap and largest bid would be on the top of the other heap. And the top of the heap is just the first element, so no sorting needed and it takes O(1).

And for out-of-order messages, it would raise DataError (line 339 and 347). This DataError would be caught in websocket module (line 74) and websocket would re-connect and build a new book.

I would still prefer heap queue and red-black tree over Skiplist as they introduce less overhead (IMO). But yes it is a very interesting data structure.


FAQ: Status keys and recovery phrase

Hello @shamisem – Here is a new document for your review.
Thanks!

380 second draft -- ready for review
380 reprhase doc title – 'Create or restore your Status profile using a recovery phrase'-> 'Create or restore your Status profile using the recovery phrase'

Note: I can't link this PR to its corresponding issue #380 in the GitHub project board.

Thanks for your review comments, @earakel !
I have applied your suggestions.


PS scripts on docker

Hello,
How can I run my powershell scripts on the docker container?
For example:
I want to export .navdata file from a template company, then create 2 new company's and import this .navdata file back into the 2 company's.
Is this possible on docker?
Kind Regards,
Nicasens Kenneth

Yes
docker exec -it  powershell
will start a powershell prompt inside the container.
then do
. c:\run\prompt.ps1
in order to load all NAV Powershell Cmdlets
or use navcontainerhelper which have functions like enter-navcontainer or open-navcontainer.

I will try that, thanks for the quick reaction.

navcontainerhelper module has also Invoke-ScriptInNavContainer function.
Example:
Invoke-ScriptInNavContainer -containerName $containerName -scriptblock {Write-Host "Test"}


Year 4 Season 1 Operators - Gridlock & Mozzie

Add new icons from https://marcopixel.eu/r6-operatoricons/
Add operators to the graph
Add any counter relationships for these operators
Open a new issue for further relationship refinement after the operators have been released for a few days

This issue cannot be completed yet.

https://www.reddit.com/r/Rainbow6/comments/ar2o8o/gridlockmozzie_highresolution_operator_icons/

I was looking to contribute to this project. I figured I would start with the oldest issues and work my way towards the newer ones. This issue seems to have been resolved and should be closed.
The SVG files for both Gridlock and Mozzie exist in /src/main/images/svg
Counters have also been added to r6OperatorsCounters.json
It looks like this was handled in PR #123
Note: I'm not a R6 Siege player, so won't be able to provide input on the data being provided itself. But as a game, I understand the value of tools like this and would like to help refine and expand upon this tool.

Thanks @lynx-the-cat ! You are very welcome to contribute to the project.
The project hasn't been too active in the past few months because we've put a hold on adding new relationships to the graph (apart from brand new character releases). The reason we did this is because the performance of the site is really bad. The framerate is very low when using it and it feels sluggish. This gets worse the more relationships we add to the graph.
Feel free to look at any maintenance tasks (improving the development environment etc.) or any enhancement tasks (i.e. making the site easier to read, adding more ways to filter the data etc.). Any ideas for new issues are welcome too!
The biggest area of need are the performance issues. It would be awesome to improve the performance of the site as it would make so many of the other tickets easier to work on (its hard to add new data when it ends up making the site slower and slower).
Feel free to send me any questions if you would like to contribute to the project! :)


competitions: Fix for reaching seasons and discussions when no competition is assigned to current site (throw 404)

sorry for inconsistencies with merges and commits

Fixes #22 btw

This is looking good, can you please rebase the fix on top of current master?

Done.

Thanks!