Can't run numba example functions due to typing issue

Reporting a bug

[x] I have tried using the latest released version of Numba (most recent is
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
[x] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

Before getting into it, here is the versioning for what I'm using

Python 3.10.14
Numba 0.60.0
NumPy 1.24.4

I'm having issues with Numba's behavior on typing within jitted calls. I'm currently trying to write functions that will use Numba for more complicated operations, but I needed to use a logistic regression model. Suffice to say I've also been encountering the bug within other Numba code I wrote for the model and just included the most basic reproducible example, since this comes directly from Numba's examples here.
Namely, I'm getting an error saying no implementation for dot(array(float64, 2d, C), array(float32, 2d, C)) when I try to cast everything as a np.float32 before calling the function. I'm including code to reproduce the bug. You can run yourself to see the issue, but it gives the error as occuring here:
File "bug.py", line 10:
def logistic_regression(Y, X, w, iterations):
    <source elided>
    for i in range(iterations):
        w -= np.dot(((1.0 / (1.0 + np.exp(-Y * np.dot(X, w))) - 1.0) * Y), X)
        ^

Essentially, it just keeps telling me that it's trying to np.dot a float64 and float32, but I have tested, and (1) Y, X, and w are all constructed as np.float32 arrays beforehand (I've even tried aligning them), and (2) I even tried to cast them within the logistic_regression function call before hitting the loop without success.
Any help would be appreciated.
Code for the example is here:
import numpy as np

import numba
from numba import jit, prange, types
from numba.np.extensions import cross2d

@jit(nopython=True, parallel=True)
def logistic_regression(Y, X, w, iterations):
    for i in range(iterations):
        w -= np.dot(((1.0 / (1.0 + np.exp(-Y * np.dot(X, w))) - 1.0) * Y), X)
    return w

@jit(nopython=True)
def expit(alpha, X):
    """
    Compute the logistic sigmoid function.
    Parameters:
    alpha (numpy.ndarray): Coefficient vector.
    X (numpy.ndarray): Input data matrix where each row is a data point.
    Returns:
    numpy.ndarray: The result of applying the logistic sigmoid function to the input data.
    """

    result = np.zeros((X.shape[0],1), dtype=X.dtype)

    for i in range(X.shape[0]):
        result[i] = 1 / (1 + np.exp(-np.sum(alpha * X[i,:])))

    return result

if __name__ == '__main__':
    # Generate some data
    np.random.seed(42)
    n = 2000
    p = 3
    sigma_sq_y = 1
    sigma_sq_z = 1

    print("Generating data...")
    X = np.random.randn(n, p-2)
    X = np.concatenate([np.ones((n, 1)), X], axis=1)
    G = np.random.binomial(2, 0.25, (n, 1))
    X = np.concatenate([X, G], axis=1).astype(np.float32)
    beta = np.random.randn(p, 1)
    Y = X @ beta + np.random.randn(n, 1) * np.sqrt(sigma_sq_y)
    gamma = np.random.randn(1, 1)
    alpha = np.random.randn(1, 1)
    delta = np.random.randn(1, 1)
    # Z = gamma * G + Y * alpha + delta + np.random.randn(n, 1) * np.sqrt(sigma_sq_z)
    z_coef = np.array([gamma, alpha, delta]).reshape(-1, 1).astype(np.float32)
    z_vars = np.concatenate([G, Y, np.ones((n, 1))], axis=1).astype(np.float32)
    R = np.zeros((n, 1), dtype=np.float32)

    for i in range(n):
        R[i] = np.random.binomial(1, expit(z_coef, z_vars[i,:].reshape(1, -1)))

    observed = (R == 1).flatten()

    R = R.astype(np.float32).reshape(-1)
    result = logistic_regression(R, z_vars, np.zeros((z_vars.shape[1], 1), dtype=np.float32), 1000)
    print(result)
    print(z_coef)

System info (excluding packages) is as follows:
System info:
--------------------------------------------------------------------------------
__Time Stamp__
Report started (local time)                   : 2024-11-20 16:17:55.604566
UTC start time                                : 2024-11-20 21:17:55.604580
Running time (s)                              : 9.542788

__Hardware Information__
Machine                                       : x86_64
CPU Name                                      : haswell
CPU Count                                     : 56
Number of accessible CPUs                     : 56
List of accessible CPUs cores                 : 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
CFS Restrictions (CPUs worth of runtime)      : None

CPU Features                                  : 64bit aes avx avx2 bmi bmi2 cmov
                                                crc32 cx16 cx8 f16c fma fsgsbase
                                                fxsr invpcid lzcnt mmx movbe
                                                pclmul popcnt rdrnd sahf sse sse2
                                                sse3 sse4.1 sse4.2 ssse3 xsave
                                                xsaveopt

Memory Total (MB)                             : 515872
Memory Available (MB)                         : 381144

__OS Information__
Platform Name                                 : Linux-5.15.0-125-generic-x86_64-with-glibc2.31
Platform Release                              : 5.15.0-125-generic
OS Name                                       : Linux
OS Version                                    : #135~20.04.1-Ubuntu SMP Mon Oct 7 13:56:22 UTC 2024
OS Specific Version                           : ?
Libc Version                                  : glibc 2.31

__Python Information__
Python Compiler                               : GCC 11.2.0
Python Implementation                         : CPython
Python Version                                : 3.10.14
Python Locale                                 : en_US.UTF-8

__Numba Toolchain Versions__
Numba Version                                 : 0.60.0
llvmlite Version                              : 0.43.0

__LLVM Information__
LLVM Version                                  : 14.0.6

__CUDA Information__
CUDA Device Initialized                       : False
CUDA Driver Version                           : ?
CUDA Runtime Version                          : ?
CUDA NVIDIA Bindings Available                : ?
CUDA NVIDIA Bindings In Use                   : ?
CUDA Minor Version Compatibility Available    : ?
CUDA Minor Version Compatibility Needed       : ?
CUDA Minor Version Compatibility In Use       : ?
CUDA Detect Output:
None
CUDA Libraries Test Output:
None

__NumPy Information__
NumPy Version                                 : 1.24.4
NumPy Supported SIMD features                 : ('MMX', 'SSE', 'SSE2', 'SSE3', 'SSSE3', 'SSE41', 'POPCNT', 'SSE42', 'AVX', 'F16C', 'FMA3', 'AVX2')
NumPy Supported SIMD dispatch                 : ('SSSE3', 'SSE41', 'POPCNT', 'SSE42', 'AVX', 'F16C', 'FMA3', 'AVX2', 'AVX512F', 'AVX512CD', 'AVX512_KNL', 'AVX512_KNM', 'AVX512_SKX', 'AVX512_CLX', 'AVX512_CNL', 'AVX512_ICL')
NumPy Supported SIMD baseline                 : ('SSE', 'SSE2', 'SSE3')
NumPy AVX512_SKX support detected             : False

__SVML Information__
SVML State, config.USING_SVML                 : True
SVML Library Loaded                           : True
llvmlite Using SVML Patched LLVM              : True
SVML Operational                              : True

__Threading Layer Information__
TBB Threading Layer Available                 : False
+--> Disabled due to Unknown import problem.
OpenMP Threading Layer Available              : True
+-->Vendor: GNU
Workqueue Threading Layer Available           : True
+-->Workqueue imported successfully.

__Numba Environment Variable Information__
None found.

__Conda Information__
Conda Build                                   : not installed
Conda Env                                     : 24.4.0
Conda Platform                                : linux-64
Conda Python Version                          : 3.12.3.final.0
Conda Root Writable                           : True

@rlangefe thank you for asking a question on the Numba issue tracker.
You need to cast 1.0 to float32:
import numpy as np

import numba
from numba import jit, prange, types
from numba.np.extensions import cross2d

f32 = types.float32
f1 = f32(1.0)

@jit(nopython=True, parallel=True)
def logistic_regression(Y, X, w, iterations):
    for i in range(iterations):
        w -= np.dot(((f1 / (f1 + np.exp(-Y * np.dot(X, w))) - f1) * Y), X)
    return w

@jit(nopython=True)
def expit(alpha, X):
    """
    Compute the logistic sigmoid function.
    Parameters:
    alpha (numpy.ndarray): Coefficient vector.
    X (numpy.ndarray): Input data matrix where each row is a data point.
    Returns:
    numpy.ndarray: The result of applying the logistic sigmoid function to the input data.
    """

    result = np.zeros((X.shape[0],1), dtype=X.dtype)

    for i in range(X.shape[0]):
        result[i] = 1 / (1 + np.exp(-np.sum(alpha * X[i,:])))

    return result

if __name__ == '__main__':
    # Generate some data
    np.random.seed(42)
    n = 2000
    p = 3
    sigma_sq_y = 1
    sigma_sq_z = 1

    print("Generating data...")
    X = np.random.randn(n, p-2)
    X = np.concatenate([np.ones((n, 1)), X], axis=1)
    G = np.random.binomial(2, 0.25, (n, 1))
    X = np.concatenate([X, G], axis=1).astype(np.float32)
    beta = np.random.randn(p, 1)
    Y = X @ beta + np.random.randn(n, 1) * np.sqrt(sigma_sq_y)
    gamma = np.random.randn(1, 1)
    alpha = np.random.randn(1, 1)
    delta = np.random.randn(1, 1)
    # Z = gamma * G + Y * alpha + delta + np.random.randn(n, 1) * np.sqrt(sigma_sq_z)
    z_coef = np.array([gamma, alpha, delta]).reshape(-1, 1).astype(np.float32)
    z_vars = np.concatenate([G, Y, np.ones((n, 1))], axis=1).astype(np.float32)
    R = np.zeros((n, 1), dtype=np.float32)

    for i in range(n):
        R[i] = np.random.binomial(1, expit(z_coef, z_vars[i,:].reshape(1, -1)))

    observed = (R == 1).flatten()

    R = R.astype(np.float32).reshape(-1)
    result = logistic_regression(R, z_vars, np.zeros((z_vars.shape[1], 1), dtype=np.float32), 1000)
    print(result)
    print(z_coef)

but then it crash with:
 💣 zsh» python issue_9801.py
Generating data...
OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Traceback (most recent call last):
  File "/Users/esc/git/numba/issue_9801.py", line 63, in <module>
    result = logistic_regression(R, z_vars, np.zeros((z_vars.shape[1], 1), dtype=np.float32), 1000)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Sizes of Y, $152call.18 do not match on /Users/esc/git/numba/issue_9801.py (13)

So I guess (1) I've been having that issue as well and wanted to tackle one thing at a time and (2) isn't it a problem if it's not dynamically casting floats to the proper type here during compilation, given the purpose of Numba. This feels like a bug to me.

So I guess (1) I've been having that issue as well and wanted to tackle one thing at a time and (2) isn't it a problem if it's not dynamically casting floats to the proper type here during compilation, given the purpose of Numba. This feels like a bug to me.

Yes, I know what you mean... but how would the compiler know that the user intended 1.0 to be of type float32 and not float64 -- it is a literal value and needs to have a type and that type is float64? If you are casting your operands, you need to cast your literals too, right? I suppose 1.0 could be a float32 by default and then type promotion rules would mean a situation like the above may work, i.e. it would be upcast if the other operands are float64 -- but I am not certain a) that would work, b) is a good idea and c) I can't anticipate any other side-effects of making such a change.

If that is truly the case, then the documentation for Numba here needs to be updated at the very least, since the code comes from Numba docs directly. But the behavior you describe does seem to contradict most of the examples in the docs.

@rlangefe maybe you want to upcast the second argument to dot to be a float64 too, which would be a side-effect of multiplication with the identity:
@jit(nopython=True, parallel=True)
def logistic_regression(Y, X, w, iterations):
    for i in range(iterations):
        w -= np.dot(((1.0 / (1.0 + np.exp(-Y * np.dot(X, w))) - 1.0) * Y), X * 1.0)
    return w

It looks like that will make the code work too.

I took another look at this, and after commenting out the @jit decorator using pure NumPy the code works fine. I am now leaning towards flagging this as a bug in Numba's implementation of np.dot(). Essentially the error:
Generating data...
Traceback (most recent call last):
  File "/Users/esc/git/numba/issue_9801.py", line 61, in <module>
    result = logistic_regression(R, z_vars, np.zeros((z_vars.shape[1], 1), dtype=np.float32), 1000)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/esc/git/numba/numba/core/dispatcher.py", line 424, in _compile_for_args
    error_rewrite(e, 'typing')
  File "/Users/esc/git/numba/numba/core/dispatcher.py", line 365, in error_rewrite
    raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<built-in function dot>) found for signature:

 >>> dot(array(float64, 2d, C), array(float32, 2d, C))

There are 4 candidate implementations:
  - Of which 2 did not match due to:
  Overload in function 'dot_2': File: numba/np/linalg.py: Line 536.
    With argument(s): '(array(float64, 2d, C), array(float32, 2d, C))':
   Rejected as the implementation raised a specific error:
     TypingError: Failed in nopython mode pipeline (step: nopython frontend)
   No implementation of function Function(<intrinsic _impl>) found for signature:

    >>> _impl(array(float64, 2d, C), array(float32, 2d, C))

   There are 2 candidate implementations:
     - Of which 2 did not match due to:
     Intrinsic in function 'dot_2_impl.<locals>._impl': File: numba/np/linalg.py: Line 554.
       With argument(s): '(array(float64, 2d, C), array(float32, 2d, C))':
      Rejected as the implementation raised a specific error:
        TypingError: np.dot() arguments must all have the same dtype
     raised from /Users/esc/git/numba/numba/np/linalg.py:574

   During: resolving callee type: Function(<intrinsic _impl>)
   During: typing of call at /Users/esc/git/numba/numba/np/linalg.py (593)

   File "numba/np/linalg.py", line 593:
               def _dot2_codegen(context, builder, sig, args):
                   <source elided>

           return lambda left, right: _impl(left, right)
           ^

   During: Pass nopython_type_inference
  raised from /Users/esc/git/numba/numba/core/typeinfer.py:1074
  - Of which 2 did not match due to:
  Overload in function 'dot_3': File: numba/np/linalg.py: Line 795.
    With argument(s): '(array(float64, 2d, C), array(float32, 2d, C))':
   Rejected as the implementation raised a specific error:
     TypingError: missing a required argument: 'out'
  raised from /Users/esc/git/numba/numba/core/typing/templates.py:791

During: resolving callee type: Function(<built-in function dot>)
During: typing of call at /Users/esc/git/numba/issue_9801.py (11)

File "issue_9801.py", line 11:
def logistic_regression(Y, X, w, iterations):
    <source elided>
    for i in range(iterations):
        w -= np.dot(((1.0 / (1.0 + np.exp(-Y * np.dot(X, w))) - 1.0) * Y), X)
        ^

During: Pass nopython_type_inference

Perhaps indicates that the Numba implementation of the np.dot function doesn't check the types of the arguments and doesn't do type promotion. Seems like at least it doesn't match the behaviour of pure NumPy, which would suffice to flag this as a bug.

That was my main motivation for posting this. My understanding is that the np.dot(X, w)  call works fine because they're the same datatype. But it seems that what Numba returns from ((1.0 / (1.0 + np.exp(-Y * np.dot(X, w))) - 1.0) * Y) is a float64 because of that cast, which causes it to complain about the second dot. Makes sense to me, and I think I get what it's doing underneath a bit better and what you mean.

Here, I found the line with the error message:
https://github.com/numba/numba/blob/main/numba/np/linalg.py#L573-L575

@rlangefe ok, I've updated the issue now, waiting on confirmation of this being a bug from other devs now. Thank you again for reporting this!


feat: Convert My Profile Edit Modal into navigation container

The type of this PR is: TYPE

This PR resolves CX-2237
Description
Convert My profile edit modal into navigation container
https://user-images.githubusercontent.com/17421923/152972584-c00365da-ca02-4f80-8dd2-37e99558ecaf.mov
PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have tested my changes on iOS and Android.
[x] I have added tests/stories for my changes, or my changes don't require testing/stories, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

To the reviewers 👀

[x] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

Convert My Profile Edit Modal into navigation container - Sam

iOS user-facing changes

Android user-facing changes

Dev changes

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against 29501ae462a341705b3bcfd73fd67d0ee4f2f604

@olerichter00

Is this ready for review?

Not yet. Still need some changes on test files


Enable internal type checking for tests

From @levskaya:
"we have to enable typechecking on all of our internal tests (inside google).
Right now they're not checked automatically internally, and so changes developed inside can accumulate tons of typing issues that is only discovered on the github tests, leading to a sometimes painful export process"

Hey @marcvanzee, could you clarify the task? We do use pytype and mypy on CI.
Are you saying that Google's pytype checker is currently not checking flax?


merge from arlac77/template-github,arlac77/template-kronos-module

package.json

chore(package): add ^17.0.7 remove ^17.0.6 (devDependencies.semantic-release)

:tada: This PR is included in version 7.5.11 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Hardcore String in activity_search for "No Results"

Hardcore string "No Results" can be replaced by string resource no_results .

Fixed by #1967


Disable sort?

Newsboat version: 2.15.0
Steps to reproduce the issue:

Go to https://newsboat.org/releases/2.15/docs/newsboat.html or man newsboat
Try to find out how to disable article sort
Realize there is no such option
Get sad

Other info you think is relevant:
For example I've added https://www.reddit.com/r/archlinux/top/.rss to my urls.
I've already specified "sorting" by using "/top/" in the url.
Why can't newsboat just display the articles in the same order as they appear on the rss feed?

I see this was implemented of feeds long time ago, 86fc15c849ec4cade36fcae0dbe6e99d0e64c5b9. No idea why it wasn't done for article-sort-order. I am also doubtful if we need the order variable associated with articles as well or if there is an other way around it.

@sooqua I understand what you want to achieve, and this is technically possible with RSS, but you'll have to build a special feed reader for this.
What you want is a browser: it'll fetch the whole feed every time, and display it as it is right now. This is precisely what Firefox does when you view the feed there (or used to do—I believe that functionality was removed recently).
"Real" feed readers, the ones where you subscribe to a feed, operate a bit differently: they treat the feed as a stream of updates, adding all new items to their local "historical record" of that feed.
I don't think these two approaches are compatible, because displaying the feed "as it is" requires the program to abandon history, while displaying "everything there ever been" requires it to order items in some way.
In those terms, Newsboat is a "real feed reader", not a "browser", and I intend to keep it that way.
Also in those terms, Newsboat is a "browser" for feed-list but a "real feed reader" for individual feeds, which is why we can disable sorting for feed-list but not for individual feeds.


(PUP-3895) Make epp command error correctly

Before this, if the epp tool was asked to process a file it would
automatically append ".epp" to any file that did not end with ".epp". It
would also, depending on code path end up not checking if the file
exists or not before processing.
The fix is to:

Allow a file that does not end with .epp to be processed, but only
if it exists
Treat a missing file the same way for the different code paths.

While not explicitly supported to use other extensions than .epp when
templates are in modules and a search is made for them, it is of value
to be able to take a sample file and process it as if it was epp to
assert that the text itself does not need escapes etc. as this could be
the first step in converting a sample file into an epp template.

CLA signed by all contributors.


Add Telegram.TelegramDesktop 2.7.3

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Ooopsie, seems like i didn't check for a already existing PR... #11641 got merged

Don't worry @OfficialEsco , I will close this one.


Blacklist for some nodes or coordinates for the map

I can think of three reasons, why you want to hide the coordinates from the map:
We would need a functionality to blacklist certain nodes on the map for cases

the node is too far away from the community center so you don't want to stretch the map so far to include this node
Some third party legal request forces the community to hide the coordinates from public
the coords are at the wrong place so they create wrong links all across the area that don't really exist  and you cannot reach the owner to correct them or the node is placed in a special place where there is no access anymore to.

solutions for those:

the first comment by @mweinelt: https://github.com/ffnord/ffmap-d3/issues/112#issuecomment-87007554

It could exclude coordinates for nodes that are farther away than $x km from a given center. The center could also be determined automatically by the use of basic stochastic.
Someone would have to build that logic though. And maybe present a warning somewhere about bogus coordinates.

Remove the illegal coordinates completely from the generated json data
Those coordinates should be removed from the data too, but only as long as the owner doesn't correct them (also in the backend), so If they are corrected one day, they re-appear on the map

so the blacklist would have to have two options:

remove completely
remove as long as they are exactly long=... and lat=...

(This was preciedingly posted at  https://github.com/ffnord/ffmap-d3/issues/112)

This patch will simply add a file blacklist in the main folder that contains the wrong and correct  longitude and latitude values each in one line with a slash between. Then this file wil be used to replace the wrong coordinates with the correct:
 blacklist | 3 +++
 mkmap.sh  | 5 +++++
 2 files changed, 8 insertions(+)
 create mode 100644 blacklist

diff --git a/blacklist b/blacklist
new file mode 100644
index 0000000..d03fe7e
--- /dev/null
+++ b/blacklist
@@ -0,0 +1,3 @@
+54.357991097/54.32738396458
+10.134319067/10.13090193271
+
diff --git a/mkmap.sh b/mkmap.sh
index 97fe040..f120107 100755
--- a/mkmap.sh
+++ b/mkmap.sh
@@ -17,3 +17,8 @@ jq -c 'with_entries(select(.value.vpn == true) | {key, value: {"vpn": .value.vpn

 ./bat2nodes.py --alfred json/alfred.158.json --aliases json/aliases.json --mesh json/batman.json -d $DEST

+# the file blacklist contains long and latitude values, that should be replaced in the form
+# 53.123456/53.456789
+# 10.123456/10.456789
+cat blacklist|while read geo ; do if [ "$geo" != "" ]; then sed -i s/$geo/ json/nodes.json; fi; done
+
--
2.1.4

Es gibt gar keine mkmap.sh mehr im repository.

mkmap.sh/bat2nodes sind Teil des deprecated branches, der nicht mehr maintained wird.

Ich hab das hier einfach mal gepostet falls das jemand braucht.


Getting this error

checking whether the C++ compiler works... no
configure: error: in /Users/Mat/Desktop/2048-ai-master': configure: error: C++ compiler cannot create executables See config.log' for more details

Do you have the C++ compiler installed (try c++ at the command line)? If not, you might need to install it; on macOS, for instance, you may need to install Xcode and the accompanying command-line tools.

No activity for a month; closing. If the issue is still happening, feel free to reopen.


fix(StringView): use std::string_view

BREAKING CHANGE: absl::string_view has been replaced by std::string_view

:tada: This PR is included in version 6.0.0-rc.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 6.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


xtensa/esp32: Add power management of deep-sleep

Summary
Add power management of deep-sleep.
Impact
Device enters deep-sleep to effectively save power consumption.
Testing
ESP32 ULP Kit (with ESP-WROOM-32 module) && multimeter (Test current value and power consumption).
Test with pmconfig, commands like:
pmconfig relax idle
pmconfig relax standby

LGTM.  @acassis Please take a look and merge if everything is okay.  Thanks.


Json parse error when downloading dataset from hf

I tried to download dataset but got error like
Generating train split: 75189 examples [08:46, 2716.79 examples/s]Failed to read file './hf_cache/downloads/c652d27b07a7ba1e26291b441d095
edd970a5045e4c1126d0d02e87e805d07e4' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a closing quotation mark in
 string. in row 6
Traceback (most recent call last):
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 134, in _generate_tables
    dataset = json.load(f)
  File "/remote-home/klv/src/rtv/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/remote-home/klv/src/rtv/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/remote-home/klv/src/rtv/lib/python3.8/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 12658)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/builder.py", line 1879, in _prepare_split_single
    for _, table in generator:
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 137, in _generate_tables
    raise e
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 113, in _generate_tables
    pa_table = paj.read_json(
  File "pyarrow/_json.pyx", line 259, in pyarrow._json.read_json
  File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
  File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Missing a closing quotation mark in string. in row 6

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/load.py", line 1797, in load_dataset
    builder_instance.download_and_prepare(
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/builder.py", line 909, in download_and_prepare
    self._download_and_prepare(
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/builder.py", line 1004, in _download_and_prepare
    self._prepare_split(split_generator, **prepare_split_kwargs)
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/builder.py", line 1767, in _prepare_split
    for job_id, done, content in self._prepare_split_single(
  File "/remote-home/klv/src/rtv/lib/python3.8/site-packages/datasets/builder.py", line 1912, in _prepare_split_single
    raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.builder.DatasetGenerationError: An error occurred while generating the dataset

@jdf-prog  would u plz take a look at this issue? I remember we fixed a data loading bug before, not sure if this is the same one.

@KaiLv69 Could you plz provide the original code for downloading? Because on my machine the downloading works fine with
`from datasets import load_dataset
dataset = load_dataset("llm-blender/mix-instruct")and you can see the datasets info byprint(dataset)`
DatasetDict({
    train: Dataset({
        features: ['id', 'instruction', 'input', 'output', 'candidates', 'cmp_results'],
        num_rows: 100000
    })
    validation: Dataset({
        features: ['id', 'instruction', 'input', 'output', 'candidates', 'cmp_results'],
        num_rows: 5000
    })
    test: Dataset({
        features: ['id', 'instruction', 'input', 'output', 'candidates', 'cmp_results'],
        num_rows: 5000
    })
})

Thanks for your reply. It seems like an issue with hf datasets' cache and I've fixed it.


chore(#4908): match IntelliJ and Checkstyle formatting rules

Removing final-specific intellij formatting rules - checkstyle does only categorize class (static) variables and instance variables, but not whether they're final or not.
Fixes #4908

 CheckStyle DeclarationOrder


Create Hello world using Docker File

An hello world by using Docker to understand its basic.

Thanks but its not related to the repo


Revert to static bytebuddy caches, attempt to reuse generated Class d…

…efinitions across ORM instances
Just an experiment for @scottmarlow to play with

Testing with the main branch showed that only one HibernateProxy class was defined for the test Employee entity (instead of the previous 50 Employee HibernateProxy class definitions.
Will try cherry-picking this change onto the 5.3 branch and test with that.

closing this experiment, I'll propose better ways to go forward.


⚠ Bofrost.lu has degraded performance

In 224b805, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2006 ms

Resolved: Bofrost.lu performance has improved in c199f59.


Linear: Missing emojis for projects

Extension – Linear
Author: @thomaslombart

Description
Looks like Linear added support for emojis to projects. This isn't yet supported and an empty icon shows up in the list. Raycast render standard emojis, but Linear also has custom one from Slack, which should also be renderable (just images at the end).
Steps To Reproduce

Create a project and assign an emoji
Open the Search Projects command
See the emoji not rendered

The current behavior
Emoji isn't rendered
The expected behavior
Emoji is rendered (custom and standard ones)
Raycast version
Version:

Good idea, I'll tackle that in the next few days/weeks.


Create Test2.md

@TinaLiuGirl : Thanks for your contribution! The author, @"v-caxian", has been notified to review your proposed change.


Refactor to reduce duplicate code

Refactor to reduce copy/pasted code between the following files:

[ ] BuildDockerSteps and BuildImageSteps
[x] BuildContainerConfigurationStep and BuildTarballLoadDockerStep/PushImageStep
[x] BuildDockerStepsRunner and BuildImageStepsRunner
[x] BuildDockerTask and BuildImageTask
[x] BuildDockerMojo and BuildImageMojo
[ ] gradle.ProjectProperties and maven.ProjectProperties

Oh actually, hold off on that for a bit.

Gonna do this first: #305

Cool, if you want to take those you can, I'm working on the two ProjectProperties right now.


Bulk crafting blocks lags client

Issue description:
When bulk crafting blocks from ingot/gems, the game stutters and lags. Issue appears to exist in RS but not AE2. Has remarkable resemblance to #151.
What happens:
Game excessively lags when crafting blocks of material
What you expected to happen:
No stuttering, fast item movement to inventory
Steps to reproduce:

Fill storage with any number of ingots/gems, larger amounts cause greater lag (>10k)
Use crafting grid to make blocks of said ingots/gems, shift clicking to receive 64 stacks of blocks

Version (make sure you are on the latest version before reporting):

Minecraft: 1.12.2
Forge: <IP_ADDRESS>68
Refined Storage: 1.6.10

Does this issue occur on a server?
Yes
crafting.zip

Bulk crafting actually caused all of my items to not get shown anymore.
Had to drag them from the disks to new ones with my brothers account.

Had same issue @EGGS0RZIST. Restarting game fixed it.

Can confirm this issue. From looking at the code, it seems like RS crafts the block/item 64 times in a while loop, instead of crafting 64 at once. I'm guessing this really slows things down here.

Fixed with the new autocrafting system

This has been fixed for the next version. Thank you @Darkere


create a stack overflow forum (4h)

create and link with the Analytical Data Science Community at Roche/GSK

Hey Robin -
Could we just create a custom tag for admiral and pharmaverse?    We also have our slack channel as a stand-in.  Maybe we need this to be sponsored by the pharmaverse rather than admiral specific.

That's actually what we had in mind (at least for the "admiral" tag but I agree having "pharmaverse" as well is a good idea). Creating new tags does require a certain amount of reputation on SO but I'm pretty sure I have enough to do so.


Added example region-tag for Family.js

Fixes #157 for family.js (it's a good idea to open an issue first for discussion)

[ ] Tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

@vijay-qlogic, can you please address the comments?

@stephenplusplus, can we move forward with this PR?


ENH: Adding support for Polars

Polars is written in Rust (fast + lazy eval) and looks like an interesting option to consider when it comes to scaling up our object DataFrames.
https://pola-rs.github.io/polars-book/user-guide/introduction.html
Opening this issues to bookmark the idea for later.

inconclusive – unclear if we have a real bottleneck at this point.


css + dbp

Please review the release process for BrowserServicesKit here.
Required:
Task/Issue URL:
iOS PR:
macOS PR:
What kind of version bump will this require?: Major/Minor/Patch
Optional:
Tech Design URL:
CC:
Description:

Steps to test this PR:
1.
1.

OS Testing:

[ ] iOS 14
[ ] iOS 15
[ ] iOS 16
[ ] macOS 10.15
[ ] macOS 11
[ ] macOS 12

Internal references:
Software Engineering Expectations
Technical Design Template

Current dependencies on/for this PR:

main

PR #568   👈

This stack of pull requests is managed by Graphite.


add_foreign_key not compatible with Activerecord version

I cannot make it work because of an argument mismatch:
wrong number of arguments (3 for 4)/usr/local/src/admin/vendor/gem/ruby/1.9.1/gems/schema_plus-0.4.1/lib/schema_plus/active_record/connection_adapters/abstract_adapter.rb:93:in `add_foreign_key'

@AlexCppns from the above error message it seems you're using schema_plus version 0.4.1?  I can't tell which version of ActiveRecord you're trying to use it with -- it worked with ActiveRecord 2.3-3.2.  But in any case version 0.4.1 of schema_plus is too old  to support.
The current version of schema_plus is 2.0.0, which works with ActiveRecord >= 4.2.0
For older versions of ActiveRecord, the latest stable version is 1.8.9; but no new development is going into the 1.x branch, only the occasional (rare) bug fix if it's really critical.
Closing out this issue, but if you're encountering a problem with the current version please do (re)open!


pai reuse mode: error handling when token is expired

with pai reuse mode, when token is expired, error is caught during pai job status query but not during pai job submission, which is a little strange.

https://github.com/microsoft/nni/pull/2722

closed as it had been merged.


Have invalid signature transmit 404 error instead of forbidden

It would be nice if we could have our webhook render a generic 404 message to not give malicious attackers any information about what is going on.

@mockdeep that's a good idea. At the moment we probably give away TMI:
context "with invalid key" do
  ...
  expect(processor_instance).to receive(:head).with(:forbidden, :text => "Mandrill signature did not match.")

I'm open to suggestions:

just change this to a generic 404
or make this a configurable behaviour?

@tardate, I don't have a strong opinion one way or another. If I were to guess, I would say it's probably safe and simpler to just change it to a 404. It might be a little more confusing for someone debugging their webhook, though, so not sure if you want to maintain both options. I could see something like:
authenticate_with_mandrill_keys! 'YOUR_MANDRILL_WEBHOOK_KEY', fail_with: :not_found


Add Java OpenAPI client up-to-date validation

Parallels Python validation, but simpler as all files are generated.

Thanks!


"Uncaught exception" & "Maximum call stack size exceeded" errors in dev tools

Simulation is working, but at every new waypoint errors showing up in chrome dev tools.

Because there is no error with the native google-maps element, I removed gn-map. (Maybe temporary)


Slight incompatibility with the old MSBuild way of doing resources

If you have an old WinForms project and add a space to your class name, it gets turned into an underscore so you would have for instance Test Class.cs containing Test_Class.
With this SDK (which saved our hides btw, it's amazing!) this behavior is mostly retained, however in the automatically-generated code's ResourceManager property getter there's a line that looks somewhat like this:
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MyNamespace.Test ClassResources", typeof(Test_ClassResources).Assembly);
And the space/underscore mismatch eventually leads to a runtime exception.
I did the trivial fix, which is to simply rename the class, but thought I'd report this as a small piece of incompatibility compared to old WinForms csprojs.

I'm going to close this as WinForms/WPF issues should be in the main SDK at this point for 3.0.


feat: optimize lists which only use metadata

This change optimizes lists done by the reconciler-manager to only fetch metadata when only the items are only used for metadata.

/assign @karlkfi


Plugin loads to slow

Hi,
if I use homebridge-hue as my only plugin, then everything works like a charm. But If I enable my other plugins (e.g. harmony-hub, homematic), then all my hue devices are gone in the home kit app. The log shows:
[2016-12-09 23:54:28] Homebridge is running on port 51826.
[2016-12-09 23:54:28] [Hue] Philips hue: hue bridge communication error ECONNRESET - retrying in 300ms
[2016-12-09 23:54:28] [Hue] Philips hue: hue bridge request: get /sensors
[2016-12-09 23:54:30] [Hue] Philips hue: found 13 accessories
It seems, that the hue plugin loads to slow and therefor the bridge is already running.
If I use it as the only plugin, then the info "Philips hue: found 13 accessories" appears before "Homebridge is running on port 51826."
Is there any chance that homebridge waits for the hue plugin?
I am using Hue Bridge v1 and a Raspberry Pi Model B. Looking forward for any help/support.
Thanks,
Daniel

Hi Daniel @DanielsCode
As far as I understand homebridge, the only way to overcome this structurally is by moving to the dynamic platform accessory model (see issue #4).  Then, accessories can be added after homebridge has started, instead of only on startup time.  With static platform accessories, homebridge waits a limited time (20 secs?) for platforms to issue the callback from the platform accessories() method, but then goes ahead anyway, ignoring late callbacks.  Indeed, if the "found n accessories" message appears after the "home bridge is running on port nnnnn" message, the homebridge-hue callback came in too late.
The ECONNRESET indicates that the network connection between homebridge-hue and your Hue bridge broke.  I've only seen this on a v1 bridge, when there's more than 7 concurrent request to the Hue bridge (see issue #15).  We solved that by issuing a retry (as indicated in the log).  This puzzles me though, since homebridge-hue would do fewer than 8 requests on startup.  It could be a limitation on a RPi, where homebridge-hue and other plug-ins are competing for RPi network connections on startup.  Did you get any ECONNRESETs when starting homebridge with only the homebrigde-hue plug-in?  Are you starting homebridge manually or automatically when the RPi boots? I've had issues (on MacOS) that the network wasn't yet fully up when starting homebridge.
Troubleshooting these asynchronous issues is hard.  Could you please start homebridge manually through homebridge -D > logfile and post the full logfile here?  Could you also please post your full config.json?  Are those 13 accessories all sensors, or lights, groups as well?  I assume your Hue bridge config isn't the issue, as homebridge-hue works fine when it's the only plug-in.
As a workaround, you could try running a separate instance of homebridge for the homebridge-hue plug-in, using the -U flag to indicate a different ~/.homebridge directory with a different config.json.

Hi Erik @ebaauw
thanks for your fast feedback. I did some more tests with log files. First, usually I start homebridge as a service like "/etc/init.d/homebridge start"
For debugging reason I started homebridge manually with different configs:

hue only:

{
   "bridge": {
       "name": "Homebridge",
       "username": "CC:88:3D:E3:CE:33",
       "port": 51826,
       "pin": "000-11-222"
    },

    "accessories": [
    ],

    "platforms": [
      {
          "platform": "Hue",
          "name": "Hue",
          "host": "<IP_ADDRESS>",
          "users": {
             "001788FFFE119783": "1yZPebdTrRut3Q2pi7STcBY53cwo73hECdXibR3t"
          },
          "heartrate": 5,
          "timeout": 5,
          "lights": true,
          "alllights": true,
          "groups": false,
          "sensors": true,
          "schedules": false,
          "rules": false
        }
    ]
}

Logfile: logfile_hue_only.txt

my usual config

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:88:3D:E3:CE:33",
        "port": 51826,
        "pin": "000-11-222"
    },

    "accessories": [
       {
           "accessory": "CMD",
           "name": "Radio",
           "on_cmd": "~/.homebridge/scripts/radio_on.sh",
           "off_cmd": "~/.homebridge/scripts/radio_off.sh"
       }
    ],

    "platforms": [
      {
          "platform": "Hue",
          "name": "Hue",
          "host": "<IP_ADDRESS>",
          "users": {
             "001788FFFE119783": "1yZPebdTrRut3Q2pi7STcBY53cwo73hECdXibR3t"
          },
          "heartrate": 5,
          "timeout": 5,
          "lights": true,
          "alllights": true,
          "groups": false,
          "sensors": true,
          "schedules": false,
          "rules": false
        },
        {
            "platform": "HomeMatic",
            "name": "HomeMatic CCU2",
            "ccu_ip": "<IP_ADDRESS>",
            "filter_device":[],
            "filter_channel":[],
            "outlets":[],
            "doors":[],
            "programs":[],
            "subsection":"Homekit"
        },
        {
           "platform": "HarmonyHub",
           "name": "Harmony Hub"
        }
    ]
}

Logfile: logfile_all.txt
The dynamic approach would be great.
Any other ideas as starting two homebridge services? Do you need further diagnostics?

Thanks, @DanielsCode
The standalone homebridge-hue log looks fine to me.
The all plug-in log does look troublesome, indeed.  It looks like homebridge-hue actually found the bridge and is querying the bridge for their states (at 11:42:39 and 11:42:40).  The ECONNRESET (at 11:42:51) seems to be for querying the sensor state, which succeeds on retry, after which homebridge-hue reports its accessories to homebridge.  However, homebridge is already running and no longer accepts the homebridge-hue accessories.
I think the conflict is with the HomeMatic plug-in.  Looking at their source, they do a lot on startup, including a synchronous file read (index.js:179). The Harmony plug-in actually uses the dynamic platform accessory model, and the CMD plug-in doesn't seem to do any network requests on startup, so these plug-ins aren't impacted.  I think your setup will run fine, if you remove only the HomeMatic plug-in.
The dynamic platform accessories approach is the structural solution, but this is a lot of work.
As a quick workaround, I could try and revert issue #3, doing a single GET / instead of separate GET /lights and GET /sensors.  It would result in fewer network requests, but in more data per request.  I'm still not sure which approach is the least resource intensive, on the Hue bridge as well as on the network.  A single request will be more CPU intense on the RPi.  As is takes 11 seconds to get the ECONNRESET, preventing that from happening would probably do the trick in your case.

Hi @ebaauw
What should I change to use single GET instead of separate ones? Of course, I will let you know if it fix the problem.
Disabling the homematic platform isn't a solution for me.
Thanks.

@DanielsCode
Install v0.0.19 ;-)

@ebaauw
Thanks a lot for this very fast update. I tried to update the package with
sudo npm -g update homebridge-hue
but if I check the version with nom list -g, I will see:
<EMAIL_ADDRESS>How can I perform this update?

@DanielsCode
Looking at sudo npm outdated -g, npm sees the latest homebridge-hue version but is happy with the currently installed version.  For other packages (homebridge, npm itself), npm wants the latest version, so I guess I must have done something wrong.  Unfortunately, I haven't got a clue what I should do to correct this.  I tried deprecating the older versions, but npm is still happy keeping the old version.
Anyway, another sudo npm install -g homebridge-hue installs the latest version for me.

@DanielsCode
I published v0.1.0 and now sudo npm -g update seems to work. Apparently npm doesn't like 0.0.x versions.

@ebaauw
Hi, I tried to update to v0.1.0 with sudo npm -g update homebridge-hue - but again it didn't work. Then I used sudo npm install -g to update homebrige, homebrighe-hue and homebridge-homematic.
Afterwards, I adjusted the config.json from alllights to philipslights and run homebridge manually. Unfortunately, I got an error ([2016-12-11 15:13:56] [Hue] Philips hue: hue bridge communication error ESOCKETTIMEDOUT) and only one accessories - see log file:
log_v0.1.0.txt
Did I miss something?

If you did miss something, @DanielsCode , then so do I...
Sorry, the correct command to capture the logfile is homebridge -D > logfile 2>&1, so that the error messages are captured as well.  I understand that you only got one error message?
The one accessory is for the bridge itself.  It's not doing anything, except dumping the full bridge state on Identify.  Unfortunately, you need another app then iOS 10 Home to issue Identify.  This one accessory is loading, however, so the homebridge-hue load time has definitely improved.
We do get a different error message now, ESOCKETTIMEDOUT instead of ECONNRESET.  It looks like the get / at 15:13:45 is timing out and returning nothing, so homebridge-hue doesn't expose any bridge resources.  Maybe it just needs a little more time.  Could you change timeout in config.json to, say, 10 seconds and retry (now capturing the logfile with the 2>&1 bit).  If that doesn't work, try increasing timeout, as long as the bridge accessory still loads.  If the bridge accessory doesn't load, try decreasing timeout.
Note that it takes 4 seconds, before homebridge-hue gets to handle the response from the get /config at 15:13:41 -- it reports the bridge model and api version at 15:13:45.  I my setup, these messages are issued within the same second.  I your hue only logfile this only takes 1 second.
Also note that it takes 11 seconds, before homebridge-hue gets to handle the ESOCKETTIMEDOUT, of the get /, where the timeout occurs 5 seconds after the request (this is the timeout parameter).  In your all logfile, homebridge-hue only gets to handle the ECONNRESET after 11 seconds as well.
With v0.1.0, homebridge-hue issues some more debug messages on startup and I'd like to see what it reports when it's working in your setup.  Could you please capture a logfile with the HomeMatic plugin disabled, and post that logfile here.  If that doesn't work either, could you please capture a logfile with only the homebridge-hue plugin enabled.

@ebaauw
yeah, I changed the timeout from 5 to 10 seconds and it works! Thanks a lot. Would you like to have the log files anyway?

That's good to hear, @DanielsCode !
Yes, please post the logfile with all plugins enabled and the homebridge-hue timeout to 10 seconds, so I have some documentation.  Thanks.

@ebaauw
Sure. Here we go:  logfile.txt
Thanks again for your work and your great support.


Call from web browser

I think it should be interesting if this library can be called from web browser.

Currently, this package only tested on node.js. I don't have experience on creating javascript library for web browser environtment. Anyone can help?


text align

this project is great and very helpfull, but it would be awesome an option which allow change the align of de paragragh during edition or creation of posts.

You mean to support right-to-left paragraphs? I'd gladly accept a PR to add this :)


Implementation plan for restore from S3path

Plan:

refactor S3 client layer (https://github.com/coreos/etcd-operator/pull/1587)
clusterName -> restoreName (https://github.com/coreos/etcd-operator/pull/1597)
Change the HTTP server that takes in restoreName -> (AWSSecret/S3client, S3Path) and returns backup. (https://github.com/coreos/etcd-operator/pull/1602)
Change the seed member (https://github.com/coreos/etcd-operator/pull/1605)

http query
use restoreName to induce clusterName

remove old BackupSpec in restore CR (https://github.com/coreos/etcd-operator/pull/1610)

All done


shouldi: python: pypi: Definition needs updating for directory input

In shouldi/python/pypi.py, we need to make it so that the directory input is the same definition as run_bandit.op.inputs["pkg"]
@op(stage=Stage.CLEANUP)
async def cleanup_pypi_package(directory: str):
    """
    Remove the directory containing the source code release.
    """
    shutil.rmtree(directory)

@pdxjohnny I'd like to work on this issue.


[Feature] Summary Report Data

Report is a simple file at the moment and it is a little difficult to read.
The purpose of this ticket is to develop a system that provides a summary of the final result after executing the loopy run command using ASCII codes and a report file.

Done.  Report summary is not shown with run command.


Error: androidResource

Hello. Upgrade to 4.1.0 does work in debug, but not in release. I got error:

What went wrong:
Execution failed for task ':device_calendar:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:C:\Users\procz.gradle\caches\transforms-3\cb82ab87932d631ec279de51e0d3f5d6\transformed\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

Ah I understand the problem now
#399 should fix this.

Hey. Thanks for quick response. Yet i still dont get that how to solve that issue? Flutter run --release still stops :(

Are you using the latest dev branch? We haven’t do a prerelease yet
Or build an app bundle, which somehow is not affected.

Alright. It wirks when from github (develop)! Amazing :)


fix jqXHR object initialization

The jqXHR objects returned by data.submit() did not contain the abort function and thus could not be cancelled (Chrome 17.0.928.0 dev-m). This commit changes the variable assignment syntax slightly to ensure that the object is initialized properly.

I could reproduce the problem when using jQuery 1.7 and tracked it down to a bug in the implementation of jqXHR.always().
I've submitted a ticket to the jQuery bug tracker:
http://bugs.jquery.com/ticket/10723
But I will also incorporate your fix into the current version of the plugin.
Thanks for your contribution!

Ok, sorry, I forgot to mention that I was using jQuery 1.7. Thanks for taking a closer look at the issue!

Unfortunately, this fix changes the callback invocation order when used with the sequentialUploads or limitConcurrentUploads options.
But I'm working on a different workaround that I'll push soon.


Control measure map geometry is reversed

The structure control migration should generate a line from control_measure_location.geom to table_control.geom or from control_measure_location.geom to memory_control.geom, but the geometry that is created is reversed.
And please draw the line to the start connection node of the v2_pumpstation, not to "in between start and end node"

@leendertvanwolfswinkel
The Excel states that the table_control.geom or memory_control.geom should be:

Use the center point (ST_InterpolatePoint(the_geom, 0.5)) of the object indicated by the value in target_type with the ID target_id

Because control_measure_map.geom is the line from control_measure_location.geom to *_control.geom. So given the definition above, this is why for v2_pumpstation one of the line ends is "in between start and end node". The easy fix would be to change the definition for v2_pumpstation.geom to the start node of v2_pumpstation. Is this ok?

Ensure that control_measure_map.geom is a valid geom (https://github.com/nens/threedi-schema/issues/102)

Tested and it works as expected


The Intercom chat isn't being used anymore

Therefore I'd like to replace the message that pops up when running greenkeeper support.

Hey @leo,
thanks for your PR. We switched to GitHub Issues for our free users, because with the rising usage (yay!) we can no longer individually support everyone (noes). For our paying customers we're still opening the Intercom chat. So you're right: the log message is wrong, but you're proposed change also isn't right.
I fixed the commit message to match our style and the error message and landed that here (keeping your contribution as you raised this issue) https://github.com/greenkeeperio/greenkeeper/commit/8a1e846bb9ad149e30bca86126a27fab09948529.
Thanks for your feedback and for using Greenkeeper :)
Stephan

@boennemann Awesome! :blush:


Question about growing memory in pytorch

❓ Questions & Help

Hi All,
I'm really new to pytorch and torch_geometric. I tried to train a customized network, using GNN and several MLPs, but it seems to have a problem of growing usage of memory. If I train on a small set of data point, it's not a problem. But when I want to use a larger dataset, then I get into
RuntimeError: CUDA out of memory. Tried to allocate 454.00 MiB (GPU 0; 10.76 GiB total capacity; 7.27 GiB already allocated; 453.12 MiB free; 9.45 GiB reserved in total by PyTorch)
Are there any suggestions on what could cause the problem? (I tried the suggestions on pytorch forum, i.e. using loss.item() instead of loss(), and use fp_16() or smaller batch_size).
Thanks!

Thanks so much for the reply!!
We have many graphs with nodes range from 10 nodes to 10000 nodes. With weighted random sampling with replacement, we get batches really large. It seems in the dataset, the highly weighted graphs are at the same time also very large. I guess this is the issue. But I don't know how to avoid this without biasing the dataset. What is the strategy to deal with this? Is there a way of doing weighted random sampling that controls the size of batches without bias the dataset?
Looking forward to your reply!
Thanks again!


SW-6792 Lay caseload due date sort

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (6038944) 74.66% compared to head (ce2a9ef) 74.55%.

Files
Patch %
Lines

internal/sirius/get_client_list.go
0.00%
2 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #427      +/-   ##
==========================================
- Coverage   74.66%   74.55%   -0.12%
==========================================
  Files          34       34
  Lines        1942     1945       +3
==========================================
  Hits         1450     1450
- Misses        403      405       +2
- Partials       89       90       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Monotonically constrain integer variables with missing values

I'm trying to impose monotonic constrains to variables that are integers and have missing values. The problem is, the default int32 format doesn't support missing values, and the int64 format that accepts missing values is not supported by LigthGBM.
What is the right way of dealing with this without having to cast the variable to float?

you can use zero_as_missing, and set 0 to the missing values.


[stable/sonarqube] Support ingress path configuration

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature Request
Which chart:
stable/sonarqube
The current ingress configuration supported by stable/sonarqube provides limited functionality because it does not support ingress path configuration.  Currently, the only way to configure ingress with SonarQube is at the root level (e.g., sonarqube.domain.com), where many use-cases may require an ingress path (e.g., domain.com/sonarqube).
I recommend that the ingress template be modified to allow for custom paths to be defined following the patterns used in other Helm charts such as WordPress, Jenkins, and ChartMuseum.

I am working on a PR to make the ingress paths configurable.  That's a pretty straightforward change to the ingress.yaml template.
However, despite the ingress setting up correctly, the SonarQube web UI will not load.  I just get the spinning loading animation forever with no errors in the logs that I can see.
Does sonar.web.context need to be set to match the ingress path?
I've tried setting it (both via extraEnv and command: [ "-Dsonar.web.context" ]) with no luck.  If I set extraEnv to match the ingress path, the pod goes into a crash loop.  If I use command: [ "-Dsonar.web.context" ] the pod starts but I still can't load the UI.

However, despite the ingress setting up correctly, the SonarQube web UI will not load. I just get the spinning loading animation forever with no errors in the logs that I can see.
Does sonar.web.context need to be set to match the ingress path?
I've tried setting it (both via extraEnv and command: [ "-Dsonar.web.context" ]) with no luck. If I set extraEnv to match the ingress path, the pod goes into a crash loop. If I use command: [ "-Dsonar.web.context" ] the pod starts but I still can't load the UI.

Did you ever solve this?
I'm using chart 2.3.0, have set all the sonarWebContext settings, but still the UI is trying to load JS from / and not /sonarqube
spec:   releaseName: sonarqube   chart:     repository: https://kubernetes-charts.storage.googleapis.com/     name: sonarqube     version: 2.3.0   securityContext:     runAsUser: 1000     runAsGroup: 1000   values:     replicaCount: 1     hpa:       enabled: false     livenessProbe:       sonarWebContext: /sonarqube/     readinessProbe:       sonarWebContext: /sonarqube/     sonarWebContext: /sonarqube/     ingress:       enabled: true       annotations:         certmanager.k8s.io/cluster-issuer: letsencrypt-prod         nginx.ingress.kubernetes.io/rewrite-target: /$2       hosts:         - name: someurl.uksouth.foo.azure.com           path: /sonarqube     extraEnv:       sonar.web.context: /sonarqube/

@Tabby ;  Did you ever get this working?  I too am also having the problem of "spinning loading animation forever with no errors in the logs"

@hectoralicea Nope. I just moved it to a different URL where it could live on / rather than /sonarqube :/

@Tabby @hectoralicea you can exec into your SonarQube container and use jps -lvm to see if the application actually started with the web context path you passed into it.
I have it working on an ingress path.  My issue was that setting extraEnv.sonar.web.context: /sonarqube (I'm not sure about the trailing slash in your values; I'm not using one) was causing the pod to crash.  This was a bug with SonarQube ... I filed an issue https://github.com/helm/charts/issues/13482 and resolved here: https://github.com/helm/charts/pull/13484
Also, I'm not sure about the rewrite-target annotation you're using here ... /$2 would be your second capture group but you don't have any capture groups in the ingress path you posted.
And it may not be directly related, but it could be causing something upstream to fail which in turn prevents your extraEnv from getting passed correctly: the default values.yaml file in stable/sonarqube (and the values file I use to install) specify: securityContext.fsGroup: 999.

jps -lvm

command not found error.
alicehe$ kubectl exec -it -n sonar sonarqube-sonarqube-74bc9bc86d-8dg2s -- /bin/bash
sonarqube@sonarqube-sonarqube-74bc9bc86d-8dg2s:/opt/sonarqube$ jps -lvm
bash: jps: command not found


Publish to PyPI only on tagged commits

I have tried to add a filter to the publish step
if: startsWith(github.ref, 'refs/tags')

But this check always fails 🤷♂

Solved in 21d9260fe68c7f3c70be5050abee0c463af1610d
I have rewrite publish workflow to trigger it when a release is created.


This links dont redirect to nothing, shows 404 next page error.

https://github.com/pingdotgg/uploadthing/blob/cc6ba5161c4361d7d08717d7ece91544e2072a80/docs/src/pages/backend-adapters/express.mdx#L94

Fixed in #425

You might need to validate all links

In all of these pages, because is failing in express the link to solid, in fastify all links, in Lambda solid, and in H3 all links.


Adds support for managing Chef groups.

I've written tests that appear to pass, though I'd like to improve upon them so that they behave a bit more like the Chef API.
This is one of my first projects written in Go so I'd love to hear feedback!

This change is

Weird, I see that the Wercker build failed with the message:
/home/ubuntu/go/src/github.com/hashicorp/vault/api/client.go:260: undefined: http.ErrUseLastResponse
I did not see this in my local branch/testing. I'll see what I can learn (Wercker is new to me).

@RyanFrantz thanks for the PR. My gut says the error is due to the golang version in CI. Ill see if I can get some time this week to look into it.

@RyanFrantz Fixed up CI If you rebase this it should fix up the build.

@RyanFrantz run this through go fmt as well then you don't have to worry about tabs/spaces or what not.  Running go fmt on save in your editor is highly recommended.

@spheromak I'll get on a rebase/retest as soon as I can. Also, thanks for the pointer re: go fmt. I recently came across that and will hook up vim to do this automatically for me.

@RyanFrantz +1000000 for   vim-go  https://github.com/fatih/vim-go

The group support has a couple problems in actual use.  I'm working on fixes.

Part of #96


Send email to slack, not Rowan

Or probably google forum! I am not fast enough at getting back to people, and the responses should default to public visibility.

Done. Much better.


Implement length, keys and == for ChoiceMapNestedView

(cc @vkmvkmvkmvkm)
Tested: unit

This is a non-conceptual FR fix, so in line with what Marco said earlier, I'll go ahead and merge this in over the weekend if no one objects.


[feat][notification] Add dev mode option

I know that the notification plugin can only work properly after installing the application via .msi or nsis. Otherwise, it can only use the identifier of other applications (such as powershell) to send notifications.
The problem here is that tauri determines whether to use dev mode by checking if the executable is in the target/ directory.
This works fine for typical Rust applications; however, when I compile it into a dynamic library for Python to call, this method fails because the executable is python in another directory.

Here is my current solution: https://github.com/WSH032/pytauri/blob/953a44fd00b1b71e3585345d23e072225124488a/example/Tauri.windows.toml
But this is not ideal because tauri-cli will raise error for such invalid identifiers.
I hope the notification plugin can add a fn dev(self, enable: bool) option to allow users to manually set dev mode.

I haven't checked the situation on Linux and macOS yet

A bit more context in https://github.com/tauri-apps/plugins-workspace/pull/1502 (and the issues linked there)


filter collection by TESS sector

Closes #621
The commits are a first cut for review.
From API users' perspective, he/she can then filter a LightCurve / TargetPixelFile Collection by  the following.

# Assuming lc_col has 3 LightCurves, in sectors 24, 25 and 26.

> filtered = lc_col[lc_col.sector == 25]
LightCurveCollection of 1 objects: # the one for sector 25

> filtered = lc_col[np.in1d(lc_col.sector, (25, 26))]
LightCurveCollection of 2 objects: # the one for sector 25, 26

# To get the lightcurve of one sector
> lc_col[lc_col.sector == 25][0]

Notes:

The return results are LightCurve / TargetPixelFile Collection, so users can use the usual APIs e.g., stitch, plot, etc.
Implementation-wise, I have to add TESS-specific sector property to Collection base class. And Kepler-specific ones campaign and quarter will be needed as well. It's a bit ugly, but I don't know how we can get around it, unless we have new TESS / Kepler-specific collections (4 additional classes), something like:

class TessLightCurveCollection(LightCurveCollection, TessPropertiesMixin):
   ...

I would be fine with this change!
Indeed, we'll want to support campaign and quarter as well for consistency.  This isn't ideal because we want the Collection class to be a generic container for data from any mission, but Kepler/TESS are the focus of Lightkurve, so it seems fine to have convenience hooks for hose.
I don't think introducing TESS / Kepler-specific collection objects would be a good solution, because Collection should be able to hold a mix of both Kepler and TESS (or other) data.  For example, I envisage LightCurveCollection.stitch() becoming a robust way to combine a Kepler and a TESS light curve from the same object together, though that hasn't been tested/implemented in earnest at this time.

Ok, so I'll use the commits as the basis, flush out the edge cases, add tests, etc.
The next sets of commits won't come right away, probably in a few days to a week.

The next sets of commits won't come right away, probably in a few days to a week.

That is absolutely fine of course.  Thanks so much for working on this! :+1:

With the latest commits,

filter a collection by TESS sector code complete, including tests and boundary conditions.
support is also added to filter by int array-like, e.g., lcc[[0, 3]] will return a new collection with lightcurves in indices [0] and [3]. It's not really needed in the use cases, but it makes the API behaves the same way that np.ndarray does, reducing potential surprises.

Open:

I assume Lightkurve 2 requires python 3.6+ (used f"" to construct some string messages)  If not, please let me know.

Remaining Issues:

[ ] documentation: add docstring, and include Collection to the API doc to be produced.
[ ] support Kepler's counterpart: campaign and quarter

@barentsen The latest commits contain all the intended changes, including support for quarter and campaign. It's ready for review.
Open:

I added some documentation about indexing in Collection class, but Collection itself is not included in the apidoc. The docstring is not included in the LightCurveCollectionor TargetPixelFileCollection either. Thoughts?

I assume Lightkurve 2 requires python 3.6+ (used f"" to construct some string messages)  If not, please let me know.

Thanks so much @orionlee! I am short on time in the next 24 hours, but will get back to this asap.
(The windows build failure is not your fault because it is also failing on master, caused by a stack overflow, tho I have no idea what's causing it at this time.)

rebased against the latest master. Ready to be reviewed / merged.


Even more ruby files

Reopened from #189
More files use ruby than just .rb. This is as exhaustive as i could make
it with a little bit of research (all the files i've come across as a
ruby developer, plus whatever documented variations there are). I definitely missed some https://github.com/rubocop-hq/rubocop/blob/c4ce01c333f962165576031e0ab8d61a4aafa8ed/config/default.yml#L11
Also checks ruby files with no extension, but with a ruby shebang
This is largely based on code from
https://github.com/robotdana/fast_ignore which in turn is based on code
from stdlib find but with fewer system calls so it's very slightly faster.

closing on the basis of very outdated


Display the list of values on hover over "Multiple Values" in multi-select text editing.

When I selected two motorway links, It wasn't possible to see what the values were for those two highways without selecting just one of them at a time.

When I select the two and hover over the value, the hint Multiple Values is displayed.  Would it be possible to instead change this to show something like 1 "asphalt"; 1 "concrete"?
Other selections would show something else like 23 "asphalt"; 12 undefined; 2 "paved", 4 undefined; 3 "asphalt"; 1 "ashpat", or 192 "asphalt"; 33 "dirt"; 25 undefined.
This clearly wouldn't fit inside of the value space, but showing it on mouse hover could be very useful for data cleanup and completeness mapping.

@BjornRasmussen You can focus the field to open the suggestions list, which are the populated from the combined values of the selected features. I suppose the tooltip could be more useful though.


Can't handle spaces in .app name inside payload

Hi, great tool - have noted that it seems an IPA that contains an .app target with a space in the name can't be handled by the code -- errors out
running
sudo ipa info myapp.ipa
results in
Using .app: My App.app
security: unable to open "/var/folders/d6/wt71m3s960x5_w546d0qvbv80000gn/T/d20160706-93068-sqr6ax/Payload/My" for reading: No such file or directory
undefined method `each' for nil:NilClass

You might want to try gym 👍

@KrauseFx how can I check info about ipa via gym?

Whoops, sorry, I thought this was about building the ipa

Related with https://github.com/nomad/shenzhen/pull/273
@KrauseFx btw, it would be good feature request for fastlane - to got information about ipa. Probably this functionality closer to deliver module


Added geolocation feature

Related Issue

Closes #370

Description
Adding the geolocation feature, users will now have the option to quickly get weather information for their current location without having to manually search for a specific city.

Add a "Get Weather for Current Location" button to the app interface.
Implement geolocation logic in JavaScript to fetch the weather data based on the user's latitude and longitude.
Display the weather information for the user's current location in the app's UI.
Handle cases where geolocation is not supported by the browser and provide appropriate error messages.

Video

https://github.com/ssitvit/Code-Canvas/assets/112793075/5fd58d46-db93-4f40-86f8-0866dd87df6e
Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

@Dharmesh177 Please review and merge the pull request.


Include more links in show and movies details

Hello,
Is there a way to retrieve all the links displayed on the website (instagram, twitter, etc.) ?

Thanks !

No, we don't return that info in the API currently. We get it from TMDB, so you could go straight to the source? I guess it would need to be a new method on Trakt, I don't think it's worth adding to the full response.


How to solve the problem that the dist file packaged by nuxt generate is a soft connection

Describe the feature
How to solve the problem that the dist file packaged by nuxt generate is a soft connection. The dist file points to the. output/public folder. I have tried many methods, but none of them works,
For example:

Add [-- no-symlink -- no-flow] in the package.json file,
["build: test": "nuxt generate -- no-symlink -- no-flow -- dotenv. env. test"]
Add in the nuxt.config.ts file
generate: {
noSymlink: true
},
nitro: {
generate: {
noSymlink: true
},
},
Can't change the way dist is a soft connection

Additional information

[ ] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

What is the issue? If you are wanting to copy the build output somewhere else, perhaps you could try copying .output/public instead of dist?

How do I configure the nuxt.config.ts file to generate a dist file that is not a soft link? Or does nuxt3 not support this configuration? This problem has been bothering me all day

I have the same issue.
I use Electron to build a desktop application and the expected path ./dist/index.html  works only on my PC.
After I do an electron build nobody can run my app. Changing the path to .output/public solved the issue. But it was too hard to find the reason of the not found file.

I have the same issue. I use Electron to build a desktop application and the expected path ./dist/index.html  works only on my PC. After I do an electron build nobody can run my app. Changing the path to .output/public solved the issue. But it was too hard to find the reason of the not found file.
How to reproduce: npx nuxi init test-nuxt cd test-nuxt yarn generate ls -la
Result: dist -> /Users/username/test-nuxt/.output/public Expected: dist (without -> ....) or any information about this 'feature' in docs

Hello, I have solved the problem that dist file is a soft connection。
You need to set in the nuxt.config file：
nitro: {
    output: {
      publicDir: '../dist', // This setting can avoid that the packed dist file is a soft connection
    },
  },


Add Parse* helper functions

This PR adds user-friendly Parse* functions which use memefish.Parser and memefish.Lexer internally.
fixes #147

@apstndb Could you rewrite ExampleParser_... tests in parser_test.go with using these helper functions?

OK, I will do!

Rewrite ExampleParse* to use easier to use functions instead of (*Parser).Parse*.
Leave the TestParse* functions as they are, since they are the actual implementations we want to test.

Done.

OK, one tab is prefered.


Update setup metadata for all the packages

The setup metadata for soda-sql-* packages is not up-to-date, this needs to be updated with appropriate long description and build classifiers and urls etc.

duplicate #145


Player: Record optional photo when adding QR Codes [US 02.0X.01]

As a player, I want to have a choice of recording a photo of the object I took a QR Code from when adding a QR Code so that I can share where I found it

[x] add to db Darius
[x] activity
[ ] Photo class

Added button to take photo and is able to get the captured photo
TODO: save photo to database

Still waiting on database code. Front end is done


feat: flip vpkpp bsppp dependency

it's a reasonable assumption that parsing a bsp would include wanting to access the pack lump within, as important info and data can be found within that file.
However it is NOT a reasonable assumption that parsing VPKs would include wanting to parse whole BSP files. Thus it makes more sense that bsppp should depend on vpkpp, with extending the PackFile class done inside bsppp. That way you can have access to vpk parsing without the need of the whole BSP library.
This PR flips the dependency so that bsppp requires vpkpp and adds the BSP packfile format itself, so that vpkpp can be used without bsppp being included.
Testing done:
I made sure it still compiled both fine. Outside of that I don't have the means to test much right now.

im going to do this manually myself, pr is old and difficult to rebase, and i already deleted the BSP pack loader to add back after tholps pr lol


HEVC software decoding not work on Linux

System Details

OS: Arch Linux
Thorium Version: 107.0.5253.0
CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
GPU: intel uhd graphics 620

Problem
I found the latest release notes show "H.265/HEVC Patch" and tried playing H.265 videos.  The result was no success.  Black screen with only audio.
Media internal logs (chrome://media-internals) say:
"Warning, FFmpegDemuxer failed to create a valid/supported video decoder configuration from muxed stream, config:codec: hevc, profile: hevc main 10, level: not available, alpha_mode: is_opaque, coded size: [1920,1080], visible rect: [0,0,1920,1080], natural size: [1920,1080], has extra data: true, encryption scheme: Unencrypted, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}"
I was previously using linchrome which also supports hevc decoding. This one had no errors.
"FFmpegDemuxer: created video stream, config codec: hevc, profile: hevc main 10, level: not available, alpha_mode: is_opaque, coded size: [1920,1080], visible rect: [0,0,1920,1080], natural size: [1920,1080], has extra data: true, encryption scheme: Unencrypted, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}"

@goodbaikin I'm actually using the same patch that macchrome is using for that. I am aware of this. It only seems to affect the linux releases. I am working on it.

I hope it possible to fix it! (same problem)


procfs-support-lustre2.12 and update test OST test date

Close #146

@joehandzik

I get
[centos@lustre-storage ~]$ go get github.com/marquis-wang/lustre_exporter
# github.com/marquis-wang/lustre_exporter
go/src/github.com/marquis-wang/lustre_exporter/lustre_exporter.go:70:17: cannot use ch (type chan<- "github.com/marquis-wang/lustre_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric) as type chan<- "github.com/HewlettPackard/lustre_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric in argument to s.Update

This is with go version go1.14 linux/amd64

Would it be possible to support both the old and the new paths so that a lustre-exporter binary would work on both types of Lustre systems?

new paths has supported in lustre version 2.10.x.

The new path /proc/fs/lustre/osd-/-OST*/kbytesfree (same as kbytesavail & kbytestotal) have been provided in lustre LTS version 2.5, 2.10 & 2.12


Extract mp3 from mp4

Script Title -Extracting mp3 from mp4 using Python
what will change -You can extract audio(mp3) from a video(mp4) file using Python in 5 lines of code. Your need to have the source-code in the same location of the video file, the program will generate a new mp3 file in that location
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language

[x] Python

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server  - https://discord.gg/FXyh2S3
Happy Coding,

Can you assign this issue to me?
Thank you

I want to work on this Can you assign this to me ?

Use flake8 for code linting


Add Flowdock alerter

Here is a ElastAlert Alerter I wrote for use with CA Flowdock. For consideration of a merge, or for use by others in the meantime.

Can you resolve conflicts please :)

Can you resolve conflicts please :)

Any way you could push this PR to https://github.com/jertel/elastalert2 ?
Please note that the source code structure of the alert is different from the original yelp / elastalert.
elastalert
  loaders.py
  schema.yaml
  /alerters
    flowdock.py
  /tests
    /alerters
      flowdock_test.py

Apologies, it's been years since I've used elastalert or flowdock so I wouldn't be comfortable making any changes at this point (I have no way to test)

Thank you for your reply. understood.

On October 1st, 2022 the Flowdock application and all of its related APIs will be shut down.


integrate metrics with logs

we have already integrated logs with tracing. It would be nice to integrate metrics with logs, that way; you can navigate from metrics to the associated logs.
also probably integrate with tracing, so that you can be able to navigate from metrics to associated traces.

We could take the metric tags/labels/attributes and add them to logs and/or traces; https://github.com/komuw/otero/blob/d9e1e7755fde6d56049c15624221e1a1630b27b7/service.go#L84-L88

diff --git a/service.go b/service.go
index 43ad22e..79481d8 100644
--- a/service.go
+++ b/service.go
@@ -7,6 +7,7 @@ import (
    "net/http"

    "github.com/komuw/otero/log"
+   "github.com/sirupsen/logrus"

    "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
    "go.opentelemetry.io/otel"
@@ -78,19 +79,25 @@ func serviceA_HttpHandler(w http.ResponseWriter, r *http.Request) {
        "service_a_called_counter",
        instrument.WithDescription("how many time the serviceA handler has been called."),
    )
+   attrs := []attribute.KeyValue{
+       attribute.String("handler_name", "serviceA_HttpHandler"),
+       attribute.Int64("req_size", r.ContentLength),
+   }
    counter.Add(
        ctx,
        1,
        // labels/tags
-       []attribute.KeyValue{
-           attribute.String("handler_name", "serviceA_HttpHandler"),
-           attribute.Int64("req_size", r.ContentLength),
-       }...,
+       attrs...,
    )

-   log := log.NewLogrus(ctx)
+   log := log.NewLogrus(ctx).WithFields(logrus.Fields{
+       "handler_name": attrs[0].Value,
+       "req_size":     attrs[1].Value,
+   })
    log.Info("serviceA_HttpHandler called")

+   span.SetAttributes(attrs...)
+
    // When serviceA is called, it calls serviceB over tcp network.


feat(Nat/Gcd): drop an unneeded assumption

Lemma Nat.exists_coprime does not need to assume gcd m n > 0.

awaiting-review


support variable annotations in functions

Codecov Report

Merging #1 (05133c1) into main (1e676df) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #1   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           68        70    +2
=========================================
+ Hits            68        70    +2

Impacted Files
Coverage Δ

no_string_hints.py
100.00% <100.00%> (ø)

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 1e676df...05133c1. Read the comment docs.

Codecov Report

Merging #1 (05133c1) into main (1e676df) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #1   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           68        70    +2
=========================================
+ Hits            68        70    +2

Impacted Files
Coverage Δ

no_string_hints.py
100.00% <100.00%> (ø)

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 1e676df...05133c1. Read the comment docs.


[Feature] Choose what information to push to ABRP (especially live location)

I would like to avoid updating my live location with ABRP servers. In case they get hacked or something, I wouldn't want someone to view my live location.
For navigation purposes, I have GPS on my phone, so location from teslamate is not required.

I didn't do my due diligence to properly read through the docs. Apologies.
We already have this feature.


support allowed attributes

Could you accept/merge this pull request. it is just allowing the attributes to be passed for sanitzation on demand if requried


vm: should validate user-created Symbols

mirrors/symbol_validation_test

This looks like a dup of #11669 .


Splash screen video text

-UX: should the tag line be bigger? Or appear earlier?

Did not have enough time to read it.

https://user-images.githubusercontent.com/8697909/110074887-f1857d80-7da7-11eb-9a2d-d644a8258923.mp4
@antuz123  the size of text "Bitcoin is for everyone" has been increase and the time on screen for the text has been increased.

Review and return if required,

-Verified this on Dev app v1.5.0(239)


Reset password flow not able to create a session after changing password - Azure b2c

Hi, I'm currently using a signup signin flow to reset password B2C custom policy. After successfully, resetting password the flow asks to reverify again(MFA using SSPR) and unable to move on to home page of target app.  Any help is appreciated.
Below are the details.
User Journey

          <ClaimsProviderSelections>
         <ClaimsProviderSelection TargetClaimsExchangeId="ForgotPasswordExchange" />
      </ClaimsProviderSelections>
      <ClaimsExchanges>
        <ClaimsExchange Id="LocalAccountSigninEmailExchange" TechnicalProfileReferenceId="SelfAsserted-LocalAccountSignin-Email" />
      </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="2" Type="ClaimsExchange">
      <Preconditions>
        <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
          <Value>objectId</Value>
          <Action>SkipThisOrchestrationStep</Action>
        </Precondition>
      </Preconditions>
      <ClaimsExchanges>

        <ClaimsExchange Id="ForgotPasswordExchange" TechnicalProfileReferenceId="ForgotPassword" />
      </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="3" Type="InvokeSubJourney">
       <Preconditions>
         <Precondition Type="ClaimsExist" ExecuteActionsIf="false">
            <Value>isForgotPassword</Value>
            <Action>SkipThisOrchestrationStep</Action>
         </Precondition>
       </Preconditions>
      <JourneyList>
       <Candidate SubJourneyReferenceId="PasswordReset" />
      </JourneyList>
    </OrchestrationStep>

    <OrchestrationStep Order="4" Type="ClaimsExchange">
      <ClaimsExchanges>
        <ClaimsExchange Id="AADUserReadWithObjectId" TechnicalProfileReferenceId="AAD-UserReadUsingObjectId" />
      </ClaimsExchanges>
    </OrchestrationStep>

    <OrchestrationStep Order="5" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
    </OrchestrationSteps>
    <ClientDefinition ReferenceId="DefaultWeb" />

Sub Journey

  <OrchestrationStep Order="1" Type="ClaimsExchange">
    <ClaimsExchanges>
      <ClaimsExchange Id="PasswordResetUsingEmailAddressExchange" TechnicalProfileReferenceId="LocalAccountDiscoveryUsingEmailAddress" />
    </ClaimsExchanges>
  </OrchestrationStep>

  <OrchestrationStep Order="2" Type="ClaimsExchange">
    <ClaimsExchanges>
      <ClaimsExchange Id="NewCredentials" TechnicalProfileReferenceId="LocalAccountWritePasswordUsingObjectId" />
    </ClaimsExchanges>
  </OrchestrationStep>

`
`  <TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
          <DisplayName>Local Account Signin</DisplayName>
          <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null" />
          <Metadata>
            <Item Key="SignUpTarget">SignUpWithLogonEmailExchange</Item>
            <Item Key="setting.operatingMode">Email</Item>
            <Item Key="ContentDefinitionReferenceId">api.selfasserted</Item>
            <Item Key="setting.forgotPasswordLinkOverride">ForgotPasswordExchange</Item>
          </Metadata>
          <IncludeInSso>false</IncludeInSso>
          <InputClaims>
            <InputClaim ClaimTypeReferenceId="signInName" />
          </InputClaims>
          <OutputClaims>
            <OutputClaim ClaimTypeReferenceId="signInName" Required="true" />
            <OutputClaim ClaimTypeReferenceId="password" Required="true" />
            <OutputClaim ClaimTypeReferenceId="objectId" />
            <OutputClaim ClaimTypeReferenceId="authenticationSource" />
          </OutputClaims>
          <ValidationTechnicalProfiles>
            <ValidationTechnicalProfile ReferenceId="login-NonInteractive" />
          </ValidationTechnicalProfiles>
          <UseTechnicalProfileForSessionManagement ReferenceId="SM-AAD" />
        </TechnicalProfile>`

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

ID: ee017677-e3c0-fdc7-7dc0-994152d6acf7
Version Independent ID: 271089de-eb61-9ad9-d24e-e98197b2ecc4
Content: Set up a password reset flow in Azure AD B2C - Azure AD B2C
Content Source: articles/active-directory-b2c/add-password-reset-policy.md
Service: active-directory
Sub-service: b2c
GitHub Login: @msmimart
Microsoft Alias: mimart

@EnzoGorlomi23 Thank you for your feedback . We will investigate and update the thread.

Hi @amanmcse, any further update on this ticket ?

@EnzoGorlomi23 As discussed, I checked internally on this. We are suspecting that the user is sent back to app after forgot password, then the app is sending the user back to SUSI policy. When users get to SUSI policy, there is a bug, isForgotPassword is persisted into the cookie, and user is sent to forgot password subjourney again and this is probably repeating over and over.

First thing to investigate, is why after forgot password journey, is app sending the user back to SUSI policy?
Next thing is, check with PG about why we persist isForgotPassword into the cookie (forcefully)


opt-out

please take this as a formal request from the account<EMAIL_ADDRESS>to opt-out from having any data associated with this account pass through the bridge.
Choosing to make this bridge opt-out is a terrible idea and not a valid form of consent, a violation of users privacy (and probably GDPR) and I strongly suggest you reconsider your approach to a bridge.
The idea is commendable. However, opt-out is not the way.

Done, and understood.
I'm working on a new opt in idea, https://github.com/snarfed/bridgy-fed/issues/835#issuecomment-1942046208, hopefully it can replace the original pure opt out. Apologies for not figuring it out sooner.


SSR: className do not match warning when using ssr: true option

When using ssr: true option — should that be used both on server & client?
client side .babelrc:
{
  "env": {
    "development": {
      "plugins": [
        ["babel-plugin-styled-components", {
          "displayName": true,
          "ssr": true
        }]
      ]
    }
  },
  "presets": ["react-app"],
  "plugins": [
    ["babel-plugin-styled-components", {
      "ssr": true
    }]
  ]
}

server-side .babelrc:
{
  "env": {
    "development": {
      "plugins": [
        ["babel-plugin-styled-components", {
          "displayName": true,
          "ssr": true
        }]
      ]
    }
  },
  "presets": ["env", "react", "stage-2"],
  "plugins": [
    ["babel-plugin-styled-components", {
      "ssr": true
    }]
  ]
}

Still getting this warning 🤔

Yes it should be enabled for both scenarios. Does the "react-app" preset enable file transforms that aren't present in the server-side config? If the files are materially different as a result of transpilation, that can effect how things are hashed.

So this would also be a lot easier to resolve if we may see the code before & after the transpilation :)

@marciaga some input/output files (or code rather) and more details on the transpilation would give us more to go after so we could help you 👍

@kitten I can't post the original code, but here's a minimal example that shows the issue. It seems related to the use of .extend but I couldn't find a solution in issues, though this seems like it may be on someone's radar. Regardless, it appears as though the API docs state this usage should work.
https://github.com/marciaga/ssr-sc

Closing due to non-responsiveness. Please make a new issue with reproduction if you experience a problem.


⚠ SceneTime has degraded performance

In dc22e02, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1650 ms

Resolved: SceneTime performance has improved in 977b5f2 after 6 minutes.


How to create an auto upload image url with this?

Hi, I'm looking at how to create this but using this library, instead of hardcoding it like this:
   const cloudinaryUrl = `https://res.cloudinary.com/${cloudName}/image/upload/${mapping}/${publicID}`;

Hi @cesarvarela , Thanks for reaching out.
We have examples of how you can build URLs to your assets using this library in the following section of the documentation:
https://cloudinary.com/documentation/javascript2_image_transformations#deliver_and_transform_images
For auto-upload specifically, since the mapping is a folder or folders, that is already part of the public_id and that can be passed to the dedicated SDK method. For example, const sample_img_url = cld.image("test/sample.jpg").toURL(); will give a URL similar to the one you shared for the sample.jpg but if it was inside the "test" folder.
Please try this out and let me know if you run into any issues. You can find the installation steps here: https://cloudinary.com/documentation/javascript2_quick_start#1_install_packages

Hi, thanks, I understand now.
Suggestion: maybe add some util to avoid having to make string manipulation to get the id?


Ethon::Errors::InvalidOption - The option: path_as_is is invalid.

Trying to use CURLOPT_PATH_AS_IS via :path_as_is option results in the following error:

Ethon::Errors::InvalidOption (The option: path_as_is is invalid.)

It's defined in Ethon here: https://github.com/typhoeus/ethon/blob/master/lib/ethon/curls/options.rb#L253
Version: typhoeus 1.4.0
Code to reproduce:
require 'typhoeus'

Typhoeus::Request.new("https://github.com",  method: :get, path_as_is: true).run

Result:
Traceback (most recent call last):
       16: from /home/user/.rvm/rubies/ruby-2.7.1/bin/irb:23:in `<main>'
       15: from /home/user/.rvm/rubies/ruby-2.7.1/bin/irb:23:in `load'
       14: from /home/user/.rvm/rubies/ruby-2.7.1/lib/ruby/gems/2.7.0/gems/irb-1.2.3/exe/irb:11:in `<top (required)>'
       13: from (irb):2
       12: from /home/user/.rvm/gems/ruby-2.7.1/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:26:in `run'
       11: from /home/user/.rvm/gems/ruby-2.7.1/gems/typhoeus-1.4.0/lib/typhoeus/request/stubbable.rb:25:in `run'
       10: from /home/user/.rvm/gems/ruby-2.7.1/gems/typhoeus-1.4.0/lib/typhoeus/request/block_connection.rb:31:in `run'
        9: from /home/user/.rvm/gems/ruby-2.7.1/gems/typhoeus-1.4.0/lib/typhoeus/request/cacheable.rb:18:in `run'
        8: from /home/user/.rvm/gems/ruby-2.7.1/gems/typhoeus-1.4.0/lib/typhoeus/request/operations.rb:15:in `run'
        7: from /home/user/.rvm/gems/ruby-2.7.1/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:81:in `get'
        6: from /home/user/.rvm/gems/ruby-2.7.1/gems/ethon-0.12.0/lib/ethon/easy/http.rb:39:in `http_request'
        5: from /home/user/.rvm/gems/ruby-2.7.1/gems/ethon-0.12.0/lib/ethon/easy/http/get.rb:17:in `setup'
        4: from /home/user/.rvm/gems/ruby-2.7.1/gems/ethon-0.12.0/lib/ethon/easy/http/actionable.rb:99:in `setup'
        3: from /home/user/.rvm/gems/ruby-2.7.1/gems/ethon-0.12.0/lib/ethon/easy.rb:235:in `set_attributes'
        2: from /home/user/.rvm/gems/ruby-2.7.1/gems/ethon-0.12.0/lib/ethon/easy.rb:235:in `each_pair'
        1: from /home/user/.rvm/gems/ruby-2.7.1/gems/ethon-0.12.0/lib/ethon/easy.rb:238:in `block in set_attributes'
Ethon::Errors::InvalidOption (The option: path_as_is is invalid.)

Never mind, it appears to have been a bug upstream in Ethon, fixed in https://github.com/typhoeus/ethon/pull/171


document new jenkinsLocale multi-selection usage

https://github.com/zebrunner/pipeline-ce/issues/143

closing as won't fix so far. feaature will be available for beta testing on productions environemts only. if all good we can think about publishing it to user guide.


docs command

(moved from https://github.com/denali-js/denali/issues/57)
Denali could expose a docs CLI command. This would serve up the Denali documentation for the version in use on a local server. It could also generated automated docs for the API based on analysis of the Action classes.
Action classes could provide a hook (i.e. docs()) that returns information about the action in question. Addons could provide additional rendering capabilities (i.e. a validation addon could render an "allowed params" section, and could add data to the "possible errors" section of the docs() hook payload).

Lol move back to denali since that's where the command would be implemented ... denali-js/denali#350


Docs: A link to the project site has been added

Added a link to the project site in the documentation

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1