Feature suggestion: affiliation logos

Hello,
It would be nice if one can add affiliation logos. Please vote if you find this feature useful.
Best regards.

Where would they be added?

@HughP Good question! That's an important point to think about, but I guess this would be nice enough:

In the current version I added the logos to about.md manually.

I can see how that would work...
I guess there is still the technical question on how does one manage separate sizes. For instance two logos with different heights or widths... I suppose a align center would work. @gcushen Would it make the most sense to add a third and optional argument to the affiliation variable in config.toml? This argument could be the URL to the logo. But then there is a consistent place in the theme to reference it. Something like
  #   Separate multiple entries with a comma, using the form: `[ {name="Org1", url="", logo=""}, {name="Org2", url="", logo=""} ]`.
  organizations = [ { name = "SIL International", url = "http://www.sil.org", org_logo = "/static/logos/abcxyz.png" } ]

There would need to be some comment or instruction that says what the suggested size would be, and possibly if they are to be displayed in a vertical row, or stacked horizontally. It would be nice to know if people are regularly part of more than two-four organizations. I am part of two, and my wife is part of three, but I am wondering how edge case we are... I see that @netw0rkf10w has demonstrated two, without hesitation.

@netw0rkf10w thank you for your suggestion!
I'm closing this for now as there does not appear to be much demand for it and I prefer the cleaner look of text here.
For anyone else who does wish to display logos, they can do so in their own preferred style with just a minor customization of the about widget code.

I know this issue is closed but there are still some of us out there that would love to have logos! Alternatively, can anyone link to an example of a customized about widget ?


feat: add fal-serverless runner

Description
a utility class for running dbt projects on fal-serverless

Wow, Gorkem, this is a great idea!


Apply button fail

From the editor dialog, I expect to be able to hit the Apply button repeatedly if I want to test something...
But on the first click, it doesn't even reset the script. And after that first click it disables itself and won't become active until the text changes. That behaviour is so wrong!

I expect to be able to hit the Apply button repeatedly if I want to test something...

I'm genuinely curious, what things are you testing that require the reload of the script without actually changing the script?

But on the first click, it doesn't even reset the script.

Do you mean that after changing the script and clicking on Apply, the panel is not reloaded?

I expect to be able to hit the Apply button repeatedly if I want to test something...

I'm genuinely curious, what things are you testing that require the reload of the script without actually changing the script?

But on the first click, it doesn't even reset the script.

Do you mean that after changing the script and clicking on Apply, the panel is not reloaded?

Currently, the button does nothing. Removing it would make more sense and I'll accept that.

Currently, the button does nothing. Removing it would make more sense and I'll accept that.

That's strange, how do you open the editor dialog? (coz there's different code for each scenario)

Configure window:

Edit button in source tab
Edit button in package tab

window.EditScript()
window.Configure() (with in-memory script)

That's strange, how do you open the editor dialog? (coz there's different code for each scenario)

Configure window:

Edit button in source tab
Edit button in package tab

window.EditScript()
window.Configure() (with in-memory script)

Actually, you are right - apply button does not work anymore, I'll take a look it if can be fixed.

Actually, you are right - apply button does not work anymore, I'll take a look it if can be fixed.

It should work now =) (if there were any changes in the script)

It should work now =) (if there were any changes in the script)


[UseDotNetV2] Support global.json files with comments

Task name: UseDotNetV2
Description: The task can parse a global.json in the repo. It currently does not support json with comments, so this change uses the json5 package to parse it in a way that supports comments.
Documentation changes required: N
Added unit tests: Y
Attached related issue: Y. Fixes #18631
Checklist:

[x] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected

FYI @DmitriiBobreshev, who last touched this task.

/azp run

Ping @rvairavelu, @manolerazvan, @DmitriiBobreshev. This PR has been sitting for a couple weeks now. I had to resolve a fairly large conflict so am hoping to avoid this going fwd.

Hi @dfederm thanks for creating this PR! We are working on more prioritized issues at the moment but will get back to this one soon.
I have created an internal work item for this, soon an engineer will be assigned to test these changes before being merged.
Thanks, I will keep you posted.

/azp run

/azp run

Superseded by #19226


Exception occurred on ver 2.0.0

I change ver 1.2.1 to 2.0.0
On Ver 2.0.0, I get Error message as below.
Error message
Exception has occurred: TypeError
'async_generator' object is not callable
File "C:\Users\masami\pytest\xxtemp_mqtt.py", line 29, in main
async with mq_client.messages() as messages:
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\masami\pytest\xxtemp_mqtt.py", line 95, in
asyncio.run(main())
TypeError: 'async_generator' object is not callable
Test code
import os
import sys
import asyncio
import aiomqtt
temp_topic = 'Myhome/temperture'
async def main():
async with aiomqtt.Client(hostname="xxxx.local",username="xxxxx",password="xxxxx",port=1883) as mq_client:
await mq_client.subscribe(temp_topic)
async with mq_client.messages() as messages:
#await mq_client.subscribe(temp_topic)
async for message in messages:
print(message.payload)
if sys.platform.lower() == "win32" or os.name.lower() == "nt":
from asyncio import set_event_loop_policy, WindowsSelectorEventLoopPolicy
set_event_loop_policy(WindowsSelectorEventLoopPolicy())
asyncio.run(main())
comment
I changed
hosutoname
username
password
OS
Windows 11
Python
Python 3.12.1 (tags/v3.12.1:2305ca5, Dec  7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32

OK on Mac os
aiomqtt
Ver 2.0.0
macOS
Sonoma ver 14.2.1
PC
MacBook Air
Python
Python 3.11.0 (v3.11.0:deaf509e8f, Oct 24 2022, 14:43:23) [Clang 13.0.0 (clang-13<IP_ADDRESS>)] on darwin
Code
import aiomqtt
import asyncio
temp_topic = 'Myhome/temperture'
async def main():
async with aiomqtt.Client(hostname="xxxxx.local",username="xxxxxx",password="xxxxx",port=1883) as client:
await client.subscribe(temp_topic)
async for message in client.messages:
print(message.payload)
asyncio.run(main())

OK on Raspberry pi
aiomqtt
Ver 2.0.0
Raspberry pi
Linux musiUSB 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
python
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Code
same as mac

The following code is incorrect.
async with mq_client.messages() as messages:

It should be.
async with mq_client.messages as messages:

I test

async with mq_client.messages as messages:
OK Close
I tested this code on 1.2.1. I get error.
What is the difference between ver. 1.2.1 and ver.2.0.0 ?
I think it need some explanation on the documentation.

Hi there! Thanks for your detailed background infos on what system and versions you're using 👍
Did you already find the migration guide in our documentation? It also contains a minimal working example of how to receive messages. To migrate, you would rewrite this:
import asyncio
import aiomqtt

async def main():
    async with aiomqtt.Client("test.mosquitto.org") as client:
        await client.subscribe("example")
        async with client.messages() as messages:
            async for message in messages:
                print(message.payload)

asyncio.run(main())

like so:
import asyncio
import aiomqtt

async def main():
    async with aiomqtt.Client("test.mosquitto.org") as client:
        await client.subscribe("example")
        async for message in client.messages:
            print(message.payload)

asyncio.run(main())

So you basically get rid of the async with client.messages() as messages line.
Please let me know if you have ideas of how to improve the migration guide 😊

I wanted a description after "suscribe" sample code that it has changed from the previous version.


Add a button linking to the plugin homepage in the plugin installer dialog

Description
Hi all,
this PR is a suggestion for the plugin installer dialog. It adds a Website button which links to the napari hub page of a given plugin:

This could be helpful in case an installation fails for example.
Type of change

[ ] Bug-fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References

How has this been tested?

[x] I tested this manually

Final checklist:

[x] My PR is the minimum possible work for the desired functionality
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

It would be cool if somebody could comment on my code. I assume for example that the "http://napari..." string should live somewhere else, but I'm not sure where.
Let me know what you think!
Best,
Robert

Hi @tlambert03 and @goanpeca ,
thanks for your feedback! I just updated the code; it's much slimmer now. It also hides the Website button now in case the url is unknown. In case of the bfio plugin you can see that it works:

Looks lovely @haesleinhuepf  🥳 , but I think you need to run the pre-commit hooks now. Black is complaining 🙃

but I think you need to run the pre-commit hooks now. Black is complaining

How do I do this?

You can install pre-commit and then run it with:
pip install pre-commit
pre-commit run -a

Or if you want to install git hooks so it runs on commits you can see https://napari.org/developers/contributing.html#setting-up-a-development-installation or do
pip install pre-commit
pre-commit install

Cool, thanks @goanpeca, that will be helpful! Black should be happy now 🌞

Whoa! This is a killer feature!
Works perfectly here, really natural—surprised it wasn't there from day 1.
❤

Maybe at that point it makes sense to provide links both to the hub page and project url page and bring the overall experience of finding/ discovering plugins in the app more in line with finding/ discovering plugins

This makes sense, once we start using the hub as the "source of truth" we can have a more coherent story. Still this sounds like an improvement :)
Now, for discoverability of the hub, or "advertising it more", should we add some link (next to the filter box) to visit the hub for more information on plugins, and/or and entry on the help menu that links to the hub?

I think the hub uses that link to point to the github, so we wouldn't want that to become circular.

The napari hub looks for links to Github first in a "Source code" field in the longer list of project URLs, then will fall back to look for a Github URL in project_info.url... so no circularity risk here.

Shall I add another button for linking to the napari hub?
yes: 👍
no: 👎
@goanpeca @tlambert03 @psobolewskiPhD @sofroniewn @neuromusic

Wait, so there would be 3 buttons: [Hub][Website][Install] ?
Wouldn't [Hub] suffice, since it has the basic info, plus a link to github/other?

Wouldn't [Hub] suffice

it would, but it's a subset, and it's conceivable that some plugins might want to link to something else.  Using the package metadata gives them that option.

@haesleinhuepf it might be a tad too much to have 3 (or four buttons if update), but for the sake of "argument" could you mock up the extra button 🙃 ?

Wouldn't [Hub] suffice

it would, but it's a subset (of all the possible things we need to link to), and it's conceivable that some plugins might want to link to something else. Using the package metadata gives them that option.

Ok, so if I'm following, the current [website] option uses metadata, so essentially the Dev can specify whether the link goes to Hub or github/etc?
This seems good to me. 2 different website buttons seems much.

Maybe at that point it makes sense to provide links both to the hub page and project url page and bring the overall experience of finding/ discovering plugins in the app more in line with finding/ discovering plugins

Agreed. The current endpoints for the napari hub API are as follows

https://api.napari-hub.org/plugins gives the full list of available plugins (plugin developers can "hide" deprecated or pre-release plugins, so this list is smaller than what PyPI returns)
https://api.napari-hub.org/plugins/ gives aggregated metadata for a given plugin (e.g. https://api.napari-hub.org/plugins/devbio-napari)

This provides all of the info to have descriptions and metadata and all of the major outbound links (issues, help, github, documentation, etc) from within napari that is as rich as what is on the napari hub.

it's a subset (of all the possible things we need to link to)

Yes, but the hub also provides links to those other possible things (documentation, help, issues, source code) in a consistent, predictable place.

This provides all of the info to have descriptions and metadata and all of the major outbound links (issues, help, github, documentation, etc) from within napari that is as rich as what is on the napari hub.

Cool, so maybe we should have an issue to make the migration to use the API, is that something we could do now then @neuromusic ?
On the button galore, we could just use icons, Website Icon Github Icon Documentation Icon and they would appear if different among themselves... this is probably work for another PR, so maybe we can go ahead as it is an iterate :) ?

This provides all of the info to have descriptions and metadata and all of the major outbound links (issues, help, github, documentation, etc) from within napari that is as rich as what is on the napari hub.

Cool, so maybe we should have an issue to make the migration to use the API, is that something we could do now then @neuromusic ?

Definitely. Minimally, we can immediately reproduce the current functionality with the napari hub API. If there are changes needed on our end to the API to better support napari as a client (e.g. search descriptions or filter to current OS & python versions), we can start exploring how to support those needs.

On the button galore, we could just use icons, Website Icon Github Icon Documentation Icon and they would appear if different among themselves... this is probably work for another PR, so maybe we can go ahead as it is an iterate :) ?

I love this idea! If others do so too, andif someone can find those buttons as pngs (I'm really bad in making icons) and push them to my branch, I'm happy make these buttons =-)

Will work on migrating to the hub api :)

the napari hub icons for these links can be found here


Improve performance of history store

Improve performance of writing to the history store by using upserts, batching, and removing duplicate data.

@sahilTakiar @abti @liyinan926 Can you guys review this please?


how to publish offline deal into filecoin

https://docs.filecoin.io/store/lotus/very-large-files/#deals-with-offline-data-transfer
something like this?

We're planning to add this feature in the next weeks.


Documentation

Updated CONTRIBUTING.md with instructions on how to modify policy records. Does it look like the simplest solution, @dhimmel ?

Yeah, but people will look to README first, so if you want to have the instructions in CONTRIBUTING, have the README obviously link there.

Thanks for adding the reference! This workflow is going to be brutal for people unfamiliar to github and I think will significantly limit participation. Is there some way we can give people permission to commit directly to a master branch (by making them members of an organization?) and then I can handle the pull request from that copy back into this one? Of course this would mean the person doing this work needs to resolve any validation issues themselves.
It would be extra great if search were functional on that working copy of the repo (ie, if it were not a fork...) as this would make it easier for people to find files.
The best alternative I can see is inviting people to download the yml files, edit them in a text editor, and email them to me, which would make tracking contributions and resolving conflicts from simultaneous edits much more complicated and cumbersome. Let me know what you think....

So if anyone is overwhelmed by the git intricacies, they can post there desired changes in an issue. We can set the commit authorship so they still get credit for the changes. For example,
git commit --author "Daniel Himmelstein<EMAIL_ADDRESS>
I think there is an easy-ish way for people to make pull requests through the GitHub interface in a way that will avoid conflicts. I think if we made a short video showing the process that would really help.

So if anyone is overwhelmed by the git intricacies, they can post there desired changes in an issue. We can set the commit authorship so they still get credit for the changes. For example,

This definitely seems better than an email! But could get hairy if people are trying to make multiple simultaneous changes, or want to change just one value on top of someone else's version. How would we sort this out, and would it not be easier to just make them members (with write access to only the policies YAML files) and let them commit themselves?

would it not be easier to just make them members (with write access to only the policies YAML files)

I don't really think giving write access to only the policy files is possible (maybe it would be with a submodule, but it would not be elegant).
Conflicts should only occur when two individuals edit the same lines in the same files. Since we don't expect to be making big schema updates, I don't think conflicts will occur that frequently. We can mention in the documention to check for an open pull request for a policy before starting a new one. In general we should encourage one pull request per publisher/policy

I don't really think giving write access to only the policy files is possible

We could make a repo with ONLY the policies files, and provide them access to that?
I'm imagining one user editing a policy and leaving their edits in a comment on an issue. A second user comes around and wants to change one value. Presumably the best way for them to do this would be to copy & paste from the most recent comment and make their desired changes. But how would we then attribute the changes appropriately?

I believe @SamanthaHindle will test the instructions at CONTRIBUTING.MD from an unaffiliated account; then we should be ready to spread the word!

Is there a way to just click on the journal in the priority list to get to
the YAML file? Searching for Development is awful
On Thu, May 10, 2018 at 11:15 AM, Jessica Polka<EMAIL_ADDRESS>wrote:

I believe @SamanthaHindle https://github.com/SamanthaHindle will test
the instructions at CONTRIBUTING.MD
https://github.com/transpose-publishing/policies-database/blob/master/CONTRIBUTING.md
from an unaffiliated account; then we should be ready to spread the word!
@garymcdowell https://github.com/garymcdowell it would be great if you
could give this a shot as well!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/transpose-publishing/policies-database/issues/12#issuecomment-388137438,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AViRVsJWiusqNb6E9EtKM6ZRUnNdreYxks5txIOqgaJpZM4T5ThH
.

--
Gary McDowell, PhD
Executive Director
Future of Research (FoR)
240 Dolores Street, #108, San Francisco, CA 94103
Cell:<PHONE_NUMBER>
<EMAIL_ADDRESS>http://futureofresearch.org/

Is there a way to just click on the journal in the priority list to get to the YAML file?

No but journal names are lexigraphically sorted in this file. Hence you can more easily find the relevant line:
Development	2082	2015-11-16

So you'll want romeo_2082.yml

Thanks!
On Thu, May 10, 2018 at 11:54 AM, Daniel Himmelstein <
<EMAIL_ADDRESS>wrote:

Is there a way to just click on the journal in the priority list to get to
the YAML file?
No but journal names are lexigraphically sorted in this file
https://raw.githubusercontent.com/transpose-publishing/policies-database/master/romeo/downloads/journal-titles.tsv.
Hence you can more easily find the relevant line:
Development	2082	2015-11-16
So you'll want romeo_2082.yml
https://github.com/transpose-publishing/policies-database/blob/master/policies/policies/romeo_2082.yml
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/transpose-publishing/policies-database/issues/12#issuecomment-388150360,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AViRVjei53v_oAWS7RwgpUd5gt44LTNSks5txIzVgaJpZM4T5ThH
.

--
Gary McDowell, PhD
Executive Director
Future of Research (FoR)
240 Dolores Street, #108, San Francisco, CA 94103
Cell:<PHONE_NUMBER>
<EMAIL_ADDRESS>http://futureofresearch.org/


Exported csv has no label data on unlabelled data

When data is labelled in the UI and exported it is only exported with a ,1 set on the labelled data in the csv, data that has not been labelled is left blank, for example:
timestamp,value,label
1478765820,0.0,
1478765880,0.0,
1478765940,0.0,
1478766000,0.0,1
1478766060,0.05,1
1478766120,0.0,
1478766180,0.0,
1478766240,0.0,

Due to the fact that the label column has been added, should all unlabelled data be labelled with ,0 rather than just ,?
This would reduce the requirement for the user to have to preprocess the exported csv or deal with NaNs in any upstream processing they did with the exported csv as all the label data would be present.

Thanks for your compaint, we have recorded and will amend this in days.


[WIP] deps: Automatically add (bazel) mirror urls for github

This should hopefully improve the endemic failing ci when a run doesnt get a repo cache for whatever reason
We could probably expand this beyond github as not all of our (failing) deps are coming from there (eg node) and may have bazel mirrors also

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

nice idea but sadly doesnt work as implemented
it might work for release downloads - im not sure exactly what bazel mirrors - ill investigate further

SG, makes sense if we can get it to work, this is definitely a source of a non-trivial number of flakes. Arguably we could also do our own mirroring?

Arguably we could also do our own mirroring?

yeah, thats a possibility, but it would bring a maintenance overhead so i would rather avoid if we can

so the bazel.mirror really only mirrors deps for bazel itself - as i had seen it posted around i had hoped it was mirrorring commonly used bazel deps or similar - but seems not - eg https://mirror.bazel.build/github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-win64.zip is not mirrored
i guess plan b is to try and find any mirrors specific to our deps and abandon the automagic

arg - so i figured we could still use this for any github.com/bazelbuild deps - but seem even that is not possible ...
eg, these work:

https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz
https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip

and eg, these do not:

https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/v5.1.2.tar.gz
https://mirror.bazel.build/github.com/bazelbuild/rules_apple/releases/download/2.5.0/rules_apple.2.5.0.tar.gz

https://bazel.googlesource.com/continuous-integration/+/refs/heads/master/docs/mirror.md

i have a related idea about caching - currently we cache per bazel invokation-type - eg the cache key for proto_format = hash of bzl files + proto_format - on the basis that each invokation has slightly different needs
what we could do - in the env cache warming stage - is a bazel sync against the whole repo and cache that for all jobs
this would probs be faster and more robust (need to test to confirm)
it wouldnt resolve the bad github/mirror problem when the cache isnt warm, but it would reduce the amount of times that the cache has to be rewarmed quite a lot

this would probs be faster and more robust (need to test to confirm)

maybe not - its hanging trying to do this locally but it also creates 50G+ - so not cacheable

ERROR: /src/workspace/envoy/WORKSPACE:13:19: fetching _default_envoy_dev rule //external:envoy_dev: java.io.IOException: _default_envoy_dev rule //external:envoy_dev must create a directory
 checking cached actions
 checking cached actions
 checking cached actions
ERROR: /src/workspace/envoy/WORKSPACE:13:19: fetching _clang_tools rule //external:clang_tools: java.io.IOException: _clang_tools rule //external:clang_tools must create a directory
 checking cached actions
    Fetching repository @base_pip3_pygments; Restarting. 307s
    Fetching repository @org_golang_google_grpc; running Gazelle 163s
ERROR: _clang_tools rule //external:clang_tools must create a directory

$ du -ch ~/.cache/bazel | grep total | grep [0-9]G
68G     total

this kinda works - and may give us most of what we want i think ...

worker@scratch:/src/workspace/envoy$ bazel fetch //test/... //source/... //tools/... @envoy_api//...
...snip...
INFO: All external dependencies fetched successfully.
Loading: 1777 packages loaded
worker@scratch:/src/workspace/envoy$ du -ch ~/.cache/bazel | grep total | grep [0-9]G
4.1G    total

the main advantage of this approach is that it can be retried if it fails

and ci fails early if it fails so no need to restart a bunch of different jobs half way through ci

#28876

closing this for now - we have a reasonable if imperfect solution with #28876 which so far seems to be mostly working if a bit slower
not sure if we can automate something here short of hosting something ourselves, we probably can add any known mirrors


use pipelining for fast query resolving

Don't send & wait for answer, just send send send send and maintain and index of which !g's have been sent and map to the answers as they come in.

Fixed in #6


Updated version, errors in the old plugin

Hi, everyone. Thanks in advance.
I have been check some webs referring to web development, and I found a "plugin" wich it needs a old version of Materialize, when I try to use with the newer version the console give me an error from a inexistent function (M.throttle). I found the function in the .js archive, but I don't understand where is the problem.
Attached some captures:

And, the plugin call to this function in this  part:

Can I helpme, please :)

If this plugin you are using is a thirdparty plugin we cannot do anything to help. Unless they update it to be compatible with the latest versions, you will have to use whichever old version this plugin supports.


Scoped Scripts

Is your feature request related to a problem? Please describe.
We have added scoped styles in abelljs/abell#59. We also need a way to make sure the elements that user selects in script tag are scoped so that the code is more maintainable.
Describe the solution you'd like
This snippet should only colors divtags that are inside this component.
<AbellComponent>
  <template>

Select only this div

  </template>

</AbellComponent>

We have to inject scopedSelector and scopedSelectorAll code inside the javascript of the component.
Approach
If you look at the output of the Abell website, you will find that the components have data-abell-<hash> in their attributes in build.
Example:

For example imagine the hash being data-abell-xyz, We can inject function scopedSelector with following defination:
const scopedSelector = (queryString) => document.querySelector(queryString + '[data-abell-xyz]');

Similar thing can be done with scopedSelectorAll.

Published to abell@next fd126507dee68d1d111266667aa83653d94773e7


Fix Reading Challenge

I and another member of the community has found that this app does not work properly; it does not update with a new user_challenge_id.
I suspect that the secret.decrypt sets a value to CHALLENGE_ID, and because that's the case, it never checks the config for what the user types in.
My fix removes the decryption, and instead uses a default value of an Emily May, one of the most followed community members on Goodreads (list here: https://www.goodreads.com/user_following/most_followed?country=GB&duration=a). This way, an effectively anonymous user can be used as a default value while also allowing users to input their own challenge ID.

cc @panderson54 making a change to your project. It's a great idea; noticed a bug described above.


Project admin challenge count incorrect

I have a project with 1 challenge but the project overview says it has 0:

Yeah that actually hasn't been implemented yet, it was a placeholder. :)

Resolved in latest merged PR.


AttributeError: 'function' object has no attribute 'reset' inf rollout.py

Dear all,
I'm working with implement HER algorithm in UR5 environment. After I launch with the 1 epoches and reset my environment. It always tell to me 'function' object has no attribute 'reset'. The detail of my issue as below:
2019-01-24 10:21:38.551305: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Creating a DDPG agent with action space 4 x [0.15       0.05       0.26179939 0.26179939]...
Traceback (most recent call last):
File "/home/huong/catkin_ws/src/ur_gazebo_test2/experiment/train.py", line 224, in
main()
File "/home/huong/env_tensorflow/lib/python3.5/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/huong/env_tensorflow/lib/python3.5/site-packages/click/core.py", line 717, in main
[INFO] [1548292899.141068, 877.931000]: DONE CONFIGURE DDPG
rv = self.invoke(ctx)
File "/home/huong/env_tensorflow/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/huong/env_tensorflow/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/huong/catkin_ws/src/ur_gazebo_test2/experiment/train.py", line 220, in main
launch(**kwargs)
File "/home/huong/catkin_ws/src/ur_gazebo_test2/experiment/train.py", line 194, in launch
rollout_worker = RolloutWorker(params['make_env'], policy, dims, logger, **rollout_params)
File "/home/huong/baselines/baselines/her/util.py", line 36, in wrapper
return method(*positional_args, **keyword_args)
File "/home/huong/baselines/baselines/her/rollout.py", line 42, in init
self.reset_all_rollouts()
File "/home/huong/baselines/baselines/her/rollout.py", line 46, in reset_all_rollouts
self.obs_dict = self.venv.reset()
AttributeError: 'function' object has no attribute 'reset'
Process finished with exit code 1
My config.py and train.py as in  the link: https://github.com/dovanhuong/Baselines_UR5_issue
Has anyone can solve this issue or have suggestions, please tell to me know! I'm looking forward to hear your advices~

Hi @dovanhuong ，I want to know how to lower the version of baselines，thank

Could you please check the update version of baselines? I used the previous version before that time. Up to now I am no longer working with this. I'm so sorry for I don't remember the exact version! @SHYang1210

@pzhokhov Thanks for the solution above

@pzhokhov Thanks for the solutions you gave above. In my case, these solutions, however, do not solve the problem. I am currently trying to run a train.py script which is similar to the script from @dovanhuong (see this repository for the exact code). I, however, get the same error when doing so:
AttributeError: 'function' object has no attribute 'reset' inf rollout.py

I, therefore, tried both of the solutions you gave above:
Revert back to the old version:
I tried this but unfortunately, I run into the following error:
ModuleNotFoundError: No module named 'mujoco_py'

However, I would rather modify my train.py script such that I don't need to buy a mujoco license. Consequently, I, therefore, tried your second solution.
Option 2: Initiate environment before  initializing RolloutWorker
I tried adding the exact code given in the issue before the RolloutWorker:
from baselines.common.cmd_util import make_vec_env
env = make_vec_env(env, 'robotics', num_env=1, seed=None)

but when running the train_modified.py script I receive the following error:
Traceback (most recent call last):
  File "./src/my_fetch_train/scripts/train_modified.py", line 280, in <module>
    main()
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "./src/my_fetch_train/scripts/train_modified.py", line 276, in main
    launch(**kwargs)
  File "./src/my_fetch_train/scripts/train_modified.py", line 210, in launch
    env_vec, policy, dims, logger, **rollout_params
  File "/home/ricks/Development/robot_academy_ws/src/baselines/baselines/her/util.py", line 36, in wrapper
    return method(*positional_args, **keyword_args)
  File "/home/ricks/Development/robot_academy_ws/src/baselines/baselines/her/rollout.py", line 41, in __init__
    self.reset_all_rollouts()
  File "/home/ricks/Development/robot_academy_ws/src/baselines/baselines/her/rollout.py", line 46, in reset_all_rollouts
    self.initial_o = self.obs_dict['observation']
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

This appears to be caused since it uses the DummyEnv class instead of my own environment. I therefore tried the following code:
from baselines.common.cmd_util import make_robotics_env
env_vec= make_robotics_env(env, seed=rank_seed, rank=rank)

But this also gave me the error above. Lastly, I tried inputting a normal gym.env instead of a vectorized env by using the following code:
    rollout_worker = RolloutWorker(
        env_vec, policy, dims, logger, **rollout_params
    )
    rollout_worker.seed(rank_seed)

But I then received the following error:
Traceback (most recent call last):
  File "./src/my_fetch_train/scripts/train_modified.py", line 289, in <module>
    main()
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "./src/my_fetch_train/scripts/train_modified.py", line 285, in main
    launch(**kwargs)
  File "./src/my_fetch_train/scripts/train_modified.py", line 221, in launch
    rollout_worker.seed(rank_seed)
AttributeError: 'RolloutWorker' object has no attribute 'seed'

I was, therefore, wondering if somebody has an example on how to use the HER algorithm with the master branch of the openai/baselines repository?

i don't know how to play
ในวันที่ อ. 11 ก.พ. 2020 เวลา 01:03 Rick<EMAIL_ADDRESS>เขียนว่า:

@pzhokhov https://github.com/pzhokhov Thanks for the solutions you gave
above. In my case, these solutions, however, do not solve the problem. I am
currently trying to run a train.py script which is similar to the script
from @dovanhuong https://github.com/dovanhuong (see this repository for
the exact code https://github.com/rickstaa/my_fetch_training). I,
however, get the same error when doing so:
AttributeError: 'function' object has no attribute 'reset' inf rollout.py
I, therefore, tried both of the solutions you gave above:
Revert back to the old version:
I tried this but unfortunately, I run into the following error:
ModuleNotFoundError: No module named 'mujoco_py'
However, I would rather modify my train.py script such that I don't need
to buy a mujoco license. Consequently, I, therefore, tried your second
solution.
Option 2: Initiate environment before initializing RolloutWorker
I tried adding the exact code given in the issue before the RolloutWorker:
from baselines.common.cmd_util import make_vec_env
env = make_vec_env(env, 'robotics', num_env=1, seed=None)
but when running the train_modified.py script I receive the following
error:
Traceback (most recent call last):
File "./src/my_fetch_train/scripts/train_modified.py", line 280, in
main()
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "./src/my_fetch_train/scripts/train_modified.py", line 276, in main
launch(**kwargs)
File "./src/my_fetch_train/scripts/train_modified.py", line 210, in launch
env_vec, policy, dims, logger, **rollout_params
File "/home/ricks/Development/robot_academy_ws/src/baselines/baselines/her/util.py", line 36, in wrapper
return method(*positional_args, **keyword_args)
File "/home/ricks/Development/robot_academy_ws/src/baselines/baselines/her/rollout.py", line 41, in init
self.reset_all_rollouts()
File "/home/ricks/Development/robot_academy_ws/src/baselines/baselines/her/rollout.py", line 46, in reset_all_rollouts
self.initial_o = self.obs_dict['observation']
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
This appears to be caused since it uses the DummyEnv
https://github.com/openai/baselines/blob/master/baselines/common/vec_env/dummy_vec_env.py
class instead of my own environment. I therefore tried the following code:
from baselines.common.cmd_util import make_robotics_env
env_vec= make_robotics_env(env, seed=rank_seed, rank=rank)
But this also gave me the error above. Lastly, I tried inputting a normal
gym.env instead of a vectorized env by using the following code:
rollout_worker = RolloutWorker(
    env_vec, policy, dims, logger, **rollout_params
)
rollout_worker.seed(rank_seed)

But I then received the following error:
Traceback (most recent call last):
File "./src/my_fetch_train/scripts/train_modified.py", line 289, in
main()
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ricks/.catkin_ws_python3/openai_venv/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "./src/my_fetch_train/scripts/train_modified.py", line 285, in main
launch(**kwargs)
File "./src/my_fetch_train/scripts/train_modified.py", line 221, in launch
rollout_worker.seed(rank_seed)
AttributeError: 'RolloutWorker' object has no attribute 'seed'
I was, therefore, wondering if somebody has an example on how to use the
HER algorithm with the master branch of the openai/baselines
https://github.com/openai/baselines/blob/master/baselines repository?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openai/baselines/issues/798?email_source=notifications&email_token=AOPJDG4GI5HZJQJ6TJUTTGDRCGJFLA5CNFSM4GR74GVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELJP35I#issuecomment-584252917,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOPJDG56C22IEREPV22GBXDRCGJFLANCNFSM4GR74GVA
.


DNS configuration

Please set http://l.finos.org and https://l.finos.org to redirect to https://landscape.finos.org. (The shortcuts are useful but you want the site only served from one URL for SEO purposes.)

l.finos.org now redirects (301) to landscape.finos.org . Closing, feel free to reopen if you spot any issue. TY!


Feedback for “Quick Start”

I'm trying to get token from volume but unable to find can you please help me

wrong issue, unrelated to nextra


feat: add index landing page

Signed-off-by: kushthedude<EMAIL_ADDRESS>

Instead of creating a static copy here (which gets outdated when we change the README in main) - should we make the copy as part of the github action? This way, the README would be in sync?

@aquamatthias That was my next step as I wanted to first see how is the rendering actually looking on the index page, which is why I didn't add GH-action changes in this PR.


Update OKRs

Migrated from GitLab: https://gitlab.com/meltano/handbook/-/issues/95
Originally created by @tayloramurphy on 2022-05-16 22:18:30

View 2 previous comments from the original issue on GitLab


JavaScript code included in returned content

Hello,
Great library! Congrats.
I found a small issue. For some articles, I get a JavaScript code returned in content. Example: https://www.reuters.com/article/us-usa-trump-ivanka/ivanka-trump-closes-fashion-line-to-focus-on-helping-her-father-idUSKBN1KE2JN
Returned content:
WORLD IVANKA TRUMP CLOSES FASHION LINE TO FOCUS ON HELPING HER FATHER BREAKING NEWS July 24, 2018 0 (Reuters) – U.S. President Donald Trump’s daughter Ivanka Trump on Tuesday said she was shutting her fashion line to focus on her role as an informal White House adviser, where she is working on advancing working women. Since Trump’s surprise November 2016 election, his family has faced criticism that its portfolio of real estate and consumer goods businesses, which lean heavily on the Trump name as a marker of luxury, conflict with their roles as Washington officials. Critics of the president called the shutting of the brand a victory for a boycott of Trump-tied businesses that began late in the 2016 campaign. “After 17 months in Washington, I do not know when or if I will ever return to the business, but I do know that my focus for the foreseeable future will be the work I am doing here in Washington,” Ivanka Trump, 36, said in a statement on Tuesday. Amid criticism of potential conflicts of interest, Ivanka Trump in 2017 gave up day-to-day management of her clothing company and put its assets in a trust managed by family members. Her company said licensing contracts would not be renewed and those in place will be allowed to run their course. Mid-priced women’s clothing, shoes and accessories were sold under the label. The 18 people who work for the 11-year-old company will be laid off as it shuts down. Since Trump’s election, retailers including Nordstrom Inc , Hudson’s Bay Co and Sears Holdings Corp have dropped or sharply scaled back their assortment of Trump-branded products, though they typically attributed those decisions to poor sales rather than political messages. Read:  US vehicle tariffs considered as heart of attention as Trump meets EU's Juncker Ivanka Trump’s brand said in a statement that retailers including Bloomingdale’s, owned by Macy’s Inc , Dillard’s Inc and Amazon.com Inc , continued to carry her wares. According to the Wall Street Journal, online sales of Ivanka Trump’s brand fell nearly 55 percent in the 12 months to June, compared with the year-earlier period, citing Rakuten Intelligence, which gathers email receipts from 5.5 million U.S. consumers. Trump’s combative style on the campaign trail and as president have drawn the family’s brands into political fights, with some supporters hosting events at the luxury Trump International Hotel blocks from the White House even as opponents stage boycotts. The president has been a loud advocate for domestic manufacturing, prompting criticism that much of the Ivanka Trump line was made overseas, as is the vast majority of clothing and footwear sold in the United States. According to media reports, much of her product line has been sourced from China, which is the target of tariffs imposed by the president in a trade conflict. The most organised boycott of Trump-related businesses, “Grab Your Wallet,” called the news about Ivanka’s business a victory. “This is the biggest possible win for Grab Your Wallet,” the group’s co-founder, Shannon Coulter, a San Francisco marketing executive, said in a phone interview. (Reporting by Scott Malone in Boston, Barbara Goldberg and Diana Kruzman in New York and Nivedita Balu in Bengaluru; editing by Richard Chang and Cynthia Osterman) This story has not been edited by Firstpost staff and is generated by auto-feed. Updated Date: Jul 25, 2018 04:05 AM Read:  Secret tape may not add to legal jeopardy for Trump or Cohen Also Watch Social Media Star: Abhishek Bachchan, Varun Grover reveal how they handle selfies, trolls and broccoli Monday, July 16, 2018 It’s a Wrap: Soorma star Diljit Dosanjh and Hockey legend Sandeep Singh in conversation with Parul Sharma Monday, July 16, 2018 Watch: Dalit man in Uttar Pradesh defies decades of prejudice by taking out baraat in Thakur-dominated Nizampur village Monday, July 16, 2018 India’s water crisis: After govt apathy, Odisha farmer carves out 3-km canal from hills to tackle scarcity in village Sunday, July 15, 2018 Maurizio Sarri, named as new Chelsea manager, is owner Roman Abramovich’s latest gamble in quest for ‘perfect football’ ‘; console.log(titleHeading); $(‘.fp-first-video’).html(response+titleHeading); $(“#”+videoId).attr(“id”,liId); $(“#”+videoId+”-image”).attr(“src”,mainImage); $(“#”+videoId+”-title”).text(otherHead); $(“#”+videoId+”-date”).text(mainDate); $(“#”+videoId+”-image”).attr(“id”,liId+”-image”); $(“#”+videoId+”-title”).attr(“id”,liId+”-title”); $(“#”+videoId+”-date”).attr(“id”,liId+”-date”); $(“.fp-first-video”).attr(“id”,”alsoMain-“+videoId); $(“.fpvideo-wrap”).attr(“id”,”firstAlsoWatch_”+videoId) $(“#mainImage”).val(otherImage); $(“#mainDate”).val(otherDate); } }, error: function(xhr, ajaxOptions, thrownError) { console.log(‘Something went wrong..’); } }); });
As you can see, the end contains a javascript code.
Thank you for looking into this!
Regards.

This is a known issue. Please try parsing the text with the "SummonCthulhu"  option set to true.

Thank you and sorry for not understanding the docs (because I read it). :)
Great library!


Minor edits to paper.md

Hi, thanks for the suggestion, the formatting is made so to correspond to the one required by JOSS.

@kyleniemeyer the square brackets are required I believe no? Can you remove these and I'll merge for the e.g.,

Hi @matbesancon, the square brackets are not explicitly required, but used for parenthetical references.
From our documentation:

For a quick reference, the following citation commands can be used:

@author:2001  ->  "Author et al. (2001)"
[@author:2001] -> "(Author et al., 2001)"
[@author1:2001; @author2:2001] -> "(Author1 et al., 2001; Author2 et al., 2002)"

So doing the @author:2001 format will put the author name in the sentence as a first-class object, with the year in parentheses. This is consistent with the other copy-edits I did.

Oh got it, thanks


⚠ Bofrost.at has degraded performance

In 89841c7, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2423 ms

Resolved: Bofrost.at performance has improved in de02744 after 20 minutes.


cariddi: 1.1.2 -> 1.1.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/edoardottt/cariddi/releases.
meta.description for cariddi is: "Crawler for URLs and endpoints"
meta.homepage for cariddi is: "https://github.com/edoardottt/cariddi"
meta.changelog for cariddi is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/jmi53vdzi1hqsjmxwmb8655h125pb6ym-cariddi-1.1.4/bin/cariddi passed the binary check.
1 of 1 passed binary check by having a zero exit code.
1 of 1 passed binary check by having the new version present in output.
found 1.1.4 with grep in /nix/store/jmi53vdzi1hqsjmxwmb8655h125pb6ym-cariddi-1.1.4
found 1.1.4 in filename of file in /nix/store/jmi53vdzi1hqsjmxwmb8655h125pb6ym-cariddi-1.1.4

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
cariddi
docbookrx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/jmi53vdzi1hqsjmxwmb8655h125pb6ym-cariddi-1.1.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A cariddi https://github.com/r-ryantm/nixpkgs/archive/c806d85664a1a79fc4f0047d1fd46d6c1af937fb.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/jmi53vdzi1hqsjmxwmb8655h125pb6ym-cariddi-1.1.4
ls -la /nix/store/jmi53vdzi1hqsjmxwmb8655h125pb6ym-cariddi-1.1.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

cariddi

Maintainer pings
cc @fabaff @kalbasit for testing.

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

1 package built:

cariddi


Markdown nest lists are have the wrong/inverted spacing before and after

For example, this list, should be rendered at least with this empty line spacing:
* Line clipping
    * [ ] Implement Cohen-Sutheland
    * [ ] Liang-Barsky or perhaps Nicholl-Lee-Nicholl

* [ ] Implement the option to wire model (without filling) or with filling while creating
    *  Implement polygon filling (colors, yellow, blue, etc.)

* [ ] Implement weiler atherton polygon clipping

But it is actually rendered with this line spacing, which is quite annoying and disrupting:

+1.
From this issue on one of our projects at Contiamo, there seems to be improper (subjectively speaking) spacing between a checklist item and its children. What further seems a little deceptive is that the very last sub-list item in a nested list is closer to the next top-level list item, while an entire list of sub-list items is further away from its parent. 🤔
Generally, it is my feeling that this could be improved a bit.
I am happy to submit a PR that addresses this if we can agree that we'd like to improve this.
Thoughts?

Adjusting my markdown does not seem to solve the problem. I've added blank lines, but the problem remains. Could you (@shawnbot) post a Markdown snippet of your two cases above so I can see what's going on?

He seems to be telling us they wont fix it, and it will be broken for ever. You cannot never have lists adjusted as:
* Line clipping
    * [ ] Implement Cohen-Sutheland
    * [ ] Liang-Barsky or perhaps Nicholl-Lee-Nicholl

* [ ] Implement the option to wire model (without filling) or with filling while creating
    *  Implement polygon filling (colors, yellow, blue, etc.)

* [ ] Implement weiler atherton polygon clipping

Otherwise they will be spaced like:

They only way you can have they right, is to remove all the blank lines:
* Line clipping
    * [ ] Implement Cohen-Sutheland
    * [ ] Liang-Barsky or perhaps Nicholl-Lee-Nicholl
* [ ] Implement the option to wire model (without filling) or with filling while creating
    *  Implement polygon filling (colors, yellow, blue, etc.)
* [ ] Implement weiler atherton polygon clipping

So, they are rendered with no spacing whatsoever:

Line clipping

[ ] Implement Cohen-Sutheland
[ ] Liang-Barsky or perhaps Nicholl-Lee-Nicholl

[ ] Implement the option to wire model (without filling) or with filling while creating

Implement polygon filling (colors, yellow, blue, etc.)

[ ] Implement weiler atherton polygon clipping

Despite removing all blank space, the spacings are still incorrect for me.
- [x] All links in `Sidenav` need to be full-width blocks that inherit styles from the document and aren't underlined.
- [x] Padding needs to be standardized. (See #380)
- [ ] `Table`
  - [x] improved `tr` padding as in Pantheon UI.
  - [x] no border by default
  - [x] **code smell**: `tr` _and_ `td` have paddings... why? @peterszerzo
  - [x] need provision/prop for alternating row colors for readability
  - [ ] Propagate css prop to underlying table (maybe?)
- [x] ~~`PageContent` from PantheonUI possibly needs to be included.~~
- [ ] `TextArea` from PantheonUI
- [ ] `Person` (maybe called `Avatar`?) from Labs
  - @tejasq will implement
- [ ] `Input` component
  - [ ] add button/clickable copy-to-clipboard
  - [ ] add expand like for SSH keys
- [ ] Create component for this thing
  - ![image](https://user-images.githubusercontent.com/9947422/38668011-61ce597e-3e43-11e8-852d-96925926ac92.png)
- [x] `Tabs` must support a `css` prop in order to allow styling extensions.
- [ ] Heading types need explicit margins because browsers have styles that can mess things up
  - ![image](https://user-images.githubusercontent.com/9947422/38671315-5d43f46a-3e4b-11e8-8fef-6ac4275efcd6.png)

still renders as

[x] All links in Sidenav need to be full-width blocks that inherit styles from the document and aren't underlined.
[x] Padding needs to be standardized. (See #380)
[ ] Table

[x] improved tr padding as in Pantheon UI.
[x] no border by default
[x] code smell: tr and td have paddings... why? @peterszerzo
[x] need provision/prop for alternating row colors for readability
[ ] Propagate css prop to underlying table (maybe?)

[x] PageContent from PantheonUI possibly needs to be included.
[ ] TextArea from PantheonUI
[ ] Person (maybe called Avatar?) from Labs

@tejasq will implement

[ ] Input component

[ ] add button/clickable copy-to-clipboard
[ ] add expand like for SSH keys

[ ] Create component for this thing

[x] Tabs must support a css prop in order to allow styling extensions.
[ ] Heading types need explicit margins because browsers have styles that can mess things up

... that does not look right, even without blank lines.

[ ] Level 1

[ ] Level 2
[ ] Level 2

[ ] Level 1

[ ] Level 2
[ ] Level 2

[ ] Level 1

[ ] Level 2
[ ] Level 2

- [ ] Level 1
    - [ ] Level 2
    - [ ] Level 2

- [ ] Level 1
    - [ ] Level 2
    - [ ] Level 2

- [ ] Level 1
    - [ ] Level 2
    - [ ] Level 2

What you guys don't see is that on the "linebreak" is actually a whitespace mac character. (on OSx you can get this using option +  space - see StackOverflow source.
So it's just a weird way of basically doing:
- [ ] Level 1
    - [ ] Level 2
    - [ ] Level 2
.
- [ ] Level 1
    - [ ] Level 2
    - [ ] Level 2
.
- [ ] Level 1
    - [ ] Level 2
    - [ ] Level 2

Thanks so much for clarifying, @shawnbot and @Paquette! I wonder if there's an issue about this on the markdown renderer already. 🤔


Always convert str subclasses to str

Closes #786

please review

Pydantic test failures are expected, we're changing the behavior


OmniCore require txindex

-omni dependency -txindex.

@goomario trying check it.

Fix by https://github.com/btchd/btchd/pull/21.


Linting for certain pytorch classes missing

Environment data

VS Code version: 1.33.1
Extension version (available under the Extensions sidebar):  2019.4.12954
OS and version: Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): python 3.6 from Ubuntu 18.04 repo
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: pytorch 1.1.0, pylint

Expected behaviour
Linting should work for pytorch classes like torch.tensor,torch.float, torch.ones, torch.zeros and torch.zeros
Actual behaviour
Linting does not work. Shows a red line under torch.

Steps to reproduce:

Write any code calling the aforementioned pytorch classes.

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Starting Jedi Python language engine.
##########Linting Output - pylint##########
************* Module rl
75,18,error,not-callable:torch.tensor is not callable
75,57,error,no-member:Module 'torch' has no 'float' member
96,34,error,no-member:Module 'torch' has no 'log' member
130,18,error,not-callable:torch.tensor is not callable
130,57,error,no-member:Module 'torch' has no 'float' member
150,12,error,not-callable:torch.tensor is not callable
151,17,error,no-member:Module 'torch' has no 'cat' member
160,38,error,no-member:Module 'torch' has no 'log' member

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
This issue https://github.com/pytorch/pytorch/issues/16996#issuecomment-491330553 has been fixed by pytorch on their end and the errors are with VS code. Another user https://github.com/pytorch/pytorch/issues/16996#issuecomment-492591199 has reported that the error does not appear with pycharm, but only with VS Code

##########Linting Output - pylint##########

@Genius1237 You are using pylint as your linter, and it seems like pylint does not support torch. Please open this issue on their repository.
As a temporary fix, I suggest you to choose another suitable linter which supports torch (flake8 seems to work fine). To do that,
Go to command palette Ctrl + Shift + P -> Select linter -> flake8

Looking at this, I would say that pycharm uses their own custom linter. So it is possible that the error is not on VS Code's end.
flake8 does work. It did also remind me how terrible my code is...
Is it possible to do a comparison of every linting feature here and in pycharm before closing this, just to be sure that there is feature parity.

So it is possible that the error is not on VS Code's end.

This is for sure not a BUG on vscode's end, which is why I have to close this issue. The linting features here directly come from linters, and it's not a pycharm vs vscode thing.
Also unfortunately, I do know much about the pycharm linter (or pylint). So I recommend you to please find other platforms to discuss the pros and cons of the pycharm linter and other linters. Hope you understand.


add_cloud_init_test

Add test case for cloud-init to catch any "ERROR" or "WARNING" message in /var/log/cloud-init.log and also check if command "cloud-init status" return 0.
Limit the test only to CBLMariner.

I ran the test against the ubuntu 2004, it failed.
If we see the warnings ['May  7 02:31:45 lisa--188-e0-n0 chronyd-starter.sh[732]: WARNING: libcap needs an update (cap=40 should have a name).\r', 'May  7 02:31:47 lisa--188-e0-n0 python3[957]: 2024-05-07T02:31:47.874209Z WARNING ExtHandler Dhcp client is not running.\r', what we should do next?
This one 'May  7 02:31:52 lisa--188-e0-n0 root: Added ephemeral disk warning to /mnt/DATALOSS_WARNING_README.txt\r'] is false alarm.
AzureImageStandard.verify_cloud_init_error_status: FAILED   failed. AssertionError: [unexpected ERROR/WARNING shown up in cloud-init.log Ubuntu 20.4.0] Expected <['May  7 02:31:45 lisa--188-e0-n0 chronyd-starter.sh[732]: WARNING: libcap needs an update (cap=40 should have a name).\r', 'May  7 02:31:47 lisa--188-e0-n0 python3[957]: 2024-05-07T02:31:47.874209Z WARNING ExtHandler Dhcp client is not running.\r', 'May  7 02:31:52 lisa--188-e0-n0 root: Added ephemeral disk warning to /mnt/DATALOSS_WARNING_README.txt\r']> to be empty, but was not.

I've limited the test to Mariner only as the purpose of this change is for Mariner only to catch early regression and I did not explore the possible failing cases for other distros.

@LiliDeng LGTM


Add option to specify background Paint

This enables gradients for the background.

@florent37 any input?

I think using paint IS too ''dificult'' for many devs. Can you add a method like ''backgroundGradient'' ?