“Anyone” Sensor

I’ve been using homebridge-people-x for a long time and one of its nice features is an “Anyone” sensor that triggers when any defined device is found. This makes it easier to create automations around everyone leaving and the first person  coming home. Would it be possible to add similar functionality to homebridge-network-presence? Thank you!

Good idea... will definitely add it!

This would be great to add. If it was I cou,d move across to using it rather than the “people” plugin that I’ve currently got but is no longer being maintained.

I did it!
try v1.1.1 + add it (anyoneSensor) in the plugin settings/config

Thanks for adding this, but I’m getting an error after updating and enabling the sensor.
TypeError: Cannot read property 'toLowerCase' of undefined
    at /usr/lib/node_modules/homebridge-network-presence/lib/network.js:148:77
    at Array.find (<anonymous>)
    at /usr/lib/node_modules/homebridge-network-presence/lib/network.js:148:51
    at Array.forEach (<anonymous>)
    at NetworkPresence.removeCachedDevices (/usr/lib/node_modules/homebridge-network-presence/lib/network.js:143:19)
    at NetworkPresence.init (/usr/lib/node_modules/homebridge-network-presence/lib/network.js:8:35)
    at HomebridgeAPI.emit (events.js:327:22)
    at HomebridgeAPI.signalFinished (/usr/lib/node_modules/homebridge/src/api.ts:251:10)
    at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:158:14)
    at cli (/usr/lib/node_modules/homebridge/src/cli.ts:80:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

In case it’s helpful, here’s my config for the plugin:
  {
      "platform": "NetworkPresence",
      "debug": true,
      "interval": 10,
      "threshold": 15,
      "anyoneSensor": true,
      "devices": [
          {
              "name": "Phone1",
              "ip": "<IP_ADDRESS>",
              "threshold": 15
           },
           {
              "name": "Phone2",
              "ip": "<IP_ADDRESS>",
              "threshold": 15
           }
      ]
  }

sorry... I missed something... try v1.1.2

That fixed the error. Thanks again for adding this so quickly!


Detox v18/v19 crashes sometimes on iOS in DetoxSync

Description
When updating from v17.latest of Detox to v18.latest I started seeing flakiness in the react-native-firebase e2e tests.
This does not happen all the time, it only happens sometimes. It looks like a bit of a race that some object destruct code is losing sometimes?

[x] I have tested this issue on the latest Detox release and it still reproduces

Reproduction
Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.

The react-native-firebase test suite is fully open source - instructions here https://github.com/invertase/react-native-firebase/blob/master/tests/README.md
git clone git@github.com:invertase/react-native-firebase.git
yarn && yarn tests:ios:pod:install && yarn tests:ios:build
In a few terminals: yarn tests:packager:jet and yarn tests:emulator:start and yarn tests:ios:test

Sometimes (not every time, maybe 10% of the time? 20% fo the time?) it will crash with the stack below.
Expected behavior
It rolls through all our tests. For the purposes of this issue, it runs at all :-) - if it is going to crash, it will do so with no tests passing, if it starts running and a single test passes, they will all roll through It usually crashes at startup but sometimes will make it through a handful of tests first.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Detox: v18.22.0
React Native: 0.66.0-rc.4 (about to be 0.66.0 with no changes)
Node: v14.17.6
Device: apple simulator
Xcode: 12.5.1 (so I can avoid ios15 issues #2895 which are in progress separately)
iOS: 14.5 (to avoid issues with ios15 #2895)
macOS: macOS 11.6 (Apple Silicon M1 or Intel Mac - I've seen it on both)

Logs
It either works through all tests, or sometime shortly after app launch it crashes like this:

detox[98942] ERROR: [WS_ERROR] The app has crashed, see the details below:

The app has crashed, see the details below:

Signal 11 was raised
(
        0   Detox                               0x00000001104c5a15 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
        1   Detox                               0x00000001104c8e10 __DTXHandleCrash + 464
        2   Detox                               0x00000001104c9555 __DTXHandleSignal + 59
        3   libsystem_platform.dylib            0x00007fff60335d7d _sigtramp + 29
        4   ???                                 0x00007f8fdf920050 0x0 +<PHONE_NUMBER>38384
        5   CoreFoundation                      0x0000000114170833 -[__NSDictionaryM dealloc] + 128
        6   libobjc.A.dylib                     0x0000000113f3b604 objc_object::sidetable_release(bool, bool) + 174
        7   libobjc.A.dylib                     0x0000000113f378ad _object_remove_assocations + 562
        8   libobjc.A.dylib                     0x0000000113f34c02 objc_destructInstance + 84
        9   libobjc.A.dylib                     0x0000000113f3ad88 -[NSObject dealloc] + 21
        10  libobjc.A.dylib                     0x0000000113f3b604 objc_object::sidetable_release(bool, bool) + 174
        11  CFNetwork                           0x0000000111038610 _CFNetworkHTTPConnectionCacheSetLimit + 162696
        12  CFNetwork                           0x0000000110e81183 CFNetwork + 24963
        13  DetoxSync                           0x0000000146cf0220 ____detox_sync_dispatch_wrapper_block_invoke + 23
        14  libdispatch.dylib                   0x00000001148c370d _dispatch_call_block_and_release + 12
        15  libdispatch.dylib                   0x00000001148c48df _dispatch_client_callout + 8
        16  libdispatch.dylib                   0x00000001148cae15 _dispatch_lane_serial_drain + 715
        17  libdispatch.dylib                   0x00000001148cb9c3 _dispatch_lane_invoke + 455
        18  libdispatch.dylib                   0x00000001148d5f81 _dispatch_workloop_worker_thread + 772
        19  libsystem_pthread.dylib             0x00007fff6034045d _pthread_wqthread + 314
        20  libsystem_pthread.dylib             0x00007fff6033f42f start_wqthread + 15
)

If you are experiencing a timeout in your test

[ ] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much, I have read synchronization debug documentation and am providing the relevant synchronization debug output below:

If you are seeing a Detox build problem (e.g. during npm install, not detox build)

[ ] I am providing the npm install log below:

Device and verbose Detox logs

[ ] I have run my tests using the --loglevel trace argument and am providing the verbose log below:

Reproducible Demo
In case of a bug or a crash please add an example forking from the DetoxTemplate (follow the guidelines there) which reproduce the issue and ready to clone.
Add to the DetoxTemplate (After you fork it), the minimal things which required to reproduce the issue (3rd party libraries / e2e tests).

probably related https://github.com/wix/Detox/issues/2641

Sorry for the close reopen, an incorrect mobile tap on my part.
That thread looks unrelated except for firebase
Our tests are not parallel at all and the stack is different

@mikehardy this is an excellent report, which has real potential in helping us figuring out issues with DetoxSync.

Here's a GitHub Actions run showing it happening in case that's useful https://github.com/invertase/react-native-firebase/runs/3783157278?check_suite_focus=true#step:21:13
I have determined that it is not always immediately on startup, but it's usually pretty close to startup. Reproduction rate still seems to be about 10-20% of my local intel-mac e2e runs in the react-native-firebase suite.
Not sure how to mitigate it as it doesn't always happen on startup, and I'm not sure how to catch an "app crashed" error so that I can attempt to just relaunch the app and see if it will go through afterwards / do "app crashed retries"

In my case, this problem is reproducible on every try.
x86 on macos-11 on github actions
    Signal 6 was raised
    (
    	0   Detox                               0x00000001068a4d45 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x00000001068a79e0 __DTXHandleCrash + 464
    	2   Detox                               0x00000001068a8125 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x000000010e774d7d _sigtramp + 29
    	4   ???                                 0x0000000106834b80 0x0 +<PHONE_NUMBER>
    	5   libsystem_c.dylib                   0x000000010e488cb5 abort + 120
    	6   libc++abi.dylib                     0x000000010e188692 abort_message + 241
    	7   libc++abi.dylib                     0x000000010e179dfd demangling_unexpected_handler() + 0
    	8   libobjc.A.dylib                     0x000000010b1c7ace _objc_terminate() + 96
    	9   Detox                               0x00000001068a861f __dtx_terminate() + 157
    	10  libc++abi.dylib                     0x000000010e187aa7 std::__terminate(void (*)()) + 8
    	11  libc++abi.dylib                     0x000000010e187a49 std::terminate() + 41
    	12  libdispatch.dylib                   0x000000010e2ca8f3 _dispatch_client_callout + 28
    	13  libdispatch.dylib                   0x000000010e2d0e15 _dispatch_lane_serial_drain + 715
    	14  libdispatch.dylib                   0x000000010e2d198c _dispatch_lane_invoke + 400
    	15  libdispatch.dylib                   0x000000010e2dbf81 _dispatch_workloop_worker_thread + 772
    	16  libsystem_pthread.dylib             0x000000010e79845d _pthread_wqthread + 314
    	17  libsystem_pthread.dylib             0x000000010e79742f start_wqthread + 15
    )

      43 |     // on ios keyboard is presented so it needs to be dismissed
      44 |     if (device.getPlatform() === 'ios') {
    > 45 |       await element(by.text('Phone number *')).tap();
         |                                                ^
      46 |     }
      47 |
      48 |     // todo: fix

      at _callee2$ (signup.e2e.js:45:48)
      at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
      at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:293:22)
      at Generator.next (../node_modules/regenerator-runtime/runtime.js:118:21)
      at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
      at invoke (../node_modules/regenerator-runtime/runtime.js:154:20)
      at ../node_modules/regenerator-runtime/runtime.js:164:13

m1 on macos-12 on mba
    The app has crashed, see the details below:

    Signal 6 was raised
    (
        0   Detox                               0x000000010ead0d45 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
        1   Detox                               0x000000010ead39e0 __DTXHandleCrash + 464
        2   Detox                               0x000000010ead4125 __DTXHandleSignal + 59
        3   libsystem_platform.dylib            0x0000000115542e2d _sigtramp + 29
        4   ???                                 0x0000000000000000 0x0 + 0
        5   libsystem_c.dylib                   0x0000000112cf6684 abort + 123
        6   libc++abi.dylib                     0x00000001108df5c2 abort_message + 241
        7   libc++abi.dylib                     0x00000001108d076d demangling_unexpected_handler() + 0
        8   libobjc.A.dylib                     0x0000000110703c1b _objc_terminate() + 96
        9   Detox                               0x000000010ead461f __dtx_terminate() + 157
        10  libc++abi.dylib                     0x00000001108de9e7 std::__terminate(void (*)()) + 8
        11  libc++abi.dylib                     0x00000001108de998 std::terminate() + 56
        12  libdispatch.dylib                   0x000000011396ea6a _dispatch_client_callout + 28
        13  libdispatch.dylib                   0x000000011397508b _dispatch_lane_serial_drain + 718
        14  libdispatch.dylib                   0x0000000113975c31 _dispatch_lane_invoke + 400
        15  libdispatch.dylib                   0x00000001139806de _dispatch_workloop_worker_thread + 772
        16  libsystem_pthread.dylib             0x0000000113c3a08f _pthread_wqthread + 326
        17  libsystem_pthread.dylib             0x0000000113c3901b start_wqthread + 15
    )

      30 |
      31 |     await element(by.text('Not a member yet? Register')).tap();
    > 32 |     await element(by.id('register-email-input')).replaceText(
         |                                                  ^
      33 |<EMAIL_ADDRESS>      34 |     );
      35 |

      at _callee2$ (signup.e2e.js:32:50)
      at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
      at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:293:22)
      at Generator.next (../node_modules/regenerator-runtime/runtime.js:118:21)
      at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
      at invoke (../node_modules/regenerator-runtime/runtime.js:154:20)
      at ../node_modules/regenerator-runtime/runtime.js:164:13

@amq I see no instance of the string DetoxSync in your stack traces in any location. I believe your crash is unrelated, and is likely only showing up with Detox at all because Detox registers itself as a general crash handler in the system so all crashes go through it. Your crash does not actually look Detox related at all.

Detox: v18.22.1
React Native: 0.64.33
Node: v14.15.4
Device: apple simulator
Xcode: 12.5.1
iOS: 14.5
This occurs for our team in CircleCI only:
DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
    	0   Detox                               0x0000000110dc66c5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x0000000110dc9250 __DTXHandleCrash + 464
    	2   Detox                               0x0000000110dc9991 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x000000011cc55d7d _sigtramp + 29
    	4   ???                                 0x0000000000000000 0x0 + 0
    	5   DetoxSync                           0x0000000152985ca8 +[DTXRunLoopSyncResource _existingSyncResourceWithRunLoop:clear:] + 120
    	6   DetoxSync                           0x0000000152980734 +[DTXSyncManager _untrackCFRunLoop:] + 45
    	7   DetoxSync                           0x00000001529806d5 +[DTXSyncManager untrackCFRunLoop:] + 75
    	8   DetoxSync                           0x000000015297ca0b swz_runRunLoopThread + 116
    	9   Foundation                          0x00000001117458a9 __NSThread__start__ + 1068
    	10  libsystem_pthread.dylib             0x000000011cc7c8fc _pthread_start + 224
    	11  libsystem_pthread.dylib             0x000000011cc78443 thread_start + 15
    )

Found this disclaimer in the Firebase performance SDK docs:

Validates theories that swizzling is conflicting

I just opened a related issue on firebase-ios-sdk repo: https://github.com/firebase/firebase-ios-sdk/issues/9083.
Also, this seems to be an issue we may be able to solve from DetoxSync's end. I'll investigate this a bit more but the general direction is to dispose the runtime-generated class that DetoxSync created before Firebase tries to dispose their generated class (the superclass of it), which will prevent the crash of calling objc_disposeClassPair() on a class before disposing its subclasses. See Apple docs:

Do not call this function if instances of the cls class or any subclass exist.

At the moment, the quickest solution I can offer is to disable Firebase Performance when Detox Tests are running.

mitigation via new command line environment variable on the app launch appears to work

SIMCTL_CHILD_NSZombiesEnabled=1

https://github.com/firebase/firebase-ios-sdk/issues/9083#issuecomment-992507953

@mikehardy assuming this will this work with yarn detox test -c. noticed you pass the exact path to the binary in node_modules

@shamilovtim unknown and I don't want to speculate, sorry - all I know is that I've got at least some mitigation with the change. I think I still see crashes under some circumstances, but I think I've got an improvement if I'm running the experiments I think I'm running and I'm interpreting results correctly. Sincere apologies for being so weasel-y / vague about it. This stuff is subtle and I'm not sure of much at the moment, takes time

@mikehardy I see, thanks for your efforts on this. Sorry for off topic but is there a reason you execute detox as node_modules/.bin/detox rather than yarn detox or npm detox?

Probably not? Per my bio I attempt to reverse entropy as a full-time thing, but there always seems to be more of it ;-). Most likely that is unnecessary, at least I'm not aware of any reason why we reach into .bin, and I'm aware than in a yarn v2+ future that's non-functional

Was previous having this same stacktrace as https://github.com/wix/Detox/issues/3000#issuecomment-992731382
Tried @mikehardy's solution (but beware of the typo in the env variable!) Adding SIMCTL_CHILD_NSZombieEnabled=YES to my test script resolved the crash for me (to be determined if it's consistent or just reduces crash rate as indicated in another thread I'm having trouble finding right now)
Thanks @mikehardy for your investigation & work to uncover this fix!

@asafkorem and the folks in the firebase iOS repo deserve the credit but I'm glad it works for you. I'm 100% green in CI with this mitigation

#3135 was merged, it solve (with a workaround) the issue of DetoxSync crashes when Firebase/Performance is integrated, it was tested on the example apps that reproduced this issue.
We will release a version with this change soon.
Once you have updated a version (to the latest/next version), if any of you are still having Signal 11 crashes on DetoxSync, please open a new bug report with the required details.
Huge thanks @mikehardy for your support and the assistance in solving this problem.


Add the ability to POST text messages.

Example code (with fake phone numbers):
module Main where

import Control.Monad.IO.Class (liftIO)
import System.Environment (getEnv)
import Twilio.Message as Message
import Twilio.Messages as TM
import Twilio.Types

main :: IO ()
main = do
  msg <- runTwilio' (getEnv "ACCOUNT_SID")
                    (getEnv "AUTH_TOKEN")
         $ TM.post msg
  print (Message.sid msg)

  where
    msg = TM.SendMessage
      { TM.sendTo = "+19193238866"
      , TM.sendFrom = "+13302227070"
      , TM.sendBody = "test message"
      }

Let me know what you think of the PR. I tried to error on the side of not making big changes.
For instance, since we now have a postForAccount, it would make sense for symmetry reasons to change the old requestForAccount to getForAccount, but I left it alone because I didn't want my first real PR to change every file in the program.

Thanks!

it would make sense for symmetry reasons to change the old requestForAccount to getForAccount

I agree. I think it's fine to leave as is, since I anticipate more changes... especially when #1 happens.
Another open question, and not necessarily a blocker to merging this PR: do we want to name the data types for POSTing to resources according to their use cases (for example, SendMessage) or more generically (for example, POSTMessageRequestBody). I'm not sure at this time.
Feel free to add yourself to the AUTHORS file.

I'd definitely be fine with changing the name SendMessage, how about PostMessageRequest or PostMessage (or either of those with "Post" in all caps)?

Re: AUTHORS: Thanks! I amended the commit to add myself in.

Hmm, I guess I like PostMessage. Once you amend with that change I'll merge.

Sweet, I amended the commit to use PostMessage.

Thanks, @seagreen!


Questions :

Hello,
Is there a quick way to show another page than /login state when starting the app ?
Thanks
Philippe

Just modified :
if ($location.path() === '/router' || $location.path() ===
'/login') {
console.log('401 while on router on login path');
} else {
if ($location.path() !== '/register') {
$location.path**('/')**;
}
and created a state like :
.state('index', {
url: '/',
template: 'hello'
})
So the app is redirecting to showing 'hello.
I close the question.


DX: PHPUnit - groom configuration of time limits

Coverage remained the same at 91.971% when pulling d330c77d697617f63ca8c223bd8431524aa82c56 on keradus:2.17_missing_annotation into 21934b58583ce04e91a92903fbaaaa29cf1313a6 on FriendsOfPHP:2.17.

Coverage remained the same at 91.971% when pulling d330c77d697617f63ca8c223bd8431524aa82c56 on keradus:2.17_missing_annotation into 21934b58583ce04e91a92903fbaaaa29cf1313a6 on FriendsOfPHP:2.17.


Curve25519: fix const-initialization

Clang is permissive of this, but gcc fails.

+1

Pushed, thanks.


Replace deprecated Gradle classifier usage archiveClassifier

source: link
artifacts are properly generated:
❯ ls libs
vavr-1.0.0-SNAPSHOT-javadoc.jar      vavr-1.0.0-SNAPSHOT-test-sources.jar
vavr-1.0.0-SNAPSHOT-sources.jar      vavr-1.0.0-SNAPSHOT.jar

Codecov Report

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

@@            Coverage Diff            @@
##             master    #2530   +/-   ##
=========================================
  Coverage     93.04%   93.04%
  Complexity     5299     5299
=========================================
  Files            89       89
  Lines         12761    12761
  Branches       1606     1606
=========================================
  Hits          11874    11874
  Misses          702      702
  Partials        185      185

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 a21a9ba...4399523. Read the comment docs.


Ethernet over USB docs and helper scripts

Summary

Adds defconfig for Ethernet over USB 2.0 High Speed that works reliably
Removes other redundant Ethernet over USB defconfigs
Improves Ethernet over USB helper script and moves it to tools
Updates SAMA5D3-Xplained README.txt to cover setup and usage

Impact

None if you don't use the CDC ECM driver
CDC ECM driver can now do 4.4 MBytes/s (34 Mbits/s) on the SAMA5D3-Xplained

Limitations / TODO

Reliability seems to depend on correct IOB configuration. This one was arrived at via trial and error.

Testing

Via an improved tcpblaster, this will be submitted in another PR

How To Verify

Set up via the README.txt instructions and use tcpblaster to verify speed and ability to run for long times.

@xiaoxiang781216 Thanks for the improvements. It's night here in Seattle, I'll make the changes you suggested tomorrow. 🙂

@xiaoxiang781216 I made the requested improvements, rebased, and force-pushed the branch. Will you check it out to see if there are more changes you'd like to see?


Adding toBytes and fromBytes to Nat32

I'm not sure how to go about testing, but I tried to add tests as well.  This same pattern can be followed for the hard edged NatXz.  The Nat to bytes will need a bit more finesse than I have at the moment.

Thanks!
We probably want to indicate the endianness in these functions, i.e. Nat32.toBytesLE and Nat32.toBytesBE or something like that.
Also, the fromBytes function should probably do some bound checking, and return an ?Nat32 to indicate failure?

still ok?


Getting the object name through the Ghidra Script

I have a script written to work with ghidra. I am doing some analysis in the script and save the results in a file. Right now, I am passing the name when a prompt ask the file name to save upon running the script. Though this is ok for one, I need to run this script in more than 100 objects at once(using the headless analyzer) and I want the file name to automatically taken from the object name. How could I do this?
For example, let's say I have an object file called "mqtt.o" I need to take this name(mqtt) while saving the file which contains the results. I looked through the API, but still could not find a way to get the name of the object of analysis. Any help is appreciated. Thanks.

I'm going to make an assumption here that object is the currentProgram. If so you can just use currentProgram.getName(). This should hold true for any DomainObject.

I dont know how I missed this. Thanks!

I dont know how I missed this. Thank you very much!

You're welcome.


Video timeline: On clicking Play button only audio wave is playing not the video in video-player

On clicking Play button only audio wave is playing not the video in video-player.

We are using 0.7.5 version of label studio and we are using config like below...

And the Input Preview is like below...
{
    "video": "<video src='https://app.heartex.ai/static/samples/opossum_snow.mp4' width=100% muted /><img src onerror=\"$=n=>document.getElementsByTagName(n)[0];a=$('audio');v=$('video');a.onseeked=()=>{v.currentTime=a.currentTime};a.onplay=()=>v.play();a.onpause=()=>v.pause()\" />",
    "videoSource": "https://app.heartex.ai/static/samples/opossum_snow.mp4"
}

This version of LS is very old and is not supported.
Usually this problem happened when video is not fully loaded.


Crash in clEnqueueNDRangeKernel on Odroid XU-4 with Ubuntu 18.04

Output of 'strings libarm_compute.so | grep arm_compute_version': arm_compute_version=v18.08 Build options: {'embed_kernels': '1', 'opencl': '1', 'neon': '0', 'build': 'cross_compile', 'debug': '0', 'arch': 'armv7a', 'Werror': '0'} Git hash=unknown
Platform: Odroid XU-4
Operating System: Ubuntu 18.04

Problem description:
I have crash every time in configure methods of the CL layers (CLConvolutionLayer for example) if I initialize the TensorInfo for CLTensor objects with the init(const TensorShape &tensor_shape, Format format) method or with the TensorInfo(const TensorShape &tensor_shape, Format format) constructor.
I found workaround to use init_auto_padding(const TensorShape &tensor_shape, Format format) for the initialization, but wondering why the init() does not work.
The crash takes place after the call to the clEnqueueNDRangeKernel() OpenCL function, which returns CL_INVALID_GLOBAL_WORK_SIZE status. I explored this a little bit under debugger and found, the global_work_size parameter of this function receives an array with one dimension set to 0, when I use TensorInfo::init(). When TensorInfo::init_auto_padding() is used that dimension is set to 3 in my example program.

Please provide your test code that highlights the issue

Hi @tablyazimov ,
In addition to test code, it would also be important to know which OpenCL version you are using.
Thanks,
G.

This is the code example which I constructed:
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLFunctions.h"
#include "arm_compute/runtime/CL/CLScheduler.h"
static void initializeTensor(arm_compute::CLTensor& tensor, const arm_compute::TensorShape& ts) {
arm_compute::TensorInfo ti(ts, arm_compute::Format::F32);
//arm_compute::TensorInfo ti;// - with the next line also cause crash
//ti.init(ts, arm_compute::Format::F32);
//ti.init_auto_padding(ts, arm_compute::Format::F32);// - but with this everything works
tensor.allocator()->init(ti);
tensor.allocator()->allocate();
}
static void fillTensor(arm_compute::CLTensor& tensor, float scalar) {
tensor.map();
arm_compute::Window window;
window.use_tensor_dimensions(tensor.info()->tensor_shape());
arm_compute::Iterator iter(&tensor, window);
arm_compute::execute_window_loop(window, [&scalar, &iter](const arm_compute::Coordinates&) {
memcpy(iter.ptr(), &scalar, sizeof(float));
}, iter);
tensor.unmap();
}
int main(int argc, char* argv[]) {
arm_compute::CLScheduler::get().default_init();
arm_compute::TensorShape in_shape(8, 4, 3);
arm_compute::CLTensor in;
initializeTensor(in, in_shape);
fillTensor(in, 5);
arm_compute::TensorShape out_shape(4, 2, 3);
arm_compute::CLTensor out;
initializeTensor(out, out_shape);
arm_compute::TensorShape weights_shape(3, 3, 3, 3);
arm_compute::CLTensor weights;
initializeTensor(weights, weights_shape);
fillTensor(weights, 1);
arm_compute::PadStrideInfo pad_stride_info(2, 2, 1, 1);
arm_compute::CLConvolutionLayer conv_layer;
conv_layer.configure(&in, &weights, nullptr, &out, pad_stride_info);// Crash here
conv_layer.run();
arm_compute::CLScheduler::get().sync();
return 0;
}

You need to call allocate() after you've configured the function otherwise your tensor is allocated without any padding.
See the documentation: https://arm-software.github.io/ComputeLibrary/v18.08/architecture.xhtml#padding
Also compiling with debug=1 would probably fire an assert when you try to configure your function.

Thank you, AnthonyARM! It seems everything works, when I do allocation after the layer configuration.

Dear giuseros,
Unfortunately, I am not quite sure how to obtain the OpenCL library version. The only thing I have found on the device is the location of the library:
/usr/lib/arm-linux-gnueabihf/libOpenCL.so -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so

Hi @tablyazimov ,
I see you resolved, anyway the OpenCL version can be obtained through the CLKernelLibrary::get_device_version()  function.

Hi @giuseros ,
Thank you very much!


fix: avoid generating empty content for DALL-E 3

Similar to the fix in Bedrock Stability

Closed as not relevant anymore: GPT4 turned out to accept empty messages just fine.


Tooltip is too wide

We should cap the width of the tooltip.

Fixed this for now, just by adding a
...
 wrapper in the radio description attribute.


[BitSail][Connector] Support ElasticSearch Source connector.

Is your feature request related to a problem? Please describe
Support ElasticSearch reader.
Describe the solution you'd like
Describe alternatives you've considered
Additional context

I want to try this, please assign to me, thx.

Nice, please take your time :D

In PR #336
I use scroll api to implement paging query.
Each index is now considered a split, may be we coule use the slice parameter to break it down later, just like this link
The job conf looks like this:
{
  "job": {
    "reader": {
      "class": "com.bytedance.bitsail.connector.elasticsearch.source.ElasticsearchSource",
      "es_hosts": ["http://localhost:1234"],
      "es_index": "test1, test2, test3",
      "scroll_size": 3,
      "scroll_time": "1m",
      "columns": [
        {
          "index": 0,
          "name": "id",
          "type": "integer"
        },
        {
          "index": 1,
          "name": "text_type",
          "type": "text"
        },
        {
          "index": 2,
          "name": "keyword_type",
          "type": "keyword"
        },
        {
          "index": 3,
          "name": "long_type",
          "type": "long"
        },
        {
          "index": 4,
          "name": "date_type",
          "type": "date"
        }
      ]
    }
  }
}

@BlockLiu do you think it's ok, thx.

I think it's a good idea.
And from the note below, I think we can get the shard count at first and then build slices.

Namely, we can use shard count as slice number.

Namely, we can use shard count as slice number.

Thank you for your suggestion, I will continue to complete


Fixed a bug in Firefox and scrollbar usage

In Firefox, using the scrollbars (with the mouse pointer) would trigger a region selection. The fix for this might be a bit hacky, but it works.
Tested in Mac Chrome, Firefox, Safari, and Windows Chrome, Firefox.
Fixes #830, fixes #748, fixes #843

@katspaugh Could you possibly publish this promptly? 😄

Rationale: I realize this could be a Firefox bug (it's hard to say without more research), but since this is causing problems for multiple users, I figured a workaround might be a good idea.

Thanks a lot, merged!

@katspaugh Any time! I'll keep a close eye out for the next npm release.

@ffxsam I've just published version 1.2.2.

Perfect, thank you!


[keepalived-vip] multi-nic systems not supported

If the worker nodes of the cluster have multiple NICs there is currently no way to control where nic the VIP will be attached to. If there is a private (eth0) and public interface (eth1) for the worker there must be a way to choose which adapter to associate the VIP to.

I don't know how, but at first it was attached con the right interface (eth1) and working perfectly,
now after some restart / delete /create still working but is attached on my private interface (eth2)
Does that make sense ?

I am also seeing the same issue. I see the track_interface in vrrp_instance config section also set to a wrong interface. May be, it is not sure which nic to pick and is probably picking an interface randomly.
If we can pick the interface that has an IP from the same subnet as the VIP, the problem would be fixed for our setup.

Is there any solution? I have the same issue and idea to solve it. Multiple nics and the VIP do not match the nic configured in the keepalived.conf.

Is there any solution?
/reopen
/remove-lifecycle rotten

/remove-lifecycle rotten


oai.up mapper validation results

See: #26982 (10-25); #26981 (10-25); #26318 (10-25); #26315 (10-25); #26311 (10-25)

[ ] language: Map language (examples in all collections)
[ ] source: Map source (examples in all collections)
[ ] description: Ensure the "/drop-long-values?field=description&max_length=150," is correctly working with <description> (specific examples in 26315 and 26311]
[ ] is_shown_by: Rikolti is mapping the text from <description>. The vernacular data has two s--one for actual words, the second for a /thumbnail.jpg URL. We actually would like the /preview.jpg URL (which is not available in the vernacular; the current mapper is transforming these from the /thumbnail.jpg URL). Q: Is there a simple and predictable logic that can compute the /thumbnail.jpg URL in  and transform it to /preview.jpg? (Also note that we do not want the descriptive text in  to appear in this field.) (examples in all collections)

Note: Some records do not have "is_shown_by" in either Legacy or Rikolti--these are acceptable (they do not have thumbails to provide).

Example of the vernacular data from #26981. This example is for a text object.
The best URL we can find for is_shown_by: <dc:description>https://scholarlycommons.pacific.edu/trai/1000/thumbnail.jpg</dc:description>
What we want:
https://scholarlycommons.pacific.edu/trai/1000/preview.jpg

		**oai:scholarlycommons.pacific.edu:trai-1000**
		2019-12-19T20:17:27Z
publication:trai
publication:wa
publication:libraries
publication:hasc
publication:tra

Interview with Yolande Bavan Member of Lambert, Hendricks and Bavan Vocalist, The Real Ambassadors, 1962 Monterey Jazz Festival Date of Interview: September 23, 2012
Langdon, John L.
Bavan, Yolande
**Dave and Iola Brubeck created The Real Ambassadors in the late 1950s. The jazz musical pointed out the absurdity of segregation and makes the case that artists such as Louis Armstrong are the best and "real" ambassadors to demonstrate a nation's ideals. It was recorded in 1961 and performed live only once. Despite their efforts, the play never made it to stage. Here is a collection of letters, photographs, scripts, and audio that document the creation of The Real Ambassadors.**
2012-09-23T07:00:00Z
text
application/pdf
**https://scholarlycommons.pacific.edu/trai/3
https://scholarlycommons.pacific.edu/context/trai/article/1000/viewcontent/Yolande_Bavan.pdf**
To view additional information on copyright and related rights of this item beyond that of educational use - such as to purchase copies of images and/or obtain permission to publish them, click here to view the Holt-Atherton Special Collections policies.
The Real Ambassadors - Interviews
eng
Scholarly Commons
dc:subjectJazz musicians</dc:subject>
dc:descriptionhttps://scholarlycommons.pacific.edu/trai/1000/thumbnail.jpg</dc:description>
	</oai_dc:dc>
</metadata>


Feat criteria

as required by current aurelia-auth
updateMe(body, criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {
criteria = {id: criteria};
}
return this.client.update(this.auth.getProfileUrl(), criteria, body);
}

wanted all headers, but i didn't find that in express docs!?

@doktordirk I'm pretty sure that's just req.headers :)

fyi: babel-eslint 4.1.7 out. "escope": "3.3.0"  can get removed again


--all only reports all files with --reporter=text

Expected Behavior
With --reporter=cobertura or --reporter=lcov, --all should output in /coverage for every input file.
Observed Behavior
Output is only produced for all files with --reporter=text.  With --reporter=cobertura or --reporter=lcov, the effect of the --all seems to penetrate only one level deep from the project root.
For example, modules/process.js is included in the report, but components/header/frame.js is not.
Forensic Information
Operating System:
Linux lx-1101 3.13.0-112-generic #159-Ubuntu SMP Fri Mar 3 15:26:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Environment Information:
https://gist.github.com/dbaston/22688010a41a77624fb747b2b1220b53

hmm. This might actually be related to our cobertura [and clover] reporters being kinda broken ATM... I usually use --reporter=lcov which prints everything just fine AFAICT. Mind giving that a try? :)
See https://github.com/istanbuljs/istanbuljs/issues/13 and https://github.com/istanbuljs/istanbuljs/issues/14

@dbaston perhaps you could share a project that's having this issue, I'd love to get to the bottom of this.

I usually use --reporter=lcov which prints everything just fine AFAICT.

I'm having the same problem with --reporter=lcov.  The output of --all is not the same as the output without --all, but the "allness" only penetrates one level deep.
@bcoe I don't have a project I can share, but I may be able to create one.

I am unable to reproduce this behavior -- here's yargs running with --all.

It might be worth trying the newest version of nyc; there have been a couple fixes related to report generation.
if you are still running into issues after upgrading, please re-open this issue with a failing example 👍


[AB#37251] Make FE Samples reasonably responsive

Pull Request
Prerequisites

[x] My code follows the coding conventions
[x] All tests pass

Description

let's rebase this to latest master (and possibly update other scenarios too?) - pls write a small description on what the actual change is doing to address the problem of "responsiveness" in browsers?

Still there are some small css style to fix, but seems it can't fix easily and need UI expert support. So will skip this change.


Improve control over error reporting

Add a flag to only report errors for the libraries listed on the command-line. If a library has parts, then errors reported against those parts should also be reported, but errors reported against imported libraries should not be reported (unless the imported libraries are also listed on the command-line).

@bwilkerson : is this stale?  Are we still interested in doing something like this?

I think this is now the default behavior.


Top-level vals do not type check properly

The following succeeds:
  val x : nat
  let x= -1

and prints:
../../bin/fstar.exe --fstar_home ../.. bug63.fst
Verified module: Prims
Verified module: Bug63
All verification conditions discharged successfully

Fixed.


Introduce timeout to s3_wait> operator.

This PR introduces timeout for s3_wait> operator.
The following two options are introduced.

timeout  : set timeout duration.
ignore_timeout_error : if true, the task will finish successfully.

example:
+task1:
  s3_wait>: <buckect>/<file>
  timeout: 120s
  ignore_timeout_error: true

Interval calculation
This PR changed the interval calculation.
Interval start 5 seconds and gradually increase and  5 minutes is max.
The current formula is as follows.
 5sec * 2^(n-1)    (n: num of iteration)

It is too much increase if timeout parameter is not so large.
For example if timeout is 180s, the task will be time out after n=6 because total interval is 155. But next interval in n=6 is 160. So the task wait time will be 315seconds.
It is over 130 seconds.

n=1
2
3
4
5
6
7

interval
5
10
20
40
80
160
320

total
0
5
15
35
75
155
315

To mitigate, this PR changed exponential base value from 2 to 1.2.
In this case, total wait time will be 197 seconds and the over time is 17.

@frsyuki Could you review again. I updated the code based on the discussion with you.


feat(core): add logging support

Describe the problem
Right now the core works without any debugging messages or other logging messages.
Describe the proposed solution
We should implement logging in the core. This should be set to ERROR/CRITICAL by default, with the ability to log lower levels. We also likely want logging to output to a file in some cases (API). The CLI may only want logging to the console.
Alternatives considered
N/A
Importance
would make my life easier
Additional information
https://docs.python.org/3/library/logging.html

Once the core has logging we can enable it in the API (to file and std out) and the CLI (std out only)


Use the cloudformation documentation part as a substack

See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html
This should fix #106, #76 and #34.

Do you have more insight on this? I'd like to work on it.


DynamicBitmapText positioning differs in WebGL / Canvas renderers when using setScroll() on scene

Version

Phaser Version: 3.14.0

Operating system: MacOS High Sierra

Browser: Multiple

Description
I've modified one of the Phaser Labs demo's below to show how a DynamicBitmapText instance is being positioned incorrectly when using the Canvas renderer and applying a scroll to a scene. Toggling to WebGL renderer type will show the different results.
Example Test Code
var config = {
    type: Phaser.CANVAS,
    parent: 'phaser-example',
    scene: {
        preload: preload,
        create: create
    }
};

var game = new Phaser.Game(config);

function preload()
{
    this.load.bitmapFont('desyrel', 'assets/fonts/bitmap/desyrel.png', 'assets/fonts/bitmap/desyrel.xml');
}

function create()
{
    this.add.bitmapText(0, 0, 'desyrel', 'static bitmap text');
    this.add.dynamicBitmapText(0, 100, 'desyrel', 'dynamic bitmap text');

    this.cameras.main.setScroll(-50, -50);
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

 I've just tested it in Phaser 3.20 and it renders the same in both Canvas and WebGL, so this was thankfully fixed at some point (although I cannot say when!)


Updated DockerRegistry

@emanuelschuetze @gsiv This should do the job. Please merge and test with new manage tool.


feat: creating Strat logic for pokemons

see #12

Codecov Report

Merging #16 (d9936d2) into main (fe886d8) will decrease coverage by 21.86%.
The diff coverage is 11.11%.

@@             Coverage Diff             @@
##             main      #16       +/-   ##
===========================================
- Coverage   96.15%   74.28%   -21.87%
===========================================
  Files           5        5
  Lines          26       35        +9
  Branches        1        2        +1
===========================================
+ Hits           25       26        +1
- Misses          1        9        +8

Impacted Files
Coverage Δ

lib/services/pokemon/model.ts
52.94% <11.11%> (-47.06%)
:arrow_down:

Continue to review full report at Codecov.

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


Ensure 'in' does not operate on primitive types

Bug Report

🔎 Search Terms
operator in exception crash unhandled
🕗 Version & Regression Information

This is the behavior in every version I tried
⏯ Playground Link

Playground link with relevant code
💻 Code

const mustBeObject = (thing: object) => thing

const hasKey = <A extends object | null | string | number, K extends string | number | symbol>(
    thing: A,
    key: K,
): boolean => {
    if (thing && typeof thing === 'object') {
        mustBeObject(thing);
        return key in thing; // no error
    }
    return key in thing; // error
};

hasKey(123, 'hello');

🙁 Actual behavior
TS should expect A to be an object
🙂 Expected behavior
TS didn't detect the potential crash

This is a follow-up to #41317. In #41928, we decided that we should implement a more conservative check that only ensures that the resolved constraint of the right operand to the in operator is not assignable to a primitive. This is a negative check ensuring that the type of the right operand does not explicitly extend a primitive type. This solution does not yet cover the original example shown above.
The alternative we discussed was a positive check that the type of the right expression cannot possibly extend a primitive type. We could do this either by checking that the type of right operand (not its resolved constraint!) is not assignable to a primitive or by checking that this type is assignable to object.
I am reopening this issue because with #43183 (🎉) the original reason why we went with the more conservative (from a breaking change point of view) check will soon not be a limitation any more.  Therefore, code like
   if (typeof val === 'object' && '__isMaybe' in val) {

does not represent a problem anymore because val can be narrowed even if its type is a type parameter as long as it extends a union (see https://github.com/microsoft/TypeScript/pull/41928#issuecomment-743356094 for the original discussion).

We probably want to still allow using values whose type is an unconstrained type parameter as right operands, because those types can't be narrowed:
const fn = <A, B extends unknown>(
    a: A,
    b: B,
): boolean => {
    if (a && typeof a === 'object') {
        // does not narrow `a` to `object`
    }
    if (b && typeof b === 'object') {
        // does not narrow `b` to `object`
    }
};

Is there a reason why we don't do this narrowing or do you know of an issue that already tracks this?

This is intentional: #41317. Used search terms: in primitive in:title.


Merge back into sphinx-apidoc

I really like your work. Will you continue to work towards incorporating it back to sphinx-apidoc?

Probably yes, but it's not a very high priority at the moment. Also, sphinx-apidoc has changed a bit since I forked this, so preparing a patch will be time-consuming.
That being said, I've been using better-apidoc in a number of projects, and I'm pretty happy with its current state. So it's really just a matter of finding the time for a pull request.

Changes in Sphinx 1.7 and 1.8 have made it impossible to merge this back into Sphinx's apidoc (#14). Instead, the plan is now to merge into the sphinxcontrib.apidoc extension. This should happen in the relatively near future (at which point better-apidoc will become obsolete).


Introduce search_quality

There is a list of sample queries
The sample queries can be run through the current search algorithm
using a management command or a web form
A summary of results is displayed on a web page
To compare and track performance over time, serialized search results
from previous versions can be checked in as .json.gz files, currently
about 1.3MB in size
I’m not checking in such a results file just yet; someone who knows
more Cree should look over my sample.csv first

The newer mypy version supports int | str notation with
__future__.annotations, and its dmypy daemon doesn’t crash as much on
my machine. Pipenv upgraded some other packages too when upgrading mypy.

This sample list should be supplemented from the more structured list (of the 100 most frequent) of English words, with the top 2-5 Cree matches indicated.
Since that list has many function words (prepositions, pronouns, conjunctions, adverbs), we might want to supplement it with the next 100-200 words, to get more verbs and nouns.
In any event, even the list with 100 frequent English words and their expected Cree matches should gives us a more reliable quantitative view of how well the English search works.


Avs3.0.0 client updates

Updated client version to 3.0.0 everywhere
Updated AVS version to 0.11.1 everywhere
Minor update in documentation
Updated sentence-transformers to 3.2.1 ( was getting cannot import name 'cached_download' from 'huggingface_hub')

Would you merge main? I think there are changes in here from a branch that recently got merged.

Would you merge main? I think there are changes in here from a branch that recently got merged.

Resolved the merge conflict. Did you mean resolving merge conflict or something else.

Would you merge main? I think there are changes in here from a branch that recently got merged.

Resolved the merge conflict. Did you mean resolving merge conflict or something else.

I had seen changes from the other branch. Fixed with merge.


[REQUEST] Gaussian Patch Augmentation

Currently is there any way to do Gaussian Patch Augmentation with Imgaug?
"Improving Robustness Without Sacrificing Accuracy with Patch Gaussian Augmentation"
https://arxiv.org/pdf/1906.02611.pdf

https://i.imgur.com/ecuMQMA.png isnt this close to that?

@test1230-lab The idea is something less radical, like this:

They provide code in that paper I'll look into it. If I am successful I may open a pr


Compare FFT against ia.cr/2022/1657

ia.cr/2022/1657 uses a different butterfly which reduces memory pressure.

cc @andrewmilson since you've touched this code recently, this might be something up your alley (just a suggestion, of course)

Thanks Pratyush. Yeah I'm keen to take a look


Custom Filtering Data Parameter

I followed the example given (https://datatables.net/examples/plug-ins/range_filtering.html) to set up a custom filter. My one column has spans with classes that I wanted to search for so I added the class names into the data-filter tag on the td and pushed my custom filter into $.fn.dataTable.ext.search.
This works perfectly in my local rails environment (using jquery-datatables-rails) but when I push to heroku the data parameter no longer has my data-filter content, it just has html stripped text from the cell.

Could you post support requests on the DataTables forums please. Also, please be sure to include a link to the page that you are having problems with so it can be debugged.


Update library to latest version

Library version is several releases behind the official library. Would you mind providing an update to this library? I want to use the MediaItem class in com.google.android.exoplayer2.MediaItem, but it's not available for Xamarin yet.

Yes, please.

Can you open a PR?

Sorry, forgive my ignorance but what kind of PR do you need?  Is there a branch somewhere that has the updated ExoPlayer (looks like latest is 2.13.2)?

I am trying this myself but didn't get very far.  I get this build error in ExoPlayer.Common:
BINDINGSGENERATOR : error (3: 72): Syntax error, expected: #PCDATA, <tt>, <TT>, <i>, <I>, {@code, {@docRoot}, {@inheritDoc}, {@link, {@linkplain, {@literal, {@value}, {@value, UnknownHtmlElementStart, <p>, <P>, <pre>, <PRE>, @author, @apiSince, @deprecated, @deprecatedSince, @exception, @param, @return, @see, @serialData, @serialField, @since, @throws, @[unknown], @version
I have no idea what this refers to or how to fix it.  Help, please.

Hi @martijn00
Do you have plans for updating exoplayer to newest version?

I am waiting for a PR from the community to update this

I tried to do so, but failed due to the complexity of the ExoPlayer API.
I ended up creating a slim binding as suggested by Jonathan Dick: https://github.com/Redth/Xamarin.Binding.Helpers
The slim binding lib I built: https://github.com/thisisthekap/Xamarin.ExoPlayerSlim (feel free to contribute or fork)


SSL Issue

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
For my domain, an SSL warning has been received. The warning message is

| MD5:   2c95 301b 8f6d 673c 3c68 20df 1576 3e17
|_SHA-1: 0632 ebd3 b8e8 b6bf 2946 de0a 08f0 93de 3d92 10f6
| ssl-enum-ciphers:
|   TLSv1.0:
|     ciphers:
|       TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 4096) - C
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 4096) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 4096) - A
|     compressors:
|       NULL
|     cipher preference: client
|     warnings:
|       64-bit block cipher 3DES vulnerable to SWEET32 attack
|       Forward Secrecy not supported by any cipher
|   TLSv1.1:
|     ciphers:
|       TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 4096) - C
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 4096) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 4096) - A
|     compressors:
|       NULL
|     cipher preference: client
|     warnings:
|       64-bit block cipher 3DES vulnerable to SWEET32 attack
|       Forward Secrecy not supported by any cipher
|   TLSv1.2:
|     ciphers:
|       TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 4096) - C
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 4096) - A
|       TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 4096) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 4096) - A
|       TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 4096) - A
|     compressors:
|       NULL
|     cipher preference: client
|     warnings:
|       64-bit block cipher 3DES vulnerable to SWEET32 attack

Forward Secrecy not supported by any cipher

What did you see instead?
I attempted to add the cipherSuites to the traefik.toml file, but it was unsuccessful. Could you please check and let me know how to resolve the same?
What version of Traefik are you using?
2.3.5
What is your environment & configuration?
No response
If applicable, please paste the log output in DEBUG level
No response

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
To confirm this, please join our Community Forum and reach out to us on the Traefik section.
In case I'm wrong (well, that would be embarrassing :sweat_smile:), my developers will re-open the issue and fix me!
In the meantime, you can double check Traefik's documentation.

Hi,
Please check this issue.


Template

Pull Request Test Coverage Report for Build<PHONE_NUMBER>1
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
577

💛  - Coveralls


Answers file setting / CLI switch behavior inconsistent with docs

Describe the problem
The answers file setting / CLI switch behavior is inconsistent with what the docs suggest. The docs state that this setting is a path relative to the destination path, but the subdirectory in a path to the answers file is ignored by the rendering and only the file name is used.
Template
📁 src/
├── 📄 {{ _copier_conf.answers_file }}.jinja
└── 📄 copier.yml

copier.yml content:
_answers_file: subdir/.custom-answers.yml

To Reproduce
$ copier copy src/ dst
No git tags found in template; using HEAD as ref

Copying from template version 0.0.0.post1.dev0+a4f2b63
    create  .
    create  .custom-answers.yml

Logs
n/a

Expected behavior
To be decided. IIRC, changing not only the file name but also its location via the answers file setting / CLI switch used to work some time ago, but I think #927 made it impossible. Should it be possible to override the location  of the answers file or just its name when generating a new project?
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
Ubuntu 20.04
Copier version
8.1.0
Python version
CPython 3.9
Installation method
pipx+pypi
Additional context
No response

I have given this some more thought and think it should be possible to also override the location of the answers file. When applying multiple templates to the same subproject where each template has a different (default) answers file location, it may be desirable to override them and place them in the same location.
This reminded me of our previous discussion https://github.com/copier-org/copier/issues/983#issuecomment-1447869262 and subsequent comments where I questioned the need for the {{ _copier_conf.answers_file }}.jinja file. @yajo argued that opting in to having an answers file, which is the prerequisite for creating a template that supports updating, is preferable to opting out because updating increases the complexity for template developers and it might be desirable to start with a simple template without updating and add updating later. Back then, my suggested alternatives implied an opt-out approach, so we concluded the discussion without further actions.
I still find the {{ _copier_conf.answers_file }}.jinja file redundant and have thought of a backwards compatible opt-in approach to remove it:

A template without the {{ _copier_conf.answers_file }}.jinja file and without the _answers_file setting does not support updating.
If a template has the {{ _copier_conf.answers_file }}.jinja file, Copier behaves as usual. That is, the template supports updating and the _answers_file setting in copier.yml and the -a, --answers-file CLI flag allow overriding the default location and filename.
If a template does not have a {{ _copier_conf.answers_file }}.jinja file,

then it does not support updating, unless
_answers_file in copier.yml is set to true or to a file path relative to the generated project's root directory. This may be overridden by the -a, --answers-file CLI flag.

This approach is backwards compatible as we would still support the {{ _copier_conf.answers_file }}.jinja file and respect it. But in its absence, a template could still support updating by setting the _answers_file setting in copier.yml where true is a shortcut for implicitly using the default filename .copier-answers.yml. Setting it to false would be identical to omitting this setting, and without the presence of {{ _copier_conf.answers_file }}.jinja file the template would not support updating. When _answers_file was not set (or was false), passing -a, --answers-file would be disallowed because a user cannot make a template support updating (by enabling an answers file) that doesn't actually support updating (because there's typically more to updating than just the answers file).
To illustrate the compatibility and behavior of the different options, this table might help:

Answers file path in template
_answers_file value
-a, --answers-file value
Valid?
Supports updating?
Answers file path in project

✅
❌

anything
❌

false

✅
❌

false
anything
❌

true

✅
✅
$dst/.copier-answers.yml

true
.custom-answers.yml
✅
✅
$dst/.custom-answers.yml

.config/copier-answers.yml

✅
✅
$dst/.config/copier-answers.yml

.config/copier-answers.yml
.custom-answers.yml
✅
✅
$dst/.custom-answers.yml

$src/{{ _copier_conf.answers_file }}.jinja

✅
✅
$dst/.copier-answers.yml

$src/{{ _copier_conf.answers_file }}.jinja
.config/copier-answers.yml

✅
✅
$dst/.config/copier-answers.yml

$src/{{ _copier_conf.answers_file }}.jinja

.custom-answers.yml
✅
✅
$dst/.custom-answers.yml

$src/{{ _copier_conf.answers_file }}.jinja
.config/copier-answers.yml
.custom-answers.yml
✅
✅
$dst/.custom-answers.yml

I think I prefer the UX proposed in https://github.com/copier-org/copier/issues/983#issuecomment-1464846708, so _answers_file stays as the way to provide an alt name if you want, and _updatable stays as the new replacement for adding the templated file.
However I think that discussion belongs to #983. All we had here was an easy to fix bug... 😅

However I think that discussion belongs to #983. All we had here was an easy to fix bug... 😅

Fair point. :+1: I've moved my comment there.


In the process of obtaining information, switching to another tab at this time, and then returning, will cause the previous link to be disconnected and reconnected. How to prevent the request from being disconnected when returning from other tabs?

Have a look at this issue. This might be the problem you're experiencing:
https://github.com/Azure/fetch-event-source/issues/36

thanks


Adds the old AI sat ruin from SS13

About the PR
Ports the old AI sat ruin from SS13 (with some changes to accommodate SS14) and adds a few things I needed for it (hatch airlocks & a paper scrap fluff item.)
Why / Balance
This was one of the more memorable space ruins from /tg/ and one of my personal favorites, and felt like an obvious canidate for porting.
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
no cl no fun

this is pretty cool

oh yeah baby


✨ [REQUEST] Sidebar support for SignalK

Checked

[X] If a new addon, I have checked on  Google that such as addon doesn't already exists
[X] If a new feature, I have searched in the discussions & issues that it was not already covered

Which addon?
SignalK
Is your feature request related to a problem? Please describe
SignalK is not available in the Home Assistant sidebar.
Describe the solution you'd like
Is it possible to add ingress and sidebar support for the SignalK Addon?

I'm sorry to bump this issue, but is it solvable?


Trouble grabbing npm package '@cycle/dom'

Each time I add this (currently detects version 14.3.0 of @cycle/dom) under Configure and the click Save, I'm told that I'm the first to grab this library, please wait, etc. However, it never finishes. If I reload the page, I'm back to where I was before trying to add this library, and trying to add it again results in a repeat of the same process. Adding other libraries works fine so far.

I tried webpackbin2, e.g., https://webpackbin-test.firebaseapp.com/#/bins/-KdCT6ydKr2R9hBkgq3v
I can't grab any @cycle/whatever library, e.g., @cycle/xstream-adapter, I suspect because it can't handle the @ symbol.

It is actually the / causing it, need to url encode it first, will fix. Thanks for reporting :)

@bbarker It is deployed now, if you want to try again :)

Ah, wait, still issue... Firebase can not store /... why oh why does mr Staltz need all these special characters in his packages ;-)
Need to figure out how to solve that

=( I'm a relative newcomer to the javascript world, so this suggestion may be ludicrous, but I noticed there is a package alias feature: https://www.npmjs.com/package/module-alias ; not sure if that might help or if there's an easier way.

Okay, so I have deployed new version now @bbarker . It required quite a few fixes. Reason is that / fudges up urls and file paths... and Firebase keys. So need extra logic several places to make it work.... BUT! It should be working now :)
Thanks for following up on this!

Awesome, thanks - I tried it, seems to work: https://webpackbin-test.firebaseapp.com/bins/-KdXjXHAYGIEo6lHO8QI
Unrelated issue, the cycle libraries use debugging statements that write to console.log; I suppose there isn't an easy way to grab that output? I don't see it in the browser's console.log either. Feel free to direct me to report/discuss this elsewhere.

@bbarker The new webpackbin repo is over here, so can continue there :)
https://github.com/cerebral/webpackbin
I am not sure why I wanted to use bin.log, cause it does make more sense to just wrap console.log. Maybe you could write an issue on it? I can fix that :)


Optimise performances using parallel computing ?

hello,
thanks for this wonderful addon !
is there a way to optimize performances using OpenMP for example ?
thanks

that sounds wild, please make an example!


Grid class should integrate with VolumeData classes of pymatgen

pymatgen has BaseVolumetricData, VolumetricData, VoxelData, etc... classes that help with this. The badelf class for grid should integrate with these. By doing so, this app can more easily extend to programs besides VASP

Yeah I need to look into these more. My initial reasoning was that for very large grids the Elfcar and Chgcar classes take an unreasonable amount of time to read/write the files. But I haven't messed around with the more base classes you mentioned here and most likely they don't suffer from this issue.
I think the ideal situation is that one of these has methods that allow for reading/writing grids between different file types without to much going on in the background. I could just inherit from that and add the more specialized methods I need throughout the BadELF alg.
As an aside I've found the Grid class super useful when testing different aspects of BadELF so improving it is pretty high on my priority list. It just makes life super easy.


only send timezone at start of session, use everywhere

Resolves #65
This does not appear to work quite the way I want: even though it does successfully set the timezone on the session, and it seems to load it just fine, the check for "hasTimezone" seems cached or not updated somewhere because it sends the timezone repeatedly if you reload the page without clicking away and even then the behavior thereafter seems confusing -- sometimes it does, sometimes it doesn't.
However, I'd like feedback on it so I'm putting it up now as a WIP
Additionally, tho probably in a separate PR, we will want to merge the partials back into the default.htm in a variety of components now that they have no reason to be loaded async (thereby saving more http requests)

I tested this and it appears to be working on the calendar page.  There was one confusing bit others might want to be aware of when testing: there is a timezone for the backend!
http://localhost:8080/hl/backend/backend/preferences
^your backend account has its own stored timezone that all times are converted into, separate from config/app.php's timezone.  The latter affects what's stored in the db, the former affects how those times are displayed in the UI.
So, I removed the WIP and it is ready for final reviewing, thanks.

I intend to do the ajax merging in a separate PR, this one is complete for my tastes.

The timezone should also get set on sites that do not rely on any other ajax, right (ruleset for example). Is it getting set correctly there? If not, the reason is probably not the other ajax calls.

Good call!  I tested with http://localhost:8080/hl/guides/captains-guide and it only set once.  I have begun the PR for merging ajax calls, that should go up today or tomorrow, I expect.

@Fabian-Sommer once this one is approved I will merge, rebase #91 and that one will be ready for review as well.  Changes are quite straightforward and a very nice cleanup


How can get access token? Access Token for App or Page or User?

Hi there,
I tried your package for my project to send Text message. But I got an issue about token. I don't know why. any guys can help me it? This is a response:
{   message: 'An active access token must be used to query information about the current user.',   type: 'OAuthException',   code: 2500,   fbtrace_id: 'AhX2W3PhsHH' }
this is my code:
`
import FBMessenger from 'fb-messenger';
const sendMessage = async (req, res, next) => {
const client = new FBMessenger('{ACCESS_TOKEN}');
client.sendTextMessage(
'{my_facebook_id}',
'Hello', function (err, body) {
if (err) return console.error(err)
console.log(body)
});
};
export { sendMessage };
`

Hi @ptit9x, I'm afraid that we are not the right place to answer questions about fb-messenger package, you should go to https://github.com/DiegoRBaquero/node-fb-messenger for more details.
To get a facebook page token, you can visit below url (you must replace <your_fb_app_id> to your real app id).
https://developers.facebook.com/apps/<your_fb_app_id>/messenger/settings/

Hi @chentsulin , Thanks for your response. So as i understand, ACCESS_TOKEN input should be Page Token? not App or User Token?

yes, it should be a page token


Exclude columns

Can certain columns be excluded from drop downs? There are certain columns that we didnt code outcomes for, like experimental group 2/3/control group. It would probably be best if we didn't include these in the drop downs for people to create graphs as it might create false data. Although it is still nice for them to be able to see it in the spreadsheet format.

Just to clarify, you'd like the following columns removed from the drop down options but left in the table below:

ExperimentalGroup
ExperimentalGroupN
ExperimentalGroup2
ExperimentalGroup2N
ExperimentalGroup3
ExperimentalGroup3N
ControlGroup
ControlGroupN

Let me know if the list looks correct and I'll make the changes.

Leave this one open for now, just wondering if it was an option to turn off certain columns. I'll clarify which columns we want to all turn off. There is an updated sheet as well with some additional columns.

@mattsodoma I agree it's a great idea to show only a subset of database columns on the page with the plotting tool. How about we only include columns with information for identifying the study and variables that would be used for inclusion of studies of interest, and leave out columns for moderator or outcome variables where all levels of the variable should be included in any plot.
On this google doc (CodeBook tab), I made a first round of answers to this question in Column G. @mattsodoma could you take a look and comment on any changes you'd suggest?

Your codebook tab seems reasonable. Would it be worthwhile to show the linktype?

Intervention duration may be safe to add as well


NPCs disappear from overworld after loading a save

Can be seen here, where an npc should be standing in this grass patch:

save file: https://pastebin.com/qGx6WSUf

Entering a new level seems to fix it.


Error in Rancher pod logs: invalid combination of rangeEnd and limit, limit should be 0 got 500

Rancher Server Setup

Rancher version: v2.6.4-rc8
Installation option (Docker install/Helm Chart): Helm chart

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): K3s

Proxy/Cert Details: N/A

Information about the Cluster

Kubernetes version: N/A
Cluster Type (Local/Downstream): local

User Information
N/A
Describe the bug

Seeing the following warning during normal operation of Rancher:
W0316 19:36:25.202608      33 reflector.go:325] github.com/rancher/rancher/go/pkg/mod/github.com/rancher/client-go@v1.23.3-rancher1/tools/cache/reflector.go:168: failed to list *v1.ConfigMap: rpc error: code = Unknown desc = invalid combination of rangeEnd and limit, limit should be 0 got 500
E0316 19:36:25.202636      33 reflector.go:139] github.com/rancher/rancher/go/pkg/mod/github.com/rancher/client-go@v1.23.3-rancher1/tools/cache/reflector.go:168: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: rpc error: code = Unknown desc = invalid combination of rangeEnd and limit, limit should be 0 got 500

To Reproduce
Start up Rancher in K3s
Result
Warnings
Expected Result
No warnings
Screenshots

Additional context

/ # kubectl describe pod -n cattle-system   rancher-58b495dc87-xrzgw
Name:         rancher-58b495dc87-xrzgw
Namespace:    cattle-system
Priority:     0
Node:         rancher/<IP_ADDRESS>
Start Time:   Wed, 16 Mar 2022 19:34:25 +0000
Labels:       app=rancher
              pod-template-hash=58b495dc87
              release=rancher
Annotations:  <none>
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/rancher-58b495dc87
Containers:
  rancher:
    Container ID:  containerd://b9e0d9ebff130b1a8338b3066a2da464178a6d733ead23ee96f1cded3f303a9c
    Image:         rancher/rancher:v2.6-head
    Image ID:      docker.io/rancher/rancher@sha256:299f6e98f134b72daf33d89da13bea75faf94cedcbc4ac245df453f889c5be87
    Port:          80/TCP
    Host Port:     0/TCP
    Args:
      --http-listen-port=80
      --https-listen-port=443
      --add-local=true
    State:          Running
      Started:      Wed, 16 Mar 2022 19:35:56 +0000
    Ready:          True
    Restart Count:  0
    Liveness:       http-get http://:80/healthz delay=60s timeout=1s period=30s #success=1 #failure=3
    Readiness:      http-get http://:80/healthz delay=5s timeout=1s period=30s #success=1 #failure=3
    Environment:
      CATTLE_NAMESPACE:     cattle-system
      CATTLE_PEER_SERVICE:  rancher
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-9v8mn (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  kube-api-access-9v8mn:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 cattle.io/os=linux:NoSchedule
                             node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type    Reason     Age    From               Message
  ----    ------     ----   ----               -------
  Normal  Scheduled  7m40s  default-scheduler  Successfully assigned cattle-system/rancher-58b495dc87-xrzgw to rancher
  Normal  Pulling    7m40s  kubelet            Pulling image "rancher/rancher:v2.6-head"
  Normal  Pulled     6m12s  kubelet            Successfully pulled image "rancher/rancher:v2.6-head" in 1m27.86876683s
  Normal  Created    6m9s   kubelet            Created container rancher
  Normal  Started    6m9s   kubelet            Started container rancher

Not stale

Upgraded to v1.24.1+k3s1 and I get the same error like this:
% kubectl get svc --field-selector=metadata.name=mongodb
Error from server: rpc error: code = Unknown desc = invalid combination of rangeEnd and limit, limit should be 0 got 500

@drewp might note that Rancher isn't supported on Kubernetes 1.24 yet. Shouldn't be related to this issue though.

This error is only seen when k3s is started using kine. RKE2 works fine, and k3s works fine when started with --cluster-init. This would appear to be a bug in kine; I am guessing etcd 3.5 removed a restriction on the rangeEnd and limit parameters and kine is sill (incorrectly) enforcing it.

Closing; will be addressed in K3s releases.


Gcrabtree.incorporate android

This project now supports both iOS and Android using the same JS calls.

Exceptions:

The Android version does not support manual reconnects, joinNamespace, or leaveNamespace

The wrapped libraries can be found here:

Socket.IO-Client-Swift.

Socket.IO-Client-Java.

Notes:

You will see a whole lot of pain involved in taking JSONObjects/JSONArrays from the SocketIO-Client
and bridging that data to RN bridge types (which use JSON) and then into Javascript objects. Any tips on making that a lot more efficient would be appreciated.
Not all socket configuration options have been migrated over to the Android version. This needs to be done.
We need unit tests.

Looks great! 👍

@mtimmens-lifesize Thanks for the review! Cleaned up a messy necessity.


Finalize the JTC meeting agenda

@aaronmberger, thanks for putting together the draft agenda for the December JTC meeting. Are you up for adding the suggested start times of the different events and let us know when to look it over before circulating it, or do you want to hand that off to somebody else?

Yes, I can finish up a draft and will circulate to JTC for final input.  I'll circulate after I hear back from survey team, Mike, and Nis about their proposed time slots.

sent off to Miako, we should be good, closing...


TODO: VoteLeader()

We vote 1 for ourselves and the agent on our bike with the highest Social Capital.

done.


[CTA block/section with content items] resolve discrepancy on horizontal rule

The light $ui-03 horizontal rule is present above the first set of content items in this design (item number 5 in the spec):

But absent in

This design here, when no Block level body copy, might be the reason why the rule is removed:

Task

Decide if this horizontal rule is needed. If needed, is it optional?
Update design & func spec according to decision

@DragosRistici conducted a thorough exploration and here's the conclusion:

So, designers, looking at this from more angles, it seems to me that we can drop the horizontal rule above the first row of Content items if we keep a bigger spacing - 64px. Mobile goes similar, with one exception (in my opinion): when there’s only a heading + Content items, you keep the 32px spacing before the first Content item (content items are only stacked one by one, so no  white space variations between the near items). If there’s more than the heading (at least the subheading or the short copy is present), the 64px should apply. You can see the other explorations and the comparison with the rule present in the sketch file attached in the first comment (i got a limit of 10 files here). Let me know what you think.

Here's the exploration file:
https://app.zenhub.com/files/193129061/79fe30dd-6c0f-4d1a-ad88-feb85c8e1b63/download
Only need to update the design spec of CTA block or section then we can close this @DragosRistici Thank you!

Visual specs are uploaded in the Box folder here.


en: refine TLS docs; add a FAQ about task upgrade

What is changed, added or deleted? (Required)
Update docs about TLS to fix issues and add an FQA about upgrading DM 1.0 task to an existing DM 2.0 cluster.

Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v3.0 changes)
[x] v2.0 (TiDB DM 2.0 versions)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from: https://github.com/pingcap/docs-dm/pull/442
Other reference link(s):

Do your changes match any of the following descriptions?

[ ] Delete files
[ ] Change aliases
[ ] Have version specific changes
[ ] Might cause conflicts after cherry-picked

Please resolve conflicts. @CharLotteiu


Spend specific UTXO(s)

With Cardano we have an UTXO based ledger and a rewards address.
I'd like to spend specific UTXOs in particular the ones of the staking rewards and it seems that this is not possible with Daedalus.
With Electrum (a Bitcoin wallet) for example it is quite easy to optionally select the UTXOs to spend. There are various reasons why somebody would want to do that.
Daedalus internally of course will also have some algorithm which selects the UTXOs. It shouldn't be not that difficult to instead let the user select the UTXOs.
Could this please be implemented in the future?
Thank you.

Hi @gernotpokorny we do not have yet this functionality to select which UTXOs to use. Would you please propose this change in this repository (which is our backend) https://github.com/input-output-hk/cardano-wallet
Thank you in advance!

I opened the issue there as you suggested. But I have to mention that this is not a backend issue only. I assume the majority of the work will be in the frontend.
https://github.com/input-output-hk/cardano-wallet/issues/3581


Xcode 9 and Swift 4 Migration - Help

The latest version of the pod should work fine.
Are you on 0.2.0?
If not, you can update to the latest version with:
pod update

Thanks.. That fixed the issue, Of course I had to build the framework on Xcode 9 and add to my project to make it work.


how to obtain recgonized image within the box

Question when the object is identified with label how can i get that image ... Like i want to crop the identified image for further image processing ....
Please help i am currently stuck with it
@shuuchen    @thealchemist89
@olaff09         @jahdiel

Hi there, once you have the identified image, that means, you have the bounding box (i.e. x, y, w, h). Then, one way to crop the image could be:
cropped_image = original_image[ y:y+h, x:x+w]
cv2.imwrite("cropped_image.jpg", cropped_image)
Something like that, you may want to play around with it :)


real type missing

Bug Report

🔎 Search Terms

🕗 Version & Regression Information
4.3

⏯ Playground Link

💻 Code

function chain<T extends readonly ((...args: any[])=>any)[]>(items:T){
            const [_,..._items] = items;
            type Params = T[0] extends (...args:[...infer P,any])=>any ? P: never;
            type Return = T[0] extends (...args: any) => infer R ? R : never
            type Tail = T extends readonly [x: any, ...other: infer R] ? R : [];
            return (...args:Params):Return =>items[0](...args,_items.length?chain(_items as Tail):():never=>{throw new Error('next overflow')});
        }
        const test = chain([
            (a:number,next)=>next(a),
            (a:number)=>a
        ] as const);
        const ret = test(1);

🙁 Actual behavior

test function type is not correct for next
🙂 Expected behavior

next function should have similar parameters as the second chain item

or it seems like i missing type information of next function ,how should i do?

This is a question, not a bug in the TypeScript compiler (unless you can articulate exactly how it's a bug, and fill out the bug report template properly).  You should probably close this and ask it on Stack Overflow or some other help forum.

We would need a minimal example that demonstrates what the defect is; being surprised is not a strong indicator of a bug. Thanks!


Release cargo-screeps 0.3.0.

Update to reqwest 0.9
Change default WASM module initialization and allow projects to override module initialization via configuration (see docs/initialiation-header.md)

Closes #131


feat: don't unnecessarily prompt when installing libraries

fix https://github.com/excalidraw/excalidraw/issues/3327
This will only work when the tab is reused (https://github.com/excalidraw/excalidraw/pull/3320), thus we must wait until that PR is merged (this PR builds on top of it, anyway).
For now, review only the last commit: 88d9905 (#3329)
Upstream PR: https://github.com/excalidraw/excalidraw-libraries/pull/84

looks good  lets update the changelog/readme

Let's merge #3320 first.


Does not support python3, hence the change request

This library doesn't work with Python 3 when downloaded through pip. Despite this, the HEAD of master works fine if pulled from here.
The owner (@e-dard) needs to submit the updated package to https://pypi.python.org/pypi

any news about this?
the package looks very interesting


🔧 Create deployment script(s)

🔧 Chore
Create a convenient script for deploying the Cosmwasm contracts.
Motivation
For manual testing and development.

We already have deployment scripts in the chain repo.


Update library web to 0.5.1

Platform
Flutter
Plugin
package_info_plus
Version
5.0.1
Flutter SDK
3.19.4
Steps to reproduce
INcompatible with web 0.5.1 error with other libraries already updated
Code Sample
No response
Logs
INcompatible with web 0.5.1 error with other libraries already updated

Flutter Doctor
no error

Checklist before submitting a bug

[X] I searched issues in this repository and couldn't find such bug/problem
[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I'm using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

Being discussed here: https://github.com/fluttercommunity/plus_plugins/issues/2653


Fix titleFlex param in CupertinoOnboardingPage

Hello! Thanks for the great package! The titleFlex parameter did not work for me because you did not include it in the widget code. I fixed this, now when I change titleFlex, the width of the title actually changes.

Hi, thanks for your contribution!
It seems like you accidentally upgraded the packages and changed the minimum Dart SDK version, if you could revert these changes and leave only the fix it would be ready to merge :)

Fixed in the newest version


First SVE kernels

Hello,
I'm currently working on SVE support for the TPP kernels. I've heard from Alex Breuer, that there will be a second team working on SVE, so I shouldn't wait with pushing my progress until all kernels are working.
I've implemented set-zero, copy, increment, square, 1/x and sqrt currently.
This pull request also adds a few SVE instructions for these, which haven't been part of LIBXSMM yet.
As a testing suite for performance and correctness, I added a sample/sve directory, but Mr. Breuer told me, that it may be possible to integrate the tests into the samples/eltwise directory in the future.
Known/found issues:

the A64FX architecture is not automatically detected
only the unary SVE kernels, that I've implemented, are currently working with the A64FX architecture
the 1/x function for ASIMD seems to be only an approximation
when switching architectures, the kernel cache is not cleared automatically

Thank you,
Antonio Noack

Some of the instructions overlap with the PR of #552 .  I am also led to believe that several of the added intrinsics have extremely poor performance on A64FX (sqrt in particular).

I still several items of the discussion open, can we please address them, then I do another review

@alheinecke what do you suggest regarding the precision issues of 1/x? I found the same issues for 1/sqrt.
Both functions currently use an estimation-only function with ASIMD, and have relative errors of about 5% without Newton iterations.
For SVE, I've implemented a single iteration for 1/x, which gives close to perfect results.
For 1/sqrt, the error roughly reduces by 50x with every iteration (fp32; <= 3 iterations, 4th doesn't bring improvements).
What is the target for the relative error within LIBXSMM? Or should the precision be user-configurable maybe?

I hope most things are resolved now :)

Regarding Newton iterations: even x86 doesn't use all bits... I think we need a comparison between all of them (right now we just use approximations on all and we are even not numerical compatible between Intel and AMD chips) but for DL applications we are fine. We have Flags, so we could specify ULP here. That would be exactly what you suggest with user defined. That means if the flag is not set, it's just approximation, and then we can specify number Newton steps or ULP etc. (needs to be defined).

For the iterations/ulp precision, I've added the function libxsmm_get_ulp_precision() to generator_common.c. I've placed it into common, because other kernels and other architectures might use it as well.
The function uses the newly defined flag LIBXSMM_ULP_PRECISION, which would be an estimated target precision.
As a default, I've set 1e4 currently, which kind-of expresses that the default implementation doesn't care that much about high precision. I'm just not that sure about that magic value. Should I/we use infinity instead?
In my mind, infinity just would be a little awkward, because it might imply that the user doesn't care about the result at all (which would be false ofc, but idk)

No broadcasts don't work yet fully, as I have focused on getting this pull-request through.

Broadcasts work now :)

The currently implemented functions are:
unary: set-zero, copy, inc, x², 1/x, sqrt, 1/sqrt
binary: add, sub, mul, div

I have just move the latest master into the branch. It has following changes:
we got rid of LIBXSMM_GEMM_PRECISION and everything is now LIBXSMM_DATATYPE, this is just very simple renaming, but has to be done in the lines coming in from PR, e.g.: LIBXSMM_GEMM_PRECISION_F32 is now LIBXSMM_DATATYPE_F32.
(for your reference the full diff of changes in master: cdb895a )
The one line typo change in your PR seems to cause some huge diff... in the complete rewrite of the x86 generator. I suggest reverting changes in the PR in order to have clean merge.

I was able to merge in those changes with git pull -X theirs https://github.com/hfp/libxsmm aarch64_eltwise relatively easily :)
Also, before Christmas, I've added exp, dexp/dx, tanh and dtanh/dx

OK, that means all except ReLU, Leaky ReLU and GeLU are working incl. broadcast support?

I took a look at the list of enums for the unary operations, and it looks like quite a few are still missing additionally:

Reduce_ (x op add, x² op add, x_x² op add, x op max, x op mul, x op add ncnc format, to scalar op add),
Dropout,
Replicate ColVar,
Transform (Norm, VNNI, PadM),
Unpack to Blocks,
Elu,
Statistic Round,
Quant,
Dequant,
Reduce Cols Idx

Then also there is a flag called REDUCE_XOR_ACC, and am unsure, whether it is implemented with the current functions.

And yes, all others should be working including broadcasting.

Hi, I wanted to implemented GeLU next,
but I don't understand a part of the existing ASIMD assembly:
    libxsmm_aarch64_instruction_asimd_compute( io_generated_code, LIBXSMM_AARCH64_INSTR_ASIMD_SHL_I_V,
                                               i_vec_index, LIBXSMM_AARCH64_ASIMD_REG_UNDEF, 2, i_vec_index,
                                               i_tupletype );

    libxsmm_aarch64_instruction_asimd_compute( io_generated_code, LIBXSMM_AARCH64_INSTR_ASIMD_TBL_1,
                                               i_vec_index, i_vec_tmp, 0, i_vec_index,
                                               i_tupletype );

To me this looks like
i_vec_index = i_vec_index << 2; // or i_vec_index *= 4;
i_vec_index = i_vec_tmp[i_vec_index];// as far as I understand TBL_1, it picks the i_vec_index-th element from the vector. If the index is out of bounds, so > 3, it would set the value to 0 instead.

As I understand it, this itself only would pick element 0, or would it set the result to zero, because in ASIMD fp32, there are only 4 elements in a vector.
My issue is that i_vec_tmp seems to be initialized to { 0x00000000, 0x04040404, 0x08080808, 0x0c0c0c0c }, so the result always would be zero.
Where is my mistake in understanding this? This would be too much effort to just set a value to zero.

Or is it maybe using the index as a byte index? 🤔, then it would work, and effectively be a index < 3 ? index *4 : 0.

Yes the tbl instruction is working on bytes and if I recall this code correctly it's converting 32 bit indecies into 32 bit values tables to the same table but organized as bytes values with bytes indices

From: Antonio @.>
Sent: Thursday, January 6, 2022 10:12:33 AM
To: hfp/libxsmm @.>
Cc: Heinecke, Alexander @.>; Mention @.>
Subject: Re: [hfp/libxsmm] First SVE kernels (PR #556)
Or is it maybe using the index as a byte index? 🤔, then it would work, and effectively be a index < 3 ? index *4 : 0.
—
Reply to this email directly, view it on GitHubhttps://github.com/hfp/libxsmm/pull/556#issuecomment-1006398472, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABQ4N4ZWPICMGWVC2YNEV6DUUVMIDANCNFSM5ICQMRQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>

I have a question about the type RELU_INV. Usually, the inv-type is the derivative of the function, but for RELU, it's not (based on the implementation and the test).
Is this intended behavior or a bug?
The implementation says x < 0 ? 0 : x, while the true derivative is x < 0 ? 0 : 1.
(I can imagine that using this instead of the true derivative gives a better gradient descent behavior, but it still might be unexpected for some backpropagation implementations)

The derivative you mention for ReLU is correct, however RELU_INV is not the derivative of ReLU it is the backward prop. Here we multiply the gradients with the derivative of ReLU from forward prop. We just use x for activations in FWD and gradient activation in BWD (sloppy notation/variable names). Therefore for BWD ReLU, we multiply 1*gradient if gradient > 0 and 0 otherwise.
oneDNN has a nice summary from activation and gradient perspective:
https://oneapi-src.github.io/oneDNN/dev_guide_eltwise.html#general

I fixed the merge conflicts, that emerged by other updates to the aarch64 branch

are we ready to resolve the conflicts and attempt a merge?

Yes :). I already did, but I am not yet 100% sure that everything still works. It compiles, and sqrt still works (so maybe it's fine).

About my performance tests, I am not really sure. Currently, because there was tons of changes in the correctness checks, I just replaced them with what was in the aarch64_eltwise branch. (except that I didn't delete eltwise_perf_tester.h yet)

For example I saw https://github.com/libxsmm/libxsmm/pull/597/commits/abe03b55851f375f53718676b32f4799cc1b1b15, and it would have to be integrated back in again.
Which probably means that the switch-case statement should become a else-if cascade again too.

I've fixed the tanh issue, and the switch-case->else-if issue.
I also added the tests back in, but as a part of eltwise_common.h like discussed.
I know the tests would have been better as a separate pull request, but it's quite tedious to find out which exact commands to use to create a branch from a remote repo 😅 (and unfortunately, last time I didn't write it down). If it needs to be separate, so you can merge the SVE stuff into aarch64_eltwise and the tests into main, I could take a look at it as well.

Summary on what is (or should be) working:
Unary:

copy
xor (set zero)
inc
neg
x²
1/x
1/sqrt(x)
sqrt(x)
tanh, tanh-inv
sigmoid, sigmoid-inv
exponential
gelu, gelu-inv (currently only on 512 bit vector length; should be relatively easy to adapt with TBX)
elu, elu-inv
relu, relu-inv
leaky-relu, leaky-relu-inv
dropout, dropout-inv

Binary:

add
mul
sub
div
muladd

Reduce:

sum, sum-squared, max

For all kernels, SVE should have the same support for additional flags, and should support everything that ASIMD supports.
Examples, on what neither ASIMD nor SVE support:

reduction with MIN (should be relatively easy to add, if needed)
binary type DOT
double precision in some cases

Thanks for your contribution!


Sync with upstream

Update to latest version

Don't think we need this. Furthermore, this CR contains code for batching logic which should not be in a CR that is just for merging upstream changes.
cc: @mxiamxia @hdj630


597 Add file and folder renaming feature to submission tree (2. more RESTful version)

Description:
This pull request adds the ability for users to rename files and folders in the submission tree of an upload. A "Rename" button is added to the submission tree view, and clicking on it will bring up a text box where the user can enter the new file/folder name. The file/folder name will be updated in the submission tree and the file/folder will be renamed in the database.
Implementation details:

Added routes for file and folder renaming
Added views for the rename button and the rename modal
Added controllers to handle file and folder renaming requests
Added policies to authorize file and folder renaming actions
Added events to track file and folder renaming actions
Added RSpec tests to cover the file and folder renaming functionality

Testing:

I have tested this feature on multiple files and it is working as expected.
I have verified that the file is renamed in the database.
I have tested that the file can be renamed multiple times.
I have tested that the file renaming feature works correctly with special characters and file names with spaces.
When downloading the uploads, the files have the updated renamed name when saved locally.
Renaming folders works as expected.
Renaming of subfolders and subfiles works as expected.
Invalid renaming, such as renaming of non-existing folders and files, is handled correctly.
Renaming with taken file and folder names is handled correctly.
Policies for file and folder renaming are handled correctly.

New submission tree view:

File rename view:

Folder rename view:

Feedback:

Events:

Dear  @matthee ,
I have addressed all the improvement suggestions you provided for this issue.
I would greatly appreciate it if you could take a second look and either approve the implementation or let me know if any further changes are necessary.
Thank you very much! I truly appreciate you taking the time to review it and assist us, especially considering your busy schedule!
Best regards,
Duaa


Filter out Message events before calling submessage response

Follow up from https://github.com/CosmWasm/wasmd/pull/441#discussion_r590474261

I actually depend on the message event from submessage being present in the reply: https://github.com/CosmWasm/cosmwasm/blob/main/contracts/ibc-reflect/src/contract.rs#L39-L94
I didn't know a more reliable way to get the contract address from a newly created contract

I have seen TerraSwap parses the InstantiateMsg data field. I can also hand-write a parser that doesn't involve prost/protobuf library. We should add something like this to cosmwasm-std as a utility.

I think we also need a larger discussion about Events. There are 2 usages of Events now - for reply and to return to clients. Do we need the same rules for both of them?
Also, many of our rules are to work around the fact that Tendermint would flatten them, so all wasm type events get merged into one (appending the attributes) rather than as separate events. This is fixed on master (targetted for Tendermint 0.35, which is likely Cosmos SDK 0.44).
So, I would like to remove workarounds inspired by the poor Tendermint behavior in the API we expose to contracts, which should be stable. That is - reply message body. I would like to choose a design for reply that works great for contracts. We can then filter/mangle the events we return to the client if it needs to be different. That said, I would not filter out any info inside the keeper for reply.


Add obofoundry topic to repo metadata

The OBO Foundry has recently created a topics page at https://github.com/topics/obofoundry. It would be great if you could add the obofoundry topic to your repository, since it's currently listed as active in the OBO Foundry. If you're not sure how to do that, follow the instructions here.   The main issue for this task is at https://github.com/OBOFoundry/OBOFoundry.github.io/issues/1538 in case you want some more context or to join the larger discussion.

@egonw @batchelorc @olas @muntisa @micheldumontier @steinbeck not sure who is the repo owner but this will take <10 seconds to do, would appreciate it!

Sorry, overlooked this.

Done.