WIP: Docs revamp (vanilla .md)

Objectives of this upgrade

migrate from .mdx to .md with minimal losses in UX
create simple interface for contributors to add and maintain content
separating content maintenance and dev concerns

[ ] versioning TBD

Staging preview
https://develop-docs-revamp--substrate-docs.netlify.app/quick-start/
Content
folder structure
Content is moved into folder: ./content/docs/

[x] added folder structure for collections (eg: main-docs), topics (eg: why-substrate): ./content/docs/<collection>/<topic>/:article.md
[x] remove indexing from folder names, order is provided by yaml config file in navigation

slug generation

[x] generating pages with /path/slug/ based on .md file location
[x] ./content/docs/<collection>/<topic>/:article.md will be resolved as URL path /collection/topic/article/
[x] collection pages: ./content/docs/<collection>/index.md will be resolved as URL path /collection/
[x] topic pages: ./content/docs/<collection>/<topic>/index.md will be resolved as URL path /collection/topic/

frontmatter

[x] providing only necessary info in .md files:

---
title: Markup Test page
keywords:
  - node
  - template
  - basics
---

custom blocks

[x] add simple custom blocks to .md markup:

[[info]]
| This custom block uses **simple** `[[info]]` markup directly in vanilla markdown and renders as html

See here: https://develop-docs-revamp--substrate-docs.netlify.app/quick-start/#custom-blocks-feature

[x] add possibility to use <custom-components>

<custom-components data="arg">Content</custom-components>

header and footer meta

[ ] add last commit info on build time
[ ] add header and footer UI (breadcrumbs, edit, repot issue, version, next, prev)

Tutorials

[x] tutorials page is generated only from content in /docs/tutorials/ sourcing all info from file frontmatter
See here: https://develop-docs-revamp--substrate-docs.netlify.app/tutorials/
[x]  simplified tutorial frontmatter template:

---
title: Build a local blockchain
description: Launch and interact with your first Substrate chain in this minimal end-to-end guide.
featured_image: /media/images/docs/tutorials/build-blockchain/thumbnail.jpg
keywords:
  - node
  - template
  - basics
difficulty: 1
duration: 60 #using integer in minutes
skills:
  - Rust
  - Blockchain basics
#providing links to next and prev page to be generated in the footer
previous: /main-docs/why-substrate/choose-a-dev-platform/
next: /reference/glossary/
---

Media

[x] media files to be stored (using verbose and complete internal path): ./media/images/docs/<path>/:image
[x] to be referenced in .md as: /media/images/docs/tutorials/build-blockchain/thumbnail.jpg
[x] add image resolver to work around gatsby-relative-images not parsing image source relative paths
[x] add lazy loading to remote image sources

Docs navigation

[x] use single yaml config file (./config/docs.yaml) to generate docs sidebar navigation (reference Mkdocs)

# Navigation:
nav:
  - Quick Start:
      - '/quick-start/'
  - Docs:
      - '/main-docs/' #category page link
      - 'Why Substrate?': '/main-docs/why-substrate/choose-a-dev-platform/' #page link
  - Reference:
      - 'Glossary': '/reference/glossary/'
  - Tutorials:
      - '/tutorials/'
      - 'Build a local blockchain': '/tutorials/build-blockchain/'
      - 'Initiate a Forkless Runtime Upgrade': '/tutorials/forkless-upgrades/'

[x] accepts external URL instead of path
[ ] update yaml file nav: structure (using key/value pairs) to support future i18n

Infrastructure

[ ] moving unused files into __legacy folder prior future deletion
[ ] upgrade lunr search to build index upon .md files
[ ] upgrade gatsby version + plugin compatibility
[ ] decommission mdx components and plugins

Great minds, haha. I also put together a list of "requirements" from the doc perspective. This looks closely aligned with what I had in mind.
For reference, here was my short list:

[ ] Simple and flexible file structure that accommodates grouping multiple files in the same directory with human-readable file names.

[ ] Writer-controllable navigational structure that is easy to modify. It needs to be easy to:

Add new pages
Change the order of pages
Change the titles of pages and have any name changes picked up in navigation (if it is a manual step, it needs to be easy)

[ ] Full site search (ideally, controllable search indexing to skip some words, but that’s a nice-to-have).

[ ] Simple versioning support (archive snapshots on some cadence is probably the simplest solution). Mkdocs supports a separate Python extension to provide some simple versioning if docs are hosted on GitHub pages. https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning
https://github.com/jimporter/mike

[ ] Syntax highlighting (tabbed code fence blocks would be a nice-to-have, but so far I’m not seeing much that calls for that approach).

[ ] Controllable copy to clipboard for code blocks, so that the copy button is not included for output or code examples that shouldn’t be copied exactly as-is.

[ ] Very simple minimalistic Note, Warning, and Tip styles (could be just done with CSS instead of React components).

@rmnprkrl , at some point (soon-ish), I think we will want to move out revamped content from the sandbox into an appropriate branch to be build using your site generation setup instead of our mkdocs site generator and work area. Maybe in the next two weeks or so we would have enough critical mass of new and existing content ready to migrate.
Does that make sense to you?

@rmnprkrl can we turn this into an MVP which can be merged into master so we can start using these features.
I think such a large pr with so many things could be in review / in progress forever.

@rmnprkrl any updates on this for us? :grin:

Looks like we can close this and migrate work to https://github.com/substrate-developer-hub/substrate-docs :tada:


why results3

https://github.com/mse2321/muzak/blob/master/js/app.js#L103
User variable names that mean something. If it's the results, then use that. the 3 doesn't add any meaning. If you don't want to leave it as results, then make the var name relevant like artist_results or something

same note here: https://github.com/mse2321/muzak/blob/master/js/app.js#L194

Done


Release azure-cli-container 0.1.1b2

Reviewers, please verify the following for this PR:

[ ] The PR title has format Release <component-name> <version>.
[ ] setup.py has been modified with the same version as in the PR title.
[ ] HISTORY.rst has been modified with appropriate release notes.
[ ] If releasing azure-cli or azure-cli-core, __version__ defined in __init__.py should also be modified to match.

Release of 'azure-cli-container' with version '0.1.1b2' successful. View at https://pypi.python.org/pypi/azure-cli-container/0.1.1b2.

GitHub release created. https://github.com/Azure/azure-cli/releases.


Add Go fonts. Set harvey to use Go Mono 14pt by default.

Signed-off-by: John Floren<EMAIL_ADDRESS>

As requested.


CssMin incorrectly handles media queries

When using middleman with Zurb Foundation I noticed that media queries stopped working in production. Looks like cssmin doesn't handle media queries very well:
this valid css:
@media handheld, only screen and (device-width: 768px), (device-width: 800px)
will get turned into this invalid css:
@media handheld, only screen and(device-width: 768px), (device-width: 800px)
Note the missing space between 'and' and the '(' in the second version. The regexps need tweaking ? I'm running middleman 3.0.0.beta.1 which is otherwise great!

Very strange. Is this in a preprocessor like Sass? Is minify_css enabled?

Verified this bug in the source project:
https://github.com/rgrove/cssmin
Will hunt down a fix somewhere in this regex :)
# Remove unnecessary spaces, but be careful not to turn "p :link {...}"
# into "p:link{...}".
css.gsub!(/(?:^|\})[^\{:]+\s+:+[^\{]*\{/) do |match|
  match.gsub(':', '___PSEUDOCLASSCOLON___')
end
css.gsub!(/\s+([!\{\};:>+\(\)\],])/, '\1')
css.gsub!('___PSEUDOCLASSCOLON___', ':')
css.gsub!(/([!\{\}:;>+\(\[,])\s+/, '\1')

Tracking here:
https://github.com/rgrove/cssmin/issues/3

"Fixed" by using a different library. This one removes different spaces, but I think leaves the output valid.


Crash when analysing relatively large x86 binary

I'm not sure what triggered the error, however after a couple hours of analysis this error was thrown. Please let me know if there's any other information I can provide.

I downloaded the plugin and ran it locally because trying to run it through the plugin manager resulted in some very... undesirable behavior...

Can you please get the latest commit on main branch (https://github.com/CySHell/ClassyPP/commit/dd0b17eced64a884b4a1cb72fb18c712f1c26a85), run the plugin and send the log_debug.txt file ?

So I've done just that, however the log file is over a gigabyte in size. How would you like me to send it to you?

please compress it (since its a text file it should compress nicely) and upload to:
https://1drv.ms/u/s!AkXMoA4QfqQ7gYOhfD1NxCpGKvJggyA?e=4K2MZm

Uploaded, please let me know if you figure out the issue, it took multiple hours to run. @CySHell

Fixed in version 1.5


Sapling keys and addresses

I need test vectors! But otherwise ready for review.

Didn't check against the spec yet, but looks good so far!


The beginnings of a paint swatch

Coverage increased (+0.4%) to 43.375% when pulling 4bfe765859fd68fd8def5350289f37fe74be2790 on bjornreppen:paint-swatch into 51a2060c3bb973db05bd9dd2439b54e02e53ab17 on Artsdatabanken:master.


Bigchain DB nodes in a 4 node cluster unable to replicate the data

I have set up a cluster of 4 nodes.
The operating system on each of those is Ubuntu 16.04
The bigchaindb version is : 2.0.0b3
Tendermint version: 0.22.3
The nodes were set up as per instructions in
https://docs.bigchaindb.com/projects/server/en/latest/simple-network-setup.html
The ports mentioned in the above link are open on each of those machines.
Current Behavior

I make a simple hello world create transaction on a particular node (say node 1).
Transaction is completed and a transaction ID is returned.
I query node 1 (using http api or directly accessing database)
I am able to find the transaction
I query the other nodes' (node2, node3, node4) HTTP API or their database, I am unable to find the transaction.

Expected Behavior

The transaction data should be replicated among the nodes of the cluster.

What I want
Some help in debugging. I expect bigchaindb should raise a warning or an error, when replication fails in a cluster. It might even be raising it, but I am not sure what is the right place to look for. (There were no errors on output of the bigchaindb start output.)
What I have tried so far

Tested ping for nodes - they were able to ping each other
Unblocked the required ports and double checked them

output of sudo lsof -i -P -n

@CosmicCoder96 It seems to me that something from the above description is missing i.e. what you are trying to imply here is that only 1 node commits the transaction in a 4 node network. This is not possbile as a transaction is considered commited if at least 3 nodes commit the transaction. I would suggest making sure that all the nodes are infact connected and are part of the same blockchain.

@kansi how can I check that - presently when I say it's a 4 node network, it's based on the following:

They share the same genesis.JSON
In config.toml - all 4 nodes are listed as persistant peers

@vrde wrote some tips to help you get diagnostics on your Tendermint network, at https://github.com/vrde/notes/tree/master/tendermint
Note that port 46657 has changed to port 26657 in the latest release. (This change was made by Tendermint.)

@ttmc Thanks for sharing this, this has certainly given me the information I was looking for.
This is the output
{
  "jsonrpc": "2.0",
  "id": "",
  "result": {
    "listening": true,
    "listeners": [
      "Listener(@<IP_ADDRESS>:26656)"
    ],
    "n_peers": "0",
    "peers": []
  }
}

Which justifies the current behaviour. So essentially the connection has failed.
This is my genesis.json:
{
  "genesis_time": "2018-07-18T15:48:46.24269529Z",
  "chain_id": "test-chain-cl61op",
  "consensus_params": {
    "block_size_params": {
      "max_bytes": "22020096",
      "max_txs": "10000",
      "max_gas": "-1"
    },
    "tx_size_params": {
      "max_bytes": "10240",
      "max_gas": "-1"
    },
    "block_gossip_params": {
      "block_part_size_bytes": "65536"
    },
    "evidence_params": {
      "max_age": "100000"
    }
  },
  "validators": [
    {
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "ntjRee68kn5ijvCMd01LyNm2dMuhpKaLieeaydLg3ns="
      },
      "power": "10",
      "name": "Coordinator"
    },
    {
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "2cU5ZnA3bo6Rm01XRqyQxqIddc4GQAMwEbRQ38+lDGI="
      },
      "power": "10",
      "name": "Member 2"
    },
    {
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "v3CI6fpQ59tNnmZ4VkFWZPs4sFKnl6L7mnGjZCxr97Y="
      },
      "power": "10",
      "name": "Member 3"
    },
    {
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "90cslPYMfdWD640GSuIafCQVQOi7wBgzF6PMqBwYHWM="
      },
      "power": "10",
      "name": "Member 4"
    }
  ],
  "app_hash": ""
}

What could be the possible next steps for debugging, thank you.

@ttmc @kansi
Thanks for all your help, I have managed to fix the issue by doing:
tendermint unsafe_reset_all
and
tendermint unsafe_reset_priv_validator
Maybe this can be pointed out in the bdb documentation as well 😅apparently if the nodes have ever been run before independently, after changing the genesis file, they need to be reset using the above commands.

Where are you running your nodes? If they're running in a cloud like AWS or Azure, you need to make sure that the "security group" (firewall) on each VM allows incoming TCP traffic on ports 22, 9984, 9985 and 26656. The last one (26656) is for Tendermint inter-node communications and is the most critical for allowing the nodes to talk to each other.
Please also run some Linux commands, such as sudo netstat -plnt, to check what's listening on various ports, and share the results here.

@ttmc as I said, using those Tendermint commands has fixed the issue. And the transactions are replicating. So it was not a networking issue.

@CosmicCoder96 I'm glad you got it working!
P.S. The current master branch of the Tendemint docs gives these instructions to reset Tendermint:

To reset a blockchain, stop the node, remove the ~/.tendermint/data directory and run
tendermint unsafe_reset_priv_validator

From https://tendermint.readthedocs.io/projects/tools/en/master/using-tendermint.html#reset
I will update our docs accordingly.

Hi Everyone ,
Could you please clarify me on the following scenario
I have 4 nodes in bigchain db network, and i have some assets (belongs to one of node ). i edited the asset details in db accidentally
now i am not able to transfer asset since it is expected behavior . but i want to transfer the assets with old details . how to make my db sync with all nodes. is there anyway to do that .
please share the documents for the same if any .

we have been trying to set up a bigchaindb cluster in two instances. but it is not getting replicated in other instance.
Is there any protocol to define the cluster setup of BigchainDB (regarding number of nodes and tendermint)


Updated Commander Genius to v3.5.1. Refactored to current PM standards.

Updated Commander Genius to v3.5.1. Refactored to current PM standards.
New Port for Commander Genius (v3.5.1)
Game Information

Title: Commander Genius
URL: https://gitlab.com/Dringgstein/Commander-Genius

Submission Requirements
CFW Tests
Ensure your game has been tested on all major CFWs:

[X] AmberELEC
[X] ArkOS
[X] ROCKNIX
[X] muOS

Resolution Tests
Test all major resolutions:

[X] 480x320
[X] 640x480
[X] 720x720 (RGB30)
[X] Higher resolutions (e.g., 1280x720)

File Structure

The port contains the following structure:

commander.genius/

cgenius/

conf/
gamedata/
libs/
license/

port.json
README.md
screenshot.jpg
cover.jpg
gameinfo.xml
Commander Genius.sh

Additional Resources
Community created content can be downloaded and added either manually or automatically (with internet connection) through the provided launcher.

I have resolved the identified issues and this is, once again, ready for review.

Please see updated ports.json. I've incorporated the suggestions as provided in the PM Discord. Thanks folks.

I've completed the final tweaks to the documentation and ports.json and am confident this can be reviewed.


Keep consistency of Test Class Names: *Tests -> *Test

Maybe this is not so necessary, but sometimes i got confused when i did some test.
For example, if i'd like to test groupby.rolling.sum, i was confused which is the correct test class name of this function pytest tests/test_rolling.py::RollingTests::test_groupby_rolling_sum.py or pytest tests/test_rolling.py::RollingTest::test_groupby_rolling_sum.py.
since some of test classes are named by *Tests and the others are *Test.
so i think it should be better to use unified rule when naming test class to keep consistency.

Codecov Report

Merging #1035 into master will decrease coverage by 1.66%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1035      +/-   ##
==========================================
- Coverage   94.96%   93.29%   -1.67%
==========================================
  Files          34       34
  Lines        6713     6713
==========================================
- Hits         6375     6263     -112
- Misses        338      450     +112

Impacted Files
Coverage Δ

databricks/koalas/usage_logging/__init__.py
24.54% <0%> (-72.73%)
:arrow_down:

databricks/koalas/usage_logging/usage_logger.py
50% <0%> (-50%)
:arrow_down:

databricks/koalas/__init__.py
78.72% <0%> (-8.52%)
:arrow_down:

databricks/conftest.py
92% <0%> (-6%)
:arrow_down:

databricks/koalas/frame.py
95.9% <0%> (-0.59%)
:arrow_down:

databricks/koalas/generic.py
95.26% <0%> (-0.48%)
:arrow_down:

databricks/koalas/plot.py
94.04% <0%> (-0.24%)
:arrow_down:

databricks/koalas/groupby.py
91.18% <0%> (-0.21%)
:arrow_down:

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 c4deb88...48d6eb6. Read the comment docs.


Only tally fixed nodes for prior if at time 0

This seems pretty clear, and obvious to merge. No tests for non-contemporaneous samples yet, though...

See https://github.com/awohns/tsdate/pull/80#issuecomment-564179257


Optimize PlayerInteractEvent

Hi.
Updated to the latest Dev build and it fixed the resource usage of ProximityTrigger as well as the Essentials Sudo crash bug when making players type in chat.
Thanks for that!
But along has come the PlayerInteractEvent which is about 5-10x more intensive than ProximityTrigger was a few builds ago.

As you can see in the screenshot, this is with no players interacting with any Denizen-running NPC's since server start (in fact, there are no players in the same world as an NPC)
Any optimizations that could be made to help with Denizen's footprint would be greatly appreciated! I feel like it should be substantially lower resource-wise than being the number 1 highest resource usage plugin out of 73 with only a single NPC in hub world that runs a single player command on right click.
Thank you very much! -- and my apologies in advanced if this is already a known 'issue'.

Weeeee're working on it.

Just for clarification, that event, PlayerInteractsEvents fires when players do things with nearly anything, not just npcs.  A player stepping on something, clicking something, etc.  This is server wide, not world based.

I would request a list of the world events you have in Denizen scripts to see what you are doing that is triggering those requests.

This should be cleaned very soon, we have @Talamar1 converting the event to our new system. Just need to get his PR cleaned up and confirmed.


multiple versions of vim exist in my system, but cannot be uninstalled.

Steps to reproduce

install the MacVim.app (8.1.950) first
update MacVim when update program pops. (8.1.1517)
Now I tried to install the latest version, it is (8.2.3455)
When I right click and open with MacVim, three version exits in the "open with" list.

I tried to uninstall them, only the latest version can be removed.
So my questions are 1) how to remove all of them, 2) How to keep the latest one only, if I update it?
Expected behaviour
keep the latest one only
Operating system
Mac OS 10.14.6
Version of Vim
8.0
Logs and stack traces
No response

HI @shulele, thank you for an issue
Please check the trash bin and try to empty it first. I observed such behavior in macOS in general.

HI @shulele, thank you for an issue
Please check the trash bin and try to empty it first. I observed such behavior in macOS in general.

Thanks for your suggestion. Unfortunately, it did not solve the problem.
Now I have three versions available on right-click list: 8.2.2681, 8.1.1517, 8.1.950.  I can use anyone of them to open a file. If so, there are three macvim icons in the Docker.
I even don't know where they locate.

If you are referring to the "open with" showing multiple versions, that is a OSX bug and not a macvim. I have seen it before with older versions.  I suspect your issue is like what is shown here.
https://mac-how-to.gadgethacks.com/how-to/remove-duplicates-customize-open-with-menu-mac-os-x-0157100/

onyx is a good tool for this if you do not like the command line.
https://www.titanium-software.fr/en/onyx.html


Select by default the Contract tabs and add a warning when compiler is loading

done https://github.com/ethereum/browser-solidity/issues/510


publish with invalid registration_id fails with "no implicit conversion of String into Integer"

My class:
### Data Used: {"content"=>"Aaaaaa", "repeat"=>nil, "repeat_unit"=>nil, "remind_at"=>nil, "completed_at"=>nil, "reminded_at"=>nil, :type=>"Reminder", :title=>"Reminder", :body=>"Aaaaaa", :sound=>"default"}

class NotificationService::EXPO < NotificationService

  delegate :app, to: self

  def self.app
    @app ||= Exponent::Push::Client.new
  end

  def notify(notification)
    data = notification.push_notification_data
    app.publish({
      to: registration_id,
      sound: "default",
      title: data[:title],
      body: data[:body],
      badge: user.total_counts["notifications"],
      data: data
    })
  end

end

When registration_id is not valid anymore because the EXPO app that has that registration_id is removed from the device, it fails with:
ETHON: performed EASY effective_url=https://exp.host/--/api/v2/push/send response_code=200 return_code=ok total_time=9.14811
TypeError: no implicit conversion of String into Integer
	from app/models/notification_service/expo.rb:34:in `notify'
	from (irb):218

For now, I'm going to begin rescue that chunk.
Is there a way I can avoid that error? I can't seem to find what causes the problem.
The data I used is {"content"=>"Aaaaaa", "repeat"=>nil, "repeat_unit"=>nil, "remind_at"=>nil, "completed_at"=>nil, "reminded_at"=>nil, :type=>"Reminder", :title=>"Reminder", :body=>"Aaaaaa", :sound=>"default"}

I have got the same issue here!

+1 This issue is driving me crazy...


ECC Curve selections

I see that you are using the NIST P-384 elliptic curve for asymmetric crypto. Based upon everything I have heard, the NIST curves are built on curves that are both more difficult to implement and more likely to leak side channel information. While I realize that the implementation you are using could be secure, I would advising moving to one of the following curves. More details can be found at the link below as well.
< http://safecurves.cr.yp.to/ >
M-221 [221-bit key]
E-222 [222-bit key]
Curve1174 [251-bit key]
Curve25519 [255-bit key] //this is a commonly implemented curve; it is used for bitcoin,gpg, tor and many other things
E-382 [382-bit key]
M-383 [383-bit key]
Curve41417[414-bit key]
end of the day, I would go with curve25519 or curve41417 for commonality [and possibly interoperability down the road, I prefer pfs] or large key size, respectively

Yeah, in the future I'd like to be able to offer multiple curves that a user can select, but default to a non-NIST curve

what, did you not like my name?

Just for doco sake: I think this one is fairly dependent on #37

What are your thoughts about the ui of this? I'm inclined to think this more of a power user thing and just throw this into preferences.

What should we default to? 25519? How many should we include? Which ones would you want?

I would say default to curve25519, and have M-511 or E-521 as a high security key. I think that for most everything a 255 bit key should be good enough. But it would be nice to allow users to have a "better" or "more secure" option. And the protocol does not get hellish with just two curves.
With all of this, curve selection will be based on what implementations you can find. While I would like a 5xx bit key, anything >350 would probably good enough for the "high security". I would say look in the order of key-size, for implementations:
521) E-521
511) M-511
488) Ed448-Goldilocks
414) Curve41417
383) Curve383187
383) M-383
382) E-382

The selection part is pushed, now just to add good curves

So curve25519 takes the form y^2 = x^3 + ax^2 + x rather than y^2 = x^3 + ax + b, which is what our ECC library is designed to handle. So... I could look at doing the implementation myself, but I'm not sure that's the best approach. Thoughts?

Additionally, Curve1174 is an Edwards curve and therefore still not of Weierstrass form. Maybe it makes sense for me to work with the library to accept these alternate forms for stronger curves

Looks like this is pretty significant work, and there is an active ticket on their end for adding 25519: https://github.com/bitwiseshiftleft/sjcl/issues/158 - might just punt on this and move on to something else until that task either becomes inactive, gets implemented, or I summon up insane amounts of motivation. Looks like the spec is here: http://cr.yp.to/ecdh/curve25519-20060209.pdf
Maybe it makes sense to look at a different ECC library? I'm cautious about that though as SJCL seems well reasoned

Maybe this makes sense as it's also under active development and implements the curves we want. It's a bit lower level, so I'll have to write an abstraction layer, but that might be worth it. https://github.com/indutny/elliptic

After talking with @TheBlueMatt the current library seems fine. I also trust it in that it's developed by Stanford's crypto group and it is also under active (albiet slower) development. We can revisit this in the future but I think this is fine for now.
Also I've added some other curves users can select, which meets the bigger requirement of not cornering them into one curve.

This issue was moved to GrdMe/GrdMe#23

This issue was moved to GrdMe/GrdMe#23


Migrate from UA Google Analytics to GA4

Deadline is July

GA4 plugged in https://github.com/TrackMyIndoorWorkout/TrackMyIndoorWorkout.github.io/commit/34fb9b355520c7d0ddf928c4aab5b025cc50b744


CUDA out of memory on a RTX 3060 12gb GPU

Hello,
Supposedly, this project automatically decide training params that fit the available VRAM.
However, I am getting CUDA out of memory errors on a ~12gb card despite this, when training a model using runwayml/stable-diffusion-v1-5 as the base:

  0%|          | 0/600 [00:00<?, ?it/s]
Steps:   0%|          | 0/600 [00:00<?, ?it/s]
Steps:   0%|          | 0/600 [00:01<?, ?it/s, loss=0.114, lr=1e-5]
Steps:   0%|          | 1/600 [00:01<11:53,  1.19s/it, loss=0.114, lr=1e-5]Traceback (most recent call last):
  File "/train_dreambooth.py", line 695, in <module>
    main()
  File "/train_dreambooth.py", line 645, in main
    accelerator.backward(loss)
  File "/opt/conda/lib/python3.7/site-packages/accelerate/accelerator.py", line 882, in backward
    self.scaler.scale(loss).backward(**kwargs)
  File "/opt/conda/lib/python3.7/site-packages/torch/_tensor.py", line 396, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
  File "/opt/conda/lib/python3.7/site-packages/torch/autograd/__init__.py", line 175, in backward
    allow_unreachable=True, accumulate_grad=True)  # Calls into the C++ engine to run the backward pass
RuntimeError: CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 11.77 GiB total capacity; 8.74 GiB already allocated; 41.12 MiB free; 9.68 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Steps:   0%|          | 1/600 [00:01<18:06,  1.81s/it, loss=0.114, lr=1e-5]

The default settings for me are:

--mixed_precision=fp16
--train_batch_size=1
--gradient_accumulation_steps=1
--use_8bit_adam

Wired, try to manually add --gradient_checkpointing=true and rerun

Wired, try to manually add --gradient_checkpointing=true and rerun

Prior to this post, I had tried this and it worked. But then I restarted the process, it seem it automatically changed the settings to this:
--mixed_precision=fp16
--train_batch_size=2
--gradient_accumulation_steps=1
--gradient_checkpointing
--use_8bit_adam
And it worked.
It seems to change settings around at random...

It will try to detect best training parameter for you based on available vrams. If you start a GPU heavy application after starting the trainer, you may get OOO error.


cmd/compile: escape analysis oddity

What steps will reproduce the problem?

package q

import "io"

type Thing struct {
        r io.Reader
}

func (t *Thing) Read() error {
        _, err := t.r.Read(nil)
        return err
}

func Use() error {
        var t Thing
        return t.Read()
}

% go build -gcflags -m leak.go
# command-line-arguments
./leak.go:9: leaking param: t
./leak.go:15: moved to heap: t
./leak.go:16: t escapes to heap

What is the expected output? What do you see instead?

Why does t leak on like 9, what is it about referencing t.r that causes t to leak onto
the heap.

Please use labels and text to provide additional information.

This question arose from an investigation if json.NewDecoder could be stack allocated.

FWIW: This is the output under go1.7rc2
$ go build -gcflags '-m -l' leak.go
# command-line-arguments
./leak.go:9: leaking param content: t
./leak.go:16: Use t does not escape

While t is detected as leaking, it does not escape.

/cc @davecheney @minux @dvyukov to the update from @freeformz's comment here https://github.com/golang/go/issues/7213#issuecomment-234100281

Yeah, seems like this minimal repro is no longer a repro, yet the &json.Decoder literal from json.NewDecoder still escapes (even though json.NewDecoder is inlined).
(Go 1.8.)

The original minimized repro case has been fixed (since Go 1.7, evidently), so I'm going to close this as fixed.


[FLINK-28326][test] fix unstable test testIdleAndBackPressuredTime.

What is the purpose of the change
Through the previous fix, we can ensure that the request thread must be blocked before the main thread recycle the buffer. However, there is still an extreme case where the request thread recovers from blocking very quickly, resulting in a calculated back-pressure time is equal to 0.
Brief change log

fix unstable test testIdleAndBackPressuredTime.

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no

@flinkbot run azure

Thanks for the fix @reswqa . Test failure unrelated. Merging.


Wildcard character '*' recurses when it shouldn't

FLExBridge_FLExBridgeDevelopWin32Continuous has a dependency on Chorus_Win32masterContinuous which includes *.pdb=>lib/Release.  When I regenerated the script today, this also resulted in the inclusion of debug/*.pdb=>lib/Release (behaviour that I'd expect from **/*.pdb).

I may look into this more tomorrow. My limited research has been unable to pinpoint when this may have become a problem.

(I manually removed the extraneous auto_copys from the script before uploading.)

I will look at this when I can.  I am working on a release of SAB.


Setup Comparison

First of all, I wanted to say this is an awesome plugin and something I've been looking for for a while.
One of the biggest things missing in my opinion though is the ability to compare 2 different setups side-by-side. Personally, I think the best way to implement this would be to have another identical "Equipment" page and perhaps rename them to "Setup 1" and "Setup 2", then on the home page where it shows DPS it could show all the same information for both setups. Alternatively, you could keep it all on one equipment page with two separate tabs/sections. This makes it a lot easier to look at how much of a benefit specific changes to the gear will be without having to write the DPS down before messing with the equipment.

Implemented in 91bcb1e29b657a38c5b4013cc30dc2b0649c9eb2. Will be include in release 1.1.


FancyZones dynamic layouts

Summary of the new feature/enhancement
A option to force windows always into the layout would be great. When a new Windows is opened the layout is extended.
All Windows would always be visible.
This would massively reduce the window chaos.
Combined with virtual desktops this would be a really slick workflow.

Closing this in favor of https://github.com/microsoft/PowerToys/issues/2694


ld: file not found: -lcudart.8.0 when building CUDA on MacOS and bazel 0.4.4

In today's head https://github.com/tensorflow/tensorflow/commit/b47dc70e548e6958919f87864b83866919473a92, and bazel 0.4.4, bazel building with XLA + CUDA on MacOS fails because it can't find cuda library when linking. I was able to build with the same setup from head from Jan 24 .
bazel build --config=cuda --config=opt -k //tensorflow/tools/pip_package:build_pip_package
...
ld: file not found: -lcudart.8.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 0.513s, Critical Path: 0.11s

I see libcudart_static.a in my /usr/local/cuda/lib and similar issue suggests that linking needs to be done with -L$CUDA_HOME/lib flag, but I can't figure out how to massage that option into bazel config
I also tried building with flags  --action_env PATH --action_env DYLD_LIBRARY_PATH --action_env LD_LIBRARY_PATH and copying libcudart_static.a to libcudart.8.0.a
Note that libcudart dependency dependency exists in CPU-only build as well because of https://github.com/tensorflow/tensorflow/issues/7216

I've seen a nearly identical issue. The major difference is that I didn't build with XLA+CUD; I only built with CUDA.
OSX 10.12.3
Retina MacBookPro 10,1 mid 2012.
Nvidia GT 650M
Python 2.7.13 build in a virtual environment from brew with the latest requirements from pip
Latest build requirements from brew (wheel, six, etc)
Latest CUDA 8.0.63
Latest cuDNN 5.1.10
The issue only started after I brew upgraded bazel to 0.4.4 a few days ago.
Reverting my brew install of bazel to 0.4.3 has allowed me to complete compilations and create a pip install package.
Fixed as follows:
brew uninstall bazel
Copy bazel 0.4.3 brew formula from:
https://github.com/Homebrew/homebrew-core/blob/f4c0bf580fc94d31dbe09ddeab35b1ee3ac17c9e/Formula/bazel.rb
Paste this old formula into brew config for bazel:
brew edit bazel
Pin this current version of bazel
brew pin bazel
The only other issue was that I needed to massage bazel with the following fix:
https://github.com/tensorflow/tensorflow/issues/4187#issuecomment-244722024
For quick reference here is the changelog of bazel:
https://github.com/bazelbuild/bazel/blob/master/CHANGELOG.md

I confirmed that this issue is unrelated to XLA --- it's a CUDA on Mac OS X problem:
ERROR: /Users/phawkins/g/tensorflow/tensorflow/python/BUILD:2278:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: link_dynamic_library.sh failed: error executing command external/bazel_tools/tools/cpp/link_dynamic_library.sh no ignored ignored ignored external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -shared -o ... (remaining 432 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
clang: warning: argument unused during compilation: '-pthread'
ld: file not found: -lcublas.8.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build

This problem has been possibly resolved at head, although I won't know for sure until https://github.com/tensorflow/tensorflow/issues/7364 is fixed

I have just checked at head still getting ld: file not found: -lcudart.8.0 error. when trying to build pip package. The main thing that changed from the last time this build worked was upgrading Bazel to 0.4.4
I notice that your continuous build failed with similar error
ld: file not found: -lcublas.8.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is a Bazel bug. Reported with a simple reproducible test case at https://github.com/bazelbuild/bazel/issues/2526
Building works with Bazel 0.4.3 or below.

Fixed at Bazel head.


feat(macos builds): added macos build support

Hey there,
I added mac os build support. I added the macos template into the repo export_templates/4.0.rc2/macos.zip (not sure if that's the best way because it is rather big) and also included the export_presets.cfg to make the builds work out of the box. I also updated the projects to make them build on mac without breaking compile errors. But the most relevant changes can be found in these commits:

https://github.com/visuallization/godot_rl_agents_examples/commit/6b26e2edf51a40a46d2e5b0c8946218942dab97b
https://github.com/visuallization/godot_rl_agents_examples/commit/d980b40c2a3ea538bd0356336724fd0e335bcb6d

Furthermore I updated the VirtualCamera example to make it compile & build in godot4 but there seem to be some game logic issues which still need to be tackled. I didn't manage to make the FPS example run in a timely manner as of the mentioned missing Skeleton3D modification support: https://github.com/godotengine/godot/pull/71137. I think this should be tackled in a separate issue.
I am not sure if the mac builds will compile on linux without problems because of code signing and xcode, so please let me know. If it does not work, there seems to be a way to build for mac on linux: https://docs.godotengine.org/en/latest/contributing/development/compiling/compiling_for_macos.html#cross-compiling-for-macos-from-linux

@edbeeching Did you by chance had time to test this?

Hi, I got around to trying this. Unfortunately, the mac build templates don't work on linux. I think we would have to include a build server as part of the CI workflow. Unless you have any other ideas?


WIP Bootstrap-4

To test I proceeded as in your tutorial:
mkdir Tutorial; cd Tutorial
virtualenv -p python3.6 shoptutorial
source shoptutorial/bin/activate
pip install -U pip setuptools
git clone --depth 1 https://github.com/haricot/django-shop -b patch-5
cd django-shop
pip install 'Django<2.0' 'django-select2<6.1' 'django-angular<2.1'
pip install -r requirements/common.txt
pip install --no-deps -e .
pip install djangoshop-stripe
cd example
npm install
export DJANGO_SHOP_TUTORIAL=polymorphic DJANGO_DEBUG=1
./manage.py initialize_shop_demo
./manage.py  cms  uninstall  plugins CarouselPlugin BootstrapPanelPlugin BootstrapAccordionPanelPlugin
./manage.py runserver

I think I have reproduced the menu in the same way, but maybe you want to do otherwise.

Ups....
Since I want to migrate to Cookiecutter using Pipenv, my demo merchant implementation is this one: https://github.com/jrief/my-shop
My intention is to remove the example folder from django-SHOP in favor of the cookiecutter template. This would create a much more maintainable starting project.
Therefore, if you want to help me, it would be a great to patch the cookiecutter template using the changes I made in my-shop.

That's what it seemed to me. I understand that it's clearer now, it will be better.


pgpool: 4.0.6 -> 4.3.2

Among other things fixes build against -fno-common toolchains.
Changes: https://www.pgpool.net/docs/latest/en/html/release-4-3-2.html
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 175174 run on x86_64-linux 1

1 package built:

pgpool


Feature: add import group to PhotoInfo

Reading and storing import group would allow scripts that use osxphotos to avoid reprocessing photos that were previously imported if that was important to user.

Also add import date/time and expose it to the template system:
{imported.year}/{imported.month}
Also, figure out the Photos 4 import time stamp used for storing photos in Masters:
2019/07/27/20190727-131650

ZGENERICASSET.ZIMPORTSESSION = FOK for ZGENERICALBUM.Z_PK
ZGENERICALBUM.ZKIND  = 1506 appears to be import session

V0.33.0 adds ImportInfo for Photos 5+


openjdk: mark major version 12 through 16 as EOL

Mark EOL versions with knownVulnerabilities.
https://endoflife.date/java
Related: #170825
I don't consider #178025 fixed until these packages are removed.
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

error: value is a set while a string was expected

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/lib/versions.nix:20:31:

           19|   */
           20|   major = v: builtins.elemAt (splitVersion v) 0;
             |                               ^
           21|

       … while evaluating 'major'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/lib/versions.nix:20:11:

           19|   */
           20|   major = v: builtins.elemAt (splitVersion v) 0;
             |           ^
           21|

       … from call site

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/development/compilers/openjdk/meta.nix:8:52:

            7|   mainProgram = "java";
            8|   knownVulnerabilities = optionals (builtins.elem (versions.major version) [ "12" "13" "14" "15" "16" ]) [
             |                                                    ^
            9|     "This OpenJDK version has reached its end of life."

       … while evaluating 'optionals'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/lib/lists.nix:271:5:

          270|     # List to return if condition is true
          271|     elems: if cond then elems else [];
             |     ^
          272|

       … from call site

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/development/compilers/openjdk/meta.nix:8:26:

            7|   mainProgram = "java";
            8|   knownVulnerabilities = optionals (builtins.elem (versions.major version) [ "12" "13" "14" "15" "16" ]) [
             |                          ^
            9|     "This OpenJDK version has reached its end of life."

       … while evaluating the attribute 'meta.knownVulnerabilities'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/development/compilers/openjdk/meta.nix:8:3:

            7|   mainProgram = "java";
            8|   knownVulnerabilities = optionals (builtins.elem (versions.major version) [ "12" "13" "14" "15" "16" ]) [
             |   ^
            9|     "This OpenJDK version has reached its end of life."

       … while evaluating 'isMarkedInsecure'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:55:22:

           54|
           55|   isMarkedInsecure = attrs: (attrs.meta.knownVulnerabilities or []) != [];
             |                      ^
           56|

       … from call site

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:78:7:

           77|   hasAllowedInsecure = attrs:
           78|     !(isMarkedInsecure attrs) ||
             |       ^
           79|     allowInsecurePredicate attrs ||

       … while evaluating 'hasAllowedInsecure'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:77:24:

           76|
           77|   hasAllowedInsecure = attrs:
             |                        ^
           78|     !(isMarkedInsecure attrs) ||

       … from call site

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:287:15:

          286|       { valid = false; reason = "unsupported"; errormsg = "is not supported on ‘${hostPlatform.system}’"; }
          287|     else if !(hasAllowedInsecure attrs) then
             |               ^
          288|       { valid = false; reason = "insecure"; errormsg = "is marked as insecure"; }

       … while evaluating 'checkValidity'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:272:19:

          271|   # Along with a boolean flag for each reason
          272|   checkValidity = attrs:
             |                   ^
          273|     {

       … from call site

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:296:18:

          295|   assertValidity = { meta, attrs }: let
          296|       validity = checkValidity attrs;
             |                  ^
          297|     in validity // {

       … while evaluating 'assertValidity'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/check-meta.nix:295:20:

          294|
          295|   assertValidity = { meta, attrs }: let
             |                    ^
          296|       validity = checkValidity attrs;

       … from call site

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:338:14:

          337|
          338|   validity = checkMeta { inherit meta attrs; };
             |              ^
          339|

       … while evaluating the attribute 'installPhase' of the derivation 'scala-2.13.8'

       at /home/hexa/.cache/nixpkgs-review/pr-170827-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

Result of nixpkgs-review pr 170827 run on x86_64-linux 1

In versions.json 1.17 uses javaVersion 16, that's why it get's "removed" in a sense.

Versions below 1.17 use Java 8 - why aren't they removed?
When you say removed, is it just marked as insecure or has it actually been removed?

The build job gets removed, because it has been transitively marked insecure.

Oh, that makes sense.

Result of nixpkgs-review pr 170827 run on aarch64-linux 1


Closing when it is typed space in the output type choice section

extract-file-names.bat batch script
When it is typed space  in the output type choice section, the instance is closed.

This issue was resolved using the reaction of to close after press space+enter using it as a special comand to end the program anytime.


Unexpected ASGI message 'http.response.start' sent, after response already completed

I'm using this WebDAV client and I get this error with asgi-webdav:
2022-07-13 17:16:04,783 INFO: [asgi_webdav.server] ASGI WebDAV Server(v1.2.0) starting...
2022-07-13 17:16:04,783 INFO: [asgi_webdav.auth] Register User: foo, allow:[''], deny:[]
2022-07-13 17:16:04,783 INFO: [asgi_webdav.web_dav] Mapping Prefix: / => file://.
2022-07-13 17:16:04,783 INFO: [asgi_webdav.server] ASGI WebDAV Server running on http://?:? (Press CTRL+C to quit)
2022-07-13 17:16:11,997 INFO: [uvicorn.access] <IP_ADDRESS>:59986 - "MKCOL /webdav/my_dir HTTP/1.1" 404
2022-07-13 17:16:11,997 INFO: [asgi_webdav.server] <IP_ADDRESS> - "MKCOL /webdav/my_dir" 409 Basic - python-requests/2.28.1
Exception in ASGI application
Traceback (most recent call last):
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/home/david/github/davidbrochart/fps/fps/app.py", line 303, in new_app
    await a(scope, receive, send)
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/asgi_middleware_static_file/core.py", line 66, in __call__
    await self.app(scope, receive, send)
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/asgi_webdav/server.py", line 65, in __call__
    await response.send_in_one_call(request)
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/asgi_webdav/response.py", line 138, in send_in_one_call
    await self._send_in_direct(request)
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/asgi_webdav/response.py", line 172, in _send_in_direct
    await request.send(
  File "/home/david/mambaforge/envs/jupyverse/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 520, in send
    raise RuntimeError(msg % message_type)
RuntimeError: Unexpected ASGI message 'http.response.start' sent, after response already completed.

Not sure what is going on, do you think there is a bug in the client?

I get the same error with this client.

Could you show me your code?

My bad, I was still calling other_asgi_app even though the request was handled in webdav_app.
Works like a charm, thanks for this great project!


keeping em-dash as it is results in nothing after rendering the tex file

Some papers use em-dash "—" (\u2014 in unicode) in the title. And when these papers are exported into a .bib file by biblatex, the em-dash is not converted in to forms like "---" (three hyphens) or "\textemdash", but only as it is—the "—" form. As a result, the tex engine can not directly render this character and generates nothing in the final pdf file.
Here is an example:
The original title (in Zotero) is:

Suing the Leviathan—An Empirical Analysis of the Changing Rate of Administrative Litigation in China

The .bib file shows that:
@article{Li2013SuingLeviathanEmpirical,   title = {Suing the {{Leviathan}}—{{An Empirical Analysis}} of the {{Changing Rate}} of {{Administrative Litigation}} in {{China}}},   ...
in which I think the em-dash here (between the "Leviathan" and "An") should be changed into something like "---" (three hyphens) or "\textemdash".
And the pdf looks like:

The debug log ID is: PG5P58CX-refs-apse . And I am using the TexLive 2020 with XeLaTeX engine on Overleaf to render the tex file.

I don't know whether you were exporting using using Better BibTeX or Better BibLaTeX. I see a Better BibLaTeX export running in your log, so for the moment I'm going to assume that is where you experienced the problem
biblatex supports unicode, so I leave unicode in place by default. If you are getting compilation errors, you may not have set up biblatex processing correctly. You can make BBT change unicode to LaTeX commands for Better BibLaTeX exports however if you want, see Export unicode as plain-text latex commands.

I don't know whether you were exporting using using Better BibTeX or Better BibLaTeX. I see a Better BibLaTeX export running in your log, so for the moment I'm going to assume that is where you experienced the problem

Exactly! I was using Better BibLaTeX exporting the entrys to the .bib file.

biblatex supports unicode, so I leave unicode in place by default. If you are getting compilation errors, you may not have set up biblatex processing correctly. You can make BBT change unicode to LaTeX commands for Better BibLaTeX exports however if you want, see Export unicode as plain-text latex commands.

Oh, I just found out there is an option (in Zotero -> edit -> preference -> Better BibTeX)  indicating for the unicode translation issue. After setting this up, the annoying "—" is changed into \textemdash , which is perfect.
Thanks for your kind and timely help!

You're welcome.


the new useClock doesn't update

hello , thanks for the good work and this amazing module  ;
after the new update of the module useClockValue has been removed and also useComputedValue , so the old solutions to make iTime on react-native-skia are useless
I tried useDerivedValue
const t = useClock()
const clock = useDerivedValue(()=>{ return t.value },[t.value])
<Shader source={source} uniforms={{clock:clock.value}}  />
doesn't update

also don't udpade thanks anyway nikitaDudin for responding , i closed the issue because i am not interseted about rn-skia any more i will use expo-gl because skia shading language lack's documentation it's assumes you already have experience with shaders at the same time it's deffirente from openGL without clearing how to deal with those differences

still an issue

Hey! is there something to know related to this problem?
I tried all the above variations, but it seems we can't pass the clock value to the shader. As a work around I am using a component's state and requestAnimationFrame, but I suspect I am killing app's performance, every tick triggers a rerender.
export default function Shader5() {
const w = Dimensions.get('window').width
const clock = useClock();
const [time, setTime] = useState(0);
useEffect(() => {
let frameId;
const startTime = Date.now();
const animate = () => {
  const elapsedTime = (Date.now() - startTime) / 1000;
  setTime(elapsedTime);
  frameId = requestAnimationFrame(animate);
};

animate();
return () => cancelAnimationFrame(frameId);

}, []);
return (
<View style={{justifyContent:'center', alignSelf:'center', alignItems:'center' , flex:1}}>
<Canvas style={{ width:w , height: w}}>

<Shader source={source} uniforms={{u_resolution:w, u_time: clock.value / 1000}}/>

);
}


SkeletonIK bug cause strange model deform on runtime

Godot version:

3.2.4 beta4
OS/device including version:

Issue description:

without target on runtime
https://user-images.githubusercontent.com/64188282/103660419-876b7a80-4fa8-11eb-95df-399a5dbe8bc6.mov
with target on runtime
https://user-images.githubusercontent.com/64188282/103660570-b550bf00-4fa8-11eb-9857-245e53e2cc08.mov
Steps to reproduce:
get a model with animtion
add skeletonIK node as a child node of skeleton node
add gdscript to skeletonIK node and wirte code to play IK when game start
run it
Minimal reproduction project:

IKbug.zip

also I got error message everytime when I run it

also I got error message everytime when I run it

It's related to where in your tree the SkeletonIK node is related to the bones it wants to animate. This kind of thing should really have a yellow warning in editor for cases where the SkeletonIK can't/won't be able to find the bone...
I fixed it with trial and error in my projects. Usually I place SkeletonIK as sibling of armature/skeleton, not child.

It's related to where in your tree the SkeletonIK node is related to the bones it wants to animate. This kind of thing should really have a yellow warning in editor for cases where the SkeletonIK can't/won't be able to find the bone...
I fixed it with trial and error in my projects. Usually I place SkeletonIK as sibling of armature/skeleton, not child.

It's related to where in your tree the SkeletonIK node is related to the bones it wants to animate. This kind of thing should really have a yellow warning in editor for cases where the SkeletonIK can't/won't be able to find the bone...
I fixed it with trial and error in my projects. Usually I place SkeletonIK as sibling of armature/skeleton, not child.

if skeletonIK not a child node of skeleton node, it won't automatically get the bones list of skeleton

It's related to where in your tree the SkeletonIK node is related to the bones it wants to animate. This kind of thing should really have a yellow warning in editor for cases where the SkeletonIK can't/won't be able to find the bone...
I fixed it with trial and error in my projects. Usually I place SkeletonIK as sibling of armature/skeleton, not child.

if skeletonIK not a child node of skeleton node, it won't automatically get the bones list of skeleton

this is a documentation issue not a code bug, sorry

this is a documentation issue not a code bug, sorry

Please tell us how you fixed this (as I was running into a similar problem), and which docs should be updated?

Please tell us how you fixed this (as I was running into a similar problem), and which docs should be updated?

Please tell us how you fixed this (as I was running into a similar problem), and which docs should be updated?

I have opened another issue report about skeletonIK is_running() method, you can download the minimal project to see the code, hopefully it will help you

Please tell us how you fixed this (as I was running into a similar problem), and which docs should be updated?

I have opened another issue report about skeletonIK is_running() method, you can download the minimal project to see the code, hopefully it will help you

Superseded by https://github.com/godotengine/godot/issues/45590.

Superseded by https://github.com/godotengine/godot/issues/45590.


Fix error messages

This patch fixes the following error message by VoidSection.
ValidationError[VoidSection], The section "{0}" is void. at line: section title

Coverage increased (+0.01%) to 90.842% when pulling efc67ede421bdd436a3644c9e36358461358243a on takahi-i:fix-error-message into 339e9f8aa3e68e4b6a1222ffe62816b91deb4a70 on redpen-cc:master.


Bug - many to many resources return ids with default "id_" prefix

Hello, when returning a resource that contains a many_to_many relationship, it will show the many_to_many relationships with the default "id_" even if prefixes are disabled.
Here is a small example on how to reproduce this:
defmodule Blobs do
  @moduledoc false

  use Ash.Resource,
    data_layer: AshPostgres.DataLayer,
    extensions: [AshUUID]

  attributes do
    uuid_attribute :id
  end

  relationships do
    many_to_many :blibs, Blibs do
      through BlibsBlobs
      join_relationship :blibs_blobs

      source_attribute_on_join_resource :blobs_id
      destination_attribute_on_join_resource :blibs_id
    end
  end

  postgres do
    table "blobs"
    repo FeedbackCupcake.Repo
  end

  preparations do
    prepare build(load: [blibs_blobs: [:blibs]])
  end

  actions do
    defaults [:read, :create]
  end
end

defmodule Blibs do
  @moduledoc false

  use Ash.Resource,
    data_layer: AshPostgres.DataLayer,
    extensions: [AshUUID]

  attributes do
    uuid_attribute :id
  end

  relationships do
    many_to_many :blobs, Blobs do
      through BlibsBlobs

      source_attribute_on_join_resource :blibs_id
      destination_attribute_on_join_resource :blobs_id
    end
  end

  postgres do
    table "blibs"
    repo FeedbackCupcake.Repo
  end

  actions do
    defaults [:read, :create]
  end
end

defmodule BlibsBlobs do
  use Ash.Resource,
    data_layer: AshPostgres.DataLayer

  attributes do
  end

  relationships do
    belongs_to :blibs, Blibs do
      primary_key? true
      allow_nil? false
      attribute_writable? true
    end

    belongs_to :blobs, Blobs do
      primary_key? true
      allow_nil? false
      attribute_writable? true
    end
  end

  postgres do
    table "blibs_blobs"
    repo FeedbackCupcake.Repo
  end

  actions do
    defaults [:read]

    create :create do
      primary? true
      upsert? true

      accept [:blibs_id, :blobs_id]
    end
  end
end

Now you can create the resources like this:
blobs = Ash.Changeset.new(Blobs) |> FeedbackCupcake.Feedbacks.create!()
blibs = Ash.Changeset.new(Blibs) |> FeedbackCupcake.Feedbacks.create!()
blibs_blobs = Ash.Changeset.new(BlibsBlobs, %{blibs_id: blibs.id, blobs_id: blobs.id}) |> FeedbackCupcake.Feedbacks.create!()

And finally you can return the resource with this:
FeedbackCupcake.Feedbacks.read(Blobs)

This last call will return something like this:
{:ok,
 [
   #Blobs<
     __lateral_join_source__: nil,
     blibs: #Ash.NotLoaded<:relationship>,
     blibs_blobs: [],
     __meta__: #Ecto.Schema.Metadata<:loaded, "blobs">,
     id: "02u0dd1Yp8uHIBDDABoDnB",
     aggregates: %{},
     calculations: %{},
     __order__: nil,
     ...
   >,
   #Blobs<
     __lateral_join_source__: nil,
     blibs: #Ash.NotLoaded<:relationship>,
     blibs_blobs: [
       #BlibsBlobs<
         __lateral_join_source__: nil,
         blobs: #Ash.NotLoaded<:relationship>,
         blibs: #Blibs<
           __lateral_join_source__: nil,
           blobs: #Ash.NotLoaded<:relationship>,
           blobs_join_assoc: #Ash.NotLoaded<:relationship>,
           __meta__: #Ecto.Schema.Metadata<:loaded, "blibs">,
           id: "02u0dhl55hsrgVsaA3FEtB",
           aggregates: %{},
           calculations: %{},
           __order__: nil,
           ...
         >,
         __meta__: #Ecto.Schema.Metadata<:loaded, "blibs_blobs">,
         blibs_id: "id_02u0dhl55hsrgVsaA3FEtB",
         blobs_id: "id_02u0dhl4nd37R50yEZ6DU2",
         aggregates: %{},
         calculations: %{},
         __order__: nil,
         ...
       >
     ],
     __meta__: #Ecto.Schema.Metadata<:loaded, "blobs">,
     id: "02u0dhl4nd37R50yEZ6DU2",
     aggregates: %{},
     calculations: %{},
     __order__: nil,
     ...
   >
 ]}

As you can see, both blibs_id and blobs_id fields have values "id_02u0dhl55hsrgVsaA3FEtB" and "id_02u0dhl4nd37R50yEZ6DU2" respectively.

This issue should be resolved in v0.3.0 just released.
You've to include AshUUID extension also in the BlibsBlobs resource to fix.
Thanks for the feedback @sezaru and let me know if it works as expected 😉


fix(material/select): Remove disableOptionCentering Input

Removes the disableOptionCentering field since the option centering functionality is no longer working in the mat-select component.
Fixes #28303

This can't be removed now, because it would be a breaking change. It needs to wait for the next major version.

Should I keep the PR open?

Up to you, but you should be aware that it won't be merged for a few months.


Feature request: Support delay push notification permission dialog

Description
It would be awesome if the Push SDK supported delaying the push notification permission dialog to a later time (when appropriate) instead of popping the permission dialog immediately on app open.
A similar request was made in AppCenter-SDK-React Native here:
https://github.com/Microsoft/AppCenter-SDK-React-Native/issues/287
and released in 1.11.0:
https://github.com/Microsoft/AppCenter-SDK-React-Native/releases/tag/1.11.0

@timmliu Thanks for submitting this feature request. This isn't on our immediate roadmap but I'll monitor the request for community support and keep this thread posted once we have an update.


⚠ Samsung has degraded performance

In ff22054, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2870 ms

Resolved: Samsung performance has improved in 9ca21b2.


Backport JuliaLang 50144

Backports https://github.com/JuliaLang/julia/pull/50144 for further performance assessment.

@gbaraldi could you do a quick review on this?
FYI this is a mirror of what we plan to test at RAI.

This looks like ok


[Feature] [Request] Render Based of GPU for client app

Is your feature request related to a problem? Please describe.
Might if it possible it would be greatest ChatGPT Project as Open Source in The World if used GPU for rendering instead of CPU/Ram Memory  in client app

It uses tauri: https://tauri.app/ , and renders with webview.

yeah I know I've been checking it and tryna use a gpu for a rendering


Add PlatformIO to the project to improve development workflow

As I mentioned on the PR #4, I use PlatformIO for embedded environment. I never used for developing a library but I think that we can have a lot of advantages, like declaring the project dependencies from Git or from other Arduino Libraries. This way the current "compile" flow on the jwt folder can be changed to use PlatformIO.
http://docs.platformio.org/en/latest/librarymanager/config.html
Also, we can also how to configure a CI environment to test the library on different boards the project. An example of this can be seen in the PubsubClient project:
https://github.com/knolleary/pubsubclient
What do you think of this? Make sense for this project?

Great suggestions, I'll see what can be done for getting checks in place.

Just to update the issue here, current plan is to get 1.1.x to a point where there is a "universal" sample that supports all board targets and resolves top issues. After getting 1.1.x to a point that it's stable, we'll migrate to Platform IO on 2.x.x.


[Housekeeping] Namespace Changes

Description
This changes the namespace and folder structure for the libraries from com.hello.curiosity to io.github.hellocuriosity in preparation for publishing on maven central #94 .
Review checklist

[ ] PR is split into meaningful commits for the ease of reviewing
[ ] Tests have been written
[ ] Screenshots added (where applicable)
[ ] Appropriate labels have been applied

Codecov Report

Merging #101 (51ece66) into main (3c82ab0) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #101   +/-   ##
=====================================
  Coverage   76.3%   76.3%
=====================================
  Files         45      45
  Lines       1344    1344
  Branches     386     386
=====================================
  Hits        1026    1026
  Misses       118     118
  Partials     200     200


Add input spatial coarsening

In ocf_datapipes we used a coarsening function  as part of the sites datapipes (pv & wind) it was useful when we wanted to reduce the amount of data from certain inputs e.g a high spatial resolution NWP, would be good to add to move that function across here and add it to the Site Dataset

@Sukh-P, I would like to work on this. It will help me gain a better understanding of how Xarray works.


Read page functionality

Whenever user clicks on Publish button in the Write page, the conent should be transferred to Read page so that others can read the published travel journals. Add this feature in the website.

Hey @amrit03b can I work on this ?

Hey @amrit03b can I work on this ?

Sure


Setting config value (successfully?) prints error

I'm following https://docs.tiledb.com/main/how-to/backends/gcs#gcs-setup
            var context = Context.GetDefault();
            context.Config().Set("vfs.gcs.project_id", "myproject");

This prints
[2022-12-24 10:07:19.328] [Process: 36276] [error] [1671897957280816100-Global] C API: Invalid TileDB error object

It doesn't seem like any error should be printed.
This is at https://github.com/TileDB-Inc/TileDB-CSharp/blob/b5d11da829f91bff5be6f02803a1d14d0869afb9/sources/TileDB.CSharp/Config.cs#L97
            if (status != (int)Status.TILEDB_OK)
            {
                var err_message = GetLastError(p_tiledb_error, status);
                Methods.tiledb_error_free(&p_tiledb_error);
                throw new ErrorException("Config.set, caught exception:" + err_message);
            }
            Methods.tiledb_error_free(&p_tiledb_error); // <-- HERE

I'm not very familiar with how the interop code works, but maybe this free isn't necessary because this code path didn't allocate anything?

Hello, maybe you are right. I added 74df698f1b3135e10ee128ccaa7fac631505bb46 on #191 which refactors the relevant error handling code.

@teo-tsirpanis Thanks!


Remarks

Looks great.
Some minor issues (to be continued):
https://github.com/sebastiw/sock/blob/cbcb23ab699a51c6bfef2798c40ee0ec0d6566dc/src/sock.erl#L62-L63
Binding to all local interfaces by default is probably problematic, especially when local IP addresses are used.  Which local IP addresses are announced to the peer in that case? What happens if a new interface is added or an existing goes down/up?
https://github.com/sebastiw/sock/blob/cbcb23ab699a51c6bfef2798c40ee0ec0d6566dc/src/sock_assoc.erl#L62-L64
Wondering what dialyzer will say depending on USE_SOCKET. Why not using -ifdef?
https://github.com/sebastiw/sock/blob/cbcb23ab699a51c6bfef2798c40ee0ec0d6566dc/src/sock_utils.erl#L26-L27
Wouldn't cope with inet6 and shortened addresses (less than 3 dots).
What about having a function that takes two inet:ip_address and a number (mask) instead? Or at least using net:parse_address internally instead of split?

for testing it's excellent :) I don't hope anyone will use that in prod. all create_ep/0-3 are exported so one can choose to use any.

Updated with -ifdef

Fixed for ipv6 and shortened addresses, though no function actually use it yet.

I did update 1. to loopback instead

I don't think we should use the supervisor as a lookup. We have seen that it doesn't scale. I also wonder what happens when you have failures and which_children messages filling the message box of the supervisor
https://github.com/sebastiw/sock/blob/16c022414a677310a13340b1d2a2e43ac41ac24e/src/sock_sup.erl#L32
Should we do recv or {active, N} ? I think we greatly increased performance in diameter testing by having active tuned.
https://github.com/sebastiw/sock/blob/16c022414a677310a13340b1d2a2e43ac41ac24e/src/sock_ep.erl#L154
Does it make sense to move this read outside gen_server?
https://github.com/sebastiw/sock/blob/main/src/sock_reg.erl#L84


Trap notifications

Could be extended to implement trap notifications?

I guess it could, but I decided it would be much easier to just use snmptrap command directly.

Thanks, I think I will use snmptrap command directly too!


(mouseover) does not return what documentation says it does

Expected as per the documentation:
event: Object, consist of:
data: Object - highlighted row data object
source: DataSource - table data source

But all it actually does it just returns a normal mouse event.
There is no "data" object attached to the event.
EDIT:
After looking through the table's code, I realized its (rowHover). NOT (mouseover) like it is in the documentation.

Thanks!


more community projects

Linking to your projects in Risor. Thank you @applejag @mna.

@myzie if you feel there's a place under the risor-io org umbrella for awesome-risor, I'd be happy for that repo live here, and give you the control of its content.

@rubiojr, thanks for the offer - I think that'd be great. Sharing the management of it sounds good.

@myzie please feel free to copy the contents, I'll close mine once that's ready.