Can we use crossfade for mouseover/out events?

This is a great plugin and works flawlessly. I was wondering if we can use crossfade.js library to change background images using mouseover and set to default using mouseout events. Any help will be much appreciated.

Hi @paritosharya007! There is no support for the functionality you're describing, but please feel free to use the logic contained herein! You should be able to re-use a good bit of the draw method.


feat: additional tests for core features

Adding two more unit tests to cover core functionality.

Going to go ahead and merge this one. We can always follow-up.


ISSUE: Setup failed for keymaster: unknown error

Describe the bug
Getting a debug dump during startup after upgrading to HA 2021.8.0
Environment (please complete the following information):

OS: HassOS 6.2
Type of system that HA is running on: RPi4 8G
Home Assistant version: 2021.8.0
Hassio/Docker/Core? Core
Component version: 0.0.56
Z-Wave integration name: zwave_js
Lock make and model: Kwikset 912, Kwikset, 912, Kwikset 914

Logs
2021-08-04 08:54:19 ERROR (MainThread) [homeassistant.setup] Setup failed for keymaster: unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 201, in _async_setup_component
    component = integration.get_component()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 490, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/keymaster/__init__.py", line 30, in <module>
    from .binary_sensor import generate_binary_sensor_name
  File "/config/custom_components/keymaster/binary_sensor.py", line 219, in <module>
    class OZWNetworkReadySensor(BaseNetworkReadySensor):
  File "/config/custom_components/keymaster/binary_sensor.py", line 229, in OZWNetworkReadySensor
    def async_check_ozw_status(self, msg: models.Message):
AttributeError: module 'homeassistant.components.mqtt.models' has no attribute 'Message'

Additional context
Just upgraded to Home Assistant 2021.8.0 and was looking over the log to see if there were any issues. I found the above log and after giving HA another restart got it again.
I do have the zwave_js to mqtt addon installed, but it is not enabled or being used. Also, the mosquitto broker addon is installed, but I haven't started doing anything with it yet.

Update to the latest pre-release (beta) version.

Any idea when an official release with the fix is going to come out?

It is the official release, we had to mark it "pre-release" because it isn't compatible with 2021.7.x and lower.

hmm.... that's going to make it hard for people to find that it's there. I generally avoid installing things as beta if I'm not the developer ;)

I'll move it back to release, since it's not technically beta.


[BUG] langchain4j-spring-boot-starter writes multiple empty lines of logs during initialization

Describe the bug
When using langchain4j-spring-boot-starter, during application initialization, there are multiple of empty lines written to stdout.
Log and Stack trace
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.2.5)

-2024-05-07 13:35:14.905 -  INFO 20648 --- [           main] com.example.LangChain4jApplication       : MDC:    Starting LangChain4jApplication using Java 21.0.2 with PID 20648
-2024-05-07 13:35:14.906 -  INFO 20648 --- [           main] com.example.LangChain4jApplication       : MDC:    The following 1 profile is active: "local"

...187 more

-2024-05-07 13:35:15.573 -  INFO 20648 --- [           main] org.reflections.Reflections              : MDC:    Reflections took 22 ms to scan 1 urls, producing 3 keys and 3 values
-2024-05-07 13:35:15.863 -  INFO 20648 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : MDC:    Tomcat initialized with port 8080 (http)
-2024-05-07 13:35:15.933 -  INFO 20648 --- [           main] o.apache.catalina.core.StandardService   : MDC:    Starting service [Tomcat]
...

To Reproduce
Start application with dependency:
<dependency>
    <groupId>dev.langchain4j</groupId>
    <artifactId>langchain4j-spring-boot-starter</artifactId>
    <version>0.30.0</version>
</dependency>

Expected behavior
Do not write empty lines during application initialization. Just delete this line:
https://github.com/langchain4j/langchain4j-spring/blob/0.30.0/langchain4j-spring-boot-starter/src/main/java/dev/langchain4j/service/spring/AiServicesAutoConfig.java#L55
Please complete the following information:

LangChain4j version: 0.30.0
LLM(s) used: Gemini
Java version: 21
Spring Boot version (if applicable): 3.2.5

@rafal-dudek thank you a lot for reporting! I can't believe I missed this 😆


Cannot read property 'selections' of null

In some cases I get an error when generating a projection.
An example of failing info is available here: http://pastebin.com/1U1sMzvd
Here is the interesting part of the stack trace:
TypeError: Cannot read property 'selections' of null
    at infoToProjection (...graphql-mongodb-projection/dist/index.js:13:30)
    at context.selectionSet.selections.reduce (/...graphql-mongodb-projection/dist/index.js:18:43)
    at Array.reduce (native)
    at infoToProjection (...s/graphql-mongodb-projection/dist/index.js:13:42)

thanks for reporting I'll have a look at it now :)

I made a pull request fixing this. The bug was when you ask the relay cursor before the node


chi_matrix.hpp brings a dependency to external project  for users of the shared-lib

chi_matrix.hpp is a template class completely implemented in a header file.
It includes "Dense" which brings an external dependency only to the header files of external project .
This can be solved by moving the implementation part into a cpp file, and leave the header file only with the declaration of this class.
I already made this change on a branch, but I cannot push it to your repo to create a pull request.

Hi BR,
I just commented on issue #53 (summary: please pull-request into development branch).
Looking forward to seeing your suggestions.
I am not sure if you plan to include code from Eigen to the cpp file.
In this case one has to verify the requirements of Eigen license.
G

Hi @giangiac
thx for the answer.
I moved all implementation from chi_matrix.hpp into chi_matrix.cpp, and kept only the declarations in the header chi_matrix.hpp.
Are you saying that this might be an issue with the license of chi_matrix?
If yes, we could leave chi_matrix.hpp as it is, and create a new header chi_matrix_public.hpp and just use the delarations in that, and include this one in the intel-qs headers?? would that help?
BR
Markus

I thought that you included code from Dense into chi_matrix.cpp.
If this is not the case (i.e. you moved content from .hpp to a new .cpp), no worries about licensing.
Without looking at the code it is easy to misunderstand.

I thought that you included code from Dense into chi_matrix.cpp.
If this is not the case (i.e. you moved content from .hpp to a new .cpp), no worries about licensing.
Without looking at the code it is easy to misunderstand.

Yes, correct. I only splitted up chi_matrix.hpp into chi_matrix.hpp and .cpp to separate declaration and implementation.
I didn't modify anything, but this removes the dependency between qureg.hpp and Dense.

I forked your repo and this way I could create a pull request #55
Please have a look.

The pull request has been merged.


Cucumber Reports Integration

Hi All,
I am having below error while publishing functional test data to Hygieia from Jenkins plugin. Any help and suggestion is appreciated.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.922 s
[INFO] Finished at: 2019-06-17T09:26:30-05:00
[INFO] Final Memory: 16M/27M
[INFO] ------------------------------------------------------------------------
[CucumberReport] Using Cucumber Reports version 4.7.0
[CucumberReport] JSON report directory is "target/cucumber-report"
[CucumberReport] Copied 1 json files from workspace "/var/lib/jenkins/workspace/cucumber/target/cucumber-report" to reports directory "/var/lib/jenkins/jobs/cucumber/builds/17/cucumber-html-reports/.cache"
[CucumberReport] Copied 0 properties files from workspace "/var/lib/jenkins/workspace/cucumber/target/cucumber-report" to reports directory "/var/lib/jenkins/jobs/cucumber/builds/17/cucumber-html-reports/.cache"
[CucumberReport] Processing 1 json files:
[CucumberReport] /var/lib/jenkins/jobs/cucumber/builds/17/cucumber-html-reports/.cache/cucumber.json
Hygieia: Published Build Complete Data. Response Code: 201. Response Value= 5d07a30f3cdea200092ed33d,5cf7b12930c49e0009a15a5d
Hygieia Test Result Publisher - Looking for file pattern '*.json' in directory /var/lib/jenkins/workspace/cucumber
Hygieia Test Publisher: Processing file: /var/lib/jenkins/workspace/cucumber/target/cucumber-report/cucumber.json
Hygieia Test Publisher: Processing read error: /var/lib/jenkins/workspace/cucumber/target/cucumber-report/cucumber.json
Hygieia: Published Test Data. Nothing to publish
Finished: SUCCESS

You need to populate the 'Results Directory` field of the configuration

You need to populate the 'Results Directory` field of the configuration

Thank you for the reply, however i have filled the field and still getting below error.
[CucumberReport] Using Cucumber Reports version 4.7.0
[CucumberReport] JSON report directory is "target/cucumber-report"
[CucumberReport] Copied 1 json files from workspace "/var/lib/jenkins/workspace/cucumber/target/cucumber-report" to reports directory "/var/lib/jenkins/jobs/cucumber/builds/21/cucumber-html-reports/.cache"
[CucumberReport] Copied 0 properties files from workspace "/var/lib/jenkins/workspace/cucumber/target/cucumber-report" to reports directory "/var/lib/jenkins/jobs/cucumber/builds/21/cucumber-html-reports/.cache"
[CucumberReport] Processing 1 json files:
[CucumberReport] /var/lib/jenkins/jobs/cucumber/builds/21/cucumber-html-reports/.cache/cucumber.json
Hygieia: Published Build Complete Data. Response Code: 201. Response Value= 5d07ce963cdea200092ed341,5cf7b12930c49e0009a15a5d
Hygieia Test Result Publisher - Looking for file pattern '*.json' in directory /var/lib/jenkins/workspace/cucumber/target/cucumber-report
Hygieia Test Publisher: Processing file: /var/lib/jenkins/workspace/cucumber/target/cucumber-report/cucumber.json
Hygieia Test Publisher: Processing read error: /var/lib/jenkins/workspace/cucumber/target/cucumber-report/cucumber.json
Hygieia: Published Test Data. Nothing to publish
Finished: SUCCESS

@abinassahoo Can you give the whole path in the Results Directory?

Seems full path is not taking the correct path, below is the error.
[CucumberReport] /var/lib/jenkins/jobs/cucumber/builds/22/cucumber-html-reports/.cache/cucumber.json
Hygieia: Published Build Complete Data. Response Code: 201. Response Value= 5d088d6f3cdea200092ed342,5cf7b12930c49e0009a15a5d
Hygieia Test Result Publisher - Looking for file pattern '*.json' in directory /var/lib/jenkins/workspace/cucumber/var/lib/jenkins/workspace/cucumber/target/cucumber-report
Hygieia: Published Test Data. Nothing to publish
Finished: SUCCESS

@rvema also i have tried using collector, i am getting below logs.
019-06-18 07:20:00,003 INFO  org.mongodb.driver.connection - Closed connection [connectionId{localValue:2, serverValue:799}] to <IP_ADDRESS>:27017 because it is past its maximum allowed idle time.
2019-06-18 07:20:00,033 INFO  org.mongodb.driver.connection - Opened connection [connectionId{localValue:6, serverValue:808}] to <IP_ADDRESS>:27017
2019-06-18 07:20:00,123 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2019-06-18 07:20:00,124 INFO  c.c.d.collector.CollectorTask - http://<IP_ADDRESS>:8090/
2019-06-18 07:20:00,124 INFO  c.c.d.collector.CollectorTask - -----------------------------------
2019-06-18 07:20:00,324 INFO  c.c.d.collector.CollectorTask - Fetched jobs                     0s
2019-06-18 07:20:00,470 INFO  c.c.d.collector.CollectorTask - New jobs                0        0s
2019-06-18 07:20:00,508 INFO  c.c.d.collector.CollectorTask - WARNING: No Enabled Jobs found with artifacts pattern: /var/lib/jenkins/workspace/cucumber/target/cucumber-report/cucumber.json
2019-06-18 07:20:00,508 INFO  c.c.d.collector.CollectorTask - Finished                         0s

Could anyone please help on the above issue ?


feat(colo): dynamic backscraper

Helps solve #974

Implemented dynamic backscraper
Added logger calls to skipping and parsing clauses

This PR may now be obsolote given that the old site is no longer accesible, will adapt #1011 so it works for colo too

This PR needs a substantial merge yes?  @grossir

This PR is obsolete,  the site it targets no longer exists and the colo court is covered by the new scraper from #1011

Thanks @grossir


Make applications printable

As a Kommunen-Mitarbeiter I want to print out / export a PDF of EAK-applications.

dublicated now https://github.com/digitalfabrik/entitlementcard/issues/885


Enable scroll to index on feed/notification clicks

with the PhotoId of a notification I could scroll the thread down to the target image, built into FlatList

that'd be hard with paging... why not just go to the single image view?

ah yeah, good call


Fix for bug #5.

Devise will delete _csrf_token in subsequent calls of detect_authentication_devise_user and this will lead to "Can't verify CSRF..." during login.

Thanks @nntr :)
@parndt  What do you think this fix ?

@nntr thank you so much for looking into this.. I'll test this and merge ASAP if it fixes my issue.

This is excellent and fixes the problem for me and is about to be released in version 1.0.2 :heart: thank you so much @nntr !


Improve structure

Codecov Report

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

@@            Coverage Diff            @@
##             master     #109   +/-   ##
=========================================
  Coverage     87.93%   87.93%
  Complexity      428      428
=========================================
  Files           115      115
  Lines          2379     2379
  Branches         77       77
=========================================
  Hits           2092     2092
  Misses          267      267
  Partials         20       20


FontFace should be used in a manner allowing graceful degradation

According to the spec, FontFace API allows to load fonts in the same manner it's done in CSS. Thus, constructions like this one should be allowed:
url('font.woff2') format('woff2'), url('font.woff') format('woff')

Unfortunately, currently FontFace constructor accepts a parameter that is wrapped with url(...) expression making impossible to manually specify multiple fonts formats: https://github.com/rdkcentral/Lightning-SDK/blob/f89720ac765ff47497079852d0e9102b82af8c79/src/Application/index.js#L160

This feature is addressed in version 4.3.0:
https://github.com/rdkcentral/Lightning-SDK/blob/master/CHANGELOG.md#v430


Console error "closure invoked recursively or after being dropped" when executing navigate in a component using Indexed

Describe the bug
When I run navigate, I get the error "Uncaught Error: closure invoked recursively or after being dropped" in the console.
This is reproduced in components using Indexed.
Oddly enough, this error always appears three times in the console, regardless of the number of Indexed items.
This can be avoided by providing an a element inside the li element and giving it the href attribute.
However, what I actually want to do is to implement an implementation that changes the destination according to the condition when the element is clicked, so I think it is necessary to use navigate.
To Reproduce
Below is the source code that this reproduces.
#[component]
pub async fn PopoverMenu<G: Html>() -> View<G>
{
    let items = create_signal(vec!["hoge", "fuga", "piyo"]);
    view!
    {
        ul
        {
            Indexed
            (
                iterable=*items,
                view=move |_|
                {
                    view!
                    {
                        li
                        (
                            on:click=move |_|
                            {
                                navigate("/");
                            },
                        )
                        {
                            "hoge"
                        }
                    }
                }
            )
        }
    }
}

Screenshots

Environment

Sycamore: "0.9.0-beta.2"
Browser: Chrome (Version 120.0.6099.224 (Official Build) (64-bit))
OS: Linux (EndeavourOS, Kernel Version: 6.7.4-arch1-1)

Additional context
I found #433 as a similar issue.

Sorry, I'm the poster of this issue.
I posted with the wrong user, so I'll add a comment to receive a notification.

The issue has something to do with the fact that the element is removed when the event handler is executed. When the element is removed, the event handler is dropped while it is running! It is indeed the same issue as #443 but I think we can leave this open since it provides a good test case for it.

I can't seem to reproduce this issue anymore in v0.9.0-beta.3. Here is the complete code listing that I used:
Details

use sycamore::prelude::*;
use sycamore_router::{navigate, HistoryIntegration, Route, Router};

#[component]
pub async fn PopoverMenu() -> View {
    let items = create_signal(vec!["hoge", "fuga", "piyo"]);
    view! {
        ul {
            Indexed(
                list=items,
                view=move |_| view! {
                    li(on:click=move |_| navigate("/")) {
                        "hoge"
                    }
                }
            )
        }
    }
}

#[derive(Debug, Clone, Copy, Route)]
enum AppRoutes {
    #[to("/")]
    Index,
    #[to("/about")]
    About,
    #[not_found]
    NotFound,
}

#[component]
fn App() -> View {
    view! {
        Router(
            integration=HistoryIntegration::new(),
            view=|route: ReadSignal<AppRoutes>| {
                view! {
                    (match route.get() {
                        AppRoutes::Index => view! { "index" },
                        AppRoutes::About => view! { "about" PopoverMenu() },
                        AppRoutes::NotFound => view! { "not found" },
                    })
                }
            },
        )
    }
}

fn main() {
    console_error_panic_hook::set_once();
    sycamore::render(App);
    console_log!("App mounted!");
}

If this issue is not fixed for you, please feel free to reopen this issue or create a new issue.


Support catching up until we hit a known block

This refactors the BlockchainFollower to support bailing out of the catchup process early if we hit a known block.  If you pass in last_known_block_ref, the catchup process will complete once it hits that block, and you'll only receive events for the subsequent blocks.
Also changes the internals so that the catchup thread doesn't exit once it's complete.   This lets us re-start the catchup if we fail mid-stream, to catch blocks we may have missed in the downtime.  If that happens, it will seek back to the last seen block.
TODO:

[ ] expose the block ref in the canonical_stream, so that the indexer can keep track of the last seen block and skip the complete catchup
[ ] update the indexer to take advantage of partial catchup

Gonna look in the AM

Last commit changes the output of TransactorClient.canonical_stream from a tuple of canonical_id, object to a dictionary:
{
  'canonical_id': ref,
  'prev_block_ref': last_seen_block,
  'record': reader.get_object(self, ref)
}

In the current transactor design, we can only know the previous block for certain, since the transactor streams events from the uncommitted block.  In the next design, we'll only get block events after they're published, so we can change this to have the ref to the block in which the event occurred.
This is a breaking api change and we'll need to update the indexer.  @autoencoder, does that output format look alright?  Also, you probably have a better feel for where to keep track of the last seen block on the indexer side.

Let's bump version

forgot to push the version bump :)


Feature/fix circle ci

Using JAVA_TOOL_OPTIONS to set Xmx2g. Other ways of setting Xmx seems to not work or behave strangely.
cgroup doesn't work by the way which is why we have to use Xmx or MaxRAM
Merged memory-intensive tests back into unit tests
Made non-confidential tests to not be module-specific
34 success out of 35 total See https://circleci.com/gh/dockstore/workflows/dockstore/tree/feature%2FfixCircleCI

Failed for the first time. 19/20 success

26/26

34/35 :cry:


feat(resets): add initial implementation

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Implement the changes function resets from PromQL(references to promql's document and the go implementation for more details.)
Checklist

[x]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link
https://github.com/GreptimeTeam/greptimedb/issues/1225

Hi @waynexia
Could you please take a look when you have time?


Travis deprecation warnings fix

The following errors were preventing Travis CI build from passing:
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /home/travis/build/elorest/petergate/dummy/config/environments/test.rb:16)

DEPRECATION WARNING: [Devise] including `Devise::TestHelpers` is deprecated and will be removed from Devise.
For controller tests, please include `Devise::Test::ControllerHelpers` instead.
 (called from include at /home/travis/build/elorest/petergate/dummy/test/test_helper.rb:22)

DEPRECATION WARNING: You did not specify a value for the configuration option `active_support.test_order`. In Rails 5, the default value of this option will change from `:sorted` to `:random`.
To disable this warning and keep the current behavior, you can add the following line to your `config/environments/test.rb`:
  Rails.application.configure do
    config.active_support.test_order = :sorted
  end
Alternatively, you can opt into the future behavior by setting this option to `:random`. (called from test_order at /home/travis/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/test_case.rb:42)

I fixed them by following the recommendations they included, and keeping the test execution order as :sorted (the value it originally had by default and changed as of Rails 5).

@elorest This fixes some deprecation warnings. I noticed the tests are running on Rails 4.2. I wonder if the BlogsController::Multiple test fails because it uses #assign for getting the fixtures.
I'll be taking a look shortly.

@elorest I'm still getting this error when trying to merge:
BlogsController::Multiple: Make sure guests can't see what they shouldn't.
  test_0001_guest can see index                                   PASS (0.35s)
/home/travis/.rvm/gems/ruby-2.3.1/gems/minitest-reporters-1.3.1/lib/minitest/reporters/base_reporter.rb:114:in `const_get': wrong constant name Multiple: Make sure guests can't see what they shouldn't. (NameError)
	from /home/travis/.rvm/gems/ruby-2.3.1/gems/minitest-reporters-1.3.1/lib/minitest/reporters/base_reporter.rb:114:in `block in load_constant'

Not idea why this happens right after the first test. Tests seem to be correctly defined. All I can think of is the #assigns method, since it got [deprecated] (https://apidock.com/rails/ActionController/TestProcess/assigns#441-used-for-testing-) , but as the tests run in Rails 4.2... I don't think this is the problem.
Is there a way to run those tests locally to use byebug? I'm not familiar with Travis but if there's anything I can do to help, just let me know.

@mgiagante Thanks for this. If you had any time to upgrade the tests to run in rails 5.x that would be greatly appreciated. I'm currently using it in a pretty large Rails 5.1 project and don't have any issues but the test suite could definitely be updated. Hacktoberfest is coming up: https://hacktoberfest.digitalocean.com/

I'll try to find some time in the next month to work on this as well although I suppose most of my open source time will be working on https://amberframework.org still.

@mgiagante

Is there a way to run those tests locally to use byebug? I'm not familiar with Travis but if there's anything I can do to help, just let me know.

You can run the tests locally:
bundle install && cd dummy && rake db:create && rake db:migrate
bundle exec rake test


Search Analytics - Log Analytics vs Application Insights

Which is the preferred approach for analyzing search index usage? Seems the BI report template only supports AI which requires custom telemetry events to be added - the benefit being able to track searches & clicks and correlate them with requests. Can we add some docs on Log Analytics operational logs that allows out-of-the-box functionality without having to invest in custom app telemetry? Can we get a canned BI report template for leveraging log analytics also?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3d15016b-314c-5757-2ea0-76bd04cf87c6
Version Independent ID: bc6c02ee-9770-7af5-e496-34e5ef8d0865
Content: Search Traffic Analytics for Azure Search
Content Source: articles/search/search-traffic-analytics.md
Service: search
GitHub Login: @HeidiSteen
Microsoft Alias: heidist

So I found the BI template equivalent of Application Insights but it's only for Azure Search data that is persisted to Azure Storage - not Log Analytics. Curious if there is any work planned for PowerBI Content Pack to integrate with Log Analytics as opposed to just Azure Storage,.

I don't think so -- haven't heard anyone mention it, but the best place to ask is on stack overflow.  The forum is closely monitored by the engineering group.  Here is the link: https://stackoverflow.com/questions/tagged/azure-search

#please-close #please-sign-off


Adds discounts to Refine admin

Pre-Flight checklist

[X] Screenshots and design review for any changes that affect layout or styling

[X] Desktop screenshots

[X] Testing

[X] Code is tested
[X] Changes have been manually tested

What are the relevant tickets?
n/a
What's this PR do?
Adds CRUD operations for discounts to the Refine admin UI. Also adds in some infrastructure stuff:

AuthProvider in the API that doesn't check for the CSRF token (which Refine doesn't know about)
A DRF-aware DataProvider for Refine; this is mostly the simple data provider with a couple of methods reworked a bit to make them usable with a DRF-based API

How should this be manually tested?
Once the code is checked out and the refine app rebuilds, you should have a Discounts menu item on the left. Clicking that should show you the list of discounts in the system. Create button should work, as should edit and view. The view button in particular should additionally show you redemptions and assigned users (UserDiscounts) for that discount. (You can't add new UserDiscounts yet.)
Any background context you want to provide?
The things that needed adjustment in the data provider are the pathnames that it constructs and the handling of metadata that comes back from a paginated DRF request.

Pathnames: these needed a trailing slash. Django usually takes care of this with a redirect, but it can't do that for POST-like requests.
Paginated DRF requests: The simple data provider expects a simple array of results back (and then to do the pagination itself). DRF sends back a bunch of metadata with it (item counts, prev/next, etc.) so rather than try to adjust the API to work with Refine, I opted to make Refine work with it so that it'd be easier to use with other DRF-based APIs. There was also a discrepancy in limit and offset parameters, so this takes care of that too.

This code also implements the Bearer token for OIDC auth; it doesn't do that by default (that I saw) so it's implemented here using an axios-http interceptor.
Screenshots (if appropriate)

Codecov Report

Merging #544 (dc8beef) into main (5b185cf) will decrease coverage by 0.01%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main     #544      +/-   ##
==========================================
- Coverage   86.87%   86.86%   -0.02%
==========================================
  Files         114      114
  Lines        4815     4818       +3
  Branches      766      767       +1
==========================================
+ Hits         4183     4185       +2
- Misses        522      523       +1
  Partials      110      110

Impacted Files
Coverage Δ

main/settings.py
93.96% <ø> (ø)

ecommerce/views/v0/__init__.py
71.59% <85.71%> (-0.06%)
:arrow_down:

Continue to review full report at Codecov.

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

Last commit addresses all comments - there's some other changes that relate to CSRF protection that I noted in the comment for that.


rtx ls takes 10 seconds

ubuntu@ubuntu2204:~/ $ time rtx ls --verbose
[WARN] rtx::config: newer rtx version 1.34.0 available, currently on 1.32.5
[WARN] rtx::toolset::tool_version_list: failed to resolve tool version: timed out updating node-build: timed out waiting on channel
erlang 26.0.2
node   20.0.0
nodejs 16.14.0
nodejs 18.16.0 ~/.tool-versions 18.16.0
nodejs 20.0.0
pdm    2.7.4
python 3.10.12

real	0m10.071s
user	0m0.035s
sys	0m0.104s

$ cat ~/.tool-versions
nodejs 18.16.0

fyi: without global config file ~/.config/rtx/config.toml

after I add these lines:
$ cat ~/.config/rtx/config.toml
[settings]
plugin_autoupdate_last_check_duration = '1 week' # set to 0 to disable updates

$ time rtx ls
[WARN] rtx::config: newer rtx version 1.34.0 available, currently on 1.32.5
erlang 26.0.2
node   16.14.0 (missing) ~/.rtx.toml    16.14.0
node   20.0.0
nodejs 16.14.0
nodejs 18.16.0         ~/.tool-versions 18.16.0
nodejs 20.0.0
pdm    2.7.4
python 3.10.12

real	0m0.077s
user	0m0.039s
sys	0m0.071s

Is there any environment variables like RTX_UPDATE_CHECK, RTX_PLUGINS_UPDATE_CHECK ?

it's timing out checking for new node versions. You can customize this with RTX_FETCH_REMOTE_VERSIONS_TIMEOUT=10s.

thanks.  but this is not what I mean.
for the best performance, I don't want auto check for rtx itself, rtx-plugins, rtx-apps(node,go that installed by rtx plugin), especially when I run rtx ls.  I think only checking for new versions when rtx ls-remote xxx or rtx outdated is reasonable. and if I want to update, I will run rtx self-update and rtx plugin update for myself.
so it would be great if there are some default environment  like RTX_UPDATE_CHECK, RTX_PLUGINS_UPDATE_CHECK, RTX_APPS_UPDATE_CHECK with default value 0.
what do you think?

there are no such checks

close ?

it's timing out checking for new node versions. You can customize this with RTX_FETCH_REMOTE_VERSIONS_TIMEOUT=10s.

I don't understand why check new node versions when rtx ls, however I've upgraded rtx, I can't reproduce this issue.

When you install something it checks for new versions

I don't think it's necessary, at least I don't want this feature, and it may fail because of network issue. is there a way to disable this feature currently?

Automatic checks for updates might be convenient, but are definitely not something that should block the user's workflow. And when a shell takes 10 seconds just to launch in case of a poor internet connection, it does block the workflow. So there definitely should be an option to disable the checks at least for rtx ls or shell hooks, i.e. operations that do not need the internet connection. Obviously, rtx install or rtx ls-remote are useless without the internet connection, so such an option should be ignored in these commands.

I have not heard of any new reports about this so I assume it's resolved


purpose of environment-pipeline-copy_codecommit_repositories_to_s3 lambda

This stage does not appear to be working.  I have deployed updates from commercial account to the transit-firewall-vpc.yaml stack but the S3 bucket in the GovCloud org root does not reflect these changes.  The changes are reflected in the transit codecommit repository.

What is the purpose of the step if not to sync the repositories with S3?

I see that the deploy action is sourced from a different branch than the one updates were pushed to.


(?<=:).+ Is Considered As An Invalid Expression

VSCode Version: Code 1.7.2 (7ba55c5860b152d999dda59393ca3ebeb1b5c85f, 2016-11-21T22:06:37.428Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions:

Extension
Author
Version

rainbow-brackets
2gua
0.0.6

Bookmarks
alefragnani
0.10.1

vscode-color
anseki
0.2.2

ruby-on-rails-snippets
atefth
0.0.1

erb
CraigMaslowski
0.0.1

LogFileHighlighter
emilast
1.0.1

eq
eqela
1.0.0

code-runner
formulahendry
0.6.2

mdmath
goessner
0.9.0

ruby
groksrc
0.0.6

name-that-color
guillaumedoutriaux
0.0.1

findfile
HastenS
0.0.4

icon-fonts
idleberg
1.3.0

markdown-toc
joffreykern
1.3.0

markdown-table-formatter
josa
0.0.4

mdhelper
joshbax
0.0.9

vs-color-picker
lihui
0.3.2

markdown-shortcuts
mdickin
0.5.0

prettify-json
mohsen1
0.0.3

mssql
ms-mssql
0.1.5

PowerShell
ms-vscode
0.7.2

Theme-MarkdownKit
ms-vscode
0.1.1

color-highlight
naumovs
1.3.0

copy-file-name
nemesv
1.0.0

markdown-checkbox
PKief
1.0.2

material-icon-theme
PKief
1.1.4

Ruby
rebornix
0.10.4

markdown-authoring
yanz
0.1.5

markdown-pdf
yzane
0.1.4

Steps to Reproduce:

Enter some text as TEST:123 BOOK:ISBN2143123 Author:Joe Doe
Open search, expression and paste into the find box (?<=:).+
you will get an error "Invalid expression"

Open Notepad++ do the same, it works.

I reproduce this in a regex tester, and fails with JavaScript flavor.
https://regex101.com/r/WgmJAa/1
This is the flavor that VSCode uses, as this is made in Electron.

Javascript doesn't supprt lookbehind assertions inside Regular Expressions (yet). That's why this is not working for you. But if might come soon-ish: http://v8project.blogspot.in/2016/02/regexp-lookbehind-assertions.html?m=1

Indeed, this is a limitation of the JS regex expression flavour. Once v8 ships support for look behinds, and Electron updates to a version of v8 supporting them (Electron updates quite often), and we update to a newer version of Electron (we also update quite often), they will simply start working. Since there is no work on our side for this to happen, I opt to close this issue for now.


Integrate IcoMoon icons

I don't especially need it, but I've used IcoMoon in the past. They have a large set of good-quality icons, with a good part licensed under GPL / CC BY 4.0 and provide a variety of formats (including SVGs).
See their free 490 icons here: https://icomoon.io/#preview-free
If it's easy to integrate, I think it would be a nice-to-have :slightly_smiling_face:

Good idea, these have been added in v5.8.0! 🎉
There's currently an issue displaying them on the icon explorer website, but the build that's building now should deploy and resolve in the next few minutes.

Deploy successful!  https://styled-icons.js.org/?s=icomoon

Wow that was fast @jacobwgillespie :smiley: Happy holidays to you!

I found a bunch of other libraries that were listed on icomoon. Do you have a rule about what should be added or not (except the license)? Should I open issues to list them?

Awesome - happy holidays to you as well!
Cool, yeah no rule besides license - at some point I really need to revamp the website so that you can filter by icon pack, etc, but yeah if you have other packs you'd like to see, feel free to send them over!


[in_app_purchase] Separate official example into multiple easier to digest examples

Currently, all the purchase type examples are cramped in 1 dart file. It would be nice to separate them so it would be quicker and easier to digest.
E.g. if i am only interested in the upgrade app to pro version, then i do not have to see all other variables that are not needed.

Hi @chitgoks
I like the idea, it can be similar to map example, if it was one big example, it would have been hard to digest for sure
"by purchase type" is not the correct way to put this, we can separate examples by topics.

hi @TahaTesser do you think this being made a widget is better to encapsulate all the code that it needs. where user can supply just the ids in the widget constructor


Authenticate issue with LLS

Trying to use the new fork (individual-license) and having issues with the authentication. It seems to be in the /libs/ls.py file. Getting authentication issues. Have verified username, password and URI work as expected with older version of script. Getting this error:
Traceback (most recent call last):
File "pcoip-agent-ls.py", line 272, in
client = LSClient(uri, args.ls_username, args.ls_password)
File "/home/msadmin/teradici/pcoip-license-server-individual-licenses/libs/ls.py", line 45, in init
self.authenticate()
File "/home/msadmin/teradici/pcoip-license-server-individual-licenses/libs/ls.py", line 64, in authenticate
raise Exception(msg)
Exception: Authentication Error: Response code: 500. Please verify ls url or cls id, username and password and try again.
Tried reviewing ls.py file but could not follow what changes were made. This is for a local license server and not the cloud registration ID.

We are looking into this issue.


Release 1.2.1 develop merge

Description
Merge hotfix changes back into develop
Linked issue

Type of change

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[ ] 🛠 New feature (non-breaking change which adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[ ] 🔨 New or improved tests for existing code
[ ] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[ ] I have read the style guide document, and my code follows the code style of this project.
[ ] If my code deals with exceptions, it follows the guidelines.
[ ] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.

Testing checklist

[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

QA Steps

Screenshots (if available)

I didn't see that you had already created this PR and have merged #3096.


#722 breaks cargo-embed build

Adding this new non-pub field has broken the cargo-embed build, since it directly constructs a DebugProbeSelector here based on a VID/PID in the config file.
However, even if we make this field pub, cargo-embed has no way to know what USB HID interface should be used; and if it just puts None here then we'll hit the same error as before on MacOS. Not sure what the cleanest solution is here... perhaps the HID interface needs to be removed from the Selector struct entirely, and cmsis-dap needs to scan the USB devices with libusb to determine the right interface when you try to create a probe from a selector?

cc @Tiwalun


Need local.settings.json deploy setting for CurrentEnv

References user story #434
Backend needs to distinguish between dev and deployed scenarios

nothing special to add, just needs to be set in the file, determination is done on the value present


Top 'N' populated countries, where 'N' is provided by the user.

The top 'N' populated countries in the world where 'N' is provided by the user.
The top 'N'populated countries in a continent where 'N' is provided by the user.
The top 'N' populated countries in a region where 'N' is provided by the user.

A country report requires the following columns: Code, Name, Continent, Region, Population, Capital.


Kivy Wheel on pywheels.org differs from GH release and does not support egl_rpi window provider

Software Versions

Python: 3.7
OS: Debian Linux 10 / RaspberryPi OS (running on a Raspberry 3B)
Kivy: 2.0.0
Kivy installation method: pip3 wheel, via python3 -m pip install kivy[base]

Describe the bug
The egl_rpi window backend does not work on raspberry pi < 4 even though it should.
The cython .so files for egl and bcm are not in the package, which are required for the egl_rpi window provider.
Those files are in the wheel that is on the GihHub Releases page for Kivy (for arm wheels).
Expected behavior
egl_rpi should work when installing Kivy via pip3 on a Raspberry Pi
To Reproduce
Install Kivy via python3 -m pip install kivy[base]
This will fetch https://www.piwheels.org/simple/kivy/Kivy-2.0.0-cp37-cp37m-linux_armv7l.whl, which does not include lib/vidcore_lite/egl*.so or lib/vidcore_lite/bcm*.so
Code and Logs and screenshots
[INFO   ] [Logger      ] Record log in /home/jf/.kivy/logs/kivy_22-02-19_2.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/home/jf/.local/lib/python3.7/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python3"
[INFO   ] [Launcher    ] Starting in: /home/jf/touch-screen
[INFO   ] [Launcher    ] Loading Kivy Config: config.ini
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
[INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
[INFO   ] [GL          ] OpenGL renderer <b'VideoCore IV HW'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
[INFO   ] [GL          ] Texture max size <2048>
[INFO   ] [GL          ] Texture max units <8>
[INFO   ] [Window      ] auto add sdl2 input provider

Additional context
When installing the package from the GitHub releases as follows it works as expected:
python3 -m pip install -v https://github.com/kivy/kivy/releases/download/2.0.0/Kivy-2.0.0-cp37-cp37m-linux_armv7l.whl

Log outputs on app start:
[INFO   ] [Window      ] Provider: egl_rpi
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
[INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
[INFO   ] [GL          ] OpenGL renderer <b'VideoCore IV HW'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>

After a quick discussion on discord with @tshirtman we identified that the issue is on piwheel side, not on Kivy side. Issue linked (https://github.com/piwheels/packages/issues/289).
Closing this one, as it is not a kivy issue.
Raspberry Pi users, in the meantime, avoid the piwheels package for Kivy if you rely on the egl_rpi window provider.


bug: Problem ID macro not correct

The 'get_problem_id' macro is currently including '/answer' or '/hint' as part of the id because of a bad regex. This results in incorrect problem ids used downstream.
https://github.com/openedx/aspects-dbt/blob/v3.29.1/macros/get_problem_id.sql#L6

This was resolved in #112


Cannot install apex

NVIDIA's apex has actual syntax errors -_____________- can someone point me to a version that actually complies? Thanks!
$ export CC=/usr/bin/gcc-12
$ export CXX=/usr/bin/g++-12
$ pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" git+https://github.com/NVIDIA/apex.git
...
...
  [2/2] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-ekqfqf73/build/temp.linux-x86_64-cpython-310/csrc/mlp_cuda.o.d -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/TH -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dheera/miniconda3/envs/opensora/include/python3.10 -c -c /tmp/pip-req-build-ekqfqf73/csrc/mlp_cuda.cu -o /tmp/pip-req-build-ekqfqf73/build/temp.linux-x86_64-cpython-310/csrc/mlp_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=mlp_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -ccbin /usr/bin/gcc-12 -std=c++17
  FAILED: /tmp/pip-req-build-ekqfqf73/build/temp.linux-x86_64-cpython-310/csrc/mlp_cuda.o
  /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-ekqfqf73/build/temp.linux-x86_64-cpython-310/csrc/mlp_cuda.o.d -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/TH -I/home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dheera/miniconda3/envs/opensora/include/python3.10 -c -c /tmp/pip-req-build-ekqfqf73/csrc/mlp_cuda.cu -o /tmp/pip-req-build-ekqfqf73/build/temp.linux-x86_64-cpython-310/csrc/mlp_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=mlp_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -ccbin /usr/bin/gcc-12 -std=c++17
  /home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h: In function ‘typename pybind11::detail::type_caster<typename pybind11::detail::intrinsic_type<T>::type>::cast_op_type<T> pybind11::detail::cast_op(make_caster<T>&)’:
  /home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected template-name before ‘<’ token
     45 |     return caster.operator typename make_caster<T>::template cast_op_type<T>();
        |                                                                                ^
  /home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected identifier before ‘<’ token
  /home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:123: error: expected primary-expression before ‘>’ token
     45 |     return caster.operator typename make_caster<T>::template cast_op_type<T>();
        |                                                                                ^
  /home/dheera/miniconda3/envs/opensora/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:126: error: expected primary-expression before ‘)’ token
     45 |     return caster.operator typename make_caster<T>::template cast_op_type<T>();

i have the same issue, install another apex version just like the command as follow:
git clone https://github.com/NVIDIA/apex.git
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
but have failed to run the scripts "torchrun --standalone --nproc_per_node 1 scripts/inference.py configs/opensora/inference/16x512x512.py --ckpt-path OpenSora-v1-HQ-16x512x512.pth --prompt-path ./assets/texts/t2v_samples.txt" , the error show that as follow:
"File "/gl_data/soft/miniconda3/envs/opensora/lib/python3.10/site-packages/apex/amp/_amp_state.py", line 14, in
from torch._six import container_abcs
ModuleNotFoundError: No module named 'torch._six'"
so i think it is the reason that the apex version is not correspond to the pytorch verison.
so i am very thankful that who can give me one solution or the corresponding apex version for torch2.2.2+cu118

i have the same issue, install another apex version just like the command as follow: git clone https://github.com/NVIDIA/apex.git cd apex pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ but have failed to run the scripts "torchrun --standalone --nproc_per_node 1 scripts/inference.py configs/opensora/inference/16x512x512.py --ckpt-path OpenSora-v1-HQ-16x512x512.pth --prompt-path ./assets/texts/t2v_samples.txt" , the error show that as follow: "File "/gl_data/soft/miniconda3/envs/opensora/lib/python3.10/site-packages/apex/amp/_amp_state.py", line 14, in from torch._six import container_abcs ModuleNotFoundError: No module named 'torch._six'" so i think it is the reason that the apex version is not correspond to the pytorch verison. so i am very thankful that who can give me one solution or the corresponding apex version for torch2.2.2+cu118

i have found the error is because the torch version is high, gh pr checkout 1049

i have the same issue, install another apex version just like the command as follow: git clone https://github.com/NVIDIA/apex.git cd apex pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ but have failed to run the scripts "torchrun --standalone --nproc_per_node 1 scripts/inference.py configs/opensora/inference/16x512x512.py --ckpt-path OpenSora-v1-HQ-16x512x512.pth --prompt-path ./assets/texts/t2v_samples.txt" , the error show that as follow: "File "/gl_data/soft/miniconda3/envs/opensora/lib/python3.10/site-packages/apex/amp/_amp_state.py", line 14, in from torch._six import container_abcs ModuleNotFoundError: No module named 'torch._six'" so i think it is the reason that the apex version is not correspond to the pytorch verison. so i am very thankful that who can give me one solution or the corresponding apex version for torch2.2.2+cu118

i have found the error is because the torch version is high, #1049

i have the same issue, install another apex version just like the command as follow: git clone https://github.com/NVIDIA/apex.git cd apex pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ but have failed to run the scripts "torchrun --standalone --nproc_per_node 1 scripts/inference.py configs/opensora/inference/16x512x512.py --ckpt-path OpenSora-v1-HQ-16x512x512.pth --prompt-path ./assets/texts/t2v_samples.txt" , the error show that as follow: "File "/gl_data/soft/miniconda3/envs/opensora/lib/python3.10/site-packages/apex/amp/_amp_state.py", line 14, in from torch._six import container_abcs ModuleNotFoundError: No module named 'torch._six'" so i think it is the reason that the apex version is not correspond to the pytorch verison. so i am very thankful that who can give me one solution or the corresponding apex version for torch2.2.2+cu118

i have found the error is because the torch version is high, https://github.com/NVIDIA/apex/pull/1049

i have the same issue, install another apex version just like the command as follow: git clone https://github.com/NVIDIA/apex.git cd apex pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ but have failed to run the scripts "torchrun --standalone --nproc_per_node 1 scripts/inference.py configs/opensora/inference/16x512x512.py --ckpt-path OpenSora-v1-HQ-16x512x512.pth --prompt-path ./assets/texts/t2v_samples.txt" , the error show that as follow: "File "/gl_data/soft/miniconda3/envs/opensora/lib/python3.10/site-packages/apex/amp/_amp_state.py", line 14, in from torch._six import container_abcs ModuleNotFoundError: No module named 'torch._six'" so i think it is the reason that the apex version is not correspond to the pytorch verison. so i am very thankful that who can give me one solution or the corresponding apex version for torch2.2.2+cu118

i have found the error is because the torch version is high, NVIDIA/apex#1049

I have successful handle the problem, by using
TORCH_MAJOR = int(torch.version.split('.')[0])
TORCH_MINOR = int(torch.version.split('.')[1])
if TORCH_MAJOR == 1 and TORCH_MINOR < 8:
from torch._six import container_abcs
else:
import collections.abc as container_abcs
to change
from torch._six import string_classes
in vim /gl_data/soft/miniconda3/envs/opensora/lib/python3.10/site-packages/apex/amp/_initialize.py +2
but i have encounted the new problems, i think it is because of the torch version.
because xformers depend on the higher torch version that the lowest version is cu118, but my nvcc version is 116, so the solution is to update the nvcc version to 11.8 or higher.
(opensora) [root@bogon Open-Sora]# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:16:03_PST_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0

Thanks for sharing your solution. And for cross-referencing, this issue was similar to issue #258.


CPP Error after processing several examples

Thank you for open-sourcing this tool. It has been very helpful to run CD on some meshes that I have.
I was trying to decompose some meshes that I have, from an open-source dataset. After processing about ~200-300 meshes in a python for loop, I received this error:
python: /workspace/coacd/src/process.cpp:112: double coacd::MergeConvexHulls(coacd::Model&, std::vector<coacd::Model>&, std::vector<coacd::Model>&, coacd::Params&, double, double): Assertion `p1 < costSize' failed

I've seen this error about 2-3 times at this point. For context, I'm trying to decompose the mesh with these parameters:
coacd.run_coacd(
            mesh=mesh,
            threshold=0.05,
            max_convex_hull=10,
            merge=True,
        )

Please let me know if some of these parameters are incompatible or if this is a known bug for certain meshes.
Thank you!

One additional point:
The constraints that I've placed on threshold and max_convex_hull are not hard constraints, and there is room to change these to more suitable values if that might help mitigate this problem.
Thank you!

Hi can you give me an example for reproducing the error?

Sure! I'm using the code directly from here.
I'm running it on some obj files taken from the popular ABC dataset here.
Here is one example obj file from ABC where I run into this error.
Thank you for your time!

Hi I tried to run the code on your obj, and I couldn't reproduce the error.
When i use t = 0.05 it just output 1 component, and i use t = 0.01 to produce a quite good result as follows:

@SarahWeiii apologies for not getting back. I guess the issue was I was running the file with the default parameters, which might have been causing some issue?
I will take another look at this to confirm.
Thank you for your time.


Webpack 3 RC ModuleConcatenationPlugin crash, out of memory

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Webpack crashes trying to build our application when using Webpack.optimize.ModuleConcatenationPlugin().
Also note up until the crash the build time is also showing a >60% increase in regards to build time with this plugin.
If the current behavior is a bug, please provide the steps to reproduce.
Building a large application (3000-4000 modules), with several entry point, a few commons chunks, pretty aggressive code-splitting using import() everywhere and uglified with source-maps.
What is the expected behavior?
No crash without having to bump memory usage. Note the build time increase is pretty significant too - wouldn't expect a single plugin to have such a drastic impact.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
OS: Mac OSX
Node.JS: v6.9.1
Webpack version: 3.0.0-rc.2
Stack:
<--- Last few GCs --->

  471727 ms: Mark-sweep 1343.8 (1443.3) -> 1343.2 (1443.3) MB, 1503.7 / 0.0 ms [allocation failure] [scavenge might not succeed].
  473238 ms: Mark-sweep 1343.2 (1443.3) -> 1343.2 (1443.3) MB, 1509.9 / 0.0 ms [allocation failure] [scavenge might not succeed].
  474819 ms: Mark-sweep 1343.2 (1443.3) -> 1343.2 (1427.3) MB, 1579.0 / 0.1 ms [last resort gc].
  476439 ms: Mark-sweep 1343.2 (1427.3) -> 1343.2 (1427.3) MB, 1619.3 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x24ab363cfb51 <JS Object>
    1: stringify [native json.js:~176] [pc=0x138f1ce98049] (this=0x24ab363c9111 <a JSON with map 0x8bbe1d0a0e1>,E=0x362ddef793a9 <an Object with map 0x26615909c261>,F=0x24ab36304381 <undefined>,S=0x24ab36304381 <undefined>)
    2: arguments adaptor frame: 1->3
    3: source(aka getSource) [/Users/chris/Projects/frontend/node_modules/stats-webpack-plugin/index.js:25] [pc=0x138f1d931920] (this=0x...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 4: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 5: v8::internal::IncrementalStringBuilder::Extend() [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 6: v8::internal::BasicJsonStringifier::SerializeString(v8::internal::Handle<v8::internal::String>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 7: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 8: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
 9: v8::internal::BasicJsonStringifier::SerializeJSArraySlow(v8::internal::Handle<v8::internal::JSArray>, unsigned int, unsigned int) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
10: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
11: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
12: v8::internal::BasicJsonStringifier::SerializeJSArraySlow(v8::internal::Handle<v8::internal::JSArray>, unsigned int, unsigned int) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
13: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
14: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
15: v8::internal::BasicJsonStringifier::SerializeJSArraySlow(v8::internal::Handle<v8::internal::JSArray>, unsigned int, unsigned int) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
16: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
17: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
18: v8::internal::Runtime_BasicJSONStringify(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/chris/.nvm/versions/node/v6.9.1/bin/node]
19: 0x138f16c092a7
sh: line 1: 43838 Abort trap: 6           webpack --config ./webpack/build.webpack.config.js --bail --profile

npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/chris/.nvm/versions/node/v6.9.1/bin/node" "/Users/chris/.nvm/versions/node/v6.9.1/bin/npm" "run" "build"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: `npm run clean; webpack --config ./webpack/build.webpack.config.js --bail --profile`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'npm run clean; webpack --config ./webpack/build.webpack.config.js --bail --profile'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the frontend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean; webpack --config ./webpack/build.webpack.config.js --bail --profile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs frontend
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls frontend
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/chris/Projects/frontend/npm-debug.log

On a second run with --max-old-space-size=8192 the build has completed with a 20% build time penalty.
Memory is quite limited on CI so going to play with how low we can get the memory until there's no crash for now.

Probably for a separate issue but I actually see a slight increase (~1kb across vast majority of chunks) in our application using ModuleConcatenationPlugin after diving into the bundle analyser.
Wonder if there's an "off the top of head" reason why this may be?

If you can isolate and reproduce the bundle size increase we'd be happy to look at it. However overall, the huge improvement should be seen through runtime execution decrease.

I'm experiencing the same for a somewhat equal setup. Our build time goes up by 300% (I guess due to swap files) and the chunk size increases by 1kb for each split chunk.

On a second run with --max-old-space-size=8192 the build has completed with a 20% build time penalty.

v8 gets slow when near the memory limit (GC runs very often). A increased build time for the ModuleConcatenationPlugin is expected.
It's also expected that the ModuleConcatenationPlugin needs more memory.

Probably for a separate issue but I actually see a slight increase (~1kb across vast majority of chunks) in our application using ModuleConcatenationPlugin after diving into the bundle analyser.

That's maybe not wrong. Scope Hoisting doesn't decrease post-gzip size. pre-gzip size is usually a bit lower. pre-minimize size is ~ equal. You may get additional size savings while minimizing when the minimizer discovers some additional cross-module optimization, but that's rar. In this case post-gzip and pre-gzip size decrease.

Think i'm experiencing the same without the error logs. After the first bundle, with ModuleConcatenationPlugin, it does not recognize any changes anymore, so i have to restart it.
It works like a charme without this plugin

For me it's bundling fine but the browser does't load the app giving error .call of undefined

@aseem2625 then you should probably open another issue 😄

@aseem2625 look at this html-webpack-plugin comment, it fixed my 'undefined' error (mainly back to<EMAIL_ADDRESS>

+1

My two cents: The project I've been testing ModuleConcatenationPlugin in, I've mostly gotten this on situations where I have cache enabled, e.g. on watch. I simply disabled it when I'm on HMR mode, for example, and only kept it when producing a final bundle, which is where the optimizations matter to me for the most part.

@emilio-martinez As far as I rem.,  that's what is suggested by webpack's official medium post that ModuleConcatenationPlugin doesn't work with HMR.

@aseem2625 Yup, thanks, I realize that.  I don't have it enabled with HMR, i.e., there are certain uses where I'm on "watch", no HMR, cache enabled for rebuilds, and I'm getting the error.

Ran into this issue as well. If you wonder how to give webpack more memory through that flag:
node --max-old-space-size=8192 node_modules/.bin/webpack

Could you reproduce this issue on 3.5.2? It seems that #5471 is possibly related to this issue.

@JLHwung Yes. I'm on 3.5.2 and it consumes around 8gb of memory on a relatively large app (single output bundle is ~4mb, minified). Watching the process in activity monitor, it seems to be fine for a while, slowly growing to around 2gb, then towards the end it shoots up in increments as high as 1gb at a time, probably when the ModuleConcatenationPlugin kicks in.
Without ModuleConcatenationPlugin, it maxes out around 2.5gb towards the end.

ModuleConcatenationPlugin memory problem was isolated in https://github.com/webpack/webpack/issues/5992#issuecomment-346384896 and fixed in https://github.com/webpack/webpack/pull/5997.

Is this card still relevant?


Correctly absorb curve points into cryptographic sponge

Description

Tests prove that they don't match. 0-case for SW curve won't pass still because it requires changes to r1cs-std.

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[x] Targeted PR against correct branch (main)
[ ] Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
[x] Wrote unit tests
[ ] Updated relevant documentation in the code
[ ] Added a relevant changelog entry to the Pending section in CHANGELOG.md
[x] Re-reviewed Files changed in the Github PR explorer

Now that the PR to r1cs-std is merged, how should this proceed?

Now that the PR to r1cs-std is merged, how should this proceed?

Should I add [patch.crates-io]?

Yes let's patch

@Pratyush is it good to merge?


chooseColorDynamically FormatVideoEncoder error

Hi @pedroSG94 , i have problem with live stream with samsung galaxy S8 device,
this device support YUV420PLANAR and YUV420SEMIPLANAR but i get problem with viewer side.
Could you help me to fix.

Did you try to play stream with VLC?
Also try stream with openglview that can't fail color format because use surface mode.

Thank @pedroSG94  i changed to use Openglview and it working for now. thank you!


[fix](tablet clone) fix tablet sched failed when tablet missing tag and version incomplete

Proposed changes
Tablet sched will always failed for case below:

At the beginning, 4 BE: A, B, C,  D;  replica alloc num=3;  three replicas are on A,  B, C;
User change BE  B/C/D to tag:foo,  also change table and partitions to tag:foo;
Tablet  scheduler will migrate replica from A => D.
Firstly, D clone a replica. During cloning, table loads data. After cloning, there are 4 replicas:
a) A: version complete,  tag mismatch;
b) B: version complete,  tag match;
c) C: version complete,  tag match;
d) D:  version incomplete,  tag match;
Tablet's aliveAndVersionComplete is ok(3 replicas: A,B,C),  then it check if  replicas of each tag are enough ,  it will found tag:foo 's replica is not engough,  it has 2 replicas: B, C (cause the alloc map excludes version incompleted D),  so this tablet's health status is REPLICA_MISSING_FOR_TAG;
Scheduler will try to find another BE to clone a new replica,  then it will failed.

The PR is to fix this. For a tag,  if the alive replicas are enough,   but version complete replicas are not enough, then the tablet's status should be VERSION_INCOMPLETE.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.96 seconds
stream load tsv:          511 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>9 Bytes

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.11 seconds
stream load tsv:          510 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select:          29.5 seconds inserted 10000000 Rows, about 338K ops/s
storage size:<PHONE_NUMBER>4 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.45 seconds
stream load tsv:          512 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>8 Bytes


Compositional (re)grounding is not repeatable across serialization

If we have a read and grounded document in memory, it can be regrounded without the result changing.  The two versions serialize exactly the same.  Regrounding means that the OntologyHandler grounds every eidosMention in the AnnotatedDocument, even if it has been grounded before  Additionally, if the read and grounded document is serialized, deserialized, and serialized again, nothing changes.  If, however, the read and grounded document is serialized, deserialized, regrounded, and serialized again, the result changes.  The grounding is dependent on something that probably changes order during the serialization/deserialization process, like the keys of a set.

The lessThan method in JLDSerializer has been updated.  To get right down to the bottom, but hashCode will be used shortly.