Array creation and array_function

One of the issues that arise when introducing __array_function__ in a NumPy-like library, such as Dask, is array creation. Many functions require some sort of array to be created, either for temporary usage or to hold results. Specifically within Dask, most resulting arrays are simply NumPy-arrays, most of the times wrapped in a Dask array. However, when we deal with another NumPy-like library, be it either CuPy, xarray, Sparse, etc., we need to ensure that the arrays created within Dask match those types.
A very common case is the use of empty (and counterparts, full, ones, zeros), which we can now overcome with the introduction of shape argument in empty_like (and counterparts) in https://github.com/numpy/numpy/pull/13046. This is a great starting point, but doesn't solve all array creation issues. Most notably, we have array and asarray, which are not included in the __array_function__ scope, so we have no simple way to deal with certain situations involving those functions.
With Dask, we could of course introduce mechanisms such as looking up the type of the array and dispatching a call to that library, but this would limit the scope of use to a few libraries that we support and would be an effort, to my understanding, counter-productive towards __array_function__.
So my question here is: are there ideas out there already or discussions already initiated on how to solve such problems? Maybe @shoyer, @mrocklin or @jakirkham know something about this already?

I'm not sure I fully understand, what are situations where this goes poorly?
For example, if I can da.asarray(my_cupy_array) do I not get a dask array of cupy arrays?

For example, if I can da.asarray(my_cupy_array) do I not get a dask array of cupy arrays?

That's correct, and if I'm not mistaken, this is the primary reason we have to use asarray=False when creating a Dask array from a CuPy array.

And beyond that, we have cases where we create an array from a list, for example, currently there's no mechanism to ensure that this array will be of same type of some other array which will be operated on. One example is percentile, in which we have an array a that can be a CuPy array for example, and q which is array-like but we need to make a CuPy array from it. See https://github.com/dask/dask/commits/master/dask/array/percentile.py

If possible I would like to focus first on the da.asarray(my_cupy_array) case.  I think that it is likely easier to manage.
Some relevant code is here:
https://github.com/dask/dask/blob/165f71e70983874a9f63eda544199d526041f69f/dask/array/core.py#L2316-L2334
There is some clear special-casing of NumPy here.  I wonder if there is some check we can do instead of an explicit type check here that would be valid.  cc @shoyer in case he has suggestions.  For example I wonder what would happen if we added the check
asarray = not hasattr(x, '__array_function__')

This would change behavior on matrix objects (although maybe that's ok now with _meta).
Also, I noticed that there is an asanyarray function, which isn't as nice as using asarray directly, but might be a short-term standin.
https://github.com/dask/dask/blob/165f71e70983874a9f63eda544199d526041f69f/dask/array/core.py#L3163-L3201

For the da.asarray(my_list) case that seems a bit harder to resolve.  Maybe a like= keyword?  This seems a bit odd though.

I don't have a particular order in which I would like to keep, I'm just raising this question in case we already have something ongoing, and to get ideas from other people.
The idea I had was similar to your like= argument suggestion, but with a new function, similar to empty_like. In any case, I don't know long-term what would be a better solution, ideally -- and supposing the idea is to have __array_function__ more widely used -- we would have a way for libraries to specify what a resulting array should look like, e.g., you have an array as input, so your output should be the same type of array, which often requires that other arrays created internally be of that type as well.
Maybe I have incorrect expectations and this is not intended with NEP-18 for a reason, but for now I think it's missing that capability, which is essential in some situations, such as I mentioned before with percentile.

And by the way, something that maybe wasn't clear before, the issue is not with Dask alone, but we can't use numpy.asarray(cupy_array) as well:
>>> import numpy as np
>>> import cupy
>>> a = cupy.empty((2, 2))
>>> b = np.asarray(a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nfs/pentschev/.local/lib/python3.7/site-packages/numpy/core/numeric.py", line 538, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: object __array__ method not producing an array

For fixing da.asarray, maybe we can go through a deprecation cycle and then default to asarray=False.
That said, IIUC the da.asarray is a finer point. The larger issue is, how do we handle array creation in algorithmic code? Currently we have hard-coded NumPy array creation in some places. How can we relax this to create an array matching the input type when needed?

For fixing da.asarray, maybe we can go through a deprecation cycle and then default to asarray=False.

I think the main problem isn't da.asarray, but np.asarray itself, since we can't dispatch that with a CuPy array, for example. Maybe if that was possible, we wouldn't need to use asarray=False in Dask array creation at all.

That said, IIUC the da.asarray is a finer point. The larger issue is, how do we handle array creation in algorithmic code? Currently we have hard-coded NumPy array creation in some places. How can we relax this to create an array matching the input type when needed?

Correct, and I'm raising this here to see what ideas we have on the Dask side, but this may be a question that we need to raise in NumPy itself.

Cupy intentionally doesn't want np.asarray(my_cupy_array) to work.  Their
reasoning here is that this often happens and reduces performance.  They
would rather that users intentionally call a to_numpy method, or something
similar.
On Wed, Jun 5, 2019 at 10:35 AM Peter Andreas Entschev <
<EMAIL_ADDRESS>wrote:

For fixing da.asarray, maybe we can go through a deprecation cycle and
then default to asarray=False.
I think the main problem isn't da.asarray, but np.asarray itself, since
we can't dispatch that with a CuPy array, for example. Maybe if that was
possible, we wouldn't need to use asarray=False in Dask array creation at
all.
That said, IIUC the da.asarray is a finer point. The larger issue is, how
do we handle array creation in algorithmic code? Currently we have
hard-coded NumPy array creation in some places. How can we relax this to
create an array matching the input type when needed?
Correct, and I'm raising this here to see what ideas we have on the Dask
side, but this may be a question that we need to raise in NumPy itself.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/4883?email_source=notifications&email_token=AACKZTG4EZT2RQCEW363AJ3PY72MLA5CNFSM4HTU2Q52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAOSJI#issuecomment-499181861,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACKZTG6VMMT56BENA545LDPY72MLANCNFSM4HTU2Q5Q
.

IIUC Peter is suggesting that np.asarray should mean cp.asarray in some cases. Perhaps similar to the backend selection idea. Though please correct me if I'm getting this wrong, Peter.
Anyways I don't think we should get too bogged down in asarray in particular. It's only one example of the kinds of issues we still encounter.

My guess is that that's not possible today.  Too much of the ecosystem probably depends on np.asarray to produce exactly a numpy array.

IIUC Peter is suggesting that np.asarray should mean cp.asarray in some cases. Perhaps similar to the backend selection idea. Though please correct me if I'm getting this wrong, Peter.
Anyways I don't think we should get too bogged down in asarray in particular. It's only one example of the kinds of issues we still encounter.

You're correct in your entire statement. :)

My guess is that that's not possible today. Too much of the ecosystem probably depends on np.asarray to produce exactly a numpy array.

That's right, it isn't possible today, and that's exactly what I want to discuss: how do we make it possible?
It is too often the case that we need to create new arrays, and for __array_function__ to work properly in all (or almost all) cases, we need to deal with that. This is why I used the example of shape in empty_like, we depend on it in several instances, and we need something similar for np.array and np.asarray, and perhaps others as well, but I don't know how many of NumPy's array creation functions are of much relevance for other libraries, such as Dask and CuPy.

My guess is that that's not possible today. Too much of the ecosystem probably depends on np.asarray to produce exactly a numpy array.

That's right, it isn't possible today, and that's exactly what I want to discuss: how do we make it possible?

My view is that we need a new coercion function/protocol inside NumPy, something like np.duckarray(). We can't change np.asarray() because that is used in some cases where the user expects real NumPy arrays (e.g., with strides).
Nathaniel Smith and I discussed this in NEP-22, but didn't come to a concrete proposal, mostly because we struggled to come up with a good name.

Is there an issue on the NumPy repo that we should use to discuss this proposal, @shoyer?

TBH, I've been trying to wrap my head around the NEP-22 proposal, but I still don't understand how we would use that in practice. I'm very sure I don't understand the proposal well, but my little understanding is that duck arrays would automatically convert itself, we will face some rejection, and here I'm thinking particularly of CuPy, where no implicit conversion is allowed. Happy to continue the discussion either here or some more appropriate place.

It wouldn't be a bad idea to discuss this in the NumPy tracker somewhere.
My thinking something like the following implementation for the protocol:
import numpy as np

# hypothetical np.duckarray() function
def duckarray(array_like):
  if hasattr(array_like, '__duckarray__'):
    # return an object that can be substituted for np.ndarray
    return array_like.__duckarray__()
  return np.asarray(array_like)

Example usage:
class SparseArray:
  def __duckarray__(self):
    return self
  def __array__(self):
    raise TypeError

duckarray(SparseArray())  # returns a SparseArray object
np.array(SparseArray())  # raises TypeError

What you are proposing sounds reasonable, Stephan. Is there a particular NumPy issue we should move too?

@shoyer, I went ahead and opened issue ( https://github.com/numpy/numpy/issues/13831 ) (copying everyone here) to get the ball rolling on this. Hope that is ok. 🙂

We have now a more appropriate place to discuss this in https://github.com/numpy/numpy/issues/13831, so I'm closing this.


offline mode is enabled. To disable it, please unset the HF_HUB_OFFLINE environment variable.

When I set the environment variable HF_HUB_OFFLINE=1,
The code doesn't load the local model, it throws an exception, but when I use other features, it loads the local model
I confirm that the model is cached locally

The error occurred in anime_face_detection model
However, ccip-caformer-24-randaug-pruned  model does not report an error when loaded
Environment:
dghs-imgutils Version: 0.6.0

I've found a similar issue:https://github.com/huggingface/optimum/issues/1796

well, this is highly probably to be an issue of huggingface_hub, not dghs-imgutils.

@narugo1992  This is indeed a bug
But the problem is with from huggingface_hub import HfFileSystem, hf_hub_download
At the moment I only found it in this file https://github.com/deepghs/imgutils/blob/main/imgutils/generic/yolo.py
I found a solution,https://github.com/huggingface/huggingface_hub/issues/2590
Maybe you can use it before calling this function and prevent the exception from happening
I'll submit an example of a change later, but I'm not sure that all the places that contain the call will change

@narugo1992 https://github.com/deepghs/imgutils/pull/115

Before fixing

After the fix


Flakes: also export the common modules?

I have a Lenovo C940 and it's pretty similar to the X1 but still different, and I want to build my own. However, I can't use flakes for that, I can't reach the intel, ssd etc modules.
@Mic92 ?

On Saturday, 25 July, 2020 9:24:40 AM CEST, Wout Mertens wrote:

I have a Lenovo C940 and it's pretty similar to the X1 but
still different, and I want to build my own. However, I can't
use flakes for that, I can't reach the intel, ssd etc modules.

When a flakes reference is coerced to a string, it becomes the
root of the flake repository, and from that you can reference
arbitrary files:
let nh = builtins.getFlake "nixos-hardware";
in [
  (nh + "/common/pc/laptop/ssd")
  (nh + "/common/cpu/intel")
]

Not quite user friendly, but good enough :) should I choose this, or perhaps the readme should be adjusted? (The url is wrong anyway)

@wmertens Yes we can add those. Feel free to open a PR.

I added the possibility to use common/* with flake in https://github.com/NixOS/nixos-hardware/pull/190

@ehmry is what you wrote still possible? When I do builtins.getFlake "nixos-hardware" it complains about impurity.
When I pass inputs in extraArgs on the flake outputs evaluation, I get an infinite recursion when trying to use inputs.

I don't do that anymore, so I'm not sure if it works, but I have been using extraArgs to pass flake inputs to nixos modules, within my flaked configurations.

I'm actually surprised this evaluates, because I forgot to remove nixos-hardware from the function arguments and it still works - are flakes injected by default?

I think its possible put arbitrary named arguments on a module if they are not used.


Not able to load model from Azure Blob Storage

I am trying to load model from Azure Blob Storage. The model-settings.json file is as follows , which is in same directory of models.py :
{
    "name": "multiclass-En",
    "implementation": "models.MulticlassAAll",
    "parameters": {

        "version": "0",
        "uri": "https://dee.windows.net/models/custom_models/model.pt"
    }
}

I have added secrets in models.py as well as Dockerfile (ENV).
When running  GET http://localhost:8002/v2/models/multiclass-En/versions/v0.1.0/ready
getting {"error":"Model multiclass-En with version v0.1.0 not found"} How can I authenticate blob storage and load models from there?

Hey @MLHafizur,
MLServer doesn't handle the download of artefacts from remote buckets. This is left to either the user or "serving engines" like Seldon Core or KServe. In the case of the former, you can check out the following docs for more info on how to configure your storage credentials (also see available options for Azure here):
https://docs.seldon.io/projects/seldon-core/en/latest/servers/overview.html#handling-credentials
You can also check out the following end-to-end example which walks you through setting up a PersistentVolume to interact with Azure Blob Storage (note that this may be a more advanced setup and may not be required for your use case):
https://docs.seldon.io/projects/seldon-core/en/latest/examples/triton_gpt2_example_azure.html


GatewayServer._response_loop of discum error

Happens on both my boths for 2 diff accounts, tried pulling fresh configs and settings it all up.
Full Log:
PS Z:\Git\MudaeAutoBot> python .\MudaeAutoBot.py
File Not Found using Different Method
Default $settings used for channel<PHONE_NUMBER>01318662
File Not Found using Different Method
Default $settings used for channel<PHONE_NUMBER>01318662
Exception ignored in thread started by: <bound method GatewayServer._response_loop of <discum.gateway.gateway.GatewayServer object at 0x000001D4DF537E80>>
Traceback (most recent call last):
File "C:\Users\BlahBlah\AppData\Roaming\Python\Python39\site-packages\discum\gateway\gateway.py", line 299, in _response_loop
func(resp)
File "Z:\Git\MudaeAutoBot\MudaeAutoBot.py", line 763, in on_message
msg = get_server_settings(gid,matched_channel)
File "Z:\Git\MudaeAutoBot\MudaeAutoBot.py", line 189, in get_server_settings
· Prefix: {settings_hope_prefix} ($prefix)
UnboundLocalError: local variable 'settings_hope_prefix' referenced before assignment
This started happening recently like this month.
Any guesses?

It’s saying your files aren’t present for the channel
Sent from my iPhone

On Aug 4, 2022, at 6:33 PM, Dencho @.***> wrote:

Happens on both my boths for 2 diff accounts, tried pulling fresh configs and settings it all up.
Full Log:
PS Z:\Git\MudaeAutoBot> python .\MudaeAutoBot.py
File Not Found using Different Method
Default $settings used for channel<PHONE_NUMBER>01318662
File Not Found using Different Method
Default $settings used for channel<PHONE_NUMBER>01318662
Exception ignored in thread started by: <bound method GatewayServer._response_loop of <discum.gateway.gateway.GatewayServer object at 0x000001D4DF537E80>>
Traceback (most recent call last):
File "C:\Users\BlahBlah\AppData\Roaming\Python\Python39\site-packages\discum\gateway\gateway.py", line 299, in _response_loop
func(resp)
File "Z:\Git\MudaeAutoBot\MudaeAutoBot.py", line 763, in on_message
msg = get_server_settings(gid,matched_channel)
File "Z:\Git\MudaeAutoBot\MudaeAutoBot.py", line 189, in get_server_settings
· Prefix: {settings_hope_prefix} ($prefix)
UnboundLocalError: local variable 'settings_hope_prefix' referenced before assignment
This started happening recently like this month.
Any guesses?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.

No further details given going to close issue as resolved


Empty links by ng2 uiSref directive

From @artaommahe on January 8, 2017 20:16
uiSref directives binds 'null' string to href on provided null or empty string '' state.
current behavior

smth
smth

smth

expected no href attribute (null property value?)

smth

It's required for dynamic links when for some cases href should be empty and link clicks does not trigger any state changes (access rights check e.x.)
Copied from original issue: angular-ui/ui-router#3248

From @artaommahe on January 9, 2017 20:16
Fixed expected result html, due to empty href forced to reload page

I created a PR. But the bug cannot be shown on unit test with PhantomJS (unlike Firefox or Chrome launcher).

None of this is working:

   {{ item.title }}
   {{ item.title }}
   {{ item.title }}

What could I be doing wrong?

Never mind, the problem was my items links which was
[
   { link: '/stores', title: 'Stores' }
]

Just removed the / and all worked.


Typescript generation has failed

Something in the Typescript generation has broken. When running tests on master I'm seeing the following. The _1 suffix seems to imply a typescript import issue:
Running in dev mode.
Exception: "context_1" is not defined. [
  { lineNumber: 16 },
  { lineNumber: 11 },
  { function: 'runAllTests', lineNumber: 15 }
]
ReferenceError

https://github.com/google/clasp/issues/947

I have a fix for this with PR #50
The Google Apps Script "module system" is weird. It seems to just dump all of the exports into the global scope and then comment out the import statements. This mostly works except there are a few cases where GAS bundler doesn't play well with the typescript compiler. When importing a plain function, the typescript compiler will attach it to a temporary object, GAS bundler is unaware of this when it comments out the import statement. Then when the function is called later, it tries to reference the temporary object that isn't there, resulting in the context_1 is undefined error.
To fix this I simply wrapped any function that was being exported in an object. The typescript compiler no longer creates temporary objects and the GAS imports work correctly.
Now the app will run until it hits this error mentioned in Issue #46 "Pricing look ups fail with DNS ERROR "

Nice @niels4, that's great to hear you were able to figure it out!

It was no problem. The trickiest part was trying to wrap my head around how the whole GAS ecosystem works. Just figuring out how to deploy and run the debugger was a bit of a pain. The developer docs you wrote were a big help in started and guiding me in the right direction.


deleteSSHKeyPair(): ProjectId and account/domainId can't be specified together

ISSUE TYPE

Bug Report

COMPONENT NAME

SERVER

CLOUDSTACK VERSION

<IP_ADDRESS>
<IP_ADDRESS>

SUMMARY

A normal user receives and error when trying to delete a SSH Key Pair when a project is selected.
STEPS TO REPRODUCE

1. Log in as normal user.
2. Choose a project from project select bar.
    - Expecting user already has an existing project.
4. Create an SSH key pair.
5. After successful creation, try to delete the key pair.

EXPECTED RESULTS

User should be able to delete a they created.

ACTUAL RESULTS

ERROR MESSAGE:
Request failed. (431)
ProjectId and account/domainId can't be specified together since account/domainid can't be specified with project id with finalizeOwner().

Code Fix
The deleteSSHKeyPair() function does not use projectId.  Set the projectId variable to null for finalizeOwner() to prevent error.
    @Override
    public boolean deleteSSHKeyPair(final DeleteSSHKeyPairCmd cmd) {
        final Account caller = getCaller();
        final String accountName = cmd.getAccountName();
        final Long domainId = cmd.getDomainId();
        final Long projectId = null;
        //final Long projectId = cmd.getProjectId();

        Account owner = null;
        try {
            owner = _accountMgr.finalizeOwner(caller, accountName, domainId, projectId);
        } catch (InvalidParameterValueException ex) {
            if (caller.getType() == Account.Type.ADMIN && accountName != null && domainId != null) {
                owner = _accountDao.findAccountIncludingRemoved(accountName, domainId);
            }
            if (owner == null) {
                throw ex;
            }
        }

        final SSHKeyPairVO s = _sshKeyPairDao.findByName(owner.getAccountId(), owner.getDomainId(), cmd.getName());
        if (s == null) {
            final InvalidParameterValueException ex = new InvalidParameterValueException(
                    "A key pair with name '" + cmd.getName() + "' does not exist for account " + owner.getAccountName() + " in specified domain id");
            final DomainVO domain = ApiDBUtils.findDomainById(owner.getDomainId());
            String domainUuid = String.valueOf(owner.getDomainId());
            if (domain != null) {
                domainUuid = domain.getUuid();
            }
            ex.addProxyObject(domainUuid, "domainId");
            throw ex;
        }
        annotationDao.removeByEntityType(AnnotationService.EntityType.SSH_KEYPAIR.name(), s.getUuid());

        return _sshKeyPairDao.deleteByName(owner.getAccountId(), owner.getDomainId(), cmd.getName());
    }

This is same as #7096. It has been fixed by #7100
@damonb123 can you please try with <IP_ADDRESS> ?


[BUG] Godot 4 doesn't have "JavaScript" feature tag anymore.

Describe the bug
I was trying to get the Firebase OAuth working on Godot 4, the desktop build worked fine but the web build failed. Upon inspection I found out that in auth.gd, get_token_from_url() function, the line OS.has_feature('JavaScript') always return false.
To Reproduce
Any implementation of OAuth on web build should fail.
Expected behavior
get_token_from_url() should return the token.
Environment:
Godot 4.2.stable.official
Browser: Chrome, Edge
Additional context
According to the Godot documentation , the tag "JavaScript" has been removed.
I've tried to replace the faulty line with OS.has_feature('web') and it worked, get_token_from_url() is now returning the expected result, and the "Sign in with Google" worked perfectly for my web build. I'm current using this as a workaround.

Well that's a good find! Do you want to open a PR with the fix, or no?

I'm not sure which branch is for godot 3 and which is for godot 4, which is
why I didn't create a PR instead.
On Sat, Jan 27, 2024, 11:05 AM Kyle Szklenski @.***>
wrote:

Well that's a good find! Do you want to open a PR with the fix, or no?
—
Reply to this email directly, view it on GitHub
https://github.com/GodotNuts/GodotFirebase/issues/379#issuecomment-1913117844,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFZBWZ6K4ETFQNONS67NW3TYQTNPRAVCNFSM6AAAAABCNBPV7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGEYTOOBUGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Main is 3.x, and the branch labeled 4.x is for 4.

PR created. #380

Fixed by #380 .


Cannot build no-std with Rust 1.36

When trying to build with Rust 1.36 I ran into the following error for no-std feature. Note no-std builds fine with 1.41. I'm raising this issue in case this effects the upcoming discussion on bumping MSRV.
Or am I just braindead?
cargo +1.36 build --features=no-std
Compiling memchr v2.4.1
Compiling hashbrown v0.8.2
Compiling secp256k1 v0.21.2
error[E0658]: naming constants with `_` is unstable
--> /home/tobin/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.4.1/src/memmem/prefilter/fallback.rs:37:1
|
37 | const _: PrefilterFnTy = find;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54912

error[E0658]: naming constants with `_` is unstable
--> /home/tobin/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.4.1/src/memmem/prefilter/x86/sse.rs:9:1
|
9 | const _: PrefilterFnTy = find;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54912

error[E0658]: non exhaustive is an experimental feature
--> /home/tobin/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.4.1/src/memmem/prefilter/mod.rs:152:1
|
152 | #[non_exhaustive]
| ^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/44109

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `memchr`.
warning: build failed, waiting for other jobs to finish...
error: build failed

I think you need cargo update -p memmem --precise some-older-version

I don't think the msrv policy holds for no-std. AFAIK, we accepted that no-std would raise MSRV because for many embedded usecases, you often need nightly or at least a very recent rustc.

Actually, no_std MSRV is supposed to be 1.47
@tcharding I suggest you try 1.47 and if it works close this.

Oh I didn't realize about the MSRV thing for no-std. This works for 1.41 so closing.


Feature: Code lenses as inlay hints

Motivation
kak-lsp added support for code-lenses relatively recently (See #490). Briefly speaking, the code-lense feature allows you to trigger an action relevant to a particular line of code or otherwise see meta information specific to a source code line sent by the LSP.
Current Status in Kakoune
If a line has a code lens, it receives an annotation of > besides the line number in kakoune. Then you can use <lsp-mode> l to see available code-lenses.
While this works, you explicitly need to ask kakoune for the code lens. Also, many times code lenses are not actions really but (meta) information that language servers want to add to the code. Example of code lens would be the type signature of a function e.g. in ocaml-lsp-server or how many times a function is used (in erlang_ls). In Haskell Language Server, code lenses show information around module imports and so on.
In vscode for instance, ocaml-lsp-server shows the function signatures via code-lens. Example screenshot below (see the code lens above source lines 420, 425, 433 and so on in the slightly smaller font):

What does this PR do?
Currently only the existence of a code lens is known via the availability of a >. It would be great if the code lens was actually shown (similar to vscode) inline with the rest of the source code.
In Kakoune, this would be an inlay hint. Just like types are shown as inlay-hints. We can show code-lenses as inlay hints. This PR accomplishes that.
This is the final result. See the code-lens inlay hints inserted on the lines annotated with > -- these are the inferred type signatures [🔎 ... ].

I personally find this feature quite useful. In languages with Hindley-Milner type inferencing like OCaml you (mostly) don't need to annotate functions with types. This is a double edged sword. It would be useful for us to be able to see the inferred types in Kakoune.
This is useful in a lot of other LSPs also. I can easily see what information and actions are available -- without having to explicitly list them.
Meta
This PR is currently quite basic and gets the job done. If this is deemed a useful feature, I'll be happy to work on the minimum fixes/adjustments required by the maintainer to merge to master. Others can build upon this to add more functionality in subsequent commits. Please let me know what is minimally required.
Issues
If the inlay-hint is big, you can run into mawww/kakoune#4659. However this is a limitation of kakoune and not related to code-lenses or this PR. In fact the same problem arises with long length inferred types inserted as inlay hints.
In closing, I have found this feature useful in many LSPs -- it's good to see the code-lenses inline with code.

Changed the code lens inlay hint to use the emoji 🔎  to make it more clear what the code lens is. Updated the kakoune screenshot above.

You might be wondering, why are the code-lens on the same line? Wouldn't it be better to put on previous line?
Actually I tried putting it on the previous line -- The code lenses can quickly become confusing when you have functions that are not separated by a blank line. You have a situation where the code lens for a function is on the last line of the previous function.
There is another serious issue when the code-lens will simply vanish if last line was blank and the next line has some indentation. Kakoune does not allow applying an inlay hint on a position that does not exist: since the last line is blank you cannot put a code-lens at some indentation level.
TL;DR code lens should be on the same line

TL;DR code lens should be on the same line

for now, yes. Once replace-ranges can insert new lines (or at least insert text past EOL) then we can move them to the last line

I plan to address the feedback items by Monday (July 11) !

(Sorry I will definitely deal with this over the next couple of days as soon as I get some spare cycles!)

I plan to prepare the (hopefully) final set of changes by coming Sunday. I'll also resolve the conflicts.


Switch to using Doctrine migrations and seeds

Switch to using Doctrine migrations and seeds

Instead of seeds I added commands to add a user (and change a user's password).


Watermark comes back in latest WIndows Insider "Canary" build

Strange behavior:  UWD successfully removes the watermark, but the next time the desktop wallpaper is auto-changed the watermark returns -- you can disappear it again by terminating and restarting Windows Explorer.
Never seen this behavior before - UWD has always worked perfectly!

Similar behaviour with UWD here. Using Canary 26016.1012.
The watermark on my computer does not even get to be removed under any condition.

I created a spiritual successor to uwd called uwd2 and it's on my github
https://github.com/reticivis-net/uwd2

THANK YOU so much for rewriting this utility!
You mention on your github that the results don’t persist across restarts – it is for me running x64 Canary v26085.  I will research why, but it may be because my background wallpaper is handled by a utility called “DisplayFusion” and not just Windows…  I dunno 😊
One question:  where does uwd2 cache the debugging symbols locally?
Thanks again!! /jim
From: Melody @.>
Sent: Thursday, March 21, 2024 1:02 PM
To: pr701/universal-watermark-disabler @.>
Cc: LagunaJim @.>; Author @.>
Subject: Re: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
I created a spiritual successor to uwd called uwd2 and it's on my github
https://github.com/reticivis-net/uwd2
—
Reply to this email directly, view it on GitHubhttps://github.com/pr701/universal-watermark-disabler/issues/1#issuecomment-2013587090, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHBINOOLB2RXZWLZYIP4K43YZM4EVAVCNFSM6AAAAABADFBCP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTGU4DOMBZGA.
You are receiving this because you authored the thread.Message ID: @.***>

You mention on your github that the results don’t persist across restarts – it is for me

that's very interesting, considering uwd2 only modifies the running memory of explorer.exe and writes nothing to disk.

One question:  where does uwd2 cache the debugging symbols locally?

I use a Rust crate to auto-generate a path, and it may vary depending on version, but for me it resolves to "C:\Users\%USERNAME%\AppData\Roaming\reticivis\UWD2\data". It doesn't cache the entire PDB file, just the single 32-bit memory location of the function I patch. The filename is a unique identifier that Windows changes when the file i'm patching changes

Thanks for the reply!
All I can tell you is that for me the result persists!!
I’ll try to figure out why and let you know ;)
On Mar 21, 2024, at 4:36 PM, Melody @.***> wrote:

You mention on your github that the results don’t persist across restarts – it is for me
that's very interesting, considering uwd2 only modifies the running memory of explorer.exe and writes nothing to disk.
One question: where does uwd2 cache the debugging symbols locally?
I use a Rust crate to auto-generate a pathhttps://github.com/reticivis-net/uwd2/blob/caf7a06f40770fd80423c0d1e24c86a9bce5477b/src/constants.rs#L5-L9, and it may vary depending on version, but for me it resolves to "C:\Users%USERNAME%\AppData\Roaming\reticivis\UWD2\data". It doesn't cache the entire PDB file, just the single 32-bit memory location of the function I patch. The filename is a unique identifier that Windows changes when the file i'm patching changes
—
Reply to this email directly, view it on GitHubhttps://github.com/pr701/universal-watermark-disabler/issues/1#issuecomment-2014049153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHBINOMJE2P7HY3CFGPL2XLYZNVHPAVCNFSM6AAAAABADFBCP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGA2DSMJVGM.
You are receiving this because you authored the thread.Message ID: @.***>

Hi.  So I figured out the magic I think..
It’s the combination of the old uwd and your new uwd2 that makes it persist!
I can’t uninstall your new one for further testing, but if I apply the old ‘uwd’ and then the new ‘uwd2’ then the watermark is banished permanently (until the next windows build of course).
Let me know if you find that interesting – if you test this yourself and find it valid then perhaps you’ll incorporate the old hack and the new hack together!
Best wishes/jim
From: Melody @.>
Sent: Thursday, March 21, 2024 4:36 PM
To: pr701/universal-watermark-disabler @.>
Cc: LagunaJim @.>; Author @.>
Subject: Re: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
You mention on your github that the results don’t persist across restarts – it is for me
that's very interesting, considering uwd2 only modifies the running memory of explorer.exe and writes nothing to disk.
One question: where does uwd2 cache the debugging symbols locally?
I use a Rust crate to auto-generate a pathhttps://github.com/reticivis-net/uwd2/blob/caf7a06f40770fd80423c0d1e24c86a9bce5477b/src/constants.rs#L5-L9, and it may vary depending on version, but for me it resolves to "C:\Users%USERNAME%\AppData\Roaming\reticivis\UWD2\data". It doesn't cache the entire PDB file, just the single 32-bit memory location of the function I patch. The filename is a unique identifier that Windows changes when the file i'm patching changes
—
Reply to this email directly, view it on GitHubhttps://github.com/pr701/universal-watermark-disabler/issues/1#issuecomment-2014049153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHBINOMJE2P7HY3CFGPL2XLYZNVHPAVCNFSM6AAAAABADFBCP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGA2DSMJVGM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

..if you’d like me to do any testing for you I can do it in clean virtual machines..
From: Jim Dorf
Sent: Thursday, March 21, 2024 7:55 PM
To: pr701/universal-watermark-disabler @.***>
Subject: RE: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
Hi.  So I figured out the magic I think..
It’s the combination of the old uwd and your new uwd2 that makes it persist!
I can’t uninstall your new one for further testing, but if I apply the old ‘uwd’ and then the new ‘uwd2’ then the watermark is banished permanently (until the next windows build of course).
Let me know if you find that interesting – if you test this yourself and find it valid then perhaps you’ll incorporate the old hack and the new hack together!
Best wishes/jim
From: Melody<EMAIL_ADDRESS>Sent: Thursday, March 21, 2024 4:36 PM
To: pr701/universal-watermark-disabler<EMAIL_ADDRESS>Cc: LagunaJim<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
You mention on your github that the results don’t persist across restarts – it is for me
that's very interesting, considering uwd2 only modifies the running memory of explorer.exe and writes nothing to disk.
One question: where does uwd2 cache the debugging symbols locally?
I use a Rust crate to auto-generate a pathhttps://github.com/reticivis-net/uwd2/blob/caf7a06f40770fd80423c0d1e24c86a9bce5477b/src/constants.rs#L5-L9, and it may vary depending on version, but for me it resolves to "C:\Users%USERNAME%\AppData\Roaming\reticivis\UWD2\data". It doesn't cache the entire PDB file, just the single 32-bit memory location of the function I patch. The filename is a unique identifier that Windows changes when the file i'm patching changes
—
Reply to this email directly, view it on GitHubhttps://github.com/pr701/universal-watermark-disabler/issues/1#issuecomment-2014049153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHBINOMJE2P7HY3CFGPL2XLYZNVHPAVCNFSM6AAAAABADFBCP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGA2DSMJVGM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Ok, upon further testing what I've found is that running the old uwd DOES help the watermark not to come back after certain triggers.
When I implement old uwd and then new uwd2 I can restart explorer without the watermark returning.
If I don't implement old uwd and only use uwd2 then I find the watermark returns on every change in desktop background.  WITH old uwd and uwd2 the watermark does not return on background changes.
So the script I run after every windows rev update to tweak things will continue to implement old uwd, and my login script will additionally now run uwd2.
You rock!! /jim
From: Jim Dorf
Sent: Thursday, March 21, 2024 7:56 PM
To: pr701/universal-watermark-disabler @.***>
Subject: RE: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
..if you'd like me to do any testing for you I can do it in clean virtual machines..
From: Jim Dorf
Sent: Thursday, March 21, 2024 7:55 PM
To: pr701/universal-watermark-disabler<EMAIL_ADDRESS>Subject: RE: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
Hi.  So I figured out the magic I think..
It's the combination of the old uwd and your new uwd2 that makes it persist!
I can't uninstall your new one for further testing, but if I apply the old 'uwd' and then the new 'uwd2' then the watermark is banished permanently (until the next windows build of course).
Let me know if you find that interesting - if you test this yourself and find it valid then perhaps you'll incorporate the old hack and the new hack together!
Best wishes/jim
From: Melody<EMAIL_ADDRESS>Sent: Thursday, March 21, 2024 4:36 PM
To: pr701/universal-watermark-disabler<EMAIL_ADDRESS>Cc: LagunaJim<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [pr701/universal-watermark-disabler] Watermark comes back in latest WIndows Insider "Canary" build (Issue #1)
You mention on your github that the results don't persist across restarts - it is for me
that's very interesting, considering uwd2 only modifies the running memory of explorer.exe and writes nothing to disk.
One question: where does uwd2 cache the debugging symbols locally?
I use a Rust crate to auto-generate a pathhttps://github.com/reticivis-net/uwd2/blob/caf7a06f40770fd80423c0d1e24c86a9bce5477b/src/constants.rs#L5-L9, and it may vary depending on version, but for me it resolves to "C:\Users%USERNAME%\AppData\Roaming\reticivis\UWD2\data". It doesn't cache the entire PDB file, just the single 32-bit memory location of the function I patch. The filename is a unique identifier that Windows changes when the file i'm patching changes

Reply to this email directly, view it on GitHubhttps://github.com/pr701/universal-watermark-disabler/issues/1#issuecomment-2014049153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHBINOMJE2P7HY3CFGPL2XLYZNVHPAVCNFSM6AAAAABADFBCP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGA2DSMJVGM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


Omit potentially sensitive information from logs on Non-Apple platforms by default

We currently log potentially sensitive information (like your source code) by default on Non-Apple platforms.
https://github.com/swiftlang/sourcekit-lsp/blob/cc8ce97cca2f0c54ccf1a05aef433185ff982268/Sources/SKLogging/NonDarwinLogging.swift#L41-L46
We should match the two platforms and omit this information by default. Also, we should add an option to SourceKitLSPOptions that determines the log level and privacy level used on by NonDarwinLogger.

Synced to Apple’s issue tracker as rdar://132525691


ARROW-2877: [Packaging] crossbow submit results in duplicate Travis CI build

Codecov Report

Merging #2296 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2296      +/-   ##
==========================================
+ Coverage   84.29%   84.31%   +0.02%
==========================================
  Files         292      292
  Lines       44559    44559
==========================================
+ Hits        37562    37572      +10
+ Misses       6966     6960       -6
+ Partials       31       27       -4

Impacted Files
Coverage Δ

go/arrow/math/uint64_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/float64_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/memory/memory_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/int64_sse4_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/uint64_amd64.go
33.33% <0%> (ø)
:arrow_up:

go/arrow/math/int64_amd64.go
33.33% <0%> (ø)
:arrow_up:

go/arrow/math/float64_amd64.go
33.33% <0%> (ø)
:arrow_up:

go/arrow/math/math_amd64.go
36.84% <0%> (+5.26%)
:arrow_up:

go/arrow/memory/memory_amd64.go
42.85% <0%> (+14.28%)
:arrow_up:

go/arrow/math/float64_avx2_amd64.go
100% <0%> (+100%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

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


Blue dates, schedule and address on iOS

Hi people, again me! (sorry haha)
I have a problem with blue colors in dates, schedule and address.
The problem is in some Iphone and Outlook Mac.
How can i solve the problem?
I tried with <span style="text-decoration: none; color: red;"> but not working.

Thanks again!!

Hi !
You can use the solution mentioned here : https://github.com/mjmlio/mjml/pull/511#issue-102894396

@iRyusa thanks!! you always save me! works perfectly.
I searched in google but nothing works but i have read your post, and it works!!.  In all my litmus test disappear the blue color :) :).
THANKS!


Fixes #3 by not handling s3 errors for non-existent files and not attempting to download non-existent files

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Repo link points to outdated docs

The link next to the repo description points to https://docs.rs/miow/0.1.5/x86_64-pc-windows-msvc/miow/
You can change it to https://docs.rs/miow/*/x86_64-pc-windows-msvc/miow/ to have it update automatically

Updated; thanks heaps!


How to specify Output Class in Process Builder

Hi,
How do I specify an the field to Output to in the 'Calculate Business Hours' class when called from a Process Builder
I have specified my inputs, but there doesn't appear to be an area for setting which field should be updated
Thanks

Hi @neilascott, thanks for reaching out.
Invocable Actions are shared between Process Builder and Flow Builder.
Unfortunately Process Builder does not support output for actions. This means that you can only use the calculate business hours actions in a Flow.

I'm sorry for the confusion but there's - sadly - no way to disable the action in Process Builder.


set default scale 1.0

When I don't add scale parameter, pdf would not download.
Added a default value 1.0

Thanks for your PR. :)


Add Calico Enterprise marketing doc

Part of new initiative to add CE upsell content to OS:

Merge ASAP
Reviewed by Alex and Andy
Known side effect that folder will automatically merge into TSEE docs
Known side affect that we need new {{site.prodname}} to differentiate between OS and CE

Deploy preview for calico ready!
Built with commit 86324a24c22044434f1134b8da3f7632fbe2fe50
https://deploy-preview-3061--calico.netlify.com

Deploy preview for calico ready!
Built with commit 43efb01a1a81fd0203d36c190e9d320e41a3a85d
https://deploy-preview-3061--calico.netlify.com

Deploy preview for calico ready!
Built with commit c045d5cf176fd02f84b4549c549873e6c52446a7
https://deploy-preview-3061--calico.netlify.com

Deploy preview has some issues currently.  e.g. The link from the left nav for the new page is https://deploy-preview-3061--calico.netlify.com/master/security/calico-enterprise/network-visibility is a 404


WIP: Data semantics

Data semantics
More detailed explanation of the Data Semantics is here.
Objectives

[ ] implement data semantics for all types
[ ] tighten the API's
[ ] revisit methods and determine where behaviour is needed

Codecov Report

Merging #10 into master will increase coverage by 0.88%.
The diff coverage is 74.62%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage    80.6%   81.49%   +0.88%
==========================================
  Files          10       10
  Lines        1026     1005      -21
==========================================
- Hits          827      819       -8
+ Misses        158      144      -14
- Partials       41       42       +1

Impacted Files
Coverage Δ

phono.go
50.84% <0%> (+6.07%)
:arrow_up:

pipe/runner.go
70.58% <100%> (ø)
:arrow_up:

track/track.go
96.69% <100%> (+1.57%)
:arrow_up:

pipe/state.go
68.96% <68.96%> (ø)

pipe/pipe.go
85.2% <93.61%> (+6.55%)
: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 cd3b986...e037c4e. Read the comment docs.


eqMac2 crashes after mac wakes up from sleep mode

All the times I wake up my mac I need to restart eqMac2 because it doesn't provide any sound through the headset, additionally, exactly after wake up if I click in the icon (in the top bar) it closes automatically.
I'll be glad to provide all of the information you might need.
Right now the OS version is: macOS High Sierra, version 10.13.3

Same problem here. Are you, by any chance, using a bluetooth headset?
I assume it reconnects on wake and then causes problems for eqMac, as descirbed here #117 .
Would also like this to be fixed :)
Cheers
Slawa

Might be related to that issue, however I use a USB headset.

I too use a USB audio adapter, and if that is selected as the output when I close my lid, the app crashes when I open UI after waking the system.

Also have this issue and using a FiiO DAC (https://www.amazon.com/FiiO-E10K-Headphone-Amplifier-Black/dp/B00LP3AMC2)

First of all, I would like to apologize for the lack of communication and responses to the current issue and all other issues in general.
I have made a conscious decision to focus most of my free time and focus on developing a more modern and new version of "eqMac". This means that I can't spend too much time looking back at old codebase and trying to make every user happy. This was the main reason I made this repository open-source, in hopes that other developers might help to sort out some issues and iron out all the bugs. Unfortunately, there are very few developers that are proficient in Core Audio and Objective-C or maybe they are just not interested in this repo, which I can understand.
I promise that the next version will be much more polished and I will make some sort of a mainstream system were solving issues will be very easy and quick. Just sit tight and wait for a new release this coming summer.
Thank you to everyone who gave "eqMac2" a try and I hope I won't disappoint you next time :)
Heres a sneak peak of the UI I am currently working on:

I've been experiencing the same issue as above, but with one more caveat. When my application crashes, the regular system volume defaults to 100%. This has really been a troublesome knee-jerk because max volume on headphones is a bit painful to endure. Maybe this can be addressed in the next release?

How is eqMac 3 coming along? I am experiencing this issue on a daily basis and would love to either get a fix, or the new version.

Yeah, get the same issue. And one more thing. Won't create a new thread cause @nodeful is on the new version, but may be you should thing of it while building it :)
After switching off (and => disconnecting) bluetooth headset while watching live video streaming, the video and sound become twitching every second. So hard that the video lags too. After quiting eqMac the problem with video and sound resolves.
Catch some bucks and likes from me, waiting for 3.0 :)

also regularly experiencing crashes when wake from sleep.

I have the same issue.  Bluetooth headphones are usually connected.  It crashes on wake up every time.

Hey I just encountered the same issue. I had a quick look into the code. found that whenever the computer wakes up from sleep. It calls ->
-(void)wakeUpFromSleep{
    [deviceChangeWatcher invalidate];
    deviceChangeWatcher = nil;

    [EQHost deleteEQEngine];
    [Devices switchToOutputDeviceWithID:[EQHost getSelectedOutputDeviceID]];

    //delay the start a little so os has time to catchup with the Audio Processing
    [Utilities executeBlock:^{
        [self startWatchingDeviceChanges];
    } after:3];
}

You can see that the EQHost is calling deleteEQEngine, which nils the mEngine.
Later this called ->
+(NSArray*)getEQEngineFrequencyGains{
    Float32 *gains = mEngine->GetEqGains();
    int nGains = bandMode.intValue;
    NSMutableArray *convertedGains = [[NSMutableArray alloc] init];
    for(int i = 0; i < nGains; i++){
        [convertedGains addObject: mEngine ? [NSNumber numberWithFloat:gains[i]] : @0];
    }
    return convertedGains;
}

And it crashes at the second line, where it tries to access mEngine but it's nil.
I'm new to this plugin and not sure what exactly it does, maybe someone who knows more about it can answer me?

I'm unfamiliar with the inner workings of eqMac too, but presumably this is
retrieving a list of levels for each frequency that you can play with and
converting it to some other format.
Presumably it's delaying re-initialising mEngine after wake up for the OS
to catch up but then calling a method that requires mEngine anyway instead
of waiting.
I've never contributed to Open Source software before, I suppose it
couldn't hurt to have a play!
On Thu, 7 Feb 2019 at 04:54, Tony Lin<EMAIL_ADDRESS>wrote:

Hey I just encountered the same issue. I had a quick look into the code.
found that whenever the computer wakes up from sleep. It calls ->
-(void)wakeUpFromSleep{
[deviceChangeWatcher invalidate];
deviceChangeWatcher = nil;
[EQHost deleteEQEngine];
[Devices switchToOutputDeviceWithID:[EQHost getSelectedOutputDeviceID]];

//delay the start a little so os has time to catchup with the Audio Processing
[Utilities executeBlock:^{
    [self startWatchingDeviceChanges];
} after:3];

}
You can see that the EQHost is calling deleteEQEngine, which nils the
mEngine.
Later this called ->
+(NSArray*)getEQEngineFrequencyGains{
Float32 *gains = mEngine->GetEqGains();
int nGains = bandMode.intValue;
NSMutableArray *convertedGains = [[NSMutableArray alloc] init];
for(int i = 0; i < nGains; i++){
[convertedGains addObject: mEngine ? [NSNumber numberWithFloat:gains[i]] : @0];
}
return convertedGains;
}
And it crashes at the second line, where it tries to access mEngine but
it's nil.
I'm new to this plugin and not sure what exactly it does, maybe someone
who knows more about it can answer me?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nodeful/eqMac2/issues/134#issuecomment-461288072, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmBNpbQEM64WGzNMFAJwuRKp0_mNGbwks5vK7F-gaJpZM4Se2XU
.

--
-m@

Hey everyone. Excuse me for the lack of updates. I have been really busy on the new version of eqMac. I am happy to announce an open beta release.
You can download it here: https://eqmac.app
There are a lot of known bugs that I could not fix just yet:

Driver not installing from the first try. Sometimes need to restart eqMac a couple times.
Complex Device switching logic is not perfect (for example when switching off the device that's currently playing, plugging in new device etc.)
UI takes long to load (a lot can be done to improve that)
UI dimensions are not synching properly
There's a noticeable audio delay in the playback, so not suitable for video yet (I know where the problem lies just haven't had the time to fix yet)
Sometimes the playback doesn't start, in that case please try to switch the output to the device you want and eqMac should try and build the audio pipeline again.

So as you can see there's still some work to be done but at least it's a completely modern tech stack that I am fully willing to work on: 100% Swift, User Space driver and a Web UI, instead of C++, Kernel Drivers. As I said, should work on Catalina and should not have any pesky ear drum blasting volume bugs (at least I didn't come across any).
I'm open to feedback and issue reports here: https://github.com/bitgapp/eqmac
That repo will become the main repo for eqMac and this repo will be archived eventually.
And yes it's called just eqMac, not eqMac3 :) And it will stay that way forever.

Hey everyone 👋
I will be open sourcing the new version of eqMac, therefore, I am closing this issue and repository as I will be transfering nodeful/eqMac2 repo to bitgapp/eqMac
Please bear with me for the next couple of days as I setup that new repo. The eqMac2 code will be living in the old-eqMac2 branch if anyone is interested in referencing it for whatever reason.
Please try out the new version and report bugs to the new repo.
Thanks for using eqMac.

Moving the discussion of this issue to #227


Update controller-runtime

I think the failures are because we aren't using go 1.16

There is no ubi-8 image for golang 1.16 - it's why I didn't upgrade to it yet

Closing as newer PR covers


:white_check_mark: Add more math unit tests

:warning: I'm still questioning types used in certain places... but this patch should be ready for merging without changing anything related to execution

LGTM


Maybe there is a better plugin manager.

Fews days ago, I found vim-plug, and it can lazy-load vim plugins which make vim opened quicker.

i will try that later

I have test, it's ok, but need modify some setting!
@Kermit95
you can see me .vimrc.plug

vimrc:  https://github.com/DaSea/vimrc/blob/master/.vimrc
main modify:  from 167 to 229 line!
.vimrc.vimplug:  https://github.com/DaSea/vimrc/blob/master/.vimrc.vimplug
because vim-plug's  feauture, autoload function can't identify before load all plugin, so I add init function for some plugin!


Why VQ-Wav2vec extracted feature length not match to wav_length//stride_size?

Hello,
I found the length of features extracted from VQ-Wav2vec is not equal to wav_length//stride_size.
As mentioned in the paper, stride_size is 10ms (160), window_size is 30ms (480).
Is there any way to make the extracted features have the length of wav_length//160?
Because it will be helpful to align VQ features to phone labels or other framewise labels.
I tried to pad wav with 240 at each side, but it is not a solution.
Thanks

Sorry, I don't understand your question -- can you provide an example? What do you mean by "length of features extracted from VQ-Wav2vec is not equal to wav_length//stride_size"?

I think this is related to the issue @unilight once asked me, that even if you give vq-wav2vec a 16000-sample waveform, it does not give you 16000 / 160 = 100 timestamp representation. We found out this is due to the Conv feature extractor in vq-wav2vec (or the entire wav2vec series) does not have proper padding, so that the trailing waveform samples (which can't form an entire window) are dropped and lead to fewer timestamps for some utterances.


Update copy with product/role names; update role descriptions

@sandersonet - as mentioned, this is not tested (Watchman is unavailable and ember test is just hanging for me... 🤔 )

Thanks :+1:


Portfolio: Mobile Version milestone

Mobile Version finished!!
The mobile front page has been completed except for the contact form and the expanded articles.
Project Requirements:

Now you will build the middle section of the mobile website. We included a screenshot of Template 1 below for reference, but you should stick to the template that you chose. These sections of the mobile website should include:

The "Works" section.
The "About myself" section (placed after the projects and before the contact form).

To layout the elements in the "Works" section, you should use CSS Grid and Flexbox combined (it is mandatory that you use both). Use CSS Grid in the main container that contains all of the cards and use Flexbox to lay out an individual card.
Please use ul and li for categories in the "Work" section. HTML, CSS, and JavaScript should be list items.
Please use ul and li for categories in the "About myself" section. Languages, Frameworks, and Skills should be list items.
You don't need to implement the detail modal window that requires JavaScript.
You must stick to the design as much as possible (e.g., font, colors, images, tests, margins) using the templates in Figma.
Implement the button interactions (enable, hover, etc.).

I've addressed all the necessary changes completely except for this comment (I've explained why in the replies).

Even though my code has been approved I didn't have the chance to submit it last week so I'm asking for a new code review just to be able to submit it.


rq_ metrics are not collected by the exporter

The below metrics are not collected by the exporter
rq_workers | Gauge | name, queues, state | RQ workers
rq_jobs | Gauge | queue, status | RQ jobs by queue and status
rq_workers_success_total | Counter | name, queues | Successful job count by worker
rq_workers_failed_total | Counter | name, queues | Failed job count by worker
rq_workers_working_time_total | Counter | name, queues | Total working time in seconds by worker

Debug logs of the container:
[2023-12-01 18:33:56] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:33:56] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished
[2023-12-01 18:33:56] [rq_exporter] [INFO]: Serving the application on <IP_ADDRESS>:9726
[2023-12-01 18:34:00] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:34:00] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished
[2023-12-01 18:34:04] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:34:04] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished
[2023-12-01 18:34:14] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:34:14] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished
[2023-12-01 18:34:15] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:34:15] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished
[2023-12-01 18:34:24] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:34:24] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished
[2023-12-01 18:34:30] [rq_exporter.collector] [DEBUG]: Collecting the RQ metrics...
[2023-12-01 18:34:30] [rq_exporter.collector] [DEBUG]: RQ metrics collection finished

Metrics exposed by the exporter
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 258.0
python_gc_objects_collected_total{generation="1"} 268.0
python_gc_objects_collected_total{generation="2"} 0.0
# HELP python_gc_objects_uncollectable_total Uncollectable objects found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0
# HELP python_gc_collections_total Number of times this generation was collected
# TYPE python_gc_collections_total counter
python_gc_collections_total{generation="0"} 65.0
python_gc_collections_total{generation="1"} 5.0
python_gc_collections_total{generation="2"} 0.0
# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="3",minor="8",patchlevel="17",version="3.8.17"} 1.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 2.58596864e+08
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 3.0138368e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.70145563537e+09
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.19
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 7.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.048576e+06
# HELP rq_request_processing_seconds Time spent collecting RQ data
# TYPE rq_request_processing_seconds summary
rq_request_processing_seconds_count 22.0
rq_request_processing_seconds_sum 0.03231144789606333
# HELP rq_request_processing_seconds_created Time spent collecting RQ data
# TYPE rq_request_processing_seconds_created gauge
rq_request_processing_seconds_created 1.7014556361013677e+09
# HELP rq_workers RQ workers
# TYPE rq_workers gauge
# HELP rq_workers_success_total RQ workers success count
# TYPE rq_workers_success_total counter
# HELP rq_workers_failed_total RQ workers fail count
# TYPE rq_workers_failed_total counter
# HELP rq_workers_working_time_total RQ workers spent seconds
# TYPE rq_workers_working_time_total counter
# HELP rq_jobs RQ jobs by state
# TYPE rq_jobs gauge

Using latest docker image

It seems that you don't have any workers running and there are no jobs enqueued, this is the initial state when there are no metrics to display.
Take a look at the docker-compose.yml file for a complete example, you can start an example dev environment using docker compose up.

Thanks. I would expect it to show metric but with a value of 0 if there are
no jobs enqueued ?
On Sat, 2 Dec 2023 at 5:54 PM, Pierre Mdawar @.***>
wrote:

It seems that you don't have any workers running and there are no jobs
enqueued, this is the initial state when there are no metrics to display.
Take a look at the docker-compose.yml
https://github.com/mdawar/rq-exporter/blob/master/docker-compose.yml
file for a complete example, you can start an example dev environment using docker
compose up.
—
Reply to this email directly, view it on GitHub
https://github.com/mdawar/rq-exporter/issues/33#issuecomment-1837136352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJKLW7JVNUOBSV5ZKG6Y65DYHMMYBAVCNFSM6AAAAABADHNX52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGEZTMMZVGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

The Prometheus client automatically exports a 0 value for metrics without labels, all the metrics that you referred to have labels and are only exported when the data is available.

Thanks a lot. I will test this on production and let you know.
On Sat, 2 Dec 2023 at 6:24 PM, Pierre Mdawar @.***>
wrote:

The Prometheus client automatically exports a 0 value
https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics
for metrics without labels, all the metrics that you referred to have
labels and are only exported when the data is available.
—
Reply to this email directly, view it on GitHub
https://github.com/mdawar/rq-exporter/issues/33#issuecomment-1837142216,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJKLW7MEHV535U4J775R6EDYHMQJZAVCNFSM6AAAAABADHNX52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGE2DEMRRGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

were you able to fix it?


Adjust for the recent CP rebalancing

Niantic has recently rebalanced Pokemon strengths, breaking IV calculation.
This updates the Attack/Defense base stats to the new values (HP is unchanged).

Yay, thank you :)


chore: Update gulp-inline-ng2-template

gulp-inline-ng2-template now allow to you to process templates and styles.

I guess the rulesDirectory needs to be specified. It is strange that AppVeyor didn't complain before.


APR Sources path and encoding.h

OS: CentOS 6.5 minimal
Apache 2.2.15

I run #cmake .
Then i try to #make, but it can't find APR sources.
Question is: how can i set path to it for cmake?
Package apr-devel installed and mod_ruby for apache1 makes fine.
As i noticed, ./include/apr.h try to include apr-1.0/*.h, but on CentOS it has name apr-1/*.h
So, i correct it and #make again and...
face with mod_ruby/src/ruby.cpp:2:27: error: ruby/encoding.h: No such file or directory
So:

root@rabbit-6 mod_ruby]# ls ./src/ruby/
modruby  modruby.rb

So, where i can find encoding.h ?
find / -regex '.*encoding.h' puts nothing...
I see, that last commit was 7 month ago, but i can make Issue, innit?)
PS: Sorry for my english

Sorry -- I need to modify the CMakeLists.txt file to build on CentOS. For now you can edit the config/debian/settings.cmake and modify the line:
SET(APR_ROOT "apr-1.0")
to
SET(APR_ROOT "apr-1)
And that should do it.


Update data-loss-prevention-policies.md

update since this limitation no longer applies

@chrfox please review and merge

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@chrfox Please merge this PR. Thanks


99 add back auto collector

it's back and (sort of) working! the text alignment could be a little better but I'm not too sure how I could do that right now though.

it's back and (sort of) working! the text alignment could be a little better but I'm not too sure how I could do that right now though.

Do you have a screenshot of how it looks right now?

Do you have a screenshot of how it looks?


Add deployment helper

PTAL
@jhendrixMSFT @marstr

A more general comment, this creates some data structures but doesn't actually do anything in Azure.  Do we need another method that simply takes a template file and deploys it in Azure?


Added more pdo tests to verify different error conditions

Coverage increased (+0.1%) to 73.335% when pulling 13f3d1e62c730769d2a02c73fa76fa47e8e6ac02 on yitam:newPDOtests into c5b6540498e8828621ac5aa2c37c6f1392bd9950 on Microsoft:dev.

Codecov Report

Merging #984 into dev will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #984      +/-   ##
==========================================
+ Coverage   81.31%   81.45%   +0.14%
==========================================
  Files          25       25
  Lines        7787     7787
==========================================
+ Hits         6332     6343      +11
+ Misses       1455     1444      -11

Impacted Files
Coverage Δ

...x86/php-7.1.28-src/ext/sqlsrv/shared/core_stmt.cpp
86.25% <0%> (-0.48%)
:arrow_down:

...php-7.1.28-src/ext/pdo_sqlsrv/shared/core_stmt.cpp
79.43% <0%> (+0.75%)
:arrow_up:

...c14/x86/php-7.1.28-src/ext/pdo_sqlsrv/pdo_stmt.cpp
85.83% <0%> (+1.74%)
: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 c5b6540...4673e2a. Read the comment docs.


syscall: RawSyscall should panic on solaris

As noted in #20832, RawSyscall should panic on solaris as raw system calls are never actually possible on Solaris.
From syscall_solaris.go:
// This is syscall.RawSyscall, it exists to satisfy some build dependency,
// but it doesn't work correctly.
//
// DO NOT USE!
//
// TODO(aram): make this panic once we stop calling fcntl(2) in net using it.
func syscall_rawsyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) {

From syscall/exec_solaris.go:
// We call hand-crafted syscalls, implemented in
// ../runtime/syscall_solaris.go, rather than generated libc wrappers
// because we need to avoid lazy-loading the functions (might malloc,
// split the stack, or acquire mutexes). We can't call RawSyscall
// because it's not safe even for BSD-subsystem calls.

Any existing use of RawSyscall should be excised first, and then it should be changed to panic on Solaris.
This is definitely for 1.10+

I'm an old Solarii from the ABI team who "owned" the standard libraries, if I can help with this, loop me in.


Working with Alexa skills

@keithwhor I originally was getting the same error as @cottonsean but then I changed the package.json to use the library used in the hackernoon example. When I tried to run the command lib . /nameofintent/, it gave me this:

However, I was able to move the two files in the main folder and into it's parent's directory, and the command ran smoothly, giving the correct output. However, this would then not allow me to upload to the cloud, and then once I changed the files to be back int he main folder, it would upload but the program wouldn't run. Any chance that the documentation could be updated/there be a new tutorial posted that works with the faaslang spec?

Hey @alexcaulfield,
Unfortunately we haven't had a chance to update the Alexa template and our docs yet to our new standard, but it'll be soon! I apologize for the inconvenience -- we'll keep you posted.
Jacob

Hey @alexcaulfield and @cottonsean -
We've updated our Alexa template as of https://github.com/stdlib/utils.templates/commit/dd6ad787cbf5f38a6f6fffc7ba898bb796b3815c.
We've also updated the Alexa Skills tutorial to match it - https://hackernoon.com/build-an-alexa-skill-in-7-minutes-flat-with-node-js-and-stdlib-70611f58c37f
Let me know if you have any more problems! Try creating from a fresh template. :)


Compilers: Note Microsoft compiler's _MSC_VER also defined by Intel

Intel's compiler defines _MSC_VER on Windows.
Ref: https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/macros/additional-predefined-macros.html
Closes #xxxx

Intel's compiler likes to impersonate other compilers apparently so I added a note that the user can check for __INTEL_COMPILER. Complicating this further is that Intel has a compiler option that will omit the Intel compiler defines such as __INTEL_COMPILER because ... why not? I did not add that as a note.

Can you add a link to the documentation? Also, documentation notes about _MSC_FULL_VER being defined as well.
As far as I know, it's because Intel used Edison Design Group's C++ frontend, which kinda implements MSVC and GCC extensions and therefore has the option to "impersonate" them.


Add scripts for debugging org structure

This adds two scripts: one for printing the
edges from a node to its descendants (using
depth-first search), and one for printing
the edges from a dashboard to its root
ancestor.
These should help us debug issues with the
organisation graph.

I think I'm not running this correctly. Getting ImportError: No module named stagecraft.apps.dashboards.models. Could you add something to the readme?

Done. Also added a test for the new function on organisation, as it might get used elsewhere.


DC-620: Add tdrSyncPermissions flag to import request

https://broadworkbench.atlassian.net/browse/AJ-651
For RADx (and future programs!), we need to tell import service whether or not to sync permissions for TDR snapshots that we export. This change adds the param.
https://user-images.githubusercontent.com/8800717/208734886-d6513d54-1de7-452c-b0e1-b3c41267d710.mov

run-workflow is currently failing on all PRs, but the branch passes tests locally.

I can't approve through the github UI since I opened the PR, so this is my approval :)


[WIP] Allow crates to opt-in to building a single target

Based off of #532, but backwards compatible.
Motivation: If crates are only built on one target, I'd be much more comfortable raising limits on a case-by-case basis (e.g. #608, #616). I would also be more comfortable adding more targets (i.e. not tier 1: #563), since specifying those targets would require setting extra-targets and thereby opting out of all others.

That’s promising news. Thanks for the effort you’ve put into this!

Tested:

[x] Building crates without extra-targets keeps the current behavior (all tier 1 targets)
[x] Building crates with extra-targets = [] only builds on the default target
[x] Building crates with extra-targets = [target] builds on that target as well as the default target
[x] Building crates with extra-targets = [default], i.e. adding the default target to extra targets, is a no-op (same as extra-targets = [])

r? @pietroalbini

Oh, also, at least for now we need to filter the targets to make sure someone doesn't use an unsupported target, and fail the build in that case.

Oh, also, at least for now we need to filter the targets to make sure someone doesn't use an unsupported target, and fail the build in that case.

This is our current behavior for an unsupported default-target:
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr] error[E0463]: can't find crate for `std`
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr]   |
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr]   = note: the `x86_64-pc-windows-gnu` target may not be installed
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr]
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr] error: aborting due to previous error
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr]
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr] For more information about this error, try `rustc --explain E0463`.
2020/03/07 12:51:25 [INFO] rustwide::cmd: [stderr] error: Could not document `hexponent`.

Our behavior for an unsupported extra-target is the same, I think it doesn't need to be handled explicitly.

Addressed review comments.

Our behavior for an unsupported extra-target is the same, I think it doesn't need to be handled explicitly.

Keep in mind that we only show the build log of the default target, so users wouldn't be able to see those errors.

Keep in mind that we only show the build log of the default target, so users wouldn't be able to see those errors.

Hmm, that does make it harder ... I don't want to fail the default build if one of the targets isn't installed, since that would require publishing a full point release. Maybe we could show a popup on the /crate page that says the target doesn't exist?

Also I plan to make a follow-up PR very shortly which will install targets dynamically so I'm not sure it's worth worrying about.

This is ready for review.

Other than these two comments this looks good to be merged!

Addressed review comments.


how to get the driving command during infering phase?

hi, could you please tell us how to get the driving command during infering phase?

In the open-loop nuScenes setting, driving commands are determined based on the ground truth ego future trajectories (Details see this file). In the closed-loop CARLA setting, navigation information (sparse navigation points and driving commands) is generated through a global navigator.

In the open-loop nuScenes setting, driving commands are determined based on the ground truth ego future trajectories (Details see this file). In the closed-loop CARLA setting, navigation information (sparse navigation points and driving commands) is generated through a global navigator.

hi, in the infering phase, we don't have the ground truth. then how to get the commands?

thank you! do you mean that we have a global route at first. Then in the intersection area for example, we have already knowed the car's direction to go straight or turn left/right. am I right?

thank you! do you mean that we have a global route at first. Then in the intersection area for example, we have already knowed the car's direction to go straight or turn left/right. am I right?

Yes, exactly.


Reverse animation when going from 100 to 0

Hi,
I am using the progress for a minute countdown, and have got the animation working great up until the countdown reaches "full".  When the progress bar gets round to the full position, it then animates backwards to the beginning. What I would like is for when the progress bar is full, the start point will animate round to the end.
Here is a rough example of what I want to achieve: http://preloaders.net/preloaders/287/Filling broken ring.gif
Is this possible? If so then would you be able to help achieve this?
Thanks

Here is an example for you.

I've tried to add your code into my script but I am getting some real issues crashing the browser due to the countdown not letting animations finish.
Here's a bin of roughly what I have
Here you can see the seconds countdown goes backwards when reaching the full point. I would love if the reverse animation code you made could work with this.
Thanks for your help

Try to change:
$('.conference-countdown__circles-seconds').circleProgress('value', seconds);

to:
$('.conference-countdown__circles-seconds').circleProgress('value', 1 - seconds);

I hope I've helped you. I'm closing this ticket, but feel free to reopen.


importing spark-test_2.12 dont work, since there is no typedpath_2.12

spark-test 2.12 library is dependent on typedpath
But there is no typedpath for scala 2.12 on maven.
(only typedpath 2.11 is available)

@michee Thanks for the Issue, a character was missing in the CI, in 5 minutes, it should be published on bintray.com
https://bintray.com/univalence/univalence-jvm/spark-test  - 152

the version is 0.3+152-3fb0ee84


[WIP] Schema inheritance: Define schema in allOf

Closes #732
Tasks:

[x] Implement correct allOf behavior
[ ] Check that code generators still work correctly
[ ] Check dictionary inheritance schema generation

Dictionary inheritance handling
        public class Foo
        {
            public Bar Bar { get; set; }
        }

        public class Bar : Dictionary<string, string>
        {
            public string Baz { get; set; }
        }

Schema (OpenAPI 3)
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Foo",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "Bar": {
      "x-nullable": true,
      "oneOf": [
        {
          "$ref": "#/definitions/Bar"
        }
      ]
    }
  },
  "definitions": {
    "Bar": {
      "allOf": [
        {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "Baz": {
              "type": "string"
            }
          }
        }
      ]
    }
  }
}

Question: In the sample above, how can i decide which one of the schemes in allOf is the base schema (i.e. inherited) when both are inline (no schema is referenced)? When one schema is referenced and one is inline, then the referenced one is the base schema...
Also see my dictionary test in the previous comment...
@darrelmiller Is the generated schema above correct for the given C# code? Can you answer the question in this comment (is there even an answer)?

For reference, there is also oneof inheritance:
https://github.com/RSuter/NJsonSchema/issues/13

Had to revert, because there are still some issues: New PR: https://github.com/RSuter/NJsonSchema/pull/733


refactored to use json file rather than javascript (MERGE FIRST)

This is based on my previous PR that had merge conflicts. The issue was to do with the pokemon.js file which I had deleted but others were already adding to it.
Someone can delete the pokemon.js file eventually as it isn't needed anymore but others might be still using it.
I have refactored the code to use a JSON file rather than a js file. This will help with performance once this file gets larger.
I have also commented out the code in the HTML for the search box and sorting as these don't do anything right now, I could make it work but it would only work for the pokemon inside the JSON file so I would recommend people add it to that file moving forward.

Merging this right away.

Not my call but I would recommend deciding which way to add a pokemon you would like to progress with.


Remove the not-working 'run Update-Help from Get-Help when Get-Help runs for the first time' functionality

PR Summary
Fix #7452
Background about the setting DisablePromptToUpdateHelp:
In Windows PowerShell, DisablePromptToUpdateHelp is a registry key property set at HKLM\SOFTWARE\Microsoft\PowerShell.
It's not really a setting for user to configure PowerShell, but instead, an implementation detail. It's used by Get-Help to tell if Update-Help has been run yet. On a fresh Windows, DisablePromptToUpdateHelp is not set, so Get-Help running in a admin privilege PowerShell session will prompt user to ask if the user wants to run Update-Help to download help content for all the modules in module path. DisablePromptToUpdateHelp then is set to 1 after the prompt (Update-Help will set it to 1 too), so the code that prompt and run Update-Help in Get-Help is guaranteed to execute only once.
This feature never worked in pwsh, because when moving the registry settings to the powershell.config.json file, UpdatableHelpSystem.ShouldPromptToUpdateHelp() was not updated correctly to keep the previous behavior. However, that was not a bad thing because the previous behavior in Windows PowerShell is not appropriate to pwsh anymore:

for powershell.exe, there is only one instance of PowerShell, so the DisablePromptToUpdateHelp key in registry can guarantee the prompt from Get-Help shows up only once.
for pwsh.exe, there can be many instances of PowerShell, and they all depend on their own $PSHOME\powershell.config.json, so even if Update-Help has been run, a new instance of pwsh would still show the prompt when you run Get-Help in it. This is not desirable.

Given the fact that:

this feature never worked in pwsh and there has been no complaint about it;
the feature implementation in Windows PowerShell doesn't work for pwsh

I propose to remove this functionality from pwsh, so as to remove the DisablePromptToUpdateHelp setting from powershell.config.json file (it should never be there as an implementation detail).
If we decide to bring back this functionality to pwsh in future, the implementation definitely needs to be re-written.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

Should we set CL-Breaking label? Formally it is a breaking change.

It's not a breaking change to pwsh. The functionality never worked in pwsh.

How do we mark the difference from Windows PowerShell?

I don't think we have such a label ... There are still codes guarded by #if CORECLR and all those places are essentially differences from Windows PowerShell.
@TravisEz13 @adityapatwardhan how do we keep track of the differences between Windows PowerShell and pwsh?

@daxian-dbw We don't have a method to track those changes

I agree this is not breaking.

My reasoning has always been that when 6.0 version was released, all the differences from Windows PowerShell version was breaking changes (never completely enumerated) and somehow we need to inform users about this.

Then I think that would just be a doc issue.  Breaking changes are to draw attention to breaking change in THAT release.  6.0 being long out of support makes not sense to make a breaking change announcement.


Add a option clear the search input in Leaderboard search

Description
Add a clear the search button so that people can see the full leaderboard after searching specific name.
Screenshots

Additional information
No response

Hey I can work on this , kindly guide me to the leaderboard page as I am unable to find it on the website.

@JawHawk assigned you and go to https://www.clueless.tech/hacktoberfest/leaderboard
You will find the leaderboard

I did the button and its functioning as wanted. Just inform if you want to change the text ( "Clear" ) or anything else. If you have no issues, I will proceed to PR.

I did the button and it is functioning as wanted. Just inform if you want to change the text ( "Clear" ) or anything else. If you have no issues, I will proceed to PR.

@JawHawk The text Clear would work. What we want is after clicking clear not only the text disappears but also the leaderboard resets to all.So that user doesn't have to press search after clearing the input box


'Downloads' in setting not working

Brief summary
Not working

Steps to reproduce
No response
Vega version
2.4.1
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.

device android version ?

Device: Realme GT Neo 3T
Android: 14

For me it opens a message app.

For me downloads button open notes app

Lol, that's look bad, It should open file explorer.
I will try to fix it in the next update.
until then you can open it manually, downloaded videos are in downloads/vega folder

If possible, make it inside the app. I mean downloaded series and movies are playable from downloads option

One suggestion,
Remove some unwanted websites.
Extramovies

One suggestion, Remove some unwanted websites. Extramovies

why is it not working?

They uses luxmovies, Vegamovies content. Name of the file also contains Vegamovies or luxmovies

One suggestion, Remove some unwanted websites. Extramovies

why is it not working anymore?

Replace Extramovies with https://bollyflix.wales/
Extramovies uses Vegamovies contents and old contents are not available shows blank

I have removed the shortcut for downloading. I will create it again later.

Okay


molecule 5 failing to detect python (obsd)

Issue Type

Bug report

Molecule and Ansible details
After 5.0 release OpenBSD host facts can't detect python https://github.com/charlesrocket/essential-collection/actions/runs/4760987268/jobs/8470507361
Same behavior with ansible_python_interpreter: auto.
WARNING  vagrant driver is not installed is also new, but this is not an issue for fbsd/nbsd.
requirements file:
ansible
ansible-lint
docker
molecule
molecule-plugins[docker]
molecule-plugins[vagrant]
python-vagrant

WARNING: molecule-plugins 23.4.0 does not provide the extra 'vagrant'
Not sure if this is plugin (https://github.com/ansible-community/molecule-plugins/issues/132) or molecule or both.
Desired Behavior
Working test
Actual Behaviour
  fatal: [instance]: FAILED! => {
      "ansible_facts": {},
      "changed": false,
      "failed_modules": {
          "ansible.legacy.setup": {
              "ansible_facts": {
                  "discovered_interpreter_python": "/usr/bin/python"
              },
              "failed": true,
              "module_stderr": "Shared connection to <IP_ADDRESS> closed.\r\n",
              "module_stdout": "/bin/sh: /usr/bin/python: not found\r\n",
              "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error",
              "rc": 127
          }
      },
      "msg": "The following modules failed to execute: ansible.legacy.setup\n"
  }

The warning WARNING  vagrant driver is not installed. is a (broken) warning. It won't prevent things to work.
@MrFreezeex the next error message is "clearer": "Additional properties are not allowed ('lint' was unexpected)". Your issue is that molecule 5.0 remove the lint option so you have to remove it from the molecule.yml file.
@charlesrocket the molecule_vagrant warning should be fixed in git head. There was a missing extra for python-vagrant. Im not sure about why it fails to find python. Can you please provide more details about the python issue ? It may be either molecue/molecule-plugin thing or ansible bug.

@apatard Ny first thought was molecule needs tuning for obsd 7.3 but vagrant box was still on 7.2 at that moment. Then I crossed out old plugin cache and "driver error" since fbsd/nbsd pass with that warning. So now I am not sure what is the root cause since there was codebase changes. Tried switching gather_facts methods but error is still the same (with extra checked locations - auto case). It feels like gather_facts issue since it should work with manual python location. Also fallback acts a bit weird when there is more than one sub dir child to check - probably irrelevant and just needs explicit ordering. I'll try to test more today with fallback/manual to rule out other deps/ports and with 4.x just in case.

Tried to expand fallback to cover setup-python action ops for minor version specified cases but still no success:
  inventory:
    group_vars:
      all:
        ansible_python_interpreter: auto
        ansible_interpreter_python_fallback:
          ['/usr/bin/python',
           '/usr/bin/python3',
           '/usr/local/bin/python',
           '/usr/local/bin/python3',
           '/usr/local/bin/python3.10',
           '/usr/local/bin/python3.11',
           '/usr/pkg/bin/python3']

@charlesrocket can you please provide at least the box used ? This would help me in trying to reproduce the issue

@apatard I am testing with generic/openbsd7 which is 7.2 https://app.vagrantup.com/generic/boxes/openbsd7 with macOS 12 github host
ci job:
  vagrant:
    name: molecule ${{ matrix.distro }}
    runs-on: macos-12
    strategy:
      matrix:
        distro:
          - freebsd13
          - netbsd9
          - openbsd7

    steps:
      - name: Check out the codebase
        uses: actions/checkout@v3

      - name: Set up Python3
        uses: actions/setup-python@v4
        with:
          python-version: '3.x'
          cache: 'pip'
          cache-dependency-path: '**/requirements-dev.txt'
          check-latest: true

      - name: Install dependencies
        run: pip install -r requirements-dev.txt

      - name: Cache Vagrant boxes
        uses: actions/cache@v3
        with:
          path: ~/.vagrant.d/boxes
          key: ${{ runner.os }}-vagrant-${{ matrix.distro }}
          restore-keys: |
            ${{ runner.os }}-vagrant-${{ matrix.distro }}

      - name: Run Molecule
        run: molecule test
        env:
          PY_COLORS: '1'
          ANSIBLE_FORCE_COLOR: '1'
          MOLECULE_DISTRO: ${{ matrix.distro }}

https://github.com/charlesrocket/essential-collection/blob/trunk/.github/workflows/ci.yml
scenario https://github.com/charlesrocket/essential-collection/blob/trunk/molecule/default/molecule.yml

Linux tests are failing now as well with docker plugin missing https://github.com/charlesrocket/essential-collection/actions/runs/4766105601/jobs/8648649610
 molecule-5.0.0 molecule-plugins-23.4.1

So far the only way to get it working is with following deps:
ansible
ansible-compat==3.0.2
ansible-lint
docker
molecule==4.0.4
molecule-docker==2
molecule-vagrant==2
python-vagrant


Local server (Ollama) model discovery does not work? (since 5.1-5.2)

Hello,
I am running local Ollama server with multiple models (Win Obsidian + Win Ollama).
In version 5.0 selecting available models worked, but in latest version (5.2), the plugin reports no models...
Manually reverting main.js; style.css; manifest.json back from 5.0 release, fixed the models discovery.
http://<IP_ADDRESS>:11434/api/tags consistently returns
{
    "models": [
        {
            "name": "llama3.1:latest",
            "model": "llama3.1:latest",
            "modified_at": "2024-07-25T00:01:35.9451235+02:00",
            "size":<PHONE_NUMBER>,
            "digest": "62757c860e01d552d4e46b09c6b8d5396ef9015210105427e05a8b27d7727ed2",
            "details": {
                "parent_model": "",
                "format": "gguf",
                "family": "llama",
                "families": [
                    "llama"
                ],
                "parameter_size": "8.0B",
                "quantization_level": "Q4_0"
            }
        },
        {
            "name": "gemma2:latest",
            "model": "gemma2:latest",
            "modified_at": "2024-07-24T22:54:23.4535771+02:00",
            "size":<PHONE_NUMBER>,
            "digest": "ff02c3702f322b9e075e9568332d96c0a7028002f1a5a056e0a6784320a4db0b",
            "details": {
                "parent_model": "",
                "format": "gguf",
                "family": "gemma2",
                "families": [
                    "gemma2"
                ],
                "parameter_size": "9.2B",
                "quantization_level": "Q4_0"
            }
        }
    ]
}

Hi! Looks like you're using ollama - I recently removed the api/tags endpoint check because Ollama finally supports the typical /v1/models endpoint everyone else uses. Have you updated your Ollama recently?

Though regardless I should still have /api/tags as a fallback, so I will add this back in anyway, but I would like to see if this is the root of the problem and nothing else more complicated so I would love if you confirmed :D

I guess Ollama for Windows (Preview) is not so up-to-date at the moment...
I could run it in WSL2, but I wanted to avoid that :)

Totally understand ya, I'll get the api/tags endpoint going again in the next update :) i'll keep this open until it's done

Same issue with LM Studio 0.2.28.

Interesting. I'll do some thorough testing and get a fix out somewhere in the next 12-24 hours

Might be the same underlying bug as this? https://github.com/SystemSculpt/obsidian-systemsculpt-ai/issues/30#issuecomment-2252480240

Should be fixed now with latest 0.5.3 update :) if not, let me know by re-opening/creating a new issue. Thanks and enjoy!


Only add sender to args is @sender is set

I'm using the Ethereum::HttpClient with an Ethereum RPC url provided by https://infura.io. I'm not running a local Ethereum node at all.
This works well without setting a "from" address, with this patch.
Let me know your thoughts.  I can probably find time to write a test if you approve of the general direction.
Thanks for a great library!

Hm, looks like I broke some existing tests 😞
Anyway, let me know your thoughts on the general direction before I put more effort in...

Hi,
Thanks for commit PR! Would you write a piece of code of what you are trying to accomplish, so I can understand better what you need?
Don't worry about CI - The test blockchain is too big and downloading won't fit into travis timelimit. Completely unrelated topic.
Marek

This is on my mind and I will get back to you on it!  Just been super busy...


⚠ Bofrost.nl has degraded performance

In 837788c, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 8973 ms

Resolved: Bofrost.nl performance has improved in 79910be.


Fix warnings with -Wall enabled

Some warnings pop up when -Wall is enabled. This PR fixes them.

because decided to merge old PR (which is not compatible, it like complete rewrite, done after some tests), now it is not actual,
Many thanks for your investigation in any case. Thank you!


Enable fuzzy tmx compilation

fuzzy.tmx is a file to store sentences already machine translated, but not human reviewed for future reuse.
Since fuzzy.tmx compilation is not enabled by mistake, these sentences are not reused.
This commit enables fuzzy.tmx compilation

Done in https://github.com/quarkusio/es.quarkus.io/pull/210