[Cosmos] fix strictness issue in src/documents/DatabaseAccount.ts

Our goal is to remove strict: false from tsconfig.json in order to fulfill https://github.com/Azure/azure-sdk-for-js/issues/5276. I plan to do so by opening a PR with fixes per file.

Yielding to the cosmos team to fix this.


Use pseudo element for status dot and hide from screenreaders

When we changed the status indicator dot from an svg to an ascii character, pa11y started to care about the colour contrast (because it is being treated as text).
The dot isn't meaningful as text – this PR adds an aria-hidden attribute to make sure screenreaders ignore it.
Also, moving the dot within the content of a :before pseudo element prevents it from being considered for contrast-ratio testing by pa11y (passing locally).

100% sure we shouldn't care about the contrast?

Definitely right to question this, but I think there are worse real-world accessibility crimes that can be levelled at the component currently, if the colour of the dot is supposed to be significant (e.g. the differences between the colours is often indistinguishable).
Moreover, the whole status indicator system is due an overhaul with the introduction of different background colours for the featured cards. So doing the minimum required to 'fix' the immediate issue felt like it made sense for now.


RealtimeTuningConfig: Use different default basePersistDirectory per instance.

Avoids inadvertent conflicts when running multiple realtime ingestion workloads in the same process
Avoids NoClassDefFoundError on RealtimeTuningConfig when Files.createTempDir fails (perhaps java.io.tmpdir doesn't exist)

:+1:

:+1:  it would be nice to have an UT that verifies that each instance of RealtimeTuningConfig has unique base persist directory.

@himanshug added UT

cool :+1: , let us merge after travis is done.


How does HyperGBM works?

Does HyperGBM's make_experiment return the best model?
How does it work on paramter tuning? It's say that, what's its seach space (e.g. in XGboost)???

Hi,mokeeqian, thanks for using hyperGBM,
For Q1:

exp = make_experiment() --->exp is a CompeteExperiment class
estimator = exp.run() --->estimator is a Pipeline class including best model and some data preprocessing method and so on.
you can get best_model by exp.hyper_model_.get_best_trial() as well.

For Q2:
By default, we use evolutionary search algorithm + meta learner for hyperparameter search, About search space, you can check it from hypergbm.search_space.py. we define the search space like this, and You can customize your search space too :

'booster': Choice(['gbtree', 'dart']),
'max_depth': Choice([3, 5, 7, 10]),
'min_child_weight': Choice([1, 5, 10]),
'gamma': Choice([0.5, 1, 1.5, 2, 5]),
'reg_alpha': Choice([0.001, 0.01, 0.1, 1, 10, 100]),
'reg_lambda': Choice([0.001, 0.01, 0.1, 0.5, 1]),
In addition to algorithm parameters, we also look for optimal data preprocessing methods.

If you have any other questions, Please feel free to tell us.

Hi,mokeeqian, thanks for using hyperGBM, For Q1:

exp = make_experiment() --->exp is a CompeteExperiment class
estimator = exp.run() --->estimator is a Pipeline class including best model and some data preprocessing method and so on.
you can get best_model by exp.hyper_model.get_best_trial()_ as well.

For Q2: By default, we use evolutionary search algorithm + meta learner for hyperparameter search, About search space, you can check it from hypergbm.search_space.py. we define the search space like this, and You can customize your search space too :

'booster': Choice(['gbtree', 'dart']),
'max_depth': Choice([3, 5, 7, 10]),
'min_child_weight': Choice([1, 5, 10]),
'gamma': Choice([0.5, 1, 1.5, 2, 5]),
'reg_alpha': Choice([0.001, 0.01, 0.1, 1, 10, 100]),
'reg_lambda': Choice([0.001, 0.01, 0.1, 0.5, 1]),
In addition to algorithm parameters, we also look for optimal data preprocessing methods.

If you have any other questions, Please feel free to tell us.

okey, thanks a lot!
I have noticed that your hyperGBM's read the doc page has not contained apis to the framewrok.
I suggest to add the api usages to the page, thank you again!

Thank you for your suggestion, we will consider this and it will be added soon.


OSX: Reordering applications doesn't work

Describe the bug
Trying to reorder applications on the sidebar in OSX does not save the ordering
To Reproduce
Steps to reproduce the behavior:

Open Franz
Add multiple applications
Attempt to reorder by dragging the icons
Bug: icons are not reordered

Expected behavior
The Icons should stay in their reordered location.
Screenshots
https://i.imgur.com/fUT8PYr.mp4
Desktop (please complete the following information):

OS: OSX 10.13.6

Hi Dan,
I cannot reproduce on 10.14.4, this works fine for me. Have you tried to reinstall the software or to update it to the latest version?

Also cannot reproduce this issue.

Updated to 14.4 - still happening. I should say - it is only in Workspaces that it happens, when viewing all services, re-ordering works correctly.

The reordering issue was already reported in #1421 and we have a fix that will be available in the next release 👍


only vanilla mob heads render shaders with Just Mob Heads

I'm using Just Mob Heads by Serilium, which functions similarly to the vanillatweaks mob head datapack, but the heads it generates don't play mob sounds when placed on a noteblock. According to your datapack file at /src/main/resources/assets/data/minecraft/tags/items/noteblock_top_instruments.json, only mob heads which have been added to that category and play sounds when the head is placed on top of a noteblock will generate mob head shaders.

I'm still deciding what I should do in regard to this. I'd rather have Serilium to fix their mod, since it would also make it a better mod and it already has it as an issue

Unfortunately, I only know of these 3 (Serilium's, headed and vanilla tweaks'), if you find more of them, please let me know.

I just sent a pull request to Serilium, I hope he accepts or at least get the code modifications I did and commit them himself

Sorry it took me so long to get to. I also lost track of the PR when I moved to separate sources for each mod.
I have just uploaded version 8.1 of Just Mob Heads which adds compatibility with note blocks. Thank you @A11v1r15 for the work!


[UnitIndexer] added handlers for onIndex and onDeindex

Basically this offers a proper way to address index and deindex events with a deterministic order -
everything put into onIndex will happen AFTER an unit is indexed
everything put into onDeindex will happen BEFORE an unit is deindexed
also made it possible to call unit.deindex() which deindexes the unit and returns whether an unit was initially indexed to begin with, this is useful in cases where you want control over indexing (like when you use unit recycling systems)
also added overloads for the print function.

Thanks a lot 🌴


Search engine setup

I'm setting up self-hosted RTD instance and I'm experiencing problems with setting up the search engine.
I'm using 939c7f8 commit (master branch).
Q1: what engine should I setup?
I see that you use Haystack with different search engines. As I understand, in production you use Solr.
Q2: meanwhile, do I need to run ElasticSearch anyway? There is settings.ES_HOSTS - what's the purpose?
Q3: may I use ElasticSearch for Haystack? I tried and it's failed to build the index:
elasticsearch.exceptions.SerializationError: ({u'django_id': u'1', 'description': u'', 'title': u'Pip', 'text': u'Pip\n\n', 'author': <User: docs>, 'repo_type': u'git', u'django_ct': u'projects.project', 'absolute_url': u'/projects/pip/', u'id': u'projects.project.1'}, TypeError("Unable to serialize <User: docs> (type: <class 'django.contrib.auth.models.User'>)",))

Q4: ./manage.py reindex_elasticsearch raises an error:
File "/var/www/rtd/readthedocs/core/management/commands/reindex_elasticsearch.py", line 48, in handle
    project_scale=0, page_scale=0, section=False, delete=False)
  File "/var/www/rtd/readthedocs/restapi/utils.py", line 144, in index_search_request
    page_obj.bulk_index(index_list, parent=project.slug)
  File "/var/www/rtd/readthedocs/search/indexes.py", line 140, in bulk_index
    bulk_index(self.es, docs, chunk_size=chunk_size)
  File "/var/www/rtd/venv/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 182, in bulk
    for ok, item in streaming_bulk(client, actions, **kwargs):
  File "/var/www/rtd/venv/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 124, in streaming_bulk
    raise e
RequestError: TransportError(400, u"ElasticsearchIllegalArgumentException[Can't specify parent if no parent field has been configured]")

Q5: it seems that you use outdated django-haystack==2.1.0. I use Django 1.8 and when I do ./manage.py rebuild_index - it gives an error:
...
File "/var/www/rtd/venv/lib/python2.7/site-packages/haystack/indexes.py", line 204, in full_prepare
    self.prepared_data = self.prepare(obj)
File "/var/www/rtd/venv/lib/python2.7/site-packages/haystack/indexes.py", line 187, in prepare
    ID: get_identifier(obj),
File "/var/www/rtd/venv/lib/python2.7/site-packages/haystack/utils/__init__.py", line 33, in default_get_identifier
    obj_or_string._meta.module_name,
AttributeError: 'Options' object has no attribute 'module_name'

I've updated it to django-haystack==2.4.0 and now I can rebuild the index.

I am pretty sure the main search engine being used is ES.

As I understand, ES is used for search in files and it's used directly, without Haystack. But how Haystack is used then?
And I still can't build ES index...

I used this: https://github.com/moul/docker-readthedocs
Then spun up an ES container: https://hub.docker.com/_/elasticsearch/
I was able to search project titles and within the docs but i wasn't able to search the docs from the project's overview page.

That image no longer builds so I checked out a copy of the source from about when it did build and it still doesn't build! For some reason the manage.py isn't where he expected it to be.

what's the status of this ticket? I am not able to serialize the users-guide project because of references to users:
elasticsearch.exceptions.SerializationError: ({u'django_id': u'1', 'description': u'', 'title': u'User Guide', 'text': u'User Guide\n\n', 'author': <User: something>, 'repo_type': u'git', u'django_ct': u'projects.project', 'absolute_url': u'/projects/user-guide/', u'id': u'projects.project.1'}, TypeError("Unable to serialize <User: something> (type: <class 'django.contrib.auth.models.User'>)",))
When I run python manage.py update_index

But how Haystack is used then?

According to https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/search_indexes.py#L6 Haystack has been deprecated.

Does this #3881 solves the issue? If so, we can close this one in favor of #3803

django-haystack (there is also celery-haystack which I don't know its use case) is still listed in requirements/pip.txt so I think its usage should still be clarified in the installation guide. If it can be clarified in PR #3881 then we can close this one.

I can see that haystack is still used only on the API v1

Haystack was removed https://github.com/rtfd/readthedocs.org/pull/4039 and there is a guide for setup ES https://github.com/rtfd/readthedocs.org/pull/3881


Another option for official ps2 emulator

Please, include the official alternate version of the AetherSx2 emulator called: custom-turnip. It is the best option for computers with Adreno gpu. Let it be another option to choose from.
You have to modify:
xyz.aethersx2.android
For this directory:
xyz.aethersx2.custom
Ejem:
        "name": "ps2 - Aethersx2",
        "description": "Supported extensions: iso, chd, gz.",
        "acceptedFilenameRegex": "^(.*).(?:iso|chd|gz)$",
        "amStartArguments": " -n xyz.aethersx2.custom/.EmulationActivity\n -a android.intent.action.MAIN\n -e bootPath {file.uri}\n --activity-clear-task \n --activity-clear-top \n ",
        "killPackageProcesses": true,
        "killPackageProcessesWarning": true,
        "extra": ""

Thanks. Added!


support for ENV vars based config

Is there any interest in the environment vars based OpenTAXII config implementation? So that instead of using YAML files to store DB creds, etc they would be passed via env vars (as outlined in https://12factor.net/config)?
That would allow getting rid of https://github.com/eclecticiq/OpenTAXII/blob/master/docker/entrypoint.sh#L64-L95 and avoid credential dumping into docker logs (which is as bad as it sounds).

Are you willing to make a PR for this?


[video_player] Caption widget is still showing even if the caption is empty.

Caption widget is still showing even if the caption is empty. If the caption is null is is not showing.

Steps to Reproduce

Use the video player package with a caption .

@vanlooverenkoen
Can you provide flutter doctor -v and how to replicate the issue ?
Thanks.

I already fix the issue.
https://github.com/flutter/plugins/pull/3374

@vanlooverenkoen
Yes I saw your PR, but in order to replicate the current status of the issue, we would like to know how to replicate it.
Thanks.

I was testing my other pr and then I saw this issue. It was added after the null safety migration.
[✓] Flutter (Channel master, 1.24.0-8.0.pre.292, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-BE)
    • Flutter version 1.24.0-8.0.pre.292 at /Users/vanlooverenkoen/fvm/versions/master
    • Framework revision 2f17d4e017 (6 weeks ago), 2020-11-18 16:04:38 +0100
    • Engine revision 35a0b9fe68
    • Dart version 2.12.0 (build 2.12.0-50.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/vanlooverenkoen/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • iPhone 11 (mobile) • AD4D36DC-8A8C-4335-8FE1-98ABD48D1164 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • Web Server (web)   • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 87.0.4280.88

• No issues found!

Example: just use the video_player example in the flutter/plugin repo with nullsafety.

flutter doctor -v
[✓] Flutter (Channel master, 1.26.0-2.0.pre.137, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-IN)
    • Flutter version 1.26.0-2.0.pre.137 at
      /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 8f5d0371af (3 days ago), 2020-12-26 11:07:36 +0330
    • Engine revision f5364860ab
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (4 available)
    • sdk gphone x86 arm (mobile)         • emulator-5554
      • android-x86    • Android 11 (API 30) (emulator)
    • iPhone SE (2nd generation) (mobile) • 6C85835D-FBFD-4AB3-8DE8-B4FAD35E5367
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • macOS (desktop)                     • macos
      • darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)                        • chrome
      • web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.


feat(ui): make the separator configurable

Added a way to configure the separator.
The default behavior is to use the rounded separator.
Updated the documentation as well.

Awesome work on this @89iuv. I think this PR and #32 are doing similar things. Let me think about how combine this work if possible so everyone can be credited for this customization.

Hey @89iuv, let me know if you need any help refactoring your PR after #29 has been merged in.

Hi @89iuv, I can also help with refactoring if needed!

rework done in: https://github.com/catppuccin/tmux/pull/30


JS files not located in web-safe directory

The JS scripts in this repo should be located in a directory that would be be safe to publish in a web-accessible location. They are not currently, because they live alongside that php/ directory that is obviously not safe to publish.
This is an issue because, as an example, the library might be getting included in a Yii application as an asset bundle, which publishes an entire source directory, and then registers <script> tags in the rendered HTML pointing to the JS files within the published directory.
The JS scripts should be moved into a src/ subdirectory, or something like that, which is safe to be published in its entirety into  a web-accessible location.

Isn't there way to not move those files and to avoid publishing of php/?

@Yaffle Not in certain situations, such as the one described above.

@Yaffle Thanks! 👍

@brandonkelly Thanks for the pull request


Update to React 16

is it done? package.json has still react 15 as peer dependency. could you update it to something like 15-16 range?

I agree with @sheerun. This issue shouldn't be closed.


Too many "untranslatable" strings.

There are still too many "untranslatable" strings in the documentation (blue part),
hope that we can translate it soon :)

@YamiOdymel I'm sorry about this. I can add you to a list of people who can modify the word list. The issue is there are many many false positives. Email me at<EMAIL_ADDRESS>


[availability] support mobile drag for selected events

The event.target for a touchevent are different from those on a mouseevent. A mouse event event.target is the HTML element under the cursor when the mouse event fires. A touch event event.target will always be the original HTML element when the initial touchstart event fires.

touchstart, touchmove, and touchend events will all return the same target as touchstart. So this means we can't rely on the logic on mouseenter, we need to manually calculate the current touched slot using the touch coordinates and the position of each slot.
Before
https://user-images.githubusercontent.com/34139730/137408908-931c4afc-ab5e-4737-a0d4-00eb35cd770c.mov
After
https://user-images.githubusercontent.com/34139730/137408781-fa87aa50-334b-4ddf-af68-d64dc0eccd1d.mov
Readiness checklist

[x] Cypress tests passing?
[] New cypress tests added?
[x] Included before/after screenshots, if the change is visual

License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@krisgardiner Tested this again (not sure if you made more changes?) and the drag functionality is still buggy. Also, it looks like I can't just tap one slot to select it, I have to tap + hold, but I'm not sure if that is an existing behaviour or not
https://user-images.githubusercontent.com/55773810/137555099-8d93ec2d-01c8-4371-9b17-916e447a9268.mp4

@heathergh updated!

When selecting an AM time slot, its 'shadow' doesn't move from the correct position, it starts from the top of the availability component
Repro steps:
-- select an AM time slot
-- drag the time slot down
-- the 'shadow' of it starts moving from the top of the availability component

https://user-images.githubusercontent.com/34139730/137944942-4c40d88c-42e1-49d7-8f16-d39e241821e8.mov

When selecting two AM time slots, the shadow of the second time slot moves from the position of the first time slot
Repro steps:
-- select an AM time slot
-- select a second AM time slot
-- drag the second time slot down
-- the 'shadow' of it starts moving from the first time slot

https://user-images.githubusercontent.com/34139730/137944987-a299e99e-5743-4cca-b242-cdbd59961705.mov

Cannot select a single PM time slot (selecting a single AM time slot works as expected):
Repro steps:
-- select a single PM time slot
-- doesn't select the time slot, only shows a focus outline of the time slot

https://user-images.githubusercontent.com/34139730/137945061-7afa0743-efa7-46ba-9965-22d338558f31.mov

Selecting two PM time slots doesn't select either time slot:
Repro steps:
-- select a PM time slot (only focus outline of time slot)
-- select a second PM time slot
-- both appear as 'shadow' time slots
-- trying to drag one of the time slots only selects other time slots, creating a block

https://user-images.githubusercontent.com/34139730/137945202-645ed6c8-583f-45cf-bfad-7d79a0fcbd93.mov

Selecting AM time slots and dragging a time slot block doesn't work as expected:
Repro steps:
-- select one AM time slot
-- select two consecutive AM time slots
-- try to drag the consecutive time slot block to a PM position
-- block stays where it is and the 'shadow' block also remains where it was dragged to

https://user-images.githubusercontent.com/34139730/137945235-c14d4683-e3e7-4ec6-b0c3-e249e91ac47f.mov

Consecutive PM time slot block stays in shadow mode until another time slot is selected
Repro steps:
-- select two consecutive PM time slots
-- consecutive time slot block stays in 'shadow' mode
-- select another PM time slot
-- consecutive time slot block leaves 'shadow' mode

https://user-images.githubusercontent.com/34139730/137945287-e88cf19e-ac51-4a12-8bfc-6bcb0c0ca8d7.mov


WIP: Fix Issue #9432, caching of kernels using target-specific overloads (such as CG sync)

Firstly trying to ensure we have a test that actually fails in the context of the test suite. A fix will be added once the efficacy of the test is confirmed.
Commit 86efc6b adds the test, which successfully fails in CI, e.g.: https://gpuci.gpuopenanalytics.com/job/numba/job/numba/job/prb/job/numba-prb/654/CUDA_TOOLKIT_VER=11.2,CUDA_VER=11.2,LINUX_VER=ubuntu18.04,PYTHON_VER=3.8,RAPIDS_VER=21.12/console

gpuci run tests

cc @shaunc

gpuci run tests

gpuci run tests

gpuci run tests

Thank you!


Kroadmap 807 channeldata

Changes for channeldata

Please see: https://github.com/kaazing/gateway/pull/699

This is mostly merged already in #699 and the rest will be merged in #701


make a github action that can build jupyter books

I was speaking with @trallard today, and she mentioned that it might be possible to automatically build-and-deploy Jupyter Books using GitHub actions.
Right now I have a demo repository to show how to build a book with a github workflow here:
https://github.com/choldgraf/deploy_configurations/blob/master/.github/workflows/main.yml
In that repository:

the content/ folder has a bunch of notebooks + markdown files, no TOC and no _config.yml file
the action first installs jupyterbook and ghp-import
it then runs jupyter-book toc content/ to auto-generate a TOC for the book (though we could use a manually-created one if we wish)
it then runs jupyter-book build content/ to build the book's HTML
finally, it runs ghp-import content/_build/html to push to gh-pages

That seems fairly straightforward to run on anybody's repository...I wonder if the GitHub Actions marketplace could be used for that.
Would love to hear @trallard's thoughts!

I will have a go at this over the week and report back :) It seems doable (just had a quick look) but will come back if I encounter any issues

Would love to hear how this goes ! I was just starting to think about this but am wondering how it would interact with e.g. re-executing large notebooks. Would be great to know what ends up working for you !

I think that a reasonable first step would be to assume that the notebooks are all already populated with outputs. However in the near future, JB will have the ability to execute and cache the outputs of running a notebook, so if GitHub actions have the ability to persist data from one run to another, then this could make things much faster as people updated their book content

Hey I am working on this so I started with making some improvements to the workflow on my own fork. I however, have encountered some issues as for example. the data can not be found:
https://github.com/trallard/deploy_configurations/runs/545776015?check_suite_focus=true#step:6:113
I know this is contained in the data8 repo and therefore the data is accessed through:
from datascience import *
path_data = '../../../data/'
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plots
plots.style.use('fivethirtyeight')

cones = Table.read_table(path_data + 'cones.csv')
nba = Table.read_table(path_data + 'nba_salaries.csv').relabeled(3, 'SALARY')
movies = Table.read_table(path_data + 'movies_by_year.csv')

What  I am happy to just replace with the repo/dataset URL unless @choldgraf  has a better suggestion (I know this is a "trivial" question but thought I would ask nonetheless)
Also is possible to have a release made (even is a pre-release) to have in the action - this can then be later updated / kept up to date

What I am happy to just replace with the repo/dataset URL unless @choldgraf has a better suggestion (I know this is a "trivial" question but thought I would ask nonetheless)

this works for me - at least as a stop-gap, Data 8 probably needs to update its own textbook as well. I've been mostly just working from the jupyter book docs as the "demo" book to test out on, since it's a bit more predictable and less-complex.
For the release/pre-release, yep that'll happen soon. I think the cli will probably become a beta release on jupyter/jupyter-book soon, and then we'll start making proper releases

Cool! Will finish cleaning my workflow and then building the action
Some thoughts:

I will make the content_path configurable so that folks can define their own content path
Some assets can be cached (but I know there are certain limitations) - how these would affect this special case I do not know but can run some cases

Is this the one you have been using for testing purposes @choldgraf ?
https://github.com/jupyter/jupyter-book/tree/gh-pages

@trallard some thoughts below:

I will make the content_path configurable so that folks can define their own content path

makes sense to me

Some assets can be cached (but I know there are certain limitations)

I think this will be more valuable the more complex the content. In the most fancy case, we could set execute_notebooks to cache, and then notebooks would have their outputs stored in a little local database that could persist between runs. Then, only notebooks that were updated since the last run would need to be re-executed

Is this the one you have been using for testing purposes

Actually I've been using the docs for this tool (which is itself a jupyter book): https://github.com/ExecutableBookProject/cli/tree/master/docs


Change nodepoolSubnetResourceIds output to array

I was getting a validation error when deploying a regional hub - as the nodepoolSubnetResourceIds parameter in the hub-regionA.bicep file is expecting an array, but was getting a string

Hum, the output is actually designed to be a string because the input to the next template simply gets formatted as an array.  Outputting as an array prevents the correct formatting for the next step.  This is the same way it was when it was in ARM JSON instead.  (Only the [' and '] we had in the instructions ... and I just moved them into the bicep to clean it up a bit).  Maybe there is something else going on?

Oh, I see.  I accidently left the command as -o json instead of -o tsv! If this actually works, I'll be glad to leave it like you have it proposed here. I had it that way originally and it was outputting with newlines in the array and causing some bad command line execution, but I'll test again on Monday.  Maybe I had something else going on as well!  Thanks.


Quickstart snippet not working

I'm submitting a ...  (check one with "x")

[x] bug report
[ ] feature request

Issue description
Current behavior:
The quickstart snippet from the main website is not functioning
Expected behavior:
The quickstart code should execute without errors
Steps to reproduce:
Install the UI kit + Eva via NPM
Use the code(see below)
Related code:
import React from 'react';
import { Button } from 'react-native-ui-kitten';
export const AwesomeButton = () => (
 <Button>BUTTON</Button>

Other information:
The error:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s%s, undefined, You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
This error makes no sense to me since the component is being exported, I've checked the theme folder.

Thanks for report @Bosskee
Have you done the steps described in this guide? You need to configure an ApplicationProvider to use basic components like Button

Ah so sorry, I hadn't done that!
I tried it with thew ApplicationProvider but that seems to have generated a new error, this is my App.js:
import React from 'react';
import {
  mapping,
  theme,
} from '@eva-design/eva';
import { ApplicationProvider, Button } from 'react-native-ui-kitten';

export default class App extends React.Component {

   public render(): React.ReactNode {
     return (
       <ApplicationProvider
         mapping={mapping}
         theme={theme}>
         <Application/>
       </ApplicationProvider>
     );
   }
}

And the error I get is Unexpected token @ public class

Also you need to update a theme import:
import { mapping, light as theme } from '@eva-design/eva';

This is a typo we're sorry about. Btw we're going to update documentation this week to get it more detailed
Related issue #440

import React from 'react';
import { mapping, light as theme } from '@eva-design/eva';
import { ApplicationProvider, Button } from 'react-native-ui-kitten';

export default class App extends React.Component {

   public render(): React.ReactNode {
     return (
       <ApplicationProvider
         mapping={mapping}
         theme={theme}>
         <Application/>
       </ApplicationProvider>
     );
   }
}

Shouldn't this code work?

This code assumes you have some Application component which can be any screen in your app.
You can also replace it with Button to quickly review how it works

What confuses me is that the code I posted above doesn't work. This is the exact error:
App.js: Unexpected
token (7:10)

   5 | export default class App extends React.Component {
   6 |
>  7 |    public render(): React.ReactNode {
     |           ^
   8 |      return (
   9 |        <ApplicationProvider
  10 |          mapping={mapping}
Failed building JavaScript bundle.

Because you're trying to use TypeScript code in a JavaScript file

Because you're trying to use TypeScript code in a JavaScript file

So none of the documentation code goes into App.js ?

We're working on updating it with a JavaScript examples. For now, if you're not familiar with TypeScript, use the following code:
import * as React from 'react';
import { mapping, light as lightTheme } from '@eva-design/eva';
import { ApplicationProvider, Layout } from 'react-native-ui-kitten';

export default App = () => (
  <ApplicationProvider
    mapping={mapping}
    theme={lightTheme}>
    <Layout style={{flex: 1}}/>
  </ApplicationProvider>
);

We're working on updating it with a JavaScript examples. For now, if you're not familiar with TypeScript, use the following code:
import React from 'react';
import { mapping, light as lightTheme } from '@eva-design/eva';
import { ApplicationProvider, Layout } from 'react-native-ui-kitten';

export default App = () => (
  <ApplicationProvider
    mapping={mapping}
    theme={lightTheme}>
    <Layout style={{flex: 1}}/>
  </ApplicationProvider>
);

Ah ok, I understand, that works. So this should render a button then?
import React from 'react';
import { mapping, dark as darkTheme } from '@eva-design/eva';
import { ApplicationProvider, Layout, Button, Text } from 'react-native-ui-kitten';

export default App = () => (
  <ApplicationProvider
    mapping={mapping}
    theme={darkTheme}>
  </ApplicationProvider>
);

export const AwesomeButton = () => (
 <Button>BUTTON</Button>
);

This will not render a Button because you didn't place it in a render method. I suggest you reading React Native documentation before you start.


Tab position, usability improvment.

It is more of a feature request rather than an issue.
Case a:
If user uses keyboard shortcut (ctrl + t), the new tab opens next to currently selected tab. As it is now.
Case b:
If user click to open new tab button on Firefox(Right end of the tab bar). The tab opens at the end of the list.
I believe it is more appropriate in terms if UX, since new tab button is more related to the right end rather than, right of the selected tab. As a user, I simply am focused on the new tab button, therefore I believe it is more likely that I would expect the tab to appear at the end of tab list. At least that is the case for me and some people that I know.
I have previously implemented this feature by Forking this repository, but it broke with E10's and I do not have any time to maintain that repository. Below is the link to the repository if you think that feature is worth implementing.
https://github.com/Nidre/firefox-open-tabs-next-to-current
Thank You

I have fixed the bug and it currently works with my version of this add-on.

I am working on this and only the hotkey functionality is missing(which should be simple though as I moved everything over to the SDK): https://github.com/sblask/firefox-open-tabs-next-to-current/pull/4

@sblask I have already done those change son my Branch. Hotkey + the mentioned feature. You can take a look if it helps in anyway.


Field: Fix html tag type of wikidata label

The span need to be a div after https://github.com/openstreetmap/iD/pull/10127/files
Closes https://github.com/openstreetmap/iD/issues/10143

It looks like this time I found all span, at least https://github.com/search?q=repo%3Aopenstreetmap%2FiD++labeled-input&type=code does now show any.


Add a warning to the withdrawals screen that tells users withdrawals will be lost if not compelete before checkpoint

Suggest adding a warning call out on the withdraw page.
and another one on the withdrawals page that just talks about loosing a withdraw on reset.

Can you explicitly add some alike: “whatever the amount of token you withdraw, and depending on the gas price, the gas will be > $100 and < $400”?

Done in #1087 and updated in #1114

Warning verified on the Withdrawals page


Unable to deeplink due to 400 on https://api.branch.io/v1/open

By request from your support team, I hereby create an issue on this repo.
We're seeing a lot of iOS devices, that refuse to deeplink from any Branch link. After debugging it we found that the Branch SDK produced this error on those devices:
BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid."
You support team then asked to get full logs, which I'll provide here:
On app startup we get:
2018-04-18 09:59:00.691382+0200 Tonsser[21498:3068036] [branch.io] Branch.m(192) Log: Branch version 0.24.1 started at 2018-04-18 07:59:00 +0000.
2018-04-18 09:59:00.699768+0200 Tonsser[21498:3068043] [branch.io] BNCServerInterface.m(759) Debug: URL: https://api.branch.io/v1/open.
2018-04-18 09:59:00.700032+0200 Tonsser[21498:3068043] [branch.io] BNCServerInterface.m(763) Debug: Body: {
    "branch_key" = [redacted];
hne?link_click_id=485466565792233069","local_ip":"<IP_ADDRESS>","brand":"Apple","lastest_update_time":1524038321000,"update":2,"cd":{"pn":"com.tonsser.tonsser","mv":"-1"},"screen_height":2436,"apple_ad_attribution_checked":false,"model":"iPhone10,6","branch_key":[redacted],"user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E216","first_install_time":1511011032163,"hardware_id":[redacted]
2018-04-18 09:59:00.700752+0200 Tonsser[21498:3068043] [branch.io] BNCNetworkService.m(232) Debug: Network start operation https://api.branch.io/v1/open.
2018-04-18 09:59:01.096089+0200 Tonsser[21498:3068067] [branch.io] BNCNetworkService.m(227) Debug: Network finish operation https://api.branch.io/v1/open 0.396s. Status 400 error (null).
2018-04-18 09:59:01.096259+0200 Tonsser[21498:3068067] [branch.io] BNCServerInterface.m(819) Debug: Server returned: Status: 400; Data: {
2018-04-18 09:59:01.096387+0200 Tonsser[21498:3068067] [branch.io] BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=2018-04-18 09:59:01.503923+0200 Tonsser[21498:3068044] [branch.io] BNCServerInterface.m(759) Debug: URL: https://api.branch.io/v1/open.
2018-04-18 09:59:01.504220+0200 Tonsser[21498:3068035] [branch.io] BNCServerInterface.m(763) Debug: Body: {
    "branch_key" = [redacted];
92233069","local_ip":"<IP_ADDRESS>","brand":"Apple","lastest_update_time":1524038321000,"update":2,"cd":{"pn":"com.tonsser.tonsser","mv":"-1"},"screen_height":2436,"apple_ad_attribution_checked":false,"model":"iPhone10,6","branch_key":[redacted],"user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E216","first_install_time":1511011032163,"hardware_id":[redacted],"os":"iOS","identity_id":"411130905558697046","hardware_id_type":"random","latest_install_time":1511011032163,"screen_width":1125,"language":"en","ios_vendor_id":"55975D11-B4F9-41E8-9A5E-EA7C5FC026D0","app_version":"6.0.6"}.
2018-04-18 09:59:01.506009+0200 Tonsser[21498:3068035] [branch.io] BNCNetworkService.m(232) Debug: Network start operation https://api.branch.io/v1/open.
2018-04-18 09:59:01.694457+0200 Tonsser[21498:3068041] [branch.io] BNCNetworkService.m(227) Debug: Network finish operation https://api.branch.io/v1/open 0.190s. Status 400 error (null).
2018-04-18 09:59:01.694510+0200 Tonsser[21498:3068041] [branch.io] BNCServerInterface.m(819) Debug: Server returned: Status: 400; Data: {
2018-04-18 09:59:01.694587+0200 Tonsser[21498:3068041] [branch.io] BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid., NSLocalizedFailureReason=The request was invalid.}

On Branch link tapped
2018-04-18 09:59:53.429898+0200 Tonsser[21498:3068525] [branch.io] BNCServerInterface.m(759) Debug: URL: https://api.branch.io/v1/open.
2018-04-18 09:59:53.430645+0200 Tonsser[21498:3068793] [branch.io] BNCServerInterface.m(763) Debug: Body: {
    "branch_key" = [redacted];
t_id":"411781086872536794","uri_scheme":"ak237526079791417","retryNumber":0,"previous_update_time":1523569193000,"universal_link_url":"^fb\d+:","facebook_app_link_checked":false,"external_intent_uri":"com.tonsser.tonsser://tonsser.com/users/jack-lahne?link_click_id=485466565792233069","local_ip":"<IP_ADDRESS>","brand":"Apple","lastest_update_time":1524038321000,"update":2,"cd":{"pn":"com.tonsser.tonsser","mv":"-1"},"screen_height":2436,"apple_ad_attribution_checked":false,"model":"iPhone10,6","branch_key"
2018-04-18 09:59:53.433991+0200 Tonsser[21498:3068793] [branch.io] BNCNetworkService.m(232) Debug: Network start operation https://api.branch.io/v1/open.
2018-04-18 09:59:53.646281+0200 Tonsser[21498:3068304] [branch.io] BNCNetworkService.m(227) Debug: Network finish operation https://api.branch.io/v1/open 0.216s. Status 400 error (null).
2018-04-18 09:59:53.646363+0200 Tonsser[21498:3068304] [branch.io] BNCServerInterface.m(819) Debug: Server returned: Status: 400; Data: {
2018-04-18 09:59:53.646408+0200 Tonsser[21498:3068304] [branch.io] BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid., NSLocalizedFailureReason=The request was invalid.}
2018-04-18 09:59:54.180317+0200 Tonsser[21498:3068793] [branch.io] BNCServerInterface.m(759) Debug: URL: https://api.branch.io/v1/open.
2018-04-18 09:59:54.181636+0200 Tonsser[21498:3068793] [branch.io] BNCServerInterface.m(763) Debug: Body: {
    "branch_key" = [redacted];
t_id":"411781086872536794","uri_scheme":"ak237526079791417","retryNumber":0,"previous_update_time":1523569193000,"universal_link_url":"^fb\d+:","facebook_app_link_checked":false,"external_intent_uri":"com.tonsser.tonsser://tonsser.com/users/jack-lahne?link_click_id=485466565792233069","local_ip":"<IP_ADDRESS>","brand":"Apple","lastest_update_time":1524038321000,"update":2,"cd":{"pn":"com.tonsser.tonsser","mv":"-1"},"screen_height":2436,"apple_ad_attribution_checked":false,"model":"iPhone10,6","branch_key"
2018-04-18 09:59:54.206659+0200 Tonsser[21498:3068793] [branch.io] BNCNetworkService.m(232) Debug: Network start operation https://api.branch.io/v1/open.
2018-04-18 09:59:54.377973+0200 Tonsser[21498:3068527] [branch.io] BNCNetworkService.m(227) Debug: Network finish operation https://api.branch.io/v1/open 0.197s. Status 400 error (null).
2018-04-18 09:59:54.378022+0200 Tonsser[21498:3068527] [branch.io] BNCServerInterface.m(819) Debug: Server returned: Status: 400; Data: {
2018-04-18 09:59:54.378098+0200 Tonsser[21498:3068527] [branch.io] BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid., NSLocalizedFailureReason=The request was invalid.}

As mentioned it only happens to some users and we have found no indicators as to why those users are affected. Force closing the app does not help.

Thanks for reporting this.  I'll look into it and see what I find.

Having same issue....
2018-04-19 17:40:58.553035-0400 VICI[8508:3031715] [branch.io] Branch.m(192) Log: Branch version 0.24.1 started at 2018-04-19 21:40:58 +0000. 2018-04-19 17:40:58.786011-0400 VICI[8508:3031719] [branch.io] BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid., NSLocalizedFailureReason=The request was invalid.} 2018-04-19 17:46:05.996035-0400 VICI[8508:3034291] [branch.io] BNCServerInterface.m(598) Error: An error prevented request to https://api.branch.io/v1/open from completing: Error Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid., NSLocalizedFailureReason=The request was invalid.}

My app now no longer shows up on branch dashboard either...

@nextbigidea Sorry about your issue!
Can you turn logging on and send me the logs?
To turn Branch logging on in the app, add the line
BNCLogSetDisplayLevel(BNCLogLevelAll);

in your application:didFinishLaunchingWithOptions: method.

@nextbigidea email me at<EMAIL_ADDRESS>

Try making sure your Branch key is correct and not truncated.

@E-B-Smith it's not truncated

Thank you both for all the info.
I have a fix in PR https://github.com/BranchMetrics/ios-branch-deep-linking/pull/824 which I'll promptly release after some more testing.

Fixed in release 0.24.2.


Added Italian Language + Added ENV variables

Please, send a PR only with it translations and another one with environment changes.
The PWA version is currently available at /pwa path.


Added validation graph option and check for overwriting previous runs

Added option to enable validation loss graph. Graph data is also saved to file (format can be changed). Added assert statement at start of main.py to check if the specified results folder contains a previous run to prevent accidentally overwriting it.

The training and validation loss curves are already recorded using Tensorboard in the ./results/logs folder. Are you not able to access them? What is the purpose of the validation graph option?
For the assert statement for the results.csv file, I think that it would make more sense to append the date/time stamp to the results.csv file so that it's something like results_07-16-2024-2328. Otherwise, I think that this assertion would cause more problems than it would solve. For example, what happens if you do a test run and then want to go back and run the same experiment for longer? It seems a little cumbersome to have users go back and delete the results.csv file every time.

Oh. I didn't know that the loss curves were stored somewhere. I'll start using that. (I'm going to be honest, I somehow never touched the logs folder)
For the assert statement, I've had many cases where I forget to change the results location and I end up overwriting a previous run which had data I still needed. I don't think just renaming the results csv file will work because there is other important data that is also save-worthy (Like if you want to compare predictions from an old run to a newer run). Maybe instead prompt the user that there is a previous run like: "There is a previous run in the results folder. Overwrite? (y/n)". We can also add an option to disable this prompt.

Hmm how about we add a flag like --overwrite and set the default value to False? In that case, it throws the assertion error you implemented. Otherwise it overwrites the results. What do you think?

That sounds good! I'll add the flag and revert the validation graph changes.

Done! There are a few more changes that I'm working on right now (not related to this PR) that I want to add soon. Once those are committed, I'll release a new version with this change.


Bug: Taskbar preview icon is wrong.

What feature or improvement do you think would benefit Files?
Alt+tab or Win+tab the icon is not the on of Files, but a ugly generic blue one from WIndows.
Requirements

Change the generic icon for the Files one
This proposal will accomplish better visibility when switching apps

Files Version
Version: <IP_ADDRESS>
Windows Version
Edition	Windows 11 Home Version	22H2 Installed on	20/09/2022 OS build	22621.1194 Experience	Windows Feature Experience Pack 1000.22638.1000.0
Comments

@Ferrario-Filippo the PR doesn't seem to have fixed this, I can still reproduce the issue.

@Ferrario-Filippo the PR doesn't seem to have fixed this, I can still reproduce the issue.

Actually, that PR was opened by @hecksmosis in #11188

Whoops! My apologies.

No problem ;)

@Ferrario-Filippo the PR doesn't seem to have fixed this, I can still reproduce the issue.

Actually, that PR was opened by @hecksmosis in #11188

Oops! It's difficult to test if the icons really work because it requires releasing to stable/preview

The CI pipeline renames the folders so it's always in the release folder, even for preview.

I can confirm it's working fine in the stable version v2.3.33 though.

Do you mean 2.4.33?

The CI pipeline renames the folders so it's always in the release folder, even for preview.

Oh, didn't know that, looks like it was in the preview folder in WindowsApps

Turns out I was wrong, the pipeline doesn't rename the folder. Stable and dev have the correct icons but preview doesn't.


database indexes probably missing?

From @derStephan on November 28, 2016 8:22
Hi,
out of curiosity, I opened db.sqlite in a database manager. Without knowing any reading sql command it seems odd that there are so few indexes.
Let's take "calendarobjects" as an example. There is only a primary key on column "ID". But I would imagine that the normal use case is: the client asks for all objects of a specific calendar (column "calendarid") within a time span (is that in columns "firstoccurence" and "lastoccurence"?)
So an index over calendarid, firstoccurence, lastoccurence may be useful.
Again: I did not look over the real sql commands but I can hardly imagine, that you query this table only by IDs.
Copied from original issue: fruux/Baikal#633

Hey! You're not wrong. There's a pretty low amount of sql indexes in the sqlite files. MySQL is a lot better in that regard. This is definitely worth fixing.

From @derStephan on November 29, 2016 6:19
Hey, thanks for your quick reply.
So this may have a serious performance impact when it comes to a lot of objects within the database. Maybe some hint during installation regarding performance of baikal with the different databases may be useful?
As far as I can see it, sqlite is seen as the standard database engine, so there should be some kind of help to decide which database suits what load.

Thanks for that. I just got a brief glimpse on these indexes and have 2 additional questions.

Are there really no queries involving event dates? These should speed up things quite a bit when you have lots of events within one single calendar.
I did not see any ALTER-Commands for upgrades of existing installations. How will this be done?

Hi @derStephan ,
I missed the index on the firstoccurence field, but added this now. There's no ALTER TABLE commands yet, but I will eventually get around this when I'm closer to the 3.3 release and I'm writing the migration scripts.
In the meantime you can just apply the indexes manually for a speed boost. If you are seeing performance problems though, you might also consider switching to MySQL, which will probably be faster.

Thanks. Keep up your great work!

@evert
I just checked again.
https://github.com/fruux/sabre-dav/blob/master/examples/sql/sqlite.calendars.sql
There is no index which includes firstoccurence. Do I miss something or did you? 😃

the change was committed to 3.3, not master yet.
https://github.com/fruux/sabre-dav/pull/922

3.3 is where most of the development happens. Master will eventually be 4.0 but 3.3 isn't even released yet.


[8.x] Add optional params to FormRequest validated method

Adds optional params to FormRequest validated() method, so developer can access validated data in cleaner, more readable way.
Before:
$data = $request->validated()
$email = $data['email']
$role = $data['role'] ?? UserRole::GUEST

After:
$email = $request->validated('email')
$role = $request->validated('role', UserRole::GUEST)

Method signature is the same as $request->input($key, $default) so there is no learning curve and it is fully backwards compatible. It is also much faster than $request->input('key'), about 2-3x faster in my tests, performing similarly to $request->get('key').

Please don't edit the title of this PR without also changing the base branch.

It's a breaking change on a patch release.


fix/reformat-basic-node-express-challenges

I have gone through the Basic Node and Express section and done the following:
Add indentation to blockquote code
Move instructions to the instructions section
Remove external links
Some minor grammar and punctuation changes for clarity and legibility.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x]  All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

refer to https://github.com/freeCodeCamp/freeCodeCamp/issues/35413

There are two PR's that touch this file that are earlier than this.

https://github.com/freeCodeCamp/freeCodeCamp/pull/34587
https://github.com/freeCodeCamp/freeCodeCamp/pull/35321

Thanks for the feedback @RandellDawson, I resolved the two changes you requested.

LGTM.  I approve these final changes.


Attempt to Fix Wrong PR #102

@jrosebr1  I'm really sorry but my previous PR accidentally has the Wrong Correction to fix the Bug discussed here #102. Please pardon my silly mistake :( and merge this new and corrected PR to fix the Bug. I assure not make such mistakes, thank you

Merged in, thanks @abhiTronix.


Add module to download GEDI data from NASA Earthdata

https://github.com/nsidc/earthaccess

import earthaccess
import fiona

earthaccess.login()

vec = "download_aoi.geojson"
bounds = fiona.open(vec).bounds

results = earthaccess.search_data(
    short_name='GEDI02_A',
    bounding_box=bounds,
    #temporal=("2019-01-01", "2021-01-01"),
    count=-1
)

files = earthaccess.download(results, "./download/GEDI/L2A")

Currently, only entire granules can be downloaded. Subsetting will be implemented sometime this year:
https://github.com/nsidc/earthaccess/discussions/467#discussioncomment-8546504

As far as I understand, streaming granules using the open-method (instead of download as shown above) could already work to subset and extract data without the need to download the files to disk first.


Client components missing in SSR manifest when imported from files not in webpackRscLayerName

It's unclear to me how I am supposed to configure the resource regexes for the webpackRscLayerName. It seems like any imports of client components need to be seen by the rscServerLoader, which is only used by those layers. If I reference a client component from a file not included in that regex, I end up with two copies of the client component in my bundle, one of them having client references and one having the original code (despite being in the react-server layer).  This also causes the resulting clientReferencesMap to not have ssrId populated, because webpack will append a random string to the module ID.
Is the idea that webpackRscLayerName should have all files that might include client components? It seems like that fails if other client components are also included in the layer.
Basically any guidance on which source modules should be passed to each of the loaders/plugins would be very appreciated.

Sure, I tried to make one at https://github.com/quentinmit/mfng-repro
You can build and launch it with npm run start, and then curl http://localhost:3000/ to trigger a render.
Take a look at the three different options I've described in node-webpack.config.mjs; all three of those regex sets fail with different errors.
Can you help me figure out what the right combination of webpack layers is?

Thanks for the repro! The main server component needs to live in its own file so that we can target it in the webpack RSC layer rule. See https://github.com/quentinmit/mfng-repro/pull/1

How does that work if there's more than one "main server component"?

As you can see in your webpack config, resource accepts an array.

I think there's still something missing in the webpack config. After merging your PR into my mfng-repro repo, and trying to add a Link component into App.tsx, , compiles now fail with
  ERROR in<EMAIL_ADDRESS>3:29-48
  export 'createContext' (imported as 'React') was not found in 'react' (possible exports: Children, Fragment, Profiler, StrictMode, Suspense, __SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, cache, cloneElement, createElement, createRef, forwardRef, isValidElement, lazy, memo, startTransition, use, useActionState, useCallback, useDebugValue, useId, useMemo, version)
<EMAIL_ADDRESS>3:0-32 3:0-32
   @ ./src/components/App.tsx 4:0-41 6:150-154
   @ ./src/routes.tsx 12:0-39 38:68-71
   @ ./src/app.ts 4:0-39 11:21-32
   @ ./src/main.ts 1:0-24 3:0-3

which I think means it's trying to use the server version of React despite the "use client" at the top of link.tsx.
I pushed this latest version to the mfng-repro repo if you wouldn't mind taking another look.
P.S. Is there an IRC/Matrix/etc. channel for mfng? I feel bad cluttering up the Issues with "am I holding it right?" questions.

Thanks again for raising these issues! I've implemented fixes and integrated them in https://github.com/quentinmit/mfng-repro/pull/2.

Thanks so much! I'm afraid I've found two new issues:

"use client" is ignored when using a default export (e.g. import Tooltip from "react-bootstrap/Tooltip"; fails unless it's imported from another file that also has "use client")

I pushed a demo of this to the mfng-repro repo. I think it also fails when using a class component, but I didn't make a repro of that yet.

webpack race conditions I haven't managed to track down

Depending on the parallelism setting, I'm seeing failures of the form:
  ERROR in ./node_modules/prop-types/lib/has.js
  Cannot read properties of undefined (reading 'length')
  TypeError: Cannot read properties of undefined (reading 'length')
      at WasmHash._updateWithBuffer (/home/user/repo/node_modules/webpack/lib/util/hash/wasm-hash.js:108:23)
      at WasmHash.update (/home/user/repo/node_modules/webpack/lib/util/hash/wasm-hash.js:51:8)
      at BatchedHash.update (/home/user/repo/node_modules/webpack/lib/util/hash/BatchedHash.js:53:14)
      at NormalModule.updateHash (/home/user/repo/node_modules/webpack/lib/NormalModule.js:1521:8)
      at Compilation._createModuleHash (/home/user/repo/node_modules/webpack/lib/Compilation.js:4107:11)
      at Compilation.createModuleHashes (/home/user/repo/node_modules/webpack/lib/Compilation.js:4052:25)
      at /home/user/repo/node_modules/webpack/lib/Compilation.js:3127:11
      at Hook.eval [as callAsync] (eval at create (/home/user/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
      at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/user/repo/node_modules/tapable/lib/Hook.js:18:14)
      at /home/user/repo/node_modules/webpack/lib/Compilation.js:3083:36
   @ ./node_modules/prop-types/factoryWithTypeCheckers.js 14:10-30
   @ ./node_modules/prop-types/index.js 14:19-55
   @ ./node_modules/react-bootstrap/esm/OverlayTrigger.js 4:0-35 37:20-35
   @ ./src/App.tsx 6:0-60 134:32-46

(Note that what's undefined is this.buildInfo.hash in the NormalModule object that represents ./node_modules/prop-types/lib/has.js)
I haven't been able to simplify this down to something that I can reproduce in the mfng-repro repo though, so it's possible that this has nothing to do with the mfng plugins.

I was able to make a small reproducer for the webpack race condition. It's at https://github.com/quentinmit/mfng-repro/tree/webpack-race, and it fails to compile most of the times I try (but occasionally it succeeds). Based on the different output from each run, it seems like there's a race condition with a data structure inside webpack.

Thanks again for the repro, that helps a lot! Both of these issues should be fixed with<EMAIL_ADDRESS>Let me know if you find anything else.

Thanks again for the repro, that helps a lot! Both of these issues should be fixed with<EMAIL_ADDRESS>Let me know if you find anything else.

I filed https://github.com/unstubbable/mfng/issues/80 for another manifest generation bug we encountered.


[BUG] Popover wrapped menu item always have css ".MuiModal-hidden-114 {visibility: hidden}"

I use the code below to render navbar menu
// ScriptsMenu
		return (

			<RaisedButton onClick={this.onClick}
				label={this.label }/>
			{/*
				transformOrigin={this.state.transformOrigin}
				onRequestClose={this.onRequestClose}

			*/}
			{/*
			<Popover
				open={this.getState.open}
				anchorEl={this.getState.anchorEl}
				anchorReference={this.anchorReference}
				anchorOrigin={this.state.anchorOrigin}
				transformOrigin={this.state.transformOrigin}
				onClose={this.onRequestClose}>
			*/}
			<Popover
				open={this.getState.open}
				anchorEl={this.getState.anchorEl}
				anchorReference={this.anchorReference}
				anchorOrigin={this.state.anchorOrigin}
				transformOrigin={this.state.transformOrigin}
				onClose={this.onRequestClose}>

			{/*
			<Menu
				open={this.getState.open}
				anchorEl={this.getState.anchorEl}
				transformOrigin={this.transformOrigin}
				onClose={this.onRequestClose}>
			*/}
			{/*
			// @desc<EMAIL_ADDRESS>no longs delegates the usage of menu
				<Menu>
			*/}

			{/*
			// @desc<EMAIL_ADDRESS>cannot detects prop primaryText
					<MenuItem value={1} primaryText="open" />
					<MenuItem value={2} primaryText="imports" />
					<Divider />
			*/}
					<MenuItem value={1}>open</MenuItem>
					<MenuItem value={2}>imports</MenuItem>
					<Divider />

			{/*
				</Menu>
			*/}

			{/*
			</Popover>
			*/}
			</Popover>

			{/*
			</Menu>
			*/}

I found the initial position of menu items are randomly placed. along side drawer not under the menu button.
Once you click it. It disappears and no long shows up again because this css attribute:

.MuiModal-hidden-114 {visibility: hidden}

You disable it, it shows up in correct position under the button.
HERE ARE MY entry codes:
@inject("store") @observer
export default class Editor extends React.Component {
	constructor(props) {
		super(props)
	}

	render() {
		return (
			<MuiThemeProvider theme={muiTheme}>
			<Root />
			</MuiThemeProvider>

		)

	}

}

The Root contains the Navigation element

@inject("store") @observer
class Root extends React.Component {
	constructor(props) {
		super(props)

		this.state = {
			open: false
		}
		this.observableState = new ObservableState()

		this.handleDrawerOpen = this.handleDrawerOpen.bind(this)
		this.handleDrawerClose = this.handleDrawerClose.bind(this)
		this.getState = this.getState.bind(this)
	}

	render() {
		const {classes, theme} = this.props
		const drawerStyle = {
			paper: classNames(classes.drawerPaper, !this.state.open && classes.drawerPaperClose)
		}

		return (

			<AppBar id="editor"
				position="absolute"
				className={classNames(classes.appBar, this.state.open && classes.appBarShift)}>
				<Navigator
					handleDrawerOpen={this.handleDrawerOpen}
					getState={this.getState} />
			</AppBar>

			<Drawer variant="permanent"
				classes={drawerStyle}
				open={this.state.open}>

					<IconButton onClick={this.handleDrawerClose}>
						{theme.direction === 'rtl' ? <ChevronRightIcon /> : <ChevronLeftIcon />}
					</IconButton>

				<Divider />
				<List>
					<ListItem button>
						<ListItemIcon>
							<MailIcon />
						</ListItemIcon>
						<ListItemText primary="All mail" />
					</ListItem>

					<ListItem button>
						<ListItemIcon>
							<DeleteIcon />
						</ListItemIcon>
						<ListItemText primary="Trash" />
					</ListItem>

					<ListItem button>
						<ListItemIcon>
							<ReportIcon />
						</ListItemIcon>
						<ListItemText primary="Spam" />
					</ListItem>
				</List>
			</Drawer>

			{/*

			<Scene />

			*/}

		)

	}

	handleDrawerOpen() {
		this.setState({open: true})
		this.observableState.toggleState("open")
	}

	handleDrawerClose() {
		this.setState({open: false})
		this.observableState.toggleState("open")
	}

	getState() {
		return this.observableState.state
	}

}

Root.propTypes = {
	classes: PropTypes.object.isRequired,
	theme: PropTypes.object.isRequired
}

export default withStyles(styles, {withTheme: true})(Root)

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Summary
How can I make sure the menu placed initialized in right place and eliminate the side css effects
.MuiModal-hidden-114 {visibility: hidden}

React css in code is already not human maintainable compared to css3 written in less with design conventions in mind.
Your Environment

Tech
Version

Material-UI
<EMAIL_ADDRESS>

React
lastest

browser
chrome

etc

I had that bug but I think solved it with updating all react/redux related dependencies to newest versions.

@yiakwy Please provide a full reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Also, try to keep the reproduction as simple as possible. Thank you!

@yiakwy: I ran into the same issue.
You should be able to resolve it by updating your react and react-dom packages to ^16.3.0.
If you're unable to upgrade, you can force popovers to be visible by applying this style globally.
.MuiModal-hidden-65 { visibility: visible !important; }
There may be unintended consequences of using this style. That said, I haven't seen any.

@nslocum @dushajni I just tried both versions of  16.3.0 and ^16.3.2. They don't work properly.
@oliviertassinari I will try it.

Is there anything on the material-ui site about having to update react and react-dom to 16.3 for dialog,modal and popovers to work? Wasted a couple hours looking into it before I came across this. Updating to 16.3 fixed modal and dialogs for me. Haven't tested popovers.

@nick-da-silva-m3 It's in the breaking changes changelog of the v1.0.0-rc.0 release. Also, you must have a warning when running npm install.

I just found the problem. Two props are important to position the Popover menus:

anchorEl should not be undefined
anchorReference should be defined as 'anchorEl'

I made a mistake in using %s/target/transform/gci to rename targetOrigin to transformOrigin and just to find evt.currentTarget to evt.currentTransform, which makes anchorEl undefined.
I also messed up in this.state.anchorEl
I fixed them. They work fine again
Thanks to @oliviertassinari  @dushajni  @nslocum again.

@aguilera51284 I got the same error with Select and Drawer.
Updating react and react-dom to 16.3.0 fixed both


Users be warned.  SHA 256 instead of PBKDF2

The key derivation function in the library is SHA 256.  SHA 256 is fast, so deriving the key will be easier than if this library used PBKDF2.  This means the encrypted data is extra vulnerable if you have a weak password.

whoops, meant to type this somewhere else... Too many windows open :man_shrugging:

Just to be clear, this library DOES use a proper password-based key derivation function.  Thanks for correcting the report :)


new game rock paper scissor

Describe the Feature you want to end

Expected behavior

Screenshots (optional)

Additional context (optional )

please assign it to me

@MohitGupta121 , @TusharKesarwani raised the pr please review it


refactor: Create did bloc outside VDRI

closes #30
Signed-off-by: Firas Qutishat<EMAIL_ADDRESS>

Codecov Report

Merging #31 into master will increase coverage by 0.37%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   90.45%   90.82%   +0.37%
==========================================
  Files          11       11
  Lines         262      229      -33
==========================================
- Hits          237      208      -29
+ Misses         14       12       -2
+ Partials       11        9       -2

Impacted Files
Coverage Δ

pkg/vdri/bloc/vdri.go
94.44% <100%> (+2.49%)
:arrow_up:

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 8f458a6...42c4727. Read the comment docs.


Unable to specify a search sub-folder

Surprisingly, there is no way to specify a search folder location. VS Code forces me to use the base folder for all my searches (and the base folder contains a lot of files).
Sublime Text allows me to specify a sub-folder to reduce the scope of the search.
This, combined with the other issue #63 makes it impossible for me to switch from Sublime Text to Code.

I usually right click on the subfolder and use Find in Folder option. This will populate the files to include text box with the path prefix of the sub-folder. Search will then only return results for that subfolder.

You can actually do this, it's just not very discoverable. Bring up the find in files dialog and pretty the small 3 dot "button" on the bottom right of the text box. This is how you bring up the files to include text box manually. I think it's a valid issue though, it should be made more discoverable/accessible.

Already tried the small three-dot option. It is unclear how to put there a subfolder. It only shows "included files", "excluded files" and "files excluded through settings"
Sublime Text gives you a separate folder box ("Where:") with a Browse button

Yeah, try with right-click on a folder and search in. the box for where to search supports glob patterns, so it is a combination of file types and/or folders to search.


expose delete build in cli

Clear and concise description of the problem
presently, the CLI contains a number of operations on builds:
woodpecker-cli build --help
8:25PM ??? github.com/woodpecker-ci/woodpecker/cli/common/zerologger.go:20 > LogLevel = trace
NAME:
   woodpecker-cli build - manage builds

USAGE:
   woodpecker-cli build command [command options] [arguments...]

COMMANDS:
   ls       show build history
   last     show latest build details
   logs     show build logs
   info     show build details
   stop     stop a build
   start    start a build
   approve  approve a build
   decline  decline a build
   queue    show build queue
   ps       show build steps
   help, h  Shows a list of commands or help for one command

however, the api supports build operations including:

DeleteBuild (cancel)
DeleteBuildLogs

Suggested solution
it would be nice to see parity between the api and cli.
there might be other endpoints as well.
Alternative
use the api over cli
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

the latter may be missing from the web UI as well


Commit watcher

Codecov Report

Merging #11 into master will decrease coverage by 4.05%.
The diff coverage is 67.09%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   91.24%   87.18%   -4.06%
==========================================
  Files          10       13       +3
  Lines         708      796      +88
==========================================
+ Hits          646      694      +48
- Misses         62      102      +40

Impacted Files
Coverage Δ

src/commit.rs
0% <0%> (ø)

src/handlers/summary.rs
86.66% <100%> (ø)
:arrow_up:

src/results.rs
100% <100%> (ø)

src/handlers/mod.rs
100% <100%> (ø)
:arrow_up:

src/settings.rs
97.8% <100%> (+3.35%)
:arrow_up:

src/transaction.rs
93.2% <100%> (ø)
:arrow_up:

src/lib.rs
31.57% <16.66%> (-7.14%)
:arrow_down:

src/handlers/index.rs
89.15% <86.3%> (-2.02%)
:arrow_down:

src/handle.rs
93.33% <93.33%> (ø)

src/handlers/bulk.rs
93.42% <93.75%> (+0.17%)
:arrow_up:

... and 4 more

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 4398125...c6435de. Read the comment docs.

Pull Request Test Coverage Report for Build 81

0 of 0   changed or added relevant lines in 0 files are covered.
61 unchanged lines in 6 files lost coverage.
Overall coverage decreased (-3.4%) to 86.794%

Files with Coverage Reduction
New Missed Lines
%

settings.rs
2
97.8%

transaction.rs
4
93.2%

handlers/bulk.rs
5
93.42%

lib.rs
15
31.58%

handlers/index.rs
17
87.95%

index.rs
18
84.25%

Totals

Change from base Build 70:
-3.4%

Covered Lines:
815

Relevant Lines:
939

💛  - Coveralls


Support complex intervals (MONTH_DAY_NANO)

Hello!
Right now, DF doesn't support complex intervals (which contain yearn_month and day_nanos parts).
Arrow approved & merged https://github.com/apache/arrow/pull/10177
@b41sh crated a PR in arrow-rs https://github.com/apache/arrow-rs/pull/779
After this PR DF can support complex intervals.
Thanks

I am interested to work on it, just waiting for https://github.com/apache/arrow-rs/pull/779 before starting. Can anyone assign this issue to me?  cC @alamb Thanks!


App crashed while send request

12-26 11:42:44.231  2227  9958 E AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
12-26 11:42:44.231  2227  9958 E AndroidRuntime: Process: net.oneplus.weather, PID: 2227
12-26 11:42:44.231  2227  9958 E AndroidRuntime: java.lang.IllegalArgumentException: port out of range:-1
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:144)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at java.net.InetSocketAddress.createUnresolved(InetSocketAddress.java:269)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at sun.net.spi.DefaultProxySelector$1.run(DefaultProxySelector.java:315)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at sun.net.spi.DefaultProxySelector$1.run(DefaultProxySelector.java:219)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at java.security.AccessController.doPrivileged(AccessController.java:43)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:218)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.f.f.a(Unknown Source:20)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.f.f.(Unknown Source:34)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.f.g.(Unknown Source:13)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.g.j.a(Unknown Source:22)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.g.g.a(Unknown Source:140)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.g.g.a(Unknown Source:6)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at e.a.a.f.b$b.a(Unknown Source:33)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.g.g.a(Unknown Source:140)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.g.g.a(Unknown Source:6)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.z.a(Unknown Source:94)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.z$a.b(Unknown Source:4)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at f.h0.b.run(Unknown Source:17)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-26 11:42:44.231  2227  9958 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:919)

Executable test case please.

I also got the same problem

has the same problem,has anyone find what cause this crash?

me either

what is cause of the crash or how to handle it?


chore: make codebase mypy compliant

Summary by CodeRabbit

New Features

Enhanced JSON handling with the integration of the orjson library across various components and tests for improved performance.
Added new components and properties in the declarative component schema, enriching functionality.
Introduced new test cases to cover edge scenarios in the MessageGrouper and ManifestDeclarativeSource.

Bug Fixes

Improved error handling in several test cases and classes, ensuring robustness in exception management and state transitions.

Documentation

Updated comments and docstrings for clarity and consistency across the codebase.

Chores

Removed deprecated dependencies and updated the dependency management in the pyproject.toml file.
Refactored import statements for consistency and clarity.

Note: Downstream connector test failures appear to be unrelated. Those would probably also be failing on main but they only run when certain subpackages are changed.


Design About Us Page

I can add an about us page highlighting the features and mission of the website.
@akshitagupta15june please assign this issue to me

I hope this message finds you well. My name is [Your Name], and I am a passionate developer with experience in web development and design. I am writing to express my interest in contributing to the "Shopnex" project, particularly by creating a comprehensive "About Us" page for the Shopnex website. To proceed, I kindly request access to the repository to begin working on this enhancement. I am open to feedback and keen on maintaining the project's coding standards and conventions.

hey its already present in website.


Feature - All Users / Registration / Captcha

Description
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
We're starting to see bots crawl our registration and submit fake account information, as well as attempt to inject ads into the site.
Describe the solution you'd like
A clear and concise description of what you want to happen.
We'd like to add a captcha to the registration form.
Acceptance criteria

[ ] Add a captcha
[ ] Check with @joshdrink to make sure the UI is a-okay
[ ] Write a test that ensures you can't submit a registration without completing the captcha

I did a bit of reading and I think I might want to try our own implementation of something like this instead: https://github.com/spatie/laravel-honeypot
Basically the idea is we have some hidden fields included with our form, and if they are filled out and returned to the server, we know it's a spam submission and can disregard it. It seems to be fairly effective against the majority of bots and is unintrusive to users. We can also log "spam" attempts for review in the event they are legitimate somehow.
It's probably more complex than just throwing a captcha on the form, but I think it's a better solution overall. Only questions are around hiding the fields from screen readers and other accessibility tools.

@Khristophor I'm good with this solution. Hiding things from accessibility tools is pretty straight forward using a combination of CSS and aria.

Confirmed.


recursive copy of sub directories

We have been trying out your action<EMAIL_ADDRESS>we had some success with copying a file from the destination to our sharepoint site, we set the source path to source/* which allowed it to copy the content to our spo site, but not beyond the top level. So we set the sourcepath to source/**/* but this flattened the whole site down to the root on the spo site.
We have markdown pages which refer to the assets in a sub folder so that routing was lost.  is it possible for the process to maintain and replicate the path of recusive files?

Not to worry we can take a copy, probably a bit rude to assume you have the time to address an issue for our use case.
All the best.


how to run it locally

I have the same question, I have apple Mac M2 pro.

I have a NVIDIA 4070 super rtx with 16 gig of ram. It's not enough.

You can click on 3 dots than select run with docker to run it locally.

Issue: Out of Memory Error with Qwen2VL Model on RTX 3060 (12GB VRAM)
Environment:

GPU: NVIDIA RTX 3060 (12GB VRAM)
PyTorch Version: 2.0 (CUDA-compatible)
Transformers Version: according to requirements.txt in virtualenv
Operating System: Ubuntu 20.04

Problem Description:
I am encountering a torch.cuda.OutOfMemoryError when attempting to load the Qwen2VLForConditionalGeneration model on my RTX 3060, which has a 12GB VRAM capacity. From my understanding, the model requires approximately 16GB of VRAM, resulting in the error below:
python3 app.py  /home/tokeniser/anaconda3/lib/python3.11/site-packages/torchvision/datapoints/__init__.py:12: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().   warnings.warn(_BETA_TRANSFORMS_WARNING) /home/tokeniser/anaconda3/lib/python3.11/site-packages/torchvision/transforms/v2/__init__.py:54: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().   warnings.warn(_BETA_TRANSFORMS_WARNING) The argument trust_remote_codeis to be used with Auto classes. It has no effect here and is ignored.Qwen2VLRotaryEmbeddingcan now be fully parameterized by passing the model config through theconfigargument. All other arguments will be removed in v4.46 Loading checkpoint shards: 100%|██████████████████| 5/5 [00:35<00:00,  7.11s/it] Traceback (most recent call last):   File "/home/tokeniser/Videos/OpenGPT-4o/app.py", line 3, in <module>     from chatbot import model_inference, EXAMPLES, chatbot   File "/home/tokeniser/Videos/OpenGPT-4o/chatbot.py", line 30, in <module>     model = Qwen2VLForConditionalGeneration.from_pretrained(MODEL_ID, trust_remote_code=True, torch_dtype=torch.float16).to("cuda").eval()             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 3167, in to     return super().to(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1145, in to     return self._apply(convert)            ^^^^^^^^^^^^^^^^^^^^   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 797, in _apply     module._apply(fn)   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 797, in _apply     module._apply(fn)   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 797, in _apply     module._apply(fn)   [Previous line repeated 2 more times]   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 820, in _apply     param_applied = fn(param)                     ^^^^^^^^^   File "/home/tokeniser/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1143, in convert     return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 130.00 MiB (GPU 0; 11.75 GiB total capacity; 10.86 GiB already allocated; 97.94 MiB free; 11.06 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
Questions:

Are there recommended methods to manage memory for larger models on GPUs with 12GB VRAM?

Is there an equivalent model for Qwen2VL that could work within 12GB VRAM?

Any pointers to documentation or example code that demonstrates loading Qwen2VL (or similar models) with a reduced memory footprint?

Additional Info:
The VRAM on my GPU gets nearly filled with the initial model load, leaving limited memory for inference. Even after trying to switch to torch.float16 and using PyTorch's memory management configurations (e.g., PYTORCH_CUDA_ALLOC_CONF), the VRAM requirements still exceed the available capacity.
Thank you for any guidance or tips on managing this effectively!


Depth Map

Is the depth map of your article a pseudo-color image? If not, how did the color depth map come from in the result, mine is a single-channel depth map. . . thank you

it is the output from matplotlib with colormap "viridis" (which is the default one)

thank you
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2021年5月24日(星期一) 下午4:53
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [jzhangbs/Vis-MVSNet] Depth Map (#22)
it is the output from matplotlib with colormap "viridis" (which is the default one)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Font Size

Great module, thanks.
Is their a way to manipulate the font size, so that the number are different sizes to the corresponding result. For example '2 min' would be 2 min
Thanks in advance :0)

I don't intend to add this feature, but you can do it with the spacer and delimiter feature.
// '1 hour, 30 minutes'
humanizeDuration(5400000, {
  spacer: ' ',
  delimiter: ', '
}) + ''


Quicky tip: adding JSON-Schema validators

Not saying it needs to be added to LokiJS (I was contemplating adding it to the wiki, but I don't know whether outside contributions to the wiki are wanted), but here's a quick way to add JSON-Schema validation to LokiJS:
var Ajv = require('ajv');
var Loki = require('lokijs');
var validator = new Ajv();

Loki.prototype.addCollection = (function(original) {
  return function(name, options) {
    var coll;
    coll = original.apply(this, arguments);
    if (options.schema) {
      coll.validate = validator.compile(options.schema);
    }
    return coll;
  };
})(Loki.prototype.addCollection);

Loki.Collection.prototype.insert = (function(original) {
  return function(doc) {
    if (this.validate && !this.validate(doc)) {
      throw this.validate.errors;
    }
    return original.apply(this, arguments);
  };
})(Loki.Collection.prototype.insert);

Loki.Collection.prototype.update = (function(original) {
  return function(doc) {
    if (this.validate && !this.validate(doc)) {
      throw this.validate.errors;
    }
    return original.apply(this, arguments);
  };
})(Loki.Collection.prototype.update);

And as I've just learned, you could use a transform to persist the schema with the database should you so choose.

This would be huge. As it stands, you can add almost any document to a collection (assuming no indices). I hope this gets considered, at least for v2!

I hope no one is trying to store methods, lol. But validation on POJOs for simple types, supported by the JSON Schema spec, seems like a reasonable ask. Maybe in LokiDB2?

Storing of methods isn't supported, but adding of objects with methods to a running db is. Loki even supports re-inflating the json into objects-with-methods during load. Nothing new about that.


Not able to go to other project sites after loading the user site for GitHub page

I use this template for user site. I also have other project sites. After I loaded my user site, it is not able to open other project sites.
For example, I use this template for user site and deploy on GitHub and its URL is https://username.github.io. And I have other project site whose URL is https://username.github.io/repoName. After I go to the user site https://username.github.io, it is not able to go to other project site https://username.github.io/repoName.
This happens in Chrome, Edge, Safari. However, it does not have this problem in Incognito mode. It is believed to have something to do with the cache, but I cannot pinpoint the cause.
Last but not least, thank you very much for the template!

Hey. I see that your portfolio page repository is not public so it's hard to inspect it. Also I've visisted https://hhdqirui.github.io/ and projects redirect to GitHub repositories. The only thing I can suggest is to ask you to make sure that you don't mix paths in deployed pages.


Docker image dockerhub rasa/rasa only provides latest tag

Would it be possible to publish a rasa docker image tag that matches the python version and the actual rasa package version?
Relying on a rolling tag is a very bad practice in docker world.
Thank you.

These are available for the separate packages rasa_core and rasa_nlu. We haven't finished setting up the single docker image for rasa, but will do this as soon as we have


Change grove imports and other scripts/files from using 'incubator-trafficcontrol'

The PR modifies all files in the grove directory chaning any imports and other text references to 'incubator-trafficcontrol' to just 'trafficcontrol'

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1837/
Test PASSed.


Only 1/8 of CPU power used by Keras

I have 4 cores with hyperthreading, but only 1/8 of it is used by Keras.
System information

Have I written custom code (as opposed to using example directory):  yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  Ubuntu 18.04
TensorFlow backend (yes / no):  yes
TensorFlow version:  v2.0.0-rc2-26-g64c3d38 2.0.0
Keras version:  2.3.1
Python version:  3.6
CUDA/cuDNN version:   CPU used
GPU model and memory:  CPU used

sudo dmidecode -t 4 | egrep -i "Designation|Intel|core|thread"
        Socket Designation: SOCKET 0
        Family: Core i7
        Manufacturer: Intel
                HTT (Multi-threading)
        Version: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
        Core Count: 4
        Core Enabled: 4
        Thread Count: 8

@iirekm  Moving this issue to closed status as there has been no recent activity, in case you still face the error please create a new issue.Thanks!


Querying edges

I can't figure out how to query for an (ogm) edge between two known vertices? Is it possible to do with query().filter() ?

@lodrion filter() corresponds to the WHERE clause of the SELECT. You'll need to use what(), which - along with property specifications - takes those things defined in what.py (for this purpose, inE(), outE(), bothE())
Those functions, along with outV(), inV(), out(), in_(), both(), can be chained - e.g. query.outE().inV().outE(''))

@TropicalPenguin should we close this?

How do I query edge properties using this syntax?


update organization icon

What would you like to be added:
Considering that we already have a Kurator icon, would it be possible to update our project organization icon as well?
The current icon for the Kurator organization is a default random icon
Why is this needed:

sure
/assign

done


BP - Deployment

Best practices deployment PR:
TODO (Ante) :

[x] Updated install current installs for Linux: https://github.com/memgraph/documentation/pull/661 @antejavor -> Stage 1
[x] Document Rockey/RedHat install process https://github.com/memgraph/documentation/pull/672 @antejavor -> Stage 1
[x] Document CentOS install process https://github.com/memgraph/documentation/pull/672 @antejavor -> Stage 1
[x] Document Fedora install process https://github.com/memgraph/documentation/pull/672 @antejavor -> Stage 1
[x] Config page refactor @antejavor -> Stage 1
[ ] Rhel 8  @antejavor -> Stage 2 (?)
[x] Create Linux page under Deployment -> Stage 1
[ ] Create Kubernetes page under Deployment -> Stage 2 -> May 22 due date
[ ] Replication feedback: https://github.com/memgraph/memgraph/issues/1980 -> Stage 2
[ ] Hardware and Memory tips guide -> Stage 2
[ ] HA cluster setup linux page -> Stage 2
[ ] Monitoring setup linux page -> Stage 2

TODO (Matea):

[x] Document the configuration of the docker-compose file better @matea16  -> Stage 1
[x] Update configuration settings page @matea16 -> Stage 1

TODO (Katarina)

[x] https://github.com/memgraph/documentation/issues/696 @katarinasupe -> Stage 1
[x] Create Docker page under Database management -> Stage 1
[ ] Create Docker Compose page under Database management -> Stage 2 (?) TBD
[ ] Create Cloud deployment page under Database management -> Stage 2
[x] Add structural changes to the docs -> Stage 1
[ ] HA cluster setup - Docker page -> Stage 2
[ ] Monitoring - Docker page -> Stage 2

Review all changed/transferred pages -> Stage 1

[x] Review Data durability under Fundamentals
[x] Review Audit log under Logs
[x] Review Authorization and Authentication
[x] Review Database management
[x] Review Backup and restore
[x] Review Clustering
[x] Review Query metadata
[x] Review Monitoring
[x] Review Text search under Querying

To be discussed on a daily:

[ ] https://github.com/memgraph/documentation/issues/695 -> Stage 2

Plan:
Wrap up Stage 1 by May 10, open new PR after that for Stage 2.
Changes to structure
New sections:
Deployment (Docker, Docker Compose and Kubernetes)
Clustering
Configuration restructure:

Configuration renamed to Database management
Audit log has been deleted and transferred under Logs
Auth module has been deleted and placed under new Auth system integrations under Authentication and authorization
Configuration settings renamed to Configuration
Data durability and backup renamed to Backup and restore and Data durability knowledge transferred under Fundamentals
High availability is transferred to Clustering
Metadata renamed to Query metadata
Monitoring server renamed to Monitoring
Replication is placed under Clustering
Security page is deleted and replaced by Authentication and authorization
New page -> Authentication and authorization -> Users (old create user from Security), Role-based access control (old Role-based and Label-based from Security) and Auth system integrations (LDAP, OAuth, Auth module) under it
Text search has been transferred to Querying

Based on the structural changes above, redirects have to be added in, pages and links have to be reviewed.
UPDATE: Pages are reviews, links on those pages updated. Links leading to old pages can be updated (are not yet) and redirects have to be added.
NOTE: I still vote for Clustering under Database management (Kate)
NOTE: Whenever the format of /var/lib/memgraph changes, this is a breaking change if it's not made backwards compatible

@antejavor should MEMGRAPH_CONFIG be listed in the Env vars table as well?

@kgolubic This is basically done, but we need to resolve conflicts and see what the best time and way to merge, depending on the releases. Let's sync next week.

@kgolubic this is ready for review. Ante told me you can deal with conflicts. Let me know if something is unclear or needed from our side.


WIP: Data API updates, unify ES StagingClients

Functional updates:

refactored and unified ES StagingClients
automatically prefer LAN protocol (read_lan/write_lan) for stage-in/stage-out file if source/destination RSE is local for given PQ (defined in inputddms=astorages['read_lan'])

Updates:

base movers workflow upgraded
introduce require_input_protocols mode to look up and manually form input replicas for specific copytool (activated for the objectstore mover, ES workflow)
refactor and simplify objecstore copytool

TO BE TESTED  -- have not tested enough yet, Wen, how can I get test jobs for ES workflow?
Wen, as I see pilot2 currently does not support es_failover transfers. It's better to implement failover transfers at the top level (for any jobs), however since it's not covered yet even for ES I postponed this.
Wen, should we allow ES jobs to write data into astorages['write_lan'] or only to astorages['es_events']?
currently  I set resolution order for destination RSE is ['es_events', 'write_lan'] activities of astorages

Implemented fail-over transfer for ES stage-out.
Wen, Paul, can we run this updates with test jobs before merge?
thanks.

Thanks. Wen please test it and let me know. Note that we are not allowed to make big changes to the code (only fixes and emergencies) during the vacation period at least not until Rod comes back. So maybe in 1-2 weeks..

Wen, have you managed to run this pilot updates with ES jobs?
Paul, can you please also run regular test jobs.
thanks

Sorry for the late reply - this arrived during my vacation. Here's an initial test 'normal' test job:
https://bigpanda.cern.ch/job?pandaid=4475998032&timestamp=14:49:42
We can test with ES jobs using HC but please hold a little bit with this. Wen, are those templates stable and working now?
In the meantime, please check the job above if things look good. I can update the RC version after.