how to use esp32 to detect other object?

We want to use esp32 to detect other image recognition, such as text, please ask, how should this be trained? Based on the model you provided,

Hi, @xpdrycry
Sorry, we do not support that. Probably, you can train your own model and deploy it on esp32 with ESP-DL.
About how to customize your own model, please check the temporary branch esp-dl/v2_ahpha.
Best Regards.


Error at start on LIbreelec 9.0.1 / Kodi 18.1

Hello,
I have tried your mod to at least browse tracks on Soundcloud with Kodi.
I have installed your version (master branch, Your files copied in /storage/.kodi/addons/plugin.audio.soundcloud )
but the addon failed at start. Do i miss something?
I use LIbreelec 9.0.1 with Kodi 18.1
kodi.log

@siick can you try installing the plugin via Kodi interface?

By installing it this way, all plugin dependencies (like the future module) should be resolved and downloaded by Kodi.

Yes it works this way. Sorry to have opened an issue just for that. But maybe you can add this to the README ;)

@siick no problem!
I added some install instructions: https://github.com/jaylinski/kodi-addon-soundcloud/tree/v3.0.0-alpha.1#installation


Improve debug information that is being logged

Currently, it is not very helpful in spotting problems.

We need certainly to log the activities of the loader, because if a test file does not import reframe, it will be simply ignored by the loader without any other message.


Following the README leads to an error

I've diligently followed the README and did a pip install luxtronik. That installed the latest version 0.3.14. Then I opened a Python REPL and was greeted with an TypeError: cannot unpack non-iterable NoneType object error. The read() method on the l object returned nothing. The error makes sense.
On closer inspection, the code I installed with pip lagged far behind the code in main! Resulting in this unfortunate error.
Perhaps it is a good idea to release a new version aligning what people install with the README?

You're right, but we don't want to release a new version at the moment because there are more breaking changes to come whcih we want to bundle in a 0.4 version or something like that.
I guess we should have dev branch and keep the main branch equal to the latest release 🤔

In the meanwhile you can follow the instructions here:
https://github.com/Bouni/python-luxtronik/tree/0.3.14
Or if you prefer the dev version, install it directly from git:
pip install 'luxtronik@git+https://github.com/Bouni/python-luxtronik.git#main'


docker client renders utf-8 encoded characters incorrectly

FROM fedora
LABEL x Ý

$ docker build .
Sending build context to Docker daemon  2.56 kB
Step 0 : FROM fedora
 ---> e44d11f3b819
Step 1 : LABEL x Ý
 ---> Running in 67ae37fb9549
 ---> d443582a15b5
Removing intermediate container 67ae37fb9549
Successfully built d443582a15b5

docker build prints Ý correctly. inspect doesn't:
"Labels": {
    "x": "Ã"
}

So I tried to fetch raw data from engine via docker-py:
  u'Labels': {u'x': u'\xc3\x9d'},

UTF-8 encoded acting as unicode. That's not right. But the character is encoded correctly:
In [3]: print b"\xc3\x9d"
Ý

$ docker info
Containers: 31
Images: 331
Storage Driver: btrfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.7-300.fc22.x86_64
Operating System: Fedora 22 (Twenty Two)
CPUs: 4
Total Memory: 7.682 GiB
Name: quahog
ID: PD35:TRT5:VF5I:YQBZ:WR5T:DDLP:GAGB:M374:EK7G:ITUG:6PN3:OCCI
$ docker version
Client:
 Version:      1.8.1.fc22
 API version:  1.20
 Package Version: docker-1.8.1-3.git32b8b25.fc22.x86_64
 Go version:   go1.4.2
 Git commit:   32b8b25/1.8.1
 Built:
 OS/Arch:      linux/amd64

Server:
 Version:      1.8.1.fc22
 API version:  1.20
 Package Version:
 Go version:   go1.4.2
 Git commit:   32b8b25/1.8.1
 Built:
 OS/Arch:      linux/amd64
$ uname -a
Linux quahog 4.0.7-300.fc22.x86_64 #1 SMP Mon Jun 29 22:15:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

shell_parser not working well with UTF8 string
$ docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64

Sending build context to Docker daemon 5.632 kB
Step 1 : FROM ubuntu:14.04
 ---> 91e54dfb1179
Step 2 : LABEL x 유니코드
 ---> Running in f2a294a33d2b
 ---> df5246b92a7a
Removing intermediate container f2a294a33d2b
Successfully built df5246b92a7a

so when saved the json file  already written wrong string.
$pwd
pwd
/var/lib/docker/graph/df5246b92a7ad57911c95d85c808ec8338cdac8e58efbd4de4f5fe87bc3ec8e8

$cat json
.... ,"OnBuild":[],"Labels":{"x":"ì ëì½ë"}},"...


Added testing resource_dns_record terraform resource

I'd love to figure out why the tests are failing before merging this.


Cost insight configurable default currency

Hey, I just made a Pull Request!
I would like to see all the costs in the currency the company operated with, not dollars.
The system which provides the spent costs in our company is based on euros.

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@jhaals Feedback is incorporated


Missing git in environment is not handled gracefully

Traceback (most recent call last):
  File "/nix/store/07jhm9x8jnikbh6ag9cdf5dszj1j0vjp-steck-0.5.0/bin/.steck-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/1ag2gs5s8l1lyfrlm0813yl0i9g6kilp-python3.7-click-7.1.2/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/nix/store/1ag2gs5s8l1lyfrlm0813yl0i9g6kilp-python3.7-click-7.1.2/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/nix/store/1ag2gs5s8l1lyfrlm0813yl0i9g6kilp-python3.7-click-7.1.2/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/nix/store/1ag2gs5s8l1lyfrlm0813yl0i9g6kilp-python3.7-click-7.1.2/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nix/store/1ag2gs5s8l1lyfrlm0813yl0i9g6kilp-python3.7-click-7.1.2/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/nix/store/07jhm9x8jnikbh6ag9cdf5dszj1j0vjp-steck-0.5.0/lib/python3.7/site-packages/steck.py", line 101, in paste
    filtered = ignored(*paths)
  File "/nix/store/07jhm9x8jnikbh6ag9cdf5dszj1j0vjp-steck-0.5.0/lib/python3.7/site-packages/steck.py", line 41, in ignored
    encoding="utf8",
  File "/nix/store/q732h09azy7lf0j30bnnhdl15p4rxpdy-python3-3.7.7/lib/python3.7/subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/nix/store/q732h09azy7lf0j30bnnhdl15p4rxpdy-python3-3.7.7/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/nix/store/q732h09azy7lf0j30bnnhdl15p4rxpdy-python3-3.7.7/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'git': 'git'

Probably just need to add FileNotFoundError here: https://github.com/supakeen/steck/blob/master/steck.py#L43

Caught the correct exception as well, fixes this issue.


argument fill_valuep in nc_inq_var_fill

The argument fill_valuep is a pointer of void type defined in nc_inq_var_fill.
int nc_inq_var_fill (int ncid, int varid, int *no_fill, void *fill_valuep);
When trying to get the default fill values, this API leads to nc4_get_default_fill_value in line 169 of file nc4hdf.c. I can see type-casting of fill_valuep before assigning a pre-defined fill constant to it. This could be erroneous, as users may, for example, use a double in fill_valuep to inquire NC_FILL_SHORT. The type-casting will treat fill_valuep as a pointer of size 2 bytes. Below is a test program that can show the problem.
#include <stdio.h>
#include <stdlib.h>
#include <netcdf.h>

#define ERR {if(err!=NC_NOERR){printf("Error at line=%d: %s\n", __LINE__, nc_strerror(err));exit(1);}}

int main(int argc, char* argv[])
{
    int err, cmode, ncid, varid1, varid2;
    double fillv=0.0;

    cmode = NC_NETCDF4 | NC_CLOBBER;
    err = nc_create("testfile.nc", cmode, &ncid); ERR
    err = nc_def_var(ncid, "v1", NC_BYTE, 0, NULL, &varid1); ERR
    err = nc_def_var(ncid, "v2", NC_SHORT, 0, NULL, &varid2); ERR
    err = nc_enddef(ncid); ERR

    err = nc_inq_var_fill(ncid, varid1, NULL, &fillv); ERR
    printf("fill value of NC_BYTE  = %g\n",fillv);
    err = nc_inq_var_fill(ncid, varid2, NULL, &fillv); ERR
    printf("fill value of NC_SHORT = %g\n",fillv);
    err = nc_close(ncid); ERR
    return 0;
}

The output from screen is given below.
fill value of NC_BYTE  = 6.37345e-322
fill value of NC_SHORT = 1.619e-319

One possible solution is to change the data type of fill_valuep to double or
limit users to use a buffer of the same size as the variable data type.

We cannot limit users to type double. This function needs to work for user-defined types as well as atomic types, so we don't know a maximum type size.
We cannot limit users to use buffer of same size because we have no way of know what size the buffer is, we just get a pointer. It us up to the user to have a buffer of the correct size for the type.
@WardF I suggest this ticket be closed.

I understand there is no way to tell whether the memory space pointed to the user buffer argument is sufficiently large for the variable's external data type. My concern is when the user buffer is too small, calling nc_inq_var_fill can corrupt the memory space following the user buffer, according to the way function nc4_get_default_fill_value assigns the fill value to the user buffer.
At least, the user guide can explicitly remind users the possible problem if user buffer type does not match or smaller than the variable external type.

I have added the documentation as you suggest. PR up now.

The memory overwrite problem is common in the netcdf-c API because it relies on the user
passing in the memory for such things as nc_get_var or get_attr. It might be nice to have a function
that given a typeid allocates enough memory to hold 1 or more instances of that type.

As you know, the C library API has changed over time to provide
alternate functions that are safer against memory overflow.
Perhaps it is time to do the same for the netcdf-C API.
We could provide alternates for things like nc_inq_var_fill
and nc_get_varX where the netcdf-c library allocates the memory
and returns it to the user instead of having the user pass in the memory.


refs #7: Some simple guides for install and initial use

Since I noticed the open Ticket #7 and just started using Rosalina, I want to contribute some documentation which would helped me to get started.
As I don't know, how you want to make guides accessible, I just wrote two small *.md files and added some pictures to your Documentation folder.
Change or link to them as you see fit.

I added the OpenUPM option to the HowToInstall.md.
I also added a short description with a link to the detailed version for HowToInstall to the readme.
Additionaly added a link to the HowToCreateFiles to the readme.


FR: Update Carthage support to latest Firebase SDK version

Feature proposal
When including the FirebaseAnalytics framework binary in a project on Xcode >= 11.3 I get the following error:
*** Downloading binary-only framework FirebaseAnalyticsBinary at "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
Incompatible Swift version - framework was built with 5.1.2 (swiftlang-1100.0.278 clang-1<IP_ADDRESS>) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1<IP_ADDRESS>).

Suggesting that the framework is built with an earlier version of swift than the one shipped with the latest version of Xcode (11.3.1).
It looks like the latest release of the Firebase SDK is 6.18.0 but the last version supported with Carthage installation is 6.9.0. Please consider updating Carthage support.

Carthage is available for up to 6.17.0. 6.18.0 should be available soon.  Try carthage update.
The other error is strange since there should be no Swift in our Carthage distribution.

The other error is strange since there should be no Swift in our Carthage distribution.
I think it may have been a Carthage specific error when bootstrapping dependencies. (Using the binary file without Carthage was fine).

Carthage is available for up to 6.17.0
Ah, great thanks. Is there somewhere I can follow releases with Carthage support?

They're typically available without a day of the release showing up at https://github.com/firebase/firebase-ios-sdk/releases

Thanks for your help @paulb777!


MouseWithoutBorders periodically wakes pc up from display off state

Microsoft PowerToys version
0.86.0
Installation method
PowerToys auto-update
Running as admin
None
Area(s) with issue?
Mouse Without Borders
Steps to reproduce

Open mousewithoutborders
wait for first pc to turn off screen after a few minues of inactivity
start working on second pc, without moving cursor over to the first one
first pc acts like I was moving my mouse from time to time - turns its screen back on

✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

the behaviour is rapid mouse movement by a few pixels left and right from time to time

Using Power Toys v0.86.0.  MWB is not running in service mode.  Mouse not set to wrap and requires CTRL to move between screens.  Both systems running Windows 11 at latest service levels.  PC with the keyboard and mouse focus is awake and in use, while the PC without the focus is online but the system is locked and the displays are sleeping.  Unable to determine what I'm doing on the "in focus" system but, without warning, the "not in focus" systems makes a Windows alert sound of some sort and then displays the WHfB prompt for the PIN, as if I had moved the mouse on the "not in focus" system.  This happens several times an hour and forces me to mute the "not in focus" system.
That said, this ONLY happens when the first system that set the key is in focus and the second system is not in focus.  When the second system is in focus and the first system is not in focus, this does not occur.

Updating my comment from last week:  I was wrong about this only occurring when on the first system and the second system not having the focus.  I hadn't noticed that it happens in both directions, whether on the first system with the second not having the focus or on the second system with the first not having the focus.  I just hadn't heard the Windows alert sound on the first system when it wasn't in focus because it was muted.  But, after posting my comment last week, I was more aware and noticed that, when the second system had the focus, the first system would also periodically "wake up" as if the mouse had been jiggled on it or a key had been pressed.
Again, this is an annoyance but hardly a showstopper for using the functionality.

Updating my comment from last week: I was wrong about this only occurring when on the first system and the second system not having the focus. I hadn't noticed that it happens in both directions, whether on the first system with the second not having the focus or on the second system with the first not having the focus. I just hadn't heard the Windows alert sound on the first system when it wasn't in focus because it was muted. But, after posting my comment last week, I was more aware and noticed that, when the second system had the focus, the first system would also periodically "wake up" as if the mouse had been jiggled on it or a key had been pressed.
Again, this is an annoyance but hardly a showstopper for using the functionality.

I actually saw these jiggles multiple times. It goes left to right a few pixels maybe 5 times. I think it's a deliberate function that stops pc from going to sleep, but it's frustrating when I need the cursor to be steady or when I just want the pc to turn off its screen


Password bypass bug

Discussed in https://github.com/spencerwooo/onedrive-vercel-index/discussions/732

Originally posted by therockstarind August  2, 2022
there is bug with passoword proctacion it can bypass easily with this small changes
https://drive.swo.moe/🌞 Private folder/u-need-a-password/
https://drive.swo.moe/🌞 Private folder/U-need-a-password/
you just need to change the url folder name to small or big
@spencerwooo @myl7 please look in to and fix it.

The bug is caused by that OneDrive paths ignore case (for OS ignoring case like Windows)


*Test. added Frontend unit test

@xKeCo please let me know when you are done with the adjustments

@xKeCo please let me know when you are done with the adjustments

The changes have been implemented and the comments have been addressed.


Updates to walleyeTrends figure

takes over from #24

[x] add a legend
[x] add mouseover values to legend
[ ] have some of the fish appear/disappear w/ mouseover as values change?
[ ] add the trend line after animation is complete
[ ] expose a function to start the animation
[ ] script the fig for mobile too

current fig:

I have a PR coming shortly where we toss the line animation (hence me crossing it out ☝ ). It is the only thing we need a trigger for right now, and it would be great to avoid that complexity. Instead, I replaced the animation w/ some random motion in the various fish shapes to make those look alive (a bit).

from GH: Yup. Cool. I get it now. I like this better. closing


Problem running fmriprep 20.2.3

Hi,
I have been using fmriprep for quite sometime now. However, with the installation of fmriprep version 20.2.3 and trying to run it on docker version 20.10.7 is giving the following errors:
WatsonBucketsNamParamName  System.Collections.IDictionarySystem.Excepti   System.ArgumentException    The path is not of a legal form.
   �   at System.IO.Path.NewNormalizePath(String path, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
at Docker.ApiServices.Mounting.FileSharing.IsPathIncluded(String path, String directory) in C:\workspaces\PR-16024\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:line 59
at System.Linq.Enumerable.WhereListIterator1.MoveNext()    at System.Collections.Generic.List1..ctor(IEnumerable1 collection)    at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Docker.ApiServices.Mounting.FileSharing.d__7.MoveNext() in C:\workspaces\PR-16024\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:line 81
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.ApiServices.Mounting.FileSharing.d__5.MoveNext() in C:\workspaces\PR-16024\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:line 53
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.HttpApi.Controllers.FilesharingController.d__2.MoveNext() in C:\workspaces\PR-16024\src\github.com\docker\pinata\win\src\Docker.HttpApi\Controllers\FilesharingController.cs:line 21
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.TaskHelpersExtensions.d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__15.MoveNext()
   �8
NewNormalizePath
mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.IO.Path
System.String NewNormalizePath(System.String, Int32, Boolean)W �  mscorlib.
See 'docker run --help'.
fMRIPrep: Please report errors to https://github.com/nipreps/fmriprep/issues
Kindly help to rectify the issue.

This appears to be a Docker issue, though it may be an issue with the Docker command. Could you share your command?

PS E:\S0807> fmriprep-docker .\Nifti .\Derivatives1 participant --participant-label sub-S0807 --fs-license-file .\license.txt --use-syn-sdc --output-spaces MNI152NLin6Asym --cifti-output  --stop-on-first-crash

My E:\ is in file sharing of docker.

This should have printed a line with docker run in it. What did that look like?

docker run --rm -e DOCKER_VERSION_8395080871=20.10.7 -it -v E:\S0807\license.txt:/opt/freesurfer/license.txt:ro -v E:\S0807\Nifti:/data:ro -v E:\S0807\Derivatives1:/out nipreps/fmriprep:20.2.3 /data /out participant --participant-label sub-S0807 --use-syn-sdc --cifti-output --stop-on-first-crash --output-spaces MNI152NLin6Asym

That looks reasonable, as far as I can see. I would check with Docker support.

Alright, so you suggest sharing the error with them. Will do so.
Thanks,


feat(crashlytics): submit analytics crash event on fatal - enables support for crash free users reporting

Description

[x] iOS Support

[x] Requires iOS SDK 7.11+ (Pending PR #5896, blocked by #5901)

[ ] Android Support

Related Issues

N/A

Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

@googlebot I consent.


Add space at the bottom of README for contributors

If people who contribute want they can add their pfp and link to the bottom of the README. Might be implemented on the website as well (TBD)

Added but need to add border-radius and slight overlap. Perhaps increase the icon size as well

Added contributors to application homepage instead


[feature request] service health dashboard

From @AndrewSallans (moved from CenterForOpenScience/osf#578):

For improved communication of service availability and dependencies to end users, and ourselves, (ie. add-on connections), it would be good to add a service health dashboard. This would regularly ping services that the OSF draws upon and show whether they are up or down.

Example: http://status.aws.amazon.com/

@lyndsysimon commented:

I really like Heroku's status dashboard as well. In particular, it shows a history of issues and responses.

From my duplicate issue: "An added flourish would be to have a status widget available everywhere (say, in the navbar) that would be color coded to indicate whether things are good, good but with minor issues, or bad, and they could click it to see the status page."
And maybe a "report a problem with X service" if we think it's working but someone else doesn't. This may just indicate individual users' internet problems sometimes, but it may also give us forewarning of a problem in other cases.


Not clear where to edit own bio

I was trying to figure out how to edit my own bio, and I couldn't find it. Possibly that link should be in a more obvious location?

@carltongibson Anyone?


Support more platforms

Hey, great job with the library!
I'm hoping to use it in TvOS, but I was greeted with this error when trying to install the pod:
$ pod install
Analyzing dependencies
[!] The platform of the target `my-project-here` (tvOS 13.0) is not compatible with `SwiftTwitch (0.1.0)`, which does not support `tvOS`.

Is there any particular reason this library doesn't support more platforms like MacOS, TvOS? I'd be happy to help port for support if needed, but I've never used Cocoapods before so I'm not sure where to look to see why it doesn't already work for more than iOS.

... I was able to at least preliminarily install it by making this change, but who knows what if anything will break. I'll hopefully report back if my novice swift skills can manage to keep marching. PR will be incoming if it works 🤞

Hi Hawkins, thanks for the kind words! I didn't include tvOS/macOS support as I didn't test the platform with them, but the library should work on them. It'd be awesome if you came back with any findings/that PR! Thanks for using the library :)


[ERROR]

So I get this error and I do not know if the issue is on my end or Discord's.

Connecting...Traceback (most recent call last):
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\connector.py", line 581, in _create_connection
    local_addr=self._local_addr)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\base_events.py", line 663, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\base_events.py", line 686, in _create_connection_transport
    yield from waiter
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\futures.py", line 358, in __iter__
    yield self  # This tells Task to wait for completion.
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\tasks.py", line 290, in _wakeup
    future.result()
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\futures.py", line 274, in result
    raise self._exception
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\sslproto.py", line 492, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\sslproto.py", line 200, in feed_ssldata
    self._sslobj.do_handshake()
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\ssl.py", line 628, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)

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

Traceback (most recent call last):
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\connector.py", line 310, in connect
    transport, proto = yield from self._create_connection(req)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\connector.py", line 604, in _create_connection
    (req.host, req.port, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 1] Can not connect to discordapp.com:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)]

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

Traceback (most recent call last):
  File "run.py", line 165, in main
    m.run()
  File "C:\Users\Operator\Desktop\Lukaas MusicBot\musicbot\bot.py", line 557, in run
    self.loop.run_until_complete(self.start(*self.config.auth))
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\base_events.py", line 337, in run_until_complete
    return future.result()
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\futures.py", line 274, in result
    raise self._exception
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\asyncio\tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 437, in start
    yield from self.login(*args)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 367, in login
    yield from getattr(self, '_login_' + str(n))(*args)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 312, in _login_2
    resp = yield from self.session.post(endpoints.LOGIN, data=data, headers=self.headers)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\client.py", line 529, in __iter__
    resp = yield from self._coro
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\client.py", line 183, in _request
    conn = yield from self._connector.connect(req)
  File "C:\Users\Operator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\aiohttp\connector.py", line 320, in connect
    .format(key, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 1] Cannot connect to host discordapp.com:443 ssl:True [Can not connect to discordapp.com:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)]]
Cleaning up... Done.
Restarting in 2 seconds...

After this it repeats with increasing periods before restarts.
This is running on Windows Server 2016 with Python 3.5.1.

You can try installing this SSL certificate and seeing if it makes a difference: https://support.comodo.com/index.php?/Knowledgebase/Article/GetAttachment/969/821026

That solved the issue, thank you very much.
So that means that it was on my end then?

Yeah that means that it was on your end.
Your server was lacking a certificate from a major certificate authority

How would I solve this issue in the future?

You install that cert again if whatever system you're using has this issue.


No support for cleaning zones

Describe the bug
I'm trying to setup my Dreame F9 in home assistant.
Using Xiaomi Miot I can get the vacuum recognized and I can start/stop (among other features), but one thing that doesn't work is selecting a zone and sending the vacuum to clean that zone.

If I choose a zone and send the robot to clean it I get this error:

I have also created several zones, but it's not working.
This is my current code:
type: custom:xiaomi-vacuum-map-card
map_source:
camera: camera.xiaomi_cloud_map_extractor
calibration_source:
camera: true
entity: vacuum.dreame_p2008_d43b_robot_cleaner
vacuum_platform: send_command
title: Dreame F9
map_modes:

template: vacuum_clean_zone
template: vacuum_goto
template: vacuum_goto_predefined
template: vacuum_clean_zone_predefined
predefined_selections:

zones:

-5761
-2777
782
1810
label:
text: Sala
x: -2355
'y': -236

zones:

3979
-328
8162
3184
label:
text: Cozinha
x: 6041
'y': 1228

zones:

752
-2955
2604
-1327
label:
text: WC
x: 1768
'y': -2029

zones:

3889
-3017
8580
-521
label:
text: Quarto_Madalena
x: 6179
'y': -1790

zones:

3859
-5735
8580
-3031
label:
text: Escritorio
x: 6250
'y': -4270

zones:

932
-5735
3172
-3957
label:
text: WC_Quarto
x: 1888
'y': -4837

zones:

2635
-4181
4009
1810

962
-1104
2665
1840
label:
text: Hall
x: 2293
'y': 302

zones:

-3908
-5854
992
-2821

1022
-4093
2696
-3001
label:
text: Quarto
x: -234
'y': -3493

template: vacuum_follow_path

Expected behavior
To be able to clean by zone.

This is the homebridge plugin github, and it is not related to the home assistant plugin. I guess you opened the bug in the wrong place.


[DEP-435] Release 3.2.1

Description
SDK Release 3.2.1

Update SDK libraries
Update app version
Update README.md and CHANGELOG.md

References
DEP-435
Testing

[ ] Complete 3 steps flow with Zoom liveness.
[ ] Complete 3 steps flow with face capture.

Checklist

[ ] I have added documentation for new/changed functionality in this PR or in auth0.com/docs
[ ] All active GitHub checks for tests, formatting, and security are passing
[ ] The correct base branch is being used, if not master

ID document capture and FaceTec Liveness flow: OK.
ID document capture and FCM: OK.
ID document capture and FCM-unbundled: Ok.


Use '_rng' for init rng arg to allow apply to have an 'rng' arg.

Some users would like to use 'rng' as an argument name in their module apply functions, but the internal initialization time rng argument was named that, blocking that usage, this fixes that issue.

Are we sure this is a good change? the rng argument to init/init_by_shape is meaningful (passed through to all of the initializers). What would a user expect if they do something like module.init(jax.random.PRNGKey(0), rng=jax.random.PRNGKey(1))?
(Maybe there's an obvious answer but I'm not sure...) Isn't it better to disallow using a rng kwarg altogether? (not sure how to do that off the top of my head)

Actually, I'm curious about the usecase -- why would a module take in another PRNG during init that's not the same as the rng argument?

It's not for the init, it's for training/inference. See https://github.com/google/flax/pull/111/commits/ebc27036d8750f8ab5380a9d0b704cdfca1685f1

@jheek there will be in python 3.8!  https://www.python.org/dev/peps/pep-0570/


Fix agents spawned into the wall(#306)

:)

I don't think this is quite the right fix -- the function is written to handle the situation where we fail to find a poly, see eg.
https://github.com/recastnavigation/recastnavigation/blob/9f9efe943ed54a31b02270fb13b301754e918528/DetourCrowd/Source/DetourCrowd.cpp#L557-L560
If we decide that any agent should initially be placed on a valid poly (this makes absolute sense to me), then the rest of the function should also be adjusted appropriately. However an agent can also get into the DT_CROWDAGENT_STATE_INVALID state in other situations:
https://github.com/recastnavigation/recastnavigation/blob/9f9efe943ed54a31b02270fb13b301754e918528/DetourCrowd/Source/DetourCrowd.cpp#L972-L980
I'm not sure what the intention was here -- @memononen, how should folks handle DT_CROWDAGENT_STATE_INVALID? As far as I can see, when an agent gets into this state, it will need some help to recover from the user, but I'm not sure if dtCrowd provides a good way to teleport agents back on mesh. So (correct me if I'm wrong) pretty much the only way to recover is to remove those agents.

It really depends on the game/simulation how to handle that kind of cases. Invalid means that the agent is too far from navigable are (can happen quite frequently in dynamic worlds).
One option is to use the navmesh query and use larger search are to find a valid polygon (with exponential retry timer!), or respawn the agent to safe location, or remove it.

But what is the mechanism for doing those things? For instance, once the agent is in an invalid state and the user has found a new poly by using larger search area, how does the user actually teleport the agent to the new position? Reach into the internals of dtCrowdAgent (i.e.. corridor)? Remove and readd the agent at the new position?
Basically my thinking is this: if people need to remove and readd an agent that is in invalid state to actually recover, then letting addAgent succeed when it fails to place the agent is a bit strange, since the user has to remove it again to fix the problem.

@jakobbotsch you're correct, there should be function to set agent position (teleport).
I never quite completed the crowd code. I had planned to take a pass on the code to make it easier to interface and sync with AI behaviors and animation, but never got there. I.e. it should be possible for the user to do his/hers own "physics" (for things like animation driven motion), or to better handle switching between navigation and non-navigation behaviors, handling off-mesh connections, etc.


Cloud native technologies >> update to new format

https://github.com/cncf/glossary/blob/main/definitions/cloud_native_tech.md
Please convert entry to the property format. View the style guide for more details.

@JasonMorgan @CathPag - i can take up if available..

Same here, @kumardeni. Please finish the other term first — thanks!


[Feature] Configuration Document Optimization Suggestions - ChatQnA Setup and Deployment

Priority
P3-Medium
OS type
Ubuntu
Hardware type
GPU-Nvidia
Running nodes
Single Node
Description
Due to the limited performance of my local Intel processor, I tried to deploy ChatQnA using a 3090 graphics card. According to the documentation at https://github.com/opea-project/GenAIExamples/blob/main/ChatQnA/docker_compose/nvidia/gpu/README.md, everything went smoothly.
However, after completing the deployment, I found that the host's large language model was still using the CPU instead of the GPU. After some troubleshooting, I discovered that the CUDA version on Ubuntu was incompatible with the torch version inside TGI Docker, which caused the GPU not to load. I saw a great table in the documentation listing which Docker image versions should be used for different GPU series; this is very helpful. I also suggest providing recommendations for which CUDA versions should be installed on Ubuntu hosts so that users can complete their setup more smoothly and quickly transition to developing upper-level applications.

Overall, OPEA is fantastic.

thanks for reporting this issue. it's very good feedback. we should have a doc to list all deployment prerequisites before deploying such docker image.
we will add such content in the future release.


Get rid of buffer in clint_slice

If the adapter in bp_tile guarantees that the response buffer will not be full when it sends a command (reasonable since they are 1:1).  If so, we can get rid of the FIFOs around the CLINT.  For BP softcore, this depends on the handshake with the UCE. Will investigate.

In dev


ARDB dies at high load

I am trying to stress test ARDB. It seems after using redis-benchmark heavily ARDB dies
redis-benchmark -p 22122 -c 10 -d 1024 -n 500000000 -t set -r 500000000

However, I cannot find out the core dump to debug. I am assuming there is some leak. Any advice would be highly appreciated. The log file are not informative about an ERROR
[11256] 03-18 02:00:12,611 WARN [RocksDB]------- DUMPING STATS -------
[11256] 03-18 02:00:12,611 WARN [RocksDB]
** Compaction Stats [default] **
Level    Files   Size(MB} Score Read(GB}  Rn(GB} Rnp1(GB} Write(GB} Wnew(GB} Moved(GB} W-Amp Rd(MB/s} Wr(MB/s} Comp(sec} Comp(cnt} Avg(sec} KeyIn KeyDrop
----------------------------------------------------------------------------------------------------------------------------------------------------------
 Sum      0/0       0.00   0.0      0.0     0.0      0.0       0.0      0.0       0.0   0.0      0.0      0.0         0         0    0.000       0      0
 Int      0/0       0.00   0.0      0.0     0.0      0.0       0.0      0.0       0.0   0.0      0.0      0.0         0         0    0.000       0      0
Uptime(secs): 19130.5 total, 19130.5 interval
Flush(GB): cumulative 0.000, interval 0.000
AddFile(GB): cumulative 0.000, interval 0.000
AddFile(Total Files): cumulative 0, interval 0
AddFile(L0 Files): cumulative 0, interval 0
AddFile(Keys): cumulative 0, interval 0
Cumulative compaction: 0.00 GB write, 0.00 MB/s write, 0.00 GB read, 0.00 MB/s read, 0.0 seconds
Interva
[11256] 03-18 02:00:27,189 WARN [RocksDB][0] Increasing compaction threads because we have 5 level-0 files
[11256] 03-18 02:01:13,765 WARN [RocksDB][0] Increasing compaction threads because we have 5 level-0 files
[11256] 03-18 02:01:20,712 WARN [RocksDB][0] Increasing compaction threads because we have 5 level-0 files
[11256] 03-18 02:01:34,180 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:01:37,628 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:01:37,700 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:01:48,507 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:01:49,264 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:12,577 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:16,869 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:17,000 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:23,320 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:26,122 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:28,721 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:30,964 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:02:31,624 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:03:11,284 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:03:13,304 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:03:18,078 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:03:19,252 WARN [RocksDB][0] Increasing compaction threads because we have 6 level-0 files
[11256] 03-18 02:03:23,529 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:03:56,490 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:04:09,855 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:04:13,452 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:04:23,760 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:04:30,957 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:04:36,614 WARN [RocksDB][0] Increasing compaction threads because we have 7 level-0 files
[11256] 03-18 02:04:45,029 WARN [RocksDB][0] Increasing compaction threads because we have 8 level-0 files
[11256] 03-18 02:05:09,373 WARN [RocksDB][0] Increasing compaction threads because we have 8 level-0 files
[11256] 03-18 02:05:16,277 WARN [RocksDB][0] Increasing compaction threads because we have 8 level-0 files
[11256] 03-18 02:05:24,036 WARN [RocksDB][0] Increasing compaction threads because we have 8 level-0 files
[11256] 03-18 02:05:29,957 WARN [RocksDB][0] Increasing compaction threads because we have 8 level-0 files
[11256] 03-18 02:05:39,676 WARN [RocksDB][0] Increasing compaction threads because we have 8 level-0 files
[11256] 03-18 02:05:46,104 WARN [RocksDB][0] Increasing compaction threads because we have 9 level-0 files
[11256] 03-18 02:05:52,865 WARN [RocksDB][0] Increasing compaction threads because we have 9 level-0 files
[11256] 03-18 02:06:05,765 WARN [RocksDB][0] Increasing compaction threads because we have 9 level-0 files
[11256] 03-18 02:06:30,504 WARN [RocksDB][0] Increasing compaction threads because we have 9 level-0 files
[11256] 03-18 02:06:36,652 WARN [RocksDB][0] Increasing compaction threads because we have 10 level-0 files
[11256] 03-18 02:06:39,713 WARN [RocksDB][0] Increasing compaction threads because we have 10 level-0 files
[11256] 03-18 02:06:53,097 WARN [RocksDB][0] Increasing compaction threads because we have 10 level-0 files
[11256] 03-18 02:07:13,035 WARN [RocksDB][0] Increasing compaction threads because we have 10 level-0 files
[11256] 03-18 02:07:16,876 WARN [RocksDB][0] Increasing compaction threads because we have 10 level-0 files
[11256] 03-18 02:07:26,102 WARN [RocksDB][0] Increasing compaction threads because we have 11 level-0 files
[11256] 03-18 02:07:45,854 WARN [RocksDB][0] Increasing compaction threads because we have 11 level-0 files
[11256] 03-18 02:08:16,624 WARN [RocksDB][0] Increasing compaction threads because we have 11 level-0 files
[11256] 03-18 02:08:25,522 WARN [RocksDB][0] Increasing compaction threads because we have 12 level-0 files
[11256] 03-18 02:08:46,459 WARN [RocksDB][0] Increasing compaction threads because we have 12 level-0 files
[11256] 03-18 02:09:18,563 WARN [RocksDB][0] Increasing compaction threads because we have 12 level-0 files
[11256] 03-18 02:09:27,853 WARN [RocksDB][0] Increasing compaction threads because we have 13 level-0 files
[11256] 03-18 02:09:49,285 WARN [RocksDB][0] Increasing compaction threads because we have 13 level-0 files
[11256] 03-18 02:10:02,817 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>7
[11256] 03-18 02:10:07,747 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>0
[11256] 03-18 02:10:07,873 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>4
[11256] 03-18 02:10:07,890 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>4
[11256] 03-18 02:10:08,053 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>1
[11256] 03-18 02:10:08,132 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>9
[11256] 03-18 02:10:12,793 WARN [RocksDB][0] Increasing compaction threads because of estimated pending compaction bytes<PHONE_NUMBER>8
[11256] 03-18 02:10:12,793 WARN [RocksDB]------- DUMPING STATS -------

I am using /tmp for the code dumps but the folder does not have any core dumps.
/tmp $ cat /proc/sys/kernel/core_pattern
/tmp/core_%e.%p

If any process killed by the os, u can find crash log info in syslog.

this seems an OOM excetion, any log about the memory usage during the test?

This is what I see in dmesg which indicates a segfault.
[115645.998696] traps: rocksdb:bg5[13107] general protection ip:715db0 sp:7f0ef07fcc30 error:0 in ardb-server[400000+415000]
[479008.662810] ardb-server[11000]: segfault at 0 ip<PHONE_NUMBER>72dc97 sp 00007fb1bcdfddb0 error 4 in ardb-server[400000+415000]
[700896.165801] rocksdb:bg4[11261]: segfault at 7f78a5000780 ip<PHONE_NUMBER>5748aa sp 00007f78a75fdee0 error 6 in ardb-server[400000+415000]

there is a fixed issue  log crash fix https://github.com/yinqiwen/ardb/commit/98c9973bb35eedd61234ad645080407aef15761e , is this the same problem?

We still have this issue while testing. Typically teh data size reaches 28G when this occurs.
[45563.075717] show_signal_msg: 9 callbacks suppressed
[45563.075730] ardb-server[13099]: segfault at 7f0003ca2a00 ip 00007f5c05069404 sp 00007f5bea5fdda0 error 4 in libpthread-2.19.so[7f5c0505f000+19000]
[80006.812341] rocksdb:bg4[4377]: segfault at 7f006e21d748 ip<PHONE_NUMBER>5a9ec3 sp 00007f246c9fdc00 error 4 in ardb-server[400000+415000]

I do not have a core dump apparently.

I'm using ardb with rocksdb. Currently my DB size is 37GB, ~78M keys. No crashes so far. Here is my image: https://hub.docker.com/r/expert/ardb/

@unoexperto That's a very useful comment! Thank you.

@unoexperto Did you run the redis-benchmark test that I mentioned above and got 37GB of data size? or are you using a different load?

@ipapapa Nope, I didn't use it. I simply copied my production database from SSDB to see what happens. I guess pattern of load is different in my case from what redis-benchmark gives.

@yinqiwen Pulling the latest version, I am seeing the following the segmentation fault.
(gdb) bt
#0  atomic_get_and_set_vptr_t (v=0x7f7462969140, var=0x58) at ./common/util/concurrent_queue.hpp:77
#1  ardb::MPSCQueue<ardb::ChannelAsyncIOContext>::Push (value=..., this=0x58) at ./common/util/concurrent_queue.hpp:271
#2  ardb::ChannelService::AsyncIO (this=0x0, ctx=...) at common/channel/channel_service.cpp:563
#3  0x00000000004817f9 in ardb::ChannelService::AsyncIO (this=<optimized out>, id=id@entry=0,
    cb=cb@entry=0x5684e0 <ardb::ReplicationBacklog::WriteWALCallback(ardb::Channel*, void*)>, data=data@entry=0x7f7469818540) at common/channel/channel_service.cpp:663
#4  0x0000000000567c2c in ardb::ReplicationBacklog::WriteWAL (this=0xa7e7d8 <ardb::_repl_singleton+1240>, ns=..., cmd=...) at repl/repl.cpp:253
#5  0x000000000054093a in ardb::Ardb::DoCall (this=this@entry=0x7ffc77bf20b0, ctx=..., setting=..., args=...) at db/db.cpp:1412
#6  0x0000000000546037 in ardb::Ardb::Call (this=0x7ffc77bf20b0, ctx=..., args=...) at db/db.cpp:1557
#7  0x00000000004796bd in ardb::RedisRequestHandler::MessageReceived (e=..., ctx=..., this=0x7f7484015c00) at network.cpp:130
#8  ardb::ChannelUpstreamHandler<ardb::codec::RedisCommandFrame>::HandleStreamEvent (e=..., ctx=..., this=0x7f7484015c00)
    at ./common/channel/channel_upstream_handler.hpp:133
#9  ardb::ChannelPipeline::SendUpstream<ardb::codec::RedisCommandFrame> (ctx=<optimized out>, e=..., this=<optimized out>) at ./common/channel/all_includes.hpp:89
#10 0x000000000047e420 in ardb::ChannelHandlerContext::SendUpstream<ardb::MessageEvent<ardb::codec::RedisCommandFrame> > (this=0x7f74840e4e10, this=0x7f74840e4e10,
    e=...) at ./common/channel/all_includes.hpp:164
#11 ardb::fire_message_received<ardb::codec::RedisCommandFrame> (destructor=0x0, message=0x7f746a5fea00, ctx=...) at ./common/channel/channel_helper.hpp:91
#12 ardb::codec::StackFrameDecoder<ardb::codec::RedisCommandFrame>::CallDecode (this=0x7f74840e9900, context=..., channel=0x7f746b5ed800, cumulation=...)
    at ./common/channel/codec/stack_frame_decoder.hpp:102
#13 0x000000000047ef68 in ardb::codec::StackFrameDecoder<ardb::codec::RedisCommandFrame>::MessageReceived (this=0x7f74840e9900, ctx=..., e=...)
    at ./common/channel/codec/stack_frame_decoder.hpp:157
#14 0x000000000048a8a3 in ardb::ChannelUpstreamHandler<ardb::Buffer>::HandleStreamEvent (e=..., ctx=..., this=<optimized out>)
    at ./common/channel/channel_upstream_handler.hpp:133
#15 ardb::ChannelPipeline::SendUpstream<ardb::Buffer> (ctx=<optimized out>, e=..., this=0x7f746b5ed838) at ./common/channel/all_includes.hpp:89
#16 0x000000000048bb62 in ardb::ChannelPipeline::SendUpstream<ardb::MessageEvent<ardb::Buffer> > (event=..., this=0x7f746b5ed838)
    at ./common/channel/all_includes.hpp:128
#17 ardb::fire_message_received<ardb::Buffer> (destructor=0x0, message=0x7f746b5ed868, channel=0x7f746b5ed800) at ./common/channel/channel_helper.hpp:83
#18 ardb::Channel::OnRead (this=0x7f746b5ed800) at common/channel/channel.cpp:560
#19 0x000000000048a90d in ardb::Channel::IOEventCallback (eventLoop=<optimized out>, fd=<optimized out>, clientData=0x7f746b5ed800, mask=1)
    at common/channel/channel.cpp:53
#20 0x00000000004c1377 in aeProcessEvents (eventLoop=eventLoop@entry=0x7f74840e5bd8, flags=flags@entry=3) at common/channel/redis/ae.c:429
#21 0x00000000004c17cb in aeMain (eventLoop=0x7f74840e5bd8) at common/channel/redis/ae.c:485
#22 0x00000000004af3f0 in ardb::Thread::ThreadFunc (data=0x7f748413a290) at common/thread/thread.cpp:38
#23 0x00007f74857946ba in start_thread (arg=0x7f746a5ff700) at pthread_create.c:333
#24 0x00007f74845f782d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

In line 1, this being a second argument sounds suspicious.

Is there a shutdown command received by ardb?
in the stack trace,  ChannelService is null in ReplicationService, which would only be free after whole server shutdown.
#2  ardb::ChannelService::AsyncIO (this=0x0, ctx=...) at common/channel/channel_service.cpp:563

I do not believe redis-benchmark has a shutdown integrated. Hypothetically speaking, if there was a shutdown, ardb would not have been terminated by SIGSEGV.

Btw at a later point of time,  I also got some rocksdb core dumps core_rocksdb:bg13.32454.1496361099. Is there a way to run gdb on them?

Is the last stack trace generated by the latest code?

Yes, I am using the latest code prior to to the latest commit for log crash.  I am concerned that your fix is not related to this crash. Why would Buffer be NULL after it was created a couple of lines above?
I also see now a different core dump after I restart ARDB from the previous crash.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000000006eada2 in std::default_delete<rocksdb::SliceTransform>::operator() (this=<optimized out>, __ptr=0x7fc08d004040) at /usr/include/c++/5/bits/unique_ptr.h:76
76	/usr/include/c++/5/bits/unique_ptr.h: No such file or directory.
[Current thread is 1 (Thread 0x7fc088dff700 (LWP 410))]
(gdb) bt
#0  0x00000000006eada2 in std::default_delete<rocksdb::SliceTransform>::operator() (this=<optimized out>, __ptr=0x7fc08d004040) at /usr/include/c++/5/bits/unique_ptr.h:76
#1  std::unique_ptr<rocksdb::SliceTransform, std::default_delete<rocksdb::SliceTransform> >::~unique_ptr (this=0x7fc08d645378, __in_chrg=<optimized out>) at /usr/include/c++/5/bits/unique_ptr.h:236
#2  rocksdb::BlockBasedTable::Rep::~Rep (this=0x7fc08d645200, __in_chrg=<optimized out>) at table/block_based_table_reader.cc:423
#3  rocksdb::BlockBasedTable::~BlockBasedTable (this=<optimized out>, __in_chrg=<optimized out>) at table/block_based_table_reader.cc:509
#4  0x00000000006eaff1 in rocksdb::BlockBasedTable::~BlockBasedTable (this=0x7fc08d61e320, __in_chrg=<optimized out>) at table/block_based_table_reader.cc:510
#5  0x000000000066e71b in rocksdb::LRUHandle::Free (this=0x7fc08d672f50) at ./util/lru_cache.h:108
#6  rocksdb::LRUCacheShard::Erase (this=0x7fc08eb76b30, key=..., hash=3052707373) at util/lru_cache.cc:411
#7  0x000000000060b648 in rocksdb::TableCache::Evict (cache=<optimized out>, file_number=23942) at db/table_cache.cc:406
#8  0x000000000059d939 in rocksdb::DBImpl::PurgeObsoleteFiles (this=this@entry=0x7fc08907f000, state=..., schedule_only=schedule_only@entry=false) at db/db_impl.cc:1113
#9  0x00000000005a8a35 in rocksdb::DBImpl::BackgroundCallCompaction (this=0x7fc08907f000, arg=<optimized out>) at db/db_impl.cc:3386
#10 0x000000000069827d in std::function<void ()>::operator()() const (this=0x7fc088dfebe0) at /usr/include/c++/5/functional:2267
#11 rocksdb::ThreadPoolImpl::Impl::BGThread (this=this@entry=0x7fc08ebc50e0, thread_id=thread_id@entry=8) at util/threadpool_imp.cc:235
#12 0x000000000069846d in rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper (arg=0x7fc08ea47050) at util/threadpool_imp.cc:259
#13 0x00007fc08f8d8c80 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#14 0x00007fc0901db6ba in start_thread (arg=0x7fc088dff700) at pthread_create.c:333
#15 0x00007fc08f03e82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109


Unresolved import issue in PyDev

Having checked-out the master branch and installed pycalculix via 'python setup.py develop' creates a working version in PyDev. However, 'jumping' via CTRL+left_mouse into the source code does not work properly. PyDev shows an 'unresolved import' at lines containing a dot in the import, i.e. in 'partmodule.py' 'from . import base_classes'.

Turning all lines into imports without dot fixes the issue.
Is the 'from . import' syntax required for any reason, or can it be turned into a simple 'import'?
Note that the 'pycalculix' folder needs then to be added as source directory in PyDev project properties to PYTHONPATH.

Update: The issue was in the '.pydevproject' file, which only pointed to the 'pycalculix' subfolder as source directory. Changing this to the top 'pycalculix' folder solved the issue.
However, I would suggest to gitignore the '.pydevproject' and '.project' file since it leads often to synchronizing conflicts due to individual folder or environment namings.


Not working on mobile?

Hi, i a newbie at programming sorry if im doing something wrong. But im using slick-lightbox and it works great on google chrome but i cannot make it work on my mobile. When i click the image to lightbox it, it redirects me to the img, i doesnt open the lightbox

Hi @nekosteiger, did you ever find a solution for this?


e2e fix

Codecov Report

Merging #5 (c14abd5) into main (83f3955) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage   88.88%   88.88%
=======================================
  Files           6        6
  Lines          36       36
  Branches        7        7
=======================================
  Hits           32       32
  Misses          2        2
  Partials        2        2

Continue to review full report at Codecov.

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


Support fused RoPE

Cherry pick some commits about fused RoPE implementation

I accidentally messed up this PR, I will reopen a new one


Fix duplicate headers in multipart Part

Following this https://github.com/softwaremill/tapir/pull/335
Just in case you'd like to have these changes.
Thank you.

Thanks a lot for the PR! However, I think the current behavior is fine, but needs better documentation.
There are in fact three choices on what can be done when a header is added:
(1) always add it
(2) remove the old one, if a header with the same name exists
(3) remove the new one, if a header with the same name exists
Current behavior is (1) or (2). Your change would mean (1) or (3). Both are valid, but both in the Part and in RequestT the choice is between (1) and (2) (so the new header is always added, with the old one being optionally dropped), and I think it would make sense keeping this behavior.


Map tiles not displayed when using SqlTileWriter with a custom tile provider

Issue Type
[ ] Question
[x] Bug
[ ] Improvement
[ ] Build system related
[ ] Performance
[ ] Documentation
Description and/or steps/code to reproduce the problem
It's either a bug or a "user error".
I've created a custom tile provider that works fine with TileWriter, but with SqlTileWriter the tiles are not shown and are constantly downloaded again and again. (So, if testing this, don't keep the app running unnecessarily.) They are however stored successfully in the SQLite database in the app's private folder (like e.g. /data/user/0/com.example.osmdroidtestbench/files/osmdroid/tiles/cache.db) as seen with an SQLite browser and by the increasing cache.db file size when zooming and panning.
The relevant code:
        Configuration.getInstance().load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
        Configuration.getInstance().setUserAgentValue(BuildConfig.APPLICATION_ID);
        // Some additional debug data is available:
        Configuration.getInstance().setDebugMapView(true);
        Configuration.getInstance().setDebugMode(true);
        Configuration.getInstance().setDebugTileProviders(true);
        Configuration.getInstance().setDebugMapTileDownloader(true);

	// This would probably be used by default anyway:
        File osmdroidRoot = ctx.getFilesDir();
        Configuration.getInstance().setOsmdroidBasePath(osmdroidRoot);

        // Create a custom tile source
        final IRegisterReceiver registerReceiver = new SimpleRegisterReceiver(ctx);
        String tileSourceName = "MyTileSource";
        String baseUrl = "https://some-tile-source-provider.org/map-style-etc/";
        String fileExtension = ".png";
        int mapTileSourceTileSizeInPixels = 512;

        final ITileSource tileSource = new XYTileSource(
                tileSourceName, 1, 20, mapTileSourceTileSizeInPixels, fileExtension,
                new String[]{baseUrl});

        // Create a file cache modular provider:
        // Works:
        // final TileWriter tileWriter = new TileWriter();
        // Doesn't work:
        final SqlTileWriter tileWriter = new SqlTileWriter();

        final MapTileFilesystemProvider fileSystemProvider = new MapTileFilesystemProvider(
                registerReceiver, tileSource);
        GEMFFileArchive gemfFileArchive = null; // Not needed if we just want map data from an API?

        // Create a download modular tile provider:
        MapTileFileArchiveProvider fileArchiveProvider = new MapTileFileArchiveProvider(
                registerReceiver, tileSource, new IArchiveFile[]{gemfFileArchive});
        final NetworkAvailabliltyCheck networkAvailabilityCheck = new NetworkAvailabliltyCheck(getApplicationContext());
        final MapTileDownloader downloaderProvider = new MapTileDownloader(
                tileSource, tileWriter, networkAvailabilityCheck);

        // Create a custom tile provider array with the custom tile source and the custom tile providers
        final MapTileProviderArray tileProviderArray = new MapTileProviderArray(
                tileSource, registerReceiver, new MapTileModuleProviderBase[]{
                fileSystemProvider, fileArchiveProvider, downloaderProvider});

        // Create the mapview with the custom tile provider array
        map = new MapView(getApplicationContext(), tileProviderArray);

(Full test app: https://github.com/MarkusKauppinen/my-osmdroid-test-bench)
For each tile similar logs appear again and again. Here's an excerpt of one cycle grepped with the tile number /16/37472/16370:
D/OsmDroid: MapTileModuleProviderBase.loadMaptileAsync() on provider: File System Cache Provider for tile: /16/37472/16370
D/OsmDroid: TileLoader.nextTile() on provider: File System Cache Provider found tile in working queue: /16/37472/16370
D/OsmDroid: TileLoader.run() processing next tile: /16/37472/16370, pending:1, working:1
D/OsmDroid: TileLoader.tileLoadedFailed() on provider: File System Cache Provider with tile: /16/37472/16370
D/OsmDroid: MapTileModuleProviderBase.removeTileFromQueues() on provider: File System Cache Provider for tile: /16/37472/16370
D/OsmDroid: MapTileModuleProviderBase.loadMaptileAsync() on provider: File Archive Provider for tile: /16/37472/16370
D/OsmDroid: TileLoader.nextTile() on provider: File Archive Provider found tile in working queue: /16/37472/16370
D/OsmDroid: TileLoader.run() processing next tile: /16/37472/16370, pending:1, working:1
D/OsmDroid: Archives - Tile doesn't exist: /16/37472/16370
D/OsmDroid: TileLoader.tileLoadedFailed() on provider: File Archive Provider with tile: /16/37472/16370
D/OsmDroid: MapTileModuleProviderBase.removeTileFromQueues() on provider: File Archive Provider for tile: /16/37472/16370
D/OsmDroid: MapTileModuleProviderBase.loadMaptileAsync() on provider: Online Tile Download Provider for tile: /16/37472/16370
D/OsmDroid: TileLoader.nextTile() on provider: Online Tile Download Provider found tile in working queue: /16/37472/16370
D/OsmDroid: TileLoader.run() processing next tile: /16/37472/16370, pending:7, working:2
D/OsmDroid: Downloading Maptile from url: https://cdn.digitransit.fi/map/v1/hsl-map/16/37472/16370.png
D/OsmDroid: https://cdn.digitransit.fi/map/v1/hsl-map/16/37472/16370.png success, mime is image/png
D/OsmDroid: tile inserted DigiTransit/16/37472/16370
D/OsmDroid: MapTileModuleProviderBase.removeTileFromQueues() on provider: Online Tile Download Provider for tile: /16/37472/16370
D/OsmDroid: MapTileProviderBase.mapTileRequestCompleted(): /16/37472/16370

("Digitransit" tiles are publicly available, so no harm showing the URL here.)
Environment
If it's a bug, version(s) of android this affects:
Android 11 and 10 (at least, tested on several devices)
Version of osmdroid the issue relates to:
6.1.13 (and older down to 5.6.4 at least)

DigiTransit tiles have headers like:
HTTP/2 200 OK
access-control-allow-origin: *
cache-control: public,max-age=604800
content-md5: JLwiMUvNYkxrhaLxumvCAQ==
content-type: image/png
date: Thu, 16 Jun 2022 13:59:14 GMT
etag: W/"af0c-WTWGJkfB523qCbK3vpExulDuTcU"
server: ECAcc (ska/F6CF)
x-cache-status: MISS
x-response-time: 276.371ms
content-length: 44812
X-Firefox-Spdy: h2
I've tried with other tiles too. E.g. ThunderForest has these headers:
HTTP/1.1 200 OK
date: Thu, 16 Jun 2022 14:03:32 GMT
content-type: image/png
content-length: 6278
server: Apache
x-vector-backend-object: default
x-powered-by: Express, Phusion Passenger 5.3.7
cache-control: public, max-age=21600
access-control-allow-origin: *
expires: Thu, 16 Jun 2022 20:03:32 GMT
etag: "fd38bab06ade0b895f64b98bbbd156c3"
status: 200 OK
x-varnish: 148823681
age: 0
via: kong/0.8.3
accept-ranges: bytes
x-kong-upstream-latency: 23
x-kong-proxy-latency: 0
strict-transport-security: max-age=31536000; includeSubDomains; preload
So, there's an expiration date (some hours in the future), but it doesn't affect this issue.

Ok. Is that the same SqlTileWriter behavior with the "standard" MAPNIK tile source?

A very basic...
map = new MapView(getApplicationContext());
map.setTileSource(TileSourceFactory.MAPNIK);
topLayout.addView(map, layoutParams);
...does work and the SqlTileWriter and a DB in the app's private space are used by default on my test case on an Android 11 device.

So if you put your custom tile source instead in the very basic example, doesn't it work?

If I started from scratch I'd probably just find the same piece of documentation mentioned above and write my custom tile provider based on it pretty much like before.
Another option is I might take a look at existing implementations of OnlineTileSourceBase i.e. some of the "out of the box" tile sources and write a class extending it using e.g. MapBoxTileSource as reference. For example:
public class MyOwnTileSource  extends OnlineTileSourceBase {

    private String[] aBaseUrl;
    private String aImageFilenameEnding;

    public MyOwnTileSource(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, String[] aBaseUrl) {
        super(aName, aZoomMinLevel, aZoomMaxLevel, aTileSizePixels, aImageFilenameEnding, aBaseUrl);
        this.aBaseUrl = aBaseUrl;
        this.aImageFilenameEnding = aImageFilenameEnding;
    }

    @Override
    public String getTileURLString(long pMapTileIndex) {
        return aBaseUrl[0] + MapTileIndex.getZoom(pMapTileIndex) + "/" + MapTileIndex.getX(pMapTileIndex) + "/" + MapTileIndex.getY(pMapTileIndex)
                + aImageFilenameEnding;

    }
}

That actually does work. On an Android 11 device the app's private storage and SqlTileWriter are used by default.
My logs show:
Osmdroid base path: /data/user/0/com.example.osmdroidtestbench/files/osmdroid
Osmdroid tile cache path: /data/user/0/com.example.osmdroidtestbench/files/osmdroid/tiles
Osmdroid tile cache exists: true
Osmdroid tile cache can read: true
Osmdroid tile cache can write: true
The cache.db exists in that location and grows as the map is zoomed or panned and there are no signs of infinite re-downloads.
This would be a good enough solution if the only thing that needs to be customized is the tile provider API and the authentication part in the URL (omitted above). Alternatively it could extend XYTileSource which itself is an OnlineTileSourceBase.
So, "Creating a custom tile provider chain" was an overkill for my use case.
For tile source APIs that don't require any authentication this section in the documentation is enough: https://github.com/osmdroid/osmdroid/wiki/Map-Sources#using-a-different-tile-source so no need for a custom class.


[backport] Relax int type restriction

Backport of #3466

jenkins, test this please.

jenkins, test this please.

LGTM!


How to run model trained with mxnet 1.0 on android

I recently trained one model with mxnet 1.0.0, and today I decided to try the model with android, read thru the issues, just find android building of latest version is broken, so I have to go back to https://github.com/apache/incubator-mxnet/commit/c8f7dce0eb49ab1a62ddc2c7e37b93e9b92c2ae4  which is one commit of last year based on #9646 and #8707 and I think this may not work for my case.
Currently I have no clear idea what to do , since train the model cost me around 7days, so retrain may be the last option. :(
Actually I could build the libmxnet.so thru android arm64 docker build on commit https://github.com/apache/incubator-mxnet/commit/c8f7dce0eb49ab1a62ddc2c7e37b93e9b92c2ae4, but its size is too big, around 43M. And I have no clear idea how to use the so file.
I tried to load the model with mxnet 0.12.1, but failed with
0.12.1
[15:02:07] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308: [15:02:07] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/././json.h:842: JSONReader: Unknown field attrs, candidates are:
"attr"
"backward_source_id"
"control_deps"
"inputs"
"name"
"op"
"param"

could anybody give some help or clue? thanks in advance!

it looks like replace the attrs under nodes node  as attr could solve the issue

@larroy

We haven't had time to invest on figuring out why the amalgamation build is smaller than the arm64 docker build. I think as you say there were some changes on the model json files, you could definitely try what you say.

@larroy thanks for the reply, I have succeeded in running the trained model with amalgamation build after the model json file change, Though the result looks wrong. And due to some reasons, I currently give trying on the android device.

we encountered this (JSONReader: Unknown field attrs etc.) when loading models which were trained on a machine that had an older version of mxnet (ver ~0.90) compared with the version on the loading/predicting machine  (ver ~1.1)- please check if this is your case and then match the versions (looks like backwards compatibility, i.e. the other direction, works fine)

The Android build should be fixed now, so you could build and use the latest version.

I recently trained one model with mxnet 1.0.0, and today I decided to try the model with android, read thru the issues, just find android building of latest version is broken, so I have to go back to c8f7dce which is one commit of last year based on #9646 and #8707 and I think this may not work for my case.
Currently I have no clear idea what to do , since train the model cost me around 7days, so retrain may be the last option. :(
Actually I could build the libmxnet.so thru android arm64 docker build on commit c8f7dce, but its size is too big, around 43M. And I have no clear idea how to use the so file.
I tried to load the model with mxnet 0.12.1, but failed with
0.12.1
[15:02:07] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308: [15:02:07] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/././json.h:842: JSONReader: Unknown field attrs, candidates are:
"attr"
"backward_source_id"
"control_deps"
"inputs"
"name"
"op"
"param"

could anybody give some help or clue? thanks in advance!

I am trying to run a pretrained model on android. Aftering building the arm64 libmxnet.so with ci/build.py, I do not know what to do next. Can you give me some help?

Broken means amalgamation is broken? Could you paste some more information on what's broken and what's the error?
When you say is too big, is too big for your particular needs or you find an error using the library built with the docker cross compilation utility?
We are building for android but we don't have tests, or a sample that integrates the library with an android app. So unfortunately you are in uncharted territory here. We are happy to help pointing you in the right direction or giving you more info with your issues.


Is Jina going to participate in GSoC?

Although we haven't participated in GSoC previously, we're making active efforts to participate this year.
~ answered by Avni Uplabdhee, edited by Jina Team"


media query changes in file require a full browser refresh when using react-hot-loader

When I make a change such as <Media query="(min-width: 1120px)"> to <Media query="(min-width: 900px)">, I need to refresh my browser in order for the change to take effect.
react version: 16.2.0
react-hot-loader version: 4.0.1
react-media version: 1.8.0
webpack-dev-server version: 3.1.1

I guess it would be good to take prop changes of query into account.
I don't know whether it's a good idea, but I guess dynamically updating a media query wouldn't work right now.

@CallidusAsinus I'm most probably missing something here, as I tried reproducing the bug, but couldn't manage.
I've quickly setup hot reloading in an ejected create-react-app-app, and tried to mirror your package versions. Only thing I couldn't manage was to get CRA working with webpack-dev-server@3, it comes with version 2.x.
I've published the setup here: https://github.com/edorivai/react-media-hotloader
@theKashey any idea why this is working for me? :sweat_smile:

@edorivai - modules.hot and react-hot-loader are a bit different.
In your case you are hot reloading your application, remounting all the components
With RHL - you will hot update existing components.
The only way to fix this - handle query prop change in componentDidUpdate()

Hmmmm, I used the "Migrating from create-react-app" recipe as outlined in the react-hot-loader docs. And the end result seems very similar to the "Getting started" flow.

With RHL - you will hot update existing components.

How do I get this :point_up: ? :sweat_smile:

@CallidusAsinus If this is still an issue for you, I would really appreciate a reproduction repo to take a look at. You could even fork and edit my failed attempt at reproducing this.

With RHL - you will hot update existing components.

(🐢 mode), as long as idea around Hot Loader is to change your code without changing your state - that is what you will get using React-Hot-Loader. But it could be tricky to setup it with CRA.

I'm going to close this for now. If this issue is still important for someone, then please ping me in this issue, and add a codesandbox reproduction case to your reopen request.


(PDB-4579) fix connection tests

PostgreSQL JDBC driver has a bug where the isValid() call on a
connection does not respect timeouts. This causes our connection pool to
not detect a dead connection, which will eventually exhaust our
connection pool entirely. See pgjdbc/pgjdbc#1557
This fix is specific to PuppetDB 5.2.x and should not be applied to
newer branches.

CLA signed by all contributors.

Just rekicked the tests travis took a while so not sure if the failures were real

Okay switched this up - instead of using a connection test query, this is using the same JDBC driver as 6.3.x and beyond, but the version that supports JRE 7.


Custom downloads July

Type

[ ] Bug fix
[x] New feature
[x] Improvement to existing feature

Related JIRA Issue(s)

https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-196 - Get gene symbol from the API
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-197 - Add cDNA sequence attribute to the Sequence section
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-198 - Add a Biotype selector to the 'Transcript type' and Gene type' filters
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-199 - Create a Paste identifier component
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-200 - Re-think active filters displayed on the Preview Download screen
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-201 - Implement the option to reset the attribute/filter selections
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-204 - Split Gene stable ID version into Gene stable ID and version
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-262 - Orthologue selector bugs
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-202 - Use LocalStorage for Custom Downloads

Importance
July release
Description

Covered all the tasks for first round of user testing mentioned in the ticket ENSWBSITES-194.
Removed all analytics tracking from custom downloads

Created the following components:

ContentBuilder
PasteOrUpload
CheckboxWithTextfields

A working copy if this branch is currently available on the following URL:
http://<IP_ADDRESS>:30180/app/custom-download
Views affected
http://<IP_ADDRESS>:30180/app/custom-download
Other effects

[x] I have checked any requirements for Google Analytics
[x] I have created any required tests
[ ] The PR has as its final commit a WASM/JS update commit if any Rust files were

Styling problem (seen in Chromium on Linux):

open Custom Download page
switch to Filters
open Genes and Transcripts accordion
make sure the window is short enough to allow vertical scrolling
scroll down
notice how grey rectangles masking checkboxes travel down with the scroll

Another general styling question — is this white space below the columns expected? Looks strange to me:

Thinking of components as checkbox-with-something (and there are many such components) feels really wrong. It seems that what the code and design are trying to say is that there are RadioList, SelectList, PasteOrUploadList (or whatever that last thing is; the word "upload" may be wrong as well); and all these components have a visibility switch, which can be modelled as:
<VisibilitySwitch> // <-- perhaps not a real name of the component
  <RadioLIst>
</VisibilitySwitch>

or
withVisibilitySwitch(RadioLIst)

or
const RadioList = () => {
  [isVisible] = useVisibilitySwitch(false);
}

I am not sure I am saying these components need to be re-written in this PR, but they feel wrong.

General point: there are now parts of custom download redux state that:

sit in the containers folder (as opposed to the state folder, which is also present)
have the ui-related word accordion in their name:

If I understand correctly what these pieces of state are doing (I am not yet quite sure that I do), they would it would be much better if they:

were called attributesState and filtersState (no accordion in the name)
sat in sub-folders of the custom-download/state folder

I wonder whether there is a bug in checkbox-with-select:
If you select several options:

And open any of the select dropdowns except the first

you will see that available options exclude the ones that are selected.
But in the topmost select dropdown, all options remain available:

P.S.: When I talked to Andrea, she agreed that checkbox-with-select doesn't look right and will probably need to go, because it is trying to do the same job as checkbox-grid, only does it worse.

I think I have resigned to the Attribute type having the content field.
As for the contentState prop, if it describes the content of the accordion inside another accordion, can we rename it to nestedContent?

I guess all the requested changes are done in this PR?

One last question: the settings that we store for custom download — do we want to keep them in localStorage, as we currently do (meaning that they will persist for a long time), or only in sessionStorage (meaning that they will persist only until the user closes the browser)? Intuitively, I would think that sessionStorage is more appropriate here. Any thoughts from Andrea about it?

@msmanoj I thought you also wanted to remove the contentProps prop from ContentBuilder?

I thought you also wanted to remove the contentProps prop from ContentBuilder?

Thanks for reminding. I've removed it now.

@azangru made the changes to use session storage instead of local storage.


Log recurser errors at log level WARN

All failing recursor request are logged at DEBUG level at the moment: https://github.com/cloudfoundry/bosh-dns-release/blob/8ba02f20f7df86d0c0e9e0bfcb6eecae011142cb/src/bosh-dns/dns/server/handlers/forward_handler.go#L80
Most probably it's ok to log at DEBUG level requests, where the recursor answered but the answer return code is different than success: https://github.com/cloudfoundry/bosh-dns-release/blob/8ba02f20f7df86d0c0e9e0bfcb6eecae011142cb/src/bosh-dns/dns/server/handlers/forward_handler.go#L64-L67
Example for a request where the recursor responded but answer is not successful:
DEBUG - error recursing to "<recursor>:53": received NXDOMAIN for <domain> from upstream (recursor: <recursor>:53)
DEBUG - handlers.ForwardHandler Request id=58360 qtype=[A] qname=[<domain>] rcode=NXDOMAIN ancount=0 error=[no response from recursors] time=24593142ns

Requests where the recursor failed to answer the query should be logged at log level WARN because it is an error situation for a recursor.
Example for a request where the recursor failed to answer:
DEBUG - error recursing to "<recursor>:53": read udp <ip>:52995-><recursor>:53: i/o timeout
DEBUG - handlers.ForwardHandler Request id=54868 qtype=[A] qname=[<domain>] rcode=NXDOMAIN ancount=0 error=[no response from recursors] time=2000304764ns

@beyhan Can we close this issue out?

issue has been fixed with pull-request #61


Apps - logs gets overwritten in the logs window and experience High CPU usage when deploying an App from Dashboard

When deploying an App from Dashboard a tab window open at the bottom of the browser window displaying the helm operation logs.
While the deployment takes place if the logging returned by helm is too verbose then the logs start getting render overwriting the previous output and making the output all scrambled and not possible to read.

And then the browser gets slow and checking the OS CPU usage there are spikes of coming form the browser.
Browser is Chrome based.
Rancher version master-head (08/25/2020) 45e3e23cd

It looks like this console is now being hidden during deployment. So sending it to test.

Rancher version: master-head (09/21/2020) f1a410a
Validated in the latest master and on previous builds log overlapping and slowness is not reproducible.
I see the logging console getting opened each time I click install on each app.
Tested with a couple of different charts rancher-logging rancher-monitoring on Chrome based browser Edge 85.0.564.60


[Gssoc'23]Add a HOVER tag to display the names of social media applications in ABOUT section

I will add a hover tag to display the names of social media applications in about section to make the page more effective and convenient for user to use.

please assign me this issue @AmanJain18

Use Predefine Templete While creating issue, don't open blank issue...

Please assign me this issue @AmanJain18

I can add this type of hover effect

Like this....
Colour will be different for each icon like black for GitHub....

I can also do that

where u will add it @prathanab show position in current website with arrow mark as a image

@Rohitk131 that's a code from somewhere from yt as fas as i know... show new ideas

Like this..

@AmanJain18 sir can I do this task under gssoc'23


fceux: 2.6.0 -> 2.6.1

Motivation for this change
Keeping packages up-to-date.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 155404 run on x86_64-linux 1

1 package built:

fceux


Step by Step deployment guide

Hi
Is there step by step deployment guide something like https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/Deployment-guide ?
Thanks.

@siddiquiaslam - Could you please elaborate your requirement ?

@siddiquiaslam - Please have a look at this doc- https://docs.microsoft.com/en-us/microsoftteams/platform/toolkit/deploy
Hope it's helpful for you.
Let us know if you have any query.

We are closing this issue for now, Please feel free to reopen it, if required.


Feature/bi 10826/add production level controller

Short description outlining key changes/additions
-Add controller with get and post functionality
-Add controller test
-Add healthcheck controller
-Add healthcheck controller test
JIRA Ticket Number
BI-10826
Type of change

[ ] Bug fix
[X] New feature
[ ] Breaking change

Pull request checklist

[X] I have added unit tests for new code that I have added
[ ] I have added/updated functional tests where appropriate
[X] The code follows our coding standards

@amyatt1CH said that as soon as test coverage was sorted then we can merge


Pagefind UI: Allow for custom templates to render search results

When the search results are shown along with the excerpt, it would be nice if the excerpt were also wrapped within the anchor tag. On mobile especially, it would give a much larger clickable area.
I've been able to make most customizations happen with CSS or JS mods, but I'm not sure if there's a workaround for this that's bug free.

Since this is getting into personal preference it's something that I would prefer to expose via some customization. Personally I don't like wrapping heading + summary in anchor tags, and for the Pagefind UI I deferred to Google's behaviour on desktop and mobile of leaving the excerpt text selectable.
I have seen other search implementations allow you to provide custom HTML templates for search results that would allow you to take things in any direction, so that it likely the solution I would reach for here.
Recently I have been tossing up providing a library of UI widgets that can be used, and this feature would be a good fit for a alternative Pagefind UI with more granularity, which might also tackle #53 and #54 while keeping the existing Pagefind UI as the default "starter" with the lowest configuration lift.

Yeah I was actually considering forking and taking a look at making this more customizable. I like to make the search a major feature of the site, so being able to provide a custom template would be ideal. Unfortunately I have quite a few projects on my plate so for the most part I'll have to wait and see what goodies you decide to bless us with :)

Hi @justsilencia — the latest release v0.11.0 includes an early look at the new Modular UI, which includes this feature. Have a wee skim of that and let me know how that looks!

Removing this from the 1.0 milestone as the Modular UI is now targeting a later release (see https://github.com/CloudCannon/pagefind/pull/382)


Run lint in parallel with runtests and runtests-parallel

This effectively reverts #50597, except that instead of running the linter after tests have finished, we'll instead run them in parallel. This works because hereby won't exit early when a task fails but a sibling task has not yet finished.
I still prefer getting these in my editor where possible, but, I've heard from multiple people ambiently that they keep committing code that fails the lint task. At least we can do it in parallel in the new build.

I've added a test to hereby that should encode that this trick still works.

I've modified this to only do it at parallel; @andrewbranch pointed out that we probably don't want to lint on filtered tests, which I think most people only run in runtests not runtests-parallel.
But, I can also make it not lint if the tests are filtered, if that sounds good too.


Can not set fallback font in alacritty

I am using alacritty as my main terminal and it does not support fallback fonts, what should I do?
Is there any way to patch my font and get nonicon icons?

https://github.com/alacritty/alacritty/issues/957


Custom css

Hi, first of all I want to congratulate you for this initiative, there is a need for such a tool.
And I want to ask you if it is possible to use fontWeight for dynamic text fields and maybe more css attributes?
Thanks!

Hi @tudorels

it is possible to use fontWeight for dynamic text fields and maybe more css attributes?
We can't use font-weight. but we can load and use a bold font as the custom font. (https://pdfme.com/docs/guides/custom-font)
also, we can't use CSS attributes.
I want to know what purpose to use CSS attributes.

Thanks!

Like border, padding. Also the ability to insert tables and format them using css. Thanks!


HIVE-28657: Regenerate protobuf files

What changes were proposed in this pull request?
Regenerated java sources from proto files.
mvn clean install -Pitests -T 1C -DskipTests -Pprotobuf

Why are the changes needed?
We need to make sure that our generated sources can always be compiled and used with the current hive version.
Does this PR introduce any user-facing change?
No. Proto messages are for internal use.
Is the change a dependency upgrade?
No.
How was this patch tested?
Precommit.

converted to draft, I compiled with a bad protoc version (2.5), hive is on 3.25.5


findByXXX query is not using aliased property in SORTBY clause

I have a model like this:
@Data
@Builder
@RequiredArgsConstructor(staticName = "of")
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@RedisHash
public class Student {

    @Id
    private Long id;

    @Indexed(alias = "User-Name")
    private String userName;

    @Indexed(alias = "Event-Timestamp")
    private LocalDateTime eventTimestamp;

}

Repository:
@Repository
@Transactional(readOnly = true)
public interface StudentRepository extends RedisEnhancedRepository<Student, Long>, QueryByExampleExecutor<Student> {

    List<Student> findByUserNameAndEventTimestampBetweenOrderByEventTimestampAsc(String userName, String fromDate, String toDate);

}

On the start up, index is created like this:
"FT.CREATE" "com.example.demo.entity.StudentIdx" "ON" "HASH" "PREFIX" "1" "com.example.demo.entity.Student:" "SCHEMA" "userName" "AS" "User-Name" "TAG" "SEPARATOR" "|" "eventTimestamp" "AS" "Event-Timestamp" "NUMERIC" "id" "AS" "id" "NUMERIC" "SORTABLE"
Problem 1
When above repository query is invoked, monitor outputs:
 "FT.SEARCH" "com.example.demo.entity.StudentIdx" "@User\\-Name:{pera} @Event\\-Timestamp:[1611995400000<PHONE_NUMBER>021]" "SORTBY" "eventTimestamp" "ASC" "LIMIT" "0" "10000"
Exception is:
redis.clients.jedis.exceptions.JedisDataException: Property eventTimestamp not loaded nor in schema
Would it be possible to modify this and make it to be executed as:
 "FT.SEARCH" "com.example.demo.entity.StudentIdx" "@User\\-Name:{pera} @Event\\-Timestamp:[1611995400000<PHONE_NUMBER>021]" "SORTBY" "Event-Timestamp" "ASC" "LIMIT" "0" "10000"
Note:
I did try:
@Indexed(alias = "Event-Timestamp", fieldName = "Event-Timestamp")
 private LocalDateTime eventTimestamp;

Same issue.
Problem 2
Why in the above findBy query "LIMIT" "0" "10000"` is appended when I didn't specify limit anywhere?
redis:
  om:
    spring:
      repository:
        query:
          limit: 10000

Why is here limit only 10000?

I remove the limit part from the issue description, that one is not a bug but a feature :-) See https://redis.io/docs/latest/commands/ft.search/ :
LIMIT first num
limits the results to the offset and number of results given. Note that the offset is zero-indexed. **The default is 0 10**, which returns 10 items starting from the first result. You can use LIMIT 0 0 to count the number of documents in the result set without actually returning them.

Without a LIMIT the default is 10, so we just gave it a more reasonable default in the app. You can bump it up or down with the above mentioned property up to the MAXSEARCHRESULTS value for the server, see https://redis.io/docs/latest/commands/ft.config-get/ which on a docker based Redis stack is:
8) 1) MAXSEARCHRESULTS
    2) "10000"

I believe on Redis Enterprise/Cloud this might be 1000000

@dasivon021 also in the code below:
@Repository
@Transactional(readOnly = true)
public interface StudentRepository extends RedisEnhancedRepository<Student, Long>, QueryByExampleExecutor<Student> {

    List<Student> findByUserNameAndEventTimestampBetweenOrderByEventTimestampAsc(String userName, String fromDate, String toDate);

}

@Transactional(readOnly = true) has no effect in Spring Data Redis or Redis OM Spring
The params String fromDate, String toDate should be of type LocalDateTime not String

@bsbodden Yes, I'm aware about Transactional, left it here by accident, thank you. Actually String fromDate, String toDate do have to be strings UTC, passed to the query as:
var fromDate = String.valueOf(createdAfter.toLocalDateTime().toInstant(ZoneOffset.UTC).toEpochMilli());


Remove python 2.6 support

Coverage remained the same at 99.812% when pulling 181c04369323cca7c3dab30d74b5d403a7f702b3 on bringhurst:disable_py26 into 5472a89d5a6702ae7a692211053a55dfba63072b on linkedin:master.

Coverage remained the same at 99.812% when pulling 98ec6346a0cdca73a3826b63c1d40eb44129693c on bringhurst:disable_py26 into 5472a89d5a6702ae7a692211053a55dfba63072b on linkedin:master.

Coverage remained the same at 99.812% when pulling 98ec6346a0cdca73a3826b63c1d40eb44129693c on bringhurst:disable_py26 into 5472a89d5a6702ae7a692211053a55dfba63072b on linkedin:master.

Coverage remained the same at 99.812% when pulling 410abc6592fa3bb0c556595473b043355eae4ea5 on bringhurst:disable_py26 into 5472a89d5a6702ae7a692211053a55dfba63072b on linkedin:master.


Model Architecture related question

Hi @alexandru-dinu
thank you for sharing your work on Lucas et. al. paper. I have the following questions:

Did u implement the quantization + Entropy coding (as mentioned in the paper)? I do not see this in the code. In neural network based compression model, these 2 layers are the novelty. If they are absent how is your model able to compress images?
How is it possible to arrive at a bpp when training these models (in paper they use 3-bit rates 0.25, 0.372 and 0.5).

thanks.

There is a quantitative training part in the code, but I have not seen the part of the entropy estimate. Therefore, the code cannot control the rate, and only one network model corresponds to a bit rate. For your first question: the autoencoded's encoder outputs the compressed feature, which is  compression. Entropy coding is lossless compression. The second problem: the calculation of the code rate is the output of the encoder except the source image. As far as I know, there are currently two rate control methods: one is the RD curve and the other is the iteration. As far as I know, there are currently two rate control methods: one is the RD curve (the difficulty is the rate estimate, which is the estimate of the entropy. You need to add this part to the loss function of the control), and the other is the iteration (using the RNN). It's easier than using CNN).

Moving discussion to #15.


Ad-Hoc Script Execution Doesn't Support Default Parameter Values

If I write a script that includes a default parameter value and then execute the script, the value for that parameter is null. I would expect the default parameter value to be honored.
Consider this script:
param ($Query = "roundhouse")
$Response = Invoke-RestMethod -Uri "https://api.chucknorris.io/jokes/search?query=$Query"

If I run this without setting the $Query parameter in the Run wizard, I get this error:
[02/28/2020 13:50:28] [ERROR] The remote server returned an error: (500) Internal Server Error.
at <ScriptBlock>, <No file>: line 5
[02/28/2020 13:50:28] [ERROR] Cannot validate argument on parameter 'InputObject'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
at <ScriptBlock>, <No file>: line 6
[02/28/2020 13:50:28] [ERROR]

However, I can set the same value in the Run wizard and the script succeeds.
Version Information

Host Operating System: Windows 10
Host PowerShell Version: Windows PowerShell 5.1
Universal Automation Version: 1.0.1
Universal Dashboard Version: 2.9.0
UD Hosting Method: (Powershell, IIS, App Service, Etc.) PowerShell

Resolved. It will also show the default value in the UI.


Check cpp files

class /tuple/SerialVersion3Test.java should be renamed to "tupleCrossLanguageTest".
method serialVersion1Compatibility() in Class /tuple/CompactSketchWithDoubleSummaryTest needs to be moved to a
new "tuple/CrossLanguageTest"
Two methods in class /tuple/arrayofdoubles/ArrayOfDoublesUnionTest need to be moved to a new  "TupleArrayOfDoublesCrossLanguageTest" class
method compatibilityWithCppEstimationModeV4() in /theta/CompactSketchTest needs to be moved to a new "ThetaCrossLanguageTest" class.
8 methods in class /quantiles/ForwardCompatibilityTest need to be moved to the /quantiles/QuantilesSketchCrossLanguageTest class

Spot bugs fixes have been reverted.


adding uncased NER & dependency parser

options are added for app.py to

use a custom model, optimized for uncased text, for NER.
do dependency parsing.

Closing due to duplication (#21).