Catalina Mac OS segfaulting

Hi, I'm moving this over from: https://github.com/pvcraven/arcade/issues/513
I have a number of students using Arcade this semester, which is built on Pyglet. It's working well for most of my students, but some of the Macs with Catalina (15.5) segfault before Arcade can finish importing. I believe at this point, I've tracked it down to running the following:
import pyglet.input

This causes a segmentation fault and a large dump. I don't have the exact trace for that command (student I was working with had to go to their next class), but here's the stack trace from when I was still at the Arcade level: https://pastebin.com/raw/6NyDtJmC
Not sure if you have any insight, but my first thought is that it has something to do with the game controllers?

Just upgraded to 15.5 and 15.5.1 here on a MacBook Pro (Retina, 15-inch, Early 2013). No problems at all. It's probably related to #5, but probably got worse in the latest update.
It seems only the newer macbooks have this problem for some reason.

It does seem connected to the Issue you reference (some of them get some of that stuff when they close the game windows). But I can also now say it's 99% related to joysticks. I've been commenting out the stuff that loads arcade.joysticks (which in turn imports pyglet.input), and that has gotten their installations working. It's a curiously small group of students (probably a total of 6 out of my 180), so I'm no longer panicking about this. But it does seem like something that'd be nice to fix. Unfortunately I don't know enough about the crazy HID stuff going on with ctypes to offer much more information than to say that it's almost certainly related to all that.

If you have the opportunity, could you get a trackback from import pyglet.input on one of those machines? I would also guess it's related to #5, since both that and the input module are making use of the cocoa wrapper from pyglet.libs.darwin.cocoapy. @olehermanse did some deep digging with an alternate cocoa library, but had similar issues. Helpfully, he was able to create a small standalone script to illustrate the issue, as found at the bottom of #5.
We know that two different cocoa wrappers both have issues, so something minor has changed in how things should be done. I'm not sure if this gets us any closer to a solution yet, but at least it's a start. Unfortunately I don't have access to a newer macbook at the moment myself.

Here you go, we ran import pyglet.input and got this error:
https://pastebin.com/9GRufPRB

Thank you. Is it possible to post a traceback without running it from Thonny? It's difficult to make out any pyglet specific errors. Just running a simple script on the CLI directly should do.

Right now, I don't have any students experiencing the issue since we applied our fix. If I get another student who needs the patch, I'll grab a CL traceback first.

Thanks @acbart, lets leave this ticket open until that happens.

It seems the segfault happens in darwin_hid.py in HIDDevice.get_elements().
In this method, the call to iokit.IOHIDDeviceCopyMatchingElements returns a null pointer, which causes the crash with the next call to cfarray_to_list.
With newer MacOS versions (definitely with Catalina) you need to enable Input Monitoring for the Terminal program (or for bash in case you use Thonny or some other IDE) under the Privacy tab in your Security & Privacy system preferences.
Probably pyglet should handle this problem more properly on MacOS, but I do not have the insight for this.

Thank you for the information @volgy. I don't own a Mac myself, but I did some reading up on these new security settings.  If I understand correctly, we need some way to request privilege escalation. In addition, we should fail gracefully if permissions are not granted - not just crash.
I think I can at least do the second part. If I make a fix, would it be possible for you to test it?

Yes, I can definitely help with the testing. Let me know when you have a branch or PR ready. Thank you for taking care of this.

Hi @volgy, sorry for the delay. If you have time, can you try out the latest 1.4-maintenance branch?
If you are installing via pip, you can install using:
pip install --upgrade --user<EMAIL_ADDRESS>It might still crash at a different spot, but we can go from there.
Thanks again!

Hi, thanks for following up on this.
Using the latest 1.4-maintenance branch indeed triggers a pop-up (see attached screenshot), but it still segfaults.

The segfault is triggered in pyglet/input/darwin_hid.py at line 489: devices = cfset_to_set(cfset)
Here is the C stack trace leading to the fault (sorry, I could not figure it out how to add python-level backtrace capability to my LLDB.)
(pyglet) volgy@watney:~/sandbox/pyglet$ lldb python -- -c "import pyglet.input"
(lldb) target create "python"
Current executable set to 'python' (x86_64).
(lldb) settings set -- target.run-args  "-c" "import pyglet.input"
(lldb) r
Process 5454 launched: '/Users/volgy/anaconda/envs/pyglet/bin/python' (x86_64)
2019-12-26 15:55:17.499734-0600 python[5454:1939631] [default] 0x1000096ca: TCC deny IOHIDDeviceOpen
Process 5454 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00007fff2d5bacff CoreFoundation`CFArrayGetCount + 6
CoreFoundation`CFArrayGetCount:
->  0x7fff2d5bacff <+6>:  movq   (%rdi), %rax
    0x7fff2d5bad02 <+9>:  testq  %rax, %rax
    0x7fff2d5bad05 <+12>: je     0x7fff2d5bad32            ; <+57>
    0x7fff2d5bad07 <+14>: leaq   0x58dfd51a(%rip), %rcx    ; __CFConstantStringClassReferencePtr
Target 0: (python) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00007fff2d5bacff CoreFoundation`CFArrayGetCount + 6
    frame #1: 0x00000001012ee884 libffi.6.dylib`ffi_call_unix64 + 76
    frame #2: 0x00000001012ede8b libffi.6.dylib`ffi_call + 939
    frame #3: 0x000000010158c299 _ctypes.cpython-38-darwin.so`_ctypes_callproc + 457
    frame #4: 0x00000001015867b8 _ctypes.cpython-38-darwin.so`PyCFuncPtr_call + 232
    frame #5: 0x0000000100031b91 python`_PyObject_MakeTpCall + 161
    frame #6: 0x00000001001827e1 python`call_function + 305
    frame #7: 0x00000001001803b0 python`_PyEval_EvalFrameDefault + 48992
    frame #8: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #9: 0x000000010003311e python`_PyFunction_Vectorcall + 398
    frame #10: 0x0000000100182755 python`call_function + 165
    frame #11: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #12: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #13: 0x0000000100182755 python`call_function + 165
    frame #14: 0x00000001001803fd python`_PyEval_EvalFrameDefault + 49069
    frame #15: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #16: 0x000000010003191e python`_PyObject_FastCallDict + 94
    frame #17: 0x00000001000ba7ba python`slot_tp_init + 186
    frame #18: 0x00000001000c96d7 python`type_call + 295
    frame #19: 0x0000000100031b91 python`_PyObject_MakeTpCall + 161
    frame #20: 0x00000001001827e1 python`call_function + 305
    frame #21: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #22: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #23: 0x000000010003709a python`method_vectorcall + 138
    frame #24: 0x0000000100182755 python`call_function + 165
    frame #25: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #26: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #27: 0x0000000100182755 python`call_function + 165
    frame #28: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #29: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #30: 0x000000010003311e python`_PyFunction_Vectorcall + 398
    frame #31: 0x0000000100182755 python`call_function + 165
    frame #32: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #33: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #34: 0x000000010003311e python`_PyFunction_Vectorcall + 398
    frame #35: 0x0000000100182755 python`call_function + 165
    frame #36: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #37: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #38: 0x0000000100182755 python`call_function + 165
    frame #39: 0x00000001001803fd python`_PyEval_EvalFrameDefault + 49069
    frame #40: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #41: 0x000000010003191e python`_PyObject_FastCallDict + 94
    frame #42: 0x00000001000ba7ba python`slot_tp_init + 186
    frame #43: 0x00000001000c96d7 python`type_call + 295
    frame #44: 0x0000000100031b91 python`_PyObject_MakeTpCall + 161
    frame #45: 0x00000001001827e1 python`call_function + 305
    frame #46: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #47: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #48: 0x000000010016cbb9 python`builtin_exec + 329
    frame #49: 0x0000000100090de4 python`cfunction_vectorcall_FASTCALL + 84
    frame #50: 0x00000001000323ab python`PyVectorcall_Call + 123
    frame #51: 0x0000000100180855 python`_PyEval_EvalFrameDefault + 50181
    frame #52: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #53: 0x000000010003311e python`_PyFunction_Vectorcall + 398
    frame #54: 0x0000000100182755 python`call_function + 165
    frame #55: 0x00000001001803b0 python`_PyEval_EvalFrameDefault + 48992
    frame #56: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #57: 0x0000000100182755 python`call_function + 165
    frame #58: 0x00000001001803fd python`_PyEval_EvalFrameDefault + 49069
    frame #59: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #60: 0x0000000100182755 python`call_function + 165
    frame #61: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #62: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #63: 0x0000000100182755 python`call_function + 165
    frame #64: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #65: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #66: 0x000000010003514a python`object_vacall + 314
    frame #67: 0x0000000100035416 python`_PyObject_CallMethodIdObjArgs + 230
    frame #68: 0x00000001001b8435 python`PyImport_ImportModuleLevelObject + 3509
    frame #69: 0x000000010017df03 python`_PyEval_EvalFrameDefault + 39603
    frame #70: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #71: 0x000000010016cbb9 python`builtin_exec + 329
    frame #72: 0x0000000100090de4 python`cfunction_vectorcall_FASTCALL + 84
    frame #73: 0x00000001000323ab python`PyVectorcall_Call + 123
    frame #74: 0x0000000100180855 python`_PyEval_EvalFrameDefault + 50181
    frame #75: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #76: 0x000000010003311e python`_PyFunction_Vectorcall + 398
    frame #77: 0x0000000100182755 python`call_function + 165
    frame #78: 0x00000001001803b0 python`_PyEval_EvalFrameDefault + 48992
    frame #79: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #80: 0x0000000100182755 python`call_function + 165
    frame #81: 0x00000001001803fd python`_PyEval_EvalFrameDefault + 49069
    frame #82: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #83: 0x0000000100182755 python`call_function + 165
    frame #84: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #85: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #86: 0x0000000100182755 python`call_function + 165
    frame #87: 0x00000001001804b9 python`_PyEval_EvalFrameDefault + 49257
    frame #88: 0x0000000100033062 python`_PyFunction_Vectorcall + 210
    frame #89: 0x000000010003514a python`object_vacall + 314
    frame #90: 0x0000000100035416 python`_PyObject_CallMethodIdObjArgs + 230
    frame #91: 0x00000001001b8435 python`PyImport_ImportModuleLevelObject + 3509
    frame #92: 0x000000010017df03 python`_PyEval_EvalFrameDefault + 39603
    frame #93: 0x00000001001728d7 python`_PyEval_EvalCodeWithName + 439
    frame #94: 0x00000001001f0593 python`PyRun_StringFlags + 259
    frame #95: 0x00000001001f03b9 python`PyRun_SimpleStringFlags + 137
    frame #96: 0x000000010021911f python`Py_RunMain + 3055
    frame #97: 0x000000010021a7e9 python`pymain_main + 1769
    frame #98: 0x0000000100001249 python`main + 57
    frame #99: 0x00007fff64c7a7fd libdyld.dylib`start + 1

Thanks @volgy, and I hope you had a happy New Year!
I added another try/except to darwin_hid. Could you give it another try, and see if we get any further?

The try/except block does not catch a (low-level) segmentation fault. Just checking for a null pointer is probably the best workaround (see PR #119).

Thank you for the pull request!
Does this prevent the crash now?
I would expect that:

Popup asks for permission, but no joysticks are returned.

Is that right?

Yes, there are no crashes now. It also triggers the pop-up (at the first launch), and does not returns a subset of input devices if the permission is not given. I guess this is how far you can (should) go with this issue. Thanks!

Thank you very much for troubleshooting this, and making a PR.
@acbart could you try the 1.4-maintenance branch, and let us know how it goes?
Thinking towards the future, I wonder if this is a type of thing that should be blocking - if that is possible. We'll have to consider how it's done on other libraries.

With the semester over, I don't have access to any students with Catalina. I'm afraid you'll have to work on this without me from here. Best of luck!


Improve some variable naming (internal enhancement)

This bit of code is a potential maintenance issue:
var str = val.slice(0, val.lastIndexOf('.'))
    , mac = exports.sign(str, secret);

We have three variables val, str, mac involved in some important logic and their names are confusing.

val is the incoming untrusted (but probably signed) input, e.g. "iamroot.f5da773d717015ffd4ffa4d0f9a87ed57b30811a", or "iamroot.b629a45f1f6175ddcddfbaac08dd2562" or "will.i.am" or "moe" or "\\"><script>alert('gotcha')</script>" or "" [or in a buggy app 42 or undefined or [Object object]]
str is the value we would like to return, iff it was signed by us, e.g. "iamroot"
mac is what val should be, if str were signed by us, e.g. "iamroot.f5da773d717015ffd4ffa4d0f9a87ed57b30811a"

Maybe rename these something like:

val → input
str → tentativeResult
mac → originalOutput [???]

Not urgent.

@natevw I agree. Only I would perhaps suggest the following changes to improve understandability and maintainability:
  var decodedVal = decode(val)
    , expectedToken = exports.sign(decodedVal, secret)
    , expectedTokenBuffer = Buffer.from(expectedToken)
    , valBuffer = Buffer.from(val);

  return crypto.timingSafeEqual(expectedTokenBuffer, valBuffer) ? decodedVal : false;

Like you said though this is not urgent, otherwise I would have created a PR for this myself. I'll let the maintainers decide whether this is beneficial.

Thanks, yeah I like the "expected" terminology. No worries about the PR since I don't plan on changing this just for its own sake. Rather, my thinking is to wait until (if…) the code were changing anyway…and so far there's been no reason for other maintenance.


remote defense

Each remote room should have a defcon, probably being decremented at some interval, and incremented if sufficient enemy troops are in the room. A defcon above what the room can handle should result in a dropped remote.
Rough Ideas:
0: means no defense, meaning there hasn't been an attack in a very long time and we aren't even expecting invaders
1: only expecting invaders, one (appropriately sized) harasser should be enough, with necessary backup being spawned dynamically.
2: station a quad
3: drop the room
non-stationed defenders should be able to reassign to other remotes as needed
maybe the most desperate room gets the non-stationed crew. Since harassers have target lock it may be difficult to abuse this
Possibly worth looking into converting stationed defenders into non-stationed for better reaction time, but higher risk

#143

Non stationed defenders still need to be added, current implementation has the same DEFCON levels but 1-4 rather than 0-3.

current implementation seems to work pretty well, closing this pending further issue


Validate content-type, grpc-timeout, *-bin headers (server-side)

Per @ejona86 (https://github.com/grpc/grpc-go/pull/4491#discussion_r640131754):

Java behavior:

Bad content-type. HTTP 415 with a text/plain error message. Also a gRPC status of INTERNAL with same error message
Bad grpc-timeout or bad -bin. Looks like Java throws an exception (from different spots) that should eventually turn into a RST_STREAM(INTERNAL). Not the greatest approach, but not the worst result

For (2), gracefully returning a gRPC status of INTERNAL sounds preferable.
Per @yashykt (https://github.com/grpc/grpc-go/pull/4491#discussion_r640167567):

Core seems to just ignore it after logging a message -

https://github.com/grpc/grpc/blob/8bdbb74425d6ac13ea7823be41e9297fddd629aa/src/core/ext/filters/http/server/http_server_filter.cc#L250
https://github.com/grpc/grpc/blob/8bdbb74425d6ac13ea7823be41e9297fddd629aa/src/core/ext/transport/chttp2/transport/parsing.cc#L430

This will be fixed soon-ish.. Not marking this triaged so I remember to close it down.

This got fixed as part of the recent hpack related cve fixes https://github.com/grpc/grpc/pull/33005 I believe


About compiling

Excellent job! Unfortunately, I encountered some issues while compiling, as shown below:

Errors     << dynablox_ros:check /home/x/Dynablox/logs/dynablox_ros/build.check.000.log
CMake Error at /home/x/Dynablox/devel/share/catkin_simple/cmake/catkin_simple-extras.cmake:38 (find_package):
By not providing "Findlidar_undistortion.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"lidar_undistortion", but CMake did not find one.
Could not find a package configuration file provided by
"lidar_undistortion" with any of the following names:
lidar_undistortionConfig.cmake
lidar_undistortion-config.cmake

Add the installation prefix of "lidar_undistortion" to CMAKE_PREFIX_PATH or
set "lidar_undistortion_DIR" to a directory containing one of the above
files.  If "lidar_undistortion" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:5 (catkin_simple)
make: *** [cmake_check_build_system] Error 1
cd /home/x/Dynablox/build/dynablox_ros; catkin build --get-env dynablox_ros | catkin env -si  /usr/bin/make cmake_check_build_system; cd -
......................................................................................................
Failed     << dynablox_ros:check                  [ Exited with code 2 ]
Failed    <<< dynablox_ros                        [ 0.3 seconds ]
[build] Summary: 17 of 18 packages succeeded.
[build]   Ignored:   4 packages were skipped or are blacklisted.
[build]   Warnings:  1 packages succeeded with warnings.
[build]   Abandoned: None.
[build]   Failed:    1 packages failed.
[build] Runtime: 1 minute and 8.7 seconds total.

I am sure that the installed version is dynamiblox/release. ( https://github.com/ethz-asl/lidar_undistortion/tree/dynablox/release)
I would be grateful for any help!

After using 'git clone https://github.com/ethz-asl/lidar_undistortion -b dynablox/releas' on the terminal to download 'lidar_undistortion', the compilation was successful!


Is the project dead?

This framework is awesome, I use it on every project but I'm wondering if the project is dead as there has been no new release for 2 years now.

I think we should fork it and maintain it .

+1

@SaezChristopher , there are 365 forks already..... I wonder if anyone of those are still being updated.

+1

+1

Hey everyone! I agree that this project is important!
I was recently added to the Swinject organization, so I can definitely help merge in changes and perform releases if there's stuff missing. Currently on my radar is adding XCFramework support for Carthage, and I've also been playing around with some DocC stuff https://github.com/Swinject/Swinject/pull/471.
Please let me know what you'd like to add and I'll make sure it gets in!

Hi everyone. Sorry I was away from the project for long time and didn't notice this issue.
As @mpdifran said, he kindly joined the project. We still think it would be nice to have more people to maintain Swinject. If you are interested in being a maintainer, please let me know in this issue thread or DM me on Twitter🙏
Thanks!

Hello,
I don't have much free time during the week.
But if I can help somehow, you can count me in.

Thanks @1ucas😃 I invited you to our Slack group. Would you check your email on gmail to join there?

Thanks!

Hi everyone. Sorry I was away from the project for long time and didn't notice this issue.
As @mpdifran said, he kindly joined the project. We still think it would be nice to have more people to maintain Swinject. If you are interested in being a maintainer, please let me know in this issue thread or DM me on Twitter🙏
Thanks!

I’d love to assist, in a maintainer role or otherwise! 😄

We made a kanban board Maintained/Maintenable Again😃 as our actions to get Swinject maintained/mainenable again.
https://github.com/Swinject/Swinject/projects/1

Thank you @72A12F4E for your offer to assist the project👍 I really appreciate your offer😃😃😃
One thing I have to say is I do not see your GitHub or online activity as a developer so much. I really respect your offer, but would you start from a contributor to the project before being a maintainer if you do not mind? 🙏🙇
Issues #474 or #475 look good as the first step if you are interested. Would you let me know your opinion?🙏

I completely understand; most of my focus has been at my job which doesn't use GitHub. I'll see what I can do to knock out those two issues.

Thank you @72A12F4E for understanding😃
I agree a lot of experienced engineers focus on jobs and use GitHub less. I'm looking forward to inviting you as a maintainer soon🚀

We made a new release. Thanks @mpdifran and @1ucas for working together!
https://github.com/Swinject/Swinject/releases/tag/2.8.0


Tab not pressed in RTL

Current behavior
I can't navigate to any tab when pressing on them in RTL
Expected behavior
I can navigate to any tab when pressing on them in RTL
Reproduction
https://github.com/anastely/TabViewTest
Platform

[X] Android
[X] iOS
[ ] Web
[ ] Windows
[ ] MacOS

Environment

package
version

react-native-tab-view
3.1.1

react-native-pager-view
5.4.4

react-native
0.65.1

node
v16.9.1

npm or yarn
yarn

any updates ??

I checked the onTabPress function, the button is actually pressed but it's not changing the screen.
i ended up using this package https://github.com/kirankalyan5/react-native-segmented-control-tab instead until this get fixed, note it doesn't provide swiping functionality.

for time being I have down graded the version to 2.15.2 and it worked for me.
"react-native-tab-view": "2.15.2", and make sure to remove the "^".

Did anyone manage to solve this isssue?

i check the code and i found that the error not in react-native-tab-view but in react-native-pager-view in ios you can try to edit ReactNativePageView.m
` if (isForward && diff > 0) {
for (NSInteger i=_currentIndex; i<=index; i++) {
if (i == _currentIndex) {
continue;
}
[self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index];
}
}
if (!isForward && diff > 0) {
    for (NSInteger i=_currentIndex; i>=index; i--) {
        // Prevent removal of one or many pages at a time
        if (index == _currentIndex || i >= numberOfPages) {
            continue;
        }
        [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index];
    }
}`

to
` if (index > _currentIndex) {
for (NSInteger i=_currentIndex; i<=index; i++) {
if (i == _currentIndex) {
continue;
}
[self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index];
}
}
if (index < _currentIndex) {
    for (NSInteger i=_currentIndex; i>=index; i--) {
        // Prevent removal of one or many pages at a time
        if (index == _currentIndex || i >= numberOfPages) {
            continue;
        }
        [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index];
    }
}`

i check the code and i found that the error not in react-native-tab-view but in react-native-pager-view in ios you can try to edit ReactNativePageView.m
 if (isForward && diff > 0) { for (NSInteger i=_currentIndex; i<=index; i++) { if (i == _currentIndex) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } } if (!isForward && diff > 0) { for (NSInteger i=_currentIndex; i>=index; i--) { // Prevent removal of one or many pages at a time if (index == _currentIndex || i >= numberOfPages) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } }
to
 if (index > _currentIndex) { for (NSInteger i=_currentIndex; i<=index; i++) { if (i == _currentIndex) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } } if (index < _currentIndex) { for (NSInteger i=_currentIndex; i>=index; i--) { // Prevent removal of one or many pages at a time if (index == _currentIndex || i >= numberOfPages) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } }

It worked for me.

i check the code and i found that the error not in react-native-tab-view but in react-native-pager-view in ios you can try to edit ReactNativePageView.m
 if (isForward && diff > 0) { for (NSInteger i=_currentIndex; i<=index; i++) { if (i == _currentIndex) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } } if (!isForward && diff > 0) { for (NSInteger i=_currentIndex; i>=index; i--) { // Prevent removal of one or many pages at a time if (index == _currentIndex || i >= numberOfPages) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } }
to
 if (index > _currentIndex) { for (NSInteger i=_currentIndex; i<=index; i++) { if (i == _currentIndex) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } } if (index < _currentIndex) { for (NSInteger i=_currentIndex; i>=index; i--) { // Prevent removal of one or many pages at a time if (index == _currentIndex || i >= numberOfPages) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } }

No effect.

i check the code and i found that the error not in react-native-tab-view but in react-native-pager-view in ios you can try to edit ReactNativePageView.m
 if (isForward && diff > 0) { for (NSInteger i=_currentIndex; i<=index; i++) { if (i == _currentIndex) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } } if (!isForward && diff > 0) { for (NSInteger i=_currentIndex; i>=index; i--) { // Prevent removal of one or many pages at a time if (index == _currentIndex || i >= numberOfPages) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } }
to
 if (index > _currentIndex) { for (NSInteger i=_currentIndex; i<=index; i++) { if (i == _currentIndex) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } } if (index < _currentIndex) { for (NSInteger i=_currentIndex; i>=index; i--) { // Prevent removal of one or many pages at a time if (index == _currentIndex || i >= numberOfPages) { continue; } [self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index]; } }

Worked with me tested on ios simulator

thanks @ghoudi01 :)
indeed change isForward && diff > 0 to index > _currentIndex
and !isForward && diff > 0 to index < _currentIndex fixed it for me (using react navigation tabs)

thanks @ghoudi01 :)
indeed change isForward && diff > 0 to index > _currentIndex
and !isForward && diff > 0 to index < _currentIndex fixed it for me (using react navigation tabs)

any idea for Android @ghoudi01 @YogiHa

@creativitycomkw can you give more info

@callmemonky
For fixing android I had to add android:supportsRtl="true" at AndroidManifest at the application tag as well as adjust mainActivity to had import com.facebook.react.modules.i18nmanager.I18nUtil; at the top of the file and I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();    sharedI18nUtilInstance.allowRTL(getApplicationContext(), true); at onCreate method

Still tab press event not firing on iOS in RTL layout!

Any update on this? It's a critical feature for us for the tabs to work in RTL mode. @satya164

@satya164 It's a critical issue, can anyone give a temporary fix?

up

@satya164, any update on this please? I fail to understand how the widely supported / main recommended tab component for RN doesn't work in RTL and support is just getting ignored on this?
I know it's related to this issue https://github.com/callstack/react-native-pager-view/pull/485 and you responded to me there, but ignore us here.
Does anyone have any other recommended tab libraries that work in RTL that I could try? None of the other components I've found seem to be complete either.

did you find anything @m-deacon ?

Hey @syedamirali14 @m-deacon  , issue is coming from rn pager view and fixed it raising this pr https://github.com/callstack/react-native-pager-view/pull/613

@sebasg0 Thanks for your PR! It has been merged and will be released in the next version of react-native-pager-view 🚀


Reduce dependencies

We should attempt to use feature flags to reduce dependencies that we don't use.

Quick question here - feature flags to narrow the import scope of the upstream dependencies or features flags in the tonic code (e.g. put cfg attributes on handful of trace crate usages?)
I looked at the upstream dependencies, but didn't see any good opportunities to factor out features.

@blittable as of right now there are not many but that is because we pull in the whole world with the transport feature. I think we can revisit this issue once tokio/hyper get a stable release.


Negative argument

Complex number should't have negative argument

Thanks, will repair it as soon I will have time!


Make IfConfigClause Elements Optional

Make IfConfigClause Elements Optional
A #if clause need not actually contain any elements. Consider
#if !FEATURE_ENABLED
#else
class Foo {

}
#endif

apple/swift-syntax#536
@swift-ci smoke test

Are there plans to make other decls consistent with this? Right now, the empty #if clause just produces a CodeBlockItemList with zero elements, which is what also happens for functions with empty bodies; and types with no members produce empty MemberDeclLists.
IMO having an always-present-but-empty list feels like it's less likely to result in special cases in client code than having to handle an optional or "missing" element. But in any case, it seems like they should all handle the empty case equivalently.

I agree. Perhaps the trouble here is that we have one node representing three possible productions:

Decl Position
Switch Case/Stmt Position
Postfix Expression Position

And thus cannot take advantage of a more strongly-typed interface. Specializing the clause type once per collection would be an alternative here.


Multip swagger endpoint usage

Hi,
I'm currently using this library but i have more than one swagger endpoint. I want merge this more than one swagger endpoints and generate one apiclient.ts file but how can i create, i don't know :(

Hello @muratoner !
You can use --templates option to expand your Api class and add several your own endpoints
Also you can use onInit hook


[Fix] Adjust average model and make EMA in line with MMGen

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
In MMGen, we use momentum* EMA + (1 - momentum) * SRC for updating model weights.
Modification
Please briefly describe what modification is made in this PR.
Who can help? @ them here!
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist
Before PR:

[ ] I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
[ ] Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
[ ] Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
[ ] New functionalities are covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[ ] The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

[ ] If the modification has potential influence on downstream or other related projects, this PR should be tested with some of those projects.
[ ] CLA has been signed and all committers have signed the CLA in this PR.

I think we can add an argument called decay, and change momentum in our configs to decay.
Refers to: https://github.com/huggingface/diffusers/blob/4125756e88e82370c197fecf28e9f0b4d7eee6c3/src/diffusers/training_utils.py#L84-L94

You can also refer to https://github.dev/open-mmlab/mmengine/blob/main/mmengine/model/averaged_model.py#L33
which we should align the design and parameter conversation.


v1 issues to complete

As we approach a stable v1, we need to complete the following issues.
component work
Alerts / Notifications
Divider
List
Pagination
Tabs
extending existing components
Multi-Select
Button Group
*spacing variables
Non-component work
base theme review
React version strategy, update APIs
Polyfill Strategy
Replacement for Glamorous breaking changes
RtL breaking changes (Mineral provider)
Naming consistency breaking changes
final accessibility test
check for consistency on naming props
website consistency pass
check popper visual diffs

Addition:
Is the "px on the root, ems inside" approach the right one? It doesn't respect the browser's default font-size, and adds significant complexity to our code. I'm not convinced it's worth the primary reason of consumers not having to worry about their document's root font-size.


Can't build the project

Describe the bug
Can't build the project.
Expected behavior
Actual behavior
go: downloading github.com/opentrx/seata-golang/v2 v2.0.4
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading github.com/go-xorm/xorm/go.mod at revision v0.7.9: git ls-remote -q origin in /Users/chenzhiguo/go/pkg/mod/cache/vcs/516cff95263076be8ff66fbbae295f8235963b00c4f114bcea50f99a51def272: exit status 128:
        remote: Repository `go-xorm/xorm' is disabled.
        remote: Please ask the owner to check their account.
        fatal: unable to access 'https://github.com/go-xorm/xorm/': The requested URL returned error: 403

Steps to reproduce
go mod tidy

Minimal yet complete reproducer code (or GitHub URL to code)
Environment
On macOS M1 Pro

MOSN Version  master

this tag is exists, see https://github.com/go-xorm/xorm/releases/tag/v0.7.9
it looks like your github configuration have some errors

this tag is exists, see https://github.com/go-xorm/xorm/releases/tag/v0.7.9 it looks like your github configuration have some errors
https://github.com/go-xorm/xorm/releases/tag/v0.7.9 这个项目被归档了，403访问被拒绝...

原因是我使用的goproxy代理有问题，使用GOPROXY=https://proxy.golang.com.cn,direct会报上面错误。
修改为：GOPROXY=https://goproxy.cn,direct 就可以了。
坑死我了！


Test

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

Comparison is base (0b012b2) 66.57% compared to head (6975cd9) 90.25%.

Files
Patch %
Lines

src/agere/commander/_commander.py
99.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main       #7       +/-   ##
===========================================
+ Coverage   66.57%   90.25%   +23.67%
===========================================
  Files           8        8
  Lines         733      800       +67
===========================================
+ Hits          488      722      +234
+ Misses        245       78      -167

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


Multiple Code.exe processes running in Windows Task Manager

VSCode Version: 1.00 (Stable)
OS Version: Mac OSX Yosmite 10.10.4 - running VmWare Fusion 7.12 with guest OS: Windows 7 64-Bit

Steps to Reproduce:

Install VS Code 1.00 (stable)
Open VS Code

VS Code takes an extremely long time to open (30 seconds to over a minute). CPU performance spikes to 100%.  I see 2 Code.exe processes running in Windows Task Manager before it opens.  But once it opens, I see MANY instances of Code.exe running.

We do spawn many Code.exe as helper processes for other things. Does it also take long when Code is running and you execute the reload window command (F1 > Reload Window)?

@bpasero , I see the same behavior on Linux and Mac as well. My question is not about the performance but when there are 6 instances of VSCode running even with no project or file window open. What can cause to span 6 instances of it? Is this by design?
It will be difficult to debug VSCode on Windows, Linux and Mac if there is any issue with VSCode itself and not knowing which process to target for.

@Raviuppa yes by design, the UI framework we use is multi process by itself and then we have 1 process for extensions (per window), one process for file watching (per window) and 1 process for search. We also have 1 shared process for updates.

Oh ok. Is there a way to identify the process based on its purpose such as Extensions, File Watching etc..?

@Raviuppa yes if you have a program that shows you how the process was spawned.


"Provide an exception object as an argument to fail" offense seems to do the opposite of the styleguide

I've just run into something that Rubocop is considering an offense despite the fact I was doing it the correct way according to the style guide (entry https://github.com/bbatsov/ruby-style-guide#exception-class-messages), it in fact wants me to do it in the way the style guide marks as bad.
Line of code in question
fail Exception, errors.join(' ----- ') unless errors.empty?
Rubocop raises the following offense
spec/support/api_schema_matcher.rb:10:5: C: Provide an exception object as an argument to fail.
until I change the code to
fail Exception.new(errors.join(' ----- ')) unless errors.empty?
which if I am reading the style guide correctly is the exact opposite of what it recommends I do.
I am using Rubocop 0.34.0

You must have
Style/RaiseArgs:
  EnforcedStyle: compact

in your configuration. The default is exploded, which is what's recommended by the style guide.

Is it possible that was added to the .rubocop_todo.yml file when I auto generated the config? There were thousands of errors so it's quite large. I can't show you either of the rubocop configs since I am not at work but I definitely didn't add that to my custom .rubocop.yml, so it should be using it from the default configuration?

Seems likely that it's in .rubocop_todo.yml. If so, it overrides the default configuration.

It was in the .rubocop_todo.yml


Add zip_images to easy handle of jpg files

zip_images is a new parameter to the analize method in Video class and allows to add all .jpg images to a zip file.
The default value is True which add and then remove every jpg file in the self.outdir directory.
video = Video(file)
raw_data = video.analyze(detector, zip_images=True) # True is default

As an example this can be useful when you work in cloud Notebooks and some of them don't allows to download entire folders.
Hopefully this is useful for the project :) Greetngs

Thank you Aaron! Greetings back! :)


Wildcard search?

I'm not familiar with elasticsearch's searching, but I can't seem to find a way to do wildcard searching with ex_elasticlunr. I'm powering a simple type-ahead documentation search field.

Hello @zachdaniel, to achieve this you can use the below sample:
Index.search(index, %{
  "query" => %{
    "match" => %{
      "field" => %{
        "query" => "user's query",
        "expand" => true
      }
    }
  }
})

Note that improvements are ongoing behind the scene and I'm working to produce a good library that works well. So, if you have any feedback do not hesitate to let me know.


LINK-206, LINK-207, LINK-244, LINK-246, LINK-247 | Dropdown component which contains all action buttons for single event

Description
Show sub-events also in event card view
Show event hierarchy at the end of event edit page
Generic dropdown component
Replace separate action buttons with single dropdown on edit event page
Add actions dropdown for event card and event table row
Implement coping an event as template
Closes
LINK-206
LINK-207
LINK-244
LINK-246
LINK-247
Screenshots

Testing

Remove comment from line 116 (apikey: '50381be7-fef2-4783-b181-3181f6492f3f',) on domain/app/apollo/apolloClient.ts file to use apikey for authentication
Make sure that right url is set for LE by setting REACT_APP_LINKED_EVENTS_URL=http://localhost:8000/v1 in .env.development.local
Setup local LE backend and set apikey for some data source

Clone LE backend repository from https://github.com/City-of-Helsinki/linkedevents
Add a local_settings.py file and add following lines to it to support apikey in request header

DEBUG = True
CORS_ALLOW_HEADERS = [
    'apikey',
    'authorization',
    'content-type',
    'dnt',
    'origin',
    'user-agent',
    'x-csrftoken',
    'x-requested-with',
]

Start docker container: docker-compose up. Make sure ports 5432 or 8000 are not already in use
In other terminal tab open django bash to run importers: docker-compose exec django bash
At django bask run importer scripts:

python manage.py event_import yso --all
python manage.py add_helsinki_audience
python manage.py add_helsinki_topics
python manage.py event_import tprek --places
python manage.py import_organizations https://api.hel.fi/paatos/v1/organization/ -s helsinki:ahjo

Add apikey 50381be7-fef2-4783-b181-3181f6492f3f to one of the datasource .e.g http://localhost:8000/admin/events/datasource/helsinki/change/

Couple test failing locally for me

Couple test failing locally for me

Strange, I'm quite sure that those tests passed when I previous time tested them locally. But now I was also able to reproduce this. Anyway, fixed.

Getting this error when running all tests. When I press f to run failed test, it passes

Getting this error when running all tests. When I press f to run failed test, it passes

At least that TypeError is coming from hds-react. At some point there was some timer in LoadingSpinned which wasn't cleared on unmount. Not quite sure is that the reason and I'm not able reproduce this locally.
I have a PR coming where I also update hds-react to latest version. I'm not spending time to this failing test right now because it's passing when running failing tests, but I keep it in my mind.


[Entity][feature] Why not add entity filter "molang"?

Filters and molang queries have similar functions.
But molang is more flexible.
Why not merge them?
Just add a new filter "molang".
So every new molang queries can be used also in entity json.
I think Minecraft should focus on molang queries
Molang queries and entity filters are doing the same thing

is_sleeping: both
is_sneaking: both
is_mark_variant: both
in_water_or_rain: both
in_water: both

But both are incomplete

light_level: filter
player_level: molang
is_transforming: molang
weather: filter

Please

Add all filters as queries in molang
Add molang as a new filter
Focus on molang

{ // variable is true
  "test": "molang",
  "subject": "target",
  "operator": "!=", // ignored, makes no difference
  "value": "v.my_var"
  // readonly, equivalent to "q.target->v.my_var", because subject is target
}

{ // target's target is not current entity
  "test": "molang",
  "subject": "self",
  "operator": "==", // doesn't change anything
  "value": "q.target->q.target != q.self"
}

{ // damager is transforming
  "test": "molang",
  "subject": "damager",
  "value": "q.is_transforming"
}

Thank you for reaching out!
We are unable to provide general support via this feedback channel that isn’t related to specific documentation issues.


[test] Add support for firefox in visual regressions

Might come in handy if we run into visual inconsistencies. Mainly motivated by testing playwright capabilities.

Mainly motivated by testing playwright capabilities.

Yeah, I'm not sure we should care about taking screenshots with different browsers, I can't remember a time where I was like "I wish I could test this edge case with a second browser". I think that the main value of Argos, so far, has been about being able to blindly merge visual changes with many dependent components. I think that it's a lot more about testing the CSS rendering by the spec than by any specific browser.

Edit @eps1lon: Hidden because offtopic comment in a draft PR. These are still not ready to review.

Oh sorry, I wanted to 👍 on your motivation for opening it, testing that cross-browser is a viable option later on, if one day the problem arises, and not running tests in different browsers.


Show loading icon on processing data

Testing #205587

Simulate a long task for the data arg of openIssueReporter
Use the extension to file an issue + submit the issue.
No way to know whether the issue is pending :bug:

I would appreciate a screen or loading icon that shows that you've submitted your request and the data is processing.

Yes, oops. I mean that I set an entry point to use workbench.action.openIssueReporter via the extension and I used that.


Added .NET core book.

What does this PR do?
Add Resource
Description
Added 1 book.
Why is this valuable (or not)?
This book is free!
How do we know it's really free?
It's provided by the publisher https://www.syncfusion.com/
For book lists, is it a book? For course lists, is it a course? etc.
It's a book.
Checklist:

[x] Not a duplicate
[x] Included author(s) if appropriate
[x] Lists are in alphabetical order
[x] Needed indications added (PDF, access notes, under construction)

I believe books that mandate working email addresses are not accepted in this repository.

We do not accept links to pages that require working email addresses to obtain books, but we welcome listings that request them.

CONTRIBUTING.md

Syncfusion asks for the users full name, email address, and phone number. Mandates account creation, and that the user verifies their email address. There is no way to obtain the book without a working email address.

comment on previous PR

@eshellman Since my PR with C# books was closed, I think this one should too.


Expired API Key provided Error when executing presentPaymentSheet()

Describe the bug
When I open the payment sheet in my react native with expo app it opens with loading state, then it closes and an error appears saying: Expired API Key provided: ek_test_YW*********************************************************************_******r1xQ.
Fun fact 1: I don't know what does 'ek' at the start of the key even means, cause for example I think pk means public key or sk means secret key. And any of my current keys ends with 'r1xQ', so I don't know where that key came from.
Fun fact 2: It was working and suddenly after doing a couple changes in my implementation to change the appearance of the sheet. It began to crash.
To Reproduce
Steps to reproduce the behavior:

Build React Native App
Implement the code here: https://docs.stripe.com/connect/direct-charges
Open the sheet and maybe face the error.

Expected behavior
be able to open the sheet again, and complete a payment.
Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Device: IPhone 15 Pro Simulator
OS: IOS 17.4

Additional context
Add any other context about the problem here.

Some Code:
const openPaymentSheet = async () => {
    const { error } = await presentPaymentSheet();

    if (error) {
      Alert.alert(`Error code: ${error.code}`, error.message);
    } else {
      Alert.alert('Success', 'Your order is confirmed!');
    }
  };

  const initializePaymentSheet = async () => {
    setStatus('loading');

    const data = await createCheckout(userData?.stripeCustomerId!, userData?.stripeEphemeralKey!, totalPrice);

    const { error } = await initPaymentSheet({
      merchantDisplayName: "Paycon México",
      customerId: data?.customer,
      customerEphemeralKeySecret: data?.ephemeralKey,
      paymentIntentClientSecret: data?.paymentIntent!,
      allowsDelayedPaymentMethods: false,
      defaultBillingDetails: {
        name: userData?.name,
      },
      returnURL: 'paycon://home/checkout'
    });

    if (error) {
      setStatus('error');
    }
    else {
      setStatus('success');
    }
  };

  useEffect(() => {
    initializePaymentSheet();
  }, []);

<AppButton variant='primary' disabled={status === 'loading'} onPressIn={openPaymentSheet}>Realizar Compra</AppButton>


Examples with all parameters

Please give examples that use all the parameters.

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

ID: 85c98183-151e-7f93-8463-34518c030861
Version Independent ID: 36e2369d-f5cd-2024-f235-68b13aa2d7bf
Content: CallTarget Task - Visual Studio
Content Source: docs/msbuild/calltarget-task.md
Product: visual-studio-dev15
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

Good idea, but this work is currently out of scope. Closing for the time being.


[WIP] home-assistant: 0.85.1 -> 0.86.4

Motivation for this change
https://www.home-assistant.io/blog/2019/01/23/release-86/
I'm still in the process of adding a lovelaceConfig option to the NixOS module. I have however no experience with Lovelace and hope one of you guys might have some insight into wether this seems useful and what to think about when adding it.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I haven't had the time to try it out but it looks safe enough except for one thing. It's possible to edit the lovelace UI directly from the web interface, so instead of symlinking we probably should copy it. Instead of going through a whole nixops deploy cycle when shifting some minor things around, I was previously editing the lovelace config file directly and then consolidating all the changes when done. I don't think that will work when the file is read-only.


ios RewardVideo wasn't ready

Anyone got the reward video work on iOS?
It works perfect on android.
On iOS, got error "RewardVideo wasn't ready"

The test id wasn't working. Used live Ads Id and it worked


Update storage class from standard -> gp2

Signed-off-by: Ian Billett<EMAIL_ADDRESS>

Good question! Let's try removing it and see what happens.


Send graph via base64 rather than file path

Supports scenarios where the RPC is running on a different machine and doesn't have access to the file paths

LGTM


[Question]Possible to change gui?

Is it possible to change gui? Or need to rewrite code in new gui?

yes,

It's ez

the code for the gui is in Gui.cpp


Script for adding volunteer to a slack usergroup

Volunteer's have a "Help you can offer" field they fill out: https://airtable.com/shraIzCNdiMwW1bpP
If we added the volunteers to usergroups, we could @ large swaths really fast: https://slack.com/help/articles/212906697-Create-a-user-group
We should have the following usergroups to start:
@ cars
@ bikers
@ financialsupport
See here for a shitty backfill example I wrote at 1am: https://github.com/crownheightsaid/mutual-aid-app/blob/master/scripts/backfillSlackId.js

Leaving this open till docs for running python are in

I asked Andy Friedman. I'll check in later.


TileMap::set_cell does not perform transformation in non-square modes

Godot version
4.0 dev (090e4c4abdd406a7ed7fc33d0a4670bba69a4c0a)
System information
Windows 10
Issue description
A similar code in 3.2 brings a different result in 4.0:

Godot 3.2
func create_selection(from : Vector2, to : Vector2):
	  var begin_x = int(min(from.x, to.x))
	  var end_x = int(max(from.x, to.x))

	  var begin_y = int(min(from.y, to.y))
	  var end_y = int(max(from.y, to.y))

	  for x in range(begin_x, end_x+1, 1):
	  	for y in range(begin_y, end_y+1, 1):
	  		tilemap.set_cell(x, y, 0)

Result:

Godot 4.0
func create_selection(from : Vector2i, to : Vector2i):
	  var begin_x = mini(from.x, to.x)
	  var end_x = maxi(from.x, to.x)

	  var begin_y = mini(from.y, to.y)
	  var end_y = maxi(from.y, to.y)

	  for x in range(begin_x, end_x+1):
	  	for y in range(begin_y, end_y+1):
	  		tilemap.set_cell(Vector2i(x, y), 0, Vector2i(0, 0), 0)

Result:

Steps to reproduce
Simply run provided projects and compare.
Minimal reproduction project

Ah, seems I need to activate Diamond Down TileLayout. Sorry, false alarm.

Yep, the TileLayout property modifies how tiles are indexed in the TileMap. So well, this behavior is intended :)


fix(cli): report cfn deployment errors from nested stacks

fix(cli): report cfn deployment errors from nested stacks
For an error caused in nested stack
Before this change
✨  Synthesis time: 3.8s

amplify-sample-samsara-app-pravgupt-sandbox: deploying... [1/1]
amplify-sample-samsara-app-pravgupt-sandbox: creating CloudFormation changeset...
7:59:45 PM | UPDATE_FAILED        | AWS::CloudFormation::Stack | data7552DF31
Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason:
The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].

 ❌  amplify-sample-samsara-app-pravgupt-sandbox failed: Error: The stack named amplify-sample-samsara-app-pravgupt-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].
    at FullCloudFormationDeployment.monitorDeployment (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/api/deploy-stack.js:239:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/cdk-toolkit.js:210:32)
    at async /Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/util/work-graph.js:88:21

 ❌ Deployment failed: Error: The stack named amplify-sample-samsara-app-pravgupt-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].
    at FullCloudFormationDeployment.monitorDeployment (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/api/deploy-stack.js:239:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/cdk-toolkit.js:210:32)
    at async /Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/util/work-graph.js:88:21

The stack named amplify-sample-samsara-app-pravgupt-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].

After this change
✨  Synthesis time: 4.17s

amplify-sample-samsara-app-pravgupt-sandbox:  start: Building 45f5931d56e860a4c54747cfde19ab4dc35341e57df6b658bcc255997125654b:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  success: Built 45f5931d56e860a4c54747cfde19ab4dc35341e57df6b658bcc255997125654b:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  start: Building bcb09ebc03be314b0d91baaa5b9650b8508bdc2c7236bca9c75d997a067461dc:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  success: Built bcb09ebc03be314b0d91baaa5b9650b8508bdc2c7236bca9c75d997a067461dc:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  start: Publishing 45f5931d56e860a4c54747cfde19ab4dc35341e57df6b658bcc255997125654b:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  start: Publishing bcb09ebc03be314b0d91baaa5b9650b8508bdc2c7236bca9c75d997a067461dc:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  success: Published bcb09ebc03be314b0d91baaa5b9650b8508bdc2c7236bca9c75d997a067461dc:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox:  success: Published 45f5931d56e860a4c54747cfde19ab4dc35341e57df6b658bcc255997125654b:current_account-current_region
amplify-sample-samsara-app-pravgupt-sandbox: deploying... [1/1]
amplify-sample-samsara-app-pravgupt-sandbox: creating CloudFormation changeset...
12:57:07 PM | CREATE_FAILED        | AWS::AppSync::Resolver     | amplifyDataL2Graph...teresolver2355E3CF
Only one resolver is allowed per field. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: 6f50892d-6eb4-4d19-993d-d4ed1db1ad48; Proxy:
null)

12:57:10 PM | UPDATE_FAILED        | AWS::CloudFormation::Stack | data7552DF31
Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8ef
d5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicater
esolver2355E3CF].

 ❌  amplify-sample-samsara-app-pravgupt-sandbox failed: Error: The stack named amplify-sample-samsara-app-pravgupt-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Only one resolver is allowed per field. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: 6f50892d-6eb4-4d19-993d-d4ed1db1ad48; Proxy: null), Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].
    at FullCloudFormationDeployment.monitorDeployment (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/api/deploy-stack.js:239:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/cdk-toolkit.js:210:32)
    at async /Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/util/work-graph.js:88:21

 ❌ Deployment failed: Error: The stack named amplify-sample-samsara-app-pravgupt-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Only one resolver is allowed per field. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: 6f50892d-6eb4-4d19-993d-d4ed1db1ad48; Proxy: null), Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].
    at FullCloudFormationDeployment.monitorDeployment (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/api/deploy-stack.js:239:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack (/Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/cdk-toolkit.js:210:32)
    at async /Users/pravgupt/Workspaces/samsara/aws-cdk-form/aws-cdk/packages/aws-cdk/lib/util/work-graph.js:88:21

The stack named amplify-sample-samsara-app-pravgupt-sandbox failed to deploy: UPDATE_ROLLBACK_COMPLETE: Only one resolver is allowed per field. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: 6f50892d-6eb4-4d19-993d-d4ed1db1ad48; Proxy: null), Embedded stack arn:aws:cloudformation:us-west-2:504152962427:stack/amplify-sample-samsara-app-pravgupt-sandbox-data7552DF31-E1S7MWRMXED4/4e1638a0-477c-11ee-a3d3-0647c8efd5b9 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [amplifyDataL2GraphqlApimyduplicateresolver2355E3CF].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@comcalvi updated the PR description with before and after the change


Clarify and expand ProvideInherent docs

This PR clarifies the docs for the ProvideInherent trait to the best of my understanding.

I think you should also merge master to make CI happy

I think you should also merge master to make CI happy

bot merge

bot merge


Each Extension Page should have List of open enhancements

Need some way to auto tag them. And then they'll be right there in the docs page.

tracking in personal Roam


ansible(MEV): SSL peer certificate or SSH remote key was not OK

got
fatal: [mev]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (60): SSL peer certificate or SSH remote key was not OK for https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=aarch64&infra=container&content=pub/rocky [SSL certificate problem: certificate is not yet valid]", "rc": 1, "results": []}

from
ansible-playbook -i inventory setup.yml

fixed by sync clock in linux, see https://github.com/opiproject/opi-poc/commit/f7187d7991e9d708f4309148e7a8e5e9f64f48cc


ability to print with xprinter printer

hi,
thanks for a very excellent application.
the concept is really great!!.
i have an xprinter which i want to connect to with receiptio on windows 10.
i am able to do test prints with windows os and the printer works fine.
but when i try connecting using xprinter it does not seem to work and  i always get the disconnect(105) message when i try printing using receiptio whether on the command line or when using the library from a nodejs application.
i checked the list of supported printers but i noticed the xprinter series of printers wasn't supported.
is this support coming anytime soon or is there some sort of workaround around this.
thanks!!.

Hi!
The printer control language "generic" may drive Xprinter.
receiptio -d <IP_ADDRESS> -p generic example.txt

For USB connection, please also install the virtual serial port driver and Node SerialPort.
Best regards.

thanks!.
will give it a shot and get back to you.


Concurrent transactions causing duplicated sequence number

I was testing your package and using tinker on 4 different terminals with a loop to create multiple models that use the sequenceable trait, I detected duplicated sequencer number.
In my case, I have a client scope, so the model should set the order based on a client id column. For that same client id there were sequence numbers that showed up 2 or even 3 times (for 1.5k records I had about 8 or 9 duplicated sequence numbers).
Have you consider using a SELECT FOR UPDATE statement? Locking the sequence should prevent race conditions like the one I'm having.

You are absolutely right. Initially, I designed this library for a mid-sized project, and until now, I had not encountered concurrency issues. However, I have reviewed and updated the relevant methods (incrementByOne and setValue) to include proper handling of locks and transactions. These improvements should ensure the integrity of sequence data under high concurrency conditions.
I apologize for the delay in my response. I appreciate your contribution in identifying this issue.
Thank you again for your help in improving the library.


Fix link to Paxos.

Description

Reported in Slack.

Urgency

[ ] Blocker
[ ] High
[x] Medium

Requirements

Test all commands and procedures.
Build content locally and test for formatting/links.
Add redirects to dcos-website/redirect-files.
Change all affected versions (e.g. 1.7, 1.8, and 1.9).
See the contribution guidelines.

LGTM

Thanks, @orsenthil and @joerg84 !

@orsenthil @sascala the ) is required for URLs that end in parenthesis. was this not working on dcos.io? was the user looking directly at GitHub? Judith made this (using an another viable escape character): https://github.com/dcos/dcos-docs/pull/931.

It was not working on dcos.io/docs that's why I raised and fixed. Is the new docs alive to verify the fix?

I see it fixed now: https://docs.mesosphere.com/1.9/administration/high-availability/


RLMObject category init method not seen from Swift view controller

Hello, I have a problem using category declared init method of RLMObject from Swift view controller. I have created a demo project (https://github.com/viktorasl/ObjcSwiftRealmModel) to demonstrate that. Mainly the steps are these:

Swift: Model SwiftModel: RLMObject
ObjC: Category RLMObject+JSON with initWithJSONDictionary: method
Swift: SwiftVC: UIViewController
ObjcSwiftRealmModel-Bridging-Header includes all required ObjC files

The problem: I cannot use SwiftModel(JSONDictionary: [NSObject:AnyObject]())

I think it may be Swift compiler's bug because it reproduces without Realm like below:
@interface TestObj : NSObject
@end

@interface TestObj (test)
- (instancetype)initWithSomething:(NSObject *)obj;
- (void)test;
@end

class SwiftObj: TestObj {

}

let obj1 = TestObj() // OK
obj1.test() // OK

let obj2 = TestObj(something: nil) // OK
obj2.test() // OK

let sobj1 = SwiftObj() // OK
sobj1.test() // OK

let sobj2 = SwiftObj(something: nil) // NG

Further investigation with type lookup, it does not seem anything wrong.
(lldb) type lookup TestObj
@objc class TestObj : ObjectiveC.NSObject {
  @objc deinit  {
  }
  @objc init()
}
extension TestObj {
  @objc init!(something obj: ObjectiveC.NSObject!)
  @objc func test()
}
(lldb) type lookup SwiftObj
@objc class SwiftObj : __ObjC.TestObj {
  @objc deinit
  @objc @objc init()
}

By Further investigation, it might not be the compiler bug. It is fixed by adding NS_DESIGNATED_INITIALIZER to init, like below:
@interface TestObj : NSObject
- (instancetype)init NS_DESIGNATED_INITIALIZER;
@end

It makes results of type lookup to:
(lldb) type lookup TestObj
@objc class TestObj : ObjectiveC.NSObject {
  @objc deinit  {
  }
  @objc init!()
}
extension TestObj {
  @objc convenience init!(something obj: ObjectiveC.NSObject!)
  @objc func test()
}
(lldb) type lookup SwiftObj
@objc class SwiftObj : __ObjC.TestObj {
  @objc deinit
  @objc @objc init!()
}
(lldb)


Improve loading time of website

Results from webpagetest.org suggest that the site takes about 12 seconds to load on the first view, and about 3 seconds to load on subsequent views. This is unacceptably slow and we should take steps to improve it.
There are several reasons for the slow speed. Currently Node.js is compiling all the app code and data into two JavaScript files with a combined size of about 4.5 MB. These files include the code for the app itself, various dependencies, as well as GeoJSON data for the map and all the statistical data for the charts. Over time, the amount of data we are dealing with is going to increase, so unless we do something about it, the site is going to get progressively slower. Downloading these JavaScript files takes around 8 seconds on the first view, and the JavaScript itself takes almost 3 seconds to execute on both the first view and repeat view.
In my opinion we have reached the point where the current single-page-application structure is no longer suitable. We should be looking to move to a site architecture which cuts down the amount of front-end code we serve to the user, where we have better control over the caching of specific parts of the code, and where we can be more selective about what data we serve to the user. The performance of the site could also be improved by splitting it into separate pages, which would have benefits in terms of UX too. Rather than sending the user the data for all the charts at once, we could then send them only what they need for the current page they are on.
In the meantime, it would speed up the site if we implement Gzip compression on the JavaScript and CSS files output by Node. This would reduce the download size of the those files from around 4.8 MB to 1.8 MB, which would be a significant improvement.
https://webpagetest.org/result/210426_AiDcPB_2c863176ab6dc326d8944dd4c9939e71/

As i mentioned earlier, the real solution here is to package data for each chart into separate json files and lazy load them via API.
However as an intermediate solution, the numbers will get better if we simply make the data js file load asynchronously. Not that it will be a real benefit to the end user, they will get placeholders, and graphs will still take the same time to load. But the test websites will give a better result.

As i mentioned earlier, the real solution here is to package data for each chart into separate json files and lazy load them via API.
However as an intermediate solution, the numbers will get better if we simply make the data js file load asynchronously. Not that it will be a real benefit to the end user, they will get placeholders, and graphs will still take the same time to load. But the test websites will give a better result.
Even if we want to separate the page in several sub pages it still requires us to have the data file separated into packages or API that will spit out only required data. It even may make sense to actually use some database for it, redis, elastic, mongodb...

Agreed, I also think we could load the data asynchronously and put it in some database. Maybe put some spinners... while the user waits.

@dorkster100 I agree with you that loading the data asynchronously would be a good idea and I am going to open a new issue for it.

However as an intermediate solution, the numbers will get better if we simply make the data js file load asynchronously. Not that it will be a real benefit to the end user, they will get placeholders, and graphs will still take the same time to load. But the test websites will give a better result.

Yes, this would be a good intermediate step, but I don't really agree with you that there would be no benefit to the user. There is a huge difference in the perceived speed of a website if the page starts rendering straight away rather than having the user look at a screen which doesn't change at all for 10 seconds. My interest is in improving the UX, not the test results per se.

Even if we want to separate the page in several sub pages it still requires us to have the data file separated into packages or API that will spit out only required data. It even may make sense to actually use some database for it, redis, elastic, mongodb...

Right, I am going to start work on the API soon. Ultimately adding a cache may make sense, although I suppose we can manage without it for the time being.

Basically solved by https://github.com/okestonia/koroonakaart/pull/245 without any API or database complications to worry about


Add "Rule" keyword to Gherkin documentation

See grammar definition in https://github.com/cucumber/cucumber/blob/master/gherkin/gherkin.berp
Also: https://github.com/cucumber/cucumber/issues/453
Note: should be added when Gherkin 6 is actually used in any/all Cucumber implementations.

@mlvandijk ,
I would like to help with this issue. Is it only about adding the word "Rule" when necessary?

Thanks @TomerPacific, that would be great.
Yes, we should add the "Rule" keyword and relevant information about this keyword (see links).

Opened a PR

You can always wait until the last one us on-board. But that is composition problem that will not scale the more implementations you get.
IMHO a better approach is to document per implementation which Gherkin version it supports. But clarify that with Aslak and/or Matt first.
Ciao,
Jens
Sent from my iPhone

On 18. Dec 2018, at 21:25, Marit van Dijk<EMAIL_ADDRESS>wrote:
Looks like Gherkin 6 is not implemented yet in Cucumber-jvm:
the pom.xml mentions <gherkin.version>5.1.0</gherkin.version> and there's an open PR to use Gherkin 6.
Cucumber-js package.json mentions "gherkin": "^5.0.0",
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

Closed by #271


Need a server side to interact

unable to login, after check found that this doesn't mock api call, instead do a real one to an unknown server
https://github.com/rizkyyusfian/tokopediaplay-react/blob/master/src/hooks/useAuth.js#L13

nvm, unfortunately I found it on README


Operation Timed out

Hi,
I am using a ble chip. It is using a specific communication protocol using hex format.
I saw that I have to encode the hex data into base64 format.
But I get an operation timed out.
I created a method that convert hex to base64 called hexToBase64 (it works).
For example one command is : 0x41 0x82 0x07 0x01 0x03
Do I have to convert all this line or send the data term by term like:
device.writeCharacteristicWithResponseForService(           service, characteristicW, this.hexToBase64("4182070103") )
OR
device.writeCharacteristicWithResponseForService(           service, characteristicW, this.hexToBase64("41") )
device.writeCharacteristicWithResponseForService(           service, characteristicW, this.hexToBase64("82") )
device.writeCharacteristicWithResponseForService(           service, characteristicW, this.hexToBase64("07") )
...
The device is responding right if I use another tool like hterm and send the data in raw Hex. So what am I doing wrong?
Thank you,
Regards,
Hugo Maitre

It is using a specific communication protocol using hex format.

Does device accept hex data in string form? If that's true, why don't you use normal function to encode  to Base64? Are spaces or prefixes "0x" important? In case of "4182070103" it should be "NDE4MjA3MDEwMw==".

Do I have to convert all this line or send the data term by term
No, you shouldn't. It's a waste of bandwidth. Just keep in mind what your MTU limit is.


Cannot install the required package trl-0.4.1

Error
It could not find the trl of the specified version 0.4.1 as shown in the image below when executing the command 'pip install git+https://github.com/lvwerra/trl.git#egg=trl-0.4.1'.

Environment
Python==3.9

Thanks for your interest in LMFlow! It may be caused by pip version problem. You may upgrade your pip and try again. Or you may manually download the package via this link. Unpack the package, enter the directory and manually install it via pip install -e . Thanks 😄

This issue has been marked as stale because it has not had recent activity. If you think this still needs to be addressed please feel free to reopen this issue. Thanks


dist pakage to be created

Please create clean dist package to include in projects using gulp also provide info how to refer distribute package through gulp or any other packaging library.

@balkrishna0007 - I'm sorry I don't understand. Gulp is a task runner, not a packaging library.

i am unable to get ng2-bs3-modal latest version in my vs code can you mention steps which files required to be kept in wwwroot folder also what configration has to be done at systemjs.config, package.json and gulp command to include this pakage
also what about ngx.bs3.modal???

Everything is described in the readme. If you have trouble making it work following the described procedure, I recommend posting the error messages you are getting.

I've had troubles having it run with Jasmine because of this "issue": Jasmine loads files from node_modules without any transpiling, and this package contains ES6 modules, which are currently not supported by node (still is an experimental feature).
I had to create a dist folder using babel as a postinstall script to load tests from non-ES6 modules. I first wanted to use babel-node, but it cannot be (easily?) configured to transpile files loaded from node_modules.


[Examples] Fix cmake build file python command

When I use CMake to build the LLAMA example on my MacBook, it encounters a 'python not found' issue. However, when I use the command python import-llama2.py in terminal, it works correctly. So, I want to use ${Python3_EXECUTABLE} to replace 'python'，it works correctly.Please review!

@zhanghb97 hi,hongbin,can you see this issue? Please review


change popup close behavior on geo-visualisation screen?

currently, the geo-visualisation screen allows multiple popups to be visible at the same time, and allows closing a popup by clicking anywhere on its content. this was introducted for the initial project presentation - do we want to keep it?

changed to only allow a single popup


Allow specifying rulesdir (custom rules path)

I have some custom rules and I need to add a directory for eslint to search for rules.

I suppose you can just add
"eslint": {
  "args": ["--rulesdir", "path/to"]
}

in your SublimeLinter config


404 "/admin/{% static" in base.html

 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>

"admin" => 'admin'

Invalid.
There is no 404. There is no external requests.
It works exactly as in django admin. It renders as:
  <script type="text/javascript">window.__admin_media_prefix__ = "/static/admin/";</script>

Strange, because after my fix error gone - I simple relpaced " " with ' '
python 3.4.2  django 1.8.2


Take a look at http://greenkeeper.io/

Nice idea https://github.com/ColinEberhardt/d3-financial-components/commit/ba7f87e9be2d3139f6e3613785756eff4bf0fb42

Done - for all projects under https://github.com/d3fc


Recently Opened Files List / History

Describe the solution you'd like
A History List of Recently/Last opened files. (This is a common feature in many editors)
I have not yet checked what kind of plugin system Lapce supports, so maybe its possible to do this through a plugin? I did search the open issues and did not find a recent file issue open/closed yet.
Additional context

For implementation, I would like to suggest to realise the "recently opened files" as a Top $n$-List of files which were edited.  The value of $n$ should be a configurable option of type unsigned integer, defaulting to, say, ten.  This should be a sane initial value for the most use cases of the requested feature.  As this is the first request for a list of recently edited files, I consider it likely that there are users who did not miss this feature at all, hence, the list should be able to be disabled by $n = 0$ in case that some users do not want to use the feature.
The Top $n$-List could be a RON file, for instance, containing a one-dimensional array with at most $n$ paths of the respective files.  As a data model I would like to suggest FIFO, so the first file ever edited will be removed if the $n + 1$-th file is edited.
Furthermore, an upper bound for $n$ should be discussed.  Assuming $n$ being implemented as u32, $2 ^ {32} - 1 =<PHONE_NUMBER>$ files might be saved in the history file.  This might cause not only memory problems if the system memory is somehow limited, also performance issues might arise from interpreting this file.  As an initial data type, I would thus like to suggest u16, allowing up to 65535 files in the history.  In my opinion, this should suffice for the introduction of this feature.  If users wish for more possible entries in the list, an adjustment should be rather simple due to having only to change the data type.

In Kate I have this value set to 40 because that is how many items I can display vertically in a single column. Kate has a maximum of 99, on my display(1920x1080) if I go over 40 then it starts displaying the list in two columns which is why I stick to 40.

Okay, sounds like u8 with at most 255 files would suffice for the beginning, right?  I was unsure whether users might want to view all files of two large projects, thereby exceeding this limit.

For my purposes that would be more than enough.

The introduction of this feature request suggested the implementation of a new standard tab next to the three others.  This new tab would need an icon for which I would like to suggest https://github.com/lapce/lapce/blob/master/icons/codicons/history.svg.


[aznamespaces] Add TokenCredential support to the library

Similar to this: C# TokenCredential auth
We should generate a sample and feature this prominently as well as the preferred constructor.

(this was done, but is currently broken in some cases - tracked by https://github.com/Azure/azure-sdk-for-go/issues/22961)


Sometimes happens ESOCKETTIMEDOUT

Spotify version: <IP_ADDRESS>.g3b5036d6
Windows version: 10.0.14393

Same for me. I have mac version 0.2.4 and spotify <IP_ADDRESS>.g3b5036d6

this must be fixed on master. can you try please?

No, it is not fixed. I still have the same problem.

@tornisvk with master I don´t have any problem.

@tornisvk are you trying with last update on master ? o are you using the last release?

@emilioastarita I am using last release because npm start is not working for me

ok. In next release you can try (i think that will be today). btw if you need help with npm start open a new issue posting your error. I'm closing this.


Display create time in 'platform users'

Yes we should display that date - thanks for the PR.
[ ] Maybe Date added would be clearer? We are showing when the user was added to the project/environment, not when the user account was created.
[ ] This depends on #450 (still in progress, a bit)
[ ] We shouldn't create a formatDateTime() method every time we need to display a date - that's a detail
The web UI doesn't show this much detail, by the way - should it?

Unfortunately the created_at property appears to be inaccurate in the API: as far as I can tell, it changes very frequently, perhaps when the user information is synced.


Refactor

@justingreenberg, in the process of refactoring I stumbled upon react-redux-saga that does the same: starts saga on mount and cancels on component un-mount which means it's not just my crazy idea :) @anuraaga, you also wanted to inject/eject sagas in component lifecycle methods, do you like this implementation?
In addition to satisfy most of developers needs (I hope) I added two other modes: 'daemon'—is not canceled and does not suffer from duplicate injection, 'once-till-unmount'—is cancelled in componentWillUnmount and is never started again.
In the future we can add more options like autorestart: true, that would be IMO a sensible default but nothing prevents people wrapping their sagas in autorestart higher order sagas right now + also extract these decorators into a separate package.
Some positive outcomes from this PR:

sagas/reducers can be injected with any component, doesn't matter if it's loadable or not on any level, not just top level routing components and they will not suffer from saga duplication issue. It (dynamic sagas with non loadable component) was possible   in previous refactoring but with ugly webpack comments to prevent a creation of an async chunk: /* webpackMode: "eager" */;
saga hot reloading works without the need of any additional configuration in store.js like there was for reducers. But to prevent 'daemon' saga duplication during hot reloading I had to give it a name, just like for a reducer, so only one saga is injected at a time, but that should not be a problem, either multiple injectSaga can be used or one saga that spawns others (or I can refactor injectSaga to accept an object {sagaName: saga, sagaName1: saga1}):

export default function* sagaName() {
  // if necessary, start multiple sagas at once with `all`
  yield all([
    helloSaga(),
    watchIncrementAsync()
  ]);
}

A saga and a reducer can be injected the following way:
const withReducer = injectReducer({ name: 'home', reducer });
const withSaga = injectSaga({ name: 'home', saga, mode: 'daemon' });

reducers just like sagas by default are removed too in componentWillUnmount for improved performance;
in the process fixed hot reloading of daemon reducers (reducers by default previously) that https://github.com/react-boilerplate/react-boilerplate/pull/976 broke (edit: probably something else broke reducer's hot reloading, didn't look into it).
Loadable.js for any component is very simple now:

import Loadable from 'react-loadable';

import LoadingIndicator from 'components/LoadingIndicator';

export default Loadable({
  loader: () => import('./index'),
  loading: LoadingIndicator,
});

@justingreenberg, are you aware of any downsides of this approach, what use cases are not covered? Do you like this solution or prefer to inject sagas only for routing containers + a hack to prevent the bug when a language is switched that you proposed? I think this approach is well suited for the fractal-ish design react-boilerplate is following.

@Dattaya truly awesome work on this 🙇 😄
this is pretty much exactly what i had in mind—funny you mention it, @mxstbr and i actually discussed react-redux-saga as a possible solution in the gitter chat a while ago
i reviewed this on my iPad earlier, and it looks solid. i am back at my laptop now and will do proper review. thanks again guys! @Dattaya @anuraaga

This is exciting! Awesome work @Dattaya

@justingreenberg, @anuraaga, in addition I can add a helper that creates a blocking task out of a regular one by self joining it: join(task) but has a better, more descriptive name:
const turnIntoBlocking = (task) => join(task);

it can then be used to allow for a manual clean up after a cancellation:
  try {
    const task = yield takeLatest(LOAD_REPOS, getRepos);
    yield turnIntoBlocking(task);
  } finally {
    if (yield cancelled()) {
      console.log('clean up');
    }
  }

@aga5tya, I'm glad you liked it 😃
@justingreenberg, @anuraaga thank you for the reviews, you feedback is extremely helpful ❤.

Thanks a lot @Dattaya! Merging, and we can follow up on anything later

in the process fixed hot reloading of daemon reducers

Turns out I didn't. When I change extends React.PureComponent to extends React.Component it does not remount the component (to preserve local React state) and hot reloading still does not work. In the future PR I want to do what CRA did—rely only on webpack hot reloading without HMR (not supported anymore and does not work for functional and React.PureComponent components) and react-hot-loader because it has lots of edge cases.
downsides:

does not preserve local state but Redux's state will be in place

upsides:

very simple setup
works with any kind of component
no edge cases it just works for components, reducers and sagas (as they will be re-injected when a component is remounted).


Draft: Add "Select with search" guidance

➡ Preview of the new guidance for Select

As discussed with Frankie, I'm going to close this as it's not something we can merge right now and hasn't been touched in over a year.
‘Autocomplete’ is one of our next priorities. When we start working on it, we'll revisit this PR and see if there’s anything we can reuse. It's already referenced from our backlog issue on autocomplete.


Visual Studio Code: Add support for VSCodium

Description
This adds support for VSCodium as an option in the extension settings.
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Sorry about that. Can't believe I didn't test the open with.


Saga handlers may be synchronous or return Promises instead of using callbacks

Thanks for your valueable PRs...
But for these cqrs modules I don't want to support Promises... at least not in this major version 😉
I would design the whole thing a bit differently...
But thanks anyway...

Is there a specific reason to not support Promises? Is it a wrong design or something?

Ok,
I needed to get some data from a denormalizer in a saga for enriching the next command, but currently it's not possible because the saga handler can't be async.
Or maybe you have another approach for this?

Something like this:

const { promisify } = require('util');
const myCollection = require('../path/to/my/collection');
const myCollectionFind = promisify(myCollection.find.bind(this));

require('cqrs-saga').defineSaga({
    name: 'myEvent',
    aggregate: 'myAgg',
    context: 'myCtx',
    id: 'aggregate.id',
}, async (event, saga, callback) => {
    const otherReadModels = await myCollectionFind({ my: 'rule' });
    otherReadModels.forEach(rm => saga.addCommandToSend({ name: 'notify', id: rm.id }));

    return saga.commit(callback);
});

I actually tried it, and thought it was blocking the other Sagas from running, but I must have done something wrong because I tried it again now and it works perfect!
Thanks!


enums not exported?

I'm getting the error source.js:2:43 SyntaxError: ambiguous indirect export: MyEnum when I try to import my enum like: import { MyEnum } from 'my_package:my_world/my_module' -- I see in debug mode that none of the enums appear to be exported.

In JavaScript we don't export types currently - instead they are replicated by structure. So an enum is just a union of kebab case strings.
Introducing runtime type imports is tracking in https://github.com/bytecodealliance/jco/issues/235 and may be introduced in the future.

Yeah I think it's important. I've got a ton of enums specified in wit files. Other guest code (ie. Rust) has access to them, so I think it makes sense that JS guest code would too. Otherwise the guest would have to replicate them so they can be passed as data. I'll keep an eye on the other issue, thanks.

Right now it's easy enough to use them as just strings, but yes we are moving in the direction of runtime types.


[ci] sync template files

This PR syncs the specified GitHub template files from the central repository.
Changes:

Merge pull request #40 from trueberryless-org/changeset-release/main - (3373f24)
try escaping var name test $repo_name#30 - (dfb5eda)

The branch has been updated with the latest changes.

The branch has been updated with the latest changes.


chinese string exception

hello,
i use tinyxml2 to create xml in memory, i use SetAttribute to set the node Attribute ,and the Attribute  has
chinese string ,eg:kevin_lu師司司.  the xml printer string exception occasionally no matter convert the chinese string to utf8 or not. can you help me ? Thank you!

As far as I am aware everything under the hood with tinyxml2 is UTF-8.
Sent from my iPhone
On 8 Feb 2017, at 05:16, gcy111 <notifications<EMAIL_ADDRESS>wrote:
hello,
i use tinyxml2 to create xml in memory, i use SetAttribute to set the node Attribute ,and the Attribute has
chinese string ,eg:kevin_lu師司司. the xml printer string exception occasionally no matter convert the chinese string to utf8 or not. can you help me ? Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/leethomason/tinyxml2/issues/524, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHnYs2lA_Nv5IvUU9RdC6gai6EjlatC7ks5raU-SgaJpZM4L6ZLN.

Yes, TinyXML-2 is UTF-8 all the way through. Your console or output window may be set to a different encoding.


Support for UrbanSound8K dataset

I am wondering if you are planning to expand the code to support the UrbanSound8K dataset in addition to ESC-50 as in the published paper?

That dataset is already supported. When we do compression and deployment, we used one dataset which is a sensible approach.


Add details in data,js (Hacktober Fest)

Hi,
I will add my favorite shows in the data.js file.
Best,
Rehan.

Sure


equation 3.43 of book1

Maybe subscripts of precision matrix should be zz, zy, yz, and yy.

fixed


[Util] macro to check port number

Add macro to check port number.
Signed-off-by: Jaeyun<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #105. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


remove reference to non-existing SVG

Firefox tries to use it even though it 404's, while chrome skips it when it doesn't find it. Fixes #12

Did you just bolt/bolt#1555 the extension site?


A shorter version for the function gridpoints

Looking at the first  functions in Gibbon.jl I noticed that some of them are implemented following the MATLAB style, with many lines of code, that can be reduced to just a few.
For example gridpoints could be defined like this:
function grid3d(x::Vector{T}, y::Vector{T}, z::Vector{T}) where T<:Real
    reshape([GeometryBasics.Point{3, Float64}(x, y, z) for z in z, y in y, x in x],
                             length(x)*length(y)*length(z))
end

This version  reshapes a 3d grid, i.e. an Array{Point3{Float64}, 3}.
Now let us call both functions:
x=collect(range(0, 2, 10))
pts1=gridpoints(x, x, x)
pts2=grid3d(x,x,x)

They return the same vector of points.

Thanks @empet ! My background is MATLAB so yes I am shedding that "ugly accent" in my Julia language so keen to learn tips like this to improve.
I wanted to check how fast these versions were. First I updated my function to be:
function gridpoints(X::Vector{T}, Y=X::Vector{T}, Z=X::Vector{T}) where T<:Real
    # Creates a 3D grid of GeometryBasics type 3D points based on the iterable input defining the ranges in the x, y, and z direction
    Vg = Vector{GeometryBasics.Point{3, Float64}}(undef,length(X)*length(Y)*length(Z)) # Allocate grid point set
    q = 0 # Initialize index
    for x ∈ X # For all x entries
        for y ∈ Y # For all y entries
            for z ∈ Z # For all z entries
                q += 1 # Increment index
                Vg[q] = GeometryBasics.Point{3, Float64}(x,y,z) # Add the current point
            end
        end
    end
    return Vg # Return the grid point set
end

I did notice a mistake, i.e. I used to have  Vg[q] = GeometryBasics.Point{3, Float64}([x,y,z]) (note the silly square brackets). But even after fixing that your solution is still mostly faster. I think I have a lot to learn. I would have thought that allocation of Vg helps, and that a reshape is costly (it is in MATLAB). I also thought keeping it as a range input e.g. range(0, 2, 10) rather than collect(range(0, 2, 10)) would be faster. So I am surprised to see the efficiently of your simplified approach.
Would you like me to change this or would you like to submit a pull request, so you are down as a contributor/co-author?
Thanks again.

@empet note I've just moved/renamed the project. Just pinging so you could find your way here. Thanks again for the suggested change.

Thank you for sending the new link. You may include the above code or modify it. The only remark is that inside reshape it must be GeometryBasics.Point{3, T}, not GeometryBasics.Point{3, Float64}.


Setup service mesh

Istio and Kubernetes

https://github.com/daveqr/urban-thread/issues/75 needs to happen first


added danger js to put validation on PR size

Details
Description

Desc
Added danger file and CI to restrict PR size

Reference
https://razorpay.slack.com/archives/CMM97TZQQ/p1657687676950489

Spec
Now PR will fail and merge will be blocked, if PR size is more than 400 lines, excluding test files also If files changes is more than 15 excluding test files

Related PRs and Dependencies
Once this merge, need to raise PR in narayan repo to make ci step required

don't think we need it for this repo.


system clock in container

Hi! Yours project is really cool!
I using arch linux, and time in my containers is set to UTC. Little patch fixed this.
It's will be useful to add
Volumes
- /etc/localtime:/etc/localtime:ro

to default docker-compose.yml.
Thanks a lot!

Added in docker-compose.yml.
The system timezone is fairly irrelevant for postfixadmin, nsd and nginx.