Feature_MultiPointers (experimental changes)

Overview
Added optional EventOrigin and SourceType members to BaseInputEventData.
Updated InputManager to initialize (most) input events with these arguments.
InputManager determines input source type on input source detected via DetermineInputSourceType.
InputManager can add / remove EventOrigin strings via ApplyEventOrigin and RemoveEventOrigin.
Discussion
Now that we're looking at a concrete implementation of this I already see room for improvement.
I don't like SourceType in practice, for a couple of reasons:

InputManager.DetermineInputSourceType seems like it could be extremely flaky even if we add Handedness to IInputSource.
I initially pushed to keep SourceType out of IInputSource, but it looks like these additional MixedRealityInputType types could be incorporated into IInputSource without much disruption.
Determining the input source type via IInputSource is also redundant when we're getting events directly from the device type in question (eg RaiseTouchpadTouched / RaiseGamePadDetected).

So my feeling is we should move this information into IInputSource after all.
Using the original Tag object
I played with using Tag instead of the EventOrigin string. On the InputManager side this wasn't difficult. Any existing uses would definitely be broken, but that may not be a big deal.
Consuming these tags is also less trouble than expected. BUT there's an interdependence problem I didn't notice until I implemented a few button types:
// unsafe examples

public class ButtonString : MonoBehaviour, IInputClickHandler {
        public void OnInputDown(InputEventData eventData)
        {
                string tagAsString = (string)eventData.Tag;
                if (tagAsString == someDefinedString) {
                        // do thing
                }
        }
}

public class ButtonGameObject : MonoBehaviour, IInputClickHandler {
        public void OnInputDown(InputEventData eventData)
        {
                GameObject tagAsGameObject = (GameObject )eventData.Tag;
                tagAsGameObject.GetComponent<SomeKindOfPointer>().DoThing();
        }
}

public class ButtonStruct : MonoBehaviour, IInputClickHandler {
        public void OnInputDown(InputEventData eventData)
        {
                MyStruct tagAsMyStruct = (MyStruct)eventData.Tag;
                if (tagAsMyStruct.someBoolValue) {
                        // do thing
                }
        }
}

On the button end you'll have to use exception handling when casting tags, and you'll have to implement fail-safe behaviors for tags that aren't the right type & can't be consumed. Maybe not a big deal.
On the pointer end, sending consumable tags to all three button types would require knowledge of the kind of button it's looking at. So you've got a choice between very complex pointers, or pointers that only work with a specific kind of button. This interdependence is a bigger deal. It sort of undermines the generic nature of the input system.
We could suggest that devs stick to a single tag type in their project to keep things simple, but then there's little point in using a generic tag object.
So it looks like a fixed type is the way to go. A string still seems like the obvious choice, but if anyone has thoughts on using an int / GameObject / whatever, please chime in.

Changes
Removed SourceType from BaseInputEventData.
Moved MixedRealityInputType values to InteractionSourceInfo.
Created non-WSA InteractionSourceHandedness enum for use in IInputSource interface.
Added TryGetSourceHandedness to IInputSource interface + all input source scripts.

Changes
Added MultiPointerSelector to InputManager prefab.
Added CursorOverride to IPointingSource.
FocusManager now provides a list of active IPointingSources via PointingSources.

When you get a chance take a look at our implementation of IInputSource handedness:
 bool TryGetSourceHandedness(uint sourceId, out InteractionSourceHandedness sourceHandedness);
To keep things non-WSA friendly we created a new InteractionSourceHandedness enum in HoloToolkit.Unity.InputModule to match the one from XR.WSA.Input.InteractionSourceHandedness, similar to InteractionSourceInfo / InteractionSourceKind.
This occasionally makes checking handedness awkward since you have to cast WSA handedness to HoloToolkit handedness when comparing info from the raw source with info from an IInputSource. But maybe that's unavoidable?
Also, should we come up with a different name to prevent confusion?

Changes
Added a parabolic navigation pointer as well as navigation hotspots / teleport pad.
Also added PointerTeleportManager, which currently conflicts with MixedRealityTeleport - I'd like to pull the functionality from PointerTeleportManager into MixedRealityTeleport before merging this PR. @keveleigh could use your suggestions here.

IFocusable -> IFocusTarget
IFocusable has been replaced with the multi-pointer-friendly IFocusTarget.
Focus events have been broken into two categories, FocusEnter / Exit and FocusGained / Lost, where the former may or may not result in the overall loss or gain of focus, and the latter definitely indicates overall loss or gain of focus. FocusGained / Lost are global events raised by FocusManager, while FocusEnter / Exit events are raised by InputManager and handled by IFocusTarget.
Because the IFocusTarget interface is slightly more complex than the single-pointer IFocusable we've created a base FocusTarget class for convenience. It's not necessary to inherit from this class to implement IFocusTarget, but it does reduce some of the boilerplate code necessary to manage the focus target's Focusers list.
The purpose served by IPointerSpecificFocusHandler has been largely absorbed by IFocusTarget so it has been renamed to IFocusChangedHandler and contains only one method, OnFocusChanged. This method receives event data containing the IFocuser, previous and current focus target GameObjects. We should probably turn this into a global OnFocusChanged event rasied by FocusManager as well.

IFocuser, IPointingSource & PointerResult
GameObject Target and GameObject PreviousTarget have been moved out of PointerResult (previously PointerData) and into the IFocuser interface:
public interface IFocuser
{
    bool InteractionEnabled { get; }
    bool FocusLocked { get; set; }
    bool OwnsInput(BaseInputEventData eventData);
    GameObject Target { get; set; }
    GameObject PreviousTarget { get; set; }
}

This enables us to move PointerResult Result (which contains data not relevant to generic focusers) out of IFocuser and into IPointingSource.
PointerResult retains a reference to its IPointingSource (and thus its Target / PreviousTarget) so its functionality is largely unchanged. However, it is now a struct to reinforce the idea that FocusManager is responsible for managing its contents. When a focuser is registered in FocusManager, pointing sources are given a newly initialized PointerData.
Placing Target and PreviousTarget in IFocuser has the added benefit of giving developers greater control over focus handling. FocusManager should be solely responsible for managing the data in PointerResult, but a focuser should have the power to override or veto FocusManager's attempts to set Target and PreviousTarget.
Setting Target and PreviousTarget internally (or preventing them from being set externally) will not interfere with focus events being raised normally.

@Railboy should we go ahead and close this?

Changes merged in to the InputSystem refactor


Fix NUIButtonRenderer masksToBounds when shadow applied

When there is a shadow applied and also a corner radius,
NUIButtonRenderer should mask all sublayers except the internal
UILabel. Currently, masksToBounds is set to NO, which effectively
breaks the corner radius setting. See #266.

Build failures appear to be the result of an old version of Cocoapods installed on the build servers. Where do I go to fix this?

I'm investigating/fixing (#368). Thanks for bringing this issue to my attention.


Would you like to provide the chatglm int4 ggml model ?

Would you like to provide the chatglm int4 ggml model ?

I'd love to, but this repo is under active development. The model format might change frequently. For now please stick to the latest source code to generate the ggml model. I'll consider releasing it when it's stable.

是考虑生成 GGUF 格式的模型int4 量化模型么？现在有啥新的进展么？


Added negative _LIMIT to select backwards!

Hi, as I'm using Netbeans, there are many auto-generated config files (I'm not sure if they are really needed, but...).
The actual change is in  src/org/restsql/core/impl/AbstractSqlBuilder.java
when negative _LIMIT parameter is given, the sort order is changed to DESC, so we can query data at the end of the table (for example if we query for a max value of a column)

Appreciate the contribution!
I'll be looking at this soon in more detail. From a brief review, seems to
me this should be a single file, AbstractSqlBuilder.java. I don't think we
really want to add netbeans config files to a single project at this
juncture.
Also I'm not clear one the value of context.xml. I've never used them
before. What would path="" do?
It's also difficult to see in AbstractSqlBuilder.java what has changed in
the github viewer . It looks like every line of the file has changed.
Perhaps you've changed the new line characters. I think I started the
project on Windows, but now use Mac. Is it possible to change your netbeans
settings to not match the file's new line char sequence.
Lastly, you'll need to add yourself to the contributors.txt. And make sure
you agree with the terms of the license. :>)
Cheers,
Mark
On Wed, Jul 20, 2016 at 12:22 PM, kolchagov<EMAIL_ADDRESS>wrote:

Hi, as I'm using Netbeans, there are many auto-generated config files (I'm
not sure if they are really needed, but...).
The actual change is in src/org/restsql/core/impl/AbstractSqlBuilder.java
when negative _LIMIT parameter is given, the sort order is changed to
DESC, so we can query data at the end of the table (for example if we query
for a max value of a column)
You can view, comment on, or merge this pull request online at:
https://github.com/restsql/restsql/pull/74
Commit Summary

Added negative _LIMIT to select backwards!

Reply to this email directly, view it on GitHub
https://github.com/restsql/restsql/pull/74, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAv1aoiYFCgz-2itepT9FPBZ2HMrBCfgks5qXksygaJpZM4JQ9MJ
.

Hi,
we can safely exclude the NB's config files. About 'context.xml' - it's a tomcat configuration file for earlier version of Java EE, where @ annotations aren't available. Netbeans automatically generates this file (path="" is used when debugging the project and application appears in the root path).
It's not needed, so exclude it from commit.

As current version doesn't support aggregate functions, and I saw that the views are explicitly excluded, I've committed code which enables the views and treat them as readOnly tables. The changes are very light and are related only to MySQL's resource generation.
The other commit solves a (surprising for me) problem: restsql readOnly tables can't have query parameters... Why? RO tables can be safely selected with filters. I haven't touched other operations.
This functionality greatly expands the usability of restsql!

Hello kochagov. Thanks for your patience. Finally found some time this morning to review your work.
I looked at your latest message and commit with the enabling of queries on read-only columns, but am puzzled on the intention. Are you submitting this to enable aggregate functions, views or read only columns?
View support needs a bit more work. The framework does not properly inspect metadata from views. Just to check if my memory fails me, I created a resource on sakila.actor_info. It doesn't get past the initial query for building the metadata: Definition requires table element for actor, referenced by column id. It probably has to change to read from the info schema, since the result set metadata query is not working.
By aggregate functions, I mean UNION, UNION ALL, INTERSECT and MINUS. How does this help with those?
By read-only columns, I mean a function, e.g. length(last_name). You can see test cases in restsql-test/resources/xml/service/testcase/ReadOnlyColumns and the resource tested is resrouces/xml/sqlresources/SingleTableFuncCols.xml. MySQL at least does not allow query by column alias. Say the above column was aliased to surname. If the query had a filter - where surname > 10 - it will fail. You have to repeat the function, as in where length(last_name) > 2. restSQL is not smart enough to do that yet.
To level-set on practices, I don't accept any changes, even from myself, without insurance. All core framework functionality needs to be covered by examples and tests, preferably positive and negative, in the restsql-test. They need to be run against both MySQL and PostgreSQL. If they don't run against PostgreSQL, then we can put them in the folder that  called MySqlOnly and these are excluded in a MySql test run. They also have to be executed in command line mode and at least on app server.
I can do this test work, but the timeline is subject to my availability. You're welcome to explore the http://restsql.org/doc/README-FRAMEWORK_DEVELOPERS.txt. Sorry it's not a great doc. And haven't reviewed it in years, so I hope it's up to date.
Do let me know what your intentions are with this latest commit and some examples.
Thanks,
Mark

Hello Mark,
I'm currently working on a project using restsql. I need GROUP BY, SUM, and other aggregate functions. As read in the docs - they are planned, but not implemented yet (do they?). So my quick and dirty solution was to enable views, and use view to achieve the missing functionality (so far it is working fine with MySQL and without children tables). I suspect there will be problems with the views (I saw that metadata is incomplete), so please skip this commit.
The other one though for negative limit is ok, and can be merged.
Regards,
Ivan

Hi Ivan. The project doesn't have much of a developer community, so there's no committed roadmap. That roadmap page is a collection of enhancements I wanted to add as well as others. If you want a feature, you will have to add it yourself. Or rally someone else to do it. :>)
Your definition of aggregate is slightly different. Sum, length are column functions but group by is a collection operation. I think the query by column function is more doable than group by. You will need to write out the full function expression rather than the column alias in the SQL builder. Think you will need to parse that from the resource SQL. That will now be a bit trickier since commas are allowed in the functions. They could be in aliases too I suppose. You could ask for the expression as explicit XML metadata, slightly more work for the user. You will probably need to extend the column metadata class with an expression attribute, which is used during SQL building.
On your first change for negative limit, does the offset stay positive? Let's say there are 100 rows and the page size you want is 50. So limit -50 offset 0 gives you the first set and offset 50 for the second page, all ordered descending?
According to MySQL 5.7 select doc (http://dev.mysql.com/doc/refman/5.7/en/select.html) limit requires a non-negative integer.
Could you provide more detail please?
Second, please resubmit just the Java files with only the relevant lines changed. The metadata class has every line changed.
Thanks!
Mark

Hi Mark,
in the first commit, the offset functionality is untouched, negative limit triggers the sort order Descending,  so:
_limit=-1&_offset=0 gives you the last record in the ordered collection,
_limit=-1&_offset=1 would give you the record before last,
_limit=-10&_offset=0  gives the last ten records and so on.
KR, Ivan

Oh okay. It's not a MySQL feature. It's a workaround for the missing order by support. Current ordering is always by the PK ascending.
I think we should consider instead adding first class support for order by to the framework. The http interface could be something like:
 GET /res/{resourceName}?_orderby={column1,column2,...}&order={ASC,DESC}&...

The limit/offset behavior is optionally applied.

Yeah, that would be nice and more complete.
I think that negative limit is a shorter though - maybe we should keep it too.
Ivan


fixed typo

Fixes #.
Description of the changes:

How changes were validated:

Wow, really trying to fluff up that resume huh?

Devs should care about spelling, thanks @marcellogianola !


Enable TLS with autogenerated certificate for postgres

To easily enable enable TLS and get an autogenerated  cert. We have switched to Helm chart when deploying postgres. Thus postgres is now installed via a dedicated argo app that is going to fetch the Helm Chart and install it.
We have the following argo apps in development env:
- pipeline-service: git repository with kubernetes manifests
- minio: git repository with kubernetes manifests
- postgres: based on Helm

/retest

/retest

/retest

@Mo3m3n Can you please rebase? There's a fix that should help with the tests.

/retest

/retest

For this test to pass, we need this PR https://github.com/openshift-pipelines/pipeline-service/pull/588 merged.

OK to merge as soon as the tests pass.

/retest

@Mo3m3n #601 has been merged. Rebasing should allow the tests to pass.

/retest

/retest

@Roming22 upgrade-test fails because the new postgres app installed via Helm Chart conflicts with the pipeline-service-storage app. So for the upgrade to be done correctly the old app need to be removed.
This impacts only upgrade in dev mode though.

@Mo3m3n Just to be 100% clear, you are saying that the issue is only impacting the development mode and won't  prevent an upgrade on staging or production, correct?
If so, then you can merge the PR after you've replied to this comment.

@Roming22 the specific issue we're seeing in the failed upgrade-test can only happen in development mode yes.
However keep in mind that CI is only testing dev mode and there is no 100% guarantee that we won't be facing issues when enabling TLS in staging/prod especially that RDS deployment is different there and we currently don't have tests targeting that. So the next step would be to enable TLS in staging first then in prod after.


[Engine-1.21] - Cluster reset does not update the peer addresses

Backport fix for Cluster reset does not update the peer addresses

#4296

Closing as the issue is validated using the release branch


Need a Definition for the Term “receiver”

I’m working on a future proposal, and it refers to “receiver,” a term with which I was not previously familiar. A look through the current spec base shows uses of this term, but no definition. Those uses are:
classes.md:
15.6.10 Extension methods

An extension method is a regular static method. In addition, where its enclosing static class is in scope, an extension method may be invoked using instance method invocation syntax (§<IP_ADDRESS>), using the receiver expression as the first argument.

expressions.md:
12.3 Static and Dynamic Binding|12.3.1 General

Binding is the process of determining what an operation refers to, based on the type or value of expressions (arguments, operands, receivers). For instance, the binding of a method call is determined based on the type of the receiver and arguments. The binding of an operator is determined based on the type of its operands.

12.3.4 Types of subexpressions

When an operation is statically bound, the type of a subexpression (e.g., a receiver, and argument, an index or an operand) is always considered to be the compile-time type of that expression.

<IP_ADDRESS> Corresponding parameters

For virtual methods and indexers defined in classes, the parameter list is picked from the first declaration or override of the function member found when starting with the static type of the receiver, and searching through its base classes.

12.6.5 Compile-time checking of dynamic member invocation

For an indexer access (§<IP_ADDRESS>) the set of accessible indexers in the receiver is known at compile-time.
If F is a static method, the method group shall not have resulted from a member_access whose receiver is known at compile-time to be a variable or value.
If F is an instance method, the method group shall not have resulted from a member_access whose receiver is known at compile-time to be a type.

12.7.6 Invocation expressions|<IP_ADDRESS> General

Otherwise, the result is a value, with an associated type of the return type of the method or delegate after any type argument substitutions (§<IP_ADDRESS>) have been performed. If the invocation is of an instance method, and the receiver is of a class type T, the associated type is picked from the first declaration or override of the method found when starting with T and searching through its base classes.

12.16.5 Anonymous functions and dynamic binding

An anonymous function cannot be a receiver, argument, or operand of a dynamically bound operation.

Jon's initial thoughts in private mail to me:
Without any context (and I haven't checked the docs) I'd expect it to be the opposite of a "caller". So for example, suppose you have:
public class X
{
    public virtual void Foo() {}
}

public class Y : X
{
   public override void Foo() {}
}

public class Z
{
    public void CallFoo(X x)
    {
        x.Foo();
    }

    public void CallCallFoo()
    {
         CallFoo(new Y());
    }
}

With respect to the Foo method, Z.CallFoo is the caller, X is the "declarer" of the method, but Y is the "receiver" of the method at execution time. But I may be way off base :)

I would think that "receiver" is a compile-time concept and means any of:

the primary_expression in member_access : primary_expression '.' identifier type_argument_list?
the primary_expression in null_conditional_expression : primary_expression null_conditional_operations in https://github.com/dotnet/csharpstandard/pull/7
the primary_no_array_creation_expression  in element_access : primary_no_array_creation_expression '[' argument_list ']'

So in x.Foo(), x would be the receiver, regardless of whether Foo is an extension method. In x++, x would be an operand and not a receiver.
But if the expression is just Foo(), then I suppose this could be the receiver, even though it does not appear in the expression. So maybe it is not a lexical thing after all.

On 19/08/2021, at 1:26 am, Rex Jaeschke @.***> wrote:
I’m working on a future proposal, and it refers to “receiver,” a term with which I was not previously familiar. A look through the current spec base shows uses of this term, but no definition.

From a CS point-of-view it is a common term.
For functions “caller”/“calling" and “callee” are commonly used – callee being the function.
For methods/messages (depending on the OO model terminology) the terms are “caller”/“sender” and “receiver” – receiver being the object (this/self/etc.) on which the method/message operates.
So callee and receiver are similar but different; the former is usually the code of the function, the latter is the object and maybe the method code.
That said the terminology choices/distinctions vary
Terminology choice may also vary for static/class methods depending on whether the language treats classes themselves as objects – in which case the class object is the receiver – or not – in which case more function-oriented terms may be used.
I don’t think the Standard needs to define caller/callee/receiver/et al, but it can do so.
HTH,
Nigel


Zero to merge cohort 01 directory

Hello @onlydole , this is Tomiwa, I was a participant in the concluded Zero To Merge Program this year, I came across the program repository and thought to include details that might be useful, I created a repository of the first cohort which I was part of and included details such as approved PR and Zero To Merge badge of myself so other participants can replicate as well, I texted you on the Slack channel about it already, I look forward to your response, thanks.

I like this idea, @TomiwaAribisala-git! Can you add this at the root level of the repository as a file named merged.md and I'll update the README with a call-out to this file with some instructions for folks to add their contributions.

Hello @onlydole, i have created the merged.md file as requested.

LGTM 🙌🏼


Missing Alex 3.2.2

Alex 3.2.0 was released.

thanks for the heads-up!
Btw, I'd like to point out that the cabal new-build-based https://github.com/hvr/multi-ghc-travis/blob/master/make_travis_yml_2.hs doesn't need a pre-built alex/happy/... anymore, as cabal new-build builds and caches buildtools like alex automatically.

Blocking https://github.com/agda/agda/issues/2314.

Alex 3.2.2 was released, any news on this front?


Expose onBlur, onFocus, onKeyDown events out of SearchBox

Do you want to request a feature or report a bug?
Feature for SearchBox
Feature: What is your use case for such a feature?
All provided features are good for me, I don't need to create my custom one.

I use this SearchBox for a Dashboard page, and also Auto Complete.

<Layout>
  <Header>
    <SearchBox />
    <AutocompleteResults />
  </Header>
  <Content />
</Layout>

Actually, I don't need react-autosuggest, as I tried your examples.

Feature: What is your proposed API entry? The new option to add? What is the behavior?
When using this Search Box, I need to know whether users focus/ blur/ press keys (Up, Down, Enter, ...) to implement my own AutoComplete features.
The solution could be inputProps (type = object) property.
What project are you opening an issue for?

react-instantsearch

What is the version you are using? Always use the latest one before opening a bug issue.
3.1.0
What do you think @vvo?
Like https://github.com/vinhlh/instantsearch.js/commit/14cca027cc49e8d3ee23aba02f151e07ac2f61c1

It should have onInput etc too if it's being exposed

@vinhlh What's the benefit of this approach compared to using the SearchBox connector?

@bobylito I don't have to duplicate SearchBox component to new custom one 💃 It contains a ton of things I need

@vinhlh Do you need to also get an event when the "clear" button is clicked?

Yes, I need @vvo

Moving to #2017


[crashpad] build failure on MSVC

Operating system
Windows
Compiler
MSVC
Steps to reproduce the behavior
The installation of vcpkg is completed normally, but an error will be reported when building the project.

Failure logs
I included the crashpad header file, but the header file cannot find the corresponding dependent header file.
\vcpkg_installed\x64-windows\x64-windows\include\crashpad\base\files\file_path.h(110,10): error C1083: Cannot open include file: 'build/build_config.h': No such file or directory

I tried to add the crashpad directory to my project's additional include dir, and I didn't encounter this problem, but it would conflict with my project's compilation environment.
mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in xxx.obj

Additional context
No response

Could you please provide the following information:

The command you used to install crashpad via vcpkg.
The version of your Visual Studio.
The Visual Studio project or test code you used to test crashpad.

I tried to add the crashpad directory to my project's additional include dir,

That's probably necessary if not using CMake.

mismatch detected for 'RuntimeLibrary'

You must set the  vcpkg target triplet as needed.

Sorry for taking so long to reply. Since it took a lot of time, I used minidump instead.
The environment at that time was like this:
I used the following command to install crashpad. I have a vcpkg json file.
vcpkg install --x-wait-for-lock --triplet "x64-windows" --vcpkg-root %vcpkg_path% --x-manifest-root=.\{project_dir} --x-install-root=.\{project_dir}\vcpkg_installed\x64-windows\

vcpkg integrate install

Visual Studio is the latest 2022 version, MSVC v143.
For the code in my project, as long as crashpad_client.h is included in the main.cc file, crashpad_client.h will report an error that it cannot find the crashpad\base\files\file_path.h dependency.
I have used many other libraries of vcpkg, and they do not require me to add additional inlcude directories. The header files I depend on can find their own dependencies. So I think this may be a bug.


scheduler: handle system commands in high priority pool

Signed-off-by: zhangjinpeng1987<EMAIL_ADDRESS>
What have you changed? (mandatory)
Handle system commands like ScanLock and ResolveLock in high priority pool, to reduce the impact of system commands for normal commands. Because after https://github.com/pingcap/tidb/pull/10379, there maybe several ScanLock and ResolveLock commands are running in the same time.
What are the type of the changes? (mandatory)

Improvement (change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

[ ] benchmark

Does this PR affect documentation (docs) or release note? (mandatory)
No
Does this PR affect tidb-ansible update? (mandatory)
No

CI failed
thread 'cases::test_conf_change::test_tick_after_destroy' panicked at 'assertion failed: num_threads >= 1', components/tikv_util/src/threadpool.rs:195:9

note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

stack backtrace:

   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace

             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39

   1: std::sys_common::backtrace::_print

             at src/libstd/sys_common/backtrace.rs:71

   2: std::panicking::default_hook::{{closure}}

             at src/libstd/sys_common/backtrace.rs:59

             at src/libstd/panicking.rs:197

   3: std::panicking::default_hook

             at src/libstd/panicking.rs:211

   4: std::panicking::rust_panic_with_hook

             at src/libstd/panicking.rs:474

   5: std::panicking::begin_panic

             at /rustc/e305df1846a6d985315917ae0c81b74af8b4e641/src/libstd/panicking.rs:408

   6: tikv_util::threadpool::ThreadPool<Ctx>::new

             at ./<::std::macros::panic macros>:3

   7: tikv_util::threadpool::ThreadPoolBuilder<C,F>::build

             at ./components/tikv_util/src/threadpool.rs:126

   8: tikv::storage::txn::scheduler::Scheduler<E>::new

             at ./src/storage/txn/scheduler.rs:186

   9: tikv::storage::Storage<E>::from_engine

             at ./src/storage/mod.rs:590

  10: tikv::server::node::create_raft_storage

             at ./src/server/node.rs:44

  11: <test_raftstore::server::ServerCluster as test_raftstore::cluster::Simulator>::run_node

             at components/test_raftstore/src/server.rs:133

  12: test_raftstore::cluster::Cluster<T>::run_node

             at ./components/test_raftstore/src/cluster.rs:205

  13: test_raftstore::cluster::Cluster<T>::start

             at ./components/test_raftstore/src/cluster.rs:155

  14: test_raftstore::cluster::Cluster<T>::run

             at ./components/test_raftstore/src/cluster.rs:183

  15: failpoints::cases::test_conf_change::test_tick_after_destroy

             at tests/failpoints/cases/test_conf_change.rs:155

  16: failpoints::cases::test_conf_change::test_tick_after_destroy::{{closure}}

             at tests/failpoints/cases/test_conf_change.rs:146

  17: core::ops::function::FnOnce::call_once

             at /rustc/e305df1846a6d985315917ae0c81b74af8b4e641/src/libcore/ops/function.rs:231

  18: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once

             at /rustc/e305df1846a6d985315917ae0c81b74af8b4e641/src/liballoc/boxed.rs:704

/release
/test

/test

/test

/release

LGTM, but CI is failing

/run-all-tests

/run-all-tests


'cloud start' should inform user that Cloud has been already started and no action is needed

Done.


Selecting item from list doesn’t fired @hit on Safari

On Safari, selecting item from the list doesn’t do anything! Any solution?

Thanks for the feedback. I don't have any solution yet, I'll have to find a way to test on Safari.

I started digging on this and
https://github.com/alexurquhart/vue-bootstrap-typeahead/blob/58f22ae4d11fd79c71e842154cfbdcd1cc4b42ff/src/components/VueBootstrapTypeahead.vue#L140
While this provides the clicked element in Chrome, the value in Safari is null....

Weird as Safari seems to be ok on this:
https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget#Browser_compatibility

In some cases (like when tabbing in or out of a page), this property may be set to null for security reasons.

Don't think this applies here...

Huh, it's working for me in Safari, what version of Safari are you using?

Hi, the same problem manifested itself in IE11, the Blur event does not return a relatedTarget, it worked when I changed the event to focusout. Can you fix the release?

Same issue here on IE11. Can you please please fix the release ?

Also confirmed that IE11 does not fire the @hit event. Fix would be much appreciated here.

please give some solution for the @hit is not firing in IE 11. Banging my head for this issue. Please provide some fix...

Found a nice explanation here:
https://stackoverflow.com/questions/42764494/blur-event-relatedtarget-returns-null
I just tested adding tabindex="0" on the  tag in VueBootstrapTypeaheadListItem.vue and it does fix the issue in Safari.

This fix also works in IE 11. By changign tab index of the list item to 0 and the VueBootstrapTypeahead .vbt-autcomplete-list z-index to 999

Solved with an faked animation and an duration that is quite long enough to count as user interaction:
replaced
v-show="isFocused && data.length > 0"
with
:class="{'vbt-autcomplete-list--hidden': !(isFocused && data.length > 0)}"
and in the style section
/* Fake for IE. because it doesn't emit the hit event when using display:none */
    .vbt-autcomplete-list--hidden {
        animation-name: hide;
        animation-fill-mode: both;
        animation-duration: .3s;
        animation-timing-function: linear;
    }

    @keyframes hide {
        to {
            visibility: hidden;
            display: none;
        }
    }

@Raisi do a pull request 👍

Solved with an faked animation and an duration that is quite long enough to count as user interaction:
replaced
v-show="isFocused && data.length > 0"
with
:class="{'vbt-autcomplete-list--hidden': !(isFocused && data.length > 0)}"
and in the style section
/* Fake for IE. because it doesn't emit the hit event when using display:none */
    .vbt-autcomplete-list--hidden {
        animation-name: hide;
        animation-fill-mode: both;
        animation-duration: .3s;
        animation-timing-function: linear;
    }

    @keyframes hide {
        to {
            visibility: hidden;
            display: none;
        }
    }

Thank u very much!  Works perfect!

Solved with an faked animation and an duration that is quite long enough to count as user interaction:
replaced
v-show="isFocused && data.length > 0"
with
:class="{'vbt-autcomplete-list--hidden': !(isFocused && data.length > 0)}"
and in the style section
/* Fake for IE. because it doesn't emit the hit event when using display:none */
    .vbt-autcomplete-list--hidden {
        animation-name: hide;
        animation-fill-mode: both;
        animation-duration: .3s;
        animation-timing-function: linear;
    }

    @keyframes hide {
        to {
            visibility: hidden;
            display: none;
        }
    }

Thanks a lot!
Since I needed to fix this ASAP I created a component to apply the workaround. I didn't like copying the whole template section but I found no other quick solution (other than forking this package).
<template>

        <slot name="prepend">
          {{ prepend }}
        </slot>

      <input
        ref="input"
        type="search"
        :class="`form-control ${inputClass}`"
        :placeholder="placeholder"
        :aria-label="placeholder"
        :value="inputValue"
        @focus="isFocused = true"
        @blur="handleBlur"
        @input="handleInput($event.target.value)"
        autocomplete="off"
      />

        <slot name="append">
          {{ append }}
        </slot>

    <vue-bootstrap-typeahead-list
      class="vbt-autcomplete-list"
      ref="list"
      :class="{
        'vbt-autcomplete-list--hidden': !(isFocused && data.length > 0)
      }"
      :query="inputValue"
      :data="formattedData"
      :background-variant="backgroundVariant"
      :text-variant="textVariant"
      :maxMatches="maxMatches"
      :minMatchingChars="minMatchingChars"
      @hit="handleHit"
    >

      <template
        v-for="(slot, slotName) in $scopedSlots"
        :slot="slotName"
        slot-scope="{ data, htmlText }"
      >
        <slot :name="slotName" v-bind="{ data, htmlText }"></slot>
      </template>

    </vue-bootstrap-typeahead-list>

</template>


Update docs to reflect change in auth

See title.

Build failed because dev version of orb needs to be republished. But I don't think I have permissions to do that. @ns-bdesimone merge merge?

Build failed because dev version of orb needs to be republished. But I don't think I have permissions to do that. @ns-bdesimone merge merge? And then publish new version to to orb registry? Happy to do it myself if you make me an NS org admin ;)

I will take care of the build

thanks fam


ObjectEditMeta ReadOnly prefix in MudTextField

Hi,
Would it be possible to give a string property a readonly prefix?
I try to achieve the following:
I have two properties:
` meta.Property(m => m.Category)
.WithOrder(1)
.WithLabel(_localizer[LK.TranslationsFormCategory])
.RenderWith<CategorySelect, TranslationCategoryDTO>(c => c.Value)
.WrapInMudItem(i => i.xs = 12); ;
meta.Property(m => m.Key)
.WithOrder(2)
.WithLabel(_localizer[LK.TranslationsFormKey])
.WithAdditionalAttributes<MudTextField>(true, t => t.Variant = Variant.Filled);`
I would like to use the category selected as prefix for the key making them a unique combination. The user can only create the key.
So for example
Selected Category is registration.
The key text shows: registration_XXXXXX where the user can only change the XXXXX
Would this somehow be possible?
Thanks in advance
Dennis

Just for label or description you can use the resolver for label or description and use your Model however you want.
For editing or whatever you can check if the Mask Property helps.
    public TestModel Test { get; set; } = new();

    public class TestModel
    {
        public Gender? Gender { get; set; }
        public string Text { get; set; }
    }

    public enum Gender
    {
        Male,
        Female,
        Other
    }

    private void Configure(ObjectEditMeta<TestModel> meta)
    {

        meta.Property(m => m.Text)
            .WithLabelResolver(i => Test.Gender?.ToString() + "_ Text")
            .WithDescriptionResolver(i => Test.Gender?.ToString())
            .WithAttributesIf<TestModel, MudTextField<string>>(m => m.Gender == Gender.Male, f => f.Mask = new PatternMask("###-##-##"))
            .WithAttributesIf<TestModel, MudTextField<string>>(m => m.Gender == Gender.Female, f => f.Mask = new PatternMask("###-##-##"));
    }


Refactored requests

Refactored requests.py. The same as https://github.com/langchain-ai/langchain/pull/7961 #8098 #8099
requests.py is in the root code folder. This creates the langchain.requests: Requests group on the API Reference navigation ToC, on the same level as Chains and Agents which is incorrect.
Refactoring:

copied requests.py content into utils/requests.py
I added the backwards compatibility ref in the original requests.py.
updated imports to requests objects

@hwchase17, @baskaryan

thank you @leo-gan!


As a user of the Gadget application, I would like to understand the opportunities that exist for saving energy with GEOPM

estimate 2

Done criteria:

Gadget is run at some scale on system B with the monitor agent.
Run a frequency sweep.
Reports and trace files are analyzed for energy saving opportunities.

Is the majority of the application run time spent in "long" running regions (> 100 ms).
Are there collective calls that are long running?
Are there long running regions that are not frequency sensitive.

http://kronos.ra.intel.com/~brad/data/smng/gadget/766273_gadget/region_mean_stats.log
Generated from:
https://github.com/bgeltz/dotfiles/blob/smng/bin/bin/gen_mean_stats.py

I just wrote some new code to print the per-iteration times of all the regions.  It's here:
https://github.com/bgeltz/dotfiles/blob/smng/bin/bin/gen_region_length.py
It will generate a report that is filtered by these 2 criteria:

The per-iteration time is > 5ms.
The total runtime is > 10s.

The filtered report is here:
http://kronos.ra.intel.com/~brad/data/smng/gadget/766273_gadget/region_iteration_runtime_filtered.log
(Unfiltered: http://kronos.ra.intel.com/~brad/data/smng/gadget/766273_gadget/region_iteration_runtime.log)
Regarding the energy savings opportunity from the done criteria:
There's a mix of long running and short running regions.  The list of non-MPI regions that ran for > 100 ms is:

[OMPT]gravity_tree+0x595
[OMPT]hydro_force+0x295

While the two above regions comprise > 50% of the run, both regions are frequency sensitive.  No other regions have a significant enough per-iteration or total runtime.
There are a few long running collective calls with per-iteration times > 10ms:

MPI_Alltoall
MPI_Waitall

MPI_Allreduce did have a large runtime, but the per-iteration times are ~=5ms.


Feature request: remember scrobble edits

Probably the best feature on SLS is the ability to edit the scrobbles (typically to remove the " - XYZ remastered version" that Spotify, Google Play et al add to many many albums).
What would make it even better would be the ability to remember these changes and reapply them automatically in the future.
NB: I may be able to work on this myself once I have some spare time - I'll check in on this in the future.

@4-Eyes added this in a pull request.
Should be in the next update.
Thanks.

Thanks for this


quantize-ort.py doesn't reproduce the quantized models in the repos

Running the quantization script quantize-ort.py cannot reproduce the quantized model in the repo. The current script will produce int8 quantized ppresnet50 at a size of over 120 MB, which is significantly different from the existing quantized models in the repo at the size of ~26 MB. After some investigation, I think the reason might be that preprocessing is missing. The ONNX documentation seems to suggest preprocessing is highly encouraged.
Left: Computation graph of already quantized models in the repo or models quantized by the updated script.
Right: Computation graph of the model quantized by the original script.

We can see that the current script will result in a model with an unoptimized computation graph and redundant computation nodes.

Did you use the PP-ResNet50 in this zoo for quantization? Also what is the onnx runtime version that you used?

Did you use the PP-ResNet50 in this zoo for quantization? Also what is the onnx runtime version that you used?

Hi @fengyuentau ,
Yes, I am using PP-ResNet50 and my onnx runtime version is 1.17.1.

Ok, I can confirm this on my side. Let me try your solution.


[Draft][UI] Add Toolchain View

Add toolchain view on side bar
ONE-vscode-DCO-1.0-Signed-off-by: Jiyoung Yun<EMAIL_ADDRESS>

/cc @hyunsik-yoon


add execute() to JDBC PinotPreparedStatement

Add the implementation for the execute() function in the PinotPreparedStatement class.
Override the following function here
  @Override
  public boolean execute()
      throws SQLException {
    throw new UnsupportedOperationException();
  }

This will allow for apps using the JDBC to use the execute() function without any special configuration to call executeQuery() instead. Currently, it calls the execute function here which caused a lot of confusion initially.
Specifically, this allows Jooq to call Pinot correctly with its .fetch() method.

@KKcorps ^^

Taking it up.

@gracewalkuski can you check if the code in the PR is what you are looking for or something more is needed.

Thanks @KKcorps ! I'll test it locally and let you know.

Yes that does work! Thanks so much!

Thanks for adding this support @KKcorps !
Thanks for raising the issue and testing the patch @gracewalkuski !


Create an Issue template

I would love to work on this. Could you please assign this issue to me?

I am a participant of GSSOC'22. I want to work on this issue .Can you please aassign me?


Dev/tejas

Fixed Exception catching in TFBoxTensor

Codecov Report

Merging #29 (dad3f54) into dev/main (effc69d) will decrease coverage by 1.34%.
The diff coverage is 76.17%.

@@             Coverage Diff              @@
##           dev/main      #29      +/-   ##
============================================
- Coverage     80.46%   79.12%   -1.35%
============================================
  Files            28       30       +2
  Lines           686      958     +272
============================================
+ Hits            552      758     +206
- Misses          134      200      +66

Flag
Coverage Δ

cpu
79.12% <76.17%> (-1.35%)
:arrow_down:

pytest
79.12% <76.17%> (-1.35%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...mbeddings/parameterizations/tf_delta_box_tensor.py
72.58% <72.58%> (ø)

box_embeddings/parameterizations/tf_box_tensor.py
75.12% <75.12%> (ø)

box_embeddings/parameterizations/__init__.py
93.33% <93.33%> (-6.67%)
:arrow_down:

box_embeddings/__init__.py
90.90% <100.00%> (+15.90%)
: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 effc69d...133522b. Read the comment docs.


[T3A2][F14-A1]Apoorva Ullas

Ready for review

Accepting this PR without a review because another of your PRs for this tutorial was reviewed in detail.


Interactive drawing website

Closes: #471

Title : Interactive drawing website
Name: :  Aditya Bhaummik
Idenitfy yourself: :  GSSOC

Describe the add-ons or changes you've made 📃
This website is an advanced interactive drawing tool that allows users to create digital art directly in their browser. It features a responsive design, various drawing tools including pen, eraser, and color picker, as well as options to undo, redo, save, and load drawings. Users can customize brush sizes and colors, ensuring a flexible and enjoyable drawing experience.
How Has This Been Tested? ⚙

i have tested it in my local machine
Screenshots 📷

Type of change ☑

What sort of change have you made:

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

Checklist: ☑

[ ] My code follows the Contributing Guidelines & Code of Conduct of this project.
[ ] This PR does not contain plagiarized content.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly wherever it was hard to understand.
[ ] My changes generate no new warnings.

Note to reviewers 📄

@Avdhesh-Varshney please review this pull request

@Avdhesh-Varshney i have resolved the conflicts please merge my pull request

@Avdhesh-Varshney please merge my pull requesti have resolved all the conflics


Reword Sentence in Smallest Common Multiple

Challenge Name

https://www.freecodecamp.com/challenges/smallest-common-multiple
Issue Description

The third paragraph in the Smallest Common Multiple challenge needs to be rewritten for ease of reading.

e.g. for 1 and 3 - find the smallest common multiple of both 1 and 3 that is evenly divisible by all numbers between 1 and 3.

The e.g. abbreviation seems unnecessary and may be confusing for people unfamiliar with it.
To Contributors
Change this sentence to something like this.

For example, for 1 and 3, you'll need to find the smallest common multiple of both 1 and 3 that is also evenly divisible by all numbers between 1 and 3. The answer here would be 6.

Please first read the contributing guidelines before taking care of this issue. And feel free to visit the Contributors chat room if you have any questions about contributing. We're there to assist.
Screenshot

Hello @erictleung I would like to submit a pull request for this issue.


[NEW FEATURE] remove environmental variables

Load up environmental variables from a read only mounted volume, need to adjust api_healthchceck to read this file

closed in v0.0.12 release


Oracle: Code cleanup

Solved with PR #12108

@smitpatel
Does know why tests fail for OSX/ Linux?

The build failures are fixed by #12287
Just rebase on latest dev.


Set default daysToKeep and artifactDaysToKeep to 60 days

default value is 60 days
it can be changed in Test_Job_Auto_Gen job if needed

Signed-off-by: lanxia<EMAIL_ADDRESS>

Test_Job_Auto_Gen_Sandbox/58

FYI @AdamBrousseau

script approval done (grinder)

Thanks @ShelleyLambert

DAYS_TO_KEEP  is added in Test_Job_Auto_Gen.


Add SDK user group(s) to Kubernetes slack

It would be nice to be able to ping admins, or approvers in the channel (as long as by convention they are not overused).
This would result in a PR to https://github.com/kubernetes/community/blob/master/communication/slack-config/usergroups.yaml

This will be a PR to add operator-sdk-maintainers only

https://github.com/kubernetes/community/pull/5247

Upstream PR merged. operator-sdk-maintainers is active.
To be added to this user-group, see the upstream PR and add yourself to both files. See this doc for how to find the slack ID.


Build error

I'm using RN 0.30 and I have react-native-maps.
Always get this error:
Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/measurement/AppMeasurementContentProvider;
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/measurement/AppMeasurementContentProvider;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
:app:transformClassesWithDexForDebug FAILED
Can anyone help me?

Try 3 things:

Delete /android/build
Delete /android/app/build
In the terminal:

$ cd android
$ ./gradlew clean

There was a conflict with react-native-card-scan. I resolve this issue by removing the line:
compile 'com.google.android.gms:play-services-gcm:8.4.0'
from android/build.gradle of react-native-card-scan


TypeError: object of type 'DATA_LOADER' has no len()

Hi, I meet a problem when I run "python single_experiment.py --dataset CUB --num_shots 0 --generalized True" which is that "TypeError: object of type 'DATA_LOADER' has no len()". My pytorch version is 1.1.0. Do you have any idea to solve this problem? Thank you!

Hi,
Yes, I could reproduce the error in my pytorch 1.1.10. environment:

Traceback (most recent call last):
File "single_experiment.py", line 175, in
losses = model.train_vae()
File "/home/esc2rng/repositories/CADA-VAE-PyTorch/model/vaemodel.py", line 206, in train_vae
self.dataloader = data.DataLoader(self.dataset,batch_size= self.batch_size,shuffle= True,drop_last=True)#,num_workers = 4)
File "/software/esc2rng/anaconda/envs/testenv/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 176, in init
sampler = RandomSampler(dataset)
File "/software/esc2rng/anaconda/envs/testenv/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 64, in init
if not isinstance(self.num_samples, int) or self.num_samples <= 0:
File "/software/esc2rng/anaconda/envs/testenv/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 72, in num_samples
return len(self.data_source)
TypeError: object of type 'DATA_LOADER' has no len()

I've come across this error before, and I think it's related to the PyTorch version. PyTorch version 1 wasn't released yet when this code was written :) If you create a python virtual environment (conda or virtualenv) with Python 3.5.6 and the packages below it should work:
torch==0.4.1
numpy==1.14.3
scipy==1.1.0
scikit_learn==0.20.3
networkx==1.11

Hi,
Yes, I could reproduce the error in my pytorch 1.1.10. environment:

Traceback (most recent call last):
File "single_experiment.py", line 175, in
losses = model.train_vae()
File "/home/esc2rng/repositories/CADA-VAE-PyTorch/model/vaemodel.py", line 206, in train_vae
self.dataloader = data.DataLoader(self.dataset,batch_size= self.batch_size,shuffle= True,drop_last=True)#,num_workers = 4)
File "/software/esc2rng/anaconda/envs/testenv/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 176, in init
sampler = RandomSampler(dataset)
File "/software/esc2rng/anaconda/envs/testenv/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 64, in init
if not isinstance(self.num_samples, int) or self.num_samples <= 0:
File "/software/esc2rng/anaconda/envs/testenv/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 72, in num_samples
return len(self.data_source)
TypeError: object of type 'DATA_LOADER' has no len()

I've come across this error before, and I think it's related to the PyTorch version. PyTorch version 1 wasn't released yet when this code was written :) If you create a python virtual environment (conda or virtualenv) with Python 3.5.6 and the packages below it should work:
torch==0.4.1
numpy==1.14.3
scipy==1.1.0
scikit_learn==0.20.3
networkx==1.11

Thank you! I have run the code successfully. Thanks for your reply!


How to implement the detection on my current project?

Hi,
First of all I would like to thank you for your post about Frida detection.
I would like to implement this on my current project to detect Frida and add some logic if it detects Frida.
Is there any example or README on how I can implement it?
Thanks.

I tried to clone and run this repository there is error on the build output
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\Users\KELEE\AppData\Local\Android\Sdk\cmake\<IP_ADDRESS>88404\bin\ninja.exe with arguments {-C C:\Dev\APKTools\DetectFrida-master\app\.cxx\cmake\debug\x86_64 native-lib}
  ninja: Entering directory `C:\Dev\APKTools\DetectFrida-master\app\.cxx\cmake\debug\x86_64'
  [1/2] Building C object CMakeFiles/native-lib.dir/native-lib.c.o
  FAILED: CMakeFiles/native-lib.dir/native-lib.c.o
  C:\Dev\APKTools\DetectFrida-master\app\src\main\c\..\..\..\..\..\o-llvm-binary\ollvm-tll\build\bin_Darwin\clang --target=x86_64-none-linux-android21 --gcc-toolchain=C:/Users/KELEE/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/KELEE/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D_64_BIT -Dnative_lib_EXPORTS -IC:/Dev/APKTools/DetectFrida-master/app/src/main/c/arch/x86_64 -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -mllvm -sub -mllvm -bcf -mllvm -fla -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/native-lib.dir/native-lib.c.o -MF CMakeFiles\native-lib.dir\native-lib.c.o.d -o CMakeFiles/native-lib.dir/native-lib.c.o   -c C:/Dev/APKTools/DetectFrida-master/app/src/main/c/native-lib.c
  CreateProcess failed: The system cannot find the file specified.
  ninja: build stopped: subcommand failed.

I tried to clone and run this repository there is error on the build output
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\Users\KELEE\AppData\Local\Android\Sdk\cmake\<IP_ADDRESS>88404\bin\ninja.exe with arguments {-C C:\Dev\APKTools\DetectFrida-master\app\.cxx\cmake\debug\x86_64 native-lib}
  ninja: Entering directory `C:\Dev\APKTools\DetectFrida-master\app\.cxx\cmake\debug\x86_64'
  [1/2] Building C object CMakeFiles/native-lib.dir/native-lib.c.o
  FAILED: CMakeFiles/native-lib.dir/native-lib.c.o
  C:\Dev\APKTools\DetectFrida-master\app\src\main\c\..\..\..\..\..\o-llvm-binary\ollvm-tll\build\bin_Darwin\clang --target=x86_64-none-linux-android21 --gcc-toolchain=C:/Users/KELEE/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/KELEE/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D_64_BIT -Dnative_lib_EXPORTS -IC:/Dev/APKTools/DetectFrida-master/app/src/main/c/arch/x86_64 -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -mllvm -sub -mllvm -bcf -mllvm -fla -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/native-lib.dir/native-lib.c.o -MF CMakeFiles\native-lib.dir\native-lib.c.o.d -o CMakeFiles/native-lib.dir/native-lib.c.o   -c C:/Dev/APKTools/DetectFrida-master/app/src/main/c/native-lib.c
  CreateProcess failed: The system cannot find the file specified.
  ninja: build stopped: subcommand failed.

as far as I know ollvm is great for obfuscating, but still i don't know how to setup, so I remark that on CMakeList.txt

@kevinlee-app  and @sedayux, OLLVM binary for Window is not provided in my other repo. Try using Mac to build the app.
Reg. how to integrate, each of the detections are discrete functions that you can call it from your native code. I believe the functions are self explanatory.


Initial CA creation & Initial Flexible Event scheduling logic

Creation of CA structure for the code written so far and some initial cohere api logic. This doesn't have CA for repeatEvents, only the file strucutre. Further, some test cases have been written.

Note: merging to organize assigned tasks and communication across use cases. clean architecture structure implementation.


DBText::ContextSummary cuts in the middle of line breaks

Affected Version
silverstripe/cms 4.4.0
Description
When calling DBText::ContextSummary(200). The text returned is plain except for line breaks and . The
 tag gets cut in the middle if if happens to be at the beginning/end of the section returned. It's probably being counted as 2 separate words instead of one.
This results in invalid HTML returned.

Hi @mxmclaudel
Could you please provide an example string which is being cut incorrectly?
Thanks,

My guess would be 197 characters of whatever followed by
 will cause it to be cut incorrectly...

Hi @caffeineinc
Sure, here's the raw HTML from the CMS:

This is a lot of text before this but really, this is a test sentence

with about more stuff after the line break

In the template I have this:
$Content.ContextSummary(35, "test")
In the output page, I get the following HTML:
                    ... really, this is a test sentence<br...

Thanks

Hey @mxmclaudel
I've made a bugfix & PR which should resolve your issue.

Merged into 4.5.x-dev


Add backspace [\b] character class

Thanks @MaxGraey - although I don't think this implementation is correct. The regex \b matches a word boundary, whereas [\b] matches a backspace.

Thanks @MaxGraey - although I don't think this implementation is correct. The regex \b matches a word boundary, whereas [\b] matches a backspace.

I know so I tied cover only [\b] case (backspace). I think in this case it is no different from \t, \n ant others. Should I do some extra checks for matching \b?

I know so I tied cover only [\b] case (backspace). I think in this case it is no different from \t, \n ant others. Should I do some extra checks for matching \b?

I think in this case it is no different from \t, \n ant others

No, I'm afraid not.
https://www.typescriptlang.org/play?#code/PTAEFsEMBcGMAtSVAI0rA1gZwA7oKYCwAULAPYB2W0oATvgOb4AeAjKALygX4DuoAJUYBRZjgAUAIgBmZMgG0AOopQBdNLUkBKEuSpkANvgB0Bsg3H0mbYy3ywpssio3atAbhIkQEGAiSgvGS0ACaoZACuFCGQtACeupTUdIwsAEyc3HyCImJSMMoo2on6RqbmlqnMabbM9lKwMKCNcPBu7kA

I think in this case it is no different from \t, \n ant others

No, I'm afraid not.
https://www.typescriptlang.org/play?#code/PTAEFsEMBcGMAtSVAI0rA1gZwA7oKYCwAULAPYB2W0oATvgOb4AeAjKALygX4DuoAJUYBRZjgAUAIgBmZMgG0AOopQBdNLUkBKEuSpkANvgB0Bsg3H0mbYy3ywpssio3atAbhIkQEGAiSgvGS0ACaoZACuFCGQtACeupTUdIwsAEyc3HyCImJSMMoo2on6RqbmlqnMabbM9lKwMKCNcPBu7kA


Patch GMT 6.4.0 builds 3, 4, 5 with correct GDAL 3.6 pinning

Recent libgdal36 migration removed the pins for GDAL in GMT, causing an error like libgdal.so.32: cannot open shared object file: No such file or directory due to mismatch in GDAL version used in build vs runtime. This adds the proper gdal >=3.6.0,<3.7.0a0 pin so that GMT versions built with GDAL 3.6 can only be installed with GDAL 3.6.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Patches https://github.com/conda-forge/gmt-feedstock/pull/226, https://github.com/conda-forge/gmt-feedstock/pull/230 and https://github.com/conda-forge/gmt-feedstock/pull/231.
Closes https://github.com/GenericMappingTools/pygmt/issues/2215.

Relevant diff when running python show_diff.py:
linux-64::gmt-6.4.0-h8b1eae8_4.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
linux-64::gmt-6.4.0-h8b1eae8_5.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
osx-64::gmt-6.4.0-h09a9948_3.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
osx-64::gmt-6.4.0-h46ce199_4.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
osx-64::gmt-6.4.0-h46ce199_5.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
osx-arm64::gmt-6.4.0-h1d82dbe_3.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
osx-arm64::gmt-6.4.0-h37daf58_4.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
osx-arm64::gmt-6.4.0-h37daf58_5.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
win-64::gmt-6.4.0-h379bcb0_3.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
win-64::gmt-6.4.0-h5e9ae33_4.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",
win-64::gmt-6.4.0-h5e9ae33_5.conda
-    "gdal",
+    "gdal >=3.6.0,<3.7.0a0",

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Thanks Filipe!


TypeError: 'type' object is not subscriptable - image_downloading.py on line 105

image_size function in image_downloading.py returns:
"TypeError: 'type' object is not subscriptable"
Appears to be in setting tile_size: int.
Debugging returns:
<class 'tuple'>[(class 'int'>, <class 'int'>)]

Resolved with: https://stackoverflow.com/questions/71041586/typeerror-type-object-is-not-subscriptable

Thanks for the report! It seems that hints with square brackets only work in Python 3.9+, so I decided to remove it.


[0.11] Blank docker image is created in app modal

Create an simple application, eg sleep 200
Check its configuration
Application will display a docker configuration

NB this affects 0.11 only, being fixed in 0.12.

Fixed in mesosphere/marathon-ui#290


output the alignments of two sequences

Hello，thanks for the beautiful implementation of dtw！
I'm facing an issue when using this code.
At first, I want to output the alignments of two sequences.
Therefore, I change the output of forward function in class _SoftDTWCUDA.
The new output is R instead of R[:, -2, -2].
When running loss.backward(), the error occurs: TypeError: backward() takes 2 positional arguments but 3 were given.
I would greatly appreciate it if you could assist me in understanding the cause of this issue and providing guidance on resolving it. Any insights you can offer would be invaluable.
Thank you in advance for your help!

I solve this problem by setting the equal number between forward output and backward input.

I would like to ask if there is any alignment information saved during the forward propagation process. If not then I have to write backtracking algorithm to generate it.


compare already downloaded videos from same URL prior to downloading...

Version
V1.10.11
Platform
Windows 11
Steps to reproduce
Hi, I've noticed if you insert a YT link and select search it lists all videos as normal, then select a folder for the download, If the app stops or you quit the app and restart and insert the same url and select search it lists all the videos again as expected when you select the same download folder it shows the folder as empty and starts downloading all the videos again.
It would be great if when selecting the download folder the app compares already downloaded videos with the search list and removes the downloaded videos from the list. Thanks
Standard app settings.
https://www.youtube.com/playlist?list=PLPSWeKehU4HCFx9fPzz85-Zk1R1ufE5E5
Details
Be able to compare previously downloaded video's in download folder to search list and remove from search list.
Not comparing already downloaded videos from same URL.
Checklist

[X] I have looked through existing issues to make sure that this bug has not been reported before
[X] I have provided a descriptive title for this issue
[X] I have made sure that this bug is reproducible on the latest version of the application
[X] I have provided all the information needed to reproduce this bug as efficiently as possible
[ ] I have sponsored this project

It's already an option in the settings, although the comparison is done by filename since there is no way to know which video/stream had been downloaded.


Add close button to CQUI Settings

 Issue by olegbl
Saturday Nov 12, 2016 at 03:14 GMT
Originally opened as https://github.com/CQUI-Org/cqui/issues/85

The new panel looks great, but it's tool big when UI Scaling is on:

It also doesn't respond to hotkeys (esc, etc...) so there doesn't seem to be any way to close it once opened.
This can be worked around by changing options, quick saving then quick loading.

 Comment by chaorace
Saturday Nov 12, 2016 at 03:19 GMT

The settings panel for now has no hotkeys, it's closed using the CQUI settings button on the minimap panel, which looks like it's still clickable. Regardless, I'll look into shrinking the panel a bit and nudging it to the right. Hopefully it will also be possible to get it to render on top of those UI elements

 Comment by SpaceOgre
Saturday Apr 22, 2017 at 07:20 GMT

I think changing Container style for the window from ShellWindowContainer to FullScreenVignetteConsumer might fix some of this. This style is used by the reports and great people popup.

 Comment by JHCD
Saturday Apr 22, 2017 at 13:26 GMT

Whould be great, if we use the "back-button" here too or an x-element...
All infos are in the screen, so it's an enhancement, not a bug, isn't it?

 Comment by chaorace
Saturday May 20, 2017 at 20:36 GMT

Makes sense, revising issue


LMR Mining contracts completed but no appearance of routed hashrate in Binance

Hi there Lumerin devs,
Hope you are well.
I have attached two excel files.

is a record of the contracts I have engaged with on the Lumerin Marketplace
is the hashrate record of my binance mining pool account that shows no activity.

What do you think I am doing wrong? The lumerin contracts have completed fine and I am using my binance pool address to route the hashrate from Lumerin but it shows no hashrate activity.
thanks Damian
[2023-5-2_LUG.xlsx](https://git

hub.com/Lumerin-protocol/WalletDesktop/files/11392614/2023-5-2_LUG.xlsx)
2023-05-04_statistics_hashmate_day (1).xlsx

Good morning...the first thing that I would verify is that you have:

Active Contract in the Buyer Hub screen (after purchase)
Active inbound miners in the Connections screen.

I'll assume that you're okay on the first, but if you don't see any inbound Connections, then you've likely not configured your inbound network (via port forwarding or ngrok) correctly.
In this instance, your buyer node SHOULD cancel the contract because it doesn't see any hashrate inbound.
So, assuming that you have a good contract and then active inbound miners, then the next thing to check is your outbound configuration to your Binance pool:
In the Utilities screen, in the Proxy-Router configuration section...make sure that the Buyer default pool is setup properly:
"stratum+tcp://accountname.workername:password@sha256.poolbinance.com:8888"

Thanks for this Alan, very kind of you :)  to include all the detail. Let me have a try with these new settings and I'll let you know how I go.

Hi there Alan
Hope you are well.
I updated my outgoing config to Binance pool.
I can still purchase a contract but I think the problem atm is like you say "no inbound connection" do you have any advice for "configured your inbound network (via port forwarding or ngrok) correctly"?
thankyou
Damian

Excellent, thanks for the information as this helps.  One of the most important thing that the Wallet-Deskop and proxy router (as a buyer) does is actually validate and route the hashpower.  To do that, you do have to make some network modifications to allow inbound network traffic (hashpower) to get to your computer.  There are instruction and videos in our GitBook that help walk you through this (either port forwarding if you have access to your router) or using a 3rd party service (like NGrok) https://gitbook.lumerin.io/lumerin-hashpower-marketplace/buyer/2.-network-changes-for-receiving-hashrate   Give that a try and then work on purchasing a contract again.

Hi there Alan
Hope you are well.
Here's the info on my gateway
Gateway address <IP_ADDRESS>
Port 49172
Public IP address <IP_ADDRESS>
Local IP address <IP_ADDRESS>
DHCP lease address for my computer <IP_ADDRESS>  (expires in 1 week)
Now I am in the port forwarding rule area and have completed as per attached  but I am not sure

what IP address to put in the external host IP box
what service to select from the drop down ?

Can you please advise?

Sure thing (glad you're making progress):

what IP address to put in the external host IP box?
I would either leave it blank or put <IP_ADDRESS> Both are conventions that allow any external address to send to that port

what service to select from the drop down ?
"Other" is fine.  As long as you've specified TCP in the other selection.  If you pick one of the things on the list, it will likely fill in the port number (those are all common services with prescribed ports eg: smtp = 25)

Final note, I would suggest (just for simplicity) to make bot the external and internal port 3334.  Then, all your definitions (when you purchase a contract) will be easy to remember...3334 (as a buyer) all the way through.
Good luck, have a great day and keep us posted!

Good afternoon Alan
Hope you are well.
We are making progress.
I have successfully set up the port forward rule on the router.
Plus the DHCP lease is working
I have purchased a Hashrate contract but still am having no luck in getting any miner connections (connections screen is still blank)

I have attached all the screenshots, would be interested in any ideas you might have ?

Glad to see we're moving forward.  In general, it looks like your setup is correct, but will only work if your public IP address (<IP_ADDRESS>) is not behind another firewall that you're not able to control.
To check this, a simple approach is:

once your wallet is up and running (before you try to purchase a contract)
visit https://portchecker.co
enter your external IP in the box (or it might already be filled in) and then port 3334.
This will check to see if it can route into your machine.

If the port is listed as "CLOSED" then likely there's some more network gear between you and the internet and you'll have to go the "Complex Network" route detailed here: https://gitbook.lumerin.io/lumerin-hashpower-marketplace/buyer/2.-network-changes-for-receiving-hashrate/2.2-single-or-multiple-nat/2.2.2-multiple-nat-example
One other thing that I noticed (that I can't verify because folks from the US can't get to Binance) is your outbound pool configuration.

It look like "hashmate.hashmate.001" might be an example account string, make sure that you're using your actual Binance account name  account_name.group.workerid.  Please don't put your actual account name in this ticket to reduce risk.
The other thing is that if we get inbound hashrate to your computer, you may have to use outbound Binance pool port 3333  instead of 8888.
I'm not personally familiar with Binance smart pools, but that might be one of the things to play with to make sure the wallet can talk pure Stratum (mining protocol) to the target pool.  There might be extra messaging that we're not handling with their "smart pool" tech.

So...in summary here's my recommended plan:

Check your incoming port with portchecker.co
Likely, you'll have to use ngrok for 3rd party inbound vpn
Try to purchase a contract using the ngrok inbound address instead of your port forwarded address (detailed in the instructions and video)
If we see inbound miners in your connections tab but still not hashrate in your target pool then
Double check your account / group / worker id on Binance
Possibly change outbound Binance port from 8888 to 3333

Good Luck and keep me posted!

Hi there Alan
Hope you had a good week.
Yes you are right - port checker showed my port 3334 as closed.
I was able to instal NGROK using Terminal and set up the forward to port 3334.
NGROK generated me the following ip address   0.tcp.au.ngrok.io:16882
I went into Lumerin and then changed Validator address using these details in the edit function under purchase contract.
I'm quite ecstatic to say that the connection with the Validator appeared!!
For the very first time. Thanks for your patience in getting me this far 🥇
Now that we have incoming sorted :) I will keep working on the outgoing settings until it delivers the hashrate to my binance pool.
NB. I will keep you informed in this thread about what is the correct binance setting to use when I nail it.
best
Damian

Hi Alan
I just checked binance, the hashrate seems to be appearing there too!!
I will recheck again tomorrow morning to confirm and let you know how it went.

Hi there Alan
Hope you are well.
I am going to close this issue as there is a lot of my personal IP info in this thread that is a bit of a security issue.
Would appreciate if you can delete this issue/thread.
Then I can create a new issue to keep you updated on my progress.

Sorry for the delay in response. I'm glad that it worked for you.  I will delete after this sends the update to you.


IV-Stats screen is broken

When opening the IV-stats screen in a PC-Box, then switching to another page and then back to the IV-stats screen, the health of the viewed pokemon becomes 0. Fixes itself upon viewing another pokemon.

Fixed by https://github.com/lhearachel/plat-engine/commit/d4e988a5dcad5c64edaa70067bbb18524558faaa


unable to remove SGDBoop windows 10

Great program but i dont use it anymore.
I am trying to remove SGDBoop from my windows 10 pc. I followed the instruction how to uninstall it, by running CMD as admin but the command line gives me this error:
"C:\WINDOWS\system32>SGDBoop.exe unregister
'SGDBoop.exe' is not recognized as an internal or external command,
operable program or batch file."

You don't "uninstall" SGDBoop in Windows, since there is no installation in the first place. You can unregister the sgdb:// URI protocol though.
The SGDBoop register command needs to be run in the same directory as the SGDBoop.exe file. In other words you need to use the cd sgdboopDirHere command to change the working directory, or just go to the SGDBoop.exe's folder and Shift+Right-Click -> "Open command window here" and then run the command.
After that, simply delete the SGDBoop.exe file and its accompanying DLL files, to completely remove SGDBoop from your system.

You don't "uninstall" SGDBoop in Windows, since there is no installation in the first place. You can unregister the sgdb:// URI protocol though.
The SGDBoop register command needs to be run in the same directory as the SGDBoop.exe file. In other words you need to use the cd sgdboopDirHere command to change the working directory, or just go to the SGDBoop.exe's folder and Shift+Right-Click -> "Open command window here" and then run the command. Make sure the command window is run with Administrator privileges.
After that, simply delete the SGDBoop.exe file and its accompanying DLL files, to completely remove SGDBoop from your system.

thanks! got it working. real novice here.

No problem! This issue will be helpful for others having the same experience. ;)


BigDecimal from f64

How can I convert from f64 to bigDecimal?
This worked before, but now I get this error
 BigDecimal::from(input.price)

 BigDecimal::from(input.price),
   |             ^^^^^^^^^^^^^^^^ the trait `std::convert::From<f64>` is not implemented for `sqlx::types::BigDecimal`

Environment
cargo 1.47.0 (f3c7e066a 2020-08-28)
rustc 1.47.0

sqlx = { version = "0.4.1", features = [ "runtime-tokio-rustls", "bigdecimal","macros", "postgres", "uuid", "chrono", "migrate"] }
sqlx-core ={ version = "0.4.0", features = ["uuid", "chrono"] }

It looked like bigdecimal turned those into TryFrom impls because it's actually fallible, although the implementation is still pretty hacky:

0.1.2: https://docs.rs/bigdecimal/0.1.2/src/bigdecimal/lib.rs.html#1739-1748
0.2.0: https://docs.rs/bigdecimal/0.2.0/src/bigdecimal/lib.rs.html#1785-1796

use std::convert::TryFrom;

BigDecimal::try_from(input.price)?
// or
BigDecimal::try_from(input.price).expect("BUG: price is not suitable for `BigDecimal`")

This change was likely done because BigDecimal cannot represent NaN or infinity and so before it would panic in these cases as it called .unwrap().
You honestly should not use floating points for currency amounts anyway, at least not if we're talking real money here.

You honestly should not use floating points for currency amounts anyway, at least not if we're talking real money here.
In the DB the field is numeric type, What kind of data should I use to store currency amounts?

numeric in the DB is fine since it can exactly represent any currency amount you're liable to encounter. Passing it around in application logic as f64, though, is problematic.
For currency inputs, it's common to take the amount as an integer in cents, eg. $12.34 would be 1234 cents, or whatever is the smallest unit of that currency. That way the value is always certain to be exact and not subject to the various issues inherent to floating point representation. The Square payments API does this, for example: https://developer.squareup.com/reference/square/payments-api/create-payment#request__property-amount_money


support b2d on linux host

b2d install just fine on a Linux host, but the homedir is not mounted preventing from mounting volume in the container.
I have a patch for both b2d and docker-machine that would add support.
The issue is alrady logged in https://github.com/boot2docker/boot2docker/issues/1085 . Opening it here for visibility.

Dupe of https://github.com/docker/machine/issues/1376


Add support to determine Tanzu virtual machine name through WCP and vCenter Server

Code of Conduct

[X] I have read and agree to the project's Code of Conduct.
[X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
[X] Do not leave "+1" or other comments that do not add relevant information or questions.
[X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description
Currently we are using "VCF/VVS" name standarts to identify the Tanzu VMs, some of those VMs will have different names in customer environment (-tkc01-.).
Use Case(s)
Do not rely on hard-coded names for components that contain user inputs.
Potential Configuration
The virtual machine names are not random and are connected in some way with the data that user provides during Tanzu configuration. There could be an API that will returns this information.
References
No response

I can pick this up if you are ok with

today the code does not supported Tanzu enabled clusters, here is the command
    # Check if Tanzu is enabled in WLD
            $status = Get-TanzuEnabledClusterStatus -server $vcServer.fqdn -user $vcUser -pass $vcPass -cluster $cluster.name
            if ($status -eq $True) {
                Write-PowerManagementLogMessage -Type ERROR -Message "Currently workload domains with vSphere with Tanzu are not supported. Exiting."
            }


Problems with viewing and editing entities with Yarn

Overview of the issue
After updating to the latest version of jhipster and jhipster-vuejs my project stopped allowing entities to be updated.

Motivation for or Use Case

Reproduce the error
To reproduce the error, create a new project and import the jdl from jdl-sample online-shop.jh

Related issues
#475
#322

Suggest a Fix

JHipster Version(s)

"jhipsterVersion": "6.7.1"
generator-jhipster-vuejs        version: "1.6.0"
JHipster configuration
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "cu.desoft.cav",
      "nativeLanguage": "es"
    },
    "jhipsterVersion": "6.7.1",
    "applicationType": "monolith",
    "baseName": "shopify",
    "packageName": "cu.desoft.cav",
    "packageFolder": "cu/desoft/cav",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "cacheProvider": "ehcache",
    "enableHibernateCache": true,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "ODI0NmRmMTg4NWE2NDI5ZWFjMDY3NmI3MDFmZDY2NmU2NjViNWY1ZGEzN2Q4YjM1Yzk4ZGU0MjI0OTE5NmJlZmIyMzQ2YjYzOTc3ZWQzY2JjYTdjZTZlMWIyMTYxYTQ1NzI5M2Y0NzQ2NTU1ZjNjOTcwOWIzNDUxYTcyZWQ1Mjc=",
    "embeddableLaunchScript": false,
    "useSass": true,
    "clientPackageManager": "yarn",
    "clientFramework": "vue",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "creationTimestamp":<PHONE_NUMBER>097,
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [
      {
        "name": "generator-jhipster-vuejs",
        "version": "1.6.0"
      }
    ],
    "enableTranslation": true,
    "nativeLanguage": "es",
    "languages": ["es", "en"],
    "blueprints": [
      {
        "name": "generator-jhipster-vuejs",
        "version": "1.6.0"
      }
    ]
  }
}

Entity configuration(s) entityName.json files generated in the .jhipster directory

Browsers and Operating System
OS: Ubuntu 18.04 (KDE NEON 5.18 Linux 5.3)
Google Chrome Version 80.0.3987.116 (Official Build) (64-bit)
Firefox 73.0

[x ] Checking this box is mandatory (this is just to show you read everything)

@yuniel-acosta : can you provide some logs ? browser logs, backend logs etc

Just tried and I don't have the problem. Everything works well.

@pascalgrimaud It could be my operating system. I recently reinstalled with the same KDE NEON system and then I started seeing this problem. I am using nvm for node versions (12.16.1 LTS) and this did not happen to me before. Now I notice that all my applications made with vuejs have problems with the vue-router, it seems that I don't notice the route changes, nor does the hot reload work.
Any suggestions that it may be a solution without reinstalling the OS. I'm going to try an app made with angular to see if I have the same problem.

Browser Logs

SyncMessage.js:292 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
browser.runtime.sendSyncMessage @ SyncMessage.js:292
DevTools failed to parse SourceMap: chrome-extension://alplpnakfeabeiebipdmaenpmbgknjce/include.preload.js.map
DevTools failed to parse SourceMap: chrome-extension://alplpnakfeabeiebipdmaenpmbgknjce/include.postload.js.map

Server Logs

2020-02-22 16:20:35.623 DEBUG 9874 --- [  XNIO-1 task-1] cu.desoft.cav.aop.logging.LoggingAspect  : Enter: cu.desoft.cav.web.rest.AccountResource.getAccount() with argument[s] = []
2020-02-22 16:20:35.695 DEBUG 9874 --- [  XNIO-1 task-1] cu.desoft.cav.aop.logging.LoggingAspect  : Enter: cu.desoft.cav.service.UserService.getUserWithAuthorities() with argument[s] = []
Hibernate: select user0_.id as id1_7_0_, authority2_.name as name1_4_1_, user0_.created_by as created_2_7_0_, user0_.created_date as created_3_7_0_, user0_.last_modified_by as last_mod4_7_0_, user0_.last_modified_date as last_mod5_7_0_, user0_.activated as activate6_7_0_, user0_.activation_key as activati7_7_0_, user0_.email as email8_7_0_, user0_.first_name as first_na9_7_0_, user0_.image_url as image_u10_7_0_, user0_.lang_key as lang_ke11_7_0_, user0_.last_name as last_na12_7_0_, user0_.login as login13_7_0_, user0_.password_hash as passwor14_7_0_, user0_.reset_date as reset_d15_7_0_, user0_.reset_key as reset_k16_7_0_, authoritie1_.user_id as user_id1_8_0__, authoritie1_.authority_name as authorit2_8_0__ from jhi_user user0_ left outer join jhi_user_authority authoritie1_ on user0_.id=authoritie1_.user_id left outer join jhi_authority authority2_ on authoritie1_.authority_name=authority2_.name where user0_.login=?
2020-02-22 16:20:35.925 DEBUG 9874 --- [  XNIO-1 task-1] cu.desoft.cav.aop.logging.LoggingAspect  : Exit: cu.desoft.cav.service.UserService.getUserWithAuthorities() with result = Optional[User{login='admin', firstName='Administrator', lastName='Administrator', email='admin@localhost', imageUrl='', activated='true', langKey='es', activationKey='null'}]
2020-02-22 16:20:35.931 DEBUG 9874 --- [  XNIO-1 task-1] cu.desoft.cav.aop.logging.LoggingAspect  : Exit: cu.desoft.cav.web.rest.AccountResource.getAccount() with result = UserDTO{login='admin', firstName='Administrator', lastName='Administrator', email='admin@localhost', imageUrl='', activated=true, langKey='es', createdBy=system, createdDate=null, lastModifiedBy='system', lastModifiedDate=null, authorities=[ROLE_USER, ROLE_ADMIN]}
2020-02-22 16:20:41.343 DEBUG 9874 --- [  XNIO-1 task-3] cu.desoft.cav.aop.logging.LoggingAspect  : Enter: cu.desoft.cav.web.rest.CategoryResource.getAllCategories() with argument[s] = [Page request [number: 0, size 20, sort: id: DESC], false]
2020-02-22 16:20:41.347 DEBUG 9874 --- [  XNIO-1 task-3] cu.desoft.cav.web.rest.CategoryResource  : REST request to get a page of Categories
2020-02-22 16:20:41.349 DEBUG 9874 --- [  XNIO-1 task-3] cu.desoft.cav.aop.logging.LoggingAspect  : Enter: cu.desoft.cav.service.CategoryService.findAll() with argument[s] = [Page request [number: 0, size 20, sort: id: DESC]]
2020-02-22 16:20:41.352 DEBUG 9874 --- [  XNIO-1 task-3] cu.desoft.cav.service.CategoryService    : Request to get all Categories
Hibernate: select category0_.id as id1_1_, category0_.date_added as date_add2_1_, category0_.date_modified as date_mod3_1_, category0_.description as descript4_1_, category0_.parent_id as parent_i7_1_, category0_.sort_order as sort_ord5_1_, category0_.status as status6_1_ from category category0_ order by category0_.id desc limit ?
2020-02-22 16:20:41.381 DEBUG 9874 --- [  XNIO-1 task-3] cu.desoft.cav.aop.logging.LoggingAspect  : Exit: cu.desoft.cav.service.CategoryService.findAll() with result = Page 1 of 1 containing cu.desoft.cav.domain.Category instances
2020-02-22 16:20:41.390 DEBUG 9874 --- [  XNIO-1 task-3] cu.desoft.cav.aop.logging.LoggingAspect  : Exit: cu.desoft.cav.web.rest.CategoryResource.getAllCategories() with result = <200 OK OK,[Category{id=10, description='Avon invoice', sortOrder=51091, dateAdded='2020-02-21', dateModified='2020-02-20', status='AVAILABLE'}, Category{id=9, description='throughput Home Loan Account revolutionize', sortOrder=54871, dateAdded='2020-02-20', dateModified='2020-02-21', status='AVAILABLE'}, Category{id=8, description='Front-line Fantastic Human', sortOrder=23683, dateAdded='2020-02-20', dateModified='2020-02-21', status='DISABLED'}, Category{id=7, description='Home Loan Account deposit', sortOrder=12226, dateAdded='2020-02-21', dateModified='2020-02-21', status='AVAILABLE'}, Category{id=6, description='web services', sortOrder=54496, dateAdded='2020-02-21', dateModified='2020-02-21', status='RESTRICTED'}, Category{id=5, description='harness architectures red', sortOrder=17869, dateAdded='2020-02-21', dateModified='2020-02-21', status='RESTRICTED'}, Category{id=4, description='synthesize Steel', sortOrder=18974, dateAdded='2020-02-21', dateModified='2020-02-21', status='AVAILABLE'}, Category{id=3, description='Chief', sortOrder=83161, dateAdded='2020-02-21', dateModified='2020-02-21', status='RESTRICTED'}, Category{id=2, description='transmit', sortOrder=8745, dateAdded='2020-02-21', dateModified='2020-02-20', status='AVAILABLE'}, Category{id=1, description='Table', sortOrder=47527, dateAdded='2020-02-21', dateModified='2020-02-21', status='DISABLED'}],[X-Total-Count:"10", Link:"http://localhost:9000/api/categories?sort=id%2Cdesc&page=0&size=20; rel="last",http://localhost:9000/api/categories?sort=id%2Cdesc&page=0&size=20; rel="first""]>

I don't know what the problem is but the routes to edit or view entities don't work well for me. I have reinstalled my PC with KDE NEON (then updated to its latest version 5.18.1) I have installed nvm from scratch with node version 12.16.1 LTS (also probe with 10). Install yarn 1.21 and the project I generate from scratch does not work for me. I am also using zsh. Does anybody have any suggestions. I have noticed that the beforeRouteEnter (to, from, next) method is never executed as it is not detected that the route has changed. It is quite frustrating not being able to continue with my project. Please help

@yuniel-acosta, it would be good if you can check the browser console and network tab logs. From screenshots, it seems that the edit page was not loaded with entity #9 data. It can either be an issue on the Javascript side or an API call and above will help in troubleshooting the issue.

@vishal423  This is a video that I record where the problem I have is shown.
video

I've tried in other linux distributions (Deepin) that I have installed on another pc and the same problem happens to me. I have not yet tried on windows any idea that it may be happening.

@yuniel-acosta : could you push to GitHub a fresh project with Vue.js blueprint plz ? So I can try and confirm it comes from your environnement
Which browser do you use ? Is there any addons / plugins ?

Ok this is a project created from scratch. An example where online-shop.jdl is used The project does not capture changes in routes so the beforeRouteEnter (to, from, next) method
It never runs. I just reinstalled my pc now with Manjaro and even so a base project doesn't work for me.
I am using

node v12.16.1
yarn v1.21
java 8 and 11
OS: Kubuntu, KDE NEON, Manjaro(KDE), Deepin (other pc)
This is just a random example. I have tried several projects generated from scratch and none works correctly. I find it very strange because before they worked well for me.
Try on several browsers:
Google Chrome in which I have many extensions installed (I thought that would be the problem, although before everything worked fine)
Firefox which has no add-on installed

The result for both browsers is the same. Editing or viewing entities does not work
In another comment I left a video that I recorded showing the problem
git repo project

Ok then, with your project, I got the issue. I think there is an issue with Yarn.
Can you retry generating a project with NPM instead of Yarn plz ?

@pascalgrimaud this is the same project but with npm instead of yarn
Project generated with npm package manager

@yuniel-acosta : as I said, I manage to reproduce the issue with your 1st repo. After playing a little bit, it comes from Yarn. I don't have the issue with NPM.
Do you have the issue with NPM too ?

With npm it works perfectly

After investigating, it seems to be an issue with beforeRouteEnter from entity-update.component.ts which is not called when we click on edit. Because of that the method retrieveEntity() is never called.

strange... so why does it work with NPM and not with Yarn ?

I definitely have no idea... I created twice the same app, one with npm and the other one with yarn and the only changes that I noticed between both had not impact...

I found the solution !
It seems to come from how npm and yarn handle dependancies of the node_modules used in the project.
Let me explain:
In the index.ts where we register hooks on component we do it on Component provided by vue-class-component. In the vue components we annotate the class with @Component provided by vue-property-decorator .
Once I noticed that, I took a look at the node_modules tree. And I found the first relevant difference between the two project.
In the yarn project the vue-property-decorator directory looks like:
├── lib
│   ├── vue-property-decorator.d.ts
│   ├── vue-property-decorator.js
│   └── vue-property-decorator.umd.js
├── LICENSE
├── node_modules
│   └── vue-class-component
│       ├── dist
│       │   ├── vue-class-component.common.js
│       │   ├── vue-class-component.esm.browser.js
│       │   ├── vue-class-component.esm.browser.min.js
│       │   ├── vue-class-component.esm.js
│       │   ├── vue-class-component.js
│       │   └── vue-class-component.min.js
│       ├── hooks.d.ts
│       ├── hooks.js
│       ├── lib
│       │   ├── component.d.ts
│       │   ├── component.js
│       │   ├── data.d.ts
│       │   ├── data.js
│       │   ├── declarations.d.ts
│       │   ├── declarations.js
│       │   ├── index.d.ts
│       │   ├── index.js
│       │   ├── reflect.d.ts
│       │   ├── reflect.js
│       │   ├── util.d.ts
│       │   └── util.js
│       ├── LICENSE
│       ├── package.json
│       └── README.md
├── package.json
└── README.md

While in npm project the directory looks like:
├── lib
│   ├── vue-property-decorator.d.ts
│   ├── vue-property-decorator.js
│   └── vue-property-decorator.umd.js
├── LICENSE
├── package.json
└── README.md

In the npm based project, we register the hooks on the Component provided by the vue-class-component package, and when using @Component on the vue class, we use the vue-property-decorator which use the vue-class-component on which we registered our hooks.
On the other hand, in the yarn based project when using @Component we use vue-property-decorator which use a version of the vue-property-decorator on which we didn't have registered any hooks, so the retrieval of the entity to update fail.
The solution is to add a resolution options to the package.json to force the use of only one version of vue-class-component.
I'll push the fix later in the evening.

hi @stonedMoose  I found also the solution I already create a branch (https://github.com/seraphinandrieux/jhipster-vuejs/tree/565-fix-editing-entities) which is ready to merge.
I didn't mention, sot I can let you do it, my bad.

@stonedMoose : nice catch about dependencies issues. Indeed, we could do the fix with resolution like we did with React (see https://github.com/jhipster/generator-jhipster/blob/master/generators/client/templates/react/package.json.ejs#L180-L183)
But if the upgrade of libraries is enough (https://github.com/seraphinandrieux/jhipster-vuejs/commit/0a6a50e870892fed6bb7e530eb080962f4b9ebd7), it will be a better solution for me !

@pascalgrimaud : Upgrading the dependancies might be a better solution indeed.
@seraphinandrieux: did the upgrading fixed the issue because these package are intrinsically better written ? or is it because with the upgrade vue-property-decorator depends on the same version of vue-class-component ?
My concern, is that next time we upgrade one of these libraries, we do not check that the version matches, and we re-introduce the bug without even noticing it. So, afterall, resolution may be the way to go.

There is something else that this issue enlighten: we do not have any test to check that our beforeRouteEnter are triggered. And it might be an issue.
If we did have that kind of test, the upgrade of dependencies could be the answer.
Doing a quick search it's does not seem easy to test that, it might the reason why they do not exist.
I'll dig further this weekend

As we already migrate to GitHub Actions -> we need to add a new build using Yarn too

Sure we do ! But it could not be enough. Maybe e2e will grab the issue but I'm not sure of that

the e2e for Yarn will not be enough, what you suggested is better, so let's do both !
Can you open a new ticket to track these missing tests plz ?

Bounty claimed : https://opencollective.com/generator-jhipster/expenses/14318  :)